@inntechcorp/it-design 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as n,jsxs as e,Fragment as t}from"react/jsx-runtime";import*as r from"react";import i,{createContext as o,useContext as s,useState as a,useRef as l,useEffect as c,useCallback as u,useDebugValue as d,createElement as f,memo as h,Suspense as p,isValidElement as g,cloneElement as m,useLayoutEffect as v,forwardRef as b,useMemo as y,Children as x,useImperativeHandle as w,createRef as k}from"react";import{createPortal as _,unstable_batchedUpdates as S}from"react-dom";import{CSSTransition as E}from"react-transition-group";import{ReactSVG as O}from"react-svg";import C from"autoprefixer";import N from"postcss";import{useSearchParams as T,useNavigate as A,createSearchParams as D,NavLink as P,useLocation as L}from"react-router-dom";import M from"axios";import{getChildrenDeep as I}from"react-nanny";const R={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class F{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(n,e)}init(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=n||R,this.options=e,this.debug=e.debug}log(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"log","",!0)}warn(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"warn","",!0)}error(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"error","")}deprecate(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(n,e,t,r){return r&&!this.debug?null:("string"==typeof n[0]&&(n[0]=`${t}${this.prefix} ${n[0]}`),this.logger[e](n))}create(n){return new F(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return(n=n||this.options).prefix=n.prefix||this.prefix,new F(this.logger,n)}}var j=new F;class z{constructor(){this.observers={}}on(n,e){return n.split(" ").forEach((n=>{this.observers[n]||(this.observers[n]=new Map);const t=this.observers[n].get(e)||0;this.observers[n].set(e,t+1)})),this}off(n,e){this.observers[n]&&(e?this.observers[n].delete(e):delete this.observers[n])}emit(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(this.observers[n]){Array.from(this.observers[n].entries()).forEach((n=>{let[e,r]=n;for(let n=0;n<r;n++)e(...t)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((e=>{let[r,i]=e;for(let e=0;e<i;e++)r.apply(r,[n,...t])}))}}}function $(){let n,e;const t=new Promise(((t,r)=>{n=t,e=r}));return t.resolve=n,t.reject=e,t}function Y(n){return null==n?"":""+n}const U=/###/g;function V(n,e,t){function r(n){return n&&n.indexOf("###")>-1?n.replace(U,"."):n}function i(){return!n||"string"==typeof n}const o="string"!=typeof e?e:e.split(".");let s=0;for(;s<o.length-1;){if(i())return{};const e=r(o[s]);!n[e]&&t&&(n[e]=new t),n=Object.prototype.hasOwnProperty.call(n,e)?n[e]:{},++s}return i()?{}:{obj:n,k:r(o[s])}}function B(n,e,t){const{obj:r,k:i}=V(n,e,Object);if(void 0!==r||1===e.length)return void(r[i]=t);let o=e[e.length-1],s=e.slice(0,e.length-1),a=V(n,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=V(n,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t}function H(n,e){const{obj:t,k:r}=V(n,e);if(t)return t[r]}function W(n,e,t){for(const r in e)"__proto__"!==r&&"constructor"!==r&&(r in n?"string"==typeof n[r]||n[r]instanceof String||"string"==typeof e[r]||e[r]instanceof String?t&&(n[r]=e[r]):W(n[r],e[r],t):n[r]=e[r]);return n}function q(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var G={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Z(n){return"string"==typeof n?n.replace(/[&<>"'\/]/g,(n=>G[n])):n}const Q=[" ",",","?","!",";"],K=new class{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const e=this.regExpMap.get(n);if(void 0!==e)return e;const t=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,t),this.regExpQueue.push(n),t}}(20);function J(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!n)return;if(n[e])return n[e];const r=e.split(t);let i=n;for(let n=0;n<r.length;){if(!i||"object"!=typeof i)return;let e,o="";for(let s=n;s<r.length;++s)if(s!==n&&(o+=t),o+=r[s],e=i[o],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;n+=s-n+1;break}i=e}return i}function X(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class nn extends z{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const e=this.options.ns.indexOf(n);e>-1&&this.options.ns.splice(e,1)}getResource(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;n.indexOf(".")>-1?s=n.split("."):(s=[n,e],t&&(Array.isArray(t)?s.push(...t):"string"==typeof t&&i?s.push(...t.split(i)):s.push(t)));const a=H(this.data,s);return!a&&!e&&!t&&n.indexOf(".")>-1&&(n=s[0],e=s[1],t=s.slice(2).join(".")),a||!o||"string"!=typeof t?a:J(this.data&&this.data[n]&&this.data[n][e],t,i)}addResource(n,e,t,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[n,e];t&&(s=s.concat(o?t.split(o):t)),n.indexOf(".")>-1&&(s=n.split("."),r=e,e=s[1]),this.addNamespaces(e),B(this.data,s,r),i.silent||this.emit("added",n,e,t,r)}addResources(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in t)("string"==typeof t[r]||Array.isArray(t[r]))&&this.addResource(n,e,r,t[r],{silent:!0});r.silent||this.emit("added",n,e,t)}addResourceBundle(n,e,t,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[n,e];n.indexOf(".")>-1&&(s=n.split("."),r=t,t=e,e=s[1]),this.addNamespaces(e);let a=H(this.data,s)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?W(a,t,i):a={...a,...t},B(this.data,s,a),o.silent||this.emit("added",n,e,t)}removeResourceBundle(n,e){this.hasResourceBundle(n,e)&&delete this.data[n][e],this.removeNamespaces(e),this.emit("removed",n,e)}hasResourceBundle(n,e){return void 0!==this.getResource(n,e)}getResourceBundle(n,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(n,e)}:this.getResource(n,e)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const e=this.getDataByLanguage(n);return!!(e&&Object.keys(e)||[]).find((n=>e[n]&&Object.keys(e[n]).length>0))}toJSON(){return this.data}}var en={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,i){return n.forEach((n=>{this.processors[n]&&(e=this.processors[n].process(e,t,r,i))})),e}};const tn={};class rn extends z{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(n,e,t){n.forEach((n=>{e[n]&&(t[n]=e[n])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=j.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==n)return!1;const t=this.resolve(n,e);return t&&void 0!==t.res}extractFromKey(n,e){let t=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let i=e.ns||this.options.defaultNS||[];const o=t&&n.indexOf(t)>-1,s=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(n,e,t){e=e||"",t=t||"";const r=Q.filter((n=>e.indexOf(n)<0&&t.indexOf(n)<0));if(0===r.length)return!0;const i=K.getRegExp(`(${r.map((n=>"?"===n?"\\?":n)).join("|")})`);let o=!i.test(n);if(!o){const e=n.indexOf(t);e>0&&!i.test(n.substring(0,e))&&(o=!0)}return o}(n,t,r));if(o&&!s){const e=n.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:n,namespaces:i};const o=n.split(t);(t!==r||t===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),n=o.join(r)}return"string"==typeof i&&(i=[i]),{key:n,namespaces:i}}translate(n,e,t){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);const r=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(n[n.length-1],e),a=s[s.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const n=e.nsSeparator||this.options.nsSeparator;return r?{res:`${a}${n}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${n}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:o}const u=this.resolve(n,e);let d=u&&u.res;const f=u&&u.usedKey||o,h=u&&u.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof g||!Array.isArray(d))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const n=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...e,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=n,u.usedParams=this.getUsedParamsDetails(e),u):n}if(i){const n=Array.isArray(d),t=n?[]:{},r=n?h:f;for(const n in d)if(Object.prototype.hasOwnProperty.call(d,n)){const o=`${r}${i}${n}`;t[n]=this.translate(o,{...e,joinArrays:!1,ns:s}),t[n]===o&&(t[n]=d[n])}d=t}}else if(m&&"string"==typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,n,e,t));else{let r=!1,s=!1;const c=void 0!==e.count&&"string"!=typeof e.count,f=rn.hasDefaultValue(e),h=c?this.pluralResolver.getSuffix(l,e.count,e):"",p=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",g=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${h}`]||e[`defaultValue${p}`]||e.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);const v=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,b=f&&m!==d&&this.options.updateMissing;if(s||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,a,o,b?m:d),i){const n=this.resolve(o,{...e,keySeparator:!1});n&&n.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let n=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let e=0;e<t.length;e++)n.push(t[e]);else"all"===this.options.saveMissingTo?n=this.languageUtils.toResolveHierarchy(e.lng||this.language):n.push(e.lng||this.language);const r=(n,t,r)=>{const i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(n,a,t,i,b,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(n,a,t,i,b,e),this.emit("missingKey",n,a,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?n.forEach((n=>{const t=this.pluralResolver.getSuffixes(n,e);g&&e[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{r([n],o+t,e[`defaultValue${t}`]||m)}))})):r(n,o,m))}d=this.extendTranslation(d,n,e,u,t),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(e),u):d}extendTranslation(n,e,t,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const s="string"==typeof n&&(t&&t.interpolation&&void 0!==t.interpolation.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const e=n.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),n=this.interpolator.interpolate(n,l,t.lng||this.language,t),s){const e=n.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(t.nest=!1)}!t.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(t.lng=r.usedLng),!1!==t.nest&&(n=this.interpolator.nest(n,(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!t.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${e[0]}`),null):o.translate(...r,e)}),t)),t.interpolation&&this.interpolator.reset()}const s=t.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=n&&a&&a.length&&!1!==t.applyPostProcessor&&(n=en.handle(a,n,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),n}resolve(n){let e,t,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof n&&(n=[n]),n.forEach((n=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(n,s),l=a.key;t=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((n=>{this.isValidLookup(e)||(o=n,!tn[`${h[0]}-${n}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(tn[`${h[0]}-${n}`]=!0,this.logger.warn(`key "${t}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((t=>{if(this.isValidLookup(e))return;i=t;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,t,n,s);else{let n;u&&(n=this.pluralResolver.getSuffix(t,s.count,s));const e=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+n),s.ordinal&&0===n.indexOf(r)&&o.push(l+n.replace(r,this.options.pluralSeparator)),d&&o.push(l+e)),f){const t=`${l}${this.options.contextSeparator}${s.context}`;o.push(t),u&&(o.push(t+n),s.ordinal&&0===n.indexOf(r)&&o.push(t+n.replace(r,this.options.pluralSeparator)),d&&o.push(t+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(r=a,e=this.getResource(t,n,a,s))})))}))})),{res:e,usedKey:t,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(n){return!(void 0===n||!this.options.returnNull&&null===n||!this.options.returnEmptyString&&""===n)}getResource(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,e,t,r):this.resourceStore.getResource(n,e,t,r)}getUsedParamsDetails(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=n.replace&&"string"!=typeof n.replace;let r=t?n.replace:n;if(t&&void 0!==n.count&&(r.count=n.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t){r={...r};for(const n of e)delete r[n]}return r}static hasDefaultValue(n){const e="defaultValue";for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e===t.substring(0,12)&&void 0!==n[t])return!0;return!1}}function on(n){return n.charAt(0).toUpperCase()+n.slice(1)}class sn{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}getScriptPartFromCode(n){if(!(n=X(n))||n.indexOf("-")<0)return null;const e=n.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(n){if(!(n=X(n))||n.indexOf("-")<0)return n;const e=n.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(n){if("string"==typeof n&&n.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let t=n.split("-");return this.options.lowerCaseLng?t=t.map((n=>n.toLowerCase())):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=on(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=on(t[1].toLowerCase())),e.indexOf(t[2].toLowerCase())>-1&&(t[2]=on(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let e;return n.forEach((n=>{if(e)return;const t=this.formatLanguageCode(n);this.options.supportedLngs&&!this.isSupportedCode(t)||(e=t)})),!e&&this.options.supportedLngs&&n.forEach((n=>{if(e)return;const t=this.getLanguagePartFromCode(n);if(this.isSupportedCode(t))return e=t;e=this.options.supportedLngs.find((n=>n===t?n:n.indexOf("-")<0&&t.indexOf("-")<0?void 0:n.indexOf("-")>0&&t.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===t||0===n.indexOf(t)&&t.length>1?n:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(n,e){if(!n)return[];if("function"==typeof n&&(n=n(e)),"string"==typeof n&&(n=[n]),Array.isArray(n))return n;if(!e)return n.default||[];let t=n[e];return t||(t=n[this.getScriptPartFromCode(e)]),t||(t=n[this.formatLanguageCode(e)]),t||(t=n[this.getLanguagePartFromCode(e)]),t||(t=n.default),t||[]}toResolveHierarchy(n,e){const t=this.getFallbackCodes(e||this.options.fallbackLng||[],n),r=[],i=n=>{n&&(this.isSupportedCode(n)?r.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return"string"==typeof n&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(n)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(n)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(n))):"string"==typeof n&&i(this.formatLanguageCode(n)),t.forEach((n=>{r.indexOf(n)<0&&i(this.formatLanguageCode(n))})),r}}let an=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ln={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(n){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},5:function(n){return Number(0==n?0:1==n?1:2==n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&n<=4?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:n<7?2:n<11?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&n<20?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1&&n%100!=11?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0==n||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3)},20:function(n){return Number(1==n?0:0==n||n%100>0&&n%100<20?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)},22:function(n){return Number(1==n?0:2==n?1:(n<0||n>10)&&n%10==0?2:3)}};const cn=["v1","v2","v3"],un=["v4"],dn={zero:0,one:1,two:2,few:3,many:4,other:5};class fn{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=n,this.options=e,this.logger=j.create("pluralResolver"),this.options.compatibilityJSON&&!un.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const n={};return an.forEach((e=>{e.lngs.forEach((t=>{n[t]={numbers:e.nr,plurals:ln[e.fc]}}))})),n}()}addRule(n,e){this.rules[n]=e}getRule(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(X("dev"===n?"en":n),{type:e.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}needsPlural(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(n,e);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}getPluralFormsOfKey(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(n,t).map((n=>`${e}${n}`))}getSuffixes(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(n,e);return t?this.shouldUseIntlApi()?t.resolvedOptions().pluralCategories.sort(((n,e)=>dn[n]-dn[e])).map((n=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${n}`)):t.numbers.map((t=>this.getSuffix(n,t,e))):[]}getSuffix(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(n,t);return r?this.shouldUseIntlApi()?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r.select(e)}`:this.getSuffixRetroCompatible(r,e):(this.logger.warn(`no plural rule found for: ${n}`),"")}getSuffixRetroCompatible(n,e){const t=n.noAbs?n.plurals(e):n.plurals(Math.abs(e));let r=n.numbers[t];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?i():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()}shouldUseIntlApi(){return!cn.includes(this.options.compatibilityJSON)}}function hn(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(n,e,t){const r=H(n,t);return void 0!==r?r:H(e,t)}(n,e,t);return!o&&i&&"string"==typeof t&&(o=J(n,t,r),void 0===o&&(o=J(e,t,r))),o}class pn{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||(n=>n),this.init(n)}init(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:e,escapeValue:t,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=n.interpolation;this.escape=void 0!==e?e:Z,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?q(i):o||"{{",this.suffix=s?q(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?q(d):f||q("$t("),this.nestingSuffix=h?q(h):p||q(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(n,e)=>n&&n.source===e?(n.lastIndex=0,n):new RegExp(e,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,e,t,r){let i,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(n){return n.replace(/\$/g,"$$$$")}const c=n=>{if(n.indexOf(this.formatSeparator)<0){const i=hn(e,a,n,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,t,{...r,...e,interpolationkey:n}):i}const i=n.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(hn(e,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,t,{...r,...e,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:n=>l(n)},{regex:this.regexp,safeValue:n=>this.escapeValue?l(this.escape(n)):l(n)}].forEach((e=>{for(s=0;i=e.regex.exec(n);){const t=i[1].trim();if(o=c(t),void 0===o)if("function"==typeof u){const e=u(n,i,r);o="string"==typeof e?e:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))o="";else{if(d){o=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${n}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=Y(o));const a=e.safeValue(o);if(n=n.replace(i[0],a),d?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),n}nest(n,e){let t,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(n,e){const t=this.nestingOptionsSeparator;if(n.indexOf(t)<0)return n;const r=n.split(new RegExp(`${t}[ ]*{`));let o=`{${r[1]}`;n=r[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${n}`,e),`${n}${t}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,n}for(;t=this.nestingRegexp.exec(n);){let a=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==t[0].indexOf(this.formatSeparator)&&!/{.*}/.test(t[1])){const n=t[1].split(this.formatSeparator).map((n=>n.trim()));t[1]=n.shift(),a=n,l=!0}if(r=e(s.call(this,t[1].trim(),i),i),r&&t[0]===n&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Y(r)),r||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${n}`),r=""),l&&(r=a.reduce(((n,e)=>this.format(n,e,o.lng,{...o,interpolationkey:t[1].trim()})),r.trim())),n=n.replace(t[0],r),this.regexp.lastIndex=0}return n}}function gn(n){const e={};return function(t,r,i){const o=r+JSON.stringify(i);let s=e[o];return s||(s=n(X(r),i),e[o]=s),s(t)}}class mn{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("formatter"),this.options=n,this.formats={number:gn(((n,e)=>{const t=new Intl.NumberFormat(n,{...e});return n=>t.format(n)})),currency:gn(((n,e)=>{const t=new Intl.NumberFormat(n,{...e,style:"currency"});return n=>t.format(n)})),datetime:gn(((n,e)=>{const t=new Intl.DateTimeFormat(n,{...e});return n=>t.format(n)})),relativetime:gn(((n,e)=>{const t=new Intl.RelativeTimeFormat(n,{...e});return n=>t.format(n,e.range||"day")})),list:gn(((n,e)=>{const t=new Intl.ListFormat(n,{...e});return n=>t.format(n)}))},this.init(n)}init(n){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(n,e){this.formats[n.toLowerCase().trim()]=e}addCached(n,e){this.formats[n.toLowerCase().trim()]=gn(e)}format(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.split(this.formatSeparator).reduce(((n,e)=>{const{formatName:i,formatOptions:o}=function(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===e&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach((n=>{if(n){const[e,...r]=n.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=e.trim();t[o]||(t[o]=i),"false"===i&&(t[o]=!1),"true"===i&&(t[o]=!0),isNaN(i)||(t[o]=parseInt(i,10))}}))}return{formatName:e,formatOptions:t}}(e);if(this.formats[i]){let e=n;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||t;e=this.formats[i](n,a,{...o,...r,...s})}catch(n){this.logger.warn(n)}return e}return this.logger.warn(`there was no format function for ${i}`),n}),n);return i}}class vn extends z{constructor(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=n,this.store=e,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=j.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(t,r.backend,r)}queueLoad(n,e,t,r){const i={},o={},s={},a={};return n.forEach((n=>{let r=!0;e.forEach((e=>{const s=`${n}|${e}`;!t.reload&&this.store.hasResourceBundle(n,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[e]&&(a[e]=!0)))})),r||(s[n]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(n,e,t){const r=n.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),t&&this.store.addResourceBundle(i,o,t,void 0,void 0,{skipCopy:!0}),this.state[n]=e?-1:2;const s={};this.queue.forEach((t=>{!function(n,e,t,r){const{obj:i,k:o}=V(n,e,Object);i[o]=i[o]||[],i[o].push(t)}(t.loaded,[i],o),function(n,e){void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--)}(t,n),e&&t.errors.push(e),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach((n=>{s[n]||(s[n]={});const e=t.loaded[n];e.length&&e.forEach((e=>{void 0===s[n][e]&&(s[n][e]=!0)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((n=>!n.done))}read(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!n.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:n,ns:e,fcName:t,tried:r,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const n=this.waitingReads.shift();this.read(n.lng,n.ns,n.fcName,n.tried,n.wait,n.callback)}s&&a&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,n,e,t,r+1,2*i,o)}),i):o(s,a)},a=this.backend[t].bind(this.backend);if(2!==a.length)return a(n,e,s);try{const t=a(n,e);t&&"function"==typeof t.then?t.then((n=>s(null,n))).catch(s):s(null,t)}catch(n){s(n)}}prepareLoading(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof n&&(n=this.languageUtils.toResolveHierarchy(n)),"string"==typeof e&&(e=[e]);const i=this.queueLoad(n,e,t,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((n=>{this.loadOne(n)}))}load(n,e,t){this.prepareLoading(n,e,{},t)}reload(n,e,t){this.prepareLoading(n,e,{reload:!0},t)}loadOne(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=n.split("|"),r=t[0],i=t[1];this.read(r,i,"read",void 0,void 0,((t,o)=>{t&&this.logger.warn(`${e}loading namespace ${i} for language ${r} failed`,t),!t&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${r}`,o),this.loaded(n,t,o)}))}saveMissing(n,e,t,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${t}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=t&&""!==t){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(n,e,t,r,a):l(n,e,t,r),i&&"function"==typeof i.then?i.then((n=>s(null,n))).catch(s):s(null,i)}catch(n){s(n)}else l(n,e,t,r,s,a)}n&&n[0]&&this.store.addResource(n[0],e,t,r)}}}function bn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(n){let e={};if("object"==typeof n[1]&&(e=n[1]),"string"==typeof n[1]&&(e.defaultValue=n[1]),"string"==typeof n[2]&&(e.tDescription=n[2]),"object"==typeof n[2]||"object"==typeof n[3]){const t=n[3]||n[2];Object.keys(t).forEach((n=>{e[n]=t[n]}))}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function yn(n){return"string"==typeof n.ns&&(n.ns=[n.ns]),"string"==typeof n.fallbackLng&&(n.fallbackLng=[n.fallbackLng]),"string"==typeof n.fallbackNS&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function xn(){}class wn extends z{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var t;if(super(),this.options=yn(n),this.services={},this.logger=j,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n=>{"function"==typeof t[n]&&(t[n]=t[n].bind(t))})),e&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,e),this;setTimeout((()=>{this.init(n,e)}),0)}}init(){var n=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=bn();function i(n){return n?"function"==typeof n?new n:n:null}if(this.options={...r,...this.options,...yn(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?j.init(i(this.modules.logger),this.options):j.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=mn);const t=new sn(this.options);this.store=new nn(this.options.resources,this.options);const o=this.services;o.logger=j,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new fn(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new pn(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new vn(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new rn(this.services,this.options),this.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)})),this.modules.external.forEach((n=>{n.init&&n.init(this)}))}if(this.format=this.options.interpolation.format,t||(t=xn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const n=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);n.length>0&&"dev"!==n[0]&&(this.options.lng=n[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return n.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return n.store[e](...arguments),n}}));const o=$(),s=()=>{const n=(n,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(e),t(n,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return n(null,this.t.bind(this));this.changeLanguage(this.options.lng,n)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn;const t="string"==typeof n?n:this.language;if("function"==typeof n&&(e=n),!this.options.resources||this.options.partialBundledLanguages){if(t&&"cimode"===t.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const n=[],r=e=>{if(!e)return;if("cimode"===e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&n.indexOf(e)<0&&n.push(e)}))};if(t)r(t);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((n=>r(n)))}this.options.preload&&this.options.preload.forEach((n=>r(n))),this.services.backendConnector.load(n,this.options.ns,(n=>{n||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(n)}))}else e(null)}reloadResources(n,e,t){const r=$();return n||(n=this.languages),e||(e=this.options.ns),t||(t=xn),this.services.backendConnector.reload(n,e,(n=>{r.resolve(),t(n)})),r}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===n.type&&(this.modules.backend=n),("logger"===n.type||n.log&&n.warn&&n.error)&&(this.modules.logger=n),"languageDetector"===n.type&&(this.modules.languageDetector=n),"i18nFormat"===n.type&&(this.modules.i18nFormat=n),"postProcessor"===n.type&&en.addPostProcessor(n),"formatter"===n.type&&(this.modules.formatter=n),"3rdParty"===n.type&&this.modules.external.push(n),this}setResolvedLanguage(n){if(n&&this.languages&&!(["cimode","dev"].indexOf(n)>-1))for(let n=0;n<this.languages.length;n++){const e=this.languages[n];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(n,e){var t=this;this.isLanguageChangingTo=n;const r=$();this.emit("languageChanging",n);const i=n=>{this.language=n,this.languages=this.services.languageUtils.toResolveHierarchy(n),this.resolvedLanguage=void 0,this.setResolvedLanguage(n)},o=(n,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return t.t(...arguments)})),e&&e(n,(function(){return t.t(...arguments)}))},s=e=>{n||e||!this.services.languageDetector||(e=[]);const t="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);t&&(this.language||i(t),this.translator.language||this.translator.changeLanguage(t),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(t)),this.loadResources(t,(n=>{o(n,t)}))};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(n):s(this.services.languageDetector.detect()),r}getFixedT(n,e,t){var r=this;const i=function(n,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([n,e].concat(a))}else o={...e};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||t||i.keyPrefix;const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(n)?n.map((n=>`${o.keyPrefix}${c}${n}`)):o.keyPrefix?`${o.keyPrefix}${c}${n}`:n,r.t(u,o)};return"string"==typeof n?i.lng=n:i.lngs=n,i.ns=e,i.keyPrefix=t,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=e.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(n,e)=>{const t=this.services.backendConnector.state[`${n}|${e}`];return-1===t||2===t};if(e.precheck){const n=e.precheck(this,o);if(void 0!==n)return n}return!!this.hasResourceBundle(t,n)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,n)||r&&!o(i,n)))}loadNamespaces(n,e){const t=$();return this.options.ns?("string"==typeof n&&(n=[n]),n.forEach((n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)})),this.loadResources((n=>{t.resolve(),e&&e(n)})),t):(e&&e(),Promise.resolve())}loadLanguages(n,e){const t=$();"string"==typeof n&&(n=[n]);const r=this.options.preload||[],i=n.filter((n=>r.indexOf(n)<0&&this.services.languageUtils.isSupportedCode(n)));return i.length?(this.options.preload=r.concat(i),this.loadResources((n=>{t.resolve(),e&&e(n)})),t):(e&&e(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";const e=this.services&&this.services.languageUtils||new sn(bn());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn;const t=n.forkResourceStore;t&&delete n.forkResourceStore;const r={...this.options,...n,isClone:!0},i=new wn(r);void 0===n.debug&&void 0===n.prefix||(i.logger=i.logger.clone(n));return["store","services","language"].forEach((n=>{i[n]=this[n]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},t&&(i.store=new nn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new rn(i.services,r),i.translator.on("*",(function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];i.emit(n,...t)})),i.init(r,e),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kn=wn.createInstance();kn.createInstance=wn.createInstance,kn.createInstance,kn.dir,kn.init,kn.loadResources,kn.reloadResources,kn.use,kn.changeLanguage,kn.getFixedT,kn.t,kn.exists,kn.setDefaultNamespace,kn.hasLoadedNamespace,kn.loadNamespaces,kn.loadLanguages;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function _n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Sn(n){if(n.__esModule)return n;var e=n.default;if("function"==typeof e){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach((function(e){var r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})})),t}const En={};function On(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];"string"==typeof e[0]&&En[e[0]]||("string"==typeof e[0]&&(En[e[0]]=new Date),function(){if(console&&console.warn){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];"string"==typeof e[0]&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}(...e))}const Cn=(n,e)=>()=>{if(n.isInitialized)e();else{const t=()=>{setTimeout((()=>{n.off("initialized",t)}),0),e()};n.on("initialized",t)}};function Nn(n,e,t){n.loadNamespaces(e,Cn(n,t))}function Tn(n,e,t,r){"string"==typeof t&&(t=[t]),t.forEach((e=>{n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),n.loadLanguages(e,Cn(n,r))}const An=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Dn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Pn=n=>Dn[n];let Ln,Mn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:n=>n.replace(An,Pn)};const In={type:"3rdParty",init(n){!function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Mn={...Mn,...n}}(n.options.react),function(n){Ln=n}(n)}},Rn=o();class Fn{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach((n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function jn(n,e,t,r){return n.getFixedT(e,t,r)}function zn(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:t}=e,{i18n:r,defaultNS:i}=s(Rn)||{},o=t||r||Ln;if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Fn),!o){On("You will need to pass in an i18next instance by using initReactI18next");const n=(n,e)=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.defaultValue?e.defaultValue:Array.isArray(n)?n[n.length-1]:n,e=[n,{},!1];return e.t=n,e.i18n={},e.ready=!1,e}o.options.react&&void 0!==o.options.react.wait&&On("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...Mn,...o.options.react,...e},{useSuspense:f,keyPrefix:h}=d;let p=n||i||o.options&&o.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(p);const g=(o.isInitialized||o.initializedStoreOnce)&&p.every((n=>function(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(e,r)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!r(e.isLanguageChangingTo,n))return!1}}):function(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.languages[0],i=!!e.options&&e.options.fallbackLng,o=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;const s=(n,t)=>{const r=e.services.backendConnector.state[`${n}|${t}`];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,n)||!e.hasResourceBundle(r,n)&&e.services.backendConnector.backend&&(!e.options.resources||e.options.partialBundledLanguages)&&(!s(r,n)||i&&!s(o,n)))}(n,e,t):(On("i18n.languages were undefined or empty",e.languages),!0)}(n,o,d))),m=function(n,e,t,r){return u(jn(n,e,t,r),[n,e,t,r])}(o,e.lng||null,"fallback"===d.nsMode?p:p[0],h),v=()=>m,b=()=>jn(o,e.lng||null,"fallback"===d.nsMode?p:p[0],h),[y,x]=a(v);let w=p.join();e.lng&&(w=`${e.lng}${w}`);const k=((n,e)=>{const t=l();return c((()=>{t.current=n}),[n,e]),t.current})(w),_=l(!0);c((()=>{const{bindI18n:n,bindI18nStore:t}=d;function r(){_.current&&x(b)}return _.current=!0,g||f||(e.lng?Tn(o,e.lng,p,(()=>{_.current&&x(b)})):Nn(o,p,(()=>{_.current&&x(b)}))),g&&k&&k!==w&&_.current&&x(b),n&&o&&o.on(n,r),t&&o&&o.store.on(t,r),()=>{_.current=!1,n&&o&&n.split(" ").forEach((n=>o.off(n,r))),t&&o&&t.split(" ").forEach((n=>o.store.off(n,r)))}}),[o,w]),c((()=>{_.current&&g&&x(v)}),[o,h,g]);const S=[y,o,g];if(S.t=y,S.i18n=o,S.ready=g,g)return S;if(!g&&!f)return S;throw new Promise((n=>{e.lng?Tn(o,e.lng,p,(()=>n())):Nn(o,p,(()=>n()))}))}var $n,Yn,Un,Vn,Bn,Hn=function(){return Hn=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},Hn.apply(this,arguments)};function Wn(n,e,t,r){return new(t||(t=Promise))((function(i,o){function s(n){try{l(r.next(n))}catch(n){o(n)}}function a(n){try{l(r.throw(n))}catch(n){o(n)}}function l(n){n.done?i(n.value):function(n){return n instanceof t?n:new t((function(e){e(n)}))}(n.value).then(s,a)}l((r=r.apply(n,e||[])).next())}))}function qn(n,e){var t,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(n,s)}catch(n){a=[6,n],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function Gn(n,e,t){if(t||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))}function Zn(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}"function"==typeof SuppressedError&&SuppressedError,function(n){n.NOT_SHOW="modal-not-show",n.ENTERED="modal-entered",n.EXITED="modal-exited",n.OK_CLICK="modal-ok-button-click",n.CANCEL_CLICK="modal-cancel-button-click",n.CLOSE_CLICK="modal-close-button-click",n.OUTSIDE_CLICK="modal-outside-click",n.ESC_CLICK="modal-esc-click",n.ALL_REMOVED="modal-all-removed"}($n||($n={})),function(n){n.SVG="image/svg+xml",n.PNG="image/png",n.JPG="image/jpeg",n.GIF="image/gif",n.PDF="application/pdf",n.OTF="font/otf"}(Yn||(Yn={})),function(n){n.SVG=".svg",n.PNG=".png",n.JPG=".jpeg",n.GIF=".gif",n.PDF=".pdf",n.OTF=".otf"}(Un||(Un={})),function(n){n.REQUIRED="required",n.TYPE="type"}(Vn||(Vn={})),function(n){n.MIN_LENGTH="minLength",n.MAX_LENGTH="maxLength",n.EXACT_LENGTH="exactLength",n.SAME="same",n.TC_IDENTITY="TCIdentity",n.PASSWORD="password",n.EMAIL="email",n.USERNAME="username"}(Bn||(Bn={}));const Qn=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),Kn=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),Jn=["background: #3598FE","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),Xn=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #111111","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ee=["background-image: url('https://i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let te={single:(n,e="info")=>{var t="";"info"===e&&(t=Qn),"error"===e&&(t=Kn),console.log("%c "+n+" ",t),"error"===e&&console.log("%c "+n,ee)},double:(n,e,t="info")=>{var r="";"info"===t&&(r=Jn),"error"===t&&(r=Xn),console.log("%c "+n+": %c "+e+" ",r,ne)},table:n=>{console.table(n)}};var re=function(n){var e,t=a(""),r=t[0],i=t[1];c((function(){return function(){document.body.removeChild(e)}}),[]);return{loadReCaptcha:function(n){(e=document.createElement("script")).src="https://www.google.com/recaptcha/api.js?render="+n,e.onload=function(){i(n)},document.body.appendChild(e)},executeReCaptcha:function(){if(""===r)return te.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(n&&n(null));window.grecaptcha.ready((function(e){try{window.grecaptcha.execute(r,{action:"login"}).then((function(e){te.double("ReCaptcha V3","Token is valid"),console.log("token: "+e),n&&n(e)}))}catch(n){te.double("ReCaptcha V3","Token is invalid","error")}}))}}},ie=function(n){void 0===n&&(n=function(){});var e=a(!1),t=e[0],r=e[1];t||(n(),r(!0))},oe=function(n,e){void 0===e&&(e=!1),c((function(){var r=!1,i=document.head,o=t();return document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&(r=!0)})),r||i.appendChild(o),function(){e&&document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&document.head.removeChild(e)}))}}),[n]);var t=function(){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=n,e}},se="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ae="object"==typeof se&&se&&se.Object===Object&&se,le="object"==typeof self&&self&&self.Object===Object&&self,ce=(ae||le||Function("return this")()).Symbol;var ue=Array.isArray,de=Object.prototype,fe=de.hasOwnProperty,he=de.toString,pe=ce?ce.toStringTag:void 0;var ge=Object.prototype.toString;var me="[object Null]",ve="[object Undefined]",be=ce?ce.toStringTag:void 0;function ye(n){return null==n?void 0===n?ve:me:be&&be in Object(n)?function(n){var e=fe.call(n,pe),t=n[pe];try{n[pe]=void 0;var r=!0}catch(n){}var i=he.call(n);return r&&(e?n[pe]=t:delete n[pe]),i}(n):function(n){return ge.call(n)}(n)}var xe="[object Symbol]";var we=1/0,ke=ce?ce.prototype:void 0,_e=ke?ke.toString:void 0;function Se(n){if("string"==typeof n)return n;if(ue(n))return function(n,e){for(var t=-1,r=null==n?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}(n,Se)+"";if(function(n){return"symbol"==typeof n||function(n){return null!=n&&"object"==typeof n}(n)&&ye(n)==xe}(n))return _e?_e.call(n):"";var e=n+"";return"0"==e&&1/n==-we?"-0":e}var Ee=0;function Oe(n){var e=++Ee;return function(n){return null==n?"":Se(n)}(n)+e}var Ce={exports:{}},Ne={exports:{}},Te={exports:{}},Ae={exports:{}},De={exports:{}},Pe={exports:{}},Le={},Me={exports:{}};!function(n,e){function t(n){for(var e=n.toLowerCase(),t="",r=!1,i=0;i<6&&void 0!==e[i];i++){var o=e.charCodeAt(i);if(r=32===o,!(o>=97&&o<=102||o>=48&&o<=57))break;t+=e[i]}if(0!==t.length){var s=parseInt(t,16);return s>=55296&&s<=57343||0===s||s>1114111?["�",t.length+(r?1:0)]:[String.fromCodePoint(s),t.length+(r?1:0)]}}e.__esModule=!0,e.default=function(n){var e=r.test(n);if(!e)return n;for(var i="",o=0;o<n.length;o++)if("\\"!==n[o])i+=n[o];else{var s=t(n.slice(o+1,o+7));if(void 0!==s){i+=s[0],o+=s[1];continue}if("\\"===n[o+1]){i+="\\",o++;continue}n.length===o+1&&(i+=n[o])}return i};var r=/\\/;n.exports=e.default}(Me,Me.exports);var Ie,Re,Fe=Me.exports,je={exports:{}};Ie=je,(Re=je.exports).__esModule=!0,Re.default=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];for(;t.length>0;){var i=t.shift();if(!n[i])return;n=n[i]}return n},Ie.exports=Re.default;var ze=je.exports,$e={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];for(;t.length>0;){var i=t.shift();n[i]||(n[i]={}),n=n[i]}},n.exports=e.default}($e,$e.exports);var Ye=$e.exports,Ue={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){var e="",t=n.indexOf("/*"),r=0;for(;t>=0;){e+=n.slice(r,t);var i=n.indexOf("*/",t+2);if(i<0)return e;r=i+2,t=n.indexOf("/*",r)}return e+=n.slice(r),e},n.exports=e.default}(Ue,Ue.exports);var Ve=Ue.exports;Le.__esModule=!0,Le.unesc=Le.stripComments=Le.getProp=Le.ensureObject=void 0;var Be=Ge(Fe);Le.unesc=Be.default;var He=Ge(ze);Le.getProp=He.default;var We=Ge(Ye);Le.ensureObject=We.default;var qe=Ge(Ve);function Ge(n){return n&&n.__esModule?n:{default:n}}Le.stripComments=qe.default,function(n,e){e.__esModule=!0,e.default=void 0;var t=Le;function r(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var i=function n(e,t){if("object"!=typeof e||null===e)return e;var r=new e.constructor;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];"parent"===i&&"object"===typeof o?t&&(r[i]=t):r[i]=o instanceof Array?o.map((function(e){return n(e,r)})):n(o,r)}return r},o=function(){function n(n){void 0===n&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var e=n.prototype;return e.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},e.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.clone=function(n){void 0===n&&(n={});var e=i(this);for(var t in n)e[t]=n[t];return e},e.appendToPropertyAndEscape=function(n,e,t){this.raws||(this.raws={});var r=this[n],i=this.raws[n];this[n]=r+e,i||t!==e?this.raws[n]=(i||r)+t:delete this.raws[n]},e.setPropertyAndEscape=function(n,e,t){this.raws||(this.raws={}),this[n]=e,this.raws[n]=t},e.setPropertyWithoutEscape=function(n,e){this[n]=e,this.raws&&delete this.raws[n]},e.isAtPosition=function(n,e){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n)&&(!(this.source.end.line<n)&&(!(this.source.start.line===n&&this.source.start.column>e)&&!(this.source.end.line===n&&this.source.end.column<e)))},e.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},e.valueToString=function(){return String(this.stringifyProperty("value"))},e.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},r(n,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===n&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===n&&(n=this.spaces.after),n||""},set:function(n){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),n}();e.default=o,n.exports=e.default}(Pe,Pe.exports);var Ze=Pe.exports,Qe={__esModule:!0};Qe.UNIVERSAL=Qe.TAG=Qe.STRING=Qe.SELECTOR=Qe.ROOT=Qe.PSEUDO=Qe.NESTING=Qe.ID=Qe.COMMENT=Qe.COMBINATOR=Qe.CLASS=Qe.ATTRIBUTE=void 0;Qe.TAG="tag";Qe.STRING="string";Qe.SELECTOR="selector";Qe.ROOT="root";Qe.PSEUDO="pseudo";Qe.NESTING="nesting";Qe.ID="id";Qe.COMMENT="comment";Qe.COMBINATOR="combinator";Qe.CLASS="class";Qe.ATTRIBUTE="attribute";Qe.UNIVERSAL="universal",function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=o(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=i?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(Qe);function o(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(o=function(n){return n?t:e})(n)}function s(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(n,e)}(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function l(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function c(n,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},c(n,e)}var u=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).nodes||(t.nodes=[]),t}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t);var o=r.prototype;return o.append=function(n){return n.parent=this,this.nodes.push(n),this},o.prepend=function(n){return n.parent=this,this.nodes.unshift(n),this},o.at=function(n){return this.nodes[n]},o.index=function(n){return"number"==typeof n?n:this.nodes.indexOf(n)},o.removeChild=function(n){var e;for(var t in n=this.index(n),this.at(n).parent=void 0,this.nodes.splice(n,1),this.indexes)(e=this.indexes[t])>=n&&(this.indexes[t]=e-1);return this},o.removeAll=function(){for(var n,e=s(this.nodes);!(n=e()).done;){n.value.parent=void 0}return this.nodes=[],this},o.empty=function(){return this.removeAll()},o.insertAfter=function(n,e){e.parent=this;var t,r=this.index(n);for(var i in this.nodes.splice(r+1,0,e),e.parent=this,this.indexes)r<=(t=this.indexes[i])&&(this.indexes[i]=t+1);return this},o.insertBefore=function(n,e){e.parent=this;var t,r=this.index(n);for(var i in this.nodes.splice(r,0,e),e.parent=this,this.indexes)(t=this.indexes[i])<=r&&(this.indexes[i]=t+1);return this},o._findChildAtPosition=function(n,e){var t=void 0;return this.each((function(r){if(r.atPosition){var i=r.atPosition(n,e);if(i)return t=i,!1}else if(r.isAtPosition(n,e))return t=r,!1})),t},o.atPosition=function(n,e){return this.isAtPosition(n,e)?this._findChildAtPosition(n,e)||this:void 0},o._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},o.each=function(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var e=this.lastEach;if(this.indexes[e]=0,this.length){for(var t,r;this.indexes[e]<this.length&&(t=this.indexes[e],!1!==(r=n(this.at(t),t)));)this.indexes[e]+=1;return delete this.indexes[e],!1!==r&&void 0}},o.walk=function(n){return this.each((function(e,t){var r=n(e,t);if(!1!==r&&e.length&&(r=e.walk(n)),!1===r)return!1}))},o.walkAttributes=function(n){var e=this;return this.walk((function(t){if(t.type===i.ATTRIBUTE)return n.call(e,t)}))},o.walkClasses=function(n){var e=this;return this.walk((function(t){if(t.type===i.CLASS)return n.call(e,t)}))},o.walkCombinators=function(n){var e=this;return this.walk((function(t){if(t.type===i.COMBINATOR)return n.call(e,t)}))},o.walkComments=function(n){var e=this;return this.walk((function(t){if(t.type===i.COMMENT)return n.call(e,t)}))},o.walkIds=function(n){var e=this;return this.walk((function(t){if(t.type===i.ID)return n.call(e,t)}))},o.walkNesting=function(n){var e=this;return this.walk((function(t){if(t.type===i.NESTING)return n.call(e,t)}))},o.walkPseudos=function(n){var e=this;return this.walk((function(t){if(t.type===i.PSEUDO)return n.call(e,t)}))},o.walkTags=function(n){var e=this;return this.walk((function(t){if(t.type===i.TAG)return n.call(e,t)}))},o.walkUniversals=function(n){var e=this;return this.walk((function(t){if(t.type===i.UNIVERSAL)return n.call(e,t)}))},o.split=function(n){var e=this,t=[];return this.reduce((function(r,i,o){var s=n.call(e,i);return t.push(i),s?(r.push(t),t=[]):o===e.length-1&&r.push(t),r}),[])},o.map=function(n){return this.nodes.map(n)},o.reduce=function(n,e){return this.nodes.reduce(n,e)},o.every=function(n){return this.nodes.every(n)},o.some=function(n){return this.nodes.some(n)},o.filter=function(n){return this.nodes.filter(n)},o.sort=function(n){return this.nodes.sort(n)},o.toString=function(){return this.map(String).join("")},l(r,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),r}(r.default);e.default=u,n.exports=e.default}(De,De.exports);var Ke=De.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function s(n,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},s(n,e)}var a=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.ROOT,t}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t);var a=r.prototype;return a.toString=function(){var n=this.reduce((function(n,e){return n.push(String(e)),n}),[]).join(",");return this.trailingComma?n+",":n},a.error=function(n,e){return this._error?this._error(n,e):new Error(n)},o(r,[{key:"errorGenerator",set:function(n){this._error=n}}]),r}(r.default);e.default=a,n.exports=e.default}(Ae,Ae.exports);var Je=Ae.exports,Xe={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.SELECTOR,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Xe,Xe.exports);var nt=Xe.exports,et={exports:{}},tt={}.hasOwnProperty,rt=/[ -,\.\/:-@\[-\^`\{-~]/,it=/[ -,\.\/:-@\[\]\^`\{-~]/,ot=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,st=function n(e,t){t=function(n,e){if(!n)return e;var t={};for(var r in e)t[r]=tt.call(n,r)?n[r]:e[r];return t}(t,n.options),"single"!=t.quotes&&"double"!=t.quotes&&(t.quotes="single");for(var r="double"==t.quotes?'"':"'",i=t.isIdentifier,o=e.charAt(0),s="",a=0,l=e.length;a<l;){var c=e.charAt(a++),u=c.charCodeAt(),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<l){var f=e.charCodeAt(a++);56320==(64512&f)?u=((1023&u)<<10)+(1023&f)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=t.escapeEverything?rt.test(c)?"\\"+c:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==c||!i&&('"'==c&&r==c||"'"==c&&r==c)||i&&it.test(c)?"\\"+c:c;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(ot,(function(n,e,t){return e&&e.length%2?n:(e||"")+t})),!i&&t.wrap?r+s+r:s};st.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},st.version="3.0.0";var at=st;!function(n,e){e.__esModule=!0,e.default=void 0;var t=s(at),r=Le,i=s(Ze),o=Qe;function s(n){return n&&n.__esModule?n:{default:n}}function a(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function l(n,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},l(n,e)}var c=function(n){var e,i;function s(e){var t;return(t=n.call(this,e)||this).type=o.CLASS,t._constructed=!0,t}return i=n,(e=s).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i),s.prototype.valueToString=function(){return"."+n.prototype.valueToString.call(this)},a(s,[{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var e=(0,t.default)(n,{isIdentifier:!0});e!==n?((0,r.ensureObject)(this,"raws"),this.raws.value=e):this.raws&&delete this.raws.value}this._value=n}}]),s}(i.default);e.default=c,n.exports=e.default}(et,et.exports);var lt=et.exports,ct={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.COMMENT,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(ct,ct.exports);var ut=ct.exports,dt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.ID,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r.prototype.valueToString=function(){return"#"+n.prototype.valueToString.call(this)},r}(r.default);e.default=s,n.exports=e.default}(dt,dt.exports);var ft=dt.exports,ht={exports:{}},pt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t=i(at),r=Le;function i(n){return n&&n.__esModule?n:{default:n}}function o(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function s(n,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},s(n,e)}var a=function(n){var e,i;function a(){return n.apply(this,arguments)||this}i=n,(e=a).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var l=a.prototype;return l.qualifiedName=function(n){return this.namespace?this.namespaceString+"|"+n:n},l.valueToString=function(){return this.qualifiedName(n.prototype.valueToString.call(this))},o(a,[{key:"namespace",get:function(){return this._namespace},set:function(n){if(!0===n||"*"===n||"&"===n)return this._namespace=n,void(this.raws&&delete this.raws.namespace);var e=(0,t.default)(n,{isIdentifier:!0});this._namespace=n,e!==n?((0,r.ensureObject)(this,"raws"),this.raws.namespace=e):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(n){this.namespace=n}},{key:"namespaceString",get:function(){if(this.namespace){var n=this.stringifyProperty("namespace");return!0===n?"":n}return""}}]),a}(i(Ze).default);e.default=a,n.exports=e.default}(pt,pt.exports);var gt=pt.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=gt)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.TAG,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(ht,ht.exports);var mt=ht.exports,vt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.STRING,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(vt,vt.exports);var bt=vt.exports,yt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.PSEUDO,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r.prototype.toString=function(){var n=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),n,this.rawSpaceAfter].join("")},r}(r.default);e.default=s,n.exports=e.default}(yt,yt.exports);var xt=yt.exports,wt={},kt=[],_t=[],St="undefined"!=typeof Uint8Array?Uint8Array:Array,Et=!1;function Ot(){Et=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)kt[e]=n[e],_t[n.charCodeAt(e)]=e;_t["-".charCodeAt(0)]=62,_t["_".charCodeAt(0)]=63}function Ct(n,e,t){for(var r,i,o=[],s=e;s<t;s+=3)r=(n[s]<<16)+(n[s+1]<<8)+n[s+2],o.push(kt[(i=r)>>18&63]+kt[i>>12&63]+kt[i>>6&63]+kt[63&i]);return o.join("")}function Nt(n){var e;Et||Ot();for(var t=n.length,r=t%3,i="",o=[],s=16383,a=0,l=t-r;a<l;a+=s)o.push(Ct(n,a,a+s>l?l:a+s));return 1===r?(e=n[t-1],i+=kt[e>>2],i+=kt[e<<4&63],i+="=="):2===r&&(e=(n[t-2]<<8)+n[t-1],i+=kt[e>>10],i+=kt[e>>4&63],i+=kt[e<<2&63],i+="="),o.push(i),o.join("")}function Tt(n,e,t,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=t?i-1:0,f=t?-1:1,h=n[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+n[e+d],d+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+n[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function At(n,e,t,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*l-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;n[t+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;n[t+h]=255&s,h+=p,s/=256,c-=8);n[t+h-p]|=128*g}var Dt={}.toString,Pt=Array.isArray||function(n){return"[object Array]"==Dt.call(n)};function Lt(){return It.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Mt(n,e){if(Lt()<e)throw new RangeError("Invalid typed array length");return It.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=It.prototype:(null===n&&(n=new It(e)),n.length=e),n}function It(n,e,t){if(!(It.TYPED_ARRAY_SUPPORT||this instanceof It))return new It(n,e,t);if("number"==typeof n){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return jt(this,n)}return Rt(this,n,e,t)}function Rt(n,e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(n,e,t,r){if(e.byteLength,t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);It.TYPED_ARRAY_SUPPORT?(n=e).__proto__=It.prototype:n=zt(n,e);return n}(n,e,t,r):"string"==typeof e?function(n,e,t){"string"==typeof t&&""!==t||(t="utf8");if(!It.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Ut(e,t);n=Mt(n,r);var i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(n,e,t):function(n,e){if(Yt(e)){var t=0|$t(e.length);return 0===(n=Mt(n,t)).length||e.copy(n,0,0,t),n}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?Mt(n,0):zt(n,e);if("Buffer"===e.type&&Pt(e.data))return zt(n,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(n,e)}function Ft(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function jt(n,e){if(Ft(e),n=Mt(n,e<0?0:0|$t(e)),!It.TYPED_ARRAY_SUPPORT)for(var t=0;t<e;++t)n[t]=0;return n}function zt(n,e){var t=e.length<0?0:0|$t(e.length);n=Mt(n,t);for(var r=0;r<t;r+=1)n[r]=255&e[r];return n}function $t(n){if(n>=Lt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Lt().toString(16)+" bytes");return 0|n}function Yt(n){return!(null==n||!n._isBuffer)}function Ut(n,e){if(Yt(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var t=n.length;if(0===t)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return gr(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return mr(n).length;default:if(r)return gr(n).length;e=(""+e).toLowerCase(),r=!0}}function Vt(n,e,t){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ir(this,e,t);case"utf8":case"utf-8":return nr(this,e,t);case"ascii":return tr(this,e,t);case"latin1":case"binary":return rr(this,e,t);case"base64":return Xt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return or(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function Bt(n,e,t){var r=n[e];n[e]=n[t],n[t]=r}function Ht(n,e,t,r,i){if(0===n.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=i?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(i)return-1;t=n.length-1}else if(t<0){if(!i)return-1;t=0}if("string"==typeof e&&(e=It.from(e,r)),Yt(e))return 0===e.length?-1:Wt(n,e,t,r,i);if("number"==typeof e)return e&=255,It.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,e,t):Uint8Array.prototype.lastIndexOf.call(n,e,t):Wt(n,[e],t,r,i);throw new TypeError("val must be string, number or Buffer")}function Wt(n,e,t,r,i){var o,s=1,a=n.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||e.length<2)return-1;s=2,a/=2,l/=2,t/=2}function c(n,e){return 1===s?n[e]:n.readUInt16BE(e*s)}if(i){var u=-1;for(o=t;o<a;o++)if(c(n,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(t+l>a&&(t=a-l),o=t;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(n,o+f)!==c(e,f)){d=!1;break}if(d)return o}return-1}function qt(n,e,t,r){t=Number(t)||0;var i=n.length-t;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;n[t+s]=a}return s}function Gt(n,e,t,r){return vr(gr(e,n.length-t),n,t,r)}function Zt(n,e,t,r){return vr(function(n){for(var e=[],t=0;t<n.length;++t)e.push(255&n.charCodeAt(t));return e}(e),n,t,r)}function Qt(n,e,t,r){return Zt(n,e,t,r)}function Kt(n,e,t,r){return vr(mr(e),n,t,r)}function Jt(n,e,t,r){return vr(function(n,e){for(var t,r,i,o=[],s=0;s<n.length&&!((e-=2)<0);++s)r=(t=n.charCodeAt(s))>>8,i=t%256,o.push(i),o.push(r);return o}(e,n.length-t),n,t,r)}function Xt(n,e,t){return 0===e&&t===n.length?Nt(n):Nt(n.slice(e,t))}function nr(n,e,t){t=Math.min(n.length,t);for(var r=[],i=e;i<t;){var o,s,a,l,c=n[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=t)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=n[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=n[i+1],s=n[i+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=n[i+1],s=n[i+2],a=n[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(n){var e=n.length;if(e<=er)return String.fromCharCode.apply(String,n);var t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,n.slice(r,r+=er));return t}(r)}It.TYPED_ARRAY_SUPPORT=void 0===se.TYPED_ARRAY_SUPPORT||se.TYPED_ARRAY_SUPPORT,Lt(),It.poolSize=8192,It._augment=function(n){return n.__proto__=It.prototype,n},It.from=function(n,e,t){return Rt(null,n,e,t)},It.TYPED_ARRAY_SUPPORT&&(It.prototype.__proto__=Uint8Array.prototype,It.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&It[Symbol.species]),It.alloc=function(n,e,t){return function(n,e,t,r){return Ft(e),e<=0?Mt(n,e):void 0!==t?"string"==typeof r?Mt(n,e).fill(t,r):Mt(n,e).fill(t):Mt(n,e)}(null,n,e,t)},It.allocUnsafe=function(n){return jt(null,n)},It.allocUnsafeSlow=function(n){return jt(null,n)},It.isBuffer=br,It.compare=function(n,e){if(!Yt(n)||!Yt(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var t=n.length,r=e.length,i=0,o=Math.min(t,r);i<o;++i)if(n[i]!==e[i]){t=n[i],r=e[i];break}return t<r?-1:r<t?1:0},It.isEncoding=function(n){switch(String(n).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}},It.concat=function(n,e){if(!Pt(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return It.alloc(0);var t;if(void 0===e)for(e=0,t=0;t<n.length;++t)e+=n[t].length;var r=It.allocUnsafe(e),i=0;for(t=0;t<n.length;++t){var o=n[t];if(!Yt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},It.byteLength=Ut,It.prototype._isBuffer=!0,It.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<n;e+=2)Bt(this,e,e+1);return this},It.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<n;e+=4)Bt(this,e,e+3),Bt(this,e+1,e+2);return this},It.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<n;e+=8)Bt(this,e,e+7),Bt(this,e+1,e+6),Bt(this,e+2,e+5),Bt(this,e+3,e+4);return this},It.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?nr(this,0,n):Vt.apply(this,arguments)},It.prototype.equals=function(n){if(!Yt(n))throw new TypeError("Argument must be a Buffer");return this===n||0===It.compare(this,n)},It.prototype.inspect=function(){var n="";return this.length>0&&(n=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(n+=" ... ")),"<Buffer "+n+">"},It.prototype.compare=function(n,e,t,r,i){if(!Yt(n))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=n?n.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||t>n.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=t)return 0;if(r>=i)return-1;if(e>=t)return 1;if(this===n)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(t>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),c=n.slice(e,t),u=0;u<a;++u)if(l[u]!==c[u]){o=l[u],s=c[u];break}return o<s?-1:s<o?1:0},It.prototype.includes=function(n,e,t){return-1!==this.indexOf(n,e,t)},It.prototype.indexOf=function(n,e,t){return Ht(this,n,e,t,!0)},It.prototype.lastIndexOf=function(n,e,t){return Ht(this,n,e,t,!1)},It.prototype.write=function(n,e,t,r){if(void 0===e)r="utf8",t=this.length,e=0;else if(void 0===t&&"string"==typeof e)r=e,t=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(t)?(t|=0,void 0===r&&(r="utf8")):(r=t,t=void 0)}var i=this.length-e;if((void 0===t||t>i)&&(t=i),n.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return qt(this,n,e,t);case"utf8":case"utf-8":return Gt(this,n,e,t);case"ascii":return Zt(this,n,e,t);case"latin1":case"binary":return Qt(this,n,e,t);case"base64":return Kt(this,n,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt(this,n,e,t);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},It.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var er=4096;function tr(n,e,t){var r="";t=Math.min(n.length,t);for(var i=e;i<t;++i)r+=String.fromCharCode(127&n[i]);return r}function rr(n,e,t){var r="";t=Math.min(n.length,t);for(var i=e;i<t;++i)r+=String.fromCharCode(n[i]);return r}function ir(n,e,t){var r=n.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);for(var i="",o=e;o<t;++o)i+=pr(n[o]);return i}function or(n,e,t){for(var r=n.slice(e,t),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function sr(n,e,t){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+e>t)throw new RangeError("Trying to access beyond buffer length")}function ar(n,e,t,r,i,o){if(!Yt(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(t+r>n.length)throw new RangeError("Index out of range")}function lr(n,e,t,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(n.length-t,2);i<o;++i)n[t+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function cr(n,e,t,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(n.length-t,4);i<o;++i)n[t+i]=e>>>8*(r?i:3-i)&255}function ur(n,e,t,r,i,o){if(t+r>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function dr(n,e,t,r,i){return i||ur(n,0,t,4),At(n,e,t,r,23,4),t+4}function fr(n,e,t,r,i){return i||ur(n,0,t,8),At(n,e,t,r,52,8),t+8}It.prototype.slice=function(n,e){var t,r=this.length;if((n=~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<n&&(e=n),It.TYPED_ARRAY_SUPPORT)(t=this.subarray(n,e)).__proto__=It.prototype;else{var i=e-n;t=new It(i,void 0);for(var o=0;o<i;++o)t[o]=this[o+n]}return t},It.prototype.readUIntLE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n],i=1,o=0;++o<e&&(i*=256);)r+=this[n+o]*i;return r},It.prototype.readUIntBE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n+--e],i=1;e>0&&(i*=256);)r+=this[n+--e]*i;return r},It.prototype.readUInt8=function(n,e){return e||sr(n,1,this.length),this[n]},It.prototype.readUInt16LE=function(n,e){return e||sr(n,2,this.length),this[n]|this[n+1]<<8},It.prototype.readUInt16BE=function(n,e){return e||sr(n,2,this.length),this[n]<<8|this[n+1]},It.prototype.readUInt32LE=function(n,e){return e||sr(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},It.prototype.readUInt32BE=function(n,e){return e||sr(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},It.prototype.readIntLE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n],i=1,o=0;++o<e&&(i*=256);)r+=this[n+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},It.prototype.readIntBE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=e,i=1,o=this[n+--r];r>0&&(i*=256);)o+=this[n+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},It.prototype.readInt8=function(n,e){return e||sr(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},It.prototype.readInt16LE=function(n,e){e||sr(n,2,this.length);var t=this[n]|this[n+1]<<8;return 32768&t?4294901760|t:t},It.prototype.readInt16BE=function(n,e){e||sr(n,2,this.length);var t=this[n+1]|this[n]<<8;return 32768&t?4294901760|t:t},It.prototype.readInt32LE=function(n,e){return e||sr(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},It.prototype.readInt32BE=function(n,e){return e||sr(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},It.prototype.readFloatLE=function(n,e){return e||sr(n,4,this.length),Tt(this,n,!0,23,4)},It.prototype.readFloatBE=function(n,e){return e||sr(n,4,this.length),Tt(this,n,!1,23,4)},It.prototype.readDoubleLE=function(n,e){return e||sr(n,8,this.length),Tt(this,n,!0,52,8)},It.prototype.readDoubleBE=function(n,e){return e||sr(n,8,this.length),Tt(this,n,!1,52,8)},It.prototype.writeUIntLE=function(n,e,t,r){(n=+n,e|=0,t|=0,r)||ar(this,n,e,t,Math.pow(2,8*t)-1,0);var i=1,o=0;for(this[e]=255&n;++o<t&&(i*=256);)this[e+o]=n/i&255;return e+t},It.prototype.writeUIntBE=function(n,e,t,r){(n=+n,e|=0,t|=0,r)||ar(this,n,e,t,Math.pow(2,8*t)-1,0);var i=t-1,o=1;for(this[e+i]=255&n;--i>=0&&(o*=256);)this[e+i]=n/o&255;return e+t},It.prototype.writeUInt8=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,1,255,0),It.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=255&n,e+1},It.prototype.writeUInt16LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,65535,0),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):lr(this,n,e,!0),e+2},It.prototype.writeUInt16BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,65535,0),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):lr(this,n,e,!1),e+2},It.prototype.writeUInt32LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,4294967295,0),It.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=255&n):cr(this,n,e,!0),e+4},It.prototype.writeUInt32BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,4294967295,0),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):cr(this,n,e,!1),e+4},It.prototype.writeIntLE=function(n,e,t,r){if(n=+n,e|=0,!r){var i=Math.pow(2,8*t-1);ar(this,n,e,t,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&n;++o<t&&(s*=256);)n<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(n/s|0)-a&255;return e+t},It.prototype.writeIntBE=function(n,e,t,r){if(n=+n,e|=0,!r){var i=Math.pow(2,8*t-1);ar(this,n,e,t,i-1,-i)}var o=t-1,s=1,a=0;for(this[e+o]=255&n;--o>=0&&(s*=256);)n<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(n/s|0)-a&255;return e+t},It.prototype.writeInt8=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,1,127,-128),It.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=255&n,e+1},It.prototype.writeInt16LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,32767,-32768),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):lr(this,n,e,!0),e+2},It.prototype.writeInt16BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,32767,-32768),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):lr(this,n,e,!1),e+2},It.prototype.writeInt32LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,2147483647,-2147483648),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):cr(this,n,e,!0),e+4},It.prototype.writeInt32BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):cr(this,n,e,!1),e+4},It.prototype.writeFloatLE=function(n,e,t){return dr(this,n,e,!0,t)},It.prototype.writeFloatBE=function(n,e,t){return dr(this,n,e,!1,t)},It.prototype.writeDoubleLE=function(n,e,t){return fr(this,n,e,!0,t)},It.prototype.writeDoubleBE=function(n,e,t){return fr(this,n,e,!1,t)},It.prototype.copy=function(n,e,t,r){if(t||(t=0),r||0===r||(r=this.length),e>=n.length&&(e=n.length),e||(e=0),r>0&&r<t&&(r=t),r===t)return 0;if(0===n.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),n.length-e<r-t&&(r=n.length-e+t);var i,o=r-t;if(this===n&&t<e&&e<r)for(i=o-1;i>=0;--i)n[i+e]=this[i+t];else if(o<1e3||!It.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)n[i+e]=this[i+t];else Uint8Array.prototype.set.call(n,this.subarray(t,t+o),e);return o},It.prototype.fill=function(n,e,t,r){if("string"==typeof n){if("string"==typeof e?(r=e,e=0,t=this.length):"string"==typeof t&&(r=t,t=this.length),1===n.length){var i=n.charCodeAt(0);i<256&&(n=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!It.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof n&&(n&=255);if(e<0||this.length<e||this.length<t)throw new RangeError("Out of range index");if(t<=e)return this;var o;if(e>>>=0,t=void 0===t?this.length:t>>>0,n||(n=0),"number"==typeof n)for(o=e;o<t;++o)this[o]=n;else{var s=Yt(n)?n:gr(new It(n,r).toString()),a=s.length;for(o=0;o<t-e;++o)this[o+e]=s[o%a]}return this};var hr=/[^+\/0-9A-Za-z-_]/g;function pr(n){return n<16?"0"+n.toString(16):n.toString(16)}function gr(n,e){var t;e=e||1/0;for(var r=n.length,i=null,o=[],s=0;s<r;++s){if((t=n.charCodeAt(s))>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&o.push(239,191,189),i=t;continue}t=65536+(i-55296<<10|t-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;o.push(t)}else if(t<2048){if((e-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function mr(n){return function(n){var e,t,r,i,o,s;Et||Ot();var a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===n[a-2]?2:"="===n[a-1]?1:0,s=new St(3*a/4-o),r=o>0?a-4:a;var l=0;for(e=0,t=0;e<r;e+=4,t+=3)i=_t[n.charCodeAt(e)]<<18|_t[n.charCodeAt(e+1)]<<12|_t[n.charCodeAt(e+2)]<<6|_t[n.charCodeAt(e+3)],s[l++]=i>>16&255,s[l++]=i>>8&255,s[l++]=255&i;return 2===o?(i=_t[n.charCodeAt(e)]<<2|_t[n.charCodeAt(e+1)]>>4,s[l++]=255&i):1===o&&(i=_t[n.charCodeAt(e)]<<10|_t[n.charCodeAt(e+1)]<<4|_t[n.charCodeAt(e+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s}(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(hr,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function vr(n,e,t,r){for(var i=0;i<r&&!(i+t>=e.length||i>=n.length);++i)e[i+t]=n[i];return i}function br(n){return null!=n&&(!!n._isBuffer||yr(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&yr(n.slice(0,0))}(n))}function yr(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}function xr(){throw new Error("setTimeout has not been defined")}function wr(){throw new Error("clearTimeout has not been defined")}var kr=xr,_r=wr;function Sr(n){if(kr===setTimeout)return setTimeout(n,0);if((kr===xr||!kr)&&setTimeout)return kr=setTimeout,setTimeout(n,0);try{return kr(n,0)}catch(e){try{return kr.call(null,n,0)}catch(e){return kr.call(this,n,0)}}}"function"==typeof se.setTimeout&&(kr=setTimeout),"function"==typeof se.clearTimeout&&(_r=clearTimeout);var Er,Or=[],Cr=!1,Nr=-1;function Tr(){Cr&&Er&&(Cr=!1,Er.length?Or=Er.concat(Or):Nr=-1,Or.length&&Ar())}function Ar(){if(!Cr){var n=Sr(Tr);Cr=!0;for(var e=Or.length;e;){for(Er=Or,Or=[];++Nr<e;)Er&&Er[Nr].run();Nr=-1,e=Or.length}Er=null,Cr=!1,function(n){if(_r===clearTimeout)return clearTimeout(n);if((_r===wr||!_r)&&clearTimeout)return _r=clearTimeout,clearTimeout(n);try{return _r(n)}catch(e){try{return _r.call(null,n)}catch(e){return _r.call(this,n)}}}(n)}}function Dr(n,e){this.fun=n,this.array=e}Dr.prototype.run=function(){this.fun.apply(null,this.array)};function Pr(){}var Lr=Pr,Mr=Pr,Ir=Pr,Rr=Pr,Fr=Pr,jr=Pr,zr=Pr;var $r=se.performance||{},Yr=$r.now||$r.mozNow||$r.msNow||$r.oNow||$r.webkitNow||function(){return(new Date).getTime()};var Ur=new Date;var Vr={nextTick:function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Or.push(new Dr(n,e)),1!==Or.length||Cr||Sr(Ar)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Lr,addListener:Mr,once:Ir,off:Rr,removeListener:Fr,removeAllListeners:jr,emit:zr,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var e=.001*Yr.call($r),t=Math.floor(e),r=Math.floor(e%1*1e9);return n&&(t-=n[0],(r-=n[1])<0&&(t--,r+=1e9)),[t,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ur)/1e3}},Br="function"==typeof Object.create?function(n,e){n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:function(n,e){n.super_=e;var t=function(){};t.prototype=e.prototype,n.prototype=new t,n.prototype.constructor=n},Hr=/%[sdj%]/g;function Wr(n){if(!li(n)){for(var e=[],t=0;t<arguments.length;t++)e.push(Kr(arguments[t]));return e.join(" ")}t=1;for(var r=arguments,i=r.length,o=String(n).replace(Hr,(function(n){if("%%"===n)return"%";if(t>=i)return n;switch(n){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(n){return"[Circular]"}default:return n}})),s=r[t];t<i;s=r[++t])oi(s)||!fi(s)?o+=" "+s:o+=" "+Kr(s);return o}function qr(n,e){if(ui(se.process))return function(){return qr(n,e).apply(this,arguments)};if(!0===Vr.noDeprecation)return n;var t=!1;return function(){if(!t){if(Vr.throwDeprecation)throw new Error(e);Vr.traceDeprecation?console.trace(e):console.error(e),t=!0}return n.apply(this,arguments)}}var Gr,Zr={};function Qr(n){if(ui(Gr)&&(Gr=Vr.env.NODE_DEBUG||""),n=n.toUpperCase(),!Zr[n])if(new RegExp("\\b"+n+"\\b","i").test(Gr)){Zr[n]=function(){var e=Wr.apply(null,arguments);console.error("%s %d: %s",n,0,e)}}else Zr[n]=function(){};return Zr[n]}function Kr(n,e){var t={seen:[],stylize:Xr};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),ii(e)?t.showHidden=e:e&&ki(t,e),ui(t.showHidden)&&(t.showHidden=!1),ui(t.depth)&&(t.depth=2),ui(t.colors)&&(t.colors=!1),ui(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Jr),ni(t,n,t.depth)}function Jr(n,e){var t=Kr.styles[e];return t?"["+Kr.colors[t][0]+"m"+n+"["+Kr.colors[t][1]+"m":n}function Xr(n,e){return n}function ni(n,e,t){if(n.customInspect&&e&&gi(e.inspect)&&e.inspect!==Kr&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(t,n);return li(r)||(r=ni(n,r,t)),r}var i=function(n,e){if(ui(e))return n.stylize("undefined","undefined");if(li(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,"string")}if(ai(e))return n.stylize(""+e,"number");if(ii(e))return n.stylize(""+e,"boolean");if(oi(e))return n.stylize("null","null")}(n,e);if(i)return i;var o=Object.keys(e),s=function(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}(o);if(n.showHidden&&(o=Object.getOwnPropertyNames(e)),pi(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ei(e);if(0===o.length){if(gi(e)){var a=e.name?": "+e.name:"";return n.stylize("[Function"+a+"]","special")}if(di(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(hi(e))return n.stylize(Date.prototype.toString.call(e),"date");if(pi(e))return ei(e)}var l,c="",u=!1,d=["{","}"];(ri(e)&&(u=!0,d=["[","]"]),gi(e))&&(c=" [Function"+(e.name?": "+e.name:"")+"]");return di(e)&&(c=" "+RegExp.prototype.toString.call(e)),hi(e)&&(c=" "+Date.prototype.toUTCString.call(e)),pi(e)&&(c=" "+ei(e)),0!==o.length||u&&0!=e.length?t<0?di(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special"):(n.seen.push(e),l=u?function(n,e,t,r,i){for(var o=[],s=0,a=e.length;s<a;++s)_i(e,String(s))?o.push(ti(n,e,t,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(ti(n,e,t,r,i,!0))})),o}(n,e,t,s,o):o.map((function(r){return ti(n,e,t,s,r,u)})),n.seen.pop(),function(n,e,t){var r=n.reduce((function(n,e){return e.indexOf("\n"),n+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return t[0]+(""===e?"":e+"\n ")+" "+n.join(",\n ")+" "+t[1];return t[0]+e+" "+n.join(", ")+" "+t[1]}(l,c,d)):d[0]+c+d[1]}function ei(n){return"["+Error.prototype.toString.call(n)+"]"}function ti(n,e,t,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):l.set&&(a=n.stylize("[Setter]","special")),_i(r,i)||(s="["+i+"]"),a||(n.seen.indexOf(l.value)<0?(a=oi(t)?ni(n,l.value,null):ni(n,l.value,t-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(n){return" "+n})).join("\n").substr(2):"\n"+a.split("\n").map((function(n){return" "+n})).join("\n")):a=n.stylize("[Circular]","special")),ui(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=n.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=n.stylize(s,"string"))}return s+": "+a}function ri(n){return Array.isArray(n)}function ii(n){return"boolean"==typeof n}function oi(n){return null===n}function si(n){return null==n}function ai(n){return"number"==typeof n}function li(n){return"string"==typeof n}function ci(n){return"symbol"==typeof n}function ui(n){return void 0===n}function di(n){return fi(n)&&"[object RegExp]"===bi(n)}function fi(n){return"object"==typeof n&&null!==n}function hi(n){return fi(n)&&"[object Date]"===bi(n)}function pi(n){return fi(n)&&("[object Error]"===bi(n)||n instanceof Error)}function gi(n){return"function"==typeof n}function mi(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n}function vi(n){return br(n)}function bi(n){return Object.prototype.toString.call(n)}function yi(n){return n<10?"0"+n.toString(10):n.toString(10)}Kr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Kr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var xi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wi(){console.log("%s - %s",function(){var n=new Date,e=[yi(n.getHours()),yi(n.getMinutes()),yi(n.getSeconds())].join(":");return[n.getDate(),xi[n.getMonth()],e].join(" ")}(),Wr.apply(null,arguments))}function ki(n,e){if(!e||!fi(e))return n;for(var t=Object.keys(e),r=t.length;r--;)n[t[r]]=e[t[r]];return n}function _i(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var Si={inherits:Br,_extend:ki,log:wi,isBuffer:vi,isPrimitive:mi,isFunction:gi,isError:pi,isDate:hi,isObject:fi,isRegExp:di,isUndefined:ui,isSymbol:ci,isString:li,isNumber:ai,isNullOrUndefined:si,isNull:oi,isBoolean:ii,isArray:ri,inspect:Kr,deprecate:qr,format:Wr,debuglog:Qr},Ei=Sn(Object.freeze({__proto__:null,_extend:ki,debuglog:Qr,default:Si,deprecate:qr,format:Wr,inherits:Br,inspect:Kr,isArray:ri,isBoolean:ii,isBuffer:vi,isDate:hi,isError:pi,isFunction:gi,isNull:oi,isNullOrUndefined:si,isNumber:ai,isObject:fi,isPrimitive:mi,isRegExp:di,isString:li,isSymbol:ci,isUndefined:ui,log:wi})).deprecate;!function(n){n.__esModule=!0,n.default=void 0,n.unescapeValue=p;var e,t=s(at),r=s(Fe),i=s(gt),o=Qe;function s(n){return n&&n.__esModule?n:{default:n}}function a(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function l(n,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},l(n,e)}var c=Ei,u=/^('|")([^]*)\1$/,d=c((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),f=c((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=c((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function p(n){var e=!1,t=null,i=n,o=i.match(u);return o&&(t=o[1],i=o[2]),(i=(0,r.default)(i))!==n&&(e=!0),{deprecatedUsage:e,unescaped:i,quoteMark:t}}var g=function(n){var e,r;function i(e){var t;return void 0===e&&(e={}),t=n.call(this,function(n){if(void 0!==n.quoteMark)return n;if(void 0===n.value)return n;h();var e=p(n.value),t=e.quoteMark,r=e.unescaped;return n.raws||(n.raws={}),void 0===n.raws.value&&(n.raws.value=n.value),n.value=r,n.quoteMark=t,n}(e))||this,t.type=o.ATTRIBUTE,t.raws=t.raws||{},Object.defineProperty(t.raws,"unquoted",{get:c((function(){return t.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:c((function(){return t.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),t._constructed=!0,t}r=n,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,l(e,r);var s=i.prototype;return s.getQuotedValue=function(n){void 0===n&&(n={});var e=this._determineQuoteMark(n),r=m[e];return(0,t.default)(this._value,r)},s._determineQuoteMark=function(n){return n.smart?this.smartQuoteMark(n):this.preferredQuoteMark(n)},s.setValue=function(n,e){void 0===e&&(e={}),this._value=n,this._quoteMark=this._determineQuoteMark(e),this._syncRawValue()},s.smartQuoteMark=function(n){var e=this.value,r=e.replace(/[^']/g,"").length,o=e.replace(/[^"]/g,"").length;if(r+o===0){var s=(0,t.default)(e,{isIdentifier:!0});if(s===e)return i.NO_QUOTE;var a=this.preferredQuoteMark(n);if(a===i.NO_QUOTE){var l=this.quoteMark||n.quoteMark||i.DOUBLE_QUOTE,c=m[l];if((0,t.default)(e,c).length<s.length)return l}return a}return o===r?this.preferredQuoteMark(n):o<r?i.DOUBLE_QUOTE:i.SINGLE_QUOTE},s.preferredQuoteMark=function(n){var e=n.preferCurrentQuoteMark?this.quoteMark:n.quoteMark;return void 0===e&&(e=n.preferCurrentQuoteMark?n.quoteMark:this.quoteMark),void 0===e&&(e=i.DOUBLE_QUOTE),e},s._syncRawValue=function(){var n=(0,t.default)(this._value,m[this.quoteMark]);n===this._value?this.raws&&delete this.raws.value:this.raws.value=n},s._handleEscapes=function(n,e){if(this._constructed){var r=(0,t.default)(e,{isIdentifier:!0});r!==e?this.raws[n]=r:delete this.raws[n]}},s._spacesFor=function(n){var e=this.spaces[n]||{},t=this.raws.spaces&&this.raws.spaces[n]||{};return Object.assign({before:"",after:""},e,t)},s._stringFor=function(n,e,t){void 0===e&&(e=n),void 0===t&&(t=v);var r=this._spacesFor(e);return t(this.stringifyProperty(n),r)},s.offsetOf=function(n){var e=1,t=this._spacesFor("attribute");if(e+=t.before.length,"namespace"===n||"ns"===n)return this.namespace?e:-1;if("attributeNS"===n)return e;if(e+=this.namespaceString.length,this.namespace&&(e+=1),"attribute"===n)return e;e+=this.stringifyProperty("attribute").length,e+=t.after.length;var r=this._spacesFor("operator");e+=r.before.length;var i=this.stringifyProperty("operator");if("operator"===n)return i?e:-1;e+=i.length,e+=r.after.length;var o=this._spacesFor("value");e+=o.before.length;var s=this.stringifyProperty("value");return"value"===n?s?e:-1:(e+=s.length,e+=o.after.length,e+=this._spacesFor("insensitive").before.length,"insensitive"===n&&this.insensitive?e:-1)},s.toString=function(){var n=this,e=[this.rawSpaceBefore,"["];return e.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||""===this.value)&&(e.push(this._stringFor("operator")),e.push(this._stringFor("value")),e.push(this._stringFor("insensitiveFlag","insensitive",(function(e,t){return!(e.length>0)||n.quoted||0!==t.before.length||n.spaces.value&&n.spaces.value.after||(t.before=" "),v(e,t)})))),e.push("]"),e.push(this.rawSpaceAfter),e.join("")},a(i,[{key:"quoted",get:function(){var n=this.quoteMark;return"'"===n||'"'===n},set:function(n){f()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(n){this._constructed?this._quoteMark!==n&&(this._quoteMark=n,this._syncRawValue()):this._quoteMark=n}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var e=p(n),t=e.deprecatedUsage,r=e.unescaped,i=e.quoteMark;if(t&&d(),r===this._value&&i===this._quoteMark)return;this._value=r,this._quoteMark=i,this._syncRawValue()}else this._value=n}},{key:"insensitive",get:function(){return this._insensitive},set:function(n){n||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=n}},{key:"attribute",get:function(){return this._attribute},set:function(n){this._handleEscapes("attribute",n),this._attribute=n}}]),i}(i.default);n.default=g,g.NO_QUOTE=null,g.SINGLE_QUOTE="'",g.DOUBLE_QUOTE='"';var m=((e={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},e);function v(n,e){return""+e.before+n+e.after}}(wt);var Oi={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=gt)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.UNIVERSAL,t.value="*",t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Oi,Oi.exports);var Ci=Oi.exports,Ni={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.COMBINATOR,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Ni,Ni.exports);var Ti=Ni.exports,Ai={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.NESTING,t.value="&",t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Ai,Ai.exports);var Di=Ai.exports,Pi={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){return n.sort((function(n,e){return n-e}))},n.exports=e.default}(Pi,Pi.exports);var Li=Pi.exports,Mi={},Ii={__esModule:!0};Ii.word=Ii.tilde=Ii.tab=Ii.str=Ii.space=Ii.slash=Ii.singleQuote=Ii.semicolon=Ii.plus=Ii.pipe=Ii.openSquare=Ii.openParenthesis=Ii.newline=Ii.greaterThan=Ii.feed=Ii.equals=Ii.doubleQuote=Ii.dollar=Ii.cr=Ii.comment=Ii.comma=Ii.combinator=Ii.colon=Ii.closeSquare=Ii.closeParenthesis=Ii.caret=Ii.bang=Ii.backslash=Ii.at=Ii.asterisk=Ii.ampersand=void 0;Ii.ampersand=38;Ii.asterisk=42;Ii.at=64;Ii.comma=44;Ii.colon=58;Ii.semicolon=59;Ii.openParenthesis=40;Ii.closeParenthesis=41;Ii.openSquare=91;Ii.closeSquare=93;Ii.dollar=36;Ii.tilde=126;Ii.caret=94;Ii.plus=43;Ii.equals=61;Ii.pipe=124;Ii.greaterThan=62;Ii.space=32;Ii.singleQuote=39;Ii.doubleQuote=34;Ii.slash=47;Ii.bang=33;Ii.backslash=92;Ii.cr=13;Ii.feed=12;Ii.newline=10;Ii.tab=9;Ii.str=39;Ii.comment=-1;Ii.word=-2;Ii.combinator=-3,function(n){n.__esModule=!0,n.FIELDS=void 0,n.default=function(n){var e,t,i,o,s,a,l,c,d,f,h,p,g=[],m=n.css.valueOf(),v=m,b=v.length,y=-1,x=1,w=0,k=0;function _(e,t){if(!n.safe)throw n.error("Unclosed "+e,x,w-y,w);c=(m+=t).length-1}for(;w<b;){switch((e=m.charCodeAt(w))===r.newline&&(y=w,x+=1),e){case r.space:case r.tab:case r.newline:case r.cr:case r.feed:c=w;do{c+=1,(e=m.charCodeAt(c))===r.newline&&(y=c,x+=1)}while(e===r.space||e===r.newline||e===r.tab||e===r.cr||e===r.feed);p=r.space,i=x,t=c-y-1,k=c;break;case r.plus:case r.greaterThan:case r.tilde:case r.pipe:c=w;do{c+=1,e=m.charCodeAt(c)}while(e===r.plus||e===r.greaterThan||e===r.tilde||e===r.pipe);p=r.combinator,i=x,t=w-y,k=c;break;case r.asterisk:case r.ampersand:case r.bang:case r.comma:case r.equals:case r.dollar:case r.caret:case r.openSquare:case r.closeSquare:case r.colon:case r.semicolon:case r.openParenthesis:case r.closeParenthesis:p=e,i=x,t=w-y,k=(c=w)+1;break;case r.singleQuote:case r.doubleQuote:h=e===r.singleQuote?"'":'"',c=w;do{for(o=!1,-1===(c=m.indexOf(h,c+1))&&_("quote",h),s=c;m.charCodeAt(s-1)===r.backslash;)s-=1,o=!o}while(o);p=r.str,i=x,t=w-y,k=c+1;break;default:e===r.slash&&m.charCodeAt(w+1)===r.asterisk?(0===(c=m.indexOf("*/",w+2)+1)&&_("comment","*/"),(a=(l=m.slice(w,c+1).split("\n")).length-1)>0?(d=x+a,f=c-l[a].length):(d=x,f=y),p=r.comment,x=d,i=d,t=c-f):e===r.slash?(p=e,i=x,t=w-y,k=(c=w)+1):(c=u(m,w),p=r.word,i=x,t=c-y),k=c+1}g.push([p,x,w-y,i,t,w,k]),f&&(y=f,f=null),w=k}return g};var e,t,r=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=i(e);if(t&&t.has(n))return t.get(n);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=o?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(Ii);function i(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(i=function(n){return n?t:e})(n)}for(var o=((e={})[r.tab]=!0,e[r.newline]=!0,e[r.cr]=!0,e[r.feed]=!0,e),s=((t={})[r.space]=!0,t[r.tab]=!0,t[r.newline]=!0,t[r.cr]=!0,t[r.feed]=!0,t[r.ampersand]=!0,t[r.asterisk]=!0,t[r.bang]=!0,t[r.comma]=!0,t[r.colon]=!0,t[r.semicolon]=!0,t[r.openParenthesis]=!0,t[r.closeParenthesis]=!0,t[r.openSquare]=!0,t[r.closeSquare]=!0,t[r.singleQuote]=!0,t[r.doubleQuote]=!0,t[r.plus]=!0,t[r.pipe]=!0,t[r.tilde]=!0,t[r.greaterThan]=!0,t[r.equals]=!0,t[r.dollar]=!0,t[r.caret]=!0,t[r.slash]=!0,t),a={},l="0123456789abcdefABCDEF",c=0;c<22;c++)a[l.charCodeAt(c)]=!0;function u(n,e){var t,i=e;do{if(t=n.charCodeAt(i),s[t])return i-1;t===r.backslash?i=d(n,i)+1:i++}while(i<n.length);return i-1}function d(n,e){var t=e,i=n.charCodeAt(t+1);if(o[i]);else if(a[i]){var s=0;do{t++,s++,i=n.charCodeAt(t+1)}while(a[i]&&s<6);s<6&&i===r.space&&t++}else t++;return t}n.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}(Mi),function(n,e){e.__esModule=!0,e.default=void 0;var t,r,i=_(Je),o=_(nt),s=_(lt),a=_(ut),l=_(ft),c=_(mt),u=_(bt),d=_(xt),f=k(wt),h=_(Ci),p=_(Ti),g=_(Di),m=_(Li),v=k(Mi),b=k(Ii),y=k(Qe),x=Le;function w(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(w=function(n){return n?t:e})(n)}function k(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=w(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if("default"!==o&&Object.prototype.hasOwnProperty.call(n,o)){var s=i?Object.getOwnPropertyDescriptor(n,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function _(n){return n&&n.__esModule?n:{default:n}}function S(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var E=((t={})[b.space]=!0,t[b.cr]=!0,t[b.feed]=!0,t[b.newline]=!0,t[b.tab]=!0,t),O=Object.assign({},E,((r={})[b.comment]=!0,r));function C(n){return{line:n[v.FIELDS.START_LINE],column:n[v.FIELDS.START_COL]}}function N(n){return{line:n[v.FIELDS.END_LINE],column:n[v.FIELDS.END_COL]}}function T(n,e,t,r){return{start:{line:n,column:e},end:{line:t,column:r}}}function A(n){return T(n[v.FIELDS.START_LINE],n[v.FIELDS.START_COL],n[v.FIELDS.END_LINE],n[v.FIELDS.END_COL])}function D(n,e){if(n)return T(n[v.FIELDS.START_LINE],n[v.FIELDS.START_COL],e[v.FIELDS.END_LINE],e[v.FIELDS.END_COL])}function P(n,e){var t=n[e];if("string"==typeof t)return-1!==t.indexOf("\\")&&((0,x.ensureObject)(n,"raws"),n[e]=(0,x.unesc)(t),void 0===n.raws[e]&&(n.raws[e]=t)),n}function L(n,e){for(var t=-1,r=[];-1!==(t=n.indexOf(e,t+1));)r.push(t);return r}var M=function(){function n(n,e){void 0===e&&(e={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},e),this.position=0,this.css="string"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,v.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var t=D(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new i.default({source:t}),this.root.errorGenerator=this._errorGenerator();var r=new o.default({source:{start:{line:1,column:1}}});this.root.append(r),this.current=r,this.loop()}var e=n.prototype;return e._errorGenerator=function(){var n=this;return function(e,t){return"string"==typeof n.rule?new Error(e):n.rule.error(e,t)}},e.attribute=function(){var n=[],e=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[v.FIELDS.TYPE]!==b.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[v.FIELDS.TYPE]!==b.closeSquare)return this.expected("closing square bracket",this.currToken[v.FIELDS.START_POS]);var t=n.length,r={source:T(e[1],e[2],this.currToken[3],this.currToken[4]),sourceIndex:e[v.FIELDS.START_POS]};if(1===t&&!~[b.word].indexOf(n[0][v.FIELDS.TYPE]))return this.expected("attribute",n[0][v.FIELDS.START_POS]);for(var i=0,o="",s="",a=null,l=!1;i<t;){var c=n[i],u=this.content(c),d=n[i+1];switch(c[v.FIELDS.TYPE]){case b.space:if(l=!0,this.options.lossy)break;if(a){(0,x.ensureObject)(r,"spaces",a);var h=r.spaces[a].after||"";r.spaces[a].after=h+u;var p=(0,x.getProp)(r,"raws","spaces",a,"after")||null;p&&(r.raws.spaces[a].after=p+u)}else o+=u,s+=u;break;case b.asterisk:if(d[v.FIELDS.TYPE]===b.equals)r.operator=u,a="operator";else if((!r.namespace||"namespace"===a&&!l)&&d){o&&((0,x.ensureObject)(r,"spaces","attribute"),r.spaces.attribute.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","attribute"),r.raws.spaces.attribute.before=o,s=""),r.namespace=(r.namespace||"")+u,((0,x.getProp)(r,"raws","namespace")||null)&&(r.raws.namespace+=u),a="namespace"}l=!1;break;case b.dollar:if("value"===a){var g=(0,x.getProp)(r,"raws","value");r.value+="$",g&&(r.raws.value=g+"$");break}case b.caret:d[v.FIELDS.TYPE]===b.equals&&(r.operator=u,a="operator"),l=!1;break;case b.combinator:if("~"===u&&d[v.FIELDS.TYPE]===b.equals&&(r.operator=u,a="operator"),"|"!==u){l=!1;break}d[v.FIELDS.TYPE]===b.equals?(r.operator=u,a="operator"):r.namespace||r.attribute||(r.namespace=!0),l=!1;break;case b.word:if(d&&"|"===this.content(d)&&n[i+2]&&n[i+2][v.FIELDS.TYPE]!==b.equals&&!r.operator&&!r.namespace)r.namespace=u,a="namespace";else if(!r.attribute||"attribute"===a&&!l){o&&((0,x.ensureObject)(r,"spaces","attribute"),r.spaces.attribute.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","attribute"),r.raws.spaces.attribute.before=s,s=""),r.attribute=(r.attribute||"")+u,((0,x.getProp)(r,"raws","attribute")||null)&&(r.raws.attribute+=u),a="attribute"}else if(!r.value&&""!==r.value||"value"===a&&!l&&!r.quoteMark){var m=(0,x.unesc)(u),y=(0,x.getProp)(r,"raws","value")||"",w=r.value||"";r.value=w+m,r.quoteMark=null,(m!==u||y)&&((0,x.ensureObject)(r,"raws"),r.raws.value=(y||w)+u),a="value"}else{var k="i"===u||"I"===u;!r.value&&""!==r.value||!r.quoteMark&&!l?(r.value||""===r.value)&&(a="value",r.value+=u,r.raws.value&&(r.raws.value+=u)):(r.insensitive=k,k&&"I"!==u||((0,x.ensureObject)(r,"raws"),r.raws.insensitiveFlag=u),a="insensitive",o&&((0,x.ensureObject)(r,"spaces","insensitive"),r.spaces.insensitive.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","insensitive"),r.raws.spaces.insensitive.before=s,s=""))}l=!1;break;case b.str:if(!r.attribute||!r.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[v.FIELDS.START_POS]});var _=(0,f.unescapeValue)(u),S=_.unescaped,E=_.quoteMark;r.value=S,r.quoteMark=E,a="value",(0,x.ensureObject)(r,"raws"),r.raws.value=u,l=!1;break;case b.equals:if(!r.attribute)return this.expected("attribute",c[v.FIELDS.START_POS],u);if(r.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[v.FIELDS.START_POS]});r.operator=r.operator?r.operator+u:u,a="operator",l=!1;break;case b.comment:if(a)if(l||d&&d[v.FIELDS.TYPE]===b.space||"insensitive"===a){var O=(0,x.getProp)(r,"spaces",a,"after")||"",C=(0,x.getProp)(r,"raws","spaces",a,"after")||O;(0,x.ensureObject)(r,"raws","spaces",a),r.raws.spaces[a].after=C+u}else{var N=r[a]||"",A=(0,x.getProp)(r,"raws",a)||N;(0,x.ensureObject)(r,"raws"),r.raws[a]=A+u}else s+=u;break;default:return this.error('Unexpected "'+u+'" found.',{index:c[v.FIELDS.START_POS]})}i++}P(r,"attribute"),P(r,"namespace"),this.newNode(new f.default(r)),this.position++},e.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var e=this.position,t=[],r="",i=void 0;do{if(E[this.currToken[v.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[v.FIELDS.TYPE]===b.comment){var o={};r&&(o.before=r,r=""),i=new a.default({value:this.content(),source:A(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS],spaces:o}),t.push(i)}}while(++this.position<n);if(r)if(i)i.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[e],l=this.tokens[this.position-1];t.push(new u.default({value:"",source:T(s[v.FIELDS.START_LINE],s[v.FIELDS.START_COL],l[v.FIELDS.END_LINE],l[v.FIELDS.END_COL]),sourceIndex:s[v.FIELDS.START_POS],spaces:{before:r,after:""}}))}return t},e.convertWhitespaceNodesToSpace=function(n,e){var t=this;void 0===e&&(e=!1);var r="",i="";return n.forEach((function(n){var o=t.lossySpace(n.spaces.before,e),s=t.lossySpace(n.rawSpaceBefore,e);r+=o+t.lossySpace(n.spaces.after,e&&0===o.length),i+=o+n.value+t.lossySpace(n.rawSpaceAfter,e&&0===s.length)})),i===r&&(i=void 0),{space:r,rawSpace:i}},e.isNamedCombinator=function(n){return void 0===n&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][v.FIELDS.TYPE]===b.slash&&this.tokens[n+1]&&this.tokens[n+1][v.FIELDS.TYPE]===b.word&&this.tokens[n+2]&&this.tokens[n+2][v.FIELDS.TYPE]===b.slash},e.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),e=(0,x.unesc)(n).toLowerCase(),t={};e!==n&&(t.value="/"+n+"/");var r=new p.default({value:"/"+e+"/",source:T(this.currToken[v.FIELDS.START_LINE],this.currToken[v.FIELDS.START_COL],this.tokens[this.position+2][v.FIELDS.END_LINE],this.tokens[this.position+2][v.FIELDS.END_COL]),sourceIndex:this.currToken[v.FIELDS.START_POS],raws:t});return this.position=this.position+3,r}this.unexpected()},e.combinator=function(){var n=this;if("|"===this.content())return this.namespace();var e=this.locateNextMeaningfulToken(this.position);if(!(e<0||this.tokens[e][v.FIELDS.TYPE]===b.comma)){var t,r=this.currToken,i=void 0;if(e>this.position&&(i=this.parseWhitespaceEquivalentTokens(e)),this.isNamedCombinator()?t=this.namedCombinator():this.currToken[v.FIELDS.TYPE]===b.combinator?(t=new p.default({value:this.content(),source:A(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS]}),this.position++):E[this.currToken[v.FIELDS.TYPE]]||i||this.unexpected(),t){if(i){var o=this.convertWhitespaceNodesToSpace(i),s=o.space,a=o.rawSpace;t.spaces.before=s,t.rawSpaceBefore=a}}else{var l=this.convertWhitespaceNodesToSpace(i,!0),c=l.space,u=l.rawSpace;u||(u=c);var d={},f={spaces:{}};c.endsWith(" ")&&u.endsWith(" ")?(d.before=c.slice(0,c.length-1),f.spaces.before=u.slice(0,u.length-1)):c.startsWith(" ")&&u.startsWith(" ")?(d.after=c.slice(1),f.spaces.after=u.slice(1)):f.value=u,t=new p.default({value:" ",source:D(r,this.tokens[this.position-1]),sourceIndex:r[v.FIELDS.START_POS],spaces:d,raws:f})}return this.currToken&&this.currToken[v.FIELDS.TYPE]===b.space&&(t.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(t)}var h=this.parseWhitespaceEquivalentTokens(e);if(h.length>0){var g=this.current.last;if(g){var m=this.convertWhitespaceNodesToSpace(h),y=m.space,x=m.rawSpace;void 0!==x&&(g.rawSpaceAfter+=x),g.spaces.after+=y}else h.forEach((function(e){return n.newNode(e)}))}},e.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var n=new o.default({source:{start:C(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},e.comment=function(){var n=this.currToken;this.newNode(new a.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.error=function(n,e){throw this.root.error(n,e)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[v.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[v.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[v.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[v.FIELDS.START_POS])},e.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[v.FIELDS.START_POS])},e.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[v.FIELDS.TYPE]===b.word?(this.position++,this.word(n)):this.nextToken[v.FIELDS.TYPE]===b.asterisk?(this.position++,this.universal(n)):void this.unexpectedPipe()},e.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))return void this.position++;var n=this.currToken;this.newNode(new g.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var n=this.current.last,e=1;if(this.position++,n&&n.type===y.PSEUDO){var t=new o.default({source:{start:C(this.tokens[this.position-1])}}),r=this.current;for(n.append(t),this.current=t;this.position<this.tokens.length&&e;)this.currToken[v.FIELDS.TYPE]===b.openParenthesis&&e++,this.currToken[v.FIELDS.TYPE]===b.closeParenthesis&&e--,e?this.parse():(this.current.source.end=N(this.currToken),this.current.parent.source.end=N(this.currToken),this.position++);this.current=r}else{for(var i,s=this.currToken,a="(";this.position<this.tokens.length&&e;)this.currToken[v.FIELDS.TYPE]===b.openParenthesis&&e++,this.currToken[v.FIELDS.TYPE]===b.closeParenthesis&&e--,i=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",a,a):this.newNode(new u.default({value:a,source:T(s[v.FIELDS.START_LINE],s[v.FIELDS.START_COL],i[v.FIELDS.END_LINE],i[v.FIELDS.END_COL]),sourceIndex:s[v.FIELDS.START_POS]}))}if(e)return this.expected("closing parenthesis",this.currToken[v.FIELDS.START_POS])},e.pseudo=function(){for(var n=this,e="",t=this.currToken;this.currToken&&this.currToken[v.FIELDS.TYPE]===b.colon;)e+=this.content(),this.position++;return this.currToken?this.currToken[v.FIELDS.TYPE]!==b.word?this.expected(["pseudo-class","pseudo-element"],this.currToken[v.FIELDS.START_POS]):void this.splitWord(!1,(function(r,i){e+=r,n.newNode(new d.default({value:e,source:D(t,n.currToken),sourceIndex:t[v.FIELDS.START_POS]})),i>1&&n.nextToken&&n.nextToken[v.FIELDS.TYPE]===b.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[v.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},e.space=function(){var n=this.content();0===this.position||this.prevToken[v.FIELDS.TYPE]===b.comma||this.prevToken[v.FIELDS.TYPE]===b.openParenthesis||this.current.nodes.every((function(n){return"comment"===n.type}))?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[v.FIELDS.TYPE]===b.comma||this.nextToken[v.FIELDS.TYPE]===b.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},e.string=function(){var n=this.currToken;this.newNode(new u.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.universal=function(n){var e=this.nextToken;if(e&&"|"===this.content(e))return this.position++,this.namespace();var t=this.currToken;this.newNode(new h.default({value:this.content(),source:A(t),sourceIndex:t[v.FIELDS.START_POS]}),n),this.position++},e.splitWord=function(n,e){for(var t=this,r=this.nextToken,i=this.content();r&&~[b.dollar,b.caret,b.equals,b.word].indexOf(r[v.FIELDS.TYPE]);){this.position++;var o=this.content();if(i+=o,o.lastIndexOf("\\")===o.length-1){var a=this.nextToken;a&&a[v.FIELDS.TYPE]===b.space&&(i+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var u=L(i,".").filter((function(n){var e="\\"===i[n-1],t=/^\d+\.\d+%$/.test(i);return!e&&!t})),d=L(i,"#").filter((function(n){return"\\"!==i[n-1]})),f=L(i,"#{");f.length&&(d=d.filter((function(n){return!~f.indexOf(n)})));var h=(0,m.default)(function(){var n=Array.prototype.concat.apply([],arguments);return n.filter((function(e,t){return t===n.indexOf(e)}))}([0].concat(u,d)));h.forEach((function(r,o){var a,f=h[o+1]||i.length,p=i.slice(r,f);if(0===o&&e)return e.call(t,p,h.length);var g=t.currToken,m=g[v.FIELDS.START_POS]+h[o],b=T(g[1],g[2]+r,g[3],g[2]+(f-1));if(~u.indexOf(r)){var y={value:p.slice(1),source:b,sourceIndex:m};a=new s.default(P(y,"value"))}else if(~d.indexOf(r)){var x={value:p.slice(1),source:b,sourceIndex:m};a=new l.default(P(x,"value"))}else{var w={value:p,source:b,sourceIndex:m};P(w,"value"),a=new c.default(w)}t.newNode(a,n),n=null})),this.position++},e.word=function(n){var e=this.nextToken;return e&&"|"===this.content(e)?(this.position++,this.namespace()):this.splitWord(n)},e.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},e.parse=function(n){switch(this.currToken[v.FIELDS.TYPE]){case b.space:this.space();break;case b.comment:this.comment();break;case b.openParenthesis:this.parentheses();break;case b.closeParenthesis:n&&this.missingParenthesis();break;case b.openSquare:this.attribute();break;case b.dollar:case b.caret:case b.equals:case b.word:this.word();break;case b.colon:this.pseudo();break;case b.comma:this.comma();break;case b.asterisk:this.universal();break;case b.ampersand:this.nesting();break;case b.slash:case b.combinator:this.combinator();break;case b.str:this.string();break;case b.closeSquare:this.missingSquareBracket();case b.semicolon:this.missingBackslash();default:this.unexpected()}},e.expected=function(n,e,t){if(Array.isArray(n)){var r=n.pop();n=n.join(", ")+" or "+r}var i=/^[aeiou]/.test(n[0])?"an":"a";return t?this.error("Expected "+i+" "+n+', found "'+t+'" instead.',{index:e}):this.error("Expected "+i+" "+n+".",{index:e})},e.requiredSpace=function(n){return this.options.lossy?" ":n},e.optionalSpace=function(n){return this.options.lossy?"":n},e.lossySpace=function(n,e){return this.options.lossy?e?" ":"":n},e.parseParenthesisToken=function(n){var e=this.content(n);return n[v.FIELDS.TYPE]===b.space?this.requiredSpace(e):e},e.newNode=function(n,e){return e&&(/^ +$/.test(e)&&(this.options.lossy||(this.spaces=(this.spaces||"")+e),e=!0),n.namespace=e,P(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},e.content=function(n){return void 0===n&&(n=this.currToken),this.css.slice(n[v.FIELDS.START_POS],n[v.FIELDS.END_POS])},e.locateNextMeaningfulToken=function(n){void 0===n&&(n=this.position+1);for(var e=n;e<this.tokens.length;){if(!O[this.tokens[e][v.FIELDS.TYPE]])return e;e++}return-1},S(n,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),n}();e.default=M,n.exports=e.default}(Te,Te.exports);var Ri=Te.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ri)&&t.__esModule?t:{default:t};var i=function(){function n(n,e){this.func=n||function(){},this.funcRes=null,this.options=e}var e=n.prototype;return e._shouldUpdateSelector=function(n,e){return void 0===e&&(e={}),!1!==Object.assign({},this.options,e).updateSelector&&"string"!=typeof n},e._isLossy=function(n){return void 0===n&&(n={}),!1===Object.assign({},this.options,n).lossless},e._root=function(n,e){return void 0===e&&(e={}),new r.default(n,this._parseOptions(e)).root},e._parseOptions=function(n){return{lossy:this._isLossy(n)}},e._run=function(n,e){var t=this;return void 0===e&&(e={}),new Promise((function(r,i){try{var o=t._root(n,e);Promise.resolve(t.func(o)).then((function(r){var i=void 0;return t._shouldUpdateSelector(n,e)&&(i=o.toString(),n.selector=i),{transform:r,root:o,string:i}})).then(r,i)}catch(n){return void i(n)}}))},e._runSync=function(n,e){void 0===e&&(e={});var t=this._root(n,e),r=this.func(t);if(r&&"function"==typeof r.then)throw new Error("Selector processor returned a promise to a synchronous call.");var i=void 0;return e.updateSelector&&"string"!=typeof n&&(i=t.toString(),n.selector=i),{transform:r,root:t,string:i}},e.ast=function(n,e){return this._run(n,e).then((function(n){return n.root}))},e.astSync=function(n,e){return this._runSync(n,e).root},e.transform=function(n,e){return this._run(n,e).then((function(n){return n.transform}))},e.transformSync=function(n,e){return this._runSync(n,e).transform},e.process=function(n,e){return this._run(n,e).then((function(n){return n.string||n.root.toString()}))},e.processSync=function(n,e){var t=this._runSync(n,e);return t.string||t.root.toString()},n}();e.default=i,n.exports=e.default}(Ne,Ne.exports);var Fi=Ne.exports,ji={},zi={__esModule:!0};zi.universal=zi.tag=zi.string=zi.selector=zi.root=zi.pseudo=zi.nesting=zi.id=zi.comment=zi.combinator=zi.className=zi.attribute=void 0;var $i=Ji(wt),Yi=Ji(lt),Ui=Ji(Ti),Vi=Ji(ut),Bi=Ji(ft),Hi=Ji(Di),Wi=Ji(xt),qi=Ji(Je),Gi=Ji(nt),Zi=Ji(bt),Qi=Ji(mt),Ki=Ji(Ci);function Ji(n){return n&&n.__esModule?n:{default:n}}zi.attribute=function(n){return new $i.default(n)};zi.className=function(n){return new Yi.default(n)};zi.combinator=function(n){return new Ui.default(n)};zi.comment=function(n){return new Vi.default(n)};zi.id=function(n){return new Bi.default(n)};zi.nesting=function(n){return new Hi.default(n)};zi.pseudo=function(n){return new Wi.default(n)};zi.root=function(n){return new qi.default(n)};zi.selector=function(n){return new Gi.default(n)};zi.string=function(n){return new Zi.default(n)};zi.tag=function(n){return new Qi.default(n)};zi.universal=function(n){return new Ki.default(n)};var Xi={__esModule:!0};Xi.isComment=Xi.isCombinator=Xi.isClassName=Xi.isAttribute=void 0,Xi.isContainer=function(n){return!(!ro(n)||!n.walk)},Xi.isIdentifier=void 0,Xi.isNamespace=function(n){return oo(n)||mo(n)},Xi.isNesting=void 0,Xi.isNode=ro,Xi.isPseudo=void 0,Xi.isPseudoClass=function(n){return fo(n)&&!bo(n)},Xi.isPseudoElement=bo,Xi.isUniversal=Xi.isTag=Xi.isString=Xi.isSelector=Xi.isRoot=void 0;var no,eo=Qe,to=((no={})[eo.ATTRIBUTE]=!0,no[eo.CLASS]=!0,no[eo.COMBINATOR]=!0,no[eo.COMMENT]=!0,no[eo.ID]=!0,no[eo.NESTING]=!0,no[eo.PSEUDO]=!0,no[eo.ROOT]=!0,no[eo.SELECTOR]=!0,no[eo.STRING]=!0,no[eo.TAG]=!0,no[eo.UNIVERSAL]=!0,no);function ro(n){return"object"==typeof n&&to[n.type]}function io(n,e){return ro(e)&&e.type===n}var oo=io.bind(null,eo.ATTRIBUTE);Xi.isAttribute=oo;var so=io.bind(null,eo.CLASS);Xi.isClassName=so;var ao=io.bind(null,eo.COMBINATOR);Xi.isCombinator=ao;var lo=io.bind(null,eo.COMMENT);Xi.isComment=lo;var co=io.bind(null,eo.ID);Xi.isIdentifier=co;var uo=io.bind(null,eo.NESTING);Xi.isNesting=uo;var fo=io.bind(null,eo.PSEUDO);Xi.isPseudo=fo;var ho=io.bind(null,eo.ROOT);Xi.isRoot=ho;var po=io.bind(null,eo.SELECTOR);Xi.isSelector=po;var go=io.bind(null,eo.STRING);Xi.isString=go;var mo=io.bind(null,eo.TAG);Xi.isTag=mo;var vo=io.bind(null,eo.UNIVERSAL);function bo(n){return fo(n)&&n.value&&(n.value.startsWith("::")||":before"===n.value.toLowerCase()||":after"===n.value.toLowerCase()||":first-letter"===n.value.toLowerCase()||":first-line"===n.value.toLowerCase())}Xi.isUniversal=vo,function(n){n.__esModule=!0;var e=Qe;Object.keys(e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in n&&n[t]===e[t]||(n[t]=e[t]))}));var t=zi;Object.keys(t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in n&&n[e]===t[e]||(n[e]=t[e]))}));var r=Xi;Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in n&&n[e]===r[e]||(n[e]=r[e]))}))}(ji),function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Fi)&&t.__esModule?t:{default:t},i=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=o(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=i?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(ji);function o(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(o=function(n){return n?t:e})(n)}var s=function(n){return new r.default(n)};Object.assign(s,i),delete s.__esModule;var a=s;e.default=a,n.exports=e.default}(Ce,Ce.exports);var yo,xo,wo=Ce.exports,ko="(".charCodeAt(0),_o=")".charCodeAt(0),So="'".charCodeAt(0),Eo='"'.charCodeAt(0),Oo="\\".charCodeAt(0),Co="/".charCodeAt(0),No=",".charCodeAt(0),To=":".charCodeAt(0),Ao="*".charCodeAt(0),Do="u".charCodeAt(0),Po="U".charCodeAt(0),Lo="+".charCodeAt(0),Mo=/^[a-f0-9?-]+$/i;function Io(n,e){var t,r,i=n.type,o=n.value;return e&&void 0!==(r=e(n))?r:"word"===i||"space"===i?o:"string"===i?(t=n.quote||"")+o+(n.unclosed?"":t):"comment"===i?"/*"+o+(n.unclosed?"":"*/"):"div"===i?(n.before||"")+o+(n.after||""):Array.isArray(n.nodes)?(t=Ro(n.nodes,e),"function"!==i?t:o+"("+(n.before||"")+t+(n.after||"")+(n.unclosed?"":")")):o}function Ro(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=Io(n[r],e)+t;return t}return Io(n,e)}var Fo=function(n){for(var e,t,r,i,o,s,a,l,c,u=[],d=n,f=0,h=d.charCodeAt(f),p=d.length,g=[{nodes:u}],m=0,v="",b="",y="";f<p;)if(h<=32){e=f;do{e+=1,h=d.charCodeAt(e)}while(h<=32);i=d.slice(f,e),r=u[u.length-1],h===_o&&m?y=i:r&&"div"===r.type?(r.after=i,r.sourceEndIndex+=i.length):h===No||h===To||h===Co&&d.charCodeAt(e+1)!==Ao&&(!c||c&&"function"===c.type&&"calc"!==c.value)?b=i:u.push({type:"space",sourceIndex:f,sourceEndIndex:e,value:i}),f=e}else if(h===So||h===Eo){e=f,i={type:"string",sourceIndex:f,quote:t=h===So?"'":'"'};do{if(o=!1,~(e=d.indexOf(t,e+1)))for(s=e;d.charCodeAt(s-1)===Oo;)s-=1,o=!o;else e=(d+=t).length-1,i.unclosed=!0}while(o);i.value=d.slice(f+1,e),i.sourceEndIndex=i.unclosed?e:e+1,u.push(i),f=e+1,h=d.charCodeAt(f)}else if(h===Co&&d.charCodeAt(f+1)===Ao)i={type:"comment",sourceIndex:f,sourceEndIndex:(e=d.indexOf("*/",f))+2},-1===e&&(i.unclosed=!0,e=d.length,i.sourceEndIndex=e),i.value=d.slice(f+2,e),u.push(i),f=e+2,h=d.charCodeAt(f);else if(h!==Co&&h!==Ao||!c||"function"!==c.type||"calc"!==c.value)if(h===Co||h===No||h===To)i=d[f],u.push({type:"div",sourceIndex:f-b.length,sourceEndIndex:f+i.length,value:i,before:b,after:""}),b="",f+=1,h=d.charCodeAt(f);else if(ko===h){e=f;do{e+=1,h=d.charCodeAt(e)}while(h<=32);if(l=f,i={type:"function",sourceIndex:f-v.length,value:v,before:d.slice(l+1,e)},f=e,"url"===v&&h!==So&&h!==Eo){e-=1;do{if(o=!1,~(e=d.indexOf(")",e+1)))for(s=e;d.charCodeAt(s-1)===Oo;)s-=1,o=!o;else e=(d+=")").length-1,i.unclosed=!0}while(o);a=e;do{a-=1,h=d.charCodeAt(a)}while(h<=32);l<a?(i.nodes=f!==a+1?[{type:"word",sourceIndex:f,sourceEndIndex:a+1,value:d.slice(f,a+1)}]:[],i.unclosed&&a+1!==e?(i.after="",i.nodes.push({type:"space",sourceIndex:a+1,sourceEndIndex:e,value:d.slice(a+1,e)})):(i.after=d.slice(a+1,e),i.sourceEndIndex=e)):(i.after="",i.nodes=[]),f=e+1,i.sourceEndIndex=i.unclosed?e:f,h=d.charCodeAt(f),u.push(i)}else m+=1,i.after="",i.sourceEndIndex=f+1,u.push(i),g.push(i),u=i.nodes=[],c=i;v=""}else if(_o===h&&m)f+=1,h=d.charCodeAt(f),c.after=y,c.sourceEndIndex+=y.length,y="",m-=1,g[g.length-1].sourceEndIndex=f,g.pop(),u=(c=g[m]).nodes;else{e=f;do{h===Oo&&(e+=1),e+=1,h=d.charCodeAt(e)}while(e<p&&!(h<=32||h===So||h===Eo||h===No||h===To||h===Co||h===ko||h===Ao&&c&&"function"===c.type&&"calc"===c.value||h===Co&&"function"===c.type&&"calc"===c.value||h===_o&&m));i=d.slice(f,e),ko===h?v=i:Do!==i.charCodeAt(0)&&Po!==i.charCodeAt(0)||Lo!==i.charCodeAt(1)||!Mo.test(i.slice(2))?u.push({type:"word",sourceIndex:f,sourceEndIndex:e,value:i}):u.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:e,value:i}),f=e}else i=d[f],u.push({type:"word",sourceIndex:f-b.length,sourceEndIndex:f+i.length,value:i}),f+=1,h=d.charCodeAt(f);for(f=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=d.length;return g[0].nodes},jo=function n(e,t,r){var i,o,s,a;for(i=0,o=e.length;i<o;i+=1)s=e[i],r||(a=t(s,i,e)),!1!==a&&"function"===s.type&&Array.isArray(s.nodes)&&n(s.nodes,t,r),r&&t(s,i,e)},zo=Ro;function $o(n){return this instanceof $o?(this.nodes=Fo(n),this):new $o(n)}$o.prototype.toString=function(){return Array.isArray(this.nodes)?zo(this.nodes):""},$o.prototype.walk=function(n,e){return jo(this.nodes,n,e),this},$o.unit=function(){if(xo)return yo;xo=1;var n="-".charCodeAt(0),e="+".charCodeAt(0),t=".".charCodeAt(0),r="e".charCodeAt(0),i="E".charCodeAt(0);return yo=function(o){var s,a,l,c=0,u=o.length;if(0===u||!function(r){var i,o=r.charCodeAt(0);if(o===e||o===n){if((i=r.charCodeAt(1))>=48&&i<=57)return!0;var s=r.charCodeAt(2);return i===t&&s>=48&&s<=57}return o===t?(i=r.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(o))return!1;for((s=o.charCodeAt(c))!==e&&s!==n||c++;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;if(s=o.charCodeAt(c),a=o.charCodeAt(c+1),s===t&&a>=48&&a<=57)for(c+=2;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;if(s=o.charCodeAt(c),a=o.charCodeAt(c+1),l=o.charCodeAt(c+2),(s===r||s===i)&&(a>=48&&a<=57||(a===e||a===n)&&l>=48&&l<=57))for(c+=a===e||a===n?3:2;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;return{number:o.slice(0,c),unit:o.slice(c)}},yo}(),$o.walk=jo,$o.stringify=zo;var Yo=$o;function Uo(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vo={};!function(n){var e=function(){function n(n,e){var t;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==n&&(n="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:n}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||n,t=r.stack}t||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):t=new Error(n).stack),t&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:t})}function e(n,e,t){t=t||0;for(var r=0;r<e;r++)this.push(n),n+=t}function t(n,e){for(e+=n=this.length-n;n<e;n++)this.push(this[n])}function r(n){for(var e=[],t=0,r=n.length;t<r;t++){var i=n[t];"function"==typeof i?(t++,i.apply(e,n[t])):e.push(i)}return e}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,Error.prototype):n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:n,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:6,ANGLE:12,CALC:3,CHS:19,DIV:9,EMS:17,EOF:1,EXS:18,FREQ:14,FUNCTION:10,LENGTH:11,LPAREN:4,MUL:8,NUMBER:26,PERCENTAGE:25,REMS:20,RES:15,RPAREN:5,SUB:7,TIME:13,UNKNOWN_DIMENSION:16,VHS:21,VMAXS:24,VMINS:23,VWS:22,dimension:30,error:2,expression:27,function:29,math_expression:28,number:31},terminals_:{1:"EOF",2:"error",3:"CALC",4:"LPAREN",5:"RPAREN",6:"ADD",7:"SUB",8:"MUL",9:"DIV",10:"FUNCTION",11:"LENGTH",12:"ANGLE",13:"TIME",14:"FREQ",15:"RES",16:"UNKNOWN_DIMENSION",17:"EMS",18:"EXS",19:"CHS",20:"REMS",21:"VHS",22:"VWS",23:"VMINS",24:"VMAXS",25:"PERCENTAGE",26:"NUMBER"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(n){return'"'+n+'"'},getSymbolName:function(n){if(this.terminals_[n])return this.terminals_[n];var e=this.symbols_;for(var t in e)if(e[t]===n)return t;return null},describeSymbol:function(n){if(n!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[n])return this.terminal_descriptions_[n];if(n===this.EOF)return"end of input";var e=this.getSymbolName(n);return e?this.quoteName(e):null},collect_expected_token_set:function(n,e){var t=this.TERROR,r=[],i={};if(!e&&this.state_descriptions_&&this.state_descriptions_[n])return[this.state_descriptions_[n]];for(var o in this.table[n])if((o=+o)!==t){var s=e?o:this.describeSymbol(o);s&&!i[s]&&(r.push(s),i[s]=!0)}return r},productions_:function(n){for(var e=[],t=n.pop,r=n.rule,i=0,o=t.length;i<o;i++)e.push([t[i],r[i]]);return e}({pop:r([27,e,[28,9],29,e,[30,17],e,[31,3]]),rule:r([2,4,e,[3,5],e,[1,19],2,2,t,[3,3]])}),performAction:function(n,e,t){var r=this.yy;switch(r.parser,r.lexer,n){case 0:case 2:
|
|
1
|
+
import{jsx as n,jsxs as e,Fragment as t}from"react/jsx-runtime";import*as r from"react";import i,{createContext as o,useContext as s,useState as a,useRef as l,useEffect as c,useCallback as u,useDebugValue as d,createElement as f,memo as h,Suspense as p,isValidElement as g,cloneElement as m,useLayoutEffect as v,forwardRef as b,useMemo as y,Children as x,useImperativeHandle as w,createRef as k}from"react";import{createPortal as _,unstable_batchedUpdates as S}from"react-dom";import{CSSTransition as E}from"react-transition-group";import{ReactSVG as O}from"react-svg";import C from"autoprefixer";import N from"postcss";import{useSearchParams as T,useNavigate as A,createSearchParams as D,NavLink as P,useLocation as L}from"react-router-dom";import M from"axios";import{getChildrenDeep as I}from"react-nanny";const R={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class F{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(n,e)}init(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=n||R,this.options=e,this.debug=e.debug}log(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"log","",!0)}warn(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"warn","",!0)}error(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"error","")}deprecate(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(n,e,t,r){return r&&!this.debug?null:("string"==typeof n[0]&&(n[0]=`${t}${this.prefix} ${n[0]}`),this.logger[e](n))}create(n){return new F(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return(n=n||this.options).prefix=n.prefix||this.prefix,new F(this.logger,n)}}var j=new F;class z{constructor(){this.observers={}}on(n,e){return n.split(" ").forEach((n=>{this.observers[n]||(this.observers[n]=new Map);const t=this.observers[n].get(e)||0;this.observers[n].set(e,t+1)})),this}off(n,e){this.observers[n]&&(e?this.observers[n].delete(e):delete this.observers[n])}emit(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(this.observers[n]){Array.from(this.observers[n].entries()).forEach((n=>{let[e,r]=n;for(let n=0;n<r;n++)e(...t)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((e=>{let[r,i]=e;for(let e=0;e<i;e++)r.apply(r,[n,...t])}))}}}function $(){let n,e;const t=new Promise(((t,r)=>{n=t,e=r}));return t.resolve=n,t.reject=e,t}function Y(n){return null==n?"":""+n}const U=/###/g;function V(n,e,t){function r(n){return n&&n.indexOf("###")>-1?n.replace(U,"."):n}function i(){return!n||"string"==typeof n}const o="string"!=typeof e?e:e.split(".");let s=0;for(;s<o.length-1;){if(i())return{};const e=r(o[s]);!n[e]&&t&&(n[e]=new t),n=Object.prototype.hasOwnProperty.call(n,e)?n[e]:{},++s}return i()?{}:{obj:n,k:r(o[s])}}function B(n,e,t){const{obj:r,k:i}=V(n,e,Object);if(void 0!==r||1===e.length)return void(r[i]=t);let o=e[e.length-1],s=e.slice(0,e.length-1),a=V(n,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=V(n,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t}function H(n,e){const{obj:t,k:r}=V(n,e);if(t)return t[r]}function W(n,e,t){for(const r in e)"__proto__"!==r&&"constructor"!==r&&(r in n?"string"==typeof n[r]||n[r]instanceof String||"string"==typeof e[r]||e[r]instanceof String?t&&(n[r]=e[r]):W(n[r],e[r],t):n[r]=e[r]);return n}function q(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var G={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Z(n){return"string"==typeof n?n.replace(/[&<>"'\/]/g,(n=>G[n])):n}const Q=[" ",",","?","!",";"],K=new class{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const e=this.regExpMap.get(n);if(void 0!==e)return e;const t=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,t),this.regExpQueue.push(n),t}}(20);function J(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!n)return;if(n[e])return n[e];const r=e.split(t);let i=n;for(let n=0;n<r.length;){if(!i||"object"!=typeof i)return;let e,o="";for(let s=n;s<r.length;++s)if(s!==n&&(o+=t),o+=r[s],e=i[o],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;n+=s-n+1;break}i=e}return i}function X(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class nn extends z{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const e=this.options.ns.indexOf(n);e>-1&&this.options.ns.splice(e,1)}getResource(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;n.indexOf(".")>-1?s=n.split("."):(s=[n,e],t&&(Array.isArray(t)?s.push(...t):"string"==typeof t&&i?s.push(...t.split(i)):s.push(t)));const a=H(this.data,s);return!a&&!e&&!t&&n.indexOf(".")>-1&&(n=s[0],e=s[1],t=s.slice(2).join(".")),a||!o||"string"!=typeof t?a:J(this.data&&this.data[n]&&this.data[n][e],t,i)}addResource(n,e,t,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[n,e];t&&(s=s.concat(o?t.split(o):t)),n.indexOf(".")>-1&&(s=n.split("."),r=e,e=s[1]),this.addNamespaces(e),B(this.data,s,r),i.silent||this.emit("added",n,e,t,r)}addResources(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in t)("string"==typeof t[r]||Array.isArray(t[r]))&&this.addResource(n,e,r,t[r],{silent:!0});r.silent||this.emit("added",n,e,t)}addResourceBundle(n,e,t,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[n,e];n.indexOf(".")>-1&&(s=n.split("."),r=t,t=e,e=s[1]),this.addNamespaces(e);let a=H(this.data,s)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),r?W(a,t,i):a={...a,...t},B(this.data,s,a),o.silent||this.emit("added",n,e,t)}removeResourceBundle(n,e){this.hasResourceBundle(n,e)&&delete this.data[n][e],this.removeNamespaces(e),this.emit("removed",n,e)}hasResourceBundle(n,e){return void 0!==this.getResource(n,e)}getResourceBundle(n,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(n,e)}:this.getResource(n,e)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const e=this.getDataByLanguage(n);return!!(e&&Object.keys(e)||[]).find((n=>e[n]&&Object.keys(e[n]).length>0))}toJSON(){return this.data}}var en={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,i){return n.forEach((n=>{this.processors[n]&&(e=this.processors[n].process(e,t,r,i))})),e}};const tn={};class rn extends z{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(n,e,t){n.forEach((n=>{e[n]&&(t[n]=e[n])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=j.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==n)return!1;const t=this.resolve(n,e);return t&&void 0!==t.res}extractFromKey(n,e){let t=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let i=e.ns||this.options.defaultNS||[];const o=t&&n.indexOf(t)>-1,s=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(n,e,t){e=e||"",t=t||"";const r=Q.filter((n=>e.indexOf(n)<0&&t.indexOf(n)<0));if(0===r.length)return!0;const i=K.getRegExp(`(${r.map((n=>"?"===n?"\\?":n)).join("|")})`);let o=!i.test(n);if(!o){const e=n.indexOf(t);e>0&&!i.test(n.substring(0,e))&&(o=!0)}return o}(n,t,r));if(o&&!s){const e=n.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:n,namespaces:i};const o=n.split(t);(t!==r||t===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),n=o.join(r)}return"string"==typeof i&&(i=[i]),{key:n,namespaces:i}}translate(n,e,t){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);const r=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(n[n.length-1],e),a=s[s.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const n=e.nsSeparator||this.options.nsSeparator;return r?{res:`${a}${n}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${n}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:o}const u=this.resolve(n,e);let d=u&&u.res;const f=u&&u.usedKey||o,h=u&&u.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof g||!Array.isArray(d))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const n=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...e,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=n,u.usedParams=this.getUsedParamsDetails(e),u):n}if(i){const n=Array.isArray(d),t=n?[]:{},r=n?h:f;for(const n in d)if(Object.prototype.hasOwnProperty.call(d,n)){const o=`${r}${i}${n}`;t[n]=this.translate(o,{...e,joinArrays:!1,ns:s}),t[n]===o&&(t[n]=d[n])}d=t}}else if(m&&"string"==typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,n,e,t));else{let r=!1,s=!1;const c=void 0!==e.count&&"string"!=typeof e.count,f=rn.hasDefaultValue(e),h=c?this.pluralResolver.getSuffix(l,e.count,e):"",p=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",g=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${h}`]||e[`defaultValue${p}`]||e.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);const v=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,b=f&&m!==d&&this.options.updateMissing;if(s||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,a,o,b?m:d),i){const n=this.resolve(o,{...e,keySeparator:!1});n&&n.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let n=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let e=0;e<t.length;e++)n.push(t[e]);else"all"===this.options.saveMissingTo?n=this.languageUtils.toResolveHierarchy(e.lng||this.language):n.push(e.lng||this.language);const r=(n,t,r)=>{const i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(n,a,t,i,b,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(n,a,t,i,b,e),this.emit("missingKey",n,a,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?n.forEach((n=>{const t=this.pluralResolver.getSuffixes(n,e);g&&e[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{r([n],o+t,e[`defaultValue${t}`]||m)}))})):r(n,o,m))}d=this.extendTranslation(d,n,e,u,t),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(e),u):d}extendTranslation(n,e,t,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const s="string"==typeof n&&(t&&t.interpolation&&void 0!==t.interpolation.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const e=n.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),n=this.interpolator.interpolate(n,l,t.lng||this.language,t),s){const e=n.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(t.nest=!1)}!t.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(t.lng=r.usedLng),!1!==t.nest&&(n=this.interpolator.nest(n,(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!t.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${e[0]}`),null):o.translate(...r,e)}),t)),t.interpolation&&this.interpolator.reset()}const s=t.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=n&&a&&a.length&&!1!==t.applyPostProcessor&&(n=en.handle(a,n,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),n}resolve(n){let e,t,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof n&&(n=[n]),n.forEach((n=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(n,s),l=a.key;t=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((n=>{this.isValidLookup(e)||(o=n,!tn[`${h[0]}-${n}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(tn[`${h[0]}-${n}`]=!0,this.logger.warn(`key "${t}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((t=>{if(this.isValidLookup(e))return;i=t;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,t,n,s);else{let n;u&&(n=this.pluralResolver.getSuffix(t,s.count,s));const e=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+n),s.ordinal&&0===n.indexOf(r)&&o.push(l+n.replace(r,this.options.pluralSeparator)),d&&o.push(l+e)),f){const t=`${l}${this.options.contextSeparator}${s.context}`;o.push(t),u&&(o.push(t+n),s.ordinal&&0===n.indexOf(r)&&o.push(t+n.replace(r,this.options.pluralSeparator)),d&&o.push(t+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(r=a,e=this.getResource(t,n,a,s))})))}))})),{res:e,usedKey:t,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(n){return!(void 0===n||!this.options.returnNull&&null===n||!this.options.returnEmptyString&&""===n)}getResource(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,e,t,r):this.resourceStore.getResource(n,e,t,r)}getUsedParamsDetails(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=n.replace&&"string"!=typeof n.replace;let r=t?n.replace:n;if(t&&void 0!==n.count&&(r.count=n.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t){r={...r};for(const n of e)delete r[n]}return r}static hasDefaultValue(n){const e="defaultValue";for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e===t.substring(0,12)&&void 0!==n[t])return!0;return!1}}function on(n){return n.charAt(0).toUpperCase()+n.slice(1)}class sn{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}getScriptPartFromCode(n){if(!(n=X(n))||n.indexOf("-")<0)return null;const e=n.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(n){if(!(n=X(n))||n.indexOf("-")<0)return n;const e=n.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(n){if("string"==typeof n&&n.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let t=n.split("-");return this.options.lowerCaseLng?t=t.map((n=>n.toLowerCase())):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=on(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=on(t[1].toLowerCase())),e.indexOf(t[2].toLowerCase())>-1&&(t[2]=on(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let e;return n.forEach((n=>{if(e)return;const t=this.formatLanguageCode(n);this.options.supportedLngs&&!this.isSupportedCode(t)||(e=t)})),!e&&this.options.supportedLngs&&n.forEach((n=>{if(e)return;const t=this.getLanguagePartFromCode(n);if(this.isSupportedCode(t))return e=t;e=this.options.supportedLngs.find((n=>n===t?n:n.indexOf("-")<0&&t.indexOf("-")<0?void 0:n.indexOf("-")>0&&t.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===t||0===n.indexOf(t)&&t.length>1?n:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(n,e){if(!n)return[];if("function"==typeof n&&(n=n(e)),"string"==typeof n&&(n=[n]),Array.isArray(n))return n;if(!e)return n.default||[];let t=n[e];return t||(t=n[this.getScriptPartFromCode(e)]),t||(t=n[this.formatLanguageCode(e)]),t||(t=n[this.getLanguagePartFromCode(e)]),t||(t=n.default),t||[]}toResolveHierarchy(n,e){const t=this.getFallbackCodes(e||this.options.fallbackLng||[],n),r=[],i=n=>{n&&(this.isSupportedCode(n)?r.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return"string"==typeof n&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(n)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(n)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(n))):"string"==typeof n&&i(this.formatLanguageCode(n)),t.forEach((n=>{r.indexOf(n)<0&&i(this.formatLanguageCode(n))})),r}}let an=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ln={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(n){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},5:function(n){return Number(0==n?0:1==n?1:2==n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&n<=4?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:n<7?2:n<11?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&n<20?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1&&n%100!=11?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0==n||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3)},20:function(n){return Number(1==n?0:0==n||n%100>0&&n%100<20?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)},22:function(n){return Number(1==n?0:2==n?1:(n<0||n>10)&&n%10==0?2:3)}};const cn=["v1","v2","v3"],un=["v4"],dn={zero:0,one:1,two:2,few:3,many:4,other:5};class fn{constructor(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=n,this.options=e,this.logger=j.create("pluralResolver"),this.options.compatibilityJSON&&!un.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const n={};return an.forEach((e=>{e.lngs.forEach((t=>{n[t]={numbers:e.nr,plurals:ln[e.fc]}}))})),n}()}addRule(n,e){this.rules[n]=e}getRule(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(X("dev"===n?"en":n),{type:e.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}needsPlural(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(n,e);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}getPluralFormsOfKey(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(n,t).map((n=>`${e}${n}`))}getSuffixes(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(n,e);return t?this.shouldUseIntlApi()?t.resolvedOptions().pluralCategories.sort(((n,e)=>dn[n]-dn[e])).map((n=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${n}`)):t.numbers.map((t=>this.getSuffix(n,t,e))):[]}getSuffix(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(n,t);return r?this.shouldUseIntlApi()?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r.select(e)}`:this.getSuffixRetroCompatible(r,e):(this.logger.warn(`no plural rule found for: ${n}`),"")}getSuffixRetroCompatible(n,e){const t=n.noAbs?n.plurals(e):n.plurals(Math.abs(e));let r=n.numbers[t];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?i():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()}shouldUseIntlApi(){return!cn.includes(this.options.compatibilityJSON)}}function hn(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(n,e,t){const r=H(n,t);return void 0!==r?r:H(e,t)}(n,e,t);return!o&&i&&"string"==typeof t&&(o=J(n,t,r),void 0===o&&(o=J(e,t,r))),o}class pn{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||(n=>n),this.init(n)}init(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:e,escapeValue:t,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=n.interpolation;this.escape=void 0!==e?e:Z,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?q(i):o||"{{",this.suffix=s?q(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?q(d):f||q("$t("),this.nestingSuffix=h?q(h):p||q(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(n,e)=>n&&n.source===e?(n.lastIndex=0,n):new RegExp(e,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,e,t,r){let i,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(n){return n.replace(/\$/g,"$$$$")}const c=n=>{if(n.indexOf(this.formatSeparator)<0){const i=hn(e,a,n,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,t,{...r,...e,interpolationkey:n}):i}const i=n.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(hn(e,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,t,{...r,...e,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:n=>l(n)},{regex:this.regexp,safeValue:n=>this.escapeValue?l(this.escape(n)):l(n)}].forEach((e=>{for(s=0;i=e.regex.exec(n);){const t=i[1].trim();if(o=c(t),void 0===o)if("function"==typeof u){const e=u(n,i,r);o="string"==typeof e?e:""}else if(r&&Object.prototype.hasOwnProperty.call(r,t))o="";else{if(d){o=i[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${n}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=Y(o));const a=e.safeValue(o);if(n=n.replace(i[0],a),d?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),n}nest(n,e){let t,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(n,e){const t=this.nestingOptionsSeparator;if(n.indexOf(t)<0)return n;const r=n.split(new RegExp(`${t}[ ]*{`));let o=`{${r[1]}`;n=r[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${n}`,e),`${n}${t}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,n}for(;t=this.nestingRegexp.exec(n);){let a=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==t[0].indexOf(this.formatSeparator)&&!/{.*}/.test(t[1])){const n=t[1].split(this.formatSeparator).map((n=>n.trim()));t[1]=n.shift(),a=n,l=!0}if(r=e(s.call(this,t[1].trim(),i),i),r&&t[0]===n&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Y(r)),r||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${n}`),r=""),l&&(r=a.reduce(((n,e)=>this.format(n,e,o.lng,{...o,interpolationkey:t[1].trim()})),r.trim())),n=n.replace(t[0],r),this.regexp.lastIndex=0}return n}}function gn(n){const e={};return function(t,r,i){const o=r+JSON.stringify(i);let s=e[o];return s||(s=n(X(r),i),e[o]=s),s(t)}}class mn{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("formatter"),this.options=n,this.formats={number:gn(((n,e)=>{const t=new Intl.NumberFormat(n,{...e});return n=>t.format(n)})),currency:gn(((n,e)=>{const t=new Intl.NumberFormat(n,{...e,style:"currency"});return n=>t.format(n)})),datetime:gn(((n,e)=>{const t=new Intl.DateTimeFormat(n,{...e});return n=>t.format(n)})),relativetime:gn(((n,e)=>{const t=new Intl.RelativeTimeFormat(n,{...e});return n=>t.format(n,e.range||"day")})),list:gn(((n,e)=>{const t=new Intl.ListFormat(n,{...e});return n=>t.format(n)}))},this.init(n)}init(n){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(n,e){this.formats[n.toLowerCase().trim()]=e}addCached(n,e){this.formats[n.toLowerCase().trim()]=gn(e)}format(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.split(this.formatSeparator).reduce(((n,e)=>{const{formatName:i,formatOptions:o}=function(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===e&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach((n=>{if(n){const[e,...r]=n.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=e.trim();t[o]||(t[o]=i),"false"===i&&(t[o]=!1),"true"===i&&(t[o]=!0),isNaN(i)||(t[o]=parseInt(i,10))}}))}return{formatName:e,formatOptions:t}}(e);if(this.formats[i]){let e=n;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||t;e=this.formats[i](n,a,{...o,...r,...s})}catch(n){this.logger.warn(n)}return e}return this.logger.warn(`there was no format function for ${i}`),n}),n);return i}}class vn extends z{constructor(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=n,this.store=e,this.services=t,this.languageUtils=t.languageUtils,this.options=r,this.logger=j.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(t,r.backend,r)}queueLoad(n,e,t,r){const i={},o={},s={},a={};return n.forEach((n=>{let r=!0;e.forEach((e=>{const s=`${n}|${e}`;!t.reload&&this.store.hasResourceBundle(n,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[e]&&(a[e]=!0)))})),r||(s[n]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(n,e,t){const r=n.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),t&&this.store.addResourceBundle(i,o,t,void 0,void 0,{skipCopy:!0}),this.state[n]=e?-1:2;const s={};this.queue.forEach((t=>{!function(n,e,t,r){const{obj:i,k:o}=V(n,e,Object);i[o]=i[o]||[],i[o].push(t)}(t.loaded,[i],o),function(n,e){void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--)}(t,n),e&&t.errors.push(e),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach((n=>{s[n]||(s[n]={});const e=t.loaded[n];e.length&&e.forEach((e=>{void 0===s[n][e]&&(s[n][e]=!0)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((n=>!n.done))}read(n,e,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!n.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:n,ns:e,fcName:t,tried:r,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const n=this.waitingReads.shift();this.read(n.lng,n.ns,n.fcName,n.tried,n.wait,n.callback)}s&&a&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,n,e,t,r+1,2*i,o)}),i):o(s,a)},a=this.backend[t].bind(this.backend);if(2!==a.length)return a(n,e,s);try{const t=a(n,e);t&&"function"==typeof t.then?t.then((n=>s(null,n))).catch(s):s(null,t)}catch(n){s(n)}}prepareLoading(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof n&&(n=this.languageUtils.toResolveHierarchy(n)),"string"==typeof e&&(e=[e]);const i=this.queueLoad(n,e,t,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((n=>{this.loadOne(n)}))}load(n,e,t){this.prepareLoading(n,e,{},t)}reload(n,e,t){this.prepareLoading(n,e,{reload:!0},t)}loadOne(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=n.split("|"),r=t[0],i=t[1];this.read(r,i,"read",void 0,void 0,((t,o)=>{t&&this.logger.warn(`${e}loading namespace ${i} for language ${r} failed`,t),!t&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${r}`,o),this.loaded(n,t,o)}))}saveMissing(n,e,t,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${t}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=t&&""!==t){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(n,e,t,r,a):l(n,e,t,r),i&&"function"==typeof i.then?i.then((n=>s(null,n))).catch(s):s(null,i)}catch(n){s(n)}else l(n,e,t,r,s,a)}n&&n[0]&&this.store.addResource(n[0],e,t,r)}}}function bn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(n){let e={};if("object"==typeof n[1]&&(e=n[1]),"string"==typeof n[1]&&(e.defaultValue=n[1]),"string"==typeof n[2]&&(e.tDescription=n[2]),"object"==typeof n[2]||"object"==typeof n[3]){const t=n[3]||n[2];Object.keys(t).forEach((n=>{e[n]=t[n]}))}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function yn(n){return"string"==typeof n.ns&&(n.ns=[n.ns]),"string"==typeof n.fallbackLng&&(n.fallbackLng=[n.fallbackLng]),"string"==typeof n.fallbackNS&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function xn(){}class wn extends z{constructor(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var t;if(super(),this.options=yn(n),this.services={},this.logger=j,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((n=>{"function"==typeof t[n]&&(t[n]=t[n].bind(t))})),e&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,e),this;setTimeout((()=>{this.init(n,e)}),0)}}init(){var n=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=bn();function i(n){return n?"function"==typeof n?new n:n:null}if(this.options={...r,...this.options,...yn(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?j.init(i(this.modules.logger),this.options):j.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=mn);const t=new sn(this.options);this.store=new nn(this.options.resources,this.options);const o=this.services;o.logger=j,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new fn(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new pn(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new vn(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new rn(this.services,this.options),this.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)})),this.modules.external.forEach((n=>{n.init&&n.init(this)}))}if(this.format=this.options.interpolation.format,t||(t=xn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const n=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);n.length>0&&"dev"!==n[0]&&(this.options.lng=n[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return n.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return n.store[e](...arguments),n}}));const o=$(),s=()=>{const n=(n,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(e),t(n,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return n(null,this.t.bind(this));this.changeLanguage(this.options.lng,n)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn;const t="string"==typeof n?n:this.language;if("function"==typeof n&&(e=n),!this.options.resources||this.options.partialBundledLanguages){if(t&&"cimode"===t.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const n=[],r=e=>{if(!e)return;if("cimode"===e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&n.indexOf(e)<0&&n.push(e)}))};if(t)r(t);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((n=>r(n)))}this.options.preload&&this.options.preload.forEach((n=>r(n))),this.services.backendConnector.load(n,this.options.ns,(n=>{n||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(n)}))}else e(null)}reloadResources(n,e,t){const r=$();return n||(n=this.languages),e||(e=this.options.ns),t||(t=xn),this.services.backendConnector.reload(n,e,(n=>{r.resolve(),t(n)})),r}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===n.type&&(this.modules.backend=n),("logger"===n.type||n.log&&n.warn&&n.error)&&(this.modules.logger=n),"languageDetector"===n.type&&(this.modules.languageDetector=n),"i18nFormat"===n.type&&(this.modules.i18nFormat=n),"postProcessor"===n.type&&en.addPostProcessor(n),"formatter"===n.type&&(this.modules.formatter=n),"3rdParty"===n.type&&this.modules.external.push(n),this}setResolvedLanguage(n){if(n&&this.languages&&!(["cimode","dev"].indexOf(n)>-1))for(let n=0;n<this.languages.length;n++){const e=this.languages[n];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(n,e){var t=this;this.isLanguageChangingTo=n;const r=$();this.emit("languageChanging",n);const i=n=>{this.language=n,this.languages=this.services.languageUtils.toResolveHierarchy(n),this.resolvedLanguage=void 0,this.setResolvedLanguage(n)},o=(n,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return t.t(...arguments)})),e&&e(n,(function(){return t.t(...arguments)}))},s=e=>{n||e||!this.services.languageDetector||(e=[]);const t="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);t&&(this.language||i(t),this.translator.language||this.translator.changeLanguage(t),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(t)),this.loadResources(t,(n=>{o(n,t)}))};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(n):s(this.services.languageDetector.detect()),r}getFixedT(n,e,t){var r=this;const i=function(n,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([n,e].concat(a))}else o={...e};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||t||i.keyPrefix;const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(n)?n.map((n=>`${o.keyPrefix}${c}${n}`)):o.keyPrefix?`${o.keyPrefix}${c}${n}`:n,r.t(u,o)};return"string"==typeof n?i.lng=n:i.lngs=n,i.ns=e,i.keyPrefix=t,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=e.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(n,e)=>{const t=this.services.backendConnector.state[`${n}|${e}`];return-1===t||2===t};if(e.precheck){const n=e.precheck(this,o);if(void 0!==n)return n}return!!this.hasResourceBundle(t,n)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,n)||r&&!o(i,n)))}loadNamespaces(n,e){const t=$();return this.options.ns?("string"==typeof n&&(n=[n]),n.forEach((n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)})),this.loadResources((n=>{t.resolve(),e&&e(n)})),t):(e&&e(),Promise.resolve())}loadLanguages(n,e){const t=$();"string"==typeof n&&(n=[n]);const r=this.options.preload||[],i=n.filter((n=>r.indexOf(n)<0&&this.services.languageUtils.isSupportedCode(n)));return i.length?(this.options.preload=r.concat(i),this.loadResources((n=>{t.resolve(),e&&e(n)})),t):(e&&e(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";const e=this.services&&this.services.languageUtils||new sn(bn());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn;const t=n.forkResourceStore;t&&delete n.forkResourceStore;const r={...this.options,...n,isClone:!0},i=new wn(r);void 0===n.debug&&void 0===n.prefix||(i.logger=i.logger.clone(n));return["store","services","language"].forEach((n=>{i[n]=this[n]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},t&&(i.store=new nn(this.store.data,r),i.services.resourceStore=i.store),i.translator=new rn(i.services,r),i.translator.on("*",(function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];i.emit(n,...t)})),i.init(r,e),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kn=wn.createInstance();kn.createInstance=wn.createInstance,kn.createInstance,kn.dir,kn.init,kn.loadResources,kn.reloadResources,kn.use,kn.changeLanguage,kn.getFixedT,kn.t,kn.exists,kn.setDefaultNamespace,kn.hasLoadedNamespace,kn.loadNamespaces,kn.loadLanguages;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function _n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Sn(n){if(n.__esModule)return n;var e=n.default;if("function"==typeof e){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach((function(e){var r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})})),t}const En={};function On(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];"string"==typeof e[0]&&En[e[0]]||("string"==typeof e[0]&&(En[e[0]]=new Date),function(){if(console&&console.warn){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];"string"==typeof e[0]&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}(...e))}const Cn=(n,e)=>()=>{if(n.isInitialized)e();else{const t=()=>{setTimeout((()=>{n.off("initialized",t)}),0),e()};n.on("initialized",t)}};function Nn(n,e,t){n.loadNamespaces(e,Cn(n,t))}function Tn(n,e,t,r){"string"==typeof t&&(t=[t]),t.forEach((e=>{n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),n.loadLanguages(e,Cn(n,r))}const An=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Dn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Pn=n=>Dn[n];let Ln,Mn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:n=>n.replace(An,Pn)};const In={type:"3rdParty",init(n){!function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Mn={...Mn,...n}}(n.options.react),function(n){Ln=n}(n)}},Rn=o();class Fn{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach((n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function jn(n,e,t,r){return n.getFixedT(e,t,r)}function zn(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:t}=e,{i18n:r,defaultNS:i}=s(Rn)||{},o=t||r||Ln;if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Fn),!o){On("You will need to pass in an i18next instance by using initReactI18next");const n=(n,e)=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.defaultValue?e.defaultValue:Array.isArray(n)?n[n.length-1]:n,e=[n,{},!1];return e.t=n,e.i18n={},e.ready=!1,e}o.options.react&&void 0!==o.options.react.wait&&On("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...Mn,...o.options.react,...e},{useSuspense:f,keyPrefix:h}=d;let p=n||i||o.options&&o.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(p);const g=(o.isInitialized||o.initializedStoreOnce)&&p.every((n=>function(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(e,r)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!r(e.isLanguageChangingTo,n))return!1}}):function(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.languages[0],i=!!e.options&&e.options.fallbackLng,o=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;const s=(n,t)=>{const r=e.services.backendConnector.state[`${n}|${t}`];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,n)||!e.hasResourceBundle(r,n)&&e.services.backendConnector.backend&&(!e.options.resources||e.options.partialBundledLanguages)&&(!s(r,n)||i&&!s(o,n)))}(n,e,t):(On("i18n.languages were undefined or empty",e.languages),!0)}(n,o,d))),m=function(n,e,t,r){return u(jn(n,e,t,r),[n,e,t,r])}(o,e.lng||null,"fallback"===d.nsMode?p:p[0],h),v=()=>m,b=()=>jn(o,e.lng||null,"fallback"===d.nsMode?p:p[0],h),[y,x]=a(v);let w=p.join();e.lng&&(w=`${e.lng}${w}`);const k=((n,e)=>{const t=l();return c((()=>{t.current=n}),[n,e]),t.current})(w),_=l(!0);c((()=>{const{bindI18n:n,bindI18nStore:t}=d;function r(){_.current&&x(b)}return _.current=!0,g||f||(e.lng?Tn(o,e.lng,p,(()=>{_.current&&x(b)})):Nn(o,p,(()=>{_.current&&x(b)}))),g&&k&&k!==w&&_.current&&x(b),n&&o&&o.on(n,r),t&&o&&o.store.on(t,r),()=>{_.current=!1,n&&o&&n.split(" ").forEach((n=>o.off(n,r))),t&&o&&t.split(" ").forEach((n=>o.store.off(n,r)))}}),[o,w]),c((()=>{_.current&&g&&x(v)}),[o,h,g]);const S=[y,o,g];if(S.t=y,S.i18n=o,S.ready=g,g)return S;if(!g&&!f)return S;throw new Promise((n=>{e.lng?Tn(o,e.lng,p,(()=>n())):Nn(o,p,(()=>n()))}))}var $n,Yn,Un,Vn,Bn,Hn=function(){return Hn=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},Hn.apply(this,arguments)};function Wn(n,e,t,r){return new(t||(t=Promise))((function(i,o){function s(n){try{l(r.next(n))}catch(n){o(n)}}function a(n){try{l(r.throw(n))}catch(n){o(n)}}function l(n){n.done?i(n.value):function(n){return n instanceof t?n:new t((function(e){e(n)}))}(n.value).then(s,a)}l((r=r.apply(n,e||[])).next())}))}function qn(n,e){var t,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(n,s)}catch(n){a=[6,n],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function Gn(n,e,t){if(t||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))}function Zn(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}"function"==typeof SuppressedError&&SuppressedError,function(n){n.NOT_SHOW="modal-not-show",n.ENTERED="modal-entered",n.EXITED="modal-exited",n.OK_CLICK="modal-ok-button-click",n.CANCEL_CLICK="modal-cancel-button-click",n.CLOSE_CLICK="modal-close-button-click",n.OUTSIDE_CLICK="modal-outside-click",n.ESC_CLICK="modal-esc-click",n.ALL_REMOVED="modal-all-removed"}($n||($n={})),function(n){n.SVG="image/svg+xml",n.PNG="image/png",n.JPG="image/jpeg",n.GIF="image/gif",n.PDF="application/pdf",n.OTF="font/otf"}(Yn||(Yn={})),function(n){n.SVG=".svg",n.PNG=".png",n.JPG=".jpeg",n.GIF=".gif",n.PDF=".pdf",n.OTF=".otf"}(Un||(Un={})),function(n){n.REQUIRED="required",n.TYPE="type"}(Vn||(Vn={})),function(n){n.MIN_LENGTH="minLength",n.MAX_LENGTH="maxLength",n.EXACT_LENGTH="exactLength",n.SAME="same",n.TC_IDENTITY="TCIdentity",n.PASSWORD="password",n.EMAIL="email",n.USERNAME="username"}(Bn||(Bn={}));const Qn=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),Kn=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),Jn=["background: #3598FE","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),Xn=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #111111","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ee=["background-image: url('https://i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let te={single:(n,e="info")=>{var t="";"info"===e&&(t=Qn),"error"===e&&(t=Kn),console.log("%c "+n+" ",t),"error"===e&&console.log("%c "+n,ee)},double:(n,e,t="info")=>{var r="";"info"===t&&(r=Jn),"error"===t&&(r=Xn),console.log("%c "+n+": %c "+e+" ",r,ne)},table:n=>{console.table(n)}};var re=function(n){var e,t=a(""),r=t[0],i=t[1];c((function(){return function(){document.body.removeChild(e)}}),[]);return{loadReCaptcha:function(n){(e=document.createElement("script")).src="https://www.google.com/recaptcha/api.js?render="+n,e.onload=function(){i(n)},document.body.appendChild(e)},executeReCaptcha:function(){if(""===r)return te.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(n&&n(null));window.grecaptcha.ready((function(e){try{window.grecaptcha.execute(r,{action:"login"}).then((function(e){te.double("ReCaptcha V3","Token is valid"),console.log("token: "+e),n&&n(e)}))}catch(n){te.double("ReCaptcha V3","Token is invalid","error")}}))}}},ie=function(n){void 0===n&&(n=function(){});var e=a(!1),t=e[0],r=e[1];t||(n(),r(!0))},oe=function(n,e){void 0===e&&(e=!1),c((function(){var r=!1,i=document.head,o=t();return document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&(r=!0)})),r||i.appendChild(o),function(){e&&document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&document.head.removeChild(e)}))}}),[n]);var t=function(){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=n,e}},se="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ae="object"==typeof se&&se&&se.Object===Object&&se,le="object"==typeof self&&self&&self.Object===Object&&self,ce=(ae||le||Function("return this")()).Symbol;var ue=Array.isArray,de=Object.prototype,fe=de.hasOwnProperty,he=de.toString,pe=ce?ce.toStringTag:void 0;var ge=Object.prototype.toString;var me="[object Null]",ve="[object Undefined]",be=ce?ce.toStringTag:void 0;function ye(n){return null==n?void 0===n?ve:me:be&&be in Object(n)?function(n){var e=fe.call(n,pe),t=n[pe];try{n[pe]=void 0;var r=!0}catch(n){}var i=he.call(n);return r&&(e?n[pe]=t:delete n[pe]),i}(n):function(n){return ge.call(n)}(n)}var xe="[object Symbol]";var we=1/0,ke=ce?ce.prototype:void 0,_e=ke?ke.toString:void 0;function Se(n){if("string"==typeof n)return n;if(ue(n))return function(n,e){for(var t=-1,r=null==n?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}(n,Se)+"";if(function(n){return"symbol"==typeof n||function(n){return null!=n&&"object"==typeof n}(n)&&ye(n)==xe}(n))return _e?_e.call(n):"";var e=n+"";return"0"==e&&1/n==-we?"-0":e}var Ee=0;function Oe(n){var e=++Ee;return function(n){return null==n?"":Se(n)}(n)+e}var Ce={exports:{}},Ne={exports:{}},Te={exports:{}},Ae={exports:{}},De={exports:{}},Pe={exports:{}},Le={},Me={exports:{}};!function(n,e){function t(n){for(var e=n.toLowerCase(),t="",r=!1,i=0;i<6&&void 0!==e[i];i++){var o=e.charCodeAt(i);if(r=32===o,!(o>=97&&o<=102||o>=48&&o<=57))break;t+=e[i]}if(0!==t.length){var s=parseInt(t,16);return s>=55296&&s<=57343||0===s||s>1114111?["�",t.length+(r?1:0)]:[String.fromCodePoint(s),t.length+(r?1:0)]}}e.__esModule=!0,e.default=function(n){var e=r.test(n);if(!e)return n;for(var i="",o=0;o<n.length;o++)if("\\"!==n[o])i+=n[o];else{var s=t(n.slice(o+1,o+7));if(void 0!==s){i+=s[0],o+=s[1];continue}if("\\"===n[o+1]){i+="\\",o++;continue}n.length===o+1&&(i+=n[o])}return i};var r=/\\/;n.exports=e.default}(Me,Me.exports);var Ie,Re,Fe=Me.exports,je={exports:{}};Ie=je,(Re=je.exports).__esModule=!0,Re.default=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];for(;t.length>0;){var i=t.shift();if(!n[i])return;n=n[i]}return n},Ie.exports=Re.default;var ze=je.exports,$e={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];for(;t.length>0;){var i=t.shift();n[i]||(n[i]={}),n=n[i]}},n.exports=e.default}($e,$e.exports);var Ye=$e.exports,Ue={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){var e="",t=n.indexOf("/*"),r=0;for(;t>=0;){e+=n.slice(r,t);var i=n.indexOf("*/",t+2);if(i<0)return e;r=i+2,t=n.indexOf("/*",r)}return e+=n.slice(r),e},n.exports=e.default}(Ue,Ue.exports);var Ve=Ue.exports;Le.__esModule=!0,Le.unesc=Le.stripComments=Le.getProp=Le.ensureObject=void 0;var Be=Ge(Fe);Le.unesc=Be.default;var He=Ge(ze);Le.getProp=He.default;var We=Ge(Ye);Le.ensureObject=We.default;var qe=Ge(Ve);function Ge(n){return n&&n.__esModule?n:{default:n}}Le.stripComments=qe.default,function(n,e){e.__esModule=!0,e.default=void 0;var t=Le;function r(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var i=function n(e,t){if("object"!=typeof e||null===e)return e;var r=new e.constructor;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];"parent"===i&&"object"===typeof o?t&&(r[i]=t):r[i]=o instanceof Array?o.map((function(e){return n(e,r)})):n(o,r)}return r},o=function(){function n(n){void 0===n&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var e=n.prototype;return e.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},e.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.clone=function(n){void 0===n&&(n={});var e=i(this);for(var t in n)e[t]=n[t];return e},e.appendToPropertyAndEscape=function(n,e,t){this.raws||(this.raws={});var r=this[n],i=this.raws[n];this[n]=r+e,i||t!==e?this.raws[n]=(i||r)+t:delete this.raws[n]},e.setPropertyAndEscape=function(n,e,t){this.raws||(this.raws={}),this[n]=e,this.raws[n]=t},e.setPropertyWithoutEscape=function(n,e){this[n]=e,this.raws&&delete this.raws[n]},e.isAtPosition=function(n,e){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n)&&(!(this.source.end.line<n)&&(!(this.source.start.line===n&&this.source.start.column>e)&&!(this.source.end.line===n&&this.source.end.column<e)))},e.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},e.valueToString=function(){return String(this.stringifyProperty("value"))},e.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},r(n,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===n&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===n&&(n=this.spaces.after),n||""},set:function(n){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),n}();e.default=o,n.exports=e.default}(Pe,Pe.exports);var Ze=Pe.exports,Qe={__esModule:!0};Qe.UNIVERSAL=Qe.TAG=Qe.STRING=Qe.SELECTOR=Qe.ROOT=Qe.PSEUDO=Qe.NESTING=Qe.ID=Qe.COMMENT=Qe.COMBINATOR=Qe.CLASS=Qe.ATTRIBUTE=void 0;Qe.TAG="tag";Qe.STRING="string";Qe.SELECTOR="selector";Qe.ROOT="root";Qe.PSEUDO="pseudo";Qe.NESTING="nesting";Qe.ID="id";Qe.COMMENT="comment";Qe.COMBINATOR="combinator";Qe.CLASS="class";Qe.ATTRIBUTE="attribute";Qe.UNIVERSAL="universal",function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=o(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=i?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(Qe);function o(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(o=function(n){return n?t:e})(n)}function s(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(n,e)}(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function l(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function c(n,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},c(n,e)}var u=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).nodes||(t.nodes=[]),t}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t);var o=r.prototype;return o.append=function(n){return n.parent=this,this.nodes.push(n),this},o.prepend=function(n){return n.parent=this,this.nodes.unshift(n),this},o.at=function(n){return this.nodes[n]},o.index=function(n){return"number"==typeof n?n:this.nodes.indexOf(n)},o.removeChild=function(n){var e;for(var t in n=this.index(n),this.at(n).parent=void 0,this.nodes.splice(n,1),this.indexes)(e=this.indexes[t])>=n&&(this.indexes[t]=e-1);return this},o.removeAll=function(){for(var n,e=s(this.nodes);!(n=e()).done;){n.value.parent=void 0}return this.nodes=[],this},o.empty=function(){return this.removeAll()},o.insertAfter=function(n,e){e.parent=this;var t,r=this.index(n);for(var i in this.nodes.splice(r+1,0,e),e.parent=this,this.indexes)r<=(t=this.indexes[i])&&(this.indexes[i]=t+1);return this},o.insertBefore=function(n,e){e.parent=this;var t,r=this.index(n);for(var i in this.nodes.splice(r,0,e),e.parent=this,this.indexes)(t=this.indexes[i])<=r&&(this.indexes[i]=t+1);return this},o._findChildAtPosition=function(n,e){var t=void 0;return this.each((function(r){if(r.atPosition){var i=r.atPosition(n,e);if(i)return t=i,!1}else if(r.isAtPosition(n,e))return t=r,!1})),t},o.atPosition=function(n,e){return this.isAtPosition(n,e)?this._findChildAtPosition(n,e)||this:void 0},o._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},o.each=function(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var e=this.lastEach;if(this.indexes[e]=0,this.length){for(var t,r;this.indexes[e]<this.length&&(t=this.indexes[e],!1!==(r=n(this.at(t),t)));)this.indexes[e]+=1;return delete this.indexes[e],!1!==r&&void 0}},o.walk=function(n){return this.each((function(e,t){var r=n(e,t);if(!1!==r&&e.length&&(r=e.walk(n)),!1===r)return!1}))},o.walkAttributes=function(n){var e=this;return this.walk((function(t){if(t.type===i.ATTRIBUTE)return n.call(e,t)}))},o.walkClasses=function(n){var e=this;return this.walk((function(t){if(t.type===i.CLASS)return n.call(e,t)}))},o.walkCombinators=function(n){var e=this;return this.walk((function(t){if(t.type===i.COMBINATOR)return n.call(e,t)}))},o.walkComments=function(n){var e=this;return this.walk((function(t){if(t.type===i.COMMENT)return n.call(e,t)}))},o.walkIds=function(n){var e=this;return this.walk((function(t){if(t.type===i.ID)return n.call(e,t)}))},o.walkNesting=function(n){var e=this;return this.walk((function(t){if(t.type===i.NESTING)return n.call(e,t)}))},o.walkPseudos=function(n){var e=this;return this.walk((function(t){if(t.type===i.PSEUDO)return n.call(e,t)}))},o.walkTags=function(n){var e=this;return this.walk((function(t){if(t.type===i.TAG)return n.call(e,t)}))},o.walkUniversals=function(n){var e=this;return this.walk((function(t){if(t.type===i.UNIVERSAL)return n.call(e,t)}))},o.split=function(n){var e=this,t=[];return this.reduce((function(r,i,o){var s=n.call(e,i);return t.push(i),s?(r.push(t),t=[]):o===e.length-1&&r.push(t),r}),[])},o.map=function(n){return this.nodes.map(n)},o.reduce=function(n,e){return this.nodes.reduce(n,e)},o.every=function(n){return this.nodes.every(n)},o.some=function(n){return this.nodes.some(n)},o.filter=function(n){return this.nodes.filter(n)},o.sort=function(n){return this.nodes.sort(n)},o.toString=function(){return this.map(String).join("")},l(r,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),r}(r.default);e.default=u,n.exports=e.default}(De,De.exports);var Ke=De.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function s(n,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},s(n,e)}var a=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.ROOT,t}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t);var a=r.prototype;return a.toString=function(){var n=this.reduce((function(n,e){return n.push(String(e)),n}),[]).join(",");return this.trailingComma?n+",":n},a.error=function(n,e){return this._error?this._error(n,e):new Error(n)},o(r,[{key:"errorGenerator",set:function(n){this._error=n}}]),r}(r.default);e.default=a,n.exports=e.default}(Ae,Ae.exports);var Je=Ae.exports,Xe={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.SELECTOR,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Xe,Xe.exports);var nt=Xe.exports,et={exports:{}},tt={}.hasOwnProperty,rt=/[ -,\.\/:-@\[-\^`\{-~]/,it=/[ -,\.\/:-@\[\]\^`\{-~]/,ot=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,st=function n(e,t){t=function(n,e){if(!n)return e;var t={};for(var r in e)t[r]=tt.call(n,r)?n[r]:e[r];return t}(t,n.options),"single"!=t.quotes&&"double"!=t.quotes&&(t.quotes="single");for(var r="double"==t.quotes?'"':"'",i=t.isIdentifier,o=e.charAt(0),s="",a=0,l=e.length;a<l;){var c=e.charAt(a++),u=c.charCodeAt(),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<l){var f=e.charCodeAt(a++);56320==(64512&f)?u=((1023&u)<<10)+(1023&f)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=t.escapeEverything?rt.test(c)?"\\"+c:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==c||!i&&('"'==c&&r==c||"'"==c&&r==c)||i&&it.test(c)?"\\"+c:c;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(ot,(function(n,e,t){return e&&e.length%2?n:(e||"")+t})),!i&&t.wrap?r+s+r:s};st.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},st.version="3.0.0";var at=st;!function(n,e){e.__esModule=!0,e.default=void 0;var t=s(at),r=Le,i=s(Ze),o=Qe;function s(n){return n&&n.__esModule?n:{default:n}}function a(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function l(n,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},l(n,e)}var c=function(n){var e,i;function s(e){var t;return(t=n.call(this,e)||this).type=o.CLASS,t._constructed=!0,t}return i=n,(e=s).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i),s.prototype.valueToString=function(){return"."+n.prototype.valueToString.call(this)},a(s,[{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var e=(0,t.default)(n,{isIdentifier:!0});e!==n?((0,r.ensureObject)(this,"raws"),this.raws.value=e):this.raws&&delete this.raws.value}this._value=n}}]),s}(i.default);e.default=c,n.exports=e.default}(et,et.exports);var lt=et.exports,ct={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.COMMENT,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(ct,ct.exports);var ut=ct.exports,dt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.ID,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r.prototype.valueToString=function(){return"#"+n.prototype.valueToString.call(this)},r}(r.default);e.default=s,n.exports=e.default}(dt,dt.exports);var ft=dt.exports,ht={exports:{}},pt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t=i(at),r=Le;function i(n){return n&&n.__esModule?n:{default:n}}function o(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function s(n,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},s(n,e)}var a=function(n){var e,i;function a(){return n.apply(this,arguments)||this}i=n,(e=a).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var l=a.prototype;return l.qualifiedName=function(n){return this.namespace?this.namespaceString+"|"+n:n},l.valueToString=function(){return this.qualifiedName(n.prototype.valueToString.call(this))},o(a,[{key:"namespace",get:function(){return this._namespace},set:function(n){if(!0===n||"*"===n||"&"===n)return this._namespace=n,void(this.raws&&delete this.raws.namespace);var e=(0,t.default)(n,{isIdentifier:!0});this._namespace=n,e!==n?((0,r.ensureObject)(this,"raws"),this.raws.namespace=e):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(n){this.namespace=n}},{key:"namespaceString",get:function(){if(this.namespace){var n=this.stringifyProperty("namespace");return!0===n?"":n}return""}}]),a}(i(Ze).default);e.default=a,n.exports=e.default}(pt,pt.exports);var gt=pt.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=gt)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.TAG,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(ht,ht.exports);var mt=ht.exports,vt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.STRING,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(vt,vt.exports);var bt=vt.exports,yt={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ke)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.PSEUDO,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r.prototype.toString=function(){var n=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),n,this.rawSpaceAfter].join("")},r}(r.default);e.default=s,n.exports=e.default}(yt,yt.exports);var xt=yt.exports,wt={},kt=[],_t=[],St="undefined"!=typeof Uint8Array?Uint8Array:Array,Et=!1;function Ot(){Et=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)kt[e]=n[e],_t[n.charCodeAt(e)]=e;_t["-".charCodeAt(0)]=62,_t["_".charCodeAt(0)]=63}function Ct(n,e,t){for(var r,i,o=[],s=e;s<t;s+=3)r=(n[s]<<16)+(n[s+1]<<8)+n[s+2],o.push(kt[(i=r)>>18&63]+kt[i>>12&63]+kt[i>>6&63]+kt[63&i]);return o.join("")}function Nt(n){var e;Et||Ot();for(var t=n.length,r=t%3,i="",o=[],s=16383,a=0,l=t-r;a<l;a+=s)o.push(Ct(n,a,a+s>l?l:a+s));return 1===r?(e=n[t-1],i+=kt[e>>2],i+=kt[e<<4&63],i+="=="):2===r&&(e=(n[t-2]<<8)+n[t-1],i+=kt[e>>10],i+=kt[e>>4&63],i+=kt[e<<2&63],i+="="),o.push(i),o.join("")}function Tt(n,e,t,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=t?i-1:0,f=t?-1:1,h=n[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+n[e+d],d+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+n[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)}function At(n,e,t,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*l-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;n[t+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;n[t+h]=255&s,h+=p,s/=256,c-=8);n[t+h-p]|=128*g}var Dt={}.toString,Pt=Array.isArray||function(n){return"[object Array]"==Dt.call(n)};function Lt(){return It.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Mt(n,e){if(Lt()<e)throw new RangeError("Invalid typed array length");return It.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=It.prototype:(null===n&&(n=new It(e)),n.length=e),n}function It(n,e,t){if(!(It.TYPED_ARRAY_SUPPORT||this instanceof It))return new It(n,e,t);if("number"==typeof n){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return jt(this,n)}return Rt(this,n,e,t)}function Rt(n,e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(n,e,t,r){if(e.byteLength,t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);It.TYPED_ARRAY_SUPPORT?(n=e).__proto__=It.prototype:n=zt(n,e);return n}(n,e,t,r):"string"==typeof e?function(n,e,t){"string"==typeof t&&""!==t||(t="utf8");if(!It.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Ut(e,t);n=Mt(n,r);var i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(n,e,t):function(n,e){if(Yt(e)){var t=0|$t(e.length);return 0===(n=Mt(n,t)).length||e.copy(n,0,0,t),n}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?Mt(n,0):zt(n,e);if("Buffer"===e.type&&Pt(e.data))return zt(n,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(n,e)}function Ft(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function jt(n,e){if(Ft(e),n=Mt(n,e<0?0:0|$t(e)),!It.TYPED_ARRAY_SUPPORT)for(var t=0;t<e;++t)n[t]=0;return n}function zt(n,e){var t=e.length<0?0:0|$t(e.length);n=Mt(n,t);for(var r=0;r<t;r+=1)n[r]=255&e[r];return n}function $t(n){if(n>=Lt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Lt().toString(16)+" bytes");return 0|n}function Yt(n){return!(null==n||!n._isBuffer)}function Ut(n,e){if(Yt(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var t=n.length;if(0===t)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return gr(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return mr(n).length;default:if(r)return gr(n).length;e=(""+e).toLowerCase(),r=!0}}function Vt(n,e,t){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ir(this,e,t);case"utf8":case"utf-8":return nr(this,e,t);case"ascii":return tr(this,e,t);case"latin1":case"binary":return rr(this,e,t);case"base64":return Xt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return or(this,e,t);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function Bt(n,e,t){var r=n[e];n[e]=n[t],n[t]=r}function Ht(n,e,t,r,i){if(0===n.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=i?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(i)return-1;t=n.length-1}else if(t<0){if(!i)return-1;t=0}if("string"==typeof e&&(e=It.from(e,r)),Yt(e))return 0===e.length?-1:Wt(n,e,t,r,i);if("number"==typeof e)return e&=255,It.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,e,t):Uint8Array.prototype.lastIndexOf.call(n,e,t):Wt(n,[e],t,r,i);throw new TypeError("val must be string, number or Buffer")}function Wt(n,e,t,r,i){var o,s=1,a=n.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||e.length<2)return-1;s=2,a/=2,l/=2,t/=2}function c(n,e){return 1===s?n[e]:n.readUInt16BE(e*s)}if(i){var u=-1;for(o=t;o<a;o++)if(c(n,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(t+l>a&&(t=a-l),o=t;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(n,o+f)!==c(e,f)){d=!1;break}if(d)return o}return-1}function qt(n,e,t,r){t=Number(t)||0;var i=n.length-t;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;n[t+s]=a}return s}function Gt(n,e,t,r){return vr(gr(e,n.length-t),n,t,r)}function Zt(n,e,t,r){return vr(function(n){for(var e=[],t=0;t<n.length;++t)e.push(255&n.charCodeAt(t));return e}(e),n,t,r)}function Qt(n,e,t,r){return Zt(n,e,t,r)}function Kt(n,e,t,r){return vr(mr(e),n,t,r)}function Jt(n,e,t,r){return vr(function(n,e){for(var t,r,i,o=[],s=0;s<n.length&&!((e-=2)<0);++s)r=(t=n.charCodeAt(s))>>8,i=t%256,o.push(i),o.push(r);return o}(e,n.length-t),n,t,r)}function Xt(n,e,t){return 0===e&&t===n.length?Nt(n):Nt(n.slice(e,t))}function nr(n,e,t){t=Math.min(n.length,t);for(var r=[],i=e;i<t;){var o,s,a,l,c=n[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=t)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=n[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=n[i+1],s=n[i+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=n[i+1],s=n[i+2],a=n[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(n){var e=n.length;if(e<=er)return String.fromCharCode.apply(String,n);var t="",r=0;for(;r<e;)t+=String.fromCharCode.apply(String,n.slice(r,r+=er));return t}(r)}It.TYPED_ARRAY_SUPPORT=void 0===se.TYPED_ARRAY_SUPPORT||se.TYPED_ARRAY_SUPPORT,Lt(),It.poolSize=8192,It._augment=function(n){return n.__proto__=It.prototype,n},It.from=function(n,e,t){return Rt(null,n,e,t)},It.TYPED_ARRAY_SUPPORT&&(It.prototype.__proto__=Uint8Array.prototype,It.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&It[Symbol.species]),It.alloc=function(n,e,t){return function(n,e,t,r){return Ft(e),e<=0?Mt(n,e):void 0!==t?"string"==typeof r?Mt(n,e).fill(t,r):Mt(n,e).fill(t):Mt(n,e)}(null,n,e,t)},It.allocUnsafe=function(n){return jt(null,n)},It.allocUnsafeSlow=function(n){return jt(null,n)},It.isBuffer=br,It.compare=function(n,e){if(!Yt(n)||!Yt(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var t=n.length,r=e.length,i=0,o=Math.min(t,r);i<o;++i)if(n[i]!==e[i]){t=n[i],r=e[i];break}return t<r?-1:r<t?1:0},It.isEncoding=function(n){switch(String(n).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}},It.concat=function(n,e){if(!Pt(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return It.alloc(0);var t;if(void 0===e)for(e=0,t=0;t<n.length;++t)e+=n[t].length;var r=It.allocUnsafe(e),i=0;for(t=0;t<n.length;++t){var o=n[t];if(!Yt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},It.byteLength=Ut,It.prototype._isBuffer=!0,It.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<n;e+=2)Bt(this,e,e+1);return this},It.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<n;e+=4)Bt(this,e,e+3),Bt(this,e+1,e+2);return this},It.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<n;e+=8)Bt(this,e,e+7),Bt(this,e+1,e+6),Bt(this,e+2,e+5),Bt(this,e+3,e+4);return this},It.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?nr(this,0,n):Vt.apply(this,arguments)},It.prototype.equals=function(n){if(!Yt(n))throw new TypeError("Argument must be a Buffer");return this===n||0===It.compare(this,n)},It.prototype.inspect=function(){var n="";return this.length>0&&(n=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(n+=" ... ")),"<Buffer "+n+">"},It.prototype.compare=function(n,e,t,r,i){if(!Yt(n))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=n?n.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||t>n.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=t)return 0;if(r>=i)return-1;if(e>=t)return 1;if(this===n)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(t>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),c=n.slice(e,t),u=0;u<a;++u)if(l[u]!==c[u]){o=l[u],s=c[u];break}return o<s?-1:s<o?1:0},It.prototype.includes=function(n,e,t){return-1!==this.indexOf(n,e,t)},It.prototype.indexOf=function(n,e,t){return Ht(this,n,e,t,!0)},It.prototype.lastIndexOf=function(n,e,t){return Ht(this,n,e,t,!1)},It.prototype.write=function(n,e,t,r){if(void 0===e)r="utf8",t=this.length,e=0;else if(void 0===t&&"string"==typeof e)r=e,t=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(t)?(t|=0,void 0===r&&(r="utf8")):(r=t,t=void 0)}var i=this.length-e;if((void 0===t||t>i)&&(t=i),n.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return qt(this,n,e,t);case"utf8":case"utf-8":return Gt(this,n,e,t);case"ascii":return Zt(this,n,e,t);case"latin1":case"binary":return Qt(this,n,e,t);case"base64":return Kt(this,n,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt(this,n,e,t);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},It.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var er=4096;function tr(n,e,t){var r="";t=Math.min(n.length,t);for(var i=e;i<t;++i)r+=String.fromCharCode(127&n[i]);return r}function rr(n,e,t){var r="";t=Math.min(n.length,t);for(var i=e;i<t;++i)r+=String.fromCharCode(n[i]);return r}function ir(n,e,t){var r=n.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);for(var i="",o=e;o<t;++o)i+=pr(n[o]);return i}function or(n,e,t){for(var r=n.slice(e,t),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function sr(n,e,t){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+e>t)throw new RangeError("Trying to access beyond buffer length")}function ar(n,e,t,r,i,o){if(!Yt(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(t+r>n.length)throw new RangeError("Index out of range")}function lr(n,e,t,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(n.length-t,2);i<o;++i)n[t+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function cr(n,e,t,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(n.length-t,4);i<o;++i)n[t+i]=e>>>8*(r?i:3-i)&255}function ur(n,e,t,r,i,o){if(t+r>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function dr(n,e,t,r,i){return i||ur(n,0,t,4),At(n,e,t,r,23,4),t+4}function fr(n,e,t,r,i){return i||ur(n,0,t,8),At(n,e,t,r,52,8),t+8}It.prototype.slice=function(n,e){var t,r=this.length;if((n=~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<n&&(e=n),It.TYPED_ARRAY_SUPPORT)(t=this.subarray(n,e)).__proto__=It.prototype;else{var i=e-n;t=new It(i,void 0);for(var o=0;o<i;++o)t[o]=this[o+n]}return t},It.prototype.readUIntLE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n],i=1,o=0;++o<e&&(i*=256);)r+=this[n+o]*i;return r},It.prototype.readUIntBE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n+--e],i=1;e>0&&(i*=256);)r+=this[n+--e]*i;return r},It.prototype.readUInt8=function(n,e){return e||sr(n,1,this.length),this[n]},It.prototype.readUInt16LE=function(n,e){return e||sr(n,2,this.length),this[n]|this[n+1]<<8},It.prototype.readUInt16BE=function(n,e){return e||sr(n,2,this.length),this[n]<<8|this[n+1]},It.prototype.readUInt32LE=function(n,e){return e||sr(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},It.prototype.readUInt32BE=function(n,e){return e||sr(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},It.prototype.readIntLE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=this[n],i=1,o=0;++o<e&&(i*=256);)r+=this[n+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},It.prototype.readIntBE=function(n,e,t){n|=0,e|=0,t||sr(n,e,this.length);for(var r=e,i=1,o=this[n+--r];r>0&&(i*=256);)o+=this[n+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},It.prototype.readInt8=function(n,e){return e||sr(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},It.prototype.readInt16LE=function(n,e){e||sr(n,2,this.length);var t=this[n]|this[n+1]<<8;return 32768&t?4294901760|t:t},It.prototype.readInt16BE=function(n,e){e||sr(n,2,this.length);var t=this[n+1]|this[n]<<8;return 32768&t?4294901760|t:t},It.prototype.readInt32LE=function(n,e){return e||sr(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},It.prototype.readInt32BE=function(n,e){return e||sr(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},It.prototype.readFloatLE=function(n,e){return e||sr(n,4,this.length),Tt(this,n,!0,23,4)},It.prototype.readFloatBE=function(n,e){return e||sr(n,4,this.length),Tt(this,n,!1,23,4)},It.prototype.readDoubleLE=function(n,e){return e||sr(n,8,this.length),Tt(this,n,!0,52,8)},It.prototype.readDoubleBE=function(n,e){return e||sr(n,8,this.length),Tt(this,n,!1,52,8)},It.prototype.writeUIntLE=function(n,e,t,r){(n=+n,e|=0,t|=0,r)||ar(this,n,e,t,Math.pow(2,8*t)-1,0);var i=1,o=0;for(this[e]=255&n;++o<t&&(i*=256);)this[e+o]=n/i&255;return e+t},It.prototype.writeUIntBE=function(n,e,t,r){(n=+n,e|=0,t|=0,r)||ar(this,n,e,t,Math.pow(2,8*t)-1,0);var i=t-1,o=1;for(this[e+i]=255&n;--i>=0&&(o*=256);)this[e+i]=n/o&255;return e+t},It.prototype.writeUInt8=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,1,255,0),It.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=255&n,e+1},It.prototype.writeUInt16LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,65535,0),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):lr(this,n,e,!0),e+2},It.prototype.writeUInt16BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,65535,0),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):lr(this,n,e,!1),e+2},It.prototype.writeUInt32LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,4294967295,0),It.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=255&n):cr(this,n,e,!0),e+4},It.prototype.writeUInt32BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,4294967295,0),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):cr(this,n,e,!1),e+4},It.prototype.writeIntLE=function(n,e,t,r){if(n=+n,e|=0,!r){var i=Math.pow(2,8*t-1);ar(this,n,e,t,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&n;++o<t&&(s*=256);)n<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(n/s|0)-a&255;return e+t},It.prototype.writeIntBE=function(n,e,t,r){if(n=+n,e|=0,!r){var i=Math.pow(2,8*t-1);ar(this,n,e,t,i-1,-i)}var o=t-1,s=1,a=0;for(this[e+o]=255&n;--o>=0&&(s*=256);)n<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(n/s|0)-a&255;return e+t},It.prototype.writeInt8=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,1,127,-128),It.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=255&n,e+1},It.prototype.writeInt16LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,32767,-32768),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):lr(this,n,e,!0),e+2},It.prototype.writeInt16BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,2,32767,-32768),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):lr(this,n,e,!1),e+2},It.prototype.writeInt32LE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,2147483647,-2147483648),It.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):cr(this,n,e,!0),e+4},It.prototype.writeInt32BE=function(n,e,t){return n=+n,e|=0,t||ar(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),It.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):cr(this,n,e,!1),e+4},It.prototype.writeFloatLE=function(n,e,t){return dr(this,n,e,!0,t)},It.prototype.writeFloatBE=function(n,e,t){return dr(this,n,e,!1,t)},It.prototype.writeDoubleLE=function(n,e,t){return fr(this,n,e,!0,t)},It.prototype.writeDoubleBE=function(n,e,t){return fr(this,n,e,!1,t)},It.prototype.copy=function(n,e,t,r){if(t||(t=0),r||0===r||(r=this.length),e>=n.length&&(e=n.length),e||(e=0),r>0&&r<t&&(r=t),r===t)return 0;if(0===n.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),n.length-e<r-t&&(r=n.length-e+t);var i,o=r-t;if(this===n&&t<e&&e<r)for(i=o-1;i>=0;--i)n[i+e]=this[i+t];else if(o<1e3||!It.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)n[i+e]=this[i+t];else Uint8Array.prototype.set.call(n,this.subarray(t,t+o),e);return o},It.prototype.fill=function(n,e,t,r){if("string"==typeof n){if("string"==typeof e?(r=e,e=0,t=this.length):"string"==typeof t&&(r=t,t=this.length),1===n.length){var i=n.charCodeAt(0);i<256&&(n=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!It.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof n&&(n&=255);if(e<0||this.length<e||this.length<t)throw new RangeError("Out of range index");if(t<=e)return this;var o;if(e>>>=0,t=void 0===t?this.length:t>>>0,n||(n=0),"number"==typeof n)for(o=e;o<t;++o)this[o]=n;else{var s=Yt(n)?n:gr(new It(n,r).toString()),a=s.length;for(o=0;o<t-e;++o)this[o+e]=s[o%a]}return this};var hr=/[^+\/0-9A-Za-z-_]/g;function pr(n){return n<16?"0"+n.toString(16):n.toString(16)}function gr(n,e){var t;e=e||1/0;for(var r=n.length,i=null,o=[],s=0;s<r;++s){if((t=n.charCodeAt(s))>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&o.push(239,191,189),i=t;continue}t=65536+(i-55296<<10|t-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;o.push(t)}else if(t<2048){if((e-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function mr(n){return function(n){var e,t,r,i,o,s;Et||Ot();var a=n.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===n[a-2]?2:"="===n[a-1]?1:0,s=new St(3*a/4-o),r=o>0?a-4:a;var l=0;for(e=0,t=0;e<r;e+=4,t+=3)i=_t[n.charCodeAt(e)]<<18|_t[n.charCodeAt(e+1)]<<12|_t[n.charCodeAt(e+2)]<<6|_t[n.charCodeAt(e+3)],s[l++]=i>>16&255,s[l++]=i>>8&255,s[l++]=255&i;return 2===o?(i=_t[n.charCodeAt(e)]<<2|_t[n.charCodeAt(e+1)]>>4,s[l++]=255&i):1===o&&(i=_t[n.charCodeAt(e)]<<10|_t[n.charCodeAt(e+1)]<<4|_t[n.charCodeAt(e+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s}(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(hr,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function vr(n,e,t,r){for(var i=0;i<r&&!(i+t>=e.length||i>=n.length);++i)e[i+t]=n[i];return i}function br(n){return null!=n&&(!!n._isBuffer||yr(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&yr(n.slice(0,0))}(n))}function yr(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}function xr(){throw new Error("setTimeout has not been defined")}function wr(){throw new Error("clearTimeout has not been defined")}var kr=xr,_r=wr;function Sr(n){if(kr===setTimeout)return setTimeout(n,0);if((kr===xr||!kr)&&setTimeout)return kr=setTimeout,setTimeout(n,0);try{return kr(n,0)}catch(e){try{return kr.call(null,n,0)}catch(e){return kr.call(this,n,0)}}}"function"==typeof se.setTimeout&&(kr=setTimeout),"function"==typeof se.clearTimeout&&(_r=clearTimeout);var Er,Or=[],Cr=!1,Nr=-1;function Tr(){Cr&&Er&&(Cr=!1,Er.length?Or=Er.concat(Or):Nr=-1,Or.length&&Ar())}function Ar(){if(!Cr){var n=Sr(Tr);Cr=!0;for(var e=Or.length;e;){for(Er=Or,Or=[];++Nr<e;)Er&&Er[Nr].run();Nr=-1,e=Or.length}Er=null,Cr=!1,function(n){if(_r===clearTimeout)return clearTimeout(n);if((_r===wr||!_r)&&clearTimeout)return _r=clearTimeout,clearTimeout(n);try{return _r(n)}catch(e){try{return _r.call(null,n)}catch(e){return _r.call(this,n)}}}(n)}}function Dr(n,e){this.fun=n,this.array=e}Dr.prototype.run=function(){this.fun.apply(null,this.array)};function Pr(){}var Lr=Pr,Mr=Pr,Ir=Pr,Rr=Pr,Fr=Pr,jr=Pr,zr=Pr;var $r=se.performance||{},Yr=$r.now||$r.mozNow||$r.msNow||$r.oNow||$r.webkitNow||function(){return(new Date).getTime()};var Ur=new Date;var Vr={nextTick:function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Or.push(new Dr(n,e)),1!==Or.length||Cr||Sr(Ar)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Lr,addListener:Mr,once:Ir,off:Rr,removeListener:Fr,removeAllListeners:jr,emit:zr,binding:function(n){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(n){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(n){var e=.001*Yr.call($r),t=Math.floor(e),r=Math.floor(e%1*1e9);return n&&(t-=n[0],(r-=n[1])<0&&(t--,r+=1e9)),[t,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ur)/1e3}},Br="function"==typeof Object.create?function(n,e){n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:function(n,e){n.super_=e;var t=function(){};t.prototype=e.prototype,n.prototype=new t,n.prototype.constructor=n},Hr=/%[sdj%]/g;function Wr(n){if(!li(n)){for(var e=[],t=0;t<arguments.length;t++)e.push(Kr(arguments[t]));return e.join(" ")}t=1;for(var r=arguments,i=r.length,o=String(n).replace(Hr,(function(n){if("%%"===n)return"%";if(t>=i)return n;switch(n){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(n){return"[Circular]"}default:return n}})),s=r[t];t<i;s=r[++t])oi(s)||!fi(s)?o+=" "+s:o+=" "+Kr(s);return o}function qr(n,e){if(ui(se.process))return function(){return qr(n,e).apply(this,arguments)};if(!0===Vr.noDeprecation)return n;var t=!1;return function(){if(!t){if(Vr.throwDeprecation)throw new Error(e);Vr.traceDeprecation?console.trace(e):console.error(e),t=!0}return n.apply(this,arguments)}}var Gr,Zr={};function Qr(n){if(ui(Gr)&&(Gr=Vr.env.NODE_DEBUG||""),n=n.toUpperCase(),!Zr[n])if(new RegExp("\\b"+n+"\\b","i").test(Gr)){Zr[n]=function(){var e=Wr.apply(null,arguments);console.error("%s %d: %s",n,0,e)}}else Zr[n]=function(){};return Zr[n]}function Kr(n,e){var t={seen:[],stylize:Xr};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),ii(e)?t.showHidden=e:e&&ki(t,e),ui(t.showHidden)&&(t.showHidden=!1),ui(t.depth)&&(t.depth=2),ui(t.colors)&&(t.colors=!1),ui(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Jr),ni(t,n,t.depth)}function Jr(n,e){var t=Kr.styles[e];return t?"["+Kr.colors[t][0]+"m"+n+"["+Kr.colors[t][1]+"m":n}function Xr(n,e){return n}function ni(n,e,t){if(n.customInspect&&e&&gi(e.inspect)&&e.inspect!==Kr&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(t,n);return li(r)||(r=ni(n,r,t)),r}var i=function(n,e){if(ui(e))return n.stylize("undefined","undefined");if(li(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,"string")}if(ai(e))return n.stylize(""+e,"number");if(ii(e))return n.stylize(""+e,"boolean");if(oi(e))return n.stylize("null","null")}(n,e);if(i)return i;var o=Object.keys(e),s=function(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}(o);if(n.showHidden&&(o=Object.getOwnPropertyNames(e)),pi(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ei(e);if(0===o.length){if(gi(e)){var a=e.name?": "+e.name:"";return n.stylize("[Function"+a+"]","special")}if(di(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(hi(e))return n.stylize(Date.prototype.toString.call(e),"date");if(pi(e))return ei(e)}var l,c="",u=!1,d=["{","}"];(ri(e)&&(u=!0,d=["[","]"]),gi(e))&&(c=" [Function"+(e.name?": "+e.name:"")+"]");return di(e)&&(c=" "+RegExp.prototype.toString.call(e)),hi(e)&&(c=" "+Date.prototype.toUTCString.call(e)),pi(e)&&(c=" "+ei(e)),0!==o.length||u&&0!=e.length?t<0?di(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special"):(n.seen.push(e),l=u?function(n,e,t,r,i){for(var o=[],s=0,a=e.length;s<a;++s)_i(e,String(s))?o.push(ti(n,e,t,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(ti(n,e,t,r,i,!0))})),o}(n,e,t,s,o):o.map((function(r){return ti(n,e,t,s,r,u)})),n.seen.pop(),function(n,e,t){var r=n.reduce((function(n,e){return e.indexOf("\n"),n+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return t[0]+(""===e?"":e+"\n ")+" "+n.join(",\n ")+" "+t[1];return t[0]+e+" "+n.join(", ")+" "+t[1]}(l,c,d)):d[0]+c+d[1]}function ei(n){return"["+Error.prototype.toString.call(n)+"]"}function ti(n,e,t,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):l.set&&(a=n.stylize("[Setter]","special")),_i(r,i)||(s="["+i+"]"),a||(n.seen.indexOf(l.value)<0?(a=oi(t)?ni(n,l.value,null):ni(n,l.value,t-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(n){return" "+n})).join("\n").substr(2):"\n"+a.split("\n").map((function(n){return" "+n})).join("\n")):a=n.stylize("[Circular]","special")),ui(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=n.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=n.stylize(s,"string"))}return s+": "+a}function ri(n){return Array.isArray(n)}function ii(n){return"boolean"==typeof n}function oi(n){return null===n}function si(n){return null==n}function ai(n){return"number"==typeof n}function li(n){return"string"==typeof n}function ci(n){return"symbol"==typeof n}function ui(n){return void 0===n}function di(n){return fi(n)&&"[object RegExp]"===bi(n)}function fi(n){return"object"==typeof n&&null!==n}function hi(n){return fi(n)&&"[object Date]"===bi(n)}function pi(n){return fi(n)&&("[object Error]"===bi(n)||n instanceof Error)}function gi(n){return"function"==typeof n}function mi(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n}function vi(n){return br(n)}function bi(n){return Object.prototype.toString.call(n)}function yi(n){return n<10?"0"+n.toString(10):n.toString(10)}Kr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Kr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var xi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wi(){console.log("%s - %s",function(){var n=new Date,e=[yi(n.getHours()),yi(n.getMinutes()),yi(n.getSeconds())].join(":");return[n.getDate(),xi[n.getMonth()],e].join(" ")}(),Wr.apply(null,arguments))}function ki(n,e){if(!e||!fi(e))return n;for(var t=Object.keys(e),r=t.length;r--;)n[t[r]]=e[t[r]];return n}function _i(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var Si={inherits:Br,_extend:ki,log:wi,isBuffer:vi,isPrimitive:mi,isFunction:gi,isError:pi,isDate:hi,isObject:fi,isRegExp:di,isUndefined:ui,isSymbol:ci,isString:li,isNumber:ai,isNullOrUndefined:si,isNull:oi,isBoolean:ii,isArray:ri,inspect:Kr,deprecate:qr,format:Wr,debuglog:Qr},Ei=Sn(Object.freeze({__proto__:null,_extend:ki,debuglog:Qr,default:Si,deprecate:qr,format:Wr,inherits:Br,inspect:Kr,isArray:ri,isBoolean:ii,isBuffer:vi,isDate:hi,isError:pi,isFunction:gi,isNull:oi,isNullOrUndefined:si,isNumber:ai,isObject:fi,isPrimitive:mi,isRegExp:di,isString:li,isSymbol:ci,isUndefined:ui,log:wi})).deprecate;!function(n){n.__esModule=!0,n.default=void 0,n.unescapeValue=p;var e,t=s(at),r=s(Fe),i=s(gt),o=Qe;function s(n){return n&&n.__esModule?n:{default:n}}function a(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function l(n,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},l(n,e)}var c=Ei,u=/^('|")([^]*)\1$/,d=c((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),f=c((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),h=c((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function p(n){var e=!1,t=null,i=n,o=i.match(u);return o&&(t=o[1],i=o[2]),(i=(0,r.default)(i))!==n&&(e=!0),{deprecatedUsage:e,unescaped:i,quoteMark:t}}var g=function(n){var e,r;function i(e){var t;return void 0===e&&(e={}),t=n.call(this,function(n){if(void 0!==n.quoteMark)return n;if(void 0===n.value)return n;h();var e=p(n.value),t=e.quoteMark,r=e.unescaped;return n.raws||(n.raws={}),void 0===n.raws.value&&(n.raws.value=n.value),n.value=r,n.quoteMark=t,n}(e))||this,t.type=o.ATTRIBUTE,t.raws=t.raws||{},Object.defineProperty(t.raws,"unquoted",{get:c((function(){return t.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:c((function(){return t.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),t._constructed=!0,t}r=n,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,l(e,r);var s=i.prototype;return s.getQuotedValue=function(n){void 0===n&&(n={});var e=this._determineQuoteMark(n),r=m[e];return(0,t.default)(this._value,r)},s._determineQuoteMark=function(n){return n.smart?this.smartQuoteMark(n):this.preferredQuoteMark(n)},s.setValue=function(n,e){void 0===e&&(e={}),this._value=n,this._quoteMark=this._determineQuoteMark(e),this._syncRawValue()},s.smartQuoteMark=function(n){var e=this.value,r=e.replace(/[^']/g,"").length,o=e.replace(/[^"]/g,"").length;if(r+o===0){var s=(0,t.default)(e,{isIdentifier:!0});if(s===e)return i.NO_QUOTE;var a=this.preferredQuoteMark(n);if(a===i.NO_QUOTE){var l=this.quoteMark||n.quoteMark||i.DOUBLE_QUOTE,c=m[l];if((0,t.default)(e,c).length<s.length)return l}return a}return o===r?this.preferredQuoteMark(n):o<r?i.DOUBLE_QUOTE:i.SINGLE_QUOTE},s.preferredQuoteMark=function(n){var e=n.preferCurrentQuoteMark?this.quoteMark:n.quoteMark;return void 0===e&&(e=n.preferCurrentQuoteMark?n.quoteMark:this.quoteMark),void 0===e&&(e=i.DOUBLE_QUOTE),e},s._syncRawValue=function(){var n=(0,t.default)(this._value,m[this.quoteMark]);n===this._value?this.raws&&delete this.raws.value:this.raws.value=n},s._handleEscapes=function(n,e){if(this._constructed){var r=(0,t.default)(e,{isIdentifier:!0});r!==e?this.raws[n]=r:delete this.raws[n]}},s._spacesFor=function(n){var e=this.spaces[n]||{},t=this.raws.spaces&&this.raws.spaces[n]||{};return Object.assign({before:"",after:""},e,t)},s._stringFor=function(n,e,t){void 0===e&&(e=n),void 0===t&&(t=v);var r=this._spacesFor(e);return t(this.stringifyProperty(n),r)},s.offsetOf=function(n){var e=1,t=this._spacesFor("attribute");if(e+=t.before.length,"namespace"===n||"ns"===n)return this.namespace?e:-1;if("attributeNS"===n)return e;if(e+=this.namespaceString.length,this.namespace&&(e+=1),"attribute"===n)return e;e+=this.stringifyProperty("attribute").length,e+=t.after.length;var r=this._spacesFor("operator");e+=r.before.length;var i=this.stringifyProperty("operator");if("operator"===n)return i?e:-1;e+=i.length,e+=r.after.length;var o=this._spacesFor("value");e+=o.before.length;var s=this.stringifyProperty("value");return"value"===n?s?e:-1:(e+=s.length,e+=o.after.length,e+=this._spacesFor("insensitive").before.length,"insensitive"===n&&this.insensitive?e:-1)},s.toString=function(){var n=this,e=[this.rawSpaceBefore,"["];return e.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||""===this.value)&&(e.push(this._stringFor("operator")),e.push(this._stringFor("value")),e.push(this._stringFor("insensitiveFlag","insensitive",(function(e,t){return!(e.length>0)||n.quoted||0!==t.before.length||n.spaces.value&&n.spaces.value.after||(t.before=" "),v(e,t)})))),e.push("]"),e.push(this.rawSpaceAfter),e.join("")},a(i,[{key:"quoted",get:function(){var n=this.quoteMark;return"'"===n||'"'===n},set:function(n){f()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(n){this._constructed?this._quoteMark!==n&&(this._quoteMark=n,this._syncRawValue()):this._quoteMark=n}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var e=p(n),t=e.deprecatedUsage,r=e.unescaped,i=e.quoteMark;if(t&&d(),r===this._value&&i===this._quoteMark)return;this._value=r,this._quoteMark=i,this._syncRawValue()}else this._value=n}},{key:"insensitive",get:function(){return this._insensitive},set:function(n){n||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=n}},{key:"attribute",get:function(){return this._attribute},set:function(n){this._handleEscapes("attribute",n),this._attribute=n}}]),i}(i.default);n.default=g,g.NO_QUOTE=null,g.SINGLE_QUOTE="'",g.DOUBLE_QUOTE='"';var m=((e={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},e);function v(n,e){return""+e.before+n+e.after}}(wt);var Oi={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=gt)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.UNIVERSAL,t.value="*",t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Oi,Oi.exports);var Ci=Oi.exports,Ni={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.COMBINATOR,t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Ni,Ni.exports);var Ti=Ni.exports,Ai={exports:{}};!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ze)&&t.__esModule?t:{default:t},i=Qe;function o(n,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},o(n,e)}var s=function(n){var e,t;function r(e){var t;return(t=n.call(this,e)||this).type=i.NESTING,t.value="&",t}return t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),r}(r.default);e.default=s,n.exports=e.default}(Ai,Ai.exports);var Di=Ai.exports,Pi={exports:{}};!function(n,e){e.__esModule=!0,e.default=function(n){return n.sort((function(n,e){return n-e}))},n.exports=e.default}(Pi,Pi.exports);var Li=Pi.exports,Mi={},Ii={__esModule:!0};Ii.word=Ii.tilde=Ii.tab=Ii.str=Ii.space=Ii.slash=Ii.singleQuote=Ii.semicolon=Ii.plus=Ii.pipe=Ii.openSquare=Ii.openParenthesis=Ii.newline=Ii.greaterThan=Ii.feed=Ii.equals=Ii.doubleQuote=Ii.dollar=Ii.cr=Ii.comment=Ii.comma=Ii.combinator=Ii.colon=Ii.closeSquare=Ii.closeParenthesis=Ii.caret=Ii.bang=Ii.backslash=Ii.at=Ii.asterisk=Ii.ampersand=void 0;Ii.ampersand=38;Ii.asterisk=42;Ii.at=64;Ii.comma=44;Ii.colon=58;Ii.semicolon=59;Ii.openParenthesis=40;Ii.closeParenthesis=41;Ii.openSquare=91;Ii.closeSquare=93;Ii.dollar=36;Ii.tilde=126;Ii.caret=94;Ii.plus=43;Ii.equals=61;Ii.pipe=124;Ii.greaterThan=62;Ii.space=32;Ii.singleQuote=39;Ii.doubleQuote=34;Ii.slash=47;Ii.bang=33;Ii.backslash=92;Ii.cr=13;Ii.feed=12;Ii.newline=10;Ii.tab=9;Ii.str=39;Ii.comment=-1;Ii.word=-2;Ii.combinator=-3,function(n){n.__esModule=!0,n.FIELDS=void 0,n.default=function(n){var e,t,i,o,s,a,l,c,d,f,h,p,g=[],m=n.css.valueOf(),v=m,b=v.length,y=-1,x=1,w=0,k=0;function _(e,t){if(!n.safe)throw n.error("Unclosed "+e,x,w-y,w);c=(m+=t).length-1}for(;w<b;){switch((e=m.charCodeAt(w))===r.newline&&(y=w,x+=1),e){case r.space:case r.tab:case r.newline:case r.cr:case r.feed:c=w;do{c+=1,(e=m.charCodeAt(c))===r.newline&&(y=c,x+=1)}while(e===r.space||e===r.newline||e===r.tab||e===r.cr||e===r.feed);p=r.space,i=x,t=c-y-1,k=c;break;case r.plus:case r.greaterThan:case r.tilde:case r.pipe:c=w;do{c+=1,e=m.charCodeAt(c)}while(e===r.plus||e===r.greaterThan||e===r.tilde||e===r.pipe);p=r.combinator,i=x,t=w-y,k=c;break;case r.asterisk:case r.ampersand:case r.bang:case r.comma:case r.equals:case r.dollar:case r.caret:case r.openSquare:case r.closeSquare:case r.colon:case r.semicolon:case r.openParenthesis:case r.closeParenthesis:p=e,i=x,t=w-y,k=(c=w)+1;break;case r.singleQuote:case r.doubleQuote:h=e===r.singleQuote?"'":'"',c=w;do{for(o=!1,-1===(c=m.indexOf(h,c+1))&&_("quote",h),s=c;m.charCodeAt(s-1)===r.backslash;)s-=1,o=!o}while(o);p=r.str,i=x,t=w-y,k=c+1;break;default:e===r.slash&&m.charCodeAt(w+1)===r.asterisk?(0===(c=m.indexOf("*/",w+2)+1)&&_("comment","*/"),(a=(l=m.slice(w,c+1).split("\n")).length-1)>0?(d=x+a,f=c-l[a].length):(d=x,f=y),p=r.comment,x=d,i=d,t=c-f):e===r.slash?(p=e,i=x,t=w-y,k=(c=w)+1):(c=u(m,w),p=r.word,i=x,t=c-y),k=c+1}g.push([p,x,w-y,i,t,w,k]),f&&(y=f,f=null),w=k}return g};var e,t,r=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=i(e);if(t&&t.has(n))return t.get(n);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=o?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(Ii);function i(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(i=function(n){return n?t:e})(n)}for(var o=((e={})[r.tab]=!0,e[r.newline]=!0,e[r.cr]=!0,e[r.feed]=!0,e),s=((t={})[r.space]=!0,t[r.tab]=!0,t[r.newline]=!0,t[r.cr]=!0,t[r.feed]=!0,t[r.ampersand]=!0,t[r.asterisk]=!0,t[r.bang]=!0,t[r.comma]=!0,t[r.colon]=!0,t[r.semicolon]=!0,t[r.openParenthesis]=!0,t[r.closeParenthesis]=!0,t[r.openSquare]=!0,t[r.closeSquare]=!0,t[r.singleQuote]=!0,t[r.doubleQuote]=!0,t[r.plus]=!0,t[r.pipe]=!0,t[r.tilde]=!0,t[r.greaterThan]=!0,t[r.equals]=!0,t[r.dollar]=!0,t[r.caret]=!0,t[r.slash]=!0,t),a={},l="0123456789abcdefABCDEF",c=0;c<22;c++)a[l.charCodeAt(c)]=!0;function u(n,e){var t,i=e;do{if(t=n.charCodeAt(i),s[t])return i-1;t===r.backslash?i=d(n,i)+1:i++}while(i<n.length);return i-1}function d(n,e){var t=e,i=n.charCodeAt(t+1);if(o[i]);else if(a[i]){var s=0;do{t++,s++,i=n.charCodeAt(t+1)}while(a[i]&&s<6);s<6&&i===r.space&&t++}else t++;return t}n.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}}(Mi),function(n,e){e.__esModule=!0,e.default=void 0;var t,r,i=_(Je),o=_(nt),s=_(lt),a=_(ut),l=_(ft),c=_(mt),u=_(bt),d=_(xt),f=k(wt),h=_(Ci),p=_(Ti),g=_(Di),m=_(Li),v=k(Mi),b=k(Ii),y=k(Qe),x=Le;function w(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(w=function(n){return n?t:e})(n)}function k(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=w(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if("default"!==o&&Object.prototype.hasOwnProperty.call(n,o)){var s=i?Object.getOwnPropertyDescriptor(n,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function _(n){return n&&n.__esModule?n:{default:n}}function S(n,e,t){return e&&function(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}var E=((t={})[b.space]=!0,t[b.cr]=!0,t[b.feed]=!0,t[b.newline]=!0,t[b.tab]=!0,t),O=Object.assign({},E,((r={})[b.comment]=!0,r));function C(n){return{line:n[v.FIELDS.START_LINE],column:n[v.FIELDS.START_COL]}}function N(n){return{line:n[v.FIELDS.END_LINE],column:n[v.FIELDS.END_COL]}}function T(n,e,t,r){return{start:{line:n,column:e},end:{line:t,column:r}}}function A(n){return T(n[v.FIELDS.START_LINE],n[v.FIELDS.START_COL],n[v.FIELDS.END_LINE],n[v.FIELDS.END_COL])}function D(n,e){if(n)return T(n[v.FIELDS.START_LINE],n[v.FIELDS.START_COL],e[v.FIELDS.END_LINE],e[v.FIELDS.END_COL])}function P(n,e){var t=n[e];if("string"==typeof t)return-1!==t.indexOf("\\")&&((0,x.ensureObject)(n,"raws"),n[e]=(0,x.unesc)(t),void 0===n.raws[e]&&(n.raws[e]=t)),n}function L(n,e){for(var t=-1,r=[];-1!==(t=n.indexOf(e,t+1));)r.push(t);return r}var M=function(){function n(n,e){void 0===e&&(e={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},e),this.position=0,this.css="string"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,v.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var t=D(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new i.default({source:t}),this.root.errorGenerator=this._errorGenerator();var r=new o.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(r),this.current=r,this.loop()}var e=n.prototype;return e._errorGenerator=function(){var n=this;return function(e,t){return"string"==typeof n.rule?new Error(e):n.rule.error(e,t)}},e.attribute=function(){var n=[],e=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[v.FIELDS.TYPE]!==b.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[v.FIELDS.TYPE]!==b.closeSquare)return this.expected("closing square bracket",this.currToken[v.FIELDS.START_POS]);var t=n.length,r={source:T(e[1],e[2],this.currToken[3],this.currToken[4]),sourceIndex:e[v.FIELDS.START_POS]};if(1===t&&!~[b.word].indexOf(n[0][v.FIELDS.TYPE]))return this.expected("attribute",n[0][v.FIELDS.START_POS]);for(var i=0,o="",s="",a=null,l=!1;i<t;){var c=n[i],u=this.content(c),d=n[i+1];switch(c[v.FIELDS.TYPE]){case b.space:if(l=!0,this.options.lossy)break;if(a){(0,x.ensureObject)(r,"spaces",a);var h=r.spaces[a].after||"";r.spaces[a].after=h+u;var p=(0,x.getProp)(r,"raws","spaces",a,"after")||null;p&&(r.raws.spaces[a].after=p+u)}else o+=u,s+=u;break;case b.asterisk:if(d[v.FIELDS.TYPE]===b.equals)r.operator=u,a="operator";else if((!r.namespace||"namespace"===a&&!l)&&d){o&&((0,x.ensureObject)(r,"spaces","attribute"),r.spaces.attribute.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","attribute"),r.raws.spaces.attribute.before=o,s=""),r.namespace=(r.namespace||"")+u,((0,x.getProp)(r,"raws","namespace")||null)&&(r.raws.namespace+=u),a="namespace"}l=!1;break;case b.dollar:if("value"===a){var g=(0,x.getProp)(r,"raws","value");r.value+="$",g&&(r.raws.value=g+"$");break}case b.caret:d[v.FIELDS.TYPE]===b.equals&&(r.operator=u,a="operator"),l=!1;break;case b.combinator:if("~"===u&&d[v.FIELDS.TYPE]===b.equals&&(r.operator=u,a="operator"),"|"!==u){l=!1;break}d[v.FIELDS.TYPE]===b.equals?(r.operator=u,a="operator"):r.namespace||r.attribute||(r.namespace=!0),l=!1;break;case b.word:if(d&&"|"===this.content(d)&&n[i+2]&&n[i+2][v.FIELDS.TYPE]!==b.equals&&!r.operator&&!r.namespace)r.namespace=u,a="namespace";else if(!r.attribute||"attribute"===a&&!l){o&&((0,x.ensureObject)(r,"spaces","attribute"),r.spaces.attribute.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","attribute"),r.raws.spaces.attribute.before=s,s=""),r.attribute=(r.attribute||"")+u,((0,x.getProp)(r,"raws","attribute")||null)&&(r.raws.attribute+=u),a="attribute"}else if(!r.value&&""!==r.value||"value"===a&&!l&&!r.quoteMark){var m=(0,x.unesc)(u),y=(0,x.getProp)(r,"raws","value")||"",w=r.value||"";r.value=w+m,r.quoteMark=null,(m!==u||y)&&((0,x.ensureObject)(r,"raws"),r.raws.value=(y||w)+u),a="value"}else{var k="i"===u||"I"===u;!r.value&&""!==r.value||!r.quoteMark&&!l?(r.value||""===r.value)&&(a="value",r.value+=u,r.raws.value&&(r.raws.value+=u)):(r.insensitive=k,k&&"I"!==u||((0,x.ensureObject)(r,"raws"),r.raws.insensitiveFlag=u),a="insensitive",o&&((0,x.ensureObject)(r,"spaces","insensitive"),r.spaces.insensitive.before=o,o=""),s&&((0,x.ensureObject)(r,"raws","spaces","insensitive"),r.raws.spaces.insensitive.before=s,s=""))}l=!1;break;case b.str:if(!r.attribute||!r.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[v.FIELDS.START_POS]});var _=(0,f.unescapeValue)(u),S=_.unescaped,E=_.quoteMark;r.value=S,r.quoteMark=E,a="value",(0,x.ensureObject)(r,"raws"),r.raws.value=u,l=!1;break;case b.equals:if(!r.attribute)return this.expected("attribute",c[v.FIELDS.START_POS],u);if(r.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[v.FIELDS.START_POS]});r.operator=r.operator?r.operator+u:u,a="operator",l=!1;break;case b.comment:if(a)if(l||d&&d[v.FIELDS.TYPE]===b.space||"insensitive"===a){var O=(0,x.getProp)(r,"spaces",a,"after")||"",C=(0,x.getProp)(r,"raws","spaces",a,"after")||O;(0,x.ensureObject)(r,"raws","spaces",a),r.raws.spaces[a].after=C+u}else{var N=r[a]||"",A=(0,x.getProp)(r,"raws",a)||N;(0,x.ensureObject)(r,"raws"),r.raws[a]=A+u}else s+=u;break;default:return this.error('Unexpected "'+u+'" found.',{index:c[v.FIELDS.START_POS]})}i++}P(r,"attribute"),P(r,"namespace"),this.newNode(new f.default(r)),this.position++},e.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var e=this.position,t=[],r="",i=void 0;do{if(E[this.currToken[v.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[v.FIELDS.TYPE]===b.comment){var o={};r&&(o.before=r,r=""),i=new a.default({value:this.content(),source:A(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS],spaces:o}),t.push(i)}}while(++this.position<n);if(r)if(i)i.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[e],l=this.tokens[this.position-1];t.push(new u.default({value:"",source:T(s[v.FIELDS.START_LINE],s[v.FIELDS.START_COL],l[v.FIELDS.END_LINE],l[v.FIELDS.END_COL]),sourceIndex:s[v.FIELDS.START_POS],spaces:{before:r,after:""}}))}return t},e.convertWhitespaceNodesToSpace=function(n,e){var t=this;void 0===e&&(e=!1);var r="",i="";return n.forEach((function(n){var o=t.lossySpace(n.spaces.before,e),s=t.lossySpace(n.rawSpaceBefore,e);r+=o+t.lossySpace(n.spaces.after,e&&0===o.length),i+=o+n.value+t.lossySpace(n.rawSpaceAfter,e&&0===s.length)})),i===r&&(i=void 0),{space:r,rawSpace:i}},e.isNamedCombinator=function(n){return void 0===n&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][v.FIELDS.TYPE]===b.slash&&this.tokens[n+1]&&this.tokens[n+1][v.FIELDS.TYPE]===b.word&&this.tokens[n+2]&&this.tokens[n+2][v.FIELDS.TYPE]===b.slash},e.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),e=(0,x.unesc)(n).toLowerCase(),t={};e!==n&&(t.value="/"+n+"/");var r=new p.default({value:"/"+e+"/",source:T(this.currToken[v.FIELDS.START_LINE],this.currToken[v.FIELDS.START_COL],this.tokens[this.position+2][v.FIELDS.END_LINE],this.tokens[this.position+2][v.FIELDS.END_COL]),sourceIndex:this.currToken[v.FIELDS.START_POS],raws:t});return this.position=this.position+3,r}this.unexpected()},e.combinator=function(){var n=this;if("|"===this.content())return this.namespace();var e=this.locateNextMeaningfulToken(this.position);if(!(e<0||this.tokens[e][v.FIELDS.TYPE]===b.comma)){var t,r=this.currToken,i=void 0;if(e>this.position&&(i=this.parseWhitespaceEquivalentTokens(e)),this.isNamedCombinator()?t=this.namedCombinator():this.currToken[v.FIELDS.TYPE]===b.combinator?(t=new p.default({value:this.content(),source:A(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS]}),this.position++):E[this.currToken[v.FIELDS.TYPE]]||i||this.unexpected(),t){if(i){var o=this.convertWhitespaceNodesToSpace(i),s=o.space,a=o.rawSpace;t.spaces.before=s,t.rawSpaceBefore=a}}else{var l=this.convertWhitespaceNodesToSpace(i,!0),c=l.space,u=l.rawSpace;u||(u=c);var d={},f={spaces:{}};c.endsWith(" ")&&u.endsWith(" ")?(d.before=c.slice(0,c.length-1),f.spaces.before=u.slice(0,u.length-1)):c.startsWith(" ")&&u.startsWith(" ")?(d.after=c.slice(1),f.spaces.after=u.slice(1)):f.value=u,t=new p.default({value:" ",source:D(r,this.tokens[this.position-1]),sourceIndex:r[v.FIELDS.START_POS],spaces:d,raws:f})}return this.currToken&&this.currToken[v.FIELDS.TYPE]===b.space&&(t.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(t)}var h=this.parseWhitespaceEquivalentTokens(e);if(h.length>0){var g=this.current.last;if(g){var m=this.convertWhitespaceNodesToSpace(h),y=m.space,x=m.rawSpace;void 0!==x&&(g.rawSpaceAfter+=x),g.spaces.after+=y}else h.forEach((function(e){return n.newNode(e)}))}},e.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var n=new o.default({source:{start:C(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][v.FIELDS.START_POS]});this.current.parent.append(n),this.current=n,this.position++},e.comment=function(){var n=this.currToken;this.newNode(new a.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.error=function(n,e){throw this.root.error(n,e)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[v.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[v.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[v.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[v.FIELDS.START_POS])},e.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[v.FIELDS.START_POS])},e.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[v.FIELDS.TYPE]===b.word?(this.position++,this.word(n)):this.nextToken[v.FIELDS.TYPE]===b.asterisk?(this.position++,this.universal(n)):void this.unexpectedPipe()},e.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))return void this.position++;var n=this.currToken;this.newNode(new g.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var n=this.current.last,e=1;if(this.position++,n&&n.type===y.PSEUDO){var t=new o.default({source:{start:C(this.tokens[this.position])},sourceIndex:this.tokens[this.position][v.FIELDS.START_POS]}),r=this.current;for(n.append(t),this.current=t;this.position<this.tokens.length&&e;)this.currToken[v.FIELDS.TYPE]===b.openParenthesis&&e++,this.currToken[v.FIELDS.TYPE]===b.closeParenthesis&&e--,e?this.parse():(this.current.source.end=N(this.currToken),this.current.parent.source.end=N(this.currToken),this.position++);this.current=r}else{for(var i,s=this.currToken,a="(";this.position<this.tokens.length&&e;)this.currToken[v.FIELDS.TYPE]===b.openParenthesis&&e++,this.currToken[v.FIELDS.TYPE]===b.closeParenthesis&&e--,i=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",a,a):this.newNode(new u.default({value:a,source:T(s[v.FIELDS.START_LINE],s[v.FIELDS.START_COL],i[v.FIELDS.END_LINE],i[v.FIELDS.END_COL]),sourceIndex:s[v.FIELDS.START_POS]}))}if(e)return this.expected("closing parenthesis",this.currToken[v.FIELDS.START_POS])},e.pseudo=function(){for(var n=this,e="",t=this.currToken;this.currToken&&this.currToken[v.FIELDS.TYPE]===b.colon;)e+=this.content(),this.position++;return this.currToken?this.currToken[v.FIELDS.TYPE]!==b.word?this.expected(["pseudo-class","pseudo-element"],this.currToken[v.FIELDS.START_POS]):void this.splitWord(!1,(function(r,i){e+=r,n.newNode(new d.default({value:e,source:D(t,n.currToken),sourceIndex:t[v.FIELDS.START_POS]})),i>1&&n.nextToken&&n.nextToken[v.FIELDS.TYPE]===b.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[v.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},e.space=function(){var n=this.content();0===this.position||this.prevToken[v.FIELDS.TYPE]===b.comma||this.prevToken[v.FIELDS.TYPE]===b.openParenthesis||this.current.nodes.every((function(n){return"comment"===n.type}))?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[v.FIELDS.TYPE]===b.comma||this.nextToken[v.FIELDS.TYPE]===b.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},e.string=function(){var n=this.currToken;this.newNode(new u.default({value:this.content(),source:A(n),sourceIndex:n[v.FIELDS.START_POS]})),this.position++},e.universal=function(n){var e=this.nextToken;if(e&&"|"===this.content(e))return this.position++,this.namespace();var t=this.currToken;this.newNode(new h.default({value:this.content(),source:A(t),sourceIndex:t[v.FIELDS.START_POS]}),n),this.position++},e.splitWord=function(n,e){for(var t=this,r=this.nextToken,i=this.content();r&&~[b.dollar,b.caret,b.equals,b.word].indexOf(r[v.FIELDS.TYPE]);){this.position++;var o=this.content();if(i+=o,o.lastIndexOf("\\")===o.length-1){var a=this.nextToken;a&&a[v.FIELDS.TYPE]===b.space&&(i+=this.requiredSpace(this.content(a)),this.position++)}r=this.nextToken}var u=L(i,".").filter((function(n){var e="\\"===i[n-1],t=/^\d+\.\d+%$/.test(i);return!e&&!t})),d=L(i,"#").filter((function(n){return"\\"!==i[n-1]})),f=L(i,"#{");f.length&&(d=d.filter((function(n){return!~f.indexOf(n)})));var h=(0,m.default)(function(){var n=Array.prototype.concat.apply([],arguments);return n.filter((function(e,t){return t===n.indexOf(e)}))}([0].concat(u,d)));h.forEach((function(r,o){var a,f=h[o+1]||i.length,p=i.slice(r,f);if(0===o&&e)return e.call(t,p,h.length);var g=t.currToken,m=g[v.FIELDS.START_POS]+h[o],b=T(g[1],g[2]+r,g[3],g[2]+(f-1));if(~u.indexOf(r)){var y={value:p.slice(1),source:b,sourceIndex:m};a=new s.default(P(y,"value"))}else if(~d.indexOf(r)){var x={value:p.slice(1),source:b,sourceIndex:m};a=new l.default(P(x,"value"))}else{var w={value:p,source:b,sourceIndex:m};P(w,"value"),a=new c.default(w)}t.newNode(a,n),n=null})),this.position++},e.word=function(n){var e=this.nextToken;return e&&"|"===this.content(e)?(this.position++,this.namespace()):this.splitWord(n)},e.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},e.parse=function(n){switch(this.currToken[v.FIELDS.TYPE]){case b.space:this.space();break;case b.comment:this.comment();break;case b.openParenthesis:this.parentheses();break;case b.closeParenthesis:n&&this.missingParenthesis();break;case b.openSquare:this.attribute();break;case b.dollar:case b.caret:case b.equals:case b.word:this.word();break;case b.colon:this.pseudo();break;case b.comma:this.comma();break;case b.asterisk:this.universal();break;case b.ampersand:this.nesting();break;case b.slash:case b.combinator:this.combinator();break;case b.str:this.string();break;case b.closeSquare:this.missingSquareBracket();case b.semicolon:this.missingBackslash();default:this.unexpected()}},e.expected=function(n,e,t){if(Array.isArray(n)){var r=n.pop();n=n.join(", ")+" or "+r}var i=/^[aeiou]/.test(n[0])?"an":"a";return t?this.error("Expected "+i+" "+n+', found "'+t+'" instead.',{index:e}):this.error("Expected "+i+" "+n+".",{index:e})},e.requiredSpace=function(n){return this.options.lossy?" ":n},e.optionalSpace=function(n){return this.options.lossy?"":n},e.lossySpace=function(n,e){return this.options.lossy?e?" ":"":n},e.parseParenthesisToken=function(n){var e=this.content(n);return n[v.FIELDS.TYPE]===b.space?this.requiredSpace(e):e},e.newNode=function(n,e){return e&&(/^ +$/.test(e)&&(this.options.lossy||(this.spaces=(this.spaces||"")+e),e=!0),n.namespace=e,P(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},e.content=function(n){return void 0===n&&(n=this.currToken),this.css.slice(n[v.FIELDS.START_POS],n[v.FIELDS.END_POS])},e.locateNextMeaningfulToken=function(n){void 0===n&&(n=this.position+1);for(var e=n;e<this.tokens.length;){if(!O[this.tokens[e][v.FIELDS.TYPE]])return e;e++}return-1},S(n,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),n}();e.default=M,n.exports=e.default}(Te,Te.exports);var Ri=Te.exports;!function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Ri)&&t.__esModule?t:{default:t};var i=function(){function n(n,e){this.func=n||function(){},this.funcRes=null,this.options=e}var e=n.prototype;return e._shouldUpdateSelector=function(n,e){return void 0===e&&(e={}),!1!==Object.assign({},this.options,e).updateSelector&&"string"!=typeof n},e._isLossy=function(n){return void 0===n&&(n={}),!1===Object.assign({},this.options,n).lossless},e._root=function(n,e){return void 0===e&&(e={}),new r.default(n,this._parseOptions(e)).root},e._parseOptions=function(n){return{lossy:this._isLossy(n)}},e._run=function(n,e){var t=this;return void 0===e&&(e={}),new Promise((function(r,i){try{var o=t._root(n,e);Promise.resolve(t.func(o)).then((function(r){var i=void 0;return t._shouldUpdateSelector(n,e)&&(i=o.toString(),n.selector=i),{transform:r,root:o,string:i}})).then(r,i)}catch(n){return void i(n)}}))},e._runSync=function(n,e){void 0===e&&(e={});var t=this._root(n,e),r=this.func(t);if(r&&"function"==typeof r.then)throw new Error("Selector processor returned a promise to a synchronous call.");var i=void 0;return e.updateSelector&&"string"!=typeof n&&(i=t.toString(),n.selector=i),{transform:r,root:t,string:i}},e.ast=function(n,e){return this._run(n,e).then((function(n){return n.root}))},e.astSync=function(n,e){return this._runSync(n,e).root},e.transform=function(n,e){return this._run(n,e).then((function(n){return n.transform}))},e.transformSync=function(n,e){return this._runSync(n,e).transform},e.process=function(n,e){return this._run(n,e).then((function(n){return n.string||n.root.toString()}))},e.processSync=function(n,e){var t=this._runSync(n,e);return t.string||t.root.toString()},n}();e.default=i,n.exports=e.default}(Ne,Ne.exports);var Fi=Ne.exports,ji={},zi={__esModule:!0};zi.universal=zi.tag=zi.string=zi.selector=zi.root=zi.pseudo=zi.nesting=zi.id=zi.comment=zi.combinator=zi.className=zi.attribute=void 0;var $i=Ji(wt),Yi=Ji(lt),Ui=Ji(Ti),Vi=Ji(ut),Bi=Ji(ft),Hi=Ji(Di),Wi=Ji(xt),qi=Ji(Je),Gi=Ji(nt),Zi=Ji(bt),Qi=Ji(mt),Ki=Ji(Ci);function Ji(n){return n&&n.__esModule?n:{default:n}}zi.attribute=function(n){return new $i.default(n)};zi.className=function(n){return new Yi.default(n)};zi.combinator=function(n){return new Ui.default(n)};zi.comment=function(n){return new Vi.default(n)};zi.id=function(n){return new Bi.default(n)};zi.nesting=function(n){return new Hi.default(n)};zi.pseudo=function(n){return new Wi.default(n)};zi.root=function(n){return new qi.default(n)};zi.selector=function(n){return new Gi.default(n)};zi.string=function(n){return new Zi.default(n)};zi.tag=function(n){return new Qi.default(n)};zi.universal=function(n){return new Ki.default(n)};var Xi={__esModule:!0};Xi.isComment=Xi.isCombinator=Xi.isClassName=Xi.isAttribute=void 0,Xi.isContainer=function(n){return!(!ro(n)||!n.walk)},Xi.isIdentifier=void 0,Xi.isNamespace=function(n){return oo(n)||mo(n)},Xi.isNesting=void 0,Xi.isNode=ro,Xi.isPseudo=void 0,Xi.isPseudoClass=function(n){return fo(n)&&!bo(n)},Xi.isPseudoElement=bo,Xi.isUniversal=Xi.isTag=Xi.isString=Xi.isSelector=Xi.isRoot=void 0;var no,eo=Qe,to=((no={})[eo.ATTRIBUTE]=!0,no[eo.CLASS]=!0,no[eo.COMBINATOR]=!0,no[eo.COMMENT]=!0,no[eo.ID]=!0,no[eo.NESTING]=!0,no[eo.PSEUDO]=!0,no[eo.ROOT]=!0,no[eo.SELECTOR]=!0,no[eo.STRING]=!0,no[eo.TAG]=!0,no[eo.UNIVERSAL]=!0,no);function ro(n){return"object"==typeof n&&to[n.type]}function io(n,e){return ro(e)&&e.type===n}var oo=io.bind(null,eo.ATTRIBUTE);Xi.isAttribute=oo;var so=io.bind(null,eo.CLASS);Xi.isClassName=so;var ao=io.bind(null,eo.COMBINATOR);Xi.isCombinator=ao;var lo=io.bind(null,eo.COMMENT);Xi.isComment=lo;var co=io.bind(null,eo.ID);Xi.isIdentifier=co;var uo=io.bind(null,eo.NESTING);Xi.isNesting=uo;var fo=io.bind(null,eo.PSEUDO);Xi.isPseudo=fo;var ho=io.bind(null,eo.ROOT);Xi.isRoot=ho;var po=io.bind(null,eo.SELECTOR);Xi.isSelector=po;var go=io.bind(null,eo.STRING);Xi.isString=go;var mo=io.bind(null,eo.TAG);Xi.isTag=mo;var vo=io.bind(null,eo.UNIVERSAL);function bo(n){return fo(n)&&n.value&&(n.value.startsWith("::")||":before"===n.value.toLowerCase()||":after"===n.value.toLowerCase()||":first-letter"===n.value.toLowerCase()||":first-line"===n.value.toLowerCase())}Xi.isUniversal=vo,function(n){n.__esModule=!0;var e=Qe;Object.keys(e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in n&&n[t]===e[t]||(n[t]=e[t]))}));var t=zi;Object.keys(t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in n&&n[e]===t[e]||(n[e]=t[e]))}));var r=Xi;Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in n&&n[e]===r[e]||(n[e]=r[e]))}))}(ji),function(n,e){e.__esModule=!0,e.default=void 0;var t,r=(t=Fi)&&t.__esModule?t:{default:t},i=function(n,e){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=o(e);if(t&&t.has(n))return t.get(n);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var a=i?Object.getOwnPropertyDescriptor(n,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=n[s]}r.default=n,t&&t.set(n,r);return r}(ji);function o(n){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(o=function(n){return n?t:e})(n)}var s=function(n){return new r.default(n)};Object.assign(s,i),delete s.__esModule;var a=s;e.default=a,n.exports=e.default}(Ce,Ce.exports);var yo,xo,wo=Ce.exports,ko="(".charCodeAt(0),_o=")".charCodeAt(0),So="'".charCodeAt(0),Eo='"'.charCodeAt(0),Oo="\\".charCodeAt(0),Co="/".charCodeAt(0),No=",".charCodeAt(0),To=":".charCodeAt(0),Ao="*".charCodeAt(0),Do="u".charCodeAt(0),Po="U".charCodeAt(0),Lo="+".charCodeAt(0),Mo=/^[a-f0-9?-]+$/i;function Io(n,e){var t,r,i=n.type,o=n.value;return e&&void 0!==(r=e(n))?r:"word"===i||"space"===i?o:"string"===i?(t=n.quote||"")+o+(n.unclosed?"":t):"comment"===i?"/*"+o+(n.unclosed?"":"*/"):"div"===i?(n.before||"")+o+(n.after||""):Array.isArray(n.nodes)?(t=Ro(n.nodes,e),"function"!==i?t:o+"("+(n.before||"")+t+(n.after||"")+(n.unclosed?"":")")):o}function Ro(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=Io(n[r],e)+t;return t}return Io(n,e)}var Fo=function(n){for(var e,t,r,i,o,s,a,l,c,u=[],d=n,f=0,h=d.charCodeAt(f),p=d.length,g=[{nodes:u}],m=0,v="",b="",y="";f<p;)if(h<=32){e=f;do{e+=1,h=d.charCodeAt(e)}while(h<=32);i=d.slice(f,e),r=u[u.length-1],h===_o&&m?y=i:r&&"div"===r.type?(r.after=i,r.sourceEndIndex+=i.length):h===No||h===To||h===Co&&d.charCodeAt(e+1)!==Ao&&(!c||c&&"function"===c.type&&"calc"!==c.value)?b=i:u.push({type:"space",sourceIndex:f,sourceEndIndex:e,value:i}),f=e}else if(h===So||h===Eo){e=f,i={type:"string",sourceIndex:f,quote:t=h===So?"'":'"'};do{if(o=!1,~(e=d.indexOf(t,e+1)))for(s=e;d.charCodeAt(s-1)===Oo;)s-=1,o=!o;else e=(d+=t).length-1,i.unclosed=!0}while(o);i.value=d.slice(f+1,e),i.sourceEndIndex=i.unclosed?e:e+1,u.push(i),f=e+1,h=d.charCodeAt(f)}else if(h===Co&&d.charCodeAt(f+1)===Ao)i={type:"comment",sourceIndex:f,sourceEndIndex:(e=d.indexOf("*/",f))+2},-1===e&&(i.unclosed=!0,e=d.length,i.sourceEndIndex=e),i.value=d.slice(f+2,e),u.push(i),f=e+2,h=d.charCodeAt(f);else if(h!==Co&&h!==Ao||!c||"function"!==c.type||"calc"!==c.value)if(h===Co||h===No||h===To)i=d[f],u.push({type:"div",sourceIndex:f-b.length,sourceEndIndex:f+i.length,value:i,before:b,after:""}),b="",f+=1,h=d.charCodeAt(f);else if(ko===h){e=f;do{e+=1,h=d.charCodeAt(e)}while(h<=32);if(l=f,i={type:"function",sourceIndex:f-v.length,value:v,before:d.slice(l+1,e)},f=e,"url"===v&&h!==So&&h!==Eo){e-=1;do{if(o=!1,~(e=d.indexOf(")",e+1)))for(s=e;d.charCodeAt(s-1)===Oo;)s-=1,o=!o;else e=(d+=")").length-1,i.unclosed=!0}while(o);a=e;do{a-=1,h=d.charCodeAt(a)}while(h<=32);l<a?(i.nodes=f!==a+1?[{type:"word",sourceIndex:f,sourceEndIndex:a+1,value:d.slice(f,a+1)}]:[],i.unclosed&&a+1!==e?(i.after="",i.nodes.push({type:"space",sourceIndex:a+1,sourceEndIndex:e,value:d.slice(a+1,e)})):(i.after=d.slice(a+1,e),i.sourceEndIndex=e)):(i.after="",i.nodes=[]),f=e+1,i.sourceEndIndex=i.unclosed?e:f,h=d.charCodeAt(f),u.push(i)}else m+=1,i.after="",i.sourceEndIndex=f+1,u.push(i),g.push(i),u=i.nodes=[],c=i;v=""}else if(_o===h&&m)f+=1,h=d.charCodeAt(f),c.after=y,c.sourceEndIndex+=y.length,y="",m-=1,g[g.length-1].sourceEndIndex=f,g.pop(),u=(c=g[m]).nodes;else{e=f;do{h===Oo&&(e+=1),e+=1,h=d.charCodeAt(e)}while(e<p&&!(h<=32||h===So||h===Eo||h===No||h===To||h===Co||h===ko||h===Ao&&c&&"function"===c.type&&"calc"===c.value||h===Co&&"function"===c.type&&"calc"===c.value||h===_o&&m));i=d.slice(f,e),ko===h?v=i:Do!==i.charCodeAt(0)&&Po!==i.charCodeAt(0)||Lo!==i.charCodeAt(1)||!Mo.test(i.slice(2))?u.push({type:"word",sourceIndex:f,sourceEndIndex:e,value:i}):u.push({type:"unicode-range",sourceIndex:f,sourceEndIndex:e,value:i}),f=e}else i=d[f],u.push({type:"word",sourceIndex:f-b.length,sourceEndIndex:f+i.length,value:i}),f+=1,h=d.charCodeAt(f);for(f=g.length-1;f;f-=1)g[f].unclosed=!0,g[f].sourceEndIndex=d.length;return g[0].nodes},jo=function n(e,t,r){var i,o,s,a;for(i=0,o=e.length;i<o;i+=1)s=e[i],r||(a=t(s,i,e)),!1!==a&&"function"===s.type&&Array.isArray(s.nodes)&&n(s.nodes,t,r),r&&t(s,i,e)},zo=Ro;function $o(n){return this instanceof $o?(this.nodes=Fo(n),this):new $o(n)}$o.prototype.toString=function(){return Array.isArray(this.nodes)?zo(this.nodes):""},$o.prototype.walk=function(n,e){return jo(this.nodes,n,e),this},$o.unit=function(){if(xo)return yo;xo=1;var n="-".charCodeAt(0),e="+".charCodeAt(0),t=".".charCodeAt(0),r="e".charCodeAt(0),i="E".charCodeAt(0);return yo=function(o){var s,a,l,c=0,u=o.length;if(0===u||!function(r){var i,o=r.charCodeAt(0);if(o===e||o===n){if((i=r.charCodeAt(1))>=48&&i<=57)return!0;var s=r.charCodeAt(2);return i===t&&s>=48&&s<=57}return o===t?(i=r.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(o))return!1;for((s=o.charCodeAt(c))!==e&&s!==n||c++;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;if(s=o.charCodeAt(c),a=o.charCodeAt(c+1),s===t&&a>=48&&a<=57)for(c+=2;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;if(s=o.charCodeAt(c),a=o.charCodeAt(c+1),l=o.charCodeAt(c+2),(s===r||s===i)&&(a>=48&&a<=57||(a===e||a===n)&&l>=48&&l<=57))for(c+=a===e||a===n?3:2;c<u&&!((s=o.charCodeAt(c))<48||s>57);)c+=1;return{number:o.slice(0,c),unit:o.slice(c)}},yo}(),$o.walk=jo,$o.stringify=zo;var Yo=$o;function Uo(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vo={};!function(n){var e=function(){function n(n,e){var t;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==n&&(n="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:n}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||n,t=r.stack}t||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):t=new Error(n).stack),t&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:t})}function e(n,e,t){t=t||0;for(var r=0;r<e;r++)this.push(n),n+=t}function t(n,e){for(e+=n=this.length-n;n<e;n++)this.push(this[n])}function r(n){for(var e=[],t=0,r=n.length;t<r;t++){var i=n[t];"function"==typeof i?(t++,i.apply(e,n[t])):e.push(i)}return e}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,Error.prototype):n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:n,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:6,ANGLE:12,CALC:3,CHS:19,DIV:9,EMS:17,EOF:1,EXS:18,FREQ:14,FUNCTION:10,LENGTH:11,LPAREN:4,MUL:8,NUMBER:26,PERCENTAGE:25,REMS:20,RES:15,RPAREN:5,SUB:7,TIME:13,UNKNOWN_DIMENSION:16,VHS:21,VMAXS:24,VMINS:23,VWS:22,dimension:30,error:2,expression:27,function:29,math_expression:28,number:31},terminals_:{1:"EOF",2:"error",3:"CALC",4:"LPAREN",5:"RPAREN",6:"ADD",7:"SUB",8:"MUL",9:"DIV",10:"FUNCTION",11:"LENGTH",12:"ANGLE",13:"TIME",14:"FREQ",15:"RES",16:"UNKNOWN_DIMENSION",17:"EMS",18:"EXS",19:"CHS",20:"REMS",21:"VHS",22:"VWS",23:"VMINS",24:"VMAXS",25:"PERCENTAGE",26:"NUMBER"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(n){return'"'+n+'"'},getSymbolName:function(n){if(this.terminals_[n])return this.terminals_[n];var e=this.symbols_;for(var t in e)if(e[t]===n)return t;return null},describeSymbol:function(n){if(n!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[n])return this.terminal_descriptions_[n];if(n===this.EOF)return"end of input";var e=this.getSymbolName(n);return e?this.quoteName(e):null},collect_expected_token_set:function(n,e){var t=this.TERROR,r=[],i={};if(!e&&this.state_descriptions_&&this.state_descriptions_[n])return[this.state_descriptions_[n]];for(var o in this.table[n])if((o=+o)!==t){var s=e?o:this.describeSymbol(o);s&&!i[s]&&(r.push(s),i[s]=!0)}return r},productions_:function(n){for(var e=[],t=n.pop,r=n.rule,i=0,o=t.length;i<o;i++)e.push([t[i],r[i]]);return e}({pop:r([27,e,[28,9],29,e,[30,17],e,[31,3]]),rule:r([2,4,e,[3,5],e,[1,19],2,2,t,[3,3]])}),performAction:function(n,e,t){var r=this.yy;switch(r.parser,r.lexer,n){case 0:case 2:
|
|
2
2
|
/*! Production:: math_expression : CALC LPAREN math_expression RPAREN */
|
|
3
3
|
this.$=t[e-1];break;case 1:
|
|
4
4
|
/*! Production:: expression : math_expression EOF */
|
|
@@ -166,7 +166,7 @@ this.$={type:"Number",value:-1*parseFloat(t[e])}}},table:function(n){for(var e=[
|
|
|
166
166
|
37:5,
|
|
167
167
|
/*! Conditions:: INITIAL */
|
|
168
168
|
/*! Rule:: $ */
|
|
169
|
-
38:1},rules:[/^(?:\s+)/i,/^(?:(-(webkit|moz)-)?calc\b)/i,/^(?:[a-z][\d\-a-z]*\s*\((?:(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|\([^)]*\)|[^()]*)*\))/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)em\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ex\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ch\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rem\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vmin\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vmax\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)mm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Q\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)in\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pt\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pc\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)px\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)deg\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)grad\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rad\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)turn\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)s\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ms\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Hz\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)kHz\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpi\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpcm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dppx\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)%)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)-?([^\W\d]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))([\w\-]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))*\b)/i,/^(?:\()/i,/^(?:\))/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,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],inclusive:!0}}};return e}();function s(){this.yy={}}return i.lexer=o,s.prototype=i,i.Parser=s,new s}();void 0!==Uo&&(n.parser=e,n.Parser=e.Parser,n.parse=function(){return e.parse.apply(e,arguments)})}(Vo);const Bo={px:{px:1,cm:96/2.54,mm:96/25.4,q:96/101.6,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,q:.025,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,q:.25,in:25.4,pt:25.4/72,pc:25.4/6},q:{px:101.6/96,cm:40,mm:4,q:1,in:101.6,pt:101.6/72,pc:101.6/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,q:1/101.6,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,q:72/101.6,in:72,pt:1,pc:12},pc:{px:.0625,cm:6/2.54,mm:6/25.4,q:6/101.6,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:.0025,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},hz:{hz:1,khz:1e3},khz:{hz:.001,khz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};const Ho=function(n,e,t,r){const i=e.toLowerCase(),o=t.toLowerCase();if(!Bo[o])throw new Error("Cannot convert to "+t);if(!Bo[o][i])throw new Error("Cannot convert from "+e+" to "+t);const s=Bo[o][i]*n;return!1!==r?(r=Math.pow(10,Math.ceil(r)||5),Math.round(s*r)/r):s};function Wo(n){switch(n.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Number":return!0}return!1}function qo(n){return"+"===n?"-":"+"}function Go(n){return"+"===n||"-"===n}function Zo(n,e,t,r){if(!Go(n))throw new Error(`invalid operator ${n}`);if(Wo(e)){const i=t.findIndex((n=>n.node.type===e.type));if(i>=0){if(0===e.value)return;const o=t[i].node,{left:s,right:a}=function(n,e,t){switch(n.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":if(e.type===n.type&&e.unit&&n.unit){const r=Ho(e.value,e.unit,n.unit,t);e={type:n.type,value:r,unit:n.unit}}return{left:n,right:e};default:return{left:n,right:e}}}(o,e,r);"-"===t[i].preOperator&&(t[i].preOperator="+",s.value*=-1),"+"===n?s.value+=a.value:s.value-=a.value,s.value>=0?t[i]={node:s,preOperator:"+"}:(s.value*=-1,t[i]={node:s,preOperator:"-"})}else e.value>=0?t.push({node:e,preOperator:n}):(e.value*=-1,t.push({node:e,preOperator:qo(n)}))}else if("MathExpression"===e.type)if(Go(e.operator)){Zo(n,e.left,t,r);Zo("-"===n?qo(e.operator):e.operator,e.right,t,r)}else{const i=Xo(e,r);"MathExpression"!==i.type||Go(i.operator)?Zo(n,i,t,r):t.push({node:i,preOperator:n})}else"ParenthesizedExpression"===e.type?Zo(n,e.content,t,r):t.push({node:e,preOperator:n})}function Qo(n){if(!Wo(n.right))return n;if("Number"!==n.right.type)throw new Error(`Cannot divide by "${n.right.unit}", number expected`);return Ko(n.left,n.right.value)}function Ko(n,e){if(0===e)throw new Error("Cannot divide by zero");return Wo(n)?(n.value/=e,n):"MathExpression"===n.type&&Go(n.operator)?{type:"MathExpression",operator:n.operator,left:Ko(n.left,e),right:Ko(n.right,e)}:{type:"MathExpression",operator:"/",left:n,right:{type:"Number",value:e}}}function Jo(n,e){return Wo(n)?(n.value*=e,n):"MathExpression"===n.type&&Go(n.operator)?{type:"MathExpression",operator:n.operator,left:Jo(n.left,e),right:Jo(n.right,e)}:{type:"MathExpression",operator:"*",left:n,right:{type:"Number",value:e}}}function Xo(n,e){if("MathExpression"===n.type){if(Go(n.operator))return function(n,e){const t=[];Zo("+",n,t,e);const r=t.filter((n=>!(Wo(n.node)&&0===n.node.value))),i=r[0];if(!i||"-"===i.preOperator&&!Wo(i.node)){const n=t.find((n=>Wo(n.node)&&0===n.node.value));n&&r.unshift(n)}"-"===r[0].preOperator&&Wo(r[0].node)&&(r[0].node.value*=-1,r[0].preOperator="+");let o=r[0].node;for(let n=1;n<r.length;n++)o={type:"MathExpression",operator:r[n].preOperator,left:o,right:r[n].node};return o}(n,e);switch(n.left=Xo(n.left,e),n.right=Xo(n.right,e),n.operator){case"/":return Qo(n);case"*":return function(n){return"Number"===n.right.type?Jo(n.left,n.right.value):"Number"===n.left.type?Jo(n.right,n.left.value):n}(n)}return n}return"ParenthesizedExpression"===n.type&&function(n){return"Function"!==n.content.type&&("MathExpression"!==n.content.type||"Function"!==n.content.right.type&&"Function"!==n.content.left.type)}(n)?Xo(n.content,e):n}var ns=Xo;const es={"*":0,"/":0,"+":1,"-":1};function ts(n,e){if(!1!==e){const t=Math.pow(10,e);return Math.round(n*t)/t}return n}function rs(n,e){switch(n.type){case"MathExpression":{const{left:t,right:r,operator:i}=n;let o="";return"MathExpression"===t.type&&es[i]<es[t.operator]?o+=`(${rs(t,e)})`:o+=rs(t,e),o+=es[i]?` ${n.operator} `:n.operator,"MathExpression"===r.type&&es[i]<es[r.operator]?o+=`(${rs(r,e)})`:o+=rs(r,e),o}case"Number":return ts(n.value,e).toString();case"Function":return n.value.toString();case"ParenthesizedExpression":return`(${rs(n.content,e)})`;default:return ts(n.value,e)+n.unit}}const is=wo,os=Yo,{parser:ss}=Vo,as=ns,ls=function(n,e,t,r,i,o){let s=rs(e,r.precision);return("MathExpression"===e.type||"Function"===e.type||"ParenthesizedExpression"===e.type)&&(s="ParenthesizedExpression"===e.type?`${n}${s}`:`${n}(${s})`,r.warnWhenCannotResolve&&i.warn("Could not reduce expression: "+t,{plugin:"postcss-calc",node:o})),s},cs=/((?:-(moz|webkit)-)?calc)/i;function us(n,e,t,r){return os(n).walk((i=>{if("function"!==i.type||!cs.test(i.value))return;const o=os.stringify(i.nodes),s=ss.parse(o),a=as(s,e.precision);return i.type="word",i.value=ls(i.value,a,n,e,t,r),!1})).toString()}const ds=(n,e,t,r)=>{let i=n[e];try{i="selector"===e?function(n,e,t,r){return is((n=>{n.walk((n=>{"attribute"===n.type&&n.value&&n.setValue(us(n.value,e,t,r)),"tag"===n.type&&(n.value=us(n.value,e,t,r))}))})).processSync(n)}(n[e],t,r,n):us(n[e],t,r,n)}catch(e){return void(e instanceof Error?r.warn(e.message,{node:n}):r.warn("Error",{node:n}))}if(t.preserve&&n[e]!==i){const t=n.clone();t[e]=i,n.parent.insertBefore(n,t)}else n[e]=i};function fs(n){const e=Object.assign({precision:5,preserve:!1,warnWhenCannotResolve:!1,mediaQueries:!1,selectors:!1},n);return{postcssPlugin:"postcss-calc",OnceExit(n,{result:t}){n.walk((n=>{const{type:r}=n;"decl"===r&&ds(n,"value",e,t),"atrule"===r&&e.mediaQueries&&ds(n,"params",e,t),"rule"===r&&e.selectors&&ds(n,"selector",e,t)}))}}}fs.postcss=!0;var hs=_n(fs),ps={exports:{}};const{Rule:gs,AtRule:ms}=N;let vs=wo;function bs(n,e){let t;try{vs((n=>{t=n})).processSync(n)}catch(t){throw n.includes(":")?e?e.error("Missed semicolon"):t:e?e.error(t.message):t}return t.at(0)}function ys(n,e){let t=!1;return n.each((n=>{if("nesting"===n.type){let r=e.clone({});"&"!==n.value?n.replaceWith(bs(n.value.replace("&",r.toString()))):n.replaceWith(r),t=!0}else"nodes"in n&&n.nodes&&ys(n,e)&&(t=!0)})),t}function xs(n,e){let t=[];return n.selectors.forEach((r=>{let i=bs(r,n);e.selectors.forEach((n=>{if(!n)return;let r=bs(n,e);ys(r,i)||(r.prepend(vs.combinator({value:" "})),r.prepend(i.clone({}))),t.push(r.toString())}))})),t}function ws(n,e){let t=n.prev();for(e.after(n);t&&"comment"===t.type;){let n=t.prev();e.after(t),t=n}return n}function ks(n,e,t){let r=new gs({selector:n,nodes:[]});return r.append(e),t.after(r),r}function _s(n,e){let t={};for(let e of n)t[e]=!0;if(e)for(let n of e)t[n.replace(/^@/,"")]=!0;return t}function Ss(n){let e=n[Os];if(e){let t,r,i,o,s=n.nodes,a=-1,l=function(n){let e=[],t=n.parent;for(;t&&t instanceof ms;)e.push(t),t=t.parent;return e}(n);if(l.forEach(((n,s)=>{if(e(n.name))t=n,a=s,i=o;else{let e=o;o=n.clone({nodes:[]}),e&&o.append(e),r=r||o}})),t)if(i){r.append(s),t.after(i)}else t.after(s);else n.after(s);if(n.next()&&t){let e;l.slice(0,a+1).forEach(((t,r,i)=>{let o=e;e=t.clone({nodes:[]}),o&&e.append(o);let s=[],a=(i[r-1]||n).next();for(;a;)s.push(a),a=a.next();e.append(s)})),e&&(i||s[s.length-1]).after(e)}}else n.after(n.nodes);n.remove()}const Es=Symbol("rootRuleMergeSel"),Os=Symbol("rootRuleEscapes");function Cs(n){let{params:e}=n,{type:t,selector:r,escapes:i}=function(n){let e=(n=n.trim()).match(/^\((.*)\)$/);if(!e)return{type:"basic",selector:n};let t=e[1].match(/^(with(?:out)?):(.+)$/);if(t){let n="with"===t[1],e=Object.fromEntries(t[2].trim().split(/\s+/).map((n=>[n,!0])));if(n&&e.all)return{type:"noop"};let r=n=>!!e[n];return e.all?r=()=>!0:n&&(r=n=>"all"!==n&&!e[n]),{type:"withrules",escapes:r}}return{type:"unknown"}}(e);if("unknown"===t)throw n.error(`Unknown @${n.name} parameter ${JSON.stringify(e)}`);if("basic"===t&&r){let e=new gs({selector:r,nodes:n.nodes});n.removeAll(),n.append(e)}n[Os]=i,n[Es]=i?!i("all"):"noop"===t}const Ns=Symbol("hasRootRule");ps.exports=(n={})=>{let e=_s(["media","supports","layer","container"],n.bubble),t=function(n){return function e(t,r,i,o=i){let s=[];if(r.each((a=>{"rule"===a.type&&i?o&&(a.selectors=xs(t,a)):"atrule"===a.type&&a.nodes?n[a.name]?e(t,a,o):!1!==r[Es]&&s.push(a):s.push(a)})),i&&s.length){let n=t.clone({nodes:[]});for(let e of s)n.append(e);r.prepend(n)}}}(e),r=_s(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],n.unwrap),i=(n.rootRuleName||"at-root").replace(/^@/,""),o=n.preserveEmpty;return{postcssPlugin:"postcss-nested",Once(n){n.walkAtRules(i,(e=>{Cs(e),n[Ns]=!0}))},Rule(n){let s=!1,a=n,l=!1,c=[];n.each((o=>{"rule"===o.type?(c.length&&(a=ks(n.selector,c,a),c=[]),l=!0,s=!0,o.selectors=xs(n,o),a=ws(o,a)):"atrule"===o.type?(c.length&&(a=ks(n.selector,c,a),c=[]),o.name===i?(s=!0,t(n,o,!0,o[Es]),a=ws(o,a)):e[o.name]?(l=!0,s=!0,t(n,o,!0),a=ws(o,a)):r[o.name]?(l=!0,s=!0,t(n,o,!1),a=ws(o,a)):l&&c.push(o)):"decl"===o.type&&l&&c.push(o)})),c.length&&(a=ks(n.selector,c,a)),s&&!0!==o&&(n.raws.semicolon=!0,0===n.nodes.length&&n.remove())},RootExit(n){n[Ns]&&(n.walkAtRules(i,Ss),n[Ns]=!1)}}},ps.exports.postcss=!0;var Ts=_n(ps.exports),As=function(n,e,t){void 0===t&&(t=Oe("dynamic-style")),c((function(){return i()||r(),function(){var n=o();"string"!=typeof n&&n.parentNode&&n.parentNode.removeChild(n)}}),[]);var r=function(){s(),e("cs-"+t)},i=function(){return 0===Object.keys(n).length},o=function(){var n="";return document.querySelectorAll("head > style").forEach((function(e){e.id===t&&(n=e)})),n},s=function(){var e=a(n),r=document.createElement("style");r.setAttribute("type","text/css"),r.setAttribute("id",t),r.innerHTML=e.join(""),document.head.appendChild(r)},a=function(n){var e=[];for(var r in n){var i=JSON.stringify(n[r]).split('","').join(";").replace(/"/g,"");i=N().use(C).use(Ts).use(hs({})).process(i).css;var o=".cs-".concat(t," ").concat(r," ");o+=i,o+=" ",e.push(o)}return e}};function Ds(n){var e=!1;return document.querySelectorAll("head > style").forEach((function(t){Array(t.sheet.rules).forEach((function(t){for(var r=0;r<t.length;r++)t[r].cssText.search(n)>-1&&(e=!0)}))})),e}var Ps=function(n,e){var t=n.componentStyle.rules[0],r=String(n).replace(".","");null!==e&&(r+="-"+Oe("styled-style")),c((function(){if(!Ds(r))return i(),e&&e(r),function(){document.querySelectorAll("head > style").forEach((function(n){n.id===r&&n.parentNode&&n.parentNode.removeChild(n)}))}}),[t]);var i=function(){var n=o(t),e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",r),e.innerHTML=n.length>1?n.join(""):n[0],document.head.appendChild(e)},o=function(n){var e=n.replace(/\r?\n|\r/g,""),t=[];if((e=N().use(C({grid:"autoplace"})).use(Ts).use(hs({})).process(e).css).split("&").length>1)for(var i=e.split("&"),o=0;o<i.length;o++)0===o?t.push("."+r+"{"+i[0]+"}"):t.push("."+r+i[o]);else t.push("."+r+" {"+e+"} ");return t}},Ls=function(n,e){c((function(){var t=function(t){t.target&&n&&n.current&&!n.current.contains(t.target)&&e(t)};return document.addEventListener("pointerdown",t),function(){document.removeEventListener("pointerdown",t)}}),[n,e])},Ms=function(n){c((function(){var e=function(e){27===e.keyCode&&n(e)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n])},Is=function(){var n=T(),e=n[0],t=n[1];return{set:function(n,r){void 0===n&&(n=""),""===r||null===r?e.delete(n):Array.isArray(r)?0===r.length?e.delete(n):e.set(n,decodeURIComponent(r.join()).toString()):e.set(n,r),t(e)},get:function(n,t,r){void 0===n&&(n="search"),void 0===t&&(t=""),void 0===r&&(r=0);var i=e.get(n);return null==i||""===i||r>0&&i.length<r?t:i.indexOf(",")>-1||i.indexOf("%2C")>-1?i.split(","):e.get(n)},remove:function(n){void 0===n&&(n=""),e.delete(n),t(e)},isEmpty:function(){return 0===Array.from(e.values()).length}}},Rs=function(){var n=T(),e=n[0],t=n[1],r=A();return{set:function(n){void 0===n&&(n=[{type:"",value:""}]),n.forEach((function(n){""===n.value||void 0===n.value||null===n.value?e.delete(n.type):Array.isArray(n.value)?0===n.value.length?e.delete(n.type):e.set(n.type,decodeURIComponent(n.value.join()).toString()):e.set(n.type,n.value)})),t(e),r({search:D(e).toString()},{replace:!0})}}},Fs=function(n){c((function(){var e=function(e){n(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[n])},js=function(n){c((function(){var e=function(e){n(e)};return window.addEventListener("online",e),function(){window.removeEventListener("online",e)}}),[n])},zs=function(n){var e=a({width:0,height:0}),t=e[0],r=e[1];return c((function(){if(n.current){var e=new ResizeObserver((function(n){n.forEach((function(n){var e=n.target;r({width:e.clientWidth,height:e.clientHeight})}))}));return e.observe(n.current),function(){return e.disconnect()}}}),[n]),[t]},$s=function(){var n=l(null);return{fetch:function(e){return Wn(void 0,[e],void 0,(function(e){var t,r,i,o=e.action,s=void 0===o?"":o,a=e.requestMethod,l=void 0===a?"":a,c=e.addOrigin,u=void 0===c||c,d=e.params,f=void 0===d?{}:d,h=e.queries,p=void 0===h?{}:h,g=e.headers,m=void 0===g?{}:g,v=e.cancelable,b=void 0===v||v,y=e.onFetched,x=e.onError,w=e.onCanceled,k=e.onProgress;return qn(this,(function(e){switch(e.label){case 0:return t="",r={},Object.keys(p).forEach((function(n){t+="&"+n+"="+p[n]})),r["Content-Type"]="put"===l?"multipart/form-data":"application/json",u&&(r["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),r=Hn(Hn({},r),m),i=M.post,"post"===l.toLocaleLowerCase()?i=M.post:"get"===l.toLocaleLowerCase()?i=M.get:"put"===l.toLocaleLowerCase()?i=M.put:"patch"===l.toLocaleLowerCase()&&(i=M.patch),[4,i(s+t,f,{headers:m,cancelToken:!!b&&(n.current=M.CancelToken.source(),n.current.token),onUploadProgress:function(n){k&&k(n)}}).then((function(n){y&&y(n)})).catch((function(n){console.log("error",n),console.log("error.message",n.message),M.isCancel(n.message)?w&&w(n.message):x&&x(n.message,0)}))];case 1:return e.sent(),[2]}}))}))},cancel:function(){n.current&&n.current.cancel("manually canceled!")}}};function Ys(n){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=n(t)),e[t]}}var Us=/^((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)-.*))$/,Vs=Ys((function(n){return Us.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91})),Bs="-ms-",Hs="-moz-",Ws="-webkit-",qs="comm",Gs="rule",Zs="decl",Qs="@import",Ks="@keyframes",Js="@layer",Xs=Math.abs,na=String.fromCharCode,ea=Object.assign;function ta(n){return n.trim()}function ra(n,e){return(n=e.exec(n))?n[0]:n}function ia(n,e,t){return n.replace(e,t)}function oa(n,e,t){return n.indexOf(e,t)}function sa(n,e){return 0|n.charCodeAt(e)}function aa(n,e,t){return n.slice(e,t)}function la(n){return n.length}function ca(n){return n.length}function ua(n,e){return e.push(n),n}function da(n,e){return n.filter((function(n){return!ra(n,e)}))}var fa=1,ha=1,pa=0,ga=0,ma=0,va="";function ba(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:fa,column:ha,length:s,return:"",siblings:a}}function ya(n,e){return ea(ba("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function xa(n){for(;n.root;)n=ya(n.root,{children:[n]});ua(n,n.siblings)}function wa(){return ma=ga>0?sa(va,--ga):0,ha--,10===ma&&(ha=1,fa--),ma}function ka(){return ma=ga<pa?sa(va,ga++):0,ha++,10===ma&&(ha=1,fa++),ma}function _a(){return sa(va,ga)}function Sa(){return ga}function Ea(n,e){return aa(va,n,e)}function Oa(n){switch(n){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 Ca(n){return ta(Ea(ga-1,Aa(91===n?n+2:40===n?n+1:n)))}function Na(n){for(;(ma=_a())&&ma<33;)ka();return Oa(n)>2||Oa(ma)>3?"":" "}function Ta(n,e){for(;--e&&ka()&&!(ma<48||ma>102||ma>57&&ma<65||ma>70&&ma<97););return Ea(n,Sa()+(e<6&&32==_a()&&32==ka()))}function Aa(n){for(;ka();)switch(ma){case n:return ga;case 34:case 39:34!==n&&39!==n&&Aa(ma);break;case 40:41===n&&Aa(n);break;case 92:ka()}return ga}function Da(n,e){for(;ka()&&n+ma!==57&&(n+ma!==84||47!==_a()););return"/*"+Ea(e,ga-1)+"*"+na(47===n?n:ka())}function Pa(n){for(;!Oa(_a());)ka();return Ea(n,ga)}function La(n){return function(n){return va="",n}(Ma("",null,null,null,[""],n=function(n){return fa=ha=1,pa=la(va=n),ga=0,[]}(n),0,[0],n))}function Ma(n,e,t,r,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,g=1,m=1,v=1,b=0,y="",x=i,w=o,k=r,_=y;m;)switch(p=b,b=ka()){case 40:if(108!=p&&58==sa(_,d-1)){-1!=oa(_+=ia(Ca(b),"&","&\f"),"&\f",Xs(c?a[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=Ca(b);break;case 9:case 10:case 13:case 32:_+=Na(p);break;case 92:_+=Ta(Sa()-1,7);continue;case 47:switch(_a()){case 42:case 47:ua(Ra(Da(ka(),Sa()),e,t,l),l);break;default:_+="/"}break;case 123*g:a[c++]=la(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=ia(_,/\f/g,"")),h>0&&la(_)-d&&ua(h>32?Fa(_+";",r,t,d-1,l):Fa(ia(_," ","")+";",r,t,d-2,l),l);break;case 59:_+=";";default:if(ua(k=Ia(_,e,t,c,u,i,a,y,x=[],w=[],d,o),o),123===b)if(0===u)Ma(_,e,k,k,x,o,d,a,w);else switch(99===f&&110===sa(_,3)?100:f){case 100:case 108:case 109:case 115:Ma(n,k,k,r&&ua(Ia(n,k,k,0,0,i,a,y,i,x=[],d,w),w),i,w,d,a,r?x:w);break;default:Ma(_,k,k,k,[""],w,0,a,w)}}c=u=h=0,g=v=1,y=_="",d=s;break;case 58:d=1+la(_),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==wa())continue;switch(_+=na(b),b*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(la(_)-1)*v,v=1;break;case 64:45===_a()&&(_+=Ca(ka())),f=_a(),u=d=la(y=_+=Pa(Sa())),b++;break;case 45:45===p&&2==la(_)&&(g=0)}}return o}function Ia(n,e,t,r,i,o,s,a,l,c,u,d){for(var f=i-1,h=0===i?o:[""],p=ca(h),g=0,m=0,v=0;g<r;++g)for(var b=0,y=aa(n,f+1,f=Xs(m=s[g])),x=n;b<p;++b)(x=ta(m>0?h[b]+" "+y:ia(y,/&\f/g,h[b])))&&(l[v++]=x);return ba(n,e,t,0===i?Gs:a,l,c,u,d)}function Ra(n,e,t,r){return ba(n,e,t,qs,na(ma),aa(n,2,-2),0,r)}function Fa(n,e,t,r,i){return ba(n,e,t,Zs,aa(n,0,r),aa(n,r+1,-1),r,i)}function ja(n,e,t){switch(function(n,e){return 45^sa(n,0)?(((e<<2^sa(n,0))<<2^sa(n,1))<<2^sa(n,2))<<2^sa(n,3):0}(n,e)){case 5103:return Ws+"print-"+n+n;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 Ws+n+n;case 4789:return Hs+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ws+n+Hs+n+Bs+n+n;case 5936:switch(sa(n,e+11)){case 114:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Ws+n+Bs+n+n;case 6165:return Ws+n+Bs+"flex-"+n+n;case 5187:return Ws+n+ia(n,/(\w+).+(:[^]+)/,Ws+"box-$1$2"+Bs+"flex-$1$2")+n;case 5443:return Ws+n+Bs+"flex-item-"+ia(n,/flex-|-self/g,"")+(ra(n,/flex-|baseline/)?"":Bs+"grid-row-"+ia(n,/flex-|-self/g,""))+n;case 4675:return Ws+n+Bs+"flex-line-pack"+ia(n,/align-content|flex-|-self/g,"")+n;case 5548:return Ws+n+Bs+ia(n,"shrink","negative")+n;case 5292:return Ws+n+Bs+ia(n,"basis","preferred-size")+n;case 6060:return Ws+"box-"+ia(n,"-grow","")+Ws+n+Bs+ia(n,"grow","positive")+n;case 4554:return Ws+ia(n,/([^-])(transform)/g,"$1"+Ws+"$2")+n;case 6187:return ia(ia(ia(n,/(zoom-|grab)/,Ws+"$1"),/(image-set)/,Ws+"$1"),n,"")+n;case 5495:case 3959:return ia(n,/(image-set\([^]*)/,Ws+"$1$`$1");case 4968:return ia(ia(n,/(.+:)(flex-)?(.*)/,Ws+"box-pack:$3"+Bs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ws+n+n;case 4200:if(!ra(n,/flex-|baseline/))return Bs+"grid-column-align"+aa(n,e)+n;break;case 2592:case 3360:return Bs+ia(n,"template-","")+n;case 4384:case 3616:return t&&t.some((function(n,t){return e=t,ra(n.props,/grid-\w+-end/)}))?~oa(n+(t=t[e].value),"span",0)?n:Bs+ia(n,"-start","")+n+Bs+"grid-row-span:"+(~oa(t,"span",0)?ra(t,/\d+/):+ra(t,/\d+/)-+ra(n,/\d+/))+";":Bs+ia(n,"-start","")+n;case 4896:case 4128:return t&&t.some((function(n){return ra(n.props,/grid-\w+-start/)}))?n:Bs+ia(ia(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return ia(n,/(.+)-inline(.+)/,Ws+"$1$2")+n;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(la(n)-1-e>6)switch(sa(n,e+1)){case 109:if(45!==sa(n,e+4))break;case 102:return ia(n,/(.+:)(.+)-([^]+)/,"$1"+Ws+"$2-$3$1"+Hs+(108==sa(n,e+3)?"$3":"$2-$3"))+n;case 115:return~oa(n,"stretch",0)?ja(ia(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return ia(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,t,r,i,o,s,a){return Bs+t+":"+r+a+(i?Bs+t+"-span:"+(o?s:+s-+r)+a:"")+n}));case 4949:if(121===sa(n,e+6))return ia(n,":",":"+Ws)+n;break;case 6444:switch(sa(n,45===sa(n,14)?18:11)){case 120:return ia(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ws+(45===sa(n,14)?"inline-":"")+"box$3$1"+Ws+"$2$3$1"+Bs+"$2box$3")+n;case 100:return ia(n,":",":"+Bs)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ia(n,"scroll-","scroll-snap-")+n}return n}function za(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function $a(n,e,t,r){switch(n.type){case Js:if(n.children.length)break;case Qs:case Zs:return n.return=n.return||n.value;case qs:return"";case Ks:return n.return=n.value+"{"+za(n.children,r)+"}";case Gs:if(!la(n.value=n.props.join(",")))return""}return la(t=za(n.children,r))?n.return=n.value+"{"+t+"}":""}function Ya(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Zs:return void(n.return=ja(n.value,n.length,t));case Ks:return za([ya(n,{value:ia(n.value,"@","@"+Ws)})],r);case Gs:if(n.length)return function(n,e){return n.map(e).join("")}(t=n.props,(function(e){switch(ra(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xa(ya(n,{props:[ia(e,/:(read-\w+)/,":"+Hs+"$1")]})),xa(ya(n,{props:[e]})),ea(n,{props:da(t,r)});break;case"::placeholder":xa(ya(n,{props:[ia(e,/:(plac\w+)/,":"+Ws+"input-$1")]})),xa(ya(n,{props:[ia(e,/:(plac\w+)/,":"+Hs+"$1")]})),xa(ya(n,{props:[ia(e,/:(plac\w+)/,Bs+"input-$1")]})),xa(ya(n,{props:[e]})),ea(n,{props:da(t,r)})}return""}))}}var Ua={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},Va=void 0!==Vr&&void 0!==Vr.env&&(Vr.env.REACT_APP_SC_ATTR||Vr.env.SC_ATTR)||"data-styled",Ba="active",Ha="data-styled-version",Wa="6.1.11",qa="/*!sc*/\n",Ga="undefined"!=typeof window&&"HTMLElement"in window,Za=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Vr&&void 0!==Vr.env&&void 0!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY&&Vr.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Vr&&void 0!==Vr.env&&void 0!==Vr.env.SC_DISABLE_SPEEDY&&""!==Vr.env.SC_DISABLE_SPEEDY?"false"!==Vr.env.SC_DISABLE_SPEEDY&&Vr.env.SC_DISABLE_SPEEDY:"production"!==Vr.env.NODE_ENV),Qa=/invalid hook call/i,Ka=new Set,Ja=function(n,e){if("production"!==Vr.env.NODE_ENV){var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var o=!0;console.error=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];Qa.test(n)?(o=!1,Ka.delete(r)):i.apply(void 0,Gn([n],e,!1))},l(),o&&!Ka.has(r)&&(console.warn(r),Ka.add(r))}catch(n){Qa.test(n.message)&&Ka.delete(r)}finally{console.error=i}}},Xa=Object.freeze([]),nl=Object.freeze({});var el=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),tl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rl=/(^-|-$)/g;function il(n){return n.replace(tl,"-").replace(rl,"")}var ol=/(a)(d)/gi,sl=52,al=function(n){return String.fromCharCode(n+(n>25?39:97))};function ll(n){var e,t="";for(e=Math.abs(n);e>sl;e=e/sl|0)t=al(e%sl)+t;return(al(e%sl)+t).replace(ol,"$1-$2")}var cl,ul=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},dl=function(n){return ul(5381,n)};function fl(n){return ll(dl(n)>>>0)}function hl(n){return"production"!==Vr.env.NODE_ENV&&"string"==typeof n&&n||n.displayName||n.name||"Component"}function pl(n){return"string"==typeof n&&("production"===Vr.env.NODE_ENV||n.charAt(0)===n.charAt(0).toLowerCase())}var gl="function"==typeof Symbol&&Symbol.for,ml=gl?Symbol.for("react.memo"):60115,vl=gl?Symbol.for("react.forward_ref"):60112,bl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yl={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wl=((cl={})[vl]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cl[ml]=xl,cl);function kl(n){return("type"in(e=n)&&e.type.$$typeof)===ml?xl:"$$typeof"in n?wl[n.$$typeof]:bl;var e}var _l=Object.defineProperty,Sl=Object.getOwnPropertyNames,El=Object.getOwnPropertySymbols,Ol=Object.getOwnPropertyDescriptor,Cl=Object.getPrototypeOf,Nl=Object.prototype;function Tl(n,e,t){if("string"!=typeof e){if(Nl){var r=Cl(e);r&&r!==Nl&&Tl(n,r,t)}var i=Sl(e);El&&(i=i.concat(El(e)));for(var o=kl(n),s=kl(e),a=0;a<i.length;++a){var l=i[a];if(!(l in yl||t&&t[l]||s&&l in s||o&&l in o)){var c=Ol(e,l);try{_l(n,l,c)}catch(n){}}}}return n}function Al(n){return"function"==typeof n}function Dl(n){return"object"==typeof n&&"styledComponentId"in n}function Pl(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Ll(n,e){if(0===n.length)return"";for(var t=n[0],r=1;r<n.length;r++)t+=n[r];return t}function Ml(n){return null!==n&&"object"==typeof n&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Il(n,e,t){if(void 0===t&&(t=!1),!t&&!Ml(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Il(n[r],e[r]);else if(Ml(e))for(var r in e)n[r]=Il(n[r],e[r]);return n}function Rl(n,e){Object.defineProperty(n,"toString",{value:e})}var Fl="production"!==Vr.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function jl(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,o=n.length;i<o;i+=1)r.push(n[i]);return r.forEach((function(n){t=t.replace(/%[a-z]/,n)})),t}function zl(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return"production"===Vr.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(jl.apply(void 0,Gn([Fl[n]],e,!1)).trim())}var $l=function(){function n(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return n.prototype.indexOfGroup=function(n){for(var e=0,t=0;t<n;t++)e+=this.groupSizes[t];return e},n.prototype.insertRules=function(n,e){if(n>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,i=r;n>=i;)if((i<<=1)<0)throw zl(16,"".concat(n));this.groupSizes=new Uint32Array(i),this.groupSizes.set(t),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(n+1),a=(o=0,e.length);o<a;o++)this.tag.insertRule(s,e[o])&&(this.groupSizes[n]++,s++)},n.prototype.clearGroup=function(n){if(n<this.length){var e=this.groupSizes[n],t=this.indexOfGroup(n),r=t+e;this.groupSizes[n]=0;for(var i=t;i<r;i++)this.tag.deleteRule(t)}},n.prototype.getGroup=function(n){var e="";if(n>=this.length||0===this.groupSizes[n])return e;for(var t=this.groupSizes[n],r=this.indexOfGroup(n),i=r+t,o=r;o<i;o++)e+="".concat(this.tag.getRule(o)).concat(qa);return e},n}(),Yl=1<<30,Ul=new Map,Vl=new Map,Bl=1,Hl=function(n){if(Ul.has(n))return Ul.get(n);for(;Vl.has(Bl);)Bl++;var e=Bl++;if("production"!==Vr.env.NODE_ENV&&((0|e)<0||e>Yl))throw zl(16,"".concat(e));return Ul.set(n,e),Vl.set(e,n),e},Wl=function(n,e){Bl=e+1,Ul.set(n,e),Vl.set(e,n)},ql="style[".concat(Va,"][").concat(Ha,'="').concat(Wa,'"]'),Gl=new RegExp("^".concat(Va,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Zl=function(n,e,t){for(var r,i=t.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&n.registerName(e,r)},Ql=function(n,e){for(var t,r=(null!==(t=e.textContent)&&void 0!==t?t:"").split(qa),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(Gl);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Wl(u,c),Zl(n,u,l[3]),n.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}};var Kl=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=function(n){var e=Array.from(n.querySelectorAll("style[".concat(Va,"]")));return e[e.length-1]}(t),o=void 0!==i?i.nextSibling:null;r.setAttribute(Va,Ba),r.setAttribute(Ha,Wa);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},Jl=function(){function n(n){this.element=Kl(n),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var e=document.styleSheets,t=0,r=e.length;t<r;t++){var i=e[t];if(i.ownerNode===n)return i}throw zl(17)}(this.element),this.length=0}return n.prototype.insertRule=function(n,e){try{return this.sheet.insertRule(e,n),this.length++,!0}catch(n){return!1}},n.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},n.prototype.getRule=function(n){var e=this.sheet.cssRules[n];return e&&e.cssText?e.cssText:""},n}(),Xl=function(){function n(n){this.element=Kl(n),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(n,e){if(n<=this.length&&n>=0){var t=document.createTextNode(e);return this.element.insertBefore(t,this.nodes[n]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},n.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},n}(),nc=function(){function n(n){this.rules=[],this.length=0}return n.prototype.insertRule=function(n,e){return n<=this.length&&(this.rules.splice(n,0,e),this.length++,!0)},n.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},n.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},n}(),ec=Ga,tc={isServer:!Ga,useCSSOMInjection:!Za},rc=function(){function n(n,e,t){void 0===n&&(n=nl),void 0===e&&(e={});var r=this;this.options=Hn(Hn({},tc),n),this.gs=e,this.names=new Map(t),this.server=!!n.isServer,!this.server&&Ga&&ec&&(ec=!1,function(n){for(var e=document.querySelectorAll(ql),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(Va)!==Ba&&(Ql(n,i),i.parentNode&&i.parentNode.removeChild(i))}}(this)),Rl(this,(function(){return function(n){for(var e=n.getTag(),t=e.length,r="",i=function(t){var i=function(n){return Vl.get(n)}(t);if(void 0===i)return"continue";var o=n.names.get(i),s=e.getGroup(t);if(void 0===o||0===s.length)return"continue";var a="".concat(Va,".g").concat(t,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(n){n.length>0&&(l+="".concat(n,","))})),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(qa)},o=0;o<t;o++)i(o);return r}(r)}))}return n.registerId=function(n){return Hl(n)},n.prototype.reconstructWithOptions=function(e,t){return void 0===t&&(t=!0),new n(Hn(Hn({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(n=function(n){var e=n.useCSSOMInjection,t=n.target;return n.isServer?new nc(t):e?new Jl(t):new Xl(t)}(this.options),new $l(n)));var n},n.prototype.hasNameForId=function(n,e){return this.names.has(n)&&this.names.get(n).has(e)},n.prototype.registerName=function(n,e){if(Hl(n),this.names.has(n))this.names.get(n).add(e);else{var t=new Set;t.add(e),this.names.set(n,t)}},n.prototype.insertRules=function(n,e,t){this.registerName(n,e),this.getTag().insertRules(Hl(n),t)},n.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},n.prototype.clearRules=function(n){this.getTag().clearGroup(Hl(n)),this.clearNames(n)},n.prototype.clearTag=function(){this.tag=void 0},n}(),ic=/&/g,oc=/^\s*\/\/.*$/gm;function sc(n,e){return n.map((function(n){return"rule"===n.type&&(n.value="".concat(e," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(e," ")),n.props=n.props.map((function(n){return"".concat(e," ").concat(n)}))),Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=sc(n.children,e)),n}))}var ac=new rc,lc=function(n){var e,t,r,i=nl,o=i.options,s=void 0===o?nl:o,a=i.plugins,l=void 0===a?Xa:a,c=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},u=l.slice();u.push((function(n){n.type===Gs&&n.value.includes("&")&&(n.props[0]=n.props[0].replace(ic,t).replace(r,c))})),s.prefix&&u.push(Ya),u.push($a);var d=function(n,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),e=a,t=i,r=new RegExp("\\".concat(t,"\\b"),"g");var l=n.replace(oc,""),c=La(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(c=sc(c,s.namespace));var d,f=[];return za(c,function(n){var e=ca(n);return function(t,r,i,o){for(var s="",a=0;a<e;a++)s+=n[a](t,r,i,o)||"";return s}}(u.concat((d=function(n){return f.push(n)},function(n){n.root||(n=n.return)&&d(n)})))),f};return d.hash=l.length?l.reduce((function(n,e){return e.name||zl(15),ul(n,e.name)}),5381).toString():"",d}(),cc=i.createContext({shouldForwardProp:void 0,styleSheet:ac,stylis:lc});function uc(){return s(cc)}cc.Consumer,i.createContext(void 0);var dc=function(){function n(n,e){var t=this;this.inject=function(n,e){void 0===e&&(e=lc);var r=t.name+e.hash;n.hasNameForId(t.id,r)||n.insertRules(t.id,r,e(t.rules,r,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=e,Rl(this,(function(){throw zl(12,String(t.name))}))}return n.prototype.getName=function(n){return void 0===n&&(n=lc),this.name+n.hash},n}(),fc=function(n){return n>="A"&&n<="Z"};function hc(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(1===t&&"-"===r&&"-"===n[0])return n;fc(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var pc=function(n){return null==n||!1===n||""===n},gc=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!pc(o)&&(Array.isArray(o)&&o.isCss||Al(o)?r.push("".concat(hc(i),":"),o,";"):Ml(o)?r.push.apply(r,Gn(Gn(["".concat(i," {")],gc(o),!1),["}"],!1)):r.push("".concat(hc(i),": ").concat((e=i,null==(t=o)||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ua||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function mc(n,e,t,r){if(pc(n))return[];if(Dl(n))return[".".concat(n.styledComponentId)];if(Al(n)){if(!Al(o=n)||o.prototype&&o.prototype.isReactComponent||!e)return[n];var i=n(e);return"production"===Vr.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof dc||Ml(i)||null===i||console.error("".concat(hl(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),mc(i,e,t,r)}var o;return n instanceof dc?t?(n.inject(t,r),[n.getName(r)]):[n]:Ml(n)?gc(n):Array.isArray(n)?Array.prototype.concat.apply(Xa,n.map((function(n){return mc(n,e,t,r)}))):[n.toString()]}var vc=dl(Wa),bc=function(){function n(n,e,t){this.rules=n,this.staticRulesId="",this.isStatic="production"===Vr.env.NODE_ENV&&(void 0===t||t.isStatic)&&function(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(Al(t)&&!Dl(t))return!1}return!0}(n),this.componentId=e,this.baseHash=ul(vc,e),this.baseStyle=t,rc.registerId(e)}return n.prototype.generateAndInjectStyles=function(n,e,t){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,e,t):"";if(this.isStatic&&!t.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=Pl(r,this.staticRulesId);else{var i=Ll(mc(this.rules,n,e,t)),o=ll(ul(this.baseHash,i)>>>0);if(!e.hasNameForId(this.componentId,o)){var s=t(i,".".concat(o),void 0,this.componentId);e.insertRules(this.componentId,o,s)}r=Pl(r,o),this.staticRulesId=o}else{for(var a=ul(this.baseHash,t.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==Vr.env.NODE_ENV&&(a=ul(a,u));else if(u){var d=Ll(mc(u,n,e,t));a=ul(a,d+c),l+=d}}if(l){var f=ll(a>>>0);e.hasNameForId(this.componentId,f)||e.insertRules(this.componentId,f,t(l,".".concat(f),void 0,this.componentId)),r=Pl(r,f)}}return r},n}(),yc=i.createContext(void 0);yc.Consumer;var xc={},wc=new Set;function kc(n,e,t){var r=Dl(n),o=n,s=!pl(n),a=e.attrs,l=void 0===a?Xa:a,c=e.componentId,u=void 0===c?function(n,e){var t="string"!=typeof n?"sc":il(n);xc[t]=(xc[t]||0)+1;var r="".concat(t,"-").concat(fl(Wa+t+xc[t]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):c,h=e.displayName,p=void 0===h?function(n){return pl(n)?"styled.".concat(n):"Styled(".concat(hl(n),")")}(n):h,g=e.displayName&&e.componentId?"".concat(il(e.displayName),"-").concat(e.componentId):e.componentId||u,m=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,v=e.shouldForwardProp;if(r&&o.shouldForwardProp){var b=o.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;v=function(n,e){return b(n,e)&&y(n,e)}}else v=b}var x=new bc(t,g,r?o.componentStyle:void 0);function w(n,e){return function(n,e,t){var r=n.attrs,o=n.componentStyle,s=n.defaultProps,a=n.foldedComponentIds,l=n.styledComponentId,c=n.target,u=i.useContext(yc),h=uc(),p=n.shouldForwardProp||h.shouldForwardProp;"production"!==Vr.env.NODE_ENV&&d(l);var g=function(n,e,t){return void 0===t&&(t=nl),n.theme!==t.theme&&n.theme||e||t.theme}(e,u,s)||nl,m=function(n,e,t){for(var r,i=Hn(Hn({},e),{className:void 0,theme:t}),o=0;o<n.length;o+=1){var s=Al(r=n[o])?r(i):r;for(var a in s)i[a]="className"===a?Pl(i[a],s[a]):"style"===a?Hn(Hn({},i[a]),s[a]):s[a]}return e.className&&(i.className=Pl(i.className,e.className)),i}(r,e,g),v=m.as||c,b={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===g||("forwardedAs"===y?b.as=m.forwardedAs:p&&!p(y,v)||(b[y]=m[y],p||"development"!==Vr.env.NODE_ENV||Vs(y)||wc.has(y)||!el.has(v)||(wc.add(y),console.warn('styled-components: it looks like an unknown prop "'.concat(y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var x=function(n,e){var t=uc(),r=n.generateAndInjectStyles(e,t.styleSheet,t.stylis);return"production"!==Vr.env.NODE_ENV&&d(r),r}(o,m);"production"!==Vr.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(x);var w=Pl(a,l);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),b[pl(v)&&!el.has(v)?"class":"className"]=w,b.ref=t,f(v,b)}(k,n,e)}w.displayName=p;var k=i.forwardRef(w);return k.attrs=m,k.componentStyle=x,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=r?Pl(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=g,k.target=r?o.target:n,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var r=0,i=e;r<i.length;r++)Il(n,i[r],!0);return n}({},o.defaultProps,n):n}}),"production"!==Vr.env.NODE_ENV&&(Ja(p,g),k.warnTooManyClasses=function(n,e){var t={},r=!1;return function(i){if(!r&&(t[i]=!0,Object.keys(t).length>=200)){var o=e?' with the id of "'.concat(e,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(n).concat(o,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,t={}}}}(p,g)),Rl(k,(function(){return".".concat(k.styledComponentId)})),s&&Tl(k,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function _c(n,e){for(var t=[n[0]],r=0,i=e.length;r<i;r+=1)t.push(e[r],n[r+1]);return t}var Sc=function(n){return Object.assign(n,{isCss:!0})};function Ec(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Al(n)||Ml(n))return Sc(mc(_c(Xa,Gn([n],e,!0))));var r=n;return 0===e.length&&1===r.length&&"string"==typeof r[0]?mc(r):Sc(mc(_c(r,e)))}function Oc(n,e,t){if(void 0===t&&(t=nl),!e)throw zl(1,e);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n(e,t,Ec.apply(void 0,Gn([r],i,!1)))};return r.attrs=function(r){return Oc(n,e,Hn(Hn({},t),{attrs:Array.prototype.concat(t.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Oc(n,e,Hn(Hn({},t),r))},r}var Cc=function(n){return Oc(kc,n)},Nc=Cc;function Tc(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];"production"!==Vr.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Ll(Ec.apply(void 0,Gn([n],e,!1))),i=fl(r);return new dc(i,r)}el.forEach((function(n){Nc[n]=Cc(n)})),"production"!==Vr.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var Ac="__sc-".concat(Va,"__");"production"!==Vr.env.NODE_ENV&&"test"!==Vr.env.NODE_ENV&&"undefined"!=typeof window&&(window[Ac]||(window[Ac]=0),1===window[Ac]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[Ac]+=1);var Dc,Pc,Lc,Mc,Ic,Rc=Tc(Dc||(Dc=Zn(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),Fc=Nc.div(Pc||(Pc=Zn(["\n position: relative;\n "],["\n position: relative;\n "]))),jc=Nc.div(Lc||(Lc=Zn(["\n\n width: ",";\n height: ",";\n\n position:absolute;\n\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n "],["\n\n width: ",";\n height: ",";\n\n position:absolute;\n\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n "])),(function(n){return"".concat(n.$size,"px")}),(function(n){return"".concat(n.$size,"px")})),zc=Nc.div(Mc||(Mc=Zn(["\n\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n\n div {\n\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border: 3px solid #fff;\n border-radius: 50%;\n animation: "," 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #fff transparent transparent transparent;\n \n }\n\n div:nth-child(1) {\n animation-delay: -0.45s;\n }\n \n div:nth-child(2) {\n animation-delay: -0.3s;\n }\n \n div:nth-child(3) {\n animation-delay: -0.15s;\n }\n\n "],["\n\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n\n div {\n\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border: 3px solid #fff;\n border-radius: 50%;\n animation: "," 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #fff transparent transparent transparent;\n \n }\n\n div:nth-child(1) {\n animation-delay: -0.45s;\n }\n \n div:nth-child(2) {\n animation-delay: -0.3s;\n }\n \n div:nth-child(3) {\n animation-delay: -0.15s;\n }\n\n "])),Rc),$c=Nc.div(Ic||(Ic=Zn(["\n\n opacity: ",";\n pointer-events: ",";\n\n"],["\n\n opacity: ",";\n pointer-events: ",";\n\n"])),(function(n){return"".concat(n.$updating?.5:1)}),(function(n){return"".concat(n.$updating?"none":"auto")})),Yc=function(t){var r=t.updating,i=void 0===r||r,o=t.size,s=void 0===o?24:o,a=t.className,l=void 0===a?"":a,u=t.children,d=void 0===u?null:u;c((function(){}),[]);var f,h=function(){return n(jc,{$size:String(s),className:(t="itd-spin-spinner",i&&(t+=" itd-spin-updating"),l&&(t+=" "+l),t),children:e(zc,{children:[n("div",{}),n("div",{}),n("div",{}),n("div",{})]})});var t};return d?e(Fc,{className:(f="itd-spin",i&&(f+=" itd-spin-updating"),l&&(f+=" "+l),f),children:[n($c,{$updating:i,children:d}),i?h():null]}):i?h():null};function Uc(){return Uc=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Uc.apply(this,arguments)}const Vc=Nc.img`
|
|
169
|
+
38:1},rules:[/^(?:\s+)/i,/^(?:(-(webkit|moz)-)?calc\b)/i,/^(?:[a-z][\d\-a-z]*\s*\((?:(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')|\([^)]*\)|[^()]*)*\))/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)em\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ex\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ch\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rem\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vw\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vh\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vmin\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)vmax\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)mm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Q\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)in\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pt\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pc\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)px\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)deg\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)grad\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rad\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)turn\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)s\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ms\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Hz\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)kHz\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpi\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpcm\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dppx\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)%)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)\b)/i,/^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)-?([^\W\d]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))([\w\-]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))*\b)/i,/^(?:\()/i,/^(?:\))/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,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],inclusive:!0}}};return e}();function s(){this.yy={}}return i.lexer=o,s.prototype=i,i.Parser=s,new s}();void 0!==Uo&&(n.parser=e,n.Parser=e.Parser,n.parse=function(){return e.parse.apply(e,arguments)})}(Vo);const Bo={px:{px:1,cm:96/2.54,mm:96/25.4,q:96/101.6,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,q:.025,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,q:.25,in:25.4,pt:25.4/72,pc:25.4/6},q:{px:101.6/96,cm:40,mm:4,q:1,in:101.6,pt:101.6/72,pc:101.6/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,q:1/101.6,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,q:72/101.6,in:72,pt:1,pc:12},pc:{px:.0625,cm:6/2.54,mm:6/25.4,q:6/101.6,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:.0025,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},hz:{hz:1,khz:1e3},khz:{hz:.001,khz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};const Ho=function(n,e,t,r){const i=e.toLowerCase(),o=t.toLowerCase();if(!Bo[o])throw new Error("Cannot convert to "+t);if(!Bo[o][i])throw new Error("Cannot convert from "+e+" to "+t);const s=Bo[o][i]*n;return!1!==r?(r=Math.pow(10,Math.ceil(r)||5),Math.round(s*r)/r):s};function Wo(n){switch(n.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Number":return!0}return!1}function qo(n){return"+"===n?"-":"+"}function Go(n){return"+"===n||"-"===n}function Zo(n,e,t,r){if(!Go(n))throw new Error(`invalid operator ${n}`);if(Wo(e)){const i=t.findIndex((n=>n.node.type===e.type));if(i>=0){if(0===e.value)return;const o=t[i].node,{left:s,right:a}=function(n,e,t){switch(n.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":if(e.type===n.type&&e.unit&&n.unit){const r=Ho(e.value,e.unit,n.unit,t);e={type:n.type,value:r,unit:n.unit}}return{left:n,right:e};default:return{left:n,right:e}}}(o,e,r);"-"===t[i].preOperator&&(t[i].preOperator="+",s.value*=-1),"+"===n?s.value+=a.value:s.value-=a.value,s.value>=0?t[i]={node:s,preOperator:"+"}:(s.value*=-1,t[i]={node:s,preOperator:"-"})}else e.value>=0?t.push({node:e,preOperator:n}):(e.value*=-1,t.push({node:e,preOperator:qo(n)}))}else if("MathExpression"===e.type)if(Go(e.operator)){Zo(n,e.left,t,r);Zo("-"===n?qo(e.operator):e.operator,e.right,t,r)}else{const i=Xo(e,r);"MathExpression"!==i.type||Go(i.operator)?Zo(n,i,t,r):t.push({node:i,preOperator:n})}else"ParenthesizedExpression"===e.type?Zo(n,e.content,t,r):t.push({node:e,preOperator:n})}function Qo(n){if(!Wo(n.right))return n;if("Number"!==n.right.type)throw new Error(`Cannot divide by "${n.right.unit}", number expected`);return Ko(n.left,n.right.value)}function Ko(n,e){if(0===e)throw new Error("Cannot divide by zero");return Wo(n)?(n.value/=e,n):"MathExpression"===n.type&&Go(n.operator)?{type:"MathExpression",operator:n.operator,left:Ko(n.left,e),right:Ko(n.right,e)}:{type:"MathExpression",operator:"/",left:n,right:{type:"Number",value:e}}}function Jo(n,e){return Wo(n)?(n.value*=e,n):"MathExpression"===n.type&&Go(n.operator)?{type:"MathExpression",operator:n.operator,left:Jo(n.left,e),right:Jo(n.right,e)}:{type:"MathExpression",operator:"*",left:n,right:{type:"Number",value:e}}}function Xo(n,e){if("MathExpression"===n.type){if(Go(n.operator))return function(n,e){const t=[];Zo("+",n,t,e);const r=t.filter((n=>!(Wo(n.node)&&0===n.node.value))),i=r[0];if(!i||"-"===i.preOperator&&!Wo(i.node)){const n=t.find((n=>Wo(n.node)&&0===n.node.value));n&&r.unshift(n)}"-"===r[0].preOperator&&Wo(r[0].node)&&(r[0].node.value*=-1,r[0].preOperator="+");let o=r[0].node;for(let n=1;n<r.length;n++)o={type:"MathExpression",operator:r[n].preOperator,left:o,right:r[n].node};return o}(n,e);switch(n.left=Xo(n.left,e),n.right=Xo(n.right,e),n.operator){case"/":return Qo(n);case"*":return function(n){return"Number"===n.right.type?Jo(n.left,n.right.value):"Number"===n.left.type?Jo(n.right,n.left.value):n}(n)}return n}return"ParenthesizedExpression"===n.type&&function(n){return"Function"!==n.content.type&&("MathExpression"!==n.content.type||"Function"!==n.content.right.type&&"Function"!==n.content.left.type)}(n)?Xo(n.content,e):n}var ns=Xo;const es={"*":0,"/":0,"+":1,"-":1};function ts(n,e){if(!1!==e){const t=Math.pow(10,e);return Math.round(n*t)/t}return n}function rs(n,e){switch(n.type){case"MathExpression":{const{left:t,right:r,operator:i}=n;let o="";return"MathExpression"===t.type&&es[i]<es[t.operator]?o+=`(${rs(t,e)})`:o+=rs(t,e),o+=es[i]?` ${n.operator} `:n.operator,"MathExpression"===r.type&&es[i]<es[r.operator]?o+=`(${rs(r,e)})`:o+=rs(r,e),o}case"Number":return ts(n.value,e).toString();case"Function":return n.value.toString();case"ParenthesizedExpression":return`(${rs(n.content,e)})`;default:return ts(n.value,e)+n.unit}}const is=wo,os=Yo,{parser:ss}=Vo,as=ns,ls=function(n,e,t,r,i,o){let s=rs(e,r.precision);return("MathExpression"===e.type||"Function"===e.type||"ParenthesizedExpression"===e.type)&&(s="ParenthesizedExpression"===e.type?`${n}${s}`:`${n}(${s})`,r.warnWhenCannotResolve&&i.warn("Could not reduce expression: "+t,{plugin:"postcss-calc",node:o})),s},cs=/((?:-(moz|webkit)-)?calc)/i;function us(n,e,t,r){return os(n).walk((i=>{if("function"!==i.type||!cs.test(i.value))return;const o=os.stringify(i.nodes),s=ss.parse(o),a=as(s,e.precision);return i.type="word",i.value=ls(i.value,a,n,e,t,r),!1})).toString()}const ds=(n,e,t,r)=>{let i=n[e];try{i="selector"===e?function(n,e,t,r){return is((n=>{n.walk((n=>{"attribute"===n.type&&n.value&&n.setValue(us(n.value,e,t,r)),"tag"===n.type&&(n.value=us(n.value,e,t,r))}))})).processSync(n)}(n[e],t,r,n):us(n[e],t,r,n)}catch(e){return void(e instanceof Error?r.warn(e.message,{node:n}):r.warn("Error",{node:n}))}if(t.preserve&&n[e]!==i){const t=n.clone();t[e]=i,n.parent.insertBefore(n,t)}else n[e]=i};function fs(n){const e=Object.assign({precision:5,preserve:!1,warnWhenCannotResolve:!1,mediaQueries:!1,selectors:!1},n);return{postcssPlugin:"postcss-calc",OnceExit(n,{result:t}){n.walk((n=>{const{type:r}=n;"decl"===r&&ds(n,"value",e,t),"atrule"===r&&e.mediaQueries&&ds(n,"params",e,t),"rule"===r&&e.selectors&&ds(n,"selector",e,t)}))}}}fs.postcss=!0;var hs=_n(fs),ps={exports:{}};const{Rule:gs,AtRule:ms}=N;let vs=wo;function bs(n,e){let t;try{vs((n=>{t=n})).processSync(n)}catch(t){throw n.includes(":")?e?e.error("Missed semicolon"):t:e?e.error(t.message):t}return t.at(0)}function ys(n,e){let t=!1;return n.each((n=>{if("nesting"===n.type){let r=e.clone({});"&"!==n.value?n.replaceWith(bs(n.value.replace("&",r.toString()))):n.replaceWith(r),t=!0}else"nodes"in n&&n.nodes&&ys(n,e)&&(t=!0)})),t}function xs(n,e){let t=[];return n.selectors.forEach((r=>{let i=bs(r,n);e.selectors.forEach((n=>{if(!n)return;let r=bs(n,e);ys(r,i)||(r.prepend(vs.combinator({value:" "})),r.prepend(i.clone({}))),t.push(r.toString())}))})),t}function ws(n,e){let t=n.prev();for(e.after(n);t&&"comment"===t.type;){let n=t.prev();e.after(t),t=n}return n}function ks(n,e,t){let r=new gs({selector:n,nodes:[]});return r.append(e),t.after(r),r}function _s(n,e){let t={};for(let e of n)t[e]=!0;if(e)for(let n of e)t[n.replace(/^@/,"")]=!0;return t}function Ss(n){let e=n[Os];if(e){let t,r,i,o,s=n.nodes,a=-1,l=function(n){let e=[],t=n.parent;for(;t&&t instanceof ms;)e.push(t),t=t.parent;return e}(n);if(l.forEach(((n,s)=>{if(e(n.name))t=n,a=s,i=o;else{let e=o;o=n.clone({nodes:[]}),e&&o.append(e),r=r||o}})),t)if(i){r.append(s),t.after(i)}else t.after(s);else n.after(s);if(n.next()&&t){let e;l.slice(0,a+1).forEach(((t,r,i)=>{let o=e;e=t.clone({nodes:[]}),o&&e.append(o);let s=[],a=(i[r-1]||n).next();for(;a;)s.push(a),a=a.next();e.append(s)})),e&&(i||s[s.length-1]).after(e)}}else n.after(n.nodes);n.remove()}const Es=Symbol("rootRuleMergeSel"),Os=Symbol("rootRuleEscapes");function Cs(n){let{params:e}=n,{type:t,selector:r,escapes:i}=function(n){let e=(n=n.trim()).match(/^\((.*)\)$/);if(!e)return{type:"basic",selector:n};let t=e[1].match(/^(with(?:out)?):(.+)$/);if(t){let n="with"===t[1],e=Object.fromEntries(t[2].trim().split(/\s+/).map((n=>[n,!0])));if(n&&e.all)return{type:"noop"};let r=n=>!!e[n];return e.all?r=()=>!0:n&&(r=n=>"all"!==n&&!e[n]),{type:"withrules",escapes:r}}return{type:"unknown"}}(e);if("unknown"===t)throw n.error(`Unknown @${n.name} parameter ${JSON.stringify(e)}`);if("basic"===t&&r){let e=new gs({selector:r,nodes:n.nodes});n.removeAll(),n.append(e)}n[Os]=i,n[Es]=i?!i("all"):"noop"===t}const Ns=Symbol("hasRootRule");ps.exports=(n={})=>{let e=_s(["media","supports","layer","container"],n.bubble),t=function(n){return function e(t,r,i,o=i){let s=[];if(r.each((a=>{"rule"===a.type&&i?o&&(a.selectors=xs(t,a)):"atrule"===a.type&&a.nodes?n[a.name]?e(t,a,o):!1!==r[Es]&&s.push(a):s.push(a)})),i&&s.length){let n=t.clone({nodes:[]});for(let e of s)n.append(e);r.prepend(n)}}}(e),r=_s(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],n.unwrap),i=(n.rootRuleName||"at-root").replace(/^@/,""),o=n.preserveEmpty;return{postcssPlugin:"postcss-nested",Once(n){n.walkAtRules(i,(e=>{Cs(e),n[Ns]=!0}))},Rule(n){let s=!1,a=n,l=!1,c=[];n.each((o=>{"rule"===o.type?(c.length&&(a=ks(n.selector,c,a),c=[]),l=!0,s=!0,o.selectors=xs(n,o),a=ws(o,a)):"atrule"===o.type?(c.length&&(a=ks(n.selector,c,a),c=[]),o.name===i?(s=!0,t(n,o,!0,o[Es]),a=ws(o,a)):e[o.name]?(l=!0,s=!0,t(n,o,!0),a=ws(o,a)):r[o.name]?(l=!0,s=!0,t(n,o,!1),a=ws(o,a)):l&&c.push(o)):"decl"===o.type&&l&&c.push(o)})),c.length&&(a=ks(n.selector,c,a)),s&&!0!==o&&(n.raws.semicolon=!0,0===n.nodes.length&&n.remove())},RootExit(n){n[Ns]&&(n.walkAtRules(i,Ss),n[Ns]=!1)}}},ps.exports.postcss=!0;var Ts=_n(ps.exports),As=function(n,e,t){void 0===t&&(t=Oe("dynamic-style")),c((function(){return i()||r(),function(){var n=o();"string"!=typeof n&&n.parentNode&&n.parentNode.removeChild(n)}}),[]);var r=function(){s(),e("cs-"+t)},i=function(){return 0===Object.keys(n).length},o=function(){var n="";return document.querySelectorAll("head > style").forEach((function(e){e.id===t&&(n=e)})),n},s=function(){var e=a(n),r=document.createElement("style");r.setAttribute("type","text/css"),r.setAttribute("id",t),r.innerHTML=e.join(""),document.head.appendChild(r)},a=function(n){var e=[];for(var r in n){var i=JSON.stringify(n[r]).split('","').join(";").replace(/"/g,"");i=N().use(C).use(Ts).use(hs({})).process(i).css;var o=".cs-".concat(t," ").concat(r," ");o+=i,o+=" ",e.push(o)}return e}};function Ds(n){var e=!1;return document.querySelectorAll("head > style").forEach((function(t){Array(t.sheet.rules).forEach((function(t){for(var r=0;r<t.length;r++)t[r].cssText.search(n)>-1&&(e=!0)}))})),e}var Ps=function(n,e){var t=n.componentStyle.rules[0],r=String(n).replace(".","");null!==e&&(r+="-"+Oe("styled-style")),c((function(){if(!Ds(r))return i(),e&&e(r),function(){document.querySelectorAll("head > style").forEach((function(n){n.id===r&&n.parentNode&&n.parentNode.removeChild(n)}))}}),[t]);var i=function(){var n=o(t),e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",r),e.innerHTML=n.length>1?n.join(""):n[0],document.head.appendChild(e)},o=function(n){var e=n.replace(/\r?\n|\r/g,""),t=[];if((e=N().use(C({grid:"autoplace"})).use(Ts).use(hs({})).process(e).css).split("&").length>1)for(var i=e.split("&"),o=0;o<i.length;o++)0===o?t.push("."+r+"{"+i[0]+"}"):t.push("."+r+i[o]);else t.push("."+r+" {"+e+"} ");return t}},Ls=function(n,e){c((function(){var t=function(t){t.target&&n&&n.current&&!n.current.contains(t.target)&&e(t)};return document.addEventListener("pointerdown",t),function(){document.removeEventListener("pointerdown",t)}}),[n,e])},Ms=function(n){c((function(){var e=function(e){27===e.keyCode&&n(e)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n])},Is=function(){var n=T(),e=n[0],t=n[1];return{set:function(n,r){void 0===n&&(n=""),""===r||null===r?e.delete(n):Array.isArray(r)?0===r.length?e.delete(n):e.set(n,decodeURIComponent(r.join()).toString()):e.set(n,r),t(e)},get:function(n,t,r){void 0===n&&(n="search"),void 0===t&&(t=""),void 0===r&&(r=0);var i=e.get(n);return null==i||""===i||r>0&&i.length<r?t:i.indexOf(",")>-1||i.indexOf("%2C")>-1?i.split(","):e.get(n)},remove:function(n){void 0===n&&(n=""),e.delete(n),t(e)},isEmpty:function(){return 0===Array.from(e.values()).length}}},Rs=function(){var n=T(),e=n[0],t=n[1],r=A();return{set:function(n){void 0===n&&(n=[{type:"",value:""}]),n.forEach((function(n){""===n.value||void 0===n.value||null===n.value?e.delete(n.type):Array.isArray(n.value)?0===n.value.length?e.delete(n.type):e.set(n.type,decodeURIComponent(n.value.join()).toString()):e.set(n.type,n.value)})),t(e),r({search:D(e).toString()},{replace:!0})}}},Fs=function(n){c((function(){var e=function(e){n(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[n])},js=function(n){c((function(){var e=function(e){n(e)};return window.addEventListener("online",e),function(){window.removeEventListener("online",e)}}),[n])},zs=function(n){var e=a({width:0,height:0}),t=e[0],r=e[1];return c((function(){if(n.current){var e=new ResizeObserver((function(n){n.forEach((function(n){var e=n.target;r({width:e.clientWidth,height:e.clientHeight})}))}));return e.observe(n.current),function(){return e.disconnect()}}}),[n]),[t]},$s=function(){var n=l(null);return{fetch:function(e){return Wn(void 0,[e],void 0,(function(e){var t,r,i,o=e.action,s=void 0===o?"":o,a=e.requestMethod,l=void 0===a?"":a,c=e.addOrigin,u=void 0===c||c,d=e.params,f=void 0===d?{}:d,h=e.queries,p=void 0===h?{}:h,g=e.headers,m=void 0===g?{}:g,v=e.cancelable,b=void 0===v||v,y=e.onFetched,x=e.onError,w=e.onCanceled,k=e.onProgress;return qn(this,(function(e){switch(e.label){case 0:return t="",r={},Object.keys(p).forEach((function(n){t+="&"+n+"="+p[n]})),r["Content-Type"]="put"===l?"multipart/form-data":"application/json",u&&(r["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),r=Hn(Hn({},r),m),i=M.post,"post"===l.toLocaleLowerCase()?i=M.post:"get"===l.toLocaleLowerCase()?i=M.get:"put"===l.toLocaleLowerCase()?i=M.put:"patch"===l.toLocaleLowerCase()&&(i=M.patch),[4,i(s+t,f,{headers:m,cancelToken:!!b&&(n.current=M.CancelToken.source(),n.current.token),onUploadProgress:function(n){k&&k(n)}}).then((function(n){y&&y(n)})).catch((function(n){console.log("error",n),console.log("error.message",n.message),M.isCancel(n.message)?w&&w(n.message):x&&x(n.message,0)}))];case 1:return e.sent(),[2]}}))}))},cancel:function(){n.current&&n.current.cancel("manually canceled!")}}};function Ys(n){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=n(t)),e[t]}}var Us=/^((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)-.*))$/,Vs=Ys((function(n){return Us.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91})),Bs="-ms-",Hs="-moz-",Ws="-webkit-",qs="comm",Gs="rule",Zs="decl",Qs="@import",Ks="@keyframes",Js="@layer",Xs=Math.abs,na=String.fromCharCode,ea=Object.assign;function ta(n){return n.trim()}function ra(n,e){return(n=e.exec(n))?n[0]:n}function ia(n,e,t){return n.replace(e,t)}function oa(n,e,t){return n.indexOf(e,t)}function sa(n,e){return 0|n.charCodeAt(e)}function aa(n,e,t){return n.slice(e,t)}function la(n){return n.length}function ca(n){return n.length}function ua(n,e){return e.push(n),n}function da(n,e){return n.filter((function(n){return!ra(n,e)}))}var fa=1,ha=1,pa=0,ga=0,ma=0,va="";function ba(n,e,t,r,i,o,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:o,line:fa,column:ha,length:s,return:"",siblings:a}}function ya(n,e){return ea(ba("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function xa(n){for(;n.root;)n=ya(n.root,{children:[n]});ua(n,n.siblings)}function wa(){return ma=ga>0?sa(va,--ga):0,ha--,10===ma&&(ha=1,fa--),ma}function ka(){return ma=ga<pa?sa(va,ga++):0,ha++,10===ma&&(ha=1,fa++),ma}function _a(){return sa(va,ga)}function Sa(){return ga}function Ea(n,e){return aa(va,n,e)}function Oa(n){switch(n){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 Ca(n){return ta(Ea(ga-1,Aa(91===n?n+2:40===n?n+1:n)))}function Na(n){for(;(ma=_a())&&ma<33;)ka();return Oa(n)>2||Oa(ma)>3?"":" "}function Ta(n,e){for(;--e&&ka()&&!(ma<48||ma>102||ma>57&&ma<65||ma>70&&ma<97););return Ea(n,Sa()+(e<6&&32==_a()&&32==ka()))}function Aa(n){for(;ka();)switch(ma){case n:return ga;case 34:case 39:34!==n&&39!==n&&Aa(ma);break;case 40:41===n&&Aa(n);break;case 92:ka()}return ga}function Da(n,e){for(;ka()&&n+ma!==57&&(n+ma!==84||47!==_a()););return"/*"+Ea(e,ga-1)+"*"+na(47===n?n:ka())}function Pa(n){for(;!Oa(_a());)ka();return Ea(n,ga)}function La(n){return function(n){return va="",n}(Ma("",null,null,null,[""],n=function(n){return fa=ha=1,pa=la(va=n),ga=0,[]}(n),0,[0],n))}function Ma(n,e,t,r,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,g=1,m=1,v=1,b=0,y="",x=i,w=o,k=r,_=y;m;)switch(p=b,b=ka()){case 40:if(108!=p&&58==sa(_,d-1)){-1!=oa(_+=ia(Ca(b),"&","&\f"),"&\f",Xs(c?a[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=Ca(b);break;case 9:case 10:case 13:case 32:_+=Na(p);break;case 92:_+=Ta(Sa()-1,7);continue;case 47:switch(_a()){case 42:case 47:ua(Ra(Da(ka(),Sa()),e,t,l),l);break;default:_+="/"}break;case 123*g:a[c++]=la(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=ia(_,/\f/g,"")),h>0&&la(_)-d&&ua(h>32?Fa(_+";",r,t,d-1,l):Fa(ia(_," ","")+";",r,t,d-2,l),l);break;case 59:_+=";";default:if(ua(k=Ia(_,e,t,c,u,i,a,y,x=[],w=[],d,o),o),123===b)if(0===u)Ma(_,e,k,k,x,o,d,a,w);else switch(99===f&&110===sa(_,3)?100:f){case 100:case 108:case 109:case 115:Ma(n,k,k,r&&ua(Ia(n,k,k,0,0,i,a,y,i,x=[],d,w),w),i,w,d,a,r?x:w);break;default:Ma(_,k,k,k,[""],w,0,a,w)}}c=u=h=0,g=v=1,y=_="",d=s;break;case 58:d=1+la(_),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==wa())continue;switch(_+=na(b),b*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(la(_)-1)*v,v=1;break;case 64:45===_a()&&(_+=Ca(ka())),f=_a(),u=d=la(y=_+=Pa(Sa())),b++;break;case 45:45===p&&2==la(_)&&(g=0)}}return o}function Ia(n,e,t,r,i,o,s,a,l,c,u,d){for(var f=i-1,h=0===i?o:[""],p=ca(h),g=0,m=0,v=0;g<r;++g)for(var b=0,y=aa(n,f+1,f=Xs(m=s[g])),x=n;b<p;++b)(x=ta(m>0?h[b]+" "+y:ia(y,/&\f/g,h[b])))&&(l[v++]=x);return ba(n,e,t,0===i?Gs:a,l,c,u,d)}function Ra(n,e,t,r){return ba(n,e,t,qs,na(ma),aa(n,2,-2),0,r)}function Fa(n,e,t,r,i){return ba(n,e,t,Zs,aa(n,0,r),aa(n,r+1,-1),r,i)}function ja(n,e,t){switch(function(n,e){return 45^sa(n,0)?(((e<<2^sa(n,0))<<2^sa(n,1))<<2^sa(n,2))<<2^sa(n,3):0}(n,e)){case 5103:return Ws+"print-"+n+n;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 Ws+n+n;case 4789:return Hs+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ws+n+Hs+n+Bs+n+n;case 5936:switch(sa(n,e+11)){case 114:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ws+n+Bs+ia(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Ws+n+Bs+n+n;case 6165:return Ws+n+Bs+"flex-"+n+n;case 5187:return Ws+n+ia(n,/(\w+).+(:[^]+)/,Ws+"box-$1$2"+Bs+"flex-$1$2")+n;case 5443:return Ws+n+Bs+"flex-item-"+ia(n,/flex-|-self/g,"")+(ra(n,/flex-|baseline/)?"":Bs+"grid-row-"+ia(n,/flex-|-self/g,""))+n;case 4675:return Ws+n+Bs+"flex-line-pack"+ia(n,/align-content|flex-|-self/g,"")+n;case 5548:return Ws+n+Bs+ia(n,"shrink","negative")+n;case 5292:return Ws+n+Bs+ia(n,"basis","preferred-size")+n;case 6060:return Ws+"box-"+ia(n,"-grow","")+Ws+n+Bs+ia(n,"grow","positive")+n;case 4554:return Ws+ia(n,/([^-])(transform)/g,"$1"+Ws+"$2")+n;case 6187:return ia(ia(ia(n,/(zoom-|grab)/,Ws+"$1"),/(image-set)/,Ws+"$1"),n,"")+n;case 5495:case 3959:return ia(n,/(image-set\([^]*)/,Ws+"$1$`$1");case 4968:return ia(ia(n,/(.+:)(flex-)?(.*)/,Ws+"box-pack:$3"+Bs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ws+n+n;case 4200:if(!ra(n,/flex-|baseline/))return Bs+"grid-column-align"+aa(n,e)+n;break;case 2592:case 3360:return Bs+ia(n,"template-","")+n;case 4384:case 3616:return t&&t.some((function(n,t){return e=t,ra(n.props,/grid-\w+-end/)}))?~oa(n+(t=t[e].value),"span",0)?n:Bs+ia(n,"-start","")+n+Bs+"grid-row-span:"+(~oa(t,"span",0)?ra(t,/\d+/):+ra(t,/\d+/)-+ra(n,/\d+/))+";":Bs+ia(n,"-start","")+n;case 4896:case 4128:return t&&t.some((function(n){return ra(n.props,/grid-\w+-start/)}))?n:Bs+ia(ia(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return ia(n,/(.+)-inline(.+)/,Ws+"$1$2")+n;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(la(n)-1-e>6)switch(sa(n,e+1)){case 109:if(45!==sa(n,e+4))break;case 102:return ia(n,/(.+:)(.+)-([^]+)/,"$1"+Ws+"$2-$3$1"+Hs+(108==sa(n,e+3)?"$3":"$2-$3"))+n;case 115:return~oa(n,"stretch",0)?ja(ia(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return ia(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,t,r,i,o,s,a){return Bs+t+":"+r+a+(i?Bs+t+"-span:"+(o?s:+s-+r)+a:"")+n}));case 4949:if(121===sa(n,e+6))return ia(n,":",":"+Ws)+n;break;case 6444:switch(sa(n,45===sa(n,14)?18:11)){case 120:return ia(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ws+(45===sa(n,14)?"inline-":"")+"box$3$1"+Ws+"$2$3$1"+Bs+"$2box$3")+n;case 100:return ia(n,":",":"+Bs)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ia(n,"scroll-","scroll-snap-")+n}return n}function za(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function $a(n,e,t,r){switch(n.type){case Js:if(n.children.length)break;case Qs:case Zs:return n.return=n.return||n.value;case qs:return"";case Ks:return n.return=n.value+"{"+za(n.children,r)+"}";case Gs:if(!la(n.value=n.props.join(",")))return""}return la(t=za(n.children,r))?n.return=n.value+"{"+t+"}":""}function Ya(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case Zs:return void(n.return=ja(n.value,n.length,t));case Ks:return za([ya(n,{value:ia(n.value,"@","@"+Ws)})],r);case Gs:if(n.length)return function(n,e){return n.map(e).join("")}(t=n.props,(function(e){switch(ra(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xa(ya(n,{props:[ia(e,/:(read-\w+)/,":"+Hs+"$1")]})),xa(ya(n,{props:[e]})),ea(n,{props:da(t,r)});break;case"::placeholder":xa(ya(n,{props:[ia(e,/:(plac\w+)/,":"+Ws+"input-$1")]})),xa(ya(n,{props:[ia(e,/:(plac\w+)/,":"+Hs+"$1")]})),xa(ya(n,{props:[ia(e,/:(plac\w+)/,Bs+"input-$1")]})),xa(ya(n,{props:[e]})),ea(n,{props:da(t,r)})}return""}))}}var Ua={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},Va=void 0!==Vr&&void 0!==Vr.env&&(Vr.env.REACT_APP_SC_ATTR||Vr.env.SC_ATTR)||"data-styled",Ba="active",Ha="data-styled-version",Wa="6.1.11",qa="/*!sc*/\n",Ga="undefined"!=typeof window&&"HTMLElement"in window,Za=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Vr&&void 0!==Vr.env&&void 0!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Vr.env.REACT_APP_SC_DISABLE_SPEEDY&&Vr.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Vr&&void 0!==Vr.env&&void 0!==Vr.env.SC_DISABLE_SPEEDY&&""!==Vr.env.SC_DISABLE_SPEEDY?"false"!==Vr.env.SC_DISABLE_SPEEDY&&Vr.env.SC_DISABLE_SPEEDY:"production"!==Vr.env.NODE_ENV),Qa=/invalid hook call/i,Ka=new Set,Ja=function(n,e){if("production"!==Vr.env.NODE_ENV){var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var o=!0;console.error=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];Qa.test(n)?(o=!1,Ka.delete(r)):i.apply(void 0,Gn([n],e,!1))},l(),o&&!Ka.has(r)&&(console.warn(r),Ka.add(r))}catch(n){Qa.test(n.message)&&Ka.delete(r)}finally{console.error=i}}},Xa=Object.freeze([]),nl=Object.freeze({});var el=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),tl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rl=/(^-|-$)/g;function il(n){return n.replace(tl,"-").replace(rl,"")}var ol=/(a)(d)/gi,sl=52,al=function(n){return String.fromCharCode(n+(n>25?39:97))};function ll(n){var e,t="";for(e=Math.abs(n);e>sl;e=e/sl|0)t=al(e%sl)+t;return(al(e%sl)+t).replace(ol,"$1-$2")}var cl,ul=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},dl=function(n){return ul(5381,n)};function fl(n){return ll(dl(n)>>>0)}function hl(n){return"production"!==Vr.env.NODE_ENV&&"string"==typeof n&&n||n.displayName||n.name||"Component"}function pl(n){return"string"==typeof n&&("production"===Vr.env.NODE_ENV||n.charAt(0)===n.charAt(0).toLowerCase())}var gl="function"==typeof Symbol&&Symbol.for,ml=gl?Symbol.for("react.memo"):60115,vl=gl?Symbol.for("react.forward_ref"):60112,bl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yl={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wl=((cl={})[vl]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cl[ml]=xl,cl);function kl(n){return("type"in(e=n)&&e.type.$$typeof)===ml?xl:"$$typeof"in n?wl[n.$$typeof]:bl;var e}var _l=Object.defineProperty,Sl=Object.getOwnPropertyNames,El=Object.getOwnPropertySymbols,Ol=Object.getOwnPropertyDescriptor,Cl=Object.getPrototypeOf,Nl=Object.prototype;function Tl(n,e,t){if("string"!=typeof e){if(Nl){var r=Cl(e);r&&r!==Nl&&Tl(n,r,t)}var i=Sl(e);El&&(i=i.concat(El(e)));for(var o=kl(n),s=kl(e),a=0;a<i.length;++a){var l=i[a];if(!(l in yl||t&&t[l]||s&&l in s||o&&l in o)){var c=Ol(e,l);try{_l(n,l,c)}catch(n){}}}}return n}function Al(n){return"function"==typeof n}function Dl(n){return"object"==typeof n&&"styledComponentId"in n}function Pl(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Ll(n,e){if(0===n.length)return"";for(var t=n[0],r=1;r<n.length;r++)t+=n[r];return t}function Ml(n){return null!==n&&"object"==typeof n&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Il(n,e,t){if(void 0===t&&(t=!1),!t&&!Ml(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Il(n[r],e[r]);else if(Ml(e))for(var r in e)n[r]=Il(n[r],e[r]);return n}function Rl(n,e){Object.defineProperty(n,"toString",{value:e})}var Fl="production"!==Vr.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function jl(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,o=n.length;i<o;i+=1)r.push(n[i]);return r.forEach((function(n){t=t.replace(/%[a-z]/,n)})),t}function zl(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return"production"===Vr.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(jl.apply(void 0,Gn([Fl[n]],e,!1)).trim())}var $l=function(){function n(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return n.prototype.indexOfGroup=function(n){for(var e=0,t=0;t<n;t++)e+=this.groupSizes[t];return e},n.prototype.insertRules=function(n,e){if(n>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,i=r;n>=i;)if((i<<=1)<0)throw zl(16,"".concat(n));this.groupSizes=new Uint32Array(i),this.groupSizes.set(t),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(n+1),a=(o=0,e.length);o<a;o++)this.tag.insertRule(s,e[o])&&(this.groupSizes[n]++,s++)},n.prototype.clearGroup=function(n){if(n<this.length){var e=this.groupSizes[n],t=this.indexOfGroup(n),r=t+e;this.groupSizes[n]=0;for(var i=t;i<r;i++)this.tag.deleteRule(t)}},n.prototype.getGroup=function(n){var e="";if(n>=this.length||0===this.groupSizes[n])return e;for(var t=this.groupSizes[n],r=this.indexOfGroup(n),i=r+t,o=r;o<i;o++)e+="".concat(this.tag.getRule(o)).concat(qa);return e},n}(),Yl=1<<30,Ul=new Map,Vl=new Map,Bl=1,Hl=function(n){if(Ul.has(n))return Ul.get(n);for(;Vl.has(Bl);)Bl++;var e=Bl++;if("production"!==Vr.env.NODE_ENV&&((0|e)<0||e>Yl))throw zl(16,"".concat(e));return Ul.set(n,e),Vl.set(e,n),e},Wl=function(n,e){Bl=e+1,Ul.set(n,e),Vl.set(e,n)},ql="style[".concat(Va,"][").concat(Ha,'="').concat(Wa,'"]'),Gl=new RegExp("^".concat(Va,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Zl=function(n,e,t){for(var r,i=t.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&n.registerName(e,r)},Ql=function(n,e){for(var t,r=(null!==(t=e.textContent)&&void 0!==t?t:"").split(qa),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(Gl);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Wl(u,c),Zl(n,u,l[3]),n.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}};var Kl=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=function(n){var e=Array.from(n.querySelectorAll("style[".concat(Va,"]")));return e[e.length-1]}(t),o=void 0!==i?i.nextSibling:null;r.setAttribute(Va,Ba),r.setAttribute(Ha,Wa);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),t.insertBefore(r,o),r},Jl=function(){function n(n){this.element=Kl(n),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var e=document.styleSheets,t=0,r=e.length;t<r;t++){var i=e[t];if(i.ownerNode===n)return i}throw zl(17)}(this.element),this.length=0}return n.prototype.insertRule=function(n,e){try{return this.sheet.insertRule(e,n),this.length++,!0}catch(n){return!1}},n.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},n.prototype.getRule=function(n){var e=this.sheet.cssRules[n];return e&&e.cssText?e.cssText:""},n}(),Xl=function(){function n(n){this.element=Kl(n),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(n,e){if(n<=this.length&&n>=0){var t=document.createTextNode(e);return this.element.insertBefore(t,this.nodes[n]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},n.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},n}(),nc=function(){function n(n){this.rules=[],this.length=0}return n.prototype.insertRule=function(n,e){return n<=this.length&&(this.rules.splice(n,0,e),this.length++,!0)},n.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},n.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},n}(),ec=Ga,tc={isServer:!Ga,useCSSOMInjection:!Za},rc=function(){function n(n,e,t){void 0===n&&(n=nl),void 0===e&&(e={});var r=this;this.options=Hn(Hn({},tc),n),this.gs=e,this.names=new Map(t),this.server=!!n.isServer,!this.server&&Ga&&ec&&(ec=!1,function(n){for(var e=document.querySelectorAll(ql),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(Va)!==Ba&&(Ql(n,i),i.parentNode&&i.parentNode.removeChild(i))}}(this)),Rl(this,(function(){return function(n){for(var e=n.getTag(),t=e.length,r="",i=function(t){var i=function(n){return Vl.get(n)}(t);if(void 0===i)return"continue";var o=n.names.get(i),s=e.getGroup(t);if(void 0===o||0===s.length)return"continue";var a="".concat(Va,".g").concat(t,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(n){n.length>0&&(l+="".concat(n,","))})),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(qa)},o=0;o<t;o++)i(o);return r}(r)}))}return n.registerId=function(n){return Hl(n)},n.prototype.reconstructWithOptions=function(e,t){return void 0===t&&(t=!0),new n(Hn(Hn({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(n=function(n){var e=n.useCSSOMInjection,t=n.target;return n.isServer?new nc(t):e?new Jl(t):new Xl(t)}(this.options),new $l(n)));var n},n.prototype.hasNameForId=function(n,e){return this.names.has(n)&&this.names.get(n).has(e)},n.prototype.registerName=function(n,e){if(Hl(n),this.names.has(n))this.names.get(n).add(e);else{var t=new Set;t.add(e),this.names.set(n,t)}},n.prototype.insertRules=function(n,e,t){this.registerName(n,e),this.getTag().insertRules(Hl(n),t)},n.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},n.prototype.clearRules=function(n){this.getTag().clearGroup(Hl(n)),this.clearNames(n)},n.prototype.clearTag=function(){this.tag=void 0},n}(),ic=/&/g,oc=/^\s*\/\/.*$/gm;function sc(n,e){return n.map((function(n){return"rule"===n.type&&(n.value="".concat(e," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(e," ")),n.props=n.props.map((function(n){return"".concat(e," ").concat(n)}))),Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=sc(n.children,e)),n}))}var ac=new rc,lc=function(n){var e,t,r,i=nl,o=i.options,s=void 0===o?nl:o,a=i.plugins,l=void 0===a?Xa:a,c=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},u=l.slice();u.push((function(n){n.type===Gs&&n.value.includes("&")&&(n.props[0]=n.props[0].replace(ic,t).replace(r,c))})),s.prefix&&u.push(Ya),u.push($a);var d=function(n,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),e=a,t=i,r=new RegExp("\\".concat(t,"\\b"),"g");var l=n.replace(oc,""),c=La(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(c=sc(c,s.namespace));var d,f=[];return za(c,function(n){var e=ca(n);return function(t,r,i,o){for(var s="",a=0;a<e;a++)s+=n[a](t,r,i,o)||"";return s}}(u.concat((d=function(n){return f.push(n)},function(n){n.root||(n=n.return)&&d(n)})))),f};return d.hash=l.length?l.reduce((function(n,e){return e.name||zl(15),ul(n,e.name)}),5381).toString():"",d}(),cc=i.createContext({shouldForwardProp:void 0,styleSheet:ac,stylis:lc});function uc(){return s(cc)}cc.Consumer,i.createContext(void 0);var dc=function(){function n(n,e){var t=this;this.inject=function(n,e){void 0===e&&(e=lc);var r=t.name+e.hash;n.hasNameForId(t.id,r)||n.insertRules(t.id,r,e(t.rules,r,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=e,Rl(this,(function(){throw zl(12,String(t.name))}))}return n.prototype.getName=function(n){return void 0===n&&(n=lc),this.name+n.hash},n}(),fc=function(n){return n>="A"&&n<="Z"};function hc(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(1===t&&"-"===r&&"-"===n[0])return n;fc(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var pc=function(n){return null==n||!1===n||""===n},gc=function(n){var e,t,r=[];for(var i in n){var o=n[i];n.hasOwnProperty(i)&&!pc(o)&&(Array.isArray(o)&&o.isCss||Al(o)?r.push("".concat(hc(i),":"),o,";"):Ml(o)?r.push.apply(r,Gn(Gn(["".concat(i," {")],gc(o),!1),["}"],!1)):r.push("".concat(hc(i),": ").concat((e=i,null==(t=o)||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ua||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function mc(n,e,t,r){if(pc(n))return[];if(Dl(n))return[".".concat(n.styledComponentId)];if(Al(n)){if(!Al(o=n)||o.prototype&&o.prototype.isReactComponent||!e)return[n];var i=n(e);return"production"===Vr.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof dc||Ml(i)||null===i||console.error("".concat(hl(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),mc(i,e,t,r)}var o;return n instanceof dc?t?(n.inject(t,r),[n.getName(r)]):[n]:Ml(n)?gc(n):Array.isArray(n)?Array.prototype.concat.apply(Xa,n.map((function(n){return mc(n,e,t,r)}))):[n.toString()]}var vc=dl(Wa),bc=function(){function n(n,e,t){this.rules=n,this.staticRulesId="",this.isStatic="production"===Vr.env.NODE_ENV&&(void 0===t||t.isStatic)&&function(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(Al(t)&&!Dl(t))return!1}return!0}(n),this.componentId=e,this.baseHash=ul(vc,e),this.baseStyle=t,rc.registerId(e)}return n.prototype.generateAndInjectStyles=function(n,e,t){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,e,t):"";if(this.isStatic&&!t.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=Pl(r,this.staticRulesId);else{var i=Ll(mc(this.rules,n,e,t)),o=ll(ul(this.baseHash,i)>>>0);if(!e.hasNameForId(this.componentId,o)){var s=t(i,".".concat(o),void 0,this.componentId);e.insertRules(this.componentId,o,s)}r=Pl(r,o),this.staticRulesId=o}else{for(var a=ul(this.baseHash,t.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==Vr.env.NODE_ENV&&(a=ul(a,u));else if(u){var d=Ll(mc(u,n,e,t));a=ul(a,d+c),l+=d}}if(l){var f=ll(a>>>0);e.hasNameForId(this.componentId,f)||e.insertRules(this.componentId,f,t(l,".".concat(f),void 0,this.componentId)),r=Pl(r,f)}}return r},n}(),yc=i.createContext(void 0);yc.Consumer;var xc={},wc=new Set;function kc(n,e,t){var r=Dl(n),o=n,s=!pl(n),a=e.attrs,l=void 0===a?Xa:a,c=e.componentId,u=void 0===c?function(n,e){var t="string"!=typeof n?"sc":il(n);xc[t]=(xc[t]||0)+1;var r="".concat(t,"-").concat(fl(Wa+t+xc[t]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):c,h=e.displayName,p=void 0===h?function(n){return pl(n)?"styled.".concat(n):"Styled(".concat(hl(n),")")}(n):h,g=e.displayName&&e.componentId?"".concat(il(e.displayName),"-").concat(e.componentId):e.componentId||u,m=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,v=e.shouldForwardProp;if(r&&o.shouldForwardProp){var b=o.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;v=function(n,e){return b(n,e)&&y(n,e)}}else v=b}var x=new bc(t,g,r?o.componentStyle:void 0);function w(n,e){return function(n,e,t){var r=n.attrs,o=n.componentStyle,s=n.defaultProps,a=n.foldedComponentIds,l=n.styledComponentId,c=n.target,u=i.useContext(yc),h=uc(),p=n.shouldForwardProp||h.shouldForwardProp;"production"!==Vr.env.NODE_ENV&&d(l);var g=function(n,e,t){return void 0===t&&(t=nl),n.theme!==t.theme&&n.theme||e||t.theme}(e,u,s)||nl,m=function(n,e,t){for(var r,i=Hn(Hn({},e),{className:void 0,theme:t}),o=0;o<n.length;o+=1){var s=Al(r=n[o])?r(i):r;for(var a in s)i[a]="className"===a?Pl(i[a],s[a]):"style"===a?Hn(Hn({},i[a]),s[a]):s[a]}return e.className&&(i.className=Pl(i.className,e.className)),i}(r,e,g),v=m.as||c,b={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===g||("forwardedAs"===y?b.as=m.forwardedAs:p&&!p(y,v)||(b[y]=m[y],p||"development"!==Vr.env.NODE_ENV||Vs(y)||wc.has(y)||!el.has(v)||(wc.add(y),console.warn('styled-components: it looks like an unknown prop "'.concat(y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var x=function(n,e){var t=uc(),r=n.generateAndInjectStyles(e,t.styleSheet,t.stylis);return"production"!==Vr.env.NODE_ENV&&d(r),r}(o,m);"production"!==Vr.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(x);var w=Pl(a,l);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),b[pl(v)&&!el.has(v)?"class":"className"]=w,b.ref=t,f(v,b)}(k,n,e)}w.displayName=p;var k=i.forwardRef(w);return k.attrs=m,k.componentStyle=x,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=r?Pl(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=g,k.target=r?o.target:n,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var r=0,i=e;r<i.length;r++)Il(n,i[r],!0);return n}({},o.defaultProps,n):n}}),"production"!==Vr.env.NODE_ENV&&(Ja(p,g),k.warnTooManyClasses=function(n,e){var t={},r=!1;return function(i){if(!r&&(t[i]=!0,Object.keys(t).length>=200)){var o=e?' with the id of "'.concat(e,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(n).concat(o,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,t={}}}}(p,g)),Rl(k,(function(){return".".concat(k.styledComponentId)})),s&&Tl(k,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function _c(n,e){for(var t=[n[0]],r=0,i=e.length;r<i;r+=1)t.push(e[r],n[r+1]);return t}var Sc=function(n){return Object.assign(n,{isCss:!0})};function Ec(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Al(n)||Ml(n))return Sc(mc(_c(Xa,Gn([n],e,!0))));var r=n;return 0===e.length&&1===r.length&&"string"==typeof r[0]?mc(r):Sc(mc(_c(r,e)))}function Oc(n,e,t){if(void 0===t&&(t=nl),!e)throw zl(1,e);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n(e,t,Ec.apply(void 0,Gn([r],i,!1)))};return r.attrs=function(r){return Oc(n,e,Hn(Hn({},t),{attrs:Array.prototype.concat(t.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Oc(n,e,Hn(Hn({},t),r))},r}var Cc=function(n){return Oc(kc,n)},Nc=Cc;function Tc(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];"production"!==Vr.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Ll(Ec.apply(void 0,Gn([n],e,!1))),i=fl(r);return new dc(i,r)}el.forEach((function(n){Nc[n]=Cc(n)})),"production"!==Vr.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var Ac="__sc-".concat(Va,"__");"production"!==Vr.env.NODE_ENV&&"test"!==Vr.env.NODE_ENV&&"undefined"!=typeof window&&(window[Ac]||(window[Ac]=0),1===window[Ac]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[Ac]+=1);var Dc,Pc,Lc,Mc,Ic,Rc=Tc(Dc||(Dc=Zn(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),Fc=Nc.div(Pc||(Pc=Zn(["\n position: relative;\n "],["\n position: relative;\n "]))),jc=Nc.div(Lc||(Lc=Zn(["\n\n width: ",";\n height: ",";\n\n position:absolute;\n\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n "],["\n\n width: ",";\n height: ",";\n\n position:absolute;\n\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n "])),(function(n){return"".concat(n.$size,"px")}),(function(n){return"".concat(n.$size,"px")})),zc=Nc.div(Mc||(Mc=Zn(["\n\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n\n div {\n\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border: 3px solid #fff;\n border-radius: 50%;\n animation: "," 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #fff transparent transparent transparent;\n \n }\n\n div:nth-child(1) {\n animation-delay: -0.45s;\n }\n \n div:nth-child(2) {\n animation-delay: -0.3s;\n }\n \n div:nth-child(3) {\n animation-delay: -0.15s;\n }\n\n "],["\n\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n\n div {\n\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n border: 3px solid #fff;\n border-radius: 50%;\n animation: "," 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #fff transparent transparent transparent;\n \n }\n\n div:nth-child(1) {\n animation-delay: -0.45s;\n }\n \n div:nth-child(2) {\n animation-delay: -0.3s;\n }\n \n div:nth-child(3) {\n animation-delay: -0.15s;\n }\n\n "])),Rc),$c=Nc.div(Ic||(Ic=Zn(["\n\n opacity: ",";\n pointer-events: ",";\n\n"],["\n\n opacity: ",";\n pointer-events: ",";\n\n"])),(function(n){return"".concat(n.$updating?.5:1)}),(function(n){return"".concat(n.$updating?"none":"auto")})),Yc=function(t){var r=t.updating,i=void 0===r||r,o=t.size,s=void 0===o?24:o,a=t.className,l=void 0===a?"":a,u=t.children,d=void 0===u?null:u;c((function(){}),[]);var f,h=function(){return n(jc,{$size:String(s),className:(t="itd-spin-spinner",i&&(t+=" itd-spin-updating"),l&&(t+=" "+l),t),children:e(zc,{children:[n("div",{}),n("div",{}),n("div",{}),n("div",{})]})});var t};return d?e(Fc,{className:(f="itd-spin",i&&(f+=" itd-spin-updating"),l&&(f+=" "+l),f),children:[n($c,{$updating:i,children:d}),i?h():null]}):i?h():null};function Uc(){return Uc=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Uc.apply(null,arguments)}const Vc=Nc.img`
|
|
170
170
|
user-select: none;
|
|
171
171
|
`,Bc=n=>{const{theme:e,brokenImage:t,dummyTeamImage:r}=s(wg),[o,l]=a(!1),[u,d]=a(""),[f,h]=a("itd-image"),[g,m]=a({}),[v,b]=a(!1);c((()=>{if(n.src){if(""===n.src)throw new Error("You must pass the src attribute!");return y(),()=>{}}}),[n.src]),c((()=>{v&&(b(!1),l(!1),y())}),[e]);const y=()=>{const e=Object.assign({},n);e.src=n.src,n.src.indexOf("undefined")>-1&&(e.src=""),n.fallback&&(d(n.fallback),delete e.fallback),m(e)},x=e=>{const t=Object.assign({},n);t.src=""!==u?u:w(),n.brokenWidth&&(t.width=n.brokenWidth,delete t.brokenWidth),n.brokenHeight&&(t.height=n.brokenHeight,delete t.brokenHeight),m(t),b(!0),n.onError&&n.onError()},w=()=>{let i="";return"team"===n.type?(h(f+" itd-image-error itd-image-error-team"),i=r):(h(f+" itd-image-error itd-image-error-broken"),i=t),i.replace("[[THEME]]",e)},k=()=>i.createElement(Vc,Uc({style:{display:o?"null":"none"}},(()=>{const n=Object.assign({},g);return n.brokenWidth&&delete n.brokenWidth,n.brokenHeight&&delete n.brokenHeight,n})(),{onLoad:e=>(e=>{1!==e.target.naturalWidth&&1!==e.target.naturalHeight?(l(!0),n.onLoad&&n.onLoad()):x()})(e),onError:n=>x(),draggable:"false",className:f}));return i.createElement(p,null,i.createElement(k,null))};var Hc,Wc,qc,Gc,Zc,Qc,Kc,Jc,Xc,nu,eu,tu,ru,iu,ou,su,au,lu,cu,uu,du,fu,hu,pu,gu,mu,vu,bu,yu,xu,wu,ku,_u,Su,Eu,Ou,Cu=h(Bc),Nu=function(n,e){return"space-between"===e?Ec(pu||(pu=Zn(["\n margin-right: ",";\n "],["\n margin-right: ",";\n "])),"-7px"):Ec("left"===n?gu||(gu=Zn(["\n margin-right: ",";\n "],["\n margin-right: ",";\n "])):mu||(mu=Zn(["\n margin-left: ",";\n "],["\n margin-left: ",";\n "])),"7px")},Tu=Nc.div(vu||(vu=Zn(["\n\n color: #ffffff;\n \n ","\n \n"],["\n\n color: #ffffff;\n \n ","\n \n"])),(function(n){var e=n.$useIconPadding,t=n.$contentPosition,r=n.$justify;if(e)return Nu(t,r)})),Au=Nc(Tu)(bu||(bu=Zn(["\n display : flex;\n align-items : center;\n justify-content : center;\n\n div {\n display : flex;\n align-items : center;\n justify-content : center;\n }\n"],["\n display : flex;\n align-items : center;\n justify-content : center;\n\n div {\n display : flex;\n align-items : center;\n justify-content : center;\n }\n"]))),Du=Nc.div(yu||(yu=Zn(["\n\n ","\n \n"],["\n\n ","\n \n"])),(function(n){var e=n.$singleIcon,t=n.$contentPosition,r=n.$justify;if(!e)return Nu(t,r)})),Pu=Nc(Cu)(xu||(xu=Zn(["\n\n width : 20px;\n height : 20px;\n\n ","\n\n"],["\n\n width : 20px;\n height : 20px;\n\n ","\n\n"])),(function(n){var e=n.$contentPosition,t=n.$justify;return Nu(e,t)})),Lu=Nc.span(ku||(ku=Zn(["\n\n display: grid;\n grid-auto-flow: column;\n grid-gap: 5px;\n \n ","\n\n"],["\n\n display: grid;\n grid-auto-flow: column;\n grid-gap: 5px;\n \n ","\n\n"])),(function(n){return"true"===n.$loading&&Ec(wu||(wu=Zn(["\n opacity: 0;\n "],["\n opacity: 0;\n "])))})),Mu=Ec(_u||(_u=Zn(["\n\n display: flex;\n align-items: center;\n position: relative;\n cursor: pointer;\n justify-content: ",";\n border-radius: ",";\n \n transition-property: background-color, margin, border-color, color;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n span, div.icon {\n \n transition-property: background-color, border-color, color;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n\n /* ------------------------ */\n // STRECTH\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SIZE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // CIRCLE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // ICON\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // SVG\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // DEFAULT\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // GHOST\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // SOLID\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // FILLED\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // OUTLINE\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // LINK\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // PRIMARY\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SECONDARY\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // GENERIC\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REQUEST\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // APPROVE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REJECT\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // PENDING\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REQUESTED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SELECTED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // DISABLED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // LOADING\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // FOCUS VISIBLE\n /* ------------------------ */\n ","\n\n"],["\n\n display: flex;\n align-items: center;\n position: relative;\n cursor: pointer;\n justify-content: ",";\n border-radius: ",";\n \n transition-property: background-color, margin, border-color, color;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n span, div.icon {\n \n transition-property: background-color, border-color, color;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n\n /* ------------------------ */\n // STRECTH\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SIZE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // CIRCLE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // ICON\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // SVG\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // DEFAULT\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // GHOST\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // SOLID\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // FILLED\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // OUTLINE\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // LINK\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // PRIMARY\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SECONDARY\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // GENERIC\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REQUEST\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // APPROVE\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REJECT\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // PENDING\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // REQUESTED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // SELECTED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // DISABLED\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // LOADING\n /* ------------------------ */\n ","\n \n /* ------------------------ */\n // FOCUS VISIBLE\n /* ------------------------ */\n ","\n\n"])),(function(n){return n.$justify}),"5px",(function(){return Ec(Jc||(Jc=Zn(["\n &.itd-button-stretch {\n width: 100%;\n }\n &:not(&.itd-button-stretch) {\n width: max-content;\n }\n "],["\n &.itd-button-stretch {\n width: 100%;\n }\n &:not(&.itd-button-stretch) {\n width: max-content;\n }\n "])))}),(function(){return Ec(Gc||(Gc=Zn(["\n /* X-SMALL */\n &.itd-button-xs {\n\n min-width : 28px;\n height : 28px;\n \n .itd-spin-spinner {\n >div {\n width : 12px;\n height : 12px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 1px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 10px 10px;\n }\n\n span {\n font-size : 12px;\n line-height : 12px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 12px;\n height : 12px;\n }\n\n }\n\n /* SMALL */\n &.itd-button-sm {\n\n min-width : 34px;\n height : 34px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 13px;\n line-height : 13px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px;\n }\n\n }\n\n /* MEDIUM */\n &.itd-button-md {\n\n min-width : 38px;\n height : 38px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 13px;\n line-height : 13px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px;\n }\n\n }\n\n /* LARGE */\n &.itd-button-lg {\n\n min-width : 44px;\n height : 44px;\n \n .itd-spin-spinner {\n >div {\n width : 18px;\n height : 18px;\n }\n >div>div {\n border-color : #FFFFFF transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 20px;\n }\n\n span {\n font-size : 14px;\n line-height : 14px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 18px;\n height : 18px;\n }\n\n }\n\n /* X-LARGE */\n &.itd-button-xlg {\n\n min-width : 46px;\n height : 46px;\n \n .itd-spin-spinner {\n >div {\n width : 20px;\n height : 20px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 3px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 20px;\n }\n\n span {\n font-size : 15px;\n line-height : 15px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 20px;\n height : 20px;\n }\n\n }\n\n /* DEFAULT */\n &.itd-button-df {\n\n min-width : 40px;\n height : 40px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #FFFFFF transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 14px;\n line-height : 14px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px\n }\n\n }\n "],["\n /* X-SMALL */\n &.itd-button-xs {\n\n min-width : 28px;\n height : 28px;\n \n .itd-spin-spinner {\n >div {\n width : 12px;\n height : 12px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 1px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 10px 10px;\n }\n\n span {\n font-size : 12px;\n line-height : 12px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 12px;\n height : 12px;\n }\n\n }\n\n /* SMALL */\n &.itd-button-sm {\n\n min-width : 34px;\n height : 34px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 13px;\n line-height : 13px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px;\n }\n\n }\n\n /* MEDIUM */\n &.itd-button-md {\n\n min-width : 38px;\n height : 38px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 13px;\n line-height : 13px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px;\n }\n\n }\n\n /* LARGE */\n &.itd-button-lg {\n\n min-width : 44px;\n height : 44px;\n \n .itd-spin-spinner {\n >div {\n width : 18px;\n height : 18px;\n }\n >div>div {\n border-color : #FFFFFF transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 20px;\n }\n\n span {\n font-size : 14px;\n line-height : 14px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 18px;\n height : 18px;\n }\n\n }\n\n /* X-LARGE */\n &.itd-button-xlg {\n\n min-width : 46px;\n height : 46px;\n \n .itd-spin-spinner {\n >div {\n width : 20px;\n height : 20px;\n }\n >div>div {\n border-color : #ffffff transparent transparent;\n border-width : 3px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 20px;\n }\n\n span {\n font-size : 15px;\n line-height : 15px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 20px;\n height : 20px;\n }\n\n }\n\n /* DEFAULT */\n &.itd-button-df {\n\n min-width : 40px;\n height : 40px;\n \n .itd-spin-spinner {\n >div {\n width : 16px;\n height : 16px;\n }\n >div>div {\n border-color : #FFFFFF transparent transparent;\n border-width : 2px;\n }\n }\n\n &:not(.itd-button-has-icon) {\n padding : 0 15px;\n }\n\n span {\n font-size : 14px;\n line-height : 14px;\n font-weight : 500;\n }\n\n .icon svg {\n width : 16px;\n height : 16px\n }\n\n }\n "])))}),(function(){return Ec(Qc||(Qc=Zn(["\n &.itd-button-circle {\n\n border-radius: 100%;\n\n /* X-SMALL */\n &.itd-button-xs {\n width: 24px;\n }\n\n /* SMALL */\n &.itd-button-sm {\n width: 28px;\n }\n\n /* MEDIUM */\n &.itd-button-md {\n width: 32px;\n }\n\n /* LARGE */\n &.itd-button-lg {\n width: 44px;\n }\n\n /* X-LARGE */\n &.itd-button-xlg {\n width: 46px;\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg)\n {\n width: 40px;\n }\n\n }\n "],["\n &.itd-button-circle {\n\n border-radius: 100%;\n\n /* X-SMALL */\n &.itd-button-xs {\n width: 24px;\n }\n\n /* SMALL */\n &.itd-button-sm {\n width: 28px;\n }\n\n /* MEDIUM */\n &.itd-button-md {\n width: 32px;\n }\n\n /* LARGE */\n &.itd-button-lg {\n width: 44px;\n }\n\n /* X-LARGE */\n &.itd-button-xlg {\n width: 46px;\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg)\n {\n width: 40px;\n }\n\n }\n "])))}),(function(){return function(n){return Ec(Zc||(Zc=Zn(["\n &.itd-icon {\n \n padding: 0 12px 0 12px;\n\n /* X-SMALL */\n &.itd-button-xs {\n "," { font-size: 10px; }\n }\n\n /* SMALL */\n &.itd-button-sm {\n "," { font-size: 16px; }\n }\n\n /* MEDIUM */\n &.itd-button-md {\n "," { font-size: 18px; }\n }\n\n /* LARGE */\n &.itd-button-lg {\n "," { font-size: 26px; }\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg) \n {\n "," { font-size: 20px; }\n }\n \n }\n "],["\n &.itd-icon {\n \n padding: 0 12px 0 12px;\n\n /* X-SMALL */\n &.itd-button-xs {\n "," { font-size: 10px; }\n }\n\n /* SMALL */\n &.itd-button-sm {\n "," { font-size: 16px; }\n }\n\n /* MEDIUM */\n &.itd-button-md {\n "," { font-size: 18px; }\n }\n\n /* LARGE */\n &.itd-button-lg {\n "," { font-size: 26px; }\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg) \n {\n "," { font-size: 20px; }\n }\n \n }\n "])),n,n,n,n,n)}(Tu)}),(function(){return Ec(Kc||(Kc=Zn(["\n &.itd-svg {\n\n padding: 0 12px 0 12px;\n svg { fill: #ffffff; }\n\n /* X-SMALL */\n &.itd-button-xs {\n svg { width: 12px; }\n }\n\n /* SMALL */\n &.itd-button-sm {\n svg { width: 14px; }\n }\n\n /* MEDIUM */\n &.itd-button-md {\n svg { width: 16px; }\n }\n\n /* LARGE */\n &.itd-button-lg {\n svg { width: 20px; }\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg) \n {\n svg { width: 16px; }\n }\n\n }\n "],["\n &.itd-svg {\n\n padding: 0 12px 0 12px;\n svg { fill: #ffffff; }\n\n /* X-SMALL */\n &.itd-button-xs {\n svg { width: 12px; }\n }\n\n /* SMALL */\n &.itd-button-sm {\n svg { width: 14px; }\n }\n\n /* MEDIUM */\n &.itd-button-md {\n svg { width: 16px; }\n }\n\n /* LARGE */\n &.itd-button-lg {\n svg { width: 20px; }\n }\n\n /* DEFAULT */\n &:not(&.itd-button-xs):not(&.itd-button-sm):not(&.itd-button-md):not(&.itd-button-lg):not(&.itd-button-xlg) \n {\n svg { width: 16px; }\n }\n\n }\n "])))}),(function(){return Ec(Hc||(Hc=Zn(["\n\n &.itd-button-default {\n\n background-color: #1b84ff;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #ffffff;\n fill: #ffffff;\n }\n\n &:hover {\n background-color: #056ee9;\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n \n span, div.icon, svg path {\n color: #ffffff;\n fill: #ffffff;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #FFFFFF transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-default {\n\n background-color: #1b84ff;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #ffffff;\n fill: #ffffff;\n }\n\n &:hover {\n background-color: #056ee9;\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n \n span, div.icon, svg path {\n color: #ffffff;\n fill: #ffffff;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #FFFFFF transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(Xc||(Xc=Zn(["\n\n &.itd-button-ghost {\n\n background-color: transparent;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #252f4a;\n }\n\n &:hover {\n \n background-color: #f9f9f9;\n\n span, div.icon {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n span, div.icon {\n color: #0000004D;\n fill: #0000004D;\n }\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-ghost {\n\n background-color: transparent;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #252f4a;\n }\n\n &:hover {\n \n background-color: #f9f9f9;\n\n span, div.icon {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n span, div.icon {\n color: #0000004D;\n fill: #0000004D;\n }\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(Wc||(Wc=Zn(["\n\n &.itd-button-solid {\n\n background-color: #f9f9f9;\n border: transparent;\n\n transition-property: background-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n svg path {\n transition-property: fill;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n }\n\n span, div.icon, svg path {\n color: #071437;\n fill: #071437;\n }\n\n &:hover {\n background-color: #f1f1f4;\n span, div.icon, svg path {\n color: #1b84ff;\n fill: #1b84ff;\n }\n }\n\n &.itd-button-selected {\n \n border: transparent;\n\n span, div.icon, svg path {\n color: #3598FE;\n fill: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n\n background-color: #f9f9f9;\n border: transparent;\n outline-offset: -1px;\n\n span, div.icon, svg path {\n color: #07143790;\n fill: #07143790;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-solid {\n\n background-color: #f9f9f9;\n border: transparent;\n\n transition-property: background-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n svg path {\n transition-property: fill;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n }\n\n span, div.icon, svg path {\n color: #071437;\n fill: #071437;\n }\n\n &:hover {\n background-color: #f1f1f4;\n span, div.icon, svg path {\n color: #1b84ff;\n fill: #1b84ff;\n }\n }\n\n &.itd-button-selected {\n \n border: transparent;\n\n span, div.icon, svg path {\n color: #3598FE;\n fill: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n\n background-color: #f9f9f9;\n border: transparent;\n outline-offset: -1px;\n\n span, div.icon, svg path {\n color: #07143790;\n fill: #07143790;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(eu||(eu=Zn(["\n\n &.itd-button-filled {\n\n background-color: #e9f3ff;\n border: transparent;\n\n transition-property: background-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n svg path {\n transition-property: fill;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n }\n\n span, div.icon, svg path {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n &:hover {\n background-color: #1b84ff;\n span, div.icon, svg path {\n color: #ffffff;\n fill: #ffffff;\n }\n }\n\n &.itd-button-selected {\n \n border: transparent;\n\n span, div.icon, svg path {\n color: #3598FE;\n fill: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n\n background-color: #f9f9f9;\n border: transparent;\n outline-offset: -1px;\n\n span, div.icon, svg path {\n color: #07143790;\n fill: #07143790;\n }\n \n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #1b84ff transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-filled {\n\n background-color: #e9f3ff;\n border: transparent;\n\n transition-property: background-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n svg path {\n transition-property: fill;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n }\n\n span, div.icon, svg path {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n &:hover {\n background-color: #1b84ff;\n span, div.icon, svg path {\n color: #ffffff;\n fill: #ffffff;\n }\n }\n\n &.itd-button-selected {\n \n border: transparent;\n\n span, div.icon, svg path {\n color: #3598FE;\n fill: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n\n background-color: #f9f9f9;\n border: transparent;\n outline-offset: -1px;\n\n span, div.icon, svg path {\n color: #07143790;\n fill: #07143790;\n }\n \n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #1b84ff transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(qc||(qc=Zn(["\n\n &.itd-button-outline {\n\n background-color: transparent;\n border: 1px solid #dbdfe9;\n\n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n\n &:hover {\n \n background-color: #f9f9f9;\n border-color: #dbdfe9;\n\n span, div.icon {\n //color: #1b84ff;\n //fill: #1b84ff;\n }\n\n }\n\n &:not([disabled]).itd-button-selected {\n \n outline: 2px solid #3598FE;\n outline-offset: -1px;\n\n span, div.icon {\n color: #3598FE;\n fill: #3598FE;\n }\n\n }\n\n &[disabled] {\n \n border: 1px solid #dbdfe9;\n \n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-outline {\n\n background-color: transparent;\n border: 1px solid #dbdfe9;\n\n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n\n &:hover {\n \n background-color: #f9f9f9;\n border-color: #dbdfe9;\n\n span, div.icon {\n //color: #1b84ff;\n //fill: #1b84ff;\n }\n\n }\n\n &:not([disabled]).itd-button-selected {\n \n outline: 2px solid #3598FE;\n outline-offset: -1px;\n\n span, div.icon {\n color: #3598FE;\n fill: #3598FE;\n }\n\n }\n\n &[disabled] {\n \n border: 1px solid #dbdfe9;\n \n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(nu||(nu=Zn(["\n\n &.itd-button-link {\n\n background-color: transparent;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #071437;\n }\n\n &:hover {\n\n span, div.icon {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "],["\n\n &.itd-button-link {\n\n background-color: transparent;\n border: 1px solid #00000000;\n\n span, div.icon {\n color: #071437;\n }\n\n &:hover {\n\n span, div.icon {\n color: #1b84ff;\n fill: #1b84ff;\n }\n\n }\n\n &.itd-button-selected {\n \n border: 2px solid #3598FE;\n\n span {\n color: #3598FE;\n font-weight: 600;\n margin: -1px;\n }\n\n }\n\n &[disabled] {\n span, div.icon {\n color: #071437;\n fill: #071437;\n }\n }\n\n .itd-spin-spinner {\n >div>div {\n border-color: #071437 transparent transparent;\n }\n }\n \n }\n "])))}),(function(){return Ec(tu||(tu=Zn(["\n &.itd-button-primary {\n background: linear-gradient(-45deg,#1d74ce,#3598fe);\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: linear-gradient(-45deg,#197ADD,#6CB5FF);\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(-45deg,#6CB5FF,#197ADD);\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: linear-gradient(-45deg,#477db4,#215283);\n span, div.icon {\n color: #ffffff4D;\n }\n }\n }\n "],["\n &.itd-button-primary {\n background: linear-gradient(-45deg,#1d74ce,#3598fe);\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: linear-gradient(-45deg,#197ADD,#6CB5FF);\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(-45deg,#6CB5FF,#197ADD);\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: linear-gradient(-45deg,#477db4,#215283);\n span, div.icon {\n color: #ffffff4D;\n }\n }\n }\n "])))}),(function(){return Ec(ru||(ru=Zn(["\n &.itd-button-secondary {\n background: linear-gradient(-45deg,#ebebeb,#ffffff);\n span, div.icon {\n color: #000000;\n }\n &:hover {\n background: linear-gradient(-45deg,#CDCDCD,#ebebeb);\n span, div.icon {\n color: #000000;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(-45deg,#d8d8d8,#e2e2e2);\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #000000;\n }\n }\n &[disabled] {\n background: linear-gradient(-45deg,#CDCDCD,#A7A7A7);\n span, div.icon {\n color: rgb(0, 0, 0, 30);\n }\n }\n }\n "],["\n &.itd-button-secondary {\n background: linear-gradient(-45deg,#ebebeb,#ffffff);\n span, div.icon {\n color: #000000;\n }\n &:hover {\n background: linear-gradient(-45deg,#CDCDCD,#ebebeb);\n span, div.icon {\n color: #000000;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(-45deg,#d8d8d8,#e2e2e2);\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #000000;\n }\n }\n &[disabled] {\n background: linear-gradient(-45deg,#CDCDCD,#A7A7A7);\n span, div.icon {\n color: rgb(0, 0, 0, 30);\n }\n }\n }\n "])))}),(function(){return Ec(iu||(iu=Zn([" \n &.itd-button-generic {\n background-color: #1D2649;\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: #3396fb;\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: #3396fb;\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: #151B33;\n span, div.icon {\n color: rgb(255, 255, 255, 30);\n }\n }\n }\n "],[" \n &.itd-button-generic {\n background-color: #1D2649;\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: #3396fb;\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: #3396fb;\n border: 2px solid #6CB5FF;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: #151B33;\n span, div.icon {\n color: rgb(255, 255, 255, 30);\n }\n }\n }\n "])))}),(function(){return Ec(ou||(ou=Zn(["\n &.itd-button-request {\n background: linear-gradient(90deg, #0BE881 0%, #02B964 99%);\n span, div.icon {\n color: #1D2649;\n }\n &:hover {\n background: linear-gradient(90deg, #16E886 0%, #0DD578 99%);\n span, div.icon {\n color: #1D2649;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #02B964 0%, #0BE881 99%);\n border: 2px solid #0AE37E;\n span, div.icon {\n color: #1D2649;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #05B663 0%, #028246 97%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "],["\n &.itd-button-request {\n background: linear-gradient(90deg, #0BE881 0%, #02B964 99%);\n span, div.icon {\n color: #1D2649;\n }\n &:hover {\n background: linear-gradient(90deg, #16E886 0%, #0DD578 99%);\n span, div.icon {\n color: #1D2649;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #02B964 0%, #0BE881 99%);\n border: 2px solid #0AE37E;\n span, div.icon {\n color: #1D2649;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #05B663 0%, #028246 97%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "])))}),(function(){return Ec(su||(su=Zn(["\n &.itd-button-approve {\n background: linear-gradient(90deg, #FFB142 0%, #D88A1C 100%);\n span, div.icon {\n color: #1D2649;\n }\n &:hover {\n background: linear-gradient(90deg, #FFC067 0%, #FFB346 100%);\n span, div.icon {\n color: #1D2649;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #D88A1C 0%, #FFB142 100%);\n border: 2px solid #FAAC3D;\n span, div.icon {\n color: #1D2649;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #C88930 0%, #A86A13 98%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "],["\n &.itd-button-approve {\n background: linear-gradient(90deg, #FFB142 0%, #D88A1C 100%);\n span, div.icon {\n color: #1D2649;\n }\n &:hover {\n background: linear-gradient(90deg, #FFC067 0%, #FFB346 100%);\n span, div.icon {\n color: #1D2649;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #D88A1C 0%, #FFB142 100%);\n border: 2px solid #FAAC3D;\n span, div.icon {\n color: #1D2649;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #C88930 0%, #A86A13 98%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "])))}),(function(){return Ec(au||(au=Zn(["\n &.itd-button-reject {\n background: linear-gradient(90deg, #B33939 0%, #971B1B 100%);\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: linear-gradient(90deg, #DC5050 0%, #C52D2D 100%);\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #971B1B 0%, #B33939 100%);\n border: 2px solid #AD3232;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #872626 0%, #731010 100%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "],["\n &.itd-button-reject {\n background: linear-gradient(90deg, #B33939 0%, #971B1B 100%);\n span, div.icon {\n color: #ffffff;\n }\n &:hover {\n background: linear-gradient(90deg, #DC5050 0%, #C52D2D 100%);\n span, div.icon {\n color: #ffffff;\n }\n }\n &.itd-button-selected {\n background: linear-gradient(90deg, #971B1B 0%, #B33939 100%);\n border: 2px solid #AD3232;\n span, div.icon {\n color: #ffffff;\n }\n }\n &[disabled] {\n background: linear-gradient(90deg, #872626 0%, #731010 100%);\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "])))}),(function(){return Ec(lu||(lu=Zn(["\n &.itd-button-pending {\n cursor: default;\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n &:hover {\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n }\n &.itd-button-selected {\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n }\n &[disabled] {\n background-color: #1F2952;\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "],["\n &.itd-button-pending {\n cursor: default;\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n &:hover {\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n }\n &.itd-button-selected {\n background-color: #1F2952;\n span, div.icon {\n color: #ffffff99;\n }\n }\n &[disabled] {\n background-color: #1F2952;\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "])))}),(function(){return Ec(cu||(cu=Zn(["\n &.itd-button-requested {\n cursor: default;\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n &:hover {\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n }\n &.itd-button-selected {\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n }\n &[disabled] {\n background-color: #1F295280;\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "],["\n &.itd-button-requested {\n cursor: default;\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n &:hover {\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n }\n &.itd-button-selected {\n background-color: #1F295280;\n span, div.icon {\n color: #ffffff4D;\n }\n }\n &[disabled] {\n background-color: #1F295280;\n span, div.icon {\n color: rgb(29, 38, 73, 30);\n }\n }\n }\n "])))}),(function(){return Ec(uu||(uu=Zn(["\n &.itd-button-selected {\n\n }\n "],["\n &.itd-button-selected {\n\n }\n "])))}),(function(){return Ec(du||(du=Zn(["\n &[disabled] {\n pointer-events: none;\n filter: grayscale(100%);\n opacity: .5;\n } \n "],["\n &[disabled] {\n pointer-events: none;\n filter: grayscale(100%);\n opacity: .5;\n } \n "])))}),(function(){return Ec(fu||(fu=Zn(["\n &.itd-button-loading {\n pointer-events: none;\n } \n "],["\n &.itd-button-loading {\n pointer-events: none;\n } \n "])))}),(function(){return Ec(hu||(hu=Zn(["\n &:focus-visible {\n outline: 2px solid #1b84ff;\n outline-offset: 1px;\n }\n "],["\n &:focus-visible {\n outline: 2px solid #1b84ff;\n outline-offset: 1px;\n }\n "])))})),Iu=Nc.button(Su||(Su=Zn(["\n ","\n border: none;\n background: none;\n padding: 0;\n"],["\n ","\n border: none;\n background: none;\n padding: 0;\n"])),Mu),Ru=Nc.a(Eu||(Eu=Zn(["\n ","\n"],["\n ","\n"])),Mu),Fu=Nc.a(Ou||(Ou=Zn(["\n ","\n"],["\n ","\n"])),Mu);function ju(n){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n)}var zu,$u,Yu,Uu,Vu,Bu,Hu,Wu,qu,Gu,Zu,Qu,Ku,Ju,Xu,nd,ed,td,rd=function(r){var i=r.id,o=void 0===i?Oe("button-"):i,s=r.disabled,a=void 0!==s&&s,c=r.loading,u=void 0!==c&&c,d=r.selected,f=void 0!==d&&d,h=r.circle,p=void 0!==h&&h,m=r.strecth,v=void 0!==m&&m,b=r.justify,y=void 0===b?"center":b,x=r.contentPosition,w=void 0===x?"left":x,k=r.type,_=void 0===k?"button":k,S=r.variant,E=void 0===S?"default":S,C=r.size,N=void 0===C?"default":C,T=r.state,A=void 0===T?null:T,D=r.icon,L=void 0===D?null:D,M=r.href,I=void 0===M?"":M,R=r.target,F=void 0===R?"_self":R,j=r.className,z=void 0===j?"":j,$=r.children,Y=void 0===$?null:$,U=r.onClick,V=void 0===U?null:U,B=l(null),H=function(){return u||!L?null:g(L)?n(Au,{className:"icon itd-element",$contentPosition:w,$justify:y,$useIconPadding:null!==Y&&""!==Y,children:L}):"string"==typeof L&&ju(L)?n(Pu,{className:"icon itd-image",src:L,height:Z(),brokenHeight:Z(),$contentPosition:null!==Y&&""!==Y,$justify:y}):"string"==typeof L?n(Tu,{className:"icon itd-icon "+L,$contentPosition:w,$justify:y,$useIconPadding:null!==Y&&""!==Y}):L instanceof SVGElement?n(Du,{className:"icon itd-svg",$singleIcon:!Y,$contentPosition:w,$justify:y,children:n(O,{src:L.toString()})}):null},W=function(){return e(t,{children:["left"===w?H():null,u?n(Yc,{}):null,Y?n(Lu,{$loading:u?"true":"false",children:Y}):null,"right"===w?H():null]})},q=function(){return g(L)?"element":"string"==typeof L&&ju(L)?"image":"string"==typeof L?"icon":L instanceof SVGElement?"svg":""},G=function(){return"x-small"===N?"xs":"small"===N?"sm":"medium"===N?"md":"default"===N?"df":"large"===N?"lg":"x-large"===N?"xlg":"df"},Z=function(){return"x-small"===N?"14":"small"===N?"16":"medium"===N?"18":"default"===N?"20":"large"===N?"22":"x-large"===N?"24":"20"},Q=function(){var n={id:o,$loading:"false",$justify:y,$size:G(),disabled:!1};return o&&(n.id=o),u&&(n.$loading="true"),a&&(n.disabled=!0),n},K=function(){var n="itd-button";return n+=" itd-button-"+E,n+=" itd-button-"+G(),n+=" itd-button-"+_,null===Y&&(n+=" itd-button-has-icon"),"statable"===E&&A&&(n+=" itd-button-"+A),"custom"===E&&A&&(n+=" itd-button-"+A),f&&(n+=" itd-button-selected"),v&&(n+=" itd-button-stretch"),p&&(n+=" itd-button-circle"),u&&(n+=" itd-button-loading"),"element"===q()&&(n+=" itd-element"),"svg"===q()&&(n+=" itd-svg"),"icon"===q()&&(n+=" itd-icon"),"image"===q()&&(n+=" itd-image"),""!==z&&(n+=" "+z),n},J=function(n){var e;null===(e=B.current)||void 0===e||e.blur(),u||V&&V(n)},X=function(e){return n(Iu,Hn({className:K(),type:e},Q(),{children:W()}))};return"submit"===_?X("submit"):"reset"===_?X("reset"):""!==I?n(Ru,Hn({className:K(),as:P,to:I,target:F},Q(),{children:e(t,{children:[H(),n("span",{children:Y})]})})):"link"===E?n(Fu,Hn({className:K(),onClick:J},Q(),{children:W()})):n(Iu,Hn({className:K(),onClick:J,type:"button",ref:B},Q(),{children:W()}))},id=Nc.div(zu||(zu=Zn(["\n \n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n \n transform-origin: 50% 50%;\n transform-box: fill-box;\n transition-timing-function: cubic-bezier(0,1.25);\n\n opacity: 1;\n\n .itd-spin-spinner {\n >div>div {\n border-color: #000000 transparent transparent;\n }\n }\n\n"],["\n \n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n \n transform-origin: 50% 50%;\n transform-box: fill-box;\n transition-timing-function: cubic-bezier(0,1.25);\n\n opacity: 1;\n\n .itd-spin-spinner {\n >div>div {\n border-color: #000000 transparent transparent;\n }\n }\n\n"]))),od=Nc.div($u||($u=Zn(["\n \n overflow-y: auto;\n width: 100vw;\n height: 100vh;\n display: flex;\n padding: 50px;\n\n"],["\n \n overflow-y: auto;\n width: 100vw;\n height: 100vh;\n display: flex;\n padding: 50px;\n\n"]))),sd=Nc.div(Yu||(Yu=Zn(["\n\n margin: auto;\n height: max-content;\n position: relative;\n overflow: hidden;\n\n background: #fff;\n min-width: 400px;\n width: ",";\n border-radius: 6px;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);\n\n"],["\n\n margin: auto;\n height: max-content;\n position: relative;\n overflow: hidden;\n\n background: #fff;\n min-width: 400px;\n width: ",";\n border-radius: 6px;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);\n\n"])),(function(n){return n.$width})),ad=Nc.div(Uu||(Uu=Zn(["\n\n"],["\n\n"]))),ld=Nc.div(Vu||(Vu=Zn(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.$padding})),cd=Nc.div(Bu||(Bu=Zn(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.$padding})),ud=Nc.div(Hu||(Hu=Zn(["\n\n transition-property: all;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n padding: ",";\n\n"],["\n\n transition-property: all;\n transition-duration: 800ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n padding: ",";\n\n"])),(function(n){return n.$padding})),dd=Nc.div(Wu||(Wu=Zn(["\n\n height: 50px;\n background-color: #f1f1f1;\n color: #071437;\n padding: 10px 20px;\n\n display: flex;\n align-items: center;\n font-size: 14px;\n font-weight: 500;\n\n"],["\n\n height: 50px;\n background-color: #f1f1f1;\n color: #071437;\n padding: 10px 20px;\n\n display: flex;\n align-items: center;\n font-size: 14px;\n font-weight: 500;\n\n"]))),fd=Nc.div(qu||(qu=Zn(["\n\n border-top: 1px solid #00000010;\n\n height: 65px;\n padding: 15px 20px;\n\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n\n"],["\n\n border-top: 1px solid #00000010;\n\n height: 65px;\n padding: 15px 20px;\n\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n\n"]))),hd=Nc.div(Gu||(Gu=Zn(["\n \n cursor: pointer;\n position: absolute;\n right: 10px;\n top: 12px;\n\n\n"],["\n \n cursor: pointer;\n position: absolute;\n right: 10px;\n top: 12px;\n\n\n"]))),pd=Nc.div(Zu||(Zu=Zn(["\n top: 55%;\n opacity: 0;\n"],["\n top: 55%;\n opacity: 0;\n"]))),gd=Nc.div(Qu||(Qu=Zn(["\n top: 50%;\n opacity: 1;\n transition: opacity 300ms, top 300ms;\n transition-delay: .3s;\n"],["\n top: 50%;\n opacity: 1;\n transition: opacity 300ms, top 300ms;\n transition-delay: .3s;\n"]))),md=Nc.div(Ku||(Ku=Zn(["\n top: 50%;\n opacity: 1;\n"],["\n top: 50%;\n opacity: 1;\n"]))),vd=Nc.div(Ju||(Ju=Zn(["\n top: 55%;\n opacity: 0;\n transition: opacity 300ms, top 300ms;\n"],["\n top: 55%;\n opacity: 0;\n transition: opacity 300ms, top 300ms;\n"]))),bd=function(t){var r=l(null),i=l(null),o=l(null),s=a(!0),u=s[0],d=s[1],f=a(!1),h=f[0],p=f[1],g=a(!1),v=g[0],b=g[1],y=a(!1),x=y[0],w=y[1],k=a(!1),_=k[0],S=k[1],C=a(""),N=C[0],T=C[1],A=a(""),D=A[0],P=A[1],L=a(""),M=L[0],I=L[1],R=a(""),F=R[0],j=R[1];Ps(pd,(function(n){return T(n)})),Ps(gd,(function(n){return P(n)})),Ps(md,(function(n){return I(n)})),Ps(vd,(function(n){return j(n)})),c((function(){t.isActive&&(p(u),u||t.onRemoveModal&&t.onRemoveModal(String(t.id)))}),[u]),Ls(i,(function(){!t.closeOnClickOutside||v||_||t.isActive&&(t.onModalEvent($n.OUTSIDE_CLICK,t.id?t.id:""),Z(),p(!1))})),Ms((function(){t.preventESC||v||_||t.isActive&&(t.onModalEvent($n.ESC_CLICK,t.id?t.id:""),Z(),p(!1))}));var z,$=function(){t.isActive&&p(!1)},Y=function(n){t.isActive&&t.onShowModal(n)},U=function(n){w(!n)},V=function(n){b(n)},B=function(n){S(n)},H=function(){t.onModalEvent($n.CLOSE_CLICK,t.id?t.id:""),Z(),p(!1)},W=function(){t.isActive&&(t.onModalEvent($n.OK_CLICK,t.id?t.id:""),G()&&p(!1))},q=function(){t.isActive&&(t.onModalEvent($n.CANCEL_CLICK,t.id?t.id:""),Z()&&p(!1))},G=function(){if(!r.current)return!t.onOk||t.onOk();r.current.onClickOK&&r.current.onClickOK()},Z=function(){if(!r.current)return!t.onCancel||t.onCancel();r.current.onClickCancel&&r.current.onClickCancel()},Q=function(n){if(n.content&&Object(n.content).props&&Object.keys(Object(n.content).props).length>0)return{};var e={hideCurrentModal:$,showAnotherModal:Y,changeButtonsState:U,changeLoadingState:V,changeInnerLoadingState:B,modalProps:Hn({},n.customProps),context:Hn({},n.context)};return n.checkAutoRef&&n.content.type.hasOwnProperty("$$typeof")&&"Symbol(react.forward_ref)"===n.content.type.$$typeof.toString()&&(e.ref=r),n.useRef&&(e.ref=r),e},K=function(){if(t.content)return n("div",{className:"itd-modal-middle-content-body",children:m(t.content,Q(t))})},J=function(){if(t.addContentBefore)return n(ld,{className:"itd-modal-middle-content-before",$padding:t.beforeContentPadding,children:t.addContentBefore})},X=function(){if(t.addContentAfter)return n(cd,{className:"itd-modal-middle-content-after",$padding:t.afterContentPadding,children:t.addContentAfter})};return u?n("div",{className:"itd-modal-container",children:n(E,{in:h,timeout:600,classNames:{enter:N,enterActive:D,exit:M,exitActive:F},nodeRef:o,onEntered:function(){t.onModalEvent($n.ENTERED,t.id?t.id:"")},onExited:function(){d(!1),t.onModalEvent($n.EXITED,t.id?t.id:"")},unmountOnExit:!0,children:n(id,{className:"itd-modal-content-wrapper",ref:o,children:n(od,{className:"itd-modal-inner-wrapper",children:n(sd,{className:"itd-modal-body",$width:(z="400px",z?"string"==typeof t.width?z=t.width:"number"==typeof t.width&&(z=t.width+"px"):z="400px",z),ref:i,children:n(ad,{className:"itd-modal-content",children:e(Yc,{updating:_,children:[!1!==t.showCloseButton&&n(hd,{className:"itd-modal-close-button",children:n(rd,{size:"x-small",variant:"ghost",onClick:H,icon:n(O,{src:"data:image/svg+xml,%3csvg width = '10px' height = '10px' viewBox = '0 0 329.26933 329' xmlns = 'http://www.w3.org/2000/svg'%3e %3cpath d='m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0'%3e%3c/path%3e%3c/svg%3e"}),disabled:v||_||!t.isActive})}),t.title?n(dd,{className:"itd-modal-header",children:t.title}):null,J(),n(ud,{className:"itd-modal-middle-content",$padding:t.contentPadding,children:K()}),X(),t.showOkButton||t.showCancelButton?e(fd,{className:"itd-modal-footer",children:[t.showCancelButton&&n(rd,Hn({variant:"solid",size:"small",type:"button",onClick:q,disabled:v||_||!t.isActive||x},t.cancelButtonProps,{children:t.cancelButtonText})),t.showOkButton&&n(rd,Hn({variant:"default",size:"small",type:"button",onClick:W,loading:v,disabled:_||!t.isActive||x},t.okButtonProps,{children:t.okButtonText}))]}):null]})})})})})})}):null},yd=Nc.div(Xu||(Xu=Zn(["\n \n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n\n"],["\n \n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n\n"]))),xd=Nc.div(td||(td=Zn(["\n \n background: #000000BF;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n transition: opacity .25s ease-out;\n opacity: 0;\n\n ","\n\n "],["\n \n background: #000000BF;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n transition: opacity .25s ease-out;\n opacity: 0;\n\n ","\n\n "])),(function(n){return Ec(n.$show?nd||(nd=Zn(["\n opacity: 1;\n "],["\n opacity: 1;\n "])):ed||(ed=Zn(["\n opacity: 0;\n "],["\n opacity: 0;\n "])))})),wd="itd-modal-root",kd=function(t){var r=t.onShowModal,i=t.onRemoveModal,o=t.onModalEvent,s=t.modals,l=a(null),u=l[0],d=l[1],f=a([]),h=f[0],p=f[1];c((function(){if(s.map((function(n){h.includes(String(n.id))||p(Gn(Gn([],h,!0),[String(n.id)],!1))})),s.length>0&&!u){if(!document.getElementById(wd)){var n=document.createElement("div");n.id=wd,n.style.cssText="position:absolute;z-index:4",document.body.appendChild(n),d(n)}}else if(0===s.length&&u)try{document.body.removeChild(u),d(null)}catch(n){}}),[s]);var g=function(n,e){o(n,e)},m=function(n){r(n)},v=function(e){return n(bd,Hn({onShowModal:m,onRemoveModal:function(){return function(n){void 0===n&&(n=""),p(h.filter((function(e){return e!==n}))),setTimeout((function(){return i(n)}),250)}(e.id)},onModalEvent:g,isActive:s[s.length-1].id===e.id},e),e.id)};return u?_(n("div",{children:s.map((function(t){return e(yd,{id:"modal-wrapper-"+t.id,className:"itd-modal",children:[n(xd,{className:"itd-modal-overlay",$show:h.includes(String(t.id))}),v(t)]},"modal-wrapper-"+t.id)}))}),u):null},_d=o({});_d.displayName="ITDModalContext";var Sd={id:"",title:"",width:"400px",closeOnClickOutside:!0,preventESC:!1,showOkButton:!0,showCancelButton:!0,showCloseButton:!0,okButtonText:"OK",cancelButtonText:"Cancel",okButtonProps:null,cancelButtonProps:null,customProps:{},context:{},onOk:null,onCancel:null,useRef:!1,checkAutoRef:!1,content:null,contentPadding:"30px 20px",beforeContentPadding:"30px 20px 0",afterContentPadding:"0 20px 30px",addContentAfter:null,addContentBefore:null},Ed=function(t){var r=t.children,i=a([]),o=i[0],s=i[1],l=a([]),c=l[0],d=l[1],f=a({event:$n.NOT_SHOW,id:""}),h=f[0],p=f[1],g=function(n,e){n!==$n.NOT_SHOW&&p({event:n,id:e})},m=u((function(n){var e=Hn(Hn({},Sd),n);""===e.id&&(e.id=Oe("modal-")),s(Gn(Gn([],o,!0),[Hn({},e)],!1)),d(Gn(Gn([],c,!0),[e.id],!1))}),[o]),v=u((function(n){var e=c.findIndex((function(e){return e===n}));if(-1!==e){var t=Gn(Gn([],c.slice(0,e),!0),c.slice(e+1),!0);d(t)}var r=o.findIndex((function(e){return e.id===n}));if(-1!==r){var i=Gn(Gn([],o.slice(0,r),!0),o.slice(r+1),!0);s(i)}}),[o]);return e(_d.Provider,{value:{showModal:m,removeModal:v,removeAllModals:function(){d([]),s([]),g($n.ALL_REMOVED,"")},modalEvent:h,isVisible:function(n){return c.includes(n)}},children:[r,n(kd,{onShowModal:m,onRemoveModal:v,onModalEvent:g,modals:o})]})},Od={useModal:function(){return s(_d)}},Cd=Object.defineProperty,Nd={};((n,e)=>{for(var t in e)Cd(n,t,{get:e[t],enumerable:!0})})(Nd,{assign:()=>lf,colors:()=>of,createStringInterpolator:()=>nf,skipAnimation:()=>sf,to:()=>ef,willAdvance:()=>af});var Td=Hd(),Ad=n=>Yd(n,Td),Dd=Hd();Ad.write=n=>Yd(n,Dd);var Pd=Hd();Ad.onStart=n=>Yd(n,Pd);var Ld=Hd();Ad.onFrame=n=>Yd(n,Ld);var Md=Hd();Ad.onFinish=n=>Yd(n,Md);var Id=[];Ad.setTimeout=(n,e)=>{const t=Ad.now()+e,r=()=>{const n=Id.findIndex((n=>n.cancel==r));~n&&Id.splice(n,1),zd-=~n?1:0},i={time:t,handler:n,cancel:r};return Id.splice(Rd(t),0,i),zd+=1,Ud(),i};var Rd=n=>~(~Id.findIndex((e=>e.time>n))||~Id.length);Ad.cancel=n=>{Pd.delete(n),Ld.delete(n),Md.delete(n),Td.delete(n),Dd.delete(n)},Ad.sync=n=>{$d=!0,Ad.batchedUpdates(n),$d=!1},Ad.throttle=n=>{let e;function t(){try{n(...e)}finally{e=null}}function r(...n){e=n,Ad.onStart(t)}return r.handler=n,r.cancel=()=>{Pd.delete(t),e=null},r};var Fd="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Ad.use=n=>Fd=n,Ad.now="undefined"!=typeof performance?()=>performance.now():Date.now,Ad.batchedUpdates=n=>n(),Ad.catch=console.error,Ad.frameLoop="always",Ad.advance=()=>{"demand"!==Ad.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Bd()};var jd=-1,zd=0,$d=!1;function Yd(n,e){$d?(e.delete(n),n(0)):(e.add(n),Ud())}function Ud(){jd<0&&(jd=0,"demand"!==Ad.frameLoop&&Fd(Vd))}function Vd(){~jd&&(Fd(Vd),Ad.batchedUpdates(Bd))}function Bd(){const n=jd;jd=Ad.now();const e=Rd(jd);e&&(Wd(Id.splice(0,e),(n=>n.handler())),zd-=e),zd?(Pd.flush(),Td.flush(n?Math.min(64,jd-n):16.667),Ld.flush(),Dd.flush(),Md.flush()):jd=-1}function Hd(){let n=new Set,e=n;return{add(t){zd+=e!=n||n.has(t)?0:1,n.add(t)},delete:t=>(zd-=e==n&&n.has(t)?1:0,n.delete(t)),flush(t){e.size&&(n=new Set,zd-=e.size,Wd(e,(e=>e(t)&&n.add(e))),zd+=n.size,e=n)}}}function Wd(n,e){n.forEach((n=>{try{e(n)}catch(n){Ad.catch(n)}}))}function qd(){}var Gd={arr:Array.isArray,obj:n=>!!n&&"Object"===n.constructor.name,fun:n=>"function"==typeof n,str:n=>"string"==typeof n,num:n=>"number"==typeof n,und:n=>void 0===n};function Zd(n,e){if(Gd.arr(n)){if(!Gd.arr(e)||n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}return n===e}var Qd=(n,e)=>n.forEach(e);function Kd(n,e,t){if(Gd.arr(n))for(let r=0;r<n.length;r++)e.call(t,n[r],`${r}`);else for(const r in n)n.hasOwnProperty(r)&&e.call(t,n[r],r)}var Jd=n=>Gd.und(n)?[]:Gd.arr(n)?n:[n];function Xd(n,e){if(n.size){const t=Array.from(n);n.clear(),Qd(t,e)}}var nf,ef,tf=(n,...e)=>Xd(n,(n=>n(...e))),rf=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),of=null,sf=!1,af=qd,lf=n=>{n.to&&(ef=n.to),n.now&&(Ad.now=n.now),void 0!==n.colors&&(of=n.colors),null!=n.skipAnimation&&(sf=n.skipAnimation),n.createStringInterpolator&&(nf=n.createStringInterpolator),n.requestAnimationFrame&&Ad.use(n.requestAnimationFrame),n.batchedUpdates&&(Ad.batchedUpdates=n.batchedUpdates),n.willAdvance&&(af=n.willAdvance),n.frameLoop&&(Ad.frameLoop=n.frameLoop)},cf=new Set,uf=[],df=[],ff=0,hf={get idle(){return!cf.size&&!uf.length},start(n){ff>n.priority?(cf.add(n),Ad.onStart(pf)):(gf(n),Ad(vf))},advance:vf,sort(n){if(ff)Ad.onFrame((()=>hf.sort(n)));else{const e=uf.indexOf(n);~e&&(uf.splice(e,1),mf(n))}},clear(){uf=[],cf.clear()}};function pf(){cf.forEach(gf),cf.clear(),Ad(vf)}function gf(n){uf.includes(n)||mf(n)}function mf(n){uf.splice(function(n,e){const t=n.findIndex(e);return t<0?n.length:t}(uf,(e=>e.priority>n.priority)),0,n)}function vf(n){const e=df;for(let t=0;t<uf.length;t++){const r=uf[t];ff=r.priority,r.idle||(af(r),r.advance(n),r.idle||e.push(r))}return ff=0,(df=uf).length=0,(uf=e).length>0}var bf="[-+]?\\d*\\.?\\d+",yf=bf+"%";function xf(...n){return"\\(\\s*("+n.join(")\\s*,\\s*(")+")\\s*\\)"}var wf=new RegExp("rgb"+xf(bf,bf,bf)),kf=new RegExp("rgba"+xf(bf,bf,bf,bf)),_f=new RegExp("hsl"+xf(bf,yf,yf)),Sf=new RegExp("hsla"+xf(bf,yf,yf,bf)),Ef=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Of=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cf=/^#([0-9a-fA-F]{6})$/,Nf=/^#([0-9a-fA-F]{8})$/;function Tf(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+6*(e-n)*t:t<.5?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function Af(n,e,t){const r=t<.5?t*(1+e):t+e-t*e,i=2*t-r,o=Tf(i,r,n+1/3),s=Tf(i,r,n),a=Tf(i,r,n-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function Df(n){const e=parseInt(n,10);return e<0?0:e>255?255:e}function Pf(n){return(parseFloat(n)%360+360)%360/360}function Lf(n){const e=parseFloat(n);return e<0?0:e>1?255:Math.round(255*e)}function Mf(n){const e=parseFloat(n);return e<0?0:e>100?1:e/100}function If(n){let e=function(n){let e;return"number"==typeof n?n>>>0===n&&n>=0&&n<=4294967295?n:null:(e=Cf.exec(n))?parseInt(e[1]+"ff",16)>>>0:of&&void 0!==of[n]?of[n]:(e=wf.exec(n))?(Df(e[1])<<24|Df(e[2])<<16|Df(e[3])<<8|255)>>>0:(e=kf.exec(n))?(Df(e[1])<<24|Df(e[2])<<16|Df(e[3])<<8|Lf(e[4]))>>>0:(e=Ef.exec(n))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Nf.exec(n))?parseInt(e[1],16)>>>0:(e=Of.exec(n))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=_f.exec(n))?(255|Af(Pf(e[1]),Mf(e[2]),Mf(e[3])))>>>0:(e=Sf.exec(n))?(Af(Pf(e[1]),Mf(e[2]),Mf(e[3]))|Lf(e[4]))>>>0:null}(n);if(null===e)return n;e=e||0;return`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`}var Rf=(n,e,t)=>{if(Gd.fun(n))return n;if(Gd.arr(n))return Rf({range:n,output:e,extrapolate:t});if(Gd.str(n.output[0]))return nf(n);const r=n,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(n=>n);return n=>{const e=function(n,e){for(var t=1;t<e.length-1&&!(e[t]>=n);++t);return t-1}(n,o);return function(n,e,t,r,i,o,s,a,l){let c=l?l(n):n;if(c<e){if("identity"===s)return c;"clamp"===s&&(c=e)}if(c>t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(r===i)return r;if(e===t)return n<=e?r:i;e===-1/0?c=-c:t===1/0?c-=e:c=(c-e)/(t-e);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(n,o[e],o[e+1],i[e],i[e+1],l,s,a,r.map)}};var Ff=1.70158,jf=1.525*Ff,zf=Ff+1,$f=2*Math.PI/3,Yf=2*Math.PI/4.5,Uf=n=>{const e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375},Vf={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>1-(1-n)*(1-n),easeInOutQuad:n=>n<.5?2*n*n:1-Math.pow(-2*n+2,2)/2,easeInCubic:n=>n*n*n,easeOutCubic:n=>1-Math.pow(1-n,3),easeInOutCubic:n=>n<.5?4*n*n*n:1-Math.pow(-2*n+2,3)/2,easeInQuart:n=>n*n*n*n,easeOutQuart:n=>1-Math.pow(1-n,4),easeInOutQuart:n=>n<.5?8*n*n*n*n:1-Math.pow(-2*n+2,4)/2,easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>1-Math.pow(1-n,5),easeInOutQuint:n=>n<.5?16*n*n*n*n*n:1-Math.pow(-2*n+2,5)/2,easeInSine:n=>1-Math.cos(n*Math.PI/2),easeOutSine:n=>Math.sin(n*Math.PI/2),easeInOutSine:n=>-(Math.cos(Math.PI*n)-1)/2,easeInExpo:n=>0===n?0:Math.pow(2,10*n-10),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>0===n?0:1===n?1:n<.5?Math.pow(2,20*n-10)/2:(2-Math.pow(2,-20*n+10))/2,easeInCirc:n=>1-Math.sqrt(1-Math.pow(n,2)),easeOutCirc:n=>Math.sqrt(1-Math.pow(n-1,2)),easeInOutCirc:n=>n<.5?(1-Math.sqrt(1-Math.pow(2*n,2)))/2:(Math.sqrt(1-Math.pow(-2*n+2,2))+1)/2,easeInBack:n=>zf*n*n*n-Ff*n*n,easeOutBack:n=>1+zf*Math.pow(n-1,3)+Ff*Math.pow(n-1,2),easeInOutBack:n=>n<.5?Math.pow(2*n,2)*(7.189819*n-jf)/2:(Math.pow(2*n-2,2)*((jf+1)*(2*n-2)+jf)+2)/2,easeInElastic:n=>0===n?0:1===n?1:-Math.pow(2,10*n-10)*Math.sin((10*n-10.75)*$f),easeOutElastic:n=>0===n?0:1===n?1:Math.pow(2,-10*n)*Math.sin((10*n-.75)*$f)+1,easeInOutElastic:n=>0===n?0:1===n?1:n<.5?-Math.pow(2,20*n-10)*Math.sin((20*n-11.125)*Yf)/2:Math.pow(2,-20*n+10)*Math.sin((20*n-11.125)*Yf)/2+1,easeInBounce:n=>1-Uf(1-n),easeOutBounce:Uf,easeInOutBounce:n=>n<.5?(1-Uf(1-2*n))/2:(1+Uf(2*n-1))/2,steps:(n,e="end")=>t=>{const r=(t="end"===e?Math.min(t,.999):Math.max(t,.001))*n;return((n,e,t)=>Math.min(Math.max(t,n),e))(0,1,("end"===e?Math.floor(r):Math.ceil(r))/n)}},Bf=Symbol.for("FluidValue.get"),Hf=Symbol.for("FluidValue.observers"),Wf=n=>Boolean(n&&n[Bf]),qf=n=>n&&n[Bf]?n[Bf]():n,Gf=n=>n[Hf]||null;function Zf(n,e){const t=n[Hf];t&&t.forEach((n=>{!function(n,e){n.eventObserved?n.eventObserved(e):n(e)}(n,e)}))}var Qf=class{constructor(n){if(!n&&!(n=this.get))throw Error("Unknown getter");Kf(this,n)}},Kf=(n,e)=>eh(n,Bf,e);function Jf(n,e){if(n[Bf]){let t=n[Hf];t||eh(n,Hf,t=new Set),t.has(e)||(t.add(e),n.observerAdded&&n.observerAdded(t.size,e))}return e}function Xf(n,e){const t=n[Hf];if(t&&t.has(e)){const r=t.size-1;r?t.delete(e):n[Hf]=null,n.observerRemoved&&n.observerRemoved(r,e)}}var nh,eh=(n,e,t)=>Object.defineProperty(n,e,{value:t,writable:!0,configurable:!0}),th=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rh=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ih=new RegExp(`(${th.source})(%|[a-z]+)`,"i"),oh=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,sh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ah=n=>{const[e,t]=lh(n);if(!e||rf())return n;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(t&&t.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(t);return e||n}return t&&sh.test(t)?ah(t):t||n},lh=n=>{const e=sh.exec(n);if(!e)return[,];const[,t,r]=e;return[t,r]},ch=(n,e,t,r,i)=>`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(r)}, ${i})`,uh=n=>{nh||(nh=of?new RegExp(`(${Object.keys(of).join("|")})(?!\\w)`,"g"):/^\b$/);const e=n.output.map((n=>qf(n).replace(sh,ah).replace(rh,If).replace(nh,If))),t=e.map((n=>n.match(th).map(Number))),r=t[0].map(((n,e)=>t.map((n=>{if(!(e in n))throw Error('The arity of each "output" value must be equal');return n[e]})))),i=r.map((e=>Rf({...n,output:e})));return n=>{const t=!ih.test(e[0])&&e.find((n=>ih.test(n)))?.replace(th,"");let r=0;return e[0].replace(th,(()=>`${i[r++](n)}${t||""}`)).replace(oh,ch)}},dh="react-spring: ",fh=n=>{const e=n;let t=!1;if("function"!=typeof e)throw new TypeError(`${dh}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},hh=fh(console.warn);var ph=fh(console.warn);function gh(n){return Gd.str(n)&&("#"==n[0]||/\d/.test(n)||!rf()&&sh.test(n)||n in(of||{}))}var mh=rf()?c:v,vh=()=>{const n=l(!1);return mh((()=>(n.current=!0,()=>{n.current=!1})),[]),n};function bh(){const n=a()[1],e=vh();return()=>{e.current&&n(Math.random())}}var yh=n=>c(n,xh),xh=[];var wh=Symbol.for("Animated:node"),kh=n=>n&&n[wh],_h=(n,e)=>((n,e,t)=>Object.defineProperty(n,e,{value:t,writable:!0,configurable:!0}))(n,wh,e),Sh=n=>n&&n[wh]&&n[wh].getPayload(),Eh=class{constructor(){_h(this,this)}getPayload(){return this.payload||[]}},Oh=class extends Eh{constructor(n){super(),this._value=n,this.done=!0,this.durationProgress=0,Gd.num(this._value)&&(this.lastPosition=this._value)}static create(n){return new Oh(n)}getPayload(){return[this]}getValue(){return this._value}setValue(n,e){return Gd.num(n)&&(this.lastPosition=n,e&&(n=Math.round(n/e)*e,this.done&&(this.lastPosition=n))),this._value!==n&&(this._value=n,!0)}reset(){const{done:n}=this;this.done=!1,Gd.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,n&&(this.lastVelocity=null),this.v0=null)}},Ch=class extends Oh{constructor(n){super(0),this._string=null,this._toString=Rf({output:[n,n]})}static create(n){return new Ch(n)}getValue(){const n=this._string;return null==n?this._string=this._toString(this._value):n}setValue(n){if(Gd.str(n)){if(n==this._string)return!1;this._string=n,this._value=1}else{if(!super.setValue(n))return!1;this._string=null}return!0}reset(n){n&&(this._toString=Rf({output:[this.getValue(),n]})),this._value=0,super.reset()}},Nh={dependencies:null},Th=class extends Eh{constructor(n){super(),this.source=n,this.setValue(n)}getValue(n){const e={};return Kd(this.source,((t,r)=>{(n=>!!n&&n[wh]===n)(t)?e[r]=t.getValue(n):Wf(t)?e[r]=qf(t):n||(e[r]=t)})),e}setValue(n){this.source=n,this.payload=this._makePayload(n)}reset(){this.payload&&Qd(this.payload,(n=>n.reset()))}_makePayload(n){if(n){const e=new Set;return Kd(n,this._addToPayload,e),Array.from(e)}}_addToPayload(n){Nh.dependencies&&Wf(n)&&Nh.dependencies.add(n);const e=Sh(n);e&&Qd(e,(n=>this.add(n)))}},Ah=class extends Th{constructor(n){super(n)}static create(n){return new Ah(n)}getValue(){return this.source.map((n=>n.getValue()))}setValue(n){const e=this.getPayload();return n.length==e.length?e.map(((e,t)=>e.setValue(n[t]))).some(Boolean):(super.setValue(n.map(Dh)),!0)}};function Dh(n){return(gh(n)?Ch:Oh).create(n)}function Ph(n){const e=kh(n);return e?e.constructor:Gd.arr(n)?Ah:gh(n)?Ch:Oh}var Lh=(n,e)=>{const t=!Gd.fun(n)||n.prototype&&n.prototype.isReactComponent;return b(((i,o)=>{const s=l(null),a=t&&u((n=>{s.current=function(n,e){n&&(Gd.fun(n)?n(e):n.current=e);return e}(o,n)}),[o]),[d,f]=function(n,e){const t=new Set;Nh.dependencies=t,n.style&&(n={...n,style:e.createAnimatedStyle(n.style)});return n=new Th(n),Nh.dependencies=null,[n,t]}(i,e),h=bh(),p=()=>{const n=s.current;if(t&&!n)return;!1===(!!n&&e.applyAnimatedValues(n,d.getValue(!0)))&&h()},g=new Mh(p,f),m=l();mh((()=>(m.current=g,Qd(f,(n=>Jf(n,g))),()=>{m.current&&(Qd(m.current.deps,(n=>Xf(n,m.current))),Ad.cancel(m.current.update))}))),c(p,[]),yh((()=>()=>{const n=m.current;Qd(n.deps,(e=>Xf(e,n)))}));const v=e.getComponentProps(d.getValue());return r.createElement(n,{...v,ref:a})}))},Mh=class{constructor(n,e){this.update=n,this.deps=e}eventObserved(n){"change"==n.type&&Ad.write(this.update)}};var Ih=Symbol.for("AnimatedComponent"),Rh=n=>Gd.str(n)?n:n&&Gd.str(n.displayName)?n.displayName:Gd.fun(n)&&n.name||null;function Fh(n,...e){return Gd.fun(n)?n(...e):n}var jh=(n,e)=>!0===n||!!(e&&n&&(Gd.fun(n)?n(e):Jd(n).includes(e))),zh=(n,e)=>Gd.obj(n)?e&&n[e]:n,$h=(n,e)=>!0===n.default?n[e]:n.default?n.default[e]:void 0,Yh=n=>n,Uh=(n,e=Yh)=>{let t=Vh;n.default&&!0!==n.default&&(n=n.default,t=Object.keys(n));const r={};for(const i of t){const t=e(n[i],i);Gd.und(t)||(r[i]=t)}return r},Vh=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Bh={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Hh(n){const e=function(n){const e={};let t=0;if(Kd(n,((n,r)=>{Bh[r]||(e[r]=n,t++)})),t)return e}(n);if(e){const t={to:e};return Kd(n,((n,r)=>r in e||(t[r]=n))),t}return{...n}}function Wh(n){return n=qf(n),Gd.arr(n)?n.map(Wh):gh(n)?Nd.createStringInterpolator({range:[0,1],output:[n,n]})(1):n}function qh(n){return Gd.fun(n)||Gd.arr(n)&&Gd.obj(n[0])}function Gh(n,e){n.ref?.delete(n),e?.delete(n)}var Zh={tension:170,friction:26,mass:1,damping:1,easing:Vf.linear,clamp:!1},Qh=class{constructor(){this.velocity=0,Object.assign(this,Zh)}};function Kh(n,e){if(Gd.und(e.decay)){const t=!Gd.und(e.tension)||!Gd.und(e.friction);!t&&Gd.und(e.frequency)&&Gd.und(e.damping)&&Gd.und(e.mass)||(n.duration=void 0,n.decay=void 0),t&&(n.frequency=void 0)}else n.duration=void 0}var Jh=[],Xh=class{constructor(){this.changed=!1,this.values=Jh,this.toValues=null,this.fromValues=Jh,this.config=new Qh,this.immediate=!1}};function np(n,{key:e,props:t,defaultProps:r,state:i,actions:o}){return new Promise(((s,a)=>{let l,c,u=jh(t.cancel??r?.cancel,e);if(u)h();else{Gd.und(t.pause)||(i.paused=jh(t.pause,e));let n=r?.pause;!0!==n&&(n=i.paused||jh(n,e)),l=Fh(t.delay||0,e),n?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-Ad.now()}function f(){l>0&&!Nd.skipAnimation?(i.delayed=!0,c=Ad.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),n<=(i.cancelId||0)&&(u=!0);try{o.start({...t,callId:n,cancel:u},s)}catch(n){a(n)}}}))}var ep=(n,e)=>1==e.length?e[0]:e.some((n=>n.cancelled))?ip(n.get()):e.every((n=>n.noop))?tp(n.get()):rp(n.get(),e.every((n=>n.finished))),tp=n=>({value:n,noop:!0,finished:!0,cancelled:!1}),rp=(n,e,t=!1)=>({value:n,finished:e,cancelled:t}),ip=n=>({value:n,cancelled:!0,finished:!1});function op(n,e,t,r){const{callId:i,parentId:o,onRest:s}=e,{asyncTo:a,promise:l}=t;return o||n!==a||e.reset?t.promise=(async()=>{t.asyncId=i,t.asyncTo=n;const c=Uh(e,((n,e)=>"onRest"===e?void 0:n));let u,d;const f=new Promise(((n,e)=>(u=n,d=e))),h=n=>{const e=i<=(t.cancelId||0)&&ip(r)||i!==t.asyncId&&rp(r,!1);if(e)throw n.result=e,d(n),n},p=(n,e)=>{const o=new ap,s=new lp;return(async()=>{if(Nd.skipAnimation)throw sp(t),s.result=rp(r,!1),d(s),s;h(o);const a=Gd.obj(n)?{...n}:{...e,to:n};a.parentId=i,Kd(c,((n,e)=>{Gd.und(a[e])&&(a[e]=n)}));const l=await r.start(a);return h(o),t.paused&&await new Promise((n=>{t.resumeQueue.add(n)})),l})()};let g;if(Nd.skipAnimation)return sp(t),rp(r,!1);try{let e;e=Gd.arr(n)?(async n=>{for(const e of n)await p(e)})(n):Promise.resolve(n(p,r.stop.bind(r))),await Promise.all([e.then(u),f]),g=rp(r.get(),!0,!1)}catch(n){if(n instanceof ap)g=n.result;else{if(!(n instanceof lp))throw n;g=n.result}}finally{i==t.asyncId&&(t.asyncId=o,t.asyncTo=o?a:void 0,t.promise=o?l:void 0)}return Gd.fun(s)&&Ad.batchedUpdates((()=>{s(g,r,r.item)})),g})():l}function sp(n,e){Xd(n.timeouts,(n=>n.cancel())),n.pauseQueue.clear(),n.resumeQueue.clear(),n.asyncId=n.asyncTo=n.promise=void 0,e&&(n.cancelId=e)}var ap=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},lp=class extends Error{constructor(){super("SkipAnimationSignal")}},cp=n=>n instanceof dp,up=1,dp=class extends Qf{constructor(){super(...arguments),this.id=up++,this._priority=0}get priority(){return this._priority}set priority(n){this._priority!=n&&(this._priority=n,this._onPriorityChange(n))}get(){const n=kh(this);return n&&n.getValue()}to(...n){return Nd.to(this,n)}interpolate(...n){return hh(`${dh}The "interpolate" function is deprecated in v9 (use "to" instead)`),Nd.to(this,n)}toJSON(){return this.get()}observerAdded(n){1==n&&this._attach()}observerRemoved(n){0==n&&this._detach()}_attach(){}_detach(){}_onChange(n,e=!1){Zf(this,{type:"change",parent:this,value:n,idle:e})}_onPriorityChange(n){this.idle||hf.sort(this),Zf(this,{type:"priority",parent:this,priority:n})}},fp=Symbol.for("SpringPhase"),hp=n=>(1&n[fp])>0,pp=n=>(2&n[fp])>0,gp=n=>(4&n[fp])>0,mp=(n,e)=>e?n[fp]|=3:n[fp]&=-3,vp=(n,e)=>e?n[fp]|=4:n[fp]&=-5,bp=class extends dp{constructor(n,e){if(super(),this.animation=new Xh,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Gd.und(n)||!Gd.und(e)){const t=Gd.obj(n)?{...n}:{...e,from:n};Gd.und(t.default)&&(t.default=!0),this.start(t)}}get idle(){return!(pp(this)||this._state.asyncTo)||gp(this)}get goal(){return qf(this.animation.to)}get velocity(){const n=kh(this);return n instanceof Oh?n.lastVelocity||0:n.getPayload().map((n=>n.lastVelocity||0))}get hasAnimated(){return hp(this)}get isAnimating(){return pp(this)}get isPaused(){return gp(this)}get isDelayed(){return this._state.delayed}advance(n){let e=!0,t=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=Sh(r.to);!s&&Wf(r.to)&&(i=Jd(qf(r.to))),r.values.forEach(((a,l)=>{if(a.done)return;const c=a.constructor==Ch?1:s?s[l].lastPosition:i[l];let u=r.immediate,d=c;if(!u){if(d=a.lastPosition,o.tension<=0)return void(a.done=!0);let e=a.elapsedTime+=n;const t=r.fromValues[l],i=null!=a.v0?a.v0:a.v0=Gd.arr(o.velocity)?o.velocity[l]:o.velocity;let s;const f=o.precision||(t==c?.005:Math.min(1,.001*Math.abs(c-t)));if(Gd.und(o.duration))if(o.decay){const n=!0===o.decay?.998:o.decay,r=Math.exp(-(1-n)*e);d=t+i/(1-n)*(1-r),u=Math.abs(a.lastPosition-d)<=f,s=i*r}else{s=null==a.lastVelocity?i:a.lastVelocity;const e=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!Gd.und(r),h=t==c?a.v0>0:t<c;let p,g=!1;const m=1,v=Math.ceil(n/m);for(let n=0;n<v&&(p=Math.abs(s)>e,p||(u=Math.abs(c-d)<=f,!u));++n){l&&(g=d==c||d>c==h,g&&(s=-s*r,d=c));s+=(1e-6*-o.tension*(d-c)+.001*-o.friction*s)/o.mass*m,d+=s*m}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,a.durationProgress>0&&(a.elapsedTime=o.duration*a.durationProgress,e=a.elapsedTime+=n)),r=(o.progress||0)+e/this._memoizedDuration,r=r>1?1:r<0?0:r,a.durationProgress=r),d=t+o.easing(r)*(c-t),s=(d-a.lastPosition)/n,u=1==r}a.lastVelocity=s,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[l].done&&(u=!1),u?a.done=!0:e=!1,a.setValue(d,o.round)&&(t=!0)}));const a=kh(this),l=a.getValue();if(e){const n=qf(r.to);l===n&&!t||o.decay?t&&o.decay&&this._onChange(l):(a.setValue(n),this._onChange(n)),this._stop()}else t&&this._onChange(l)}set(n){return Ad.batchedUpdates((()=>{this._stop(),this._focus(n),this._set(n)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pp(this)){const{to:n,config:e}=this.animation;Ad.batchedUpdates((()=>{this._onStart(),e.decay||this._set(n,!1),this._stop()}))}return this}update(n){return(this.queue||(this.queue=[])).push(n),this}start(n,e){let t;return Gd.und(n)?(t=this.queue||[],this.queue=[]):t=[Gd.obj(n)?n:{...e,to:n}],Promise.all(t.map((n=>this._update(n)))).then((n=>ep(this,n)))}stop(n){const{to:e}=this.animation;return this._focus(this.get()),sp(this._state,n&&this._lastCallId),Ad.batchedUpdates((()=>this._stop(e,n))),this}reset(){this._update({reset:!0})}eventObserved(n){"change"==n.type?this._start():"priority"==n.type&&(this.priority=n.priority+1)}_prepareNode(n){const e=this.key||"";let{to:t,from:r}=n;t=Gd.obj(t)?t[e]:t,(null==t||qh(t))&&(t=void 0),r=Gd.obj(r)?r[e]:r,null==r&&(r=void 0);const i={to:t,from:r};return hp(this)||(n.reverse&&([t,r]=[r,t]),r=qf(r),Gd.und(r)?kh(this)||this._set(t):this._set(r)),i}_update({...n},e){const{key:t,defaultProps:r}=this;n.default&&Object.assign(r,Uh(n,((n,e)=>/^on/.test(e)?zh(n,t):n))),Sp(this,n,"onProps"),Ep(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return np(++this._lastCallId,{key:t,props:n,defaultProps:r,state:o,actions:{pause:()=>{gp(this)||(vp(this,!0),tf(o.pauseQueue),Ep(this,"onPause",rp(this,yp(this,this.animation.to)),this))},resume:()=>{gp(this)&&(vp(this,!1),pp(this)&&this._resume(),tf(o.resumeQueue),Ep(this,"onResume",rp(this,yp(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const e=xp(n);if(e)return this._update(e,!0)}return t}))}_merge(n,e,t){if(e.cancel)return this.stop(!0),t(ip(this));const r=!Gd.und(n.to),i=!Gd.und(n.from);if(r||i){if(!(e.callId>this._lastToId))return t(ip(this));this._lastToId=e.callId}const{key:o,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=n;!i||r||e.default&&!Gd.und(u)||(u=d),e.reverse&&([u,d]=[d,u]);const f=!Zd(d,c);f&&(a.from=d),d=qf(d);const h=!Zd(u,l);h&&this._focus(u);const p=qh(e.to),{config:g}=a,{decay:m,velocity:v}=g;(r||i)&&(g.velocity=0),e.config&&!p&&function(n,e,t){t&&(Kh(t={...t},e),e={...t,...e}),Kh(n,e),Object.assign(n,e);for(const e in Zh)null==n[e]&&(n[e]=Zh[e]);let{frequency:r,damping:i}=n;const{mass:o}=n;Gd.und(r)||(r<.01&&(r=.01),i<0&&(i=0),n.tension=Math.pow(2*Math.PI/r,2)*o,n.friction=4*Math.PI*i*o/r)}(g,Fh(e.config,o),e.config!==s.config?Fh(s.config,o):void 0);let b=kh(this);if(!b||Gd.und(u))return t(rp(this,!0));const y=Gd.und(e.reset)?i&&!e.default:!Gd.und(d)&&jh(e.reset,o),x=y?d:this.get(),w=Wh(u),k=Gd.num(w)||Gd.arr(w)||gh(w),_=!p&&(!k||jh(s.immediate||e.immediate,o));if(h){const n=Ph(u);if(n!==b.constructor){if(!_)throw Error(`Cannot animate between ${b.constructor.name} and ${n.name}, as the "to" prop suggests`);b=this._set(w)}}const S=b.constructor;let E=Wf(u),O=!1;if(!E){const n=y||!hp(this)&&f;(h||n)&&(O=Zd(Wh(x),w),E=!O),(Zd(a.immediate,_)||_)&&Zd(g.decay,m)&&Zd(g.velocity,v)||(E=!0)}if(O&&pp(this)&&(a.changed&&!y?E=!0:E||this._stop(l)),!p&&((E||Wf(l))&&(a.values=b.getPayload(),a.toValues=Wf(u)?null:S==Ch?[1]:Jd(w)),a.immediate!=_&&(a.immediate=_,_||y||this._set(l)),E)){const{onRest:n}=a;Qd(_p,(n=>Sp(this,e,n)));const r=rp(this,yp(this,l));tf(this._pendingCalls,r),this._pendingCalls.add(t),a.changed&&Ad.batchedUpdates((()=>{a.changed=!y,n?.(r,this),y?Fh(s.onRest,r):a.onStart?.(r,this)}))}y&&this._set(x),p?t(op(e.to,e,this._state,this)):E?this._start():pp(this)&&!h?this._pendingCalls.add(t):t(tp(x))}_focus(n){const e=this.animation;n!==e.to&&(Gf(this)&&this._detach(),e.to=n,Gf(this)&&this._attach())}_attach(){let n=0;const{to:e}=this.animation;Wf(e)&&(Jf(e,this),cp(e)&&(n=e.priority+1)),this.priority=n}_detach(){const{to:n}=this.animation;Wf(n)&&Xf(n,this)}_set(n,e=!0){const t=qf(n);if(!Gd.und(t)){const n=kh(this);if(!n||!Zd(t,n.getValue())){const r=Ph(t);n&&n.constructor==r?n.setValue(t):_h(this,r.create(t)),n&&Ad.batchedUpdates((()=>{this._onChange(t,e)}))}}return kh(this)}_onStart(){const n=this.animation;n.changed||(n.changed=!0,Ep(this,"onStart",rp(this,yp(this,n.to)),this))}_onChange(n,e){e||(this._onStart(),Fh(this.animation.onChange,n,this)),Fh(this.defaultProps.onChange,n,this),super._onChange(n,e)}_start(){const n=this.animation;kh(this).reset(qf(n.to)),n.immediate||(n.fromValues=n.values.map((n=>n.lastPosition))),pp(this)||(mp(this,!0),gp(this)||this._resume())}_resume(){Nd.skipAnimation?this.finish():hf.start(this)}_stop(n,e){if(pp(this)){mp(this,!1);const t=this.animation;Qd(t.values,(n=>{n.done=!0})),t.toValues&&(t.onChange=t.onPause=t.onResume=void 0),Zf(this,{type:"idle",parent:this});const r=e?ip(this.get()):rp(this.get(),yp(this,n??t.to));tf(this._pendingCalls,r),t.changed&&(t.changed=!1,Ep(this,"onRest",r,this))}}};function yp(n,e){const t=Wh(e);return Zd(Wh(n.get()),t)}function xp(n,e=n.loop,t=n.to){const r=Fh(e);if(r){const i=!0!==r&&Hh(r),o=(i||n).reverse,s=!i||i.reset;return wp({...n,loop:e,default:!1,pause:void 0,to:!o||qh(t)?t:void 0,from:s?n.from:void 0,reset:s,...i})}}function wp(n){const{to:e,from:t}=n=Hh(n),r=new Set;return Gd.obj(e)&&kp(e,r),Gd.obj(t)&&kp(t,r),n.keys=r.size?Array.from(r):null,n}function kp(n,e){Kd(n,((n,t)=>null!=n&&e.add(t)))}var _p=["onStart","onRest","onChange","onPause","onResume"];function Sp(n,e,t){n.animation[t]=e[t]!==$h(e,t)?zh(e[t],n.key):void 0}function Ep(n,e,...t){n.animation[e]?.(...t),n.defaultProps[e]?.(...t)}var Op=["onStart","onChange","onRest"],Cp=1,Np=class{constructor(n,e){this.id=Cp++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),n&&this.start({default:!0,...n})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((n=>n.idle&&!n.isDelayed&&!n.isPaused))}get item(){return this._item}set item(n){this._item=n}get(){const n={};return this.each(((e,t)=>n[t]=e.get())),n}set(n){for(const e in n){const t=n[e];Gd.und(t)||this.springs[e].set(t)}}update(n){return n&&this.queue.push(wp(n)),this}start(n){let{queue:e}=this;return n?e=Jd(n).map(wp):this.queue=[],this._flush?this._flush(this,e):(Lp(this,e),function(n,e){return Promise.all(e.map((e=>Tp(n,e)))).then((e=>ep(n,e)))}(this,e))}stop(n,e){if(n!==!!n&&(e=n),e){const t=this.springs;Qd(Jd(e),(e=>t[e].stop(!!n)))}else sp(this._state,this._lastAsyncId),this.each((e=>e.stop(!!n)));return this}pause(n){if(Gd.und(n))this.start({pause:!0});else{const e=this.springs;Qd(Jd(n),(n=>e[n].pause()))}return this}resume(n){if(Gd.und(n))this.start({pause:!1});else{const e=this.springs;Qd(Jd(n),(n=>e[n].resume()))}return this}each(n){Kd(this.springs,n)}_onFrame(){const{onStart:n,onChange:e,onRest:t}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Xd(n,(([n,e])=>{e.value=this.get(),n(e,this,this._item)})));const o=!r&&this._started,s=i||o&&t.size?this.get():null;i&&e.size&&Xd(e,(([n,e])=>{e.value=s,n(e,this,this._item)})),o&&(this._started=!1,Xd(t,(([n,e])=>{e.value=s,n(e,this,this._item)})))}eventObserved(n){if("change"==n.type)this._changed.add(n.parent),n.idle||this._active.add(n.parent);else{if("idle"!=n.type)return;this._active.delete(n.parent)}Ad.onFrame(this._onFrame)}};async function Tp(n,e,t){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:l}=e,c=Gd.obj(e.default)&&e.default;s&&(e.loop=!1),!1===i&&(e.to=null),!1===o&&(e.from=null);const u=Gd.arr(i)||Gd.fun(i)?i:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):Qd(Op,(t=>{const r=e[t];if(Gd.fun(r)){const i=n._events[t];e[t]=({finished:n,cancelled:e})=>{const t=i.get(r);t?(n||(t.finished=!1),e&&(t.cancelled=!0)):i.set(r,{value:null,finished:n||!1,cancelled:e||!1})},c&&(c[t]=e[t])}}));const d=n._state;e.pause===!d.paused?(d.paused=e.pause,tf(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const f=(r||Object.keys(n.springs)).map((t=>n.springs[t].start(e))),h=!0===e.cancel||!0===$h(e,"cancel");(u||h&&d.asyncId)&&f.push(np(++n._lastAsyncId,{props:e,state:d,actions:{pause:qd,resume:qd,start(e,t){h?(sp(d,n._lastAsyncId),t(ip(n))):(e.onRest=a,t(op(u,e,d,n)))}}})),d.paused&&await new Promise((n=>{d.resumeQueue.add(n)}));const p=ep(n,await Promise.all(f));if(s&&p.finished&&(!t||!p.noop)){const t=xp(e,s,i);if(t)return Lp(n,[t]),Tp(n,t,!0)}return l&&Ad.batchedUpdates((()=>l(p,n,n.item))),p}function Ap(n,e){const t={...n.springs};return e&&Qd(Jd(e),(n=>{Gd.und(n.keys)&&(n=wp(n)),Gd.obj(n.to)||(n={...n,to:void 0}),Pp(t,n,(n=>Dp(n)))})),function(n,e){Kd(e,((e,t)=>{n.springs[t]||(n.springs[t]=e,Jf(e,n))}))}(n,t),t}function Dp(n,e){const t=new bp;return t.key=n,e&&Jf(t,e),t}function Pp(n,e,t){e.keys&&Qd(e.keys,(r=>{(n[r]||(n[r]=t(r)))._prepareNode(e)}))}function Lp(n,e){Qd(e,(e=>{Pp(n.springs,e,(e=>Dp(e,n)))}))}var Mp=({children:n,...e})=>{const t=s(Ip),i=e.pause||!!t.pause,o=e.immediate||!!t.immediate;e=function(n,e){const[t]=a((()=>({inputs:e,result:n()}))),r=l(),i=r.current;let o=i;if(o){const t=Boolean(e&&o.inputs&&function(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}(e,o.inputs));t||(o={inputs:e,result:n()})}else o=t;return c((()=>{r.current=o,i==t&&(t.inputs=t.result=void 0)}),[o]),o.result}((()=>({pause:i,immediate:o})),[i,o]);const{Provider:u}=Ip;return r.createElement(u,{value:e},n)},Ip=function(n,e){return Object.assign(n,r.createContext(e)),n.Provider._context=n,n.Consumer._context=n,n}(Mp,{});Mp.Provider=Ip.Provider,Mp.Consumer=Ip.Consumer;var Rp=()=>{const n=[],e=function(e){ph(`${dh}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Qd(n,((n,i)=>{if(Gd.und(e))r.push(n.start());else{const o=t(e,n,i);o&&r.push(n.start(o))}})),r};e.current=n,e.add=function(e){n.includes(e)||n.push(e)},e.delete=function(e){const t=n.indexOf(e);~t&&n.splice(t,1)},e.pause=function(){return Qd(n,(n=>n.pause(...arguments))),this},e.resume=function(){return Qd(n,(n=>n.resume(...arguments))),this},e.set=function(e){Qd(n,((n,t)=>{const r=Gd.fun(e)?e(t,n):e;r&&n.set(r)}))},e.start=function(e){const t=[];return Qd(n,((n,r)=>{if(Gd.und(e))t.push(n.start());else{const i=this._getProps(e,n,r);i&&t.push(n.start(i))}})),t},e.stop=function(){return Qd(n,(n=>n.stop(...arguments))),this},e.update=function(e){return Qd(n,((n,t)=>n.update(this._getProps(e,n,t)))),this};const t=function(n,e,t){return Gd.fun(n)?n(t,e):n};return e._getProps=t,e};function Fp(n,e,t){const i=Gd.fun(e)&&e,{reset:o,sort:a,trail:u=0,expires:d=!0,exitBeforeEnter:f=!1,onDestroyed:h,ref:p,config:g}=i?i():e,m=y((()=>i||3==arguments.length?Rp():void 0),[]),v=Jd(n),b=[],x=l(null),w=o?null:x.current;mh((()=>{x.current=b})),yh((()=>(Qd(b,(n=>{m?.add(n.ctrl),n.ctrl.ref=m})),()=>{Qd(x.current,(n=>{n.expired&&clearTimeout(n.expirationId),Gh(n.ctrl,m),n.ctrl.stop(!0)}))})));const k=function(n,{key:e,keys:t=e},r){if(null===t){const e=new Set;return n.map((n=>{const t=r&&r.find((t=>t.item===n&&"leave"!==t.phase&&!e.has(t)));return t?(e.add(t),t.key):jp++}))}return Gd.und(t)?n:Gd.fun(t)?n.map(t):Jd(t)}(v,i?i():e,w),_=o&&x.current||[];mh((()=>Qd(_,(({ctrl:n,item:e,key:t})=>{Gh(n,m),Fh(h,e,t)}))));const S=[];if(w&&Qd(w,((n,e)=>{n.expired?(clearTimeout(n.expirationId),_.push(n)):~(e=S[e]=k.indexOf(n.key))&&(b[e]=n)})),Qd(v,((n,e)=>{b[e]||(b[e]={key:k[e],item:n,phase:"mount",ctrl:new Np},b[e].ctrl.item=n)})),S.length){let n=-1;const{leave:t}=i?i():e;Qd(S,((e,r)=>{const i=w[r];~e?(n=b.indexOf(i),b[n]={...i,item:v[e]}):t&&b.splice(++n,0,i)}))}Gd.fun(a)&&b.sort(((n,e)=>a(n.item,e.item)));let E=-u;const O=bh(),C=Uh(e),N=new Map,T=l(new Map),A=l(!1);Qd(b,((n,t)=>{const r=n.key,o=n.phase,s=i?i():e;let a,l;const c=Fh(s.delay||0,r);if("mount"==o)a=s.enter,l="enter";else{const n=k.indexOf(r)<0;if("leave"!=o)if(n)a=s.leave,l="leave";else{if(!(a=s.update))return;l="update"}else{if(n)return;a=s.enter,l="enter"}}if(a=Fh(a,n.item,t),a=Gd.obj(a)?Hh(a):{to:a},!a.config){const e=g||C.config;a.config=Fh(e,n.item,t,l)}E+=u;const h={...C,delay:c+E,ref:p,immediate:s.immediate,reset:!1,...a};if("enter"==l&&Gd.und(h.from)){const r=i?i():e,o=Gd.und(r.initial)||w?r.from:r.initial;h.from=Fh(o,n.item,t)}const{onResolve:m}=h;h.onResolve=n=>{Fh(m,n);const e=x.current,t=e.find((n=>n.key===r));if(t&&(!n.cancelled||"update"==t.phase)&&t.ctrl.idle){const n=e.every((n=>n.ctrl.idle));if("leave"==t.phase){const e=Fh(d,t.item);if(!1!==e){const r=!0===e?0:e;if(t.expired=!0,!n&&r>0)return void(r<=2147483647&&(t.expirationId=setTimeout(O,r)))}}n&&e.some((n=>n.expired))&&(T.current.delete(t),f&&(A.current=!0),O())}};const v=Ap(n.ctrl,h);"leave"===l&&f?T.current.set(n,{phase:l,springs:v,payload:h}):N.set(n,{phase:l,springs:v,payload:h})}));const D=s(Mp),P=function(n){const e=l();return c((()=>{e.current=n})),e.current}(D),L=D!==P&&function(n){for(const e in n)return!0;return!1}(D);mh((()=>{L&&Qd(b,(n=>{n.ctrl.start({default:D})}))}),[D]),Qd(N,((n,e)=>{if(T.current.size){const n=b.findIndex((n=>n.key===e.key));b.splice(n,1)}})),mh((()=>{Qd(T.current.size?T.current:N,(({phase:n,payload:e},t)=>{const{ctrl:r}=t;t.phase=n,m?.add(r),L&&"enter"==n&&r.start({default:D}),e&&(!function(n,e){e&&n.ref!==e&&(n.ref?.delete(n),e.add(n),n.ref=e)}(r,e.ref),!r.ref&&!m||A.current?(r.start(e),A.current&&(A.current=!1)):r.update(e))}))}),o?void 0:t);const M=n=>r.createElement(r.Fragment,null,b.map(((e,t)=>{const{springs:i}=N.get(e)||e.ctrl,o=n({...i},e.item,e,t);return o&&o.type?r.createElement(o.type,{...o.props,key:Gd.str(e.key)||Gd.num(e.key)?e.key:e.ctrl.id,ref:o.ref}):o})));return m?[M,m]:M}var jp=1;var zp=class extends dp{constructor(n,e){super(),this.source=n,this.idle=!0,this._active=new Set,this.calc=Rf(...e);const t=this._get(),r=Ph(t);_h(this,r.create(t))}advance(n){const e=this._get();Zd(e,this.get())||(kh(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&Yp(this._active)&&Up(this)}_get(){const n=Gd.arr(this.source)?this.source.map(qf):Jd(qf(this.source));return this.calc(...n)}_start(){this.idle&&!Yp(this._active)&&(this.idle=!1,Qd(Sh(this),(n=>{n.done=!1})),Nd.skipAnimation?(Ad.batchedUpdates((()=>this.advance())),Up(this)):hf.start(this))}_attach(){let n=1;Qd(Jd(this.source),(e=>{Wf(e)&&Jf(e,this),cp(e)&&(e.idle||this._active.add(e),n=Math.max(n,e.priority+1))})),this.priority=n,this._start()}_detach(){Qd(Jd(this.source),(n=>{Wf(n)&&Xf(n,this)})),this._active.clear(),Up(this)}eventObserved(n){"change"==n.type?n.idle?this.advance():(this._active.add(n.parent),this._start()):"idle"==n.type?this._active.delete(n.parent):"priority"==n.type&&(this.priority=Jd(this.source).reduce(((n,e)=>Math.max(n,(cp(e)?e.priority:0)+1)),0))}};function $p(n){return!1!==n.idle}function Yp(n){return!n.size||Array.from(n).every($p)}function Up(n){n.idle||(n.idle=!0,Qd(Sh(n),(n=>{n.done=!0})),Zf(n,{type:"idle",parent:n}))}Nd.assign({createStringInterpolator:uh,to:(n,e)=>new zp(n,e)});var Vp=/^--/;function Bp(n,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||Vp.test(n)||Wp.hasOwnProperty(n)&&Wp[n]?(""+e).trim():e+"px"}var Hp={};var Wp={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,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},qp=["Webkit","Ms","Moz","O"];Wp=Object.keys(Wp).reduce(((n,e)=>(qp.forEach((t=>n[((n,e)=>n+e.charAt(0).toUpperCase()+e.substring(1))(t,e)]=n[e])),n)),Wp);var Gp=/^(matrix|translate|scale|rotate|skew)/,Zp=/^(translate)/,Qp=/^(rotate|skew)/,Kp=(n,e)=>Gd.num(n)&&0!==n?n+e:n,Jp=(n,e)=>Gd.arr(n)?n.every((n=>Jp(n,e))):Gd.num(n)?n===e:parseFloat(n)===e,Xp=class extends Th{constructor({x:n,y:e,z:t,...r}){const i=[],o=[];(n||e||t)&&(i.push([n||0,e||0,t||0]),o.push((n=>[`translate3d(${n.map((n=>Kp(n,"px"))).join(",")})`,Jp(n,0)]))),Kd(r,((n,e)=>{if("transform"===e)i.push([n||""]),o.push((n=>[n,""===n]));else if(Gp.test(e)){if(delete r[e],Gd.und(n))return;const t=Zp.test(e)?"px":Qp.test(e)?"deg":"";i.push(Jd(n)),o.push("rotate3d"===e?([n,e,r,i])=>[`rotate3d(${n},${e},${r},${Kp(i,t)})`,Jp(i,0)]:n=>[`${e}(${n.map((n=>Kp(n,t))).join(",")})`,Jp(n,e.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new ng(i,o)),super(r)}},ng=class extends Qf{constructor(n,e){super(),this.inputs=n,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let n="",e=!0;return Qd(this.inputs,((t,r)=>{const i=qf(t[0]),[o,s]=this.transforms[r](Gd.arr(i)?i:t.map(qf));n+=" "+o,e=e&&s})),e?"none":n}observerAdded(n){1==n&&Qd(this.inputs,(n=>Qd(n,(n=>Wf(n)&&Jf(n,this)))))}observerRemoved(n){0==n&&Qd(this.inputs,(n=>Qd(n,(n=>Wf(n)&&Xf(n,this)))))}eventObserved(n){"change"==n.type&&(this._value=null),Zf(this,n)}};Nd.assign({batchedUpdates:S,createStringInterpolator:uh,colors:{transparent:0,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,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,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,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var eg=((n,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:t=(n=>new Th(n)),getComponentProps:r=(n=>n)}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:t,getComponentProps:r},o=n=>{const e=Rh(n)||"Anonymous";return(n=Gd.str(n)?o[n]||(o[n]=Lh(n,i)):n[Ih]||(n[Ih]=Lh(n,i))).displayName=`Animated(${e})`,n};return Kd(n,((e,t)=>{Gd.arr(n)&&(t=Rh(e)),o[t]=o(e)})),{animated:o}})(["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","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"],{applyAnimatedValues:function(n,e){if(!n.nodeType||!n.setAttribute)return!1;const t="filter"===n.nodeName||n.parentNode&&"filter"===n.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:s,viewBox:a,...l}=e,c=Object.values(l),u=Object.keys(l).map((e=>t||n.hasAttribute(e)?e:Hp[e]||(Hp[e]=e.replace(/([A-Z])/g,(n=>"-"+n.toLowerCase())))));void 0!==i&&(n.textContent=i);for(const e in r)if(r.hasOwnProperty(e)){const t=Bp(e,r[e]);Vp.test(e)?n.style.setProperty(e,t):n.style[e]=t}u.forEach(((e,t)=>{n.setAttribute(e,c[t])})),void 0!==o&&(n.scrollTop=o),void 0!==s&&(n.scrollLeft=s),void 0!==a&&n.setAttribute("viewBox",a)},createAnimatedStyle:n=>new Xp(n),getComponentProps:({scrollTop:n,scrollLeft:e,...t})=>t}),tg=eg.animated;const rg=Nc(tg.div)`
|
|
172
172
|
|