@ukpc-lib/react 0.3.42 → 0.3.43
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/components/ShadownDom/index.d.ts +1 -1
- package/dist/components/Topbar/index.d.ts +3 -2
- package/dist/components/index.cjs +5 -5
- package/dist/components/index.js +18 -16
- package/dist/index.module-42e2de1d.cjs +987 -0
- package/dist/index.module-8b49f064.js +22055 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-a3fc049e.cjs → index-0b31d173.cjs} +5 -5
- package/web-components-bundle/index-9091b8d6.cjs +40 -0
- package/web-components-bundle/index-96f18056.js +7902 -0
- package/web-components-bundle/{index-981f4a42.js → index-b76d708c.js} +19 -16
- package/dist/index.module-06bf4d76.cjs +0 -1092
- package/dist/index.module-0f5e9fad.js +0 -32064
- package/web-components-bundle/index-60a9bd54.cjs +0 -67
- package/web-components-bundle/index-db308fb2.js +0 -10796
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("./react-to-web-component-3847ebf5.cjs");function Rl(e,t){return function(){return e.apply(t,arguments)}}const{toString:td}=Object.prototype,{getPrototypeOf:to}=Object,wr=(e=>t=>{const n=td.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fe=e=>(e=e.toLowerCase(),t=>wr(t)===e),Sr=e=>t=>typeof t===e,{isArray:Nt}=Array,ln=Sr("undefined");function nd(e){return e!==null&&!ln(e)&&e.constructor!==null&&!ln(e.constructor)&&Ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Al=Fe("ArrayBuffer");function rd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Al(e.buffer),t}const id=Sr("string"),Ce=Sr("function"),Ol=Sr("number"),Er=e=>e!==null&&typeof e=="object",od=e=>e===!0||e===!1,Fn=e=>{if(wr(e)!=="object")return!1;const t=to(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},sd=Fe("Date"),ad=Fe("File"),ld=Fe("Blob"),ud=Fe("FileList"),cd=e=>Er(e)&&Ce(e.pipe),fd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ce(e.append)&&((t=wr(e))==="formdata"||t==="object"&&Ce(e.toString)&&e.toString()==="[object FormData]"))},dd=Fe("URLSearchParams"),hd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Nt(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function _l(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ml=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),jl=e=>!ln(e)&&e!==Ml;function Si(){const{caseless:e}=jl(this)&&this||{},t={},n=(r,i)=>{const o=e&&_l(t,i)||i;Fn(t[o])&&Fn(r)?t[o]=Si(t[o],r):Fn(r)?t[o]=Si({},r):Nt(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&yn(arguments[r],n);return t}const pd=(e,t,n,{allOwnKeys:r}={})=>(yn(t,(i,o)=>{n&&Ce(i)?e[o]=Rl(i,n):e[o]=i},{allOwnKeys:r}),e),md=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yd=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&to(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xd=e=>{if(!e)return null;if(Nt(e))return e;let t=e.length;if(!Ol(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&to(Uint8Array)),wd=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Sd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ed=Fe("HTMLFormElement"),Cd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),es=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kd=Fe("RegExp"),Vl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yn(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Td=e=>{Vl(e,(t,n)=>{if(Ce(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ce(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pd=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Nt(e)?r(e):r(String(e).split(t)),n},Rd=()=>{},Ad=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Hr="abcdefghijklmnopqrstuvwxyz",ts="0123456789",Fl={DIGIT:ts,ALPHA:Hr,ALPHA_DIGIT:Hr+Hr.toUpperCase()+ts},Od=(e=16,t=Fl.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _d(e){return!!(e&&Ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Md=e=>{const t=new Array(10),n=(r,i)=>{if(Er(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Nt(r)?[]:{};return yn(r,(s,a)=>{const l=n(s,i+1);!ln(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},jd=Fe("AsyncFunction"),Vd=e=>e&&(Er(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),w={isArray:Nt,isArrayBuffer:Al,isBuffer:nd,isFormData:fd,isArrayBufferView:rd,isString:id,isNumber:Ol,isBoolean:od,isObject:Er,isPlainObject:Fn,isUndefined:ln,isDate:sd,isFile:ad,isBlob:ld,isRegExp:kd,isFunction:Ce,isStream:cd,isURLSearchParams:dd,isTypedArray:bd,isFileList:ud,forEach:yn,merge:Si,extend:pd,trim:hd,stripBOM:md,inherits:gd,toFlatObject:yd,kindOf:wr,kindOfTest:Fe,endsWith:vd,toArray:xd,forEachEntry:wd,matchAll:Sd,isHTMLForm:Ed,hasOwnProperty:es,hasOwnProp:es,reduceDescriptors:Vl,freezeMethods:Td,toObjectSet:Pd,toCamelCase:Cd,noop:Rd,toFiniteNumber:Ad,findKey:_l,global:Ml,isContextDefined:jl,ALPHABET:Fl,generateString:Od,isSpecCompliantForm:_d,toJSONObject:Md,isAsyncFn:jd,isThenable:Vd};function V(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}w.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ll=V.prototype,Dl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dl[e]={value:e}});Object.defineProperties(V,Dl);Object.defineProperty(Ll,"isAxiosError",{value:!0});V.from=(e,t,n,r,i,o)=>{const s=Object.create(Ll);return w.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),V.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Fd=null;function Ei(e){return w.isPlainObject(e)||w.isArray(e)}function Il(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function ns(e,t,n){return e?e.concat(t).map(function(i,o){return i=Il(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Ld(e){return w.isArray(e)&&!e.some(Ei)}const Dd=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Cr(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!w.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(w.isDate(p))return p.toISOString();if(!l&&w.isBlob(p))throw new V("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(p)||w.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,g,y){let v=p;if(p&&!y&&typeof p=="object"){if(w.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(w.isArray(p)&&Ld(p)||(w.isFileList(p)||w.endsWith(g,"[]"))&&(v=w.toArray(p)))return g=Il(g),v.forEach(function(x,S){!(w.isUndefined(x)||x===null)&&t.append(s===!0?ns([g],S,o):s===null?g:g+"[]",u(x))}),!1}return Ei(p)?!0:(t.append(ns(y,g,o),u(p)),!1)}const c=[],d=Object.assign(Dd,{defaultVisitor:f,convertValue:u,isVisitable:Ei});function h(p,g){if(!w.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(p),w.forEach(p,function(v,b){(!(w.isUndefined(v)||v===null)&&i.call(t,v,w.isString(b)?b.trim():b,g,d))===!0&&h(v,g?g.concat(b):[b])}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return h(e),t}function rs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function no(e,t){this._pairs=[],e&&Cr(e,this,t)}const Nl=no.prototype;Nl.append=function(t,n){this._pairs.push([t,n])};Nl.toString=function(t){const n=t?function(r){return t.call(this,r,rs)}:rs;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Id(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bl(e,t,n){if(!t)return e;const r=n&&n.encode||Id,i=n&&n.serialize;let o;if(i?o=i(t,n):o=w.isURLSearchParams(t)?t.toString():new no(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Nd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const is=Nd,$l={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bd=typeof URLSearchParams<"u"?URLSearchParams:no,$d=typeof FormData<"u"?FormData:null,zd=typeof Blob<"u"?Blob:null,Wd={isBrowser:!0,classes:{URLSearchParams:Bd,FormData:$d,Blob:zd},protocols:["http","https","file","blob","url","data"]},zl=typeof window<"u"&&typeof document<"u",Ud=(e=>zl&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Hd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zl,hasStandardBrowserEnv:Ud,hasStandardBrowserWebWorkerEnv:Hd},Symbol.toStringTag,{value:"Module"})),je={...qd,...Wd};function Gd(e,t){return Cr(e,new je.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return je.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Xd(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kd(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Wl(e){function t(n,r,i,o){let s=n[o++];const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&w.isArray(i)?i.length:s,l?(w.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!w.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&w.isArray(i[s])&&(i[s]=Kd(i[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,i)=>{t(Xd(r),i,n,0)}),n}return null}function Yd(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ro={transitional:$l,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=w.isObject(t);if(o&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return i&&i?JSON.stringify(Wl(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gd(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Yd(t)):t}],transformResponse:[function(t){const n=this.transitional||ro.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?V.from(a,V.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{ro.headers[e]={}});const io=ro,Jd=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zd=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
2
|
-
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Jd[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},os=Symbol("internals");function Ut(e){return e&&String(e).trim().toLowerCase()}function Ln(e){return e===!1||e==null?e:w.isArray(e)?e.map(Ln):String(e)}function Qd(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qr(e,t,n,r,i){if(w.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function th(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nh(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class kr{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const f=Ut(l);if(!f)throw new Error("header name must be a non-empty string");const c=w.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Ln(a))}const s=(a,l)=>w.forEach(a,(u,f)=>o(u,f,l));return w.isPlainObject(t)||t instanceof this.constructor?s(t,n):w.isString(t)&&(t=t.trim())&&!eh(t)?s(Zd(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ut(t),t){const r=w.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Qd(i);if(w.isFunction(n))return n.call(this,i,r);if(w.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ut(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||qr(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Ut(s),s){const a=w.findKey(r,s);a&&(!n||qr(r,r[a],a,n))&&(delete r[a],i=!0)}}return w.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||qr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return w.forEach(this,(i,o)=>{const s=w.findKey(r,o);if(s){n[s]=Ln(i),delete n[o];return}const a=t?th(o):String(o).trim();a!==o&&delete n[o],n[a]=Ln(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[os]=this[os]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Ut(s);r[a]||(nh(i,s),r[a]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}}kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(kr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(kr);const Be=kr;function Gr(e,t){const n=this||io,r=t||n,i=Be.from(r.headers);let o=r.data;return w.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ul(e){return!!(e&&e.__CANCEL__)}function vn(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(vn,V,{__CANCEL__:!0});function rh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ih=je.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sh(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Hl(e,t){return e&&!oh(t)?sh(e,t):t}const ah=je.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=w.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function lh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[o];s||(s=u),n[i]=l,r[i]=u;let c=o,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=f&&u-f;return h?Math.round(d*1e3/h):void 0}}function ss(e,t){let n=0;const r=uh(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const ch=typeof XMLHttpRequest<"u",fh=ch&&function(e){return new Promise(function(n,r){let i=e.data;const o=Be.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(w.isFormData(i)){if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const d=Hl(e.baseURL,e.url);c.open(e.method.toUpperCase(),Bl(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const g=Be.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};rh(function(x){n(x),u()},function(x){r(x),u()},v),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new V("Request aborted",V.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||$l;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new V(y,v.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,c)),c=null},je.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(e)),a||a!==!1&&ah(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&ih.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&w.forEach(o.toJSON(),function(y,v){c.setRequestHeader(v,y)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",ss(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ss(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{c&&(r(!g||g.type?new vn(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=lh(d);if(p&&je.protocols.indexOf(p)===-1){r(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ci={http:Fd,xhr:fh};w.forEach(Ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const as=e=>`- ${e}`,dh=e=>w.isFunction(e)||e===null||e===!1,ql={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!dh(n)&&(r=Ci[(s=String(n)).toLowerCase()],r===void 0))throw new V(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
4
|
-
`+o.map(as).join(`
|
|
5
|
-
`):" "+as(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function Xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vn(null,e)}function ls(e){return Xr(e),e.headers=Be.from(e.headers),e.data=Gr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ql.getAdapter(e.adapter||io.adapter)(e).then(function(r){return Xr(e),r.data=Gr.call(e,e.transformResponse,r),r.headers=Be.from(r.headers),r},function(r){return Ul(r)||(Xr(e),r&&r.response&&(r.response.data=Gr.call(e,e.transformResponse,r.response),r.response.headers=Be.from(r.response.headers))),Promise.reject(r)})}const us=e=>e instanceof Be?e.toJSON():e;function Ft(e,t){t=t||{};const n={};function r(u,f,c){return w.isPlainObject(u)&&w.isPlainObject(f)?w.merge.call({caseless:c},u,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function i(u,f,c){if(w.isUndefined(f)){if(!w.isUndefined(u))return r(void 0,u,c)}else return r(u,f,c)}function o(u,f){if(!w.isUndefined(f))return r(void 0,f)}function s(u,f){if(w.isUndefined(f)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,c){if(c in t)return r(u,f);if(c in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>i(us(u),us(f),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,d=c(e[f],t[f],f);w.isUndefined(d)&&c!==a||(n[f]=d)}),n}const Gl="1.6.2",oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cs={};oo.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Gl+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new V(i(s," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!cs[s]&&(cs[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function hh(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new V("option "+o+" must be "+l,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const ki={assertOptions:hh,validators:oo},qe=ki.validators;class Jn{constructor(t){this.defaults=t,this.interceptors={request:new is,response:new is}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ft(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ki.assertOptions(r,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:ki.assertOptions(i,{encode:qe.function,serialize:qe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Be.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,d;if(!l){const p=[ls.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),d=p.length,f=Promise.resolve(n);c<d;)f=f.then(p[c++],p[c++]);return f}d=a.length;let h=n;for(c=0;c<d;){const p=a[c++],g=a[c++];try{h=p(h)}catch(y){g.call(this,y);break}}try{f=ls.call(this,h)}catch(p){return Promise.reject(p)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Ft(this.defaults,t);const n=Hl(t.baseURL,t.url);return Bl(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){Jn.prototype[t]=function(n,r){return this.request(Ft(r||{},{method:t,url:n,data:(r||{}).data}))}});w.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(Ft(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Jn.prototype[t]=n(),Jn.prototype[t+"Form"]=n(!0)});const Dn=Jn;class so{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new vn(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new so(function(i){t=i}),cancel:t}}}const ph=so;function mh(e){return function(n){return e.apply(null,n)}}function gh(e){return w.isObject(e)&&e.isAxiosError===!0}const Ti={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ti).forEach(([e,t])=>{Ti[t]=e});const yh=Ti;function Xl(e){const t=new Dn(e),n=Rl(Dn.prototype.request,t);return w.extend(n,Dn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xl(Ft(e,i))},n}const Z=Xl(io);Z.Axios=Dn;Z.CanceledError=vn;Z.CancelToken=ph;Z.isCancel=Ul;Z.VERSION=Gl;Z.toFormData=Cr;Z.AxiosError=V;Z.Cancel=Z.CanceledError;Z.all=function(t){return Promise.all(t)};Z.spread=mh;Z.isAxiosError=gh;Z.mergeConfig=Ft;Z.AxiosHeaders=Be;Z.formToJSON=e=>Wl(w.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=ql.getAdapter;Z.HttpStatusCode=yh;Z.default=Z;const Kl=Z;var vh=typeof global=="object"&&global&&global.Object===Object&&global;const xh=vh;var bh=typeof self=="object"&&self&&self.Object===Object&&self,wh=xh||bh||Function("return this")();const Yl=wh;var Sh=Yl.Symbol;const Zn=Sh;var Jl=Object.prototype,Eh=Jl.hasOwnProperty,Ch=Jl.toString,Ht=Zn?Zn.toStringTag:void 0;function kh(e){var t=Eh.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var i=Ch.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),i}var Th=Object.prototype,Ph=Th.toString;function Rh(e){return Ph.call(e)}var Ah="[object Null]",Oh="[object Undefined]",fs=Zn?Zn.toStringTag:void 0;function _h(e){return e==null?e===void 0?Oh:Ah:fs&&fs in Object(e)?kh(e):Rh(e)}function Mh(e){return e!=null&&typeof e=="object"}var jh="[object Symbol]";function Vh(e){return typeof e=="symbol"||Mh(e)&&_h(e)==jh}var Fh=/\s/;function Lh(e){for(var t=e.length;t--&&Fh.test(e.charAt(t)););return t}var Dh=/^\s+/;function Ih(e){return e&&e.slice(0,Lh(e)+1).replace(Dh,"")}function Qn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ds=0/0,Nh=/^[-+]0x[0-9a-f]+$/i,Bh=/^0b[01]+$/i,$h=/^0o[0-7]+$/i,zh=parseInt;function hs(e){if(typeof e=="number")return e;if(Vh(e))return ds;if(Qn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ih(e);var n=Bh.test(e);return n||$h.test(e)?zh(e.slice(2),n?2:8):Nh.test(e)?ds:+e}var Wh=function(){return Yl.Date.now()};const Kr=Wh;var Uh="Expected a function",Hh=Math.max,qh=Math.min;function In(e,t,n){var r,i,o,s,a,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Uh);t=hs(t)||0,Qn(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Hh(hs(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function h(k){var P=r,T=i;return r=i=void 0,u=k,s=e.apply(T,P),s}function p(k){return u=k,a=setTimeout(v,t),f?h(k):s}function g(k){var P=k-l,T=k-u,_=t-P;return c?qh(_,o-T):_}function y(k){var P=k-l,T=k-u;return l===void 0||P>=t||P<0||c&&T>=o}function v(){var k=Kr();if(y(k))return b(k);a=setTimeout(v,g(k))}function b(k){return a=void 0,d&&r?h(k):(r=i=void 0,s)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function S(){return a===void 0?s:b(Kr())}function E(){var k=Kr(),P=y(k);if(r=arguments,i=this,l=k,P){if(a===void 0)return p(l);if(c)return clearTimeout(a),a=setTimeout(v,t),h(l)}return a===void 0&&(a=setTimeout(v,t)),s}return E.cancel=x,E.flush=S,E}var Gh="Expected a function";function Xh(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Gh);return Qn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),In(e,t,{leading:r,maxWait:t,trailing:i})}var Kh=!!(typeof window<"u"&&window.document&&window.document.createElement),Yh=Kh;const Zl=m.getDefaultExportFromCjs(Yh);var At=function(){return At=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},At.apply(this,arguments)},Tt=null,ps=null;Zl&&window.addEventListener("resize",function(){ps!==window.devicePixelRatio&&(ps=window.devicePixelRatio,Tt=null)});function ms(){if(Tt===null){if(typeof document>"u")return Tt=0,Tt;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Tt=n}return Tt}function Ql(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function eu(e){return!e||!e.ownerDocument?document:e.ownerDocument}var tu=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function nu(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function ru(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function iu(e){return".".concat(e.split(" ").join("."))}var Jh=Object.freeze({__proto__:null,getElementWindow:Ql,getElementDocument:eu,getOptions:tu,addClasses:nu,removeClasses:ru,classNamesToQuery:iu}),Ge=Ql,Yr=eu,Zh=tu,Xe=nu,Ke=ru,ae=iu,Cn=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Ge(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Xe(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ke(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Xe(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ke(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,u,f,c,d,h,p,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,v=r.axis[r.draggedAxis].track,b=(s=(o=v.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,x=r.axis[r.draggedAxis].scrollbar,S=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,E=parseInt((f=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var k=y-((d=(c=v.rect)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-r.axis[r.draggedAxis].dragOffset;k=r.draggedAxis==="x"&&r.isRtl?((p=(h=v.rect)===null||h===void 0?void 0:h[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-x.size-k:k;var P=k/(b-x.size),T=P*(S-E);r.draggedAxis==="x"&&r.isRtl&&(T=!((g=e.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-T:T),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=T}},this.onEndDrag=function(i){var o=Yr(r.el),s=Ge(r.el);i.preventDefault(),i.stopPropagation(),Ke(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=At(At({},e.defaultOptions),n),this.classNames=At(At({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Xh(this._onMouseMove,64),this.onWindowResize=In(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=In(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=In(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ms()}catch{return ms()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Yr(t),i=Ge(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Zl&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(ae(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ae(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ae(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ae(this.classNames.offset)),this.maskEl=this.el.querySelector(ae(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ae(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ae(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ae(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ae(this.classNames.track)).concat(ae(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ae(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(ae(this.classNames.scrollbar)))||null,this.options.autoHide||(Xe(this.axis.x.scrollbar.el,this.classNames.visible),Xe(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Ge(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Ge(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?u:-u);var f=u/(s-l),c=~~((a-o.size)*f);c=t==="x"&&this.isRtl?-c+(a-o.size):c,o.el.style.transform=t==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Xe(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ke(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Xe(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Xe(n.scrollbar.el,this.classNames.hover):Ke(n.scrollbar.el,this.classNames.hover)):(Ke(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ke(this.axis[t].track.el,this.classNames.hover),Ke(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=Yr(this.el),o=Ge(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Xe(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Ge(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,c=(o=(i=f.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),h=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],p=n==="y"?this.mouseY-c:this.mouseX-c,g=p<0?-1:1,y=g===-1?h-d:h+d,v=40,b=function(){r.contentWrapperEl&&(g===-1?h>y&&(h-=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=h,u.requestAnimationFrame(b)):h<y&&(h+=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=h,u.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ge(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Zh,e.helpers=Jh,e}(),ge=function(){return ge=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ge.apply(this,arguments)};function Qh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ou=m.reactExports.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=Qh(e,["children","scrollableNodeProps"]),s=m.reactExports.useRef(),a=m.reactExports.useRef(),l=m.reactExports.useRef(),u={},f={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(Cn.defaultOptions,h)?u[h]=o[h]:f[h]=o[h]});var c=ge(ge({},Cn.defaultOptions.classNames),u.classNames),d=ge(ge({},i),{className:"".concat(c.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||Cn.defaultOptions.ariaLabel});return m.reactExports.useEffect(function(){var h;return a.current=d.ref?d.ref.current:a.current,s.current&&(h=new Cn(s.current,ge(ge(ge({},u),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),m.reactExports.createElement("div",ge({"data-simplebar":"init",ref:s},f),m.reactExports.createElement("div",{className:c.wrapper},m.reactExports.createElement("div",{className:c.heightAutoObserverWrapperEl},m.reactExports.createElement("div",{className:c.heightAutoObserverEl})),m.reactExports.createElement("div",{className:c.mask},m.reactExports.createElement("div",{className:c.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:ge(ge({},d),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):m.reactExports.createElement("div",ge({},d),m.reactExports.createElement("div",{className:c.contentEl},n)))),m.reactExports.createElement("div",{className:c.placeholder})),m.reactExports.createElement("div",{className:"".concat(c.track," simplebar-horizontal")},m.reactExports.createElement("div",{className:c.scrollbar})),m.reactExports.createElement("div",{className:"".concat(c.track," simplebar-vertical")},m.reactExports.createElement("div",{className:c.scrollbar})))});ou.displayName="SimpleBar";const ep=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
6
|
-
`,tp={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},np=e=>{window.location.href=`${e}/authentication/login?callbackUrl=${window.location.href}`},rp=e=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.href}`},ip=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#C5C5C5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#BE1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
7
|
-
`;function su({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return m.jsxRuntimeExports.jsxs(m.jsxRuntimeExports.Fragment,{children:[m.jsxRuntimeExports.jsx("style",{type:"text/css",children:ip}),m.jsxRuntimeExports.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:m.jsxRuntimeExports.jsxs("div",{className:"modal-container",children:[m.jsxRuntimeExports.jsx("h3",{className:"modal-title",children:"Log out"}),m.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),m.jsxRuntimeExports.jsxs("div",{className:"modal-footer",children:[m.jsxRuntimeExports.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),m.jsxRuntimeExports.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}var Bt={};/**
|
|
8
|
-
* @license React
|
|
9
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var au=m.reactExports;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var le=Object.prototype.hasOwnProperty,op=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gs={},ys={};function lu(e){return le.call(ys,e)?!0:le.call(gs,e)?!1:op.test(e)?ys[e]=!0:(gs[e]=!0,!1)}function oe(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ee[t]=new oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new oe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ao=/[\-:]([a-z])/g;function lo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ao,lo);ee[t]=new oe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ao,lo);ee[t]=new oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ao,lo);ee[t]=new oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new oe(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new oe(e,1,!1,e.toLowerCase(),null,!0,!0)});var Nn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sp=["Webkit","ms","Moz","O"];Object.keys(Nn).forEach(function(e){sp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});var ap=/["'&<>]/;function ie(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=ap.exec(e);if(t){var n="",r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var lp=/([A-Z])/g,up=/^ms-/,Pi=Array.isArray;function Ie(e,t){return{insertionMode:e,selectedValue:t}}function cp(e,t,n){switch(t){case"select":return Ie(1,n.value!=null?n.value:n.defaultValue);case"svg":return Ie(2,null);case"math":return Ie(3,null);case"foreignObject":return Ie(1,null);case"table":return Ie(4,null);case"thead":case"tbody":case"tfoot":return Ie(5,null);case"colgroup":return Ie(7,null);case"tr":return Ie(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Ie(1,null):e}var vs=new Map;function uu(e,t,n){if(typeof n!="object")throw Error(O(62));t=!0;for(var r in n)if(le.call(n,r)){var i=n[r];if(i!=null&&typeof i!="boolean"&&i!==""){if(r.indexOf("--")===0){var o=ie(r);i=ie((""+i).trim())}else{o=r;var s=vs.get(o);s!==void 0||(s=ie(o.replace(lp,"-$1").toLowerCase().replace(up,"-ms-")),vs.set(o,s)),o=s,i=typeof i=="number"?i===0||le.call(Nn,r)?""+i:i+"px":ie((""+i).trim())}t?(t=!1,e.push(' style="',o,":",i)):e.push(";",o,":",i)}}t||e.push('"')}function pe(e,t,n,r){switch(n){case"style":uu(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(t=ee.hasOwnProperty(n)?ee[n]:null,t!==null){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:r===!0?e.push(" ",n,'=""'):r!==!1&&e.push(" ",n,'="',ie(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',ie(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',ie(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',ie(r),'"')}}else if(lu(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(t=n.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(" ",n,'="',ie(r),'"')}}}function Bn(e,t,n){if(t!=null){if(n!=null)throw Error(O(60));if(typeof t!="object"||!("__html"in t))throw Error(O(61));t=t.__html,t!=null&&e.push(""+t)}}function fp(e){var t="";return au.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Jr(e,t,n,r){e.push(Ae(n));var i=n=null,o;for(o in t)if(le.call(t,o)){var s=t[o];if(s!=null)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:pe(e,r,o,s)}}return e.push(">"),Bn(e,i,n),typeof n=="string"?(e.push(ie(n)),null):n}var dp=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xs=new Map;function Ae(e){var t=xs.get(e);if(t===void 0){if(!dp.test(e))throw Error(O(65,e));t="<"+e,xs.set(e,t)}return t}function hp(e,t,n,r,i){switch(t){case"select":e.push(Ae("select"));var o=null,s=null;for(f in n)if(le.call(n,f)){var a=n[f];if(a!=null)switch(f){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:pe(e,r,f,a)}}return e.push(">"),Bn(e,s,o),o;case"option":s=i.selectedValue,e.push(Ae("option"));var l=a=null,u=null,f=null;for(o in n)if(le.call(n,o)){var c=n[o];if(c!=null)switch(o){case"children":a=c;break;case"selected":u=c;break;case"dangerouslySetInnerHTML":f=c;break;case"value":l=c;default:pe(e,r,o,c)}}if(s!=null)if(n=l!==null?""+l:fp(a),Pi(s)){for(r=0;r<s.length;r++)if(""+s[r]===n){e.push(' selected=""');break}}else""+s===n&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),Bn(e,f,a),a;case"textarea":e.push(Ae("textarea")),f=s=o=null;for(a in n)if(le.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":f=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(O(91));default:pe(e,r,a,l)}if(o===null&&s!==null&&(o=s),e.push(">"),f!=null){if(o!=null)throw Error(O(92));if(Pi(f)&&1<f.length)throw Error(O(93));o=""+f}return typeof o=="string"&&o[0]===`
|
|
16
|
-
`&&e.push(`
|
|
17
|
-
`),o!==null&&e.push(ie(""+o)),null;case"input":e.push(Ae("input")),l=f=a=o=null;for(s in n)if(le.call(n,s)&&(u=n[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(O(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":o=u;break;default:pe(e,r,s,u)}return f!==null?pe(e,r,"checked",f):l!==null&&pe(e,r,"checked",l),o!==null?pe(e,r,"value",o):a!==null&&pe(e,r,"value",a),e.push("/>"),null;case"menuitem":e.push(Ae("menuitem"));for(var d in n)if(le.call(n,d)&&(o=n[d],o!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(O(400));default:pe(e,r,d,o)}return e.push(">"),null;case"title":e.push(Ae("title")),o=null;for(c in n)if(le.call(n,c)&&(s=n[c],s!=null))switch(c){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(O(434));default:pe(e,r,c,s)}return e.push(">"),o;case"listing":case"pre":e.push(Ae(t)),s=o=null;for(l in n)if(le.call(n,l)&&(a=n[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:pe(e,r,l,a)}if(e.push(">"),s!=null){if(o!=null)throw Error(O(60));if(typeof s!="object"||!("__html"in s))throw Error(O(61));n=s.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===`
|
|
18
|
-
`?e.push(`
|
|
19
|
-
`,n):e.push(""+n))}return typeof o=="string"&&o[0]===`
|
|
20
|
-
`&&e.push(`
|
|
21
|
-
`),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Ae(t));for(var h in n)if(le.call(n,h)&&(o=n[h],o!=null))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(O(399,t));default:pe(e,r,h,o)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Jr(e,n,t,r);case"html":return i.insertionMode===0&&e.push("<!DOCTYPE html>"),Jr(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return Jr(e,n,t,r);e.push(Ae(t)),s=o=null;for(u in n)if(le.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":uu(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:lu(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",u,'="',ie(a),'"')}return e.push(">"),Bn(e,s,o),o}}function bs(e,t,n){if(e.push('<!--$?--><template id="'),n===null)throw Error(O(395));return e.push(n),e.push('"></template>')}function pp(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(O(397))}}function mp(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(O(397))}}var gp=/[<\u2028\u2029]/g;function Zr(e){return JSON.stringify(e).replace(gp,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function yp(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function ws(e,t,n,r){return n.generateStaticMarkup?(e.push(ie(t)),!1):(t===""?e=r:(r&&e.push("<!-- -->"),e.push(ie(t)),e=!0),e)}var Qt=Object.assign,vp=Symbol.for("react.element"),cu=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),du=Symbol.for("react.strict_mode"),hu=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),mu=Symbol.for("react.context"),gu=Symbol.for("react.forward_ref"),yu=Symbol.for("react.suspense"),vu=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),uo=Symbol.for("react.lazy"),xp=Symbol.for("react.scope"),bp=Symbol.for("react.debug_trace_mode"),wp=Symbol.for("react.legacy_hidden"),Sp=Symbol.for("react.default_value"),Ss=Symbol.iterator;function Ri(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fu:return"Fragment";case cu:return"Portal";case hu:return"Profiler";case du:return"StrictMode";case yu:return"Suspense";case vu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mu:return(e.displayName||"Context")+".Consumer";case pu:return(e._context.displayName||"Context")+".Provider";case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xu:return t=e.displayName||null,t!==null?t:Ri(e.type)||"Memo";case uo:t=e._payload,e=e._init;try{return Ri(e(t))}catch{}}return null}var bu={};function Es(e,t){if(e=e.contextTypes,!e)return bu;var n={},r;for(r in e)n[r]=t[r];return n}var gt=null;function Tr(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(O(401))}else{if(n===null)throw Error(O(401));Tr(e,n)}t.context._currentValue2=t.value}}function wu(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&wu(e)}function Su(e){var t=e.parent;t!==null&&Su(t),e.context._currentValue2=e.value}function Eu(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(O(402));e.depth===t.depth?Tr(e,t):Eu(e,t)}function Cu(e,t){var n=t.parent;if(n===null)throw Error(O(402));e.depth===n.depth?Tr(e,n):Cu(e,n),t.context._currentValue2=t.value}function er(e){var t=gt;t!==e&&(t===null?Su(e):e===null?wu(t):t.depth===e.depth?Tr(t,e):t.depth>e.depth?Eu(t,e):Cu(t,e),gt=e)}var Cs={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ks(e,t,n,r){var i=e.state!==void 0?e.state:null;e.updater=Cs,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue2:r,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,i),i=s==null?i:Qt({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&Cs.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,o,n,r):a,a!=null&&(i?(i=!1,o=Qt({},o,a)):Qt(o,a))}e.state=o}else o.queue=null}var Ep={id:1,overflow:""};function Ai(e,t,n){var r=e.id;e=e.overflow;var i=32-$n(r)-1;r&=~(1<<i),n+=1;var o=32-$n(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-$n(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var $n=Math.clz32?Math.clz32:Tp,Cp=Math.log,kp=Math.LN2;function Tp(e){return e>>>=0,e===0?32:31-(Cp(e)/kp|0)|0}function Pp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rp=typeof Object.is=="function"?Object.is:Pp,We=null,co=null,zn=null,F=null,Xt=!1,tr=!1,un=0,tt=null,Pr=0;function ht(){if(We===null)throw Error(O(321));return We}function Ts(){if(0<Pr)throw Error(O(312));return{memoizedState:null,queue:null,next:null}}function fo(){return F===null?zn===null?(Xt=!1,zn=F=Ts()):(Xt=!0,F=zn):F.next===null?(Xt=!1,F=F.next=Ts()):(Xt=!0,F=F.next),F}function ho(){co=We=null,tr=!1,zn=null,Pr=0,F=tt=null}function ku(e,t){return typeof t=="function"?t(e):t}function Ps(e,t,n){if(We=ht(),F=fo(),Xt){var r=F.queue;if(t=r.dispatch,tt!==null&&(n=tt.get(r),n!==void 0)){tt.delete(r),r=F.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return F.memoizedState=r,[r,t]}return[F.memoizedState,t]}return e=e===ku?typeof t=="function"?t():t:n!==void 0?n(t):t,F.memoizedState=e,e=F.queue={last:null,dispatch:null},e=e.dispatch=Ap.bind(null,We,e),[F.memoizedState,e]}function Rs(e,t){if(We=ht(),F=fo(),t=t===void 0?null:t,F!==null){var n=F.memoizedState;if(n!==null&&t!==null){var r=n[1];e:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Rp(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),F.memoizedState=[e,t],e}function Ap(e,t,n){if(25<=Pr)throw Error(O(301));if(e===We)if(tr=!0,e={action:n,next:null},tt===null&&(tt=new Map),n=tt.get(t),n===void 0)tt.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function Op(){throw Error(O(394))}function kn(){}var As={readContext:function(e){return e._currentValue2},useContext:function(e){return ht(),e._currentValue2},useMemo:Rs,useReducer:Ps,useRef:function(e){We=ht(),F=fo();var t=F.memoizedState;return t===null?(e={current:e},F.memoizedState=e):t},useState:function(e){return Ps(ku,e)},useInsertionEffect:kn,useLayoutEffect:function(){},useCallback:function(e,t){return Rs(function(){return e},t)},useImperativeHandle:kn,useEffect:kn,useDebugValue:kn,useDeferredValue:function(e){return ht(),e},useTransition:function(){return ht(),[!1,Op]},useId:function(){var e=co.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-$n(e)-1)).toString(32)+t;var n=Wn;if(n===null)throw Error(O(404));return t=un++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return ht(),t(e._source)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(O(407));return n()}},Wn=null,Qr=au.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function _p(e){return console.error(e),null}function Kt(){}function Mp(e,t,n,r,i,o,s,a,l){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?_p:i,onAllReady:o===void 0?Kt:o,onShellReady:s===void 0?Kt:s,onShellError:a===void 0?Kt:a,onFatalError:l===void 0?Kt:l},n=nr(t,0,null,n,!1,!1),n.parentFlushed=!0,e=po(t,e,null,n,f,bu,null,Ep),u.push(e),t}function po(e,t,n,r,i,o,s,a){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&Ru(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(l),l}function nr(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function cn(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function rr(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Os(e,t,n,r,i){for(We={},co=t,un=0,e=n(r,i);tr;)tr=!1,un=0,Pr+=1,F=null,e=n(r,i);return ho(),e}function _s(e,t,n,r){var i=n.render(),o=r.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof n.getChildContext!="function")r=s;else{n=n.getChildContext();for(var a in n)if(!(a in o))throw Error(O(108,Ri(r)||"Unknown",a));r=Qt({},s,n)}t.legacyContext=r,ye(e,t,i),t.legacyContext=s}else ye(e,t,i)}function Ms(e,t){if(e&&e.defaultProps){t=Qt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Oi(e,t,n,r,i){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){i=Es(n,t.legacyContext);var o=n.contextType;o=new n(r,typeof o=="object"&&o!==null?o._currentValue2:i),ks(o,n,r,i),_s(e,t,o,n)}else{o=Es(n,t.legacyContext),i=Os(e,t,n,r,o);var s=un!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)ks(i,n,r,o),_s(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=Ai(r,1,0);try{ye(e,t,i)}finally{t.treeContext=r}}else ye(e,t,i)}else if(typeof n=="string"){switch(i=t.blockedSegment,o=hp(i.chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=cp(s,n,r),_i(e,t,o),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}else{switch(n){case wp:case bp:case du:case hu:case fu:ye(e,t,r.children);return;case vu:ye(e,t,r.children);return;case xp:throw Error(O(343));case yu:e:{n=t.blockedBoundary,i=t.blockedSegment,o=r.fallback,r=r.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=nr(e,i.chunks.length,a,i.formatContext,!1,!1);i.children.push(l),i.lastPushedText=!1;var u=nr(e,0,null,i.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(_i(e,t,r),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),u.status=1,ir(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=cn(e,f)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=po(e,o,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case gu:if(r=Os(e,t,n.render,r,i),un!==0){n=t.treeContext,t.treeContext=Ai(n,1,0);try{ye(e,t,r)}finally{t.treeContext=n}}else ye(e,t,r);return;case xu:n=n.type,r=Ms(n,r),Oi(e,t,n,r,i);return;case pu:if(i=r.children,n=n._context,r=r.value,o=n._currentValue2,n._currentValue2=r,s=gt,gt=r={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:r},t.context=r,ye(e,t,i),e=gt,e===null)throw Error(O(403));r=e.parentValue,e.context._currentValue2=r===Sp?e.context._defaultValue:r,e=gt=e.parent,t.context=e;return;case mu:r=r.children,r=r(n._currentValue2),ye(e,t,r);return;case uo:i=n._init,n=i(n._payload),r=Ms(n,r),Oi(e,t,n,r,void 0);return}throw Error(O(130,n==null?n:typeof n,""))}}function ye(e,t,n){if(t.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case vp:Oi(e,t,n.type,n.props,n.ref);return;case cu:throw Error(O(257));case uo:var r=n._init;n=r(n._payload),ye(e,t,n);return}if(Pi(n)){js(e,t,n);return}if(n===null||typeof n!="object"?r=null:(r=Ss&&n[Ss]||n["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(n))){if(n=r.next(),!n.done){var i=[];do i.push(n.value),n=r.next();while(!n.done);js(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}typeof n=="string"?(r=t.blockedSegment,r.lastPushedText=ws(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText)):typeof n=="number"&&(r=t.blockedSegment,r.lastPushedText=ws(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function js(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Ai(o,r,i);try{_i(e,t,n[i])}finally{t.treeContext=o}}}function _i(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return ye(e,t,n)}catch(l){if(ho(),typeof l=="object"&&l!==null&&typeof l.then=="function"){n=l;var s=t.blockedSegment,a=nr(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=po(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,er(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,er(o),l}}function jp(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Pu(this,t,e)}function Tu(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=n===void 0?Error(O(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(i){return Tu(i,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function ir(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&ir(e,n)}else e.completedSegments.push(t)}function Pu(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(O(389));e.completedRootSegment=n}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Kt,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===1&&ir(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(jp,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(ir(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function Ru(e){if(e.status!==2){var t=gt,n=Qr.current;Qr.current=As;var r=Wn;Wn=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(l.status===0){er(s.context);try{ye(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),s.abortSet.delete(s),l.status=1,Pu(a,s.blockedBoundary,l)}catch(p){if(ho(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=s.ping;p.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,c=p,d=cn(a,c);if(f===null?rr(a,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=d,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var h=a.onAllReady;h()}}}finally{}}}i.splice(0,o),e.destination!==null&&mo(e,e.destination)}catch(p){cn(e,p),rr(e,p)}finally{Wn=r,Qr.current=n,n===As&&er(t)}}}function Tn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)t.push(r[o]);i=Rr(e,t,i)}for(;o<r.length-1;o++)t.push(r[o]);return o<r.length&&(i=t.push(r[o])),i;default:throw Error(O(390))}}function Rr(e,t,n){var r=n.boundary;if(r===null)return Tn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("<!--$!-->"),t.push("<template"),r&&(t.push(' data-dgst="'),r=ie(r),t.push(r),t.push('"')),t.push("></template>")),Tn(e,t,n),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,o=i.nextSuspenseID++;return i=i.boundaryPrefix+o.toString(16),r=r.id=i,bs(t,e.responseState,r),Tn(e,t,n),t.push("<!--/$-->")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),bs(t,e.responseState,r.id),Tn(e,t,n),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),n=r.completedSegments,n.length!==1)throw Error(O(391));return Rr(e,t,n[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function Vs(e,t,n){return pp(t,e.responseState,n.formatContext,n.id),Rr(e,t,n),mp(t,n.formatContext)}function Fs(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)Au(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),r===null)throw Error(O(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function Au(e,t,n,r){if(r.status===2)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(O(392));return Vs(e,t,r)}return Vs(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function mo(e,t){try{var n=e.completedRootSegment;if(n!==null&&e.pendingRootTasks===0){Rr(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];r=t;var a=e.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(r.push(a.startInlineScript),a.sentClientRenderFunction?r.push('$RX("'):(a.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(O(395));if(r.push(l),r.push('"'),u||f||c){r.push(",");var d=Zr(u||"");r.push(d)}if(f||c){r.push(",");var h=Zr(f||"");r.push(h)}if(c){r.push(",");var p=Zr(c);r.push(p)}if(!r.push(")<\/script>")){e.destination=null,o++,i.splice(0,o);return}}i.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!Fs(e,t,g[o])){e.destination=null,o++,g.splice(0,o);return}g.splice(0,o);var y=e.partialBoundaries;for(o=0;o<y.length;o++){var v=y[o];e:{i=e,s=t;var b=v.completedSegments;for(a=0;a<b.length;a++)if(!Au(i,s,v,b[a])){a++,b.splice(0,a);var x=!1;break e}b.splice(0,a),x=!0}if(!x){e.destination=null,o++,y.splice(0,o);return}}y.splice(0,o);var S=e.completedBoundaries;for(o=0;o<S.length;o++)if(!Fs(e,t,S[o])){e.destination=null,o++,S.splice(0,o);return}S.splice(0,o)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function Vp(e,t){try{var n=e.abortableTasks;n.forEach(function(r){return Tu(r,e,t)}),n.clear(),e.destination!==null&&mo(e,e.destination)}catch(r){cn(e,r),rr(e,r)}}function Fp(){}function Ou(e,t,n,r){var i=!1,o=null,s="",a={push:function(u){return u!==null&&(s+=u),!0},destroy:function(u){i=!0,o=u}},l=!1;if(e=Mp(e,yp(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Fp,void 0,function(){l=!0},void 0,void 0),Ru(e),Vp(e,r),e.status===1)e.status=2,a.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=a;try{mo(e,a)}catch(u){cn(e,u),rr(e,u)}}if(i)throw o;if(!l)throw Error(O(426));return s}Bt.renderToNodeStream=function(){throw Error(O(207))};Bt.renderToStaticMarkup=function(e,t){return Ou(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Bt.renderToStaticNodeStream=function(){throw Error(O(208))};Bt.renderToString=function(e,t){return Ou(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Bt.version="18.2.0";var go={};/**
|
|
22
|
-
* @license React
|
|
23
|
-
* react-dom-server.browser.production.min.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var _u=m.reactExports;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ve=null,xe=0;function R(e,t){if(t.length!==0)if(512<t.length)0<xe&&(e.enqueue(new Uint8Array(ve.buffer,0,xe)),ve=new Uint8Array(512),xe=0),e.enqueue(t);else{var n=ve.length-xe;n<t.length&&(n===0?e.enqueue(ve):(ve.set(t.subarray(0,n),xe),e.enqueue(ve),t=t.subarray(n)),ve=new Uint8Array(512),xe=0),ve.set(t,xe),xe+=t.length}}function N(e,t){return R(e,t),!0}function Ls(e){ve&&0<xe&&(e.enqueue(new Uint8Array(ve.buffer,0,xe)),ve=null,xe=0)}var Mu=new TextEncoder;function j(e){return Mu.encode(e)}function C(e){return Mu.encode(e)}function ju(e,t){typeof e.error=="function"?e.error(t):e.close()}var ue=Object.prototype.hasOwnProperty,Lp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ds={},Is={};function Vu(e){return ue.call(Is,e)?!0:ue.call(Ds,e)?!1:Lp.test(e)?Is[e]=!0:(Ds[e]=!0,!1)}function se(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var yo=/[\-:]([a-z])/g;function vo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yo,vo);te[t]=new se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yo,vo);te[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yo,vo);te[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});var Un={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dp=["Webkit","ms","Moz","O"];Object.keys(Un).forEach(function(e){Dp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Un[t]=Un[e]})});var Ip=/["'&<>]/;function Q(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=Ip.exec(e);if(t){var n="",r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var Np=/([A-Z])/g,Bp=/^ms-/,Mi=Array.isArray,$p=C("<script>"),zp=C("<\/script>"),Wp=C('<script src="'),Up=C('<script type="module" src="'),Ns=C('" async=""><\/script>'),Hp=/(<\/|<)(s)(cript)/gi;function qp(e,t,n,r){return""+t+(n==="s"?"\\u0073":"\\u0053")+r}function Gp(e,t,n,r,i){e=e===void 0?"":e,t=t===void 0?$p:C('<script nonce="'+Q(t)+'">');var o=[];if(n!==void 0&&o.push(t,j((""+n).replace(Hp,qp)),zp),r!==void 0)for(n=0;n<r.length;n++)o.push(Wp,j(Q(r[n])),Ns);if(i!==void 0)for(r=0;r<i.length;r++)o.push(Up,j(Q(i[r])),Ns);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:C(e+"P:"),segmentPrefix:C(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Oe(e,t){return{insertionMode:e,selectedValue:t}}function Xp(e){return Oe(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Kp(e,t,n){switch(t){case"select":return Oe(1,n.value!=null?n.value:n.defaultValue);case"svg":return Oe(2,null);case"math":return Oe(3,null);case"foreignObject":return Oe(1,null);case"table":return Oe(4,null);case"thead":case"tbody":case"tfoot":return Oe(5,null);case"colgroup":return Oe(7,null);case"tr":return Oe(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Oe(1,null):e}var xo=C("<!-- -->");function Bs(e,t,n,r){return t===""?r:(r&&e.push(xo),e.push(j(Q(t))),!0)}var $s=new Map,Yp=C(' style="'),zs=C(":"),Jp=C(";");function Fu(e,t,n){if(typeof n!="object")throw Error(M(62));t=!0;for(var r in n)if(ue.call(n,r)){var i=n[r];if(i!=null&&typeof i!="boolean"&&i!==""){if(r.indexOf("--")===0){var o=j(Q(r));i=j(Q((""+i).trim()))}else{o=r;var s=$s.get(o);s!==void 0||(s=C(Q(o.replace(Np,"-$1").toLowerCase().replace(Bp,"-ms-"))),$s.set(o,s)),o=s,i=typeof i=="number"?i===0||ue.call(Un,r)?j(""+i):j(i+"px"):j(Q((""+i).trim()))}t?(t=!1,e.push(Yp,o,zs,i)):e.push(Jp,o,zs,i)}}t||e.push(pt)}var Ye=C(" "),Pt=C('="'),pt=C('"'),Ws=C('=""');function me(e,t,n,r){switch(n){case"style":Fu(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(t=te.hasOwnProperty(n)?te[n]:null,t!==null){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=j(t.attributeName),t.type){case 3:r&&e.push(Ye,n,Ws);break;case 4:r===!0?e.push(Ye,n,Ws):r!==!1&&e.push(Ye,n,Pt,j(Q(r)),pt);break;case 5:isNaN(r)||e.push(Ye,n,Pt,j(Q(r)),pt);break;case 6:!isNaN(r)&&1<=r&&e.push(Ye,n,Pt,j(Q(r)),pt);break;default:t.sanitizeURL&&(r=""+r),e.push(Ye,n,Pt,j(Q(r)),pt)}}else if(Vu(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(t=n.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(Ye,j(n),Pt,j(Q(r)),pt)}}}var Je=C(">"),Us=C("/>");function Hn(e,t,n){if(t!=null){if(n!=null)throw Error(M(60));if(typeof t!="object"||!("__html"in t))throw Error(M(61));t=t.__html,t!=null&&e.push(j(""+t))}}function Zp(e){var t="";return _u.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}var ei=C(' selected=""');function ti(e,t,n,r){e.push(_e(n));var i=n=null,o;for(o in t)if(ue.call(t,o)){var s=t[o];if(s!=null)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:me(e,r,o,s)}}return e.push(Je),Hn(e,i,n),typeof n=="string"?(e.push(j(Q(n))),null):n}var ni=C(`
|
|
30
|
-
`),Qp=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Hs=new Map;function _e(e){var t=Hs.get(e);if(t===void 0){if(!Qp.test(e))throw Error(M(65,e));t=C("<"+e),Hs.set(e,t)}return t}var em=C("<!DOCTYPE html>");function tm(e,t,n,r,i){switch(t){case"select":e.push(_e("select"));var o=null,s=null;for(f in n)if(ue.call(n,f)){var a=n[f];if(a!=null)switch(f){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:me(e,r,f,a)}}return e.push(Je),Hn(e,s,o),o;case"option":s=i.selectedValue,e.push(_e("option"));var l=a=null,u=null,f=null;for(o in n)if(ue.call(n,o)){var c=n[o];if(c!=null)switch(o){case"children":a=c;break;case"selected":u=c;break;case"dangerouslySetInnerHTML":f=c;break;case"value":l=c;default:me(e,r,o,c)}}if(s!=null)if(n=l!==null?""+l:Zp(a),Mi(s)){for(r=0;r<s.length;r++)if(""+s[r]===n){e.push(ei);break}}else""+s===n&&e.push(ei);else u&&e.push(ei);return e.push(Je),Hn(e,f,a),a;case"textarea":e.push(_e("textarea")),f=s=o=null;for(a in n)if(ue.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":f=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(M(91));default:me(e,r,a,l)}if(o===null&&s!==null&&(o=s),e.push(Je),f!=null){if(o!=null)throw Error(M(92));if(Mi(f)&&1<f.length)throw Error(M(93));o=""+f}return typeof o=="string"&&o[0]===`
|
|
31
|
-
`&&e.push(ni),o!==null&&e.push(j(Q(""+o))),null;case"input":e.push(_e("input")),l=f=a=o=null;for(s in n)if(ue.call(n,s)&&(u=n[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(M(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":o=u;break;default:me(e,r,s,u)}return f!==null?me(e,r,"checked",f):l!==null&&me(e,r,"checked",l),o!==null?me(e,r,"value",o):a!==null&&me(e,r,"value",a),e.push(Us),null;case"menuitem":e.push(_e("menuitem"));for(var d in n)if(ue.call(n,d)&&(o=n[d],o!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(M(400));default:me(e,r,d,o)}return e.push(Je),null;case"title":e.push(_e("title")),o=null;for(c in n)if(ue.call(n,c)&&(s=n[c],s!=null))switch(c){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(M(434));default:me(e,r,c,s)}return e.push(Je),o;case"listing":case"pre":e.push(_e(t)),s=o=null;for(l in n)if(ue.call(n,l)&&(a=n[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:me(e,r,l,a)}if(e.push(Je),s!=null){if(o!=null)throw Error(M(60));if(typeof s!="object"||!("__html"in s))throw Error(M(61));n=s.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===`
|
|
32
|
-
`?e.push(ni,j(n)):e.push(j(""+n)))}return typeof o=="string"&&o[0]===`
|
|
33
|
-
`&&e.push(ni),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(_e(t));for(var h in n)if(ue.call(n,h)&&(o=n[h],o!=null))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(M(399,t));default:me(e,r,h,o)}return e.push(Us),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ti(e,n,t,r);case"html":return i.insertionMode===0&&e.push(em),ti(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return ti(e,n,t,r);e.push(_e(t)),s=o=null;for(u in n)if(ue.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":Fu(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Vu(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(Ye,j(u),Pt,j(Q(a)),pt)}return e.push(Je),Hn(e,s,o),o}}var nm=C("</"),rm=C(">"),im=C('<template id="'),om=C('"></template>'),sm=C("<!--$-->"),am=C('<!--$?--><template id="'),lm=C('"></template>'),um=C("<!--$!-->"),cm=C("<!--/$-->"),fm=C("<template"),dm=C('"'),hm=C(' data-dgst="');C(' data-msg="');C(' data-stck="');var pm=C("></template>");function qs(e,t,n){if(R(e,am),n===null)throw Error(M(395));return R(e,n),N(e,lm)}var mm=C('<div hidden id="'),gm=C('">'),ym=C("</div>"),vm=C('<svg aria-hidden="true" style="display:none" id="'),xm=C('">'),bm=C("</svg>"),wm=C('<math aria-hidden="true" style="display:none" id="'),Sm=C('">'),Em=C("</math>"),Cm=C('<table hidden id="'),km=C('">'),Tm=C("</table>"),Pm=C('<table hidden><tbody id="'),Rm=C('">'),Am=C("</tbody></table>"),Om=C('<table hidden><tr id="'),_m=C('">'),Mm=C("</tr></table>"),jm=C('<table hidden><colgroup id="'),Vm=C('">'),Fm=C("</colgroup></table>");function Lm(e,t,n,r){switch(n.insertionMode){case 0:case 1:return R(e,mm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,gm);case 2:return R(e,vm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,xm);case 3:return R(e,wm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Sm);case 4:return R(e,Cm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,km);case 5:return R(e,Pm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Rm);case 6:return R(e,Om),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,_m);case 7:return R(e,jm),R(e,t.segmentPrefix),R(e,j(r.toString(16))),N(e,Vm);default:throw Error(M(397))}}function Dm(e,t){switch(t.insertionMode){case 0:case 1:return N(e,ym);case 2:return N(e,bm);case 3:return N(e,Em);case 4:return N(e,Tm);case 5:return N(e,Am);case 6:return N(e,Mm);case 7:return N(e,Fm);default:throw Error(M(397))}}var Im=C('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Nm=C('$RS("'),Bm=C('","'),$m=C('")<\/script>'),zm=C('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Wm=C('$RC("'),Um=C('","'),Hm=C('")<\/script>'),qm=C('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Gm=C('$RX("'),Xm=C('"'),Km=C(")<\/script>"),ri=C(","),Ym=/[<\u2028\u2029]/g;function ii(e){return JSON.stringify(e).replace(Ym,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var en=Object.assign,Jm=Symbol.for("react.element"),Lu=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),Iu=Symbol.for("react.strict_mode"),Nu=Symbol.for("react.profiler"),Bu=Symbol.for("react.provider"),$u=Symbol.for("react.context"),zu=Symbol.for("react.forward_ref"),Wu=Symbol.for("react.suspense"),Uu=Symbol.for("react.suspense_list"),Hu=Symbol.for("react.memo"),bo=Symbol.for("react.lazy"),Zm=Symbol.for("react.scope"),Qm=Symbol.for("react.debug_trace_mode"),eg=Symbol.for("react.legacy_hidden"),tg=Symbol.for("react.default_value"),Gs=Symbol.iterator;function ji(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Du:return"Fragment";case Lu:return"Portal";case Nu:return"Profiler";case Iu:return"StrictMode";case Wu:return"Suspense";case Uu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $u:return(e.displayName||"Context")+".Consumer";case Bu:return(e._context.displayName||"Context")+".Provider";case zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hu:return t=e.displayName||null,t!==null?t:ji(e.type)||"Memo";case bo:t=e._payload,e=e._init;try{return ji(e(t))}catch{}}return null}var qu={};function Xs(e,t){if(e=e.contextTypes,!e)return qu;var n={},r;for(r in e)n[r]=t[r];return n}var yt=null;function Ar(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(M(401))}else{if(n===null)throw Error(M(401));Ar(e,n)}t.context._currentValue=t.value}}function Gu(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Gu(e)}function Xu(e){var t=e.parent;t!==null&&Xu(t),e.context._currentValue=e.value}function Ku(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(M(402));e.depth===t.depth?Ar(e,t):Ku(e,t)}function Yu(e,t){var n=t.parent;if(n===null)throw Error(M(402));e.depth===n.depth?Ar(e,n):Yu(e,n),t.context._currentValue=t.value}function or(e){var t=yt;t!==e&&(t===null?Xu(e):e===null?Gu(t):t.depth===e.depth?Ar(t,e):t.depth>e.depth?Ku(t,e):Yu(t,e),yt=e)}var Ks={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Ys(e,t,n,r){var i=e.state!==void 0?e.state:null;e.updater=Ks,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:r,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,i),i=s==null?i:en({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&Ks.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,o,n,r):a,a!=null&&(i?(i=!1,o=en({},o,a)):en(o,a))}e.state=o}else o.queue=null}var ng={id:1,overflow:""};function Vi(e,t,n){var r=e.id;e=e.overflow;var i=32-qn(r)-1;r&=~(1<<i),n+=1;var o=32-qn(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-qn(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var qn=Math.clz32?Math.clz32:og,rg=Math.log,ig=Math.LN2;function og(e){return e>>>=0,e===0?32:31-(rg(e)/ig|0)|0}function sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ag=typeof Object.is=="function"?Object.is:sg,Ue=null,wo=null,Gn=null,L=null,Yt=!1,sr=!1,fn=0,nt=null,Or=0;function mt(){if(Ue===null)throw Error(M(321));return Ue}function Js(){if(0<Or)throw Error(M(312));return{memoizedState:null,queue:null,next:null}}function So(){return L===null?Gn===null?(Yt=!1,Gn=L=Js()):(Yt=!0,L=Gn):L.next===null?(Yt=!1,L=L.next=Js()):(Yt=!0,L=L.next),L}function Eo(){wo=Ue=null,sr=!1,Gn=null,Or=0,L=nt=null}function Ju(e,t){return typeof t=="function"?t(e):t}function Zs(e,t,n){if(Ue=mt(),L=So(),Yt){var r=L.queue;if(t=r.dispatch,nt!==null&&(n=nt.get(r),n!==void 0)){nt.delete(r),r=L.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return L.memoizedState=r,[r,t]}return[L.memoizedState,t]}return e=e===Ju?typeof t=="function"?t():t:n!==void 0?n(t):t,L.memoizedState=e,e=L.queue={last:null,dispatch:null},e=e.dispatch=lg.bind(null,Ue,e),[L.memoizedState,e]}function Qs(e,t){if(Ue=mt(),L=So(),t=t===void 0?null:t,L!==null){var n=L.memoizedState;if(n!==null&&t!==null){var r=n[1];e:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!ag(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),L.memoizedState=[e,t],e}function lg(e,t,n){if(25<=Or)throw Error(M(301));if(e===Ue)if(sr=!0,e={action:n,next:null},nt===null&&(nt=new Map),n=nt.get(t),n===void 0)nt.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function ug(){throw Error(M(394))}function Pn(){}var ea={readContext:function(e){return e._currentValue},useContext:function(e){return mt(),e._currentValue},useMemo:Qs,useReducer:Zs,useRef:function(e){Ue=mt(),L=So();var t=L.memoizedState;return t===null?(e={current:e},L.memoizedState=e):t},useState:function(e){return Zs(Ju,e)},useInsertionEffect:Pn,useLayoutEffect:function(){},useCallback:function(e,t){return Qs(function(){return e},t)},useImperativeHandle:Pn,useEffect:Pn,useDebugValue:Pn,useDeferredValue:function(e){return mt(),e},useTransition:function(){return mt(),[!1,ug]},useId:function(){var e=wo.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-qn(e)-1)).toString(32)+t;var n=Xn;if(n===null)throw Error(M(404));return t=fn++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return mt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(M(407));return n()}},Xn=null,oi=_u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function cg(e){return console.error(e),null}function Jt(){}function fg(e,t,n,r,i,o,s,a,l){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?cg:i,onAllReady:o===void 0?Jt:o,onShellReady:s===void 0?Jt:s,onShellError:a===void 0?Jt:a,onFatalError:l===void 0?Jt:l},n=ar(t,0,null,n,!1,!1),n.parentFlushed=!0,e=Co(t,e,null,n,f,qu,null,ng),u.push(e),t}function Co(e,t,n,r,i,o,s,a){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&ec(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(l),l}function ar(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function dn(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function lr(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination!==null?(e.status=2,ju(e.destination,t)):(e.status=1,e.fatalError=t)}function ta(e,t,n,r,i){for(Ue={},wo=t,fn=0,e=n(r,i);sr;)sr=!1,fn=0,Or+=1,L=null,e=n(r,i);return Eo(),e}function na(e,t,n,r){var i=n.render(),o=r.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof n.getChildContext!="function")r=s;else{n=n.getChildContext();for(var a in n)if(!(a in o))throw Error(M(108,ji(r)||"Unknown",a));r=en({},s,n)}t.legacyContext=r,be(e,t,i),t.legacyContext=s}else be(e,t,i)}function ra(e,t){if(e&&e.defaultProps){t=en({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fi(e,t,n,r,i){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){i=Xs(n,t.legacyContext);var o=n.contextType;o=new n(r,typeof o=="object"&&o!==null?o._currentValue:i),Ys(o,n,r,i),na(e,t,o,n)}else{o=Xs(n,t.legacyContext),i=ta(e,t,n,r,o);var s=fn!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)Ys(i,n,r,o),na(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=Vi(r,1,0);try{be(e,t,i)}finally{t.treeContext=r}}else be(e,t,i)}else if(typeof n=="string"){switch(i=t.blockedSegment,o=tm(i.chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=Kp(s,n,r),Li(e,t,o),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(nm,j(n),rm)}i.lastPushedText=!1}else{switch(n){case eg:case Qm:case Iu:case Nu:case Du:be(e,t,r.children);return;case Uu:be(e,t,r.children);return;case Zm:throw Error(M(343));case Wu:e:{n=t.blockedBoundary,i=t.blockedSegment,o=r.fallback,r=r.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=ar(e,i.chunks.length,a,i.formatContext,!1,!1);i.children.push(l),i.lastPushedText=!1;var u=ar(e,0,null,i.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(Li(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(xo),u.status=1,ur(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=dn(e,f)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Co(e,o,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case zu:if(r=ta(e,t,n.render,r,i),fn!==0){n=t.treeContext,t.treeContext=Vi(n,1,0);try{be(e,t,r)}finally{t.treeContext=n}}else be(e,t,r);return;case Hu:n=n.type,r=ra(n,r),Fi(e,t,n,r,i);return;case Bu:if(i=r.children,n=n._context,r=r.value,o=n._currentValue,n._currentValue=r,s=yt,yt=r={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:r},t.context=r,be(e,t,i),e=yt,e===null)throw Error(M(403));r=e.parentValue,e.context._currentValue=r===tg?e.context._defaultValue:r,e=yt=e.parent,t.context=e;return;case $u:r=r.children,r=r(n._currentValue),be(e,t,r);return;case bo:i=n._init,n=i(n._payload),r=ra(n,r),Fi(e,t,n,r,void 0);return}throw Error(M(130,n==null?n:typeof n,""))}}function be(e,t,n){if(t.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case Jm:Fi(e,t,n.type,n.props,n.ref);return;case Lu:throw Error(M(257));case bo:var r=n._init;n=r(n._payload),be(e,t,n);return}if(Mi(n)){ia(e,t,n);return}if(n===null||typeof n!="object"?r=null:(r=Gs&&n[Gs]||n["@@iterator"],r=typeof r=="function"?r:null),r&&(r=r.call(n))){if(n=r.next(),!n.done){var i=[];do i.push(n.value),n=r.next();while(!n.done);ia(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}typeof n=="string"?(r=t.blockedSegment,r.lastPushedText=Bs(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText)):typeof n=="number"&&(r=t.blockedSegment,r.lastPushedText=Bs(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function ia(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Vi(o,r,i);try{Li(e,t,n[i])}finally{t.treeContext=o}}}function Li(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return be(e,t,n)}catch(l){if(Eo(),typeof l=="object"&&l!==null&&typeof l.then=="function"){n=l;var s=t.blockedSegment,a=ar(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=Co(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,or(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,or(o),l}}function dg(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Qu(this,t,e)}function Zu(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,r===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=n===void 0?Error(M(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(i){return Zu(i,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(r=t.onAllReady,r()))}function ur(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&ur(e,n)}else e.completedSegments.push(t)}function Qu(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(M(389));e.completedRootSegment=n}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Jt,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===1&&ur(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(dg,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(ur(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function ec(e){if(e.status!==2){var t=yt,n=oi.current;oi.current=ea;var r=Xn;Xn=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(l.status===0){or(s.context);try{be(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(xo),s.abortSet.delete(s),l.status=1,Qu(a,s.blockedBoundary,l)}catch(p){if(Eo(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=s.ping;p.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,c=p,d=dn(a,c);if(f===null?lr(a,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=d,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var h=a.onAllReady;h()}}}finally{}}}i.splice(0,o),e.destination!==null&&ko(e,e.destination)}catch(p){dn(e,p),lr(e,p)}finally{Xn=r,oi.current=n,n===ea&&or(t)}}}function Rn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,R(t,im),R(t,e.placeholderPrefix),e=j(r.toString(16)),R(t,e),N(t,om);case 1:n.status=2;var i=!0;r=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];o<i.index;o++)R(t,r[o]);i=_r(e,t,i)}for(;o<r.length-1;o++)R(t,r[o]);return o<r.length&&(i=N(t,r[o])),i;default:throw Error(M(390))}}function _r(e,t,n){var r=n.boundary;if(r===null)return Rn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,N(t,um),R(t,fm),r&&(R(t,hm),R(t,j(Q(r))),R(t,dm)),N(t,pm),Rn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,o=i.nextSuspenseID++;i=C(i.boundaryPrefix+o.toString(16)),r=r.id=i,qs(t,e.responseState,r),Rn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),qs(t,e.responseState,r.id),Rn(e,t,n);else{if(N(t,sm),n=r.completedSegments,n.length!==1)throw Error(M(391));_r(e,t,n[0])}return N(t,cm)}function oa(e,t,n){return Lm(t,e.responseState,n.formatContext,n.id),_r(e,t,n),Dm(t,n.formatContext)}function sa(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)tc(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,R(t,e.startInlineScript),e.sentCompleteBoundaryFunction?R(t,Wm):(e.sentCompleteBoundaryFunction=!0,R(t,zm)),r===null)throw Error(M(395));return n=j(n.toString(16)),R(t,r),R(t,Um),R(t,e.segmentPrefix),R(t,n),N(t,Hm)}function tc(e,t,n,r){if(r.status===2)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(M(392));return oa(e,t,r)}return oa(e,t,r),e=e.responseState,R(t,e.startInlineScript),e.sentCompleteSegmentFunction?R(t,Nm):(e.sentCompleteSegmentFunction=!0,R(t,Im)),R(t,e.segmentPrefix),i=j(i.toString(16)),R(t,i),R(t,Bm),R(t,e.placeholderPrefix),R(t,i),N(t,$m)}function ko(e,t){ve=new Uint8Array(512),xe=0;try{var n=e.completedRootSegment;if(n!==null&&e.pendingRootTasks===0){_r(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)R(t,r[n]);n<r.length&&N(t,r[n])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];r=t;var a=e.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(R(r,a.startInlineScript),a.sentClientRenderFunction?R(r,Gm):(a.sentClientRenderFunction=!0,R(r,qm)),l===null)throw Error(M(395));R(r,l),R(r,Xm),(u||f||c)&&(R(r,ri),R(r,j(ii(u||"")))),(f||c)&&(R(r,ri),R(r,j(ii(f||"")))),c&&(R(r,ri),R(r,j(ii(c)))),N(r,Km)}i.splice(0,o);var d=e.completedBoundaries;for(o=0;o<d.length;o++)sa(e,t,d[o]);d.splice(0,o),Ls(t),ve=new Uint8Array(512),xe=0;var h=e.partialBoundaries;for(o=0;o<h.length;o++){var p=h[o];e:{i=e,s=t;var g=p.completedSegments;for(a=0;a<g.length;a++)if(!tc(i,s,p,g[a])){a++,g.splice(0,a);var y=!1;break e}g.splice(0,a),y=!0}if(!y){e.destination=null,o++,h.splice(0,o);return}}h.splice(0,o);var v=e.completedBoundaries;for(o=0;o<v.length;o++)sa(e,t,v[o]);v.splice(0,o)}finally{Ls(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function aa(e,t){try{var n=e.abortableTasks;n.forEach(function(r){return Zu(r,e,t)}),n.clear(),e.destination!==null&&ko(e,e.destination)}catch(r){dn(e,r),lr(e,r)}}go.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,s=new Promise(function(f,c){o=f,i=c}),a=fg(e,Gp(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Xp(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var f=new ReadableStream({type:"bytes",pull:function(c){if(a.status===1)a.status=2,ju(c,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=c;try{ko(a,c)}catch(d){dn(a,d),lr(a,d)}}},cancel:function(){aa(a)}},{highWaterMark:0});f.allReady=s,n(f)},function(f){s.catch(function(){}),r(f)},i);if(t&&t.signal){var l=t.signal,u=function(){aa(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}ec(a)})};go.version="18.2.0";var $t,nc;$t=Bt,nc=go;$t.version;var hg=$t.renderToString;$t.renderToStaticMarkup;$t.renderToNodeStream;$t.renderToStaticNodeStream;nc.renderToReadableStream;var rc={exports:{}},pg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mg=pg,gg=mg;function ic(){}function oc(){}oc.resetWarningCache=ic;var yg=function(){function e(r,i,o,s,a,l){if(l!==gg){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oc,resetWarningCache:ic};return n.PropTypes=n,n};rc.exports=yg();var Y=rc.exports;const Te=m.getDefaultExportFromCjs(Y);var vg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sc(e,t){return e(t={exports:{}},t.exports),t.exports}var xg=sc(function(e){(function(t){var n=function(y,v,b){if(!l(v)||f(v)||c(v)||d(v)||a(v))return v;var x,S=0,E=0;if(u(v))for(x=[],E=v.length;S<E;S++)x.push(n(y,v[S],b));else for(var k in x={},v)Object.prototype.hasOwnProperty.call(v,k)&&(x[y(k,b)]=n(y,v[k],b));return x},r=function(y){return h(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(v,b){return b?b.toUpperCase():""})).substr(0,1).toLowerCase()+y.substr(1)},i=function(y){var v=r(y);return v.substr(0,1).toUpperCase()+v.substr(1)},o=function(y,v){return function(b,x){var S=(x=x||{}).separator||"_",E=x.split||/(?=[A-Z])/;return b.split(E).join(S)}(y,v).toLowerCase()},s=Object.prototype.toString,a=function(y){return typeof y=="function"},l=function(y){return y===Object(y)},u=function(y){return s.call(y)=="[object Array]"},f=function(y){return s.call(y)=="[object Date]"},c=function(y){return s.call(y)=="[object RegExp]"},d=function(y){return s.call(y)=="[object Boolean]"},h=function(y){return(y-=0)==y},p=function(y,v){var b=v&&"process"in v?v.process:v;return typeof b!="function"?y:function(x,S){return b(x,y,S)}},g={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(y,v){return n(p(r,v),y)},decamelizeKeys:function(y,v){return n(p(o,v),y,v)},pascalizeKeys:function(y,v){return n(p(i,v),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(vg)}).decamelize,bg=function(e){if(Array.isArray(e))return e},wg=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||a.return==null||a.return()}finally{if(i)throw o}}return n}},la=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Sg=function(e,t){if(e){if(typeof e=="string")return la(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(e,t):void 0}},Eg=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
34
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Cg=function(e,t){return bg(e)||wg(e,t)||Sg(e,t)||Eg()},ac=sc(function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},t.apply(this,arguments)}e.exports=t}),kg=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},lc=function(e,t){if(e==null)return{};var n,r,i=kg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},Tg=m.reactExports.createContext(null);function Di(e){var t=e.children,n=lc(e,["children"]);return typeof t!="string"&&(t=hg(t)),m.React$1.createElement("template",ac({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Ii(e){var t=e.root,n=e.children;return m.reactDomExports.createPortal(n,t)}function Pg(e){var t=m.reactExports.forwardRef(function(n,r){var i,o,s=n.mode,a=n.delegatesFocus,l=n.styleSheets,u=n.ssr,f=n.children,c=lc(n,["mode","delegatesFocus","styleSheets","ssr","children"]),d=(o=m.reactExports.useRef((i=r)&&i.current),m.reactExports.useEffect(function(){i&&(i.current=o.current)},[i]),o),h=m.reactExports.useState(null),p=Cg(h,2),g=p[0],y=p[1],v="node_".concat(s).concat(a);return m.reactExports.useLayoutEffect(function(){if(d.current)try{if(typeof r=="function"&&r(d.current),u){var b=d.current.shadowRoot;return void y(b)}var x=d.current.attachShadow({mode:s,delegatesFocus:a});l.length>0&&(x.adoptedStyleSheets=l),y(x)}catch(S){(function(E){var k=E.error,P=E.styleSheets,T=E.root;switch(k.name){case"NotSupportedError":P.length>0&&(T.adoptedStyleSheets=P);break;default:throw k}})({error:S,styleSheets:l,root:g})}},[r,d,l]),m.React$1.createElement(m.React$1.Fragment,null,m.React$1.createElement(e.tag,ac({key:v,ref:d},c),(g||u)&&m.React$1.createElement(Tg.Provider,{value:g},u?m.React$1.createElement(Di,{shadowroot:s,shadowrootmode:s},e.render({root:g,ssr:u,children:f})):m.React$1.createElement(Ii,{root:g},e.render({root:g,ssr:u,children:f})))))});return t.propTypes={mode:Te.oneOf(["open","closed"]),delegatesFocus:Te.bool,styleSheets:Te.arrayOf(Te.instanceOf(globalThis.CSSStyleSheet)),ssr:Te.bool,children:Te.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Di.propTypes={children:Te.oneOfType([Te.string,Te.node])},Di.defaultProps={children:""},Ii.propTypes={root:Te.object.isRequired,children:Te.node},Ii.defaultProps={children:null};var si=new Map;function Rg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,i){var o=xg(i,{separator:"-"}),s="".concat(t,"-").concat(o);return si.has(s)||si.set(s,Pg({tag:o,render:n})),si.get(s)}})}var Ag=Rg();const Og=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
35
|
-
`;function uc({children:e,styles:t=[],...n}){return m.jsxRuntimeExports.jsxs(Ag.div,{...n,children:[[Og,...t].map((r,i)=>m.jsxRuntimeExports.jsx("style",{type:"text/css",children:r},i)),e]})}const To=e=>typeof e=="number"&&!isNaN(e),tn=e=>typeof e=="string",cc=e=>typeof e=="function",_g=e=>m.reactExports.isValidElement(e)||tn(e)||cc(e)||To(e),Me=new Map;let Ni=[];const ua=new Set,fc=()=>Me.size>0;function Mg(e,t){var n;if(t)return!((n=Me.get(t))==null||!n.isToastActive(e));let r=!1;return Me.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function jg(e,t){_g(e)&&(fc()||Ni.push({content:e,options:t}),Me.forEach(n=>{n.buildToast(e,t)}))}function ca(e,t){Me.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}let Vg=1;const dc=()=>""+Vg++;function Fg(e){return e&&(tn(e.toastId)||To(e.toastId))?e.toastId:dc()}function nn(e,t){return jg(e,t),t.toastId}function cr(e,t){return{...t,type:t&&t.type||e,toastId:Fg(t)}}function An(e){return(t,n)=>nn(t,cr(e,n))}function I(e,t){return nn(e,cr("default",t))}I.loading=(e,t)=>nn(e,cr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=tn(i)?I.loading(i,n):I.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,c,d)=>{if(c==null)return void I.dismiss(r);const h={type:f,...a,...n,data:d},p=tn(c)?{render:c}:c;return r?I.update(r,{...h,...p}):I(p.render,{...h,...p}),d},u=cc(e)?e():e;return u.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),u},I.success=An("success"),I.info=An("info"),I.error=An("error"),I.warning=An("warning"),I.warn=I.warning,I.dark=(e,t)=>nn(e,cr("default",{theme:"dark",...t})),I.dismiss=function(e){(function(t){var n;if(fc()){if(t==null||tn(n=t)||To(n))Me.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Me.get(t.containerId))!=null&&r.removeToast(t.id)||Me.forEach(i=>{i.removeToast(t.id)})}}else Ni=Ni.filter(i=>t!=null&&i.options.toastId!==t)})(e)},I.clearWaitingQueue=function(e){e===void 0&&(e={}),Me.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},I.isActive=Mg,I.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=Me.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:dc()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,nn(s,o)}},I.done=e=>{I.update(e,{progress:1})},I.onChange=function(e){return ua.add(e),()=>{ua.delete(e)}},I.play=e=>ca(!0,e),I.pause=e=>ca(!1,e);const Vt={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Lg(){return m.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Dg={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Ig=({closeToast:e})=>m.jsxRuntimeExports.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:m.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),hc=e=>{I.error(e,{icon:m.jsxRuntimeExports.jsx(Lg,{}),position:"bottom-right",style:{...Dg,background:Vt.dangerLight,borderColor:Vt.danger,color:Vt.danger}})},Ng=e=>{I(e,{closeButton:Ig,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Vt.textPrimary}})},pc=m.reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Mr=m.reactExports.createContext({}),Po=m.reactExports.createContext(null),jr=typeof document<"u",Bg=jr?m.reactExports.useLayoutEffect:m.reactExports.useEffect,mc=m.reactExports.createContext({strict:!1}),Ro=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$g="framerAppearId",gc="data-"+Ro($g);function zg(e,t,n,r){const{visualElement:i}=m.reactExports.useContext(Mr),o=m.reactExports.useContext(mc),s=m.reactExports.useContext(Po),a=m.reactExports.useContext(pc).reducedMotion,l=m.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;m.reactExports.useInsertionEffect(()=>{u&&u.update(n,s)});const f=m.reactExports.useRef(!!(n[gc]&&!window.HandoffComplete));return Bg(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),m.reactExports.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Ot(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wg(e,t,n){return m.reactExports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ot(n)&&(n.current=r))},[t])}function hn(e){return typeof e=="string"||Array.isArray(e)}function Vr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ao=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oo=["initial",...Ao];function Fr(e){return Vr(e.animate)||Oo.some(t=>hn(e[t]))}function yc(e){return!!(Fr(e)||e.variants)}function Ug(e,t){if(Fr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hn(n)?n:void 0,animate:hn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hg(e){const{initial:t,animate:n}=Ug(e,m.reactExports.useContext(Mr));return m.reactExports.useMemo(()=>({initial:t,animate:n}),[fa(t),fa(n)])}function fa(e){return Array.isArray(e)?e.join(" "):e}const da={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},pn={};for(const e in da)pn[e]={isEnabled:t=>da[e].some(n=>!!t[n])};function qg(e){for(const t in e)pn[t]={...pn[t],...e[t]}}const vc=m.reactExports.createContext({}),xc=m.reactExports.createContext({}),Gg=Symbol.for("motionComponentSymbol");function Xg({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&qg(e);function o(a,l){let u;const f={...m.reactExports.useContext(pc),...a,layoutId:Kg(a)},{isStatic:c}=f,d=Hg(a),h=r(a,c);if(!c&&jr){d.visualElement=zg(i,h,f,t);const p=m.reactExports.useContext(xc),g=m.reactExports.useContext(mc).strict;d.visualElement&&(u=d.visualElement.loadFeatures(f,g,e,p))}return m.reactExports.createElement(Mr.Provider,{value:d},u&&d.visualElement?m.reactExports.createElement(u,{visualElement:d.visualElement,...f}):null,n(i,a,Wg(h,d.visualElement,l),h,c,d.visualElement))}const s=m.reactExports.forwardRef(o);return s[Gg]=i,s}function Kg({layoutId:e}){const t=m.reactExports.useContext(vc).id;return t&&e!==void 0?t+"-"+e:e}function Yg(e){function t(r,i={}){return Xg(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Jg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _o(e){return typeof e!="string"||e.includes("-")?!1:!!(Jg.indexOf(e)>-1||/[A-Z]/.test(e))}const fr={};function Zg(e){Object.assign(fr,e)}const xn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(xn);function bc(e,{layout:t,layoutId:n}){return bt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fr[e]||e==="opacity")}const ce=e=>!!(e&&e.getVelocity),Qg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ey=xn.length;function ty(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<ey;s++){const a=xn[s];if(e[a]!==void 0){const l=Qg[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const wc=e=>t=>typeof t=="string"&&t.startsWith(e),Sc=wc("--"),Bi=wc("var(--"),ny=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ry=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ot=(e,t,n)=>Math.min(Math.max(n,e),t),wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rn={...wt,transform:e=>ot(0,1,e)},On={...wt,default:1},on=e=>Math.round(e*1e5)/1e5,Lr=/(-)?([\d]*\.?[\d])+/g,Ec=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bn(e){return typeof e=="string"}const wn=e=>({test:t=>bn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ze=wn("deg"),Ve=wn("%"),A=wn("px"),oy=wn("vh"),sy=wn("vw"),ha={...Ve,parse:e=>Ve.parse(e)/100,transform:e=>Ve.transform(e*100)},pa={...wt,transform:Math.round},Cc={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:Ze,rotateX:Ze,rotateY:Ze,rotateZ:Ze,scale:On,scaleX:On,scaleY:On,scaleZ:On,skew:Ze,skewX:Ze,skewY:Ze,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:rn,originX:ha,originY:ha,originZ:A,zIndex:pa,fillOpacity:rn,strokeOpacity:rn,numOctaves:pa};function Mo(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,f=!0;for(const c in t){const d=t[c];if(Sc(c)){o[c]=d;continue}const h=Cc[c],p=ry(d,h);if(bt.has(c)){if(l=!0,s[c]=p,!f)continue;d!==(h.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=p):i[c]=p}if(t.transform||(l||r?i.transform=ty(e.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${c} ${d} ${h}`}}const jo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kc(e,t,n){for(const r in t)!ce(t[r])&&!bc(r,n)&&(e[r]=t[r])}function ay({transformTemplate:e},t,n){return m.reactExports.useMemo(()=>{const r=jo();return Mo(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ly(e,t,n){const r=e.style||{},i={};return kc(i,r,e),Object.assign(i,ay(e,t,n)),e.transformValues?e.transformValues(i):i}function uy(e,t,n){const r={},i=ly(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const cy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cy.has(e)}let Tc=e=>!dr(e);function fy(e){e&&(Tc=t=>t.startsWith("on")?!dr(t):e(t))}try{fy(require("@emotion/is-prop-valid").default)}catch{}function dy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Tc(i)||n===!0&&dr(i)||!t&&!dr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ma(e,t,n){return typeof e=="string"?e:A.transform(t+n*e)}function hy(e,t,n){const r=ma(t,e.x,e.width),i=ma(n,e.y,e.height);return`${r} ${i}`}const py={offset:"stroke-dashoffset",array:"stroke-dasharray"},my={offset:"strokeDashoffset",array:"strokeDasharray"};function gy(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?py:my;e[o.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[o.array]=`${s} ${a}`}function Vo(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},f,c,d){if(Mo(e,u,f,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:g}=e;h.transform&&(g&&(p.transform=h.transform),delete h.transform),g&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=hy(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&gy(h,s,a,l,!1)}const Pc=()=>({...jo(),attrs:{}}),Fo=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yy(e,t,n,r){const i=m.reactExports.useMemo(()=>{const o=Pc();return Vo(o,t,{enableHardwareAcceleration:!1},Fo(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kc(o,e.style,e),i.style={...o,...i.style}}return i}function vy(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_o(n)?yy:uy)(r,o,s,n),f={...dy(r,typeof n=="string",e),...l,ref:i},{children:c}=r,d=m.reactExports.useMemo(()=>ce(c)?c.get():c,[c]);return m.reactExports.createElement(n,{...f,children:d})}}function Rc(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ac=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Oc(e,t,n,r){Rc(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ac.has(i)?i:Ro(i),t.attrs[i])}function Lo(e,t){const{style:n}=e,r={};for(const i in n)(ce(n[i])||t.style&&ce(t.style[i])||bc(i,e))&&(r[i]=n[i]);return r}function _c(e,t){const n=Lo(e,t);for(const r in e)if(ce(e[r])||ce(t[r])){const i=xn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Do(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function xy(e){const t=m.reactExports.useRef(null);return t.current===null&&(t.current=e()),t.current}const hr=e=>Array.isArray(e),by=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wy=e=>hr(e)?e[e.length-1]||0:e;function Kn(e){const t=ce(e)?e.get():e;return by(t)?t.toValue():t}function Sy({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Ey(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Mc=e=>(t,n)=>{const r=m.reactExports.useContext(Mr),i=m.reactExports.useContext(Po),o=()=>Sy(e,t,r,i);return n?o():xy(o)};function Ey(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Kn(o[d]);let{initial:s,animate:a}=e;const l=Fr(e),u=yc(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?a:s;return c&&typeof c!="boolean"&&!Vr(c)&&(Array.isArray(c)?c:[c]).forEach(h=>{const p=Do(e,h);if(!p)return;const{transitionEnd:g,transition:y,...v}=p;for(const b in v){let x=v[b];if(Array.isArray(x)){const S=f?x.length-1:0;x=x[S]}x!==null&&(i[b]=x)}for(const b in g)i[b]=g[b]}),i}const q=e=>e;class ga{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Cy(e){let t=new ga,n=new ga,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&i,d=c?t:n;return u&&s.add(l),d.add(l)&&c&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const f=t.order[u];f(l),s.has(f)&&(a.schedule(f),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const _n=["prepare","read","update","preRender","render","postRender"],ky=40;function Ty(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=_n.reduce((c,d)=>(c[d]=Cy(()=>n=!0),c),{}),s=c=>o[c].process(i),a=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,ky),1),i.timestamp=c,i.isProcessing=!0,_n.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:_n.reduce((c,d)=>{const h=o[d];return c[d]=(p,g=!1,y=!1)=>(n||l(),h.schedule(p,g,y)),c},{}),cancel:c=>_n.forEach(d=>o[d].cancel(c)),state:i,steps:o}}const{schedule:B,cancel:He,state:ne,steps:ai}=Ty(typeof requestAnimationFrame<"u"?requestAnimationFrame:q,!0),Py={useVisualState:Mc({scrapeMotionValuesFromProps:_c,createRenderState:Pc,onMount:(e,t,{renderState:n,latestValues:r})=>{B.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),B.render(()=>{Vo(n,r,{enableHardwareAcceleration:!1},Fo(t.tagName),e.transformTemplate),Oc(t,n)})}})},Ry={useVisualState:Mc({scrapeMotionValuesFromProps:Lo,createRenderState:jo})};function Ay(e,{forwardMotionProps:t=!1},n,r){return{..._o(e)?Py:Ry,preloadedFeatures:n,useRender:vy(t),createVisualElement:r,Component:e}}function Ne(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Oy=e=>t=>jc(t)&&e(t,Dr(t));function $e(e,t,n,r){return Ne(e,t,Oy(n),r)}const _y=(e,t)=>n=>t(e(n)),rt=(...e)=>e.reduce(_y);function Vc(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ya=Vc("dragHorizontal"),va=Vc("dragVertical");function Fc(e){let t=!1;if(e==="y")t=va();else if(e==="x")t=ya();else{const n=ya(),r=va();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Lc(){const e=Fc(!0);return e?(e(),!1):!0}class at{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xa(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Lc())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&B.update(()=>a[r](o,s))};return $e(e.current,n,i,{passive:!e.getProps()[r]})}class My extends at{mount(){this.unmount=rt(xa(this.node,!0),xa(this.node,!1))}unmount(){}}class jy extends at{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rt(Ne(this.node.current,"focus",()=>this.onFocus()),Ne(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dc=(e,t)=>t?e===t?!0:Dc(e,t.parentElement):!1;function li(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dr(n))}class Vy extends at{constructor(){super(...arguments),this.removeStartListeners=q,this.removeEndListeners=q,this.removeAccessibleListeners=q,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=$e(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();B.update(()=>{!c&&!Dc(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=$e(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=rt(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||li("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&B.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=Ne(this.node.current,"keyup",s),li("down",(a,l)=>{this.startPress(a,l)})},n=Ne(this.node.current,"keydown",t),r=()=>{this.isPressing&&li("cancel",(o,s)=>this.cancelPress(o,s))},i=Ne(this.node.current,"blur",r);this.removeAccessibleListeners=rt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&B.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Lc()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&B.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=$e(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ne(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $i=new WeakMap,ui=new WeakMap,Fy=e=>{const t=$i.get(e.target);t&&t(e)},Ly=e=>{e.forEach(Fy)};function Dy({root:e,...t}){const n=e||document;ui.has(n)||ui.set(n,{});const r=ui.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ly,{root:e,...t})),r[i]}function Iy(e,t,n){const r=Dy(t);return $i.set(e,n),r.observe(e),()=>{$i.delete(e),r.unobserve(e)}}const Ny={some:0,all:1};class By extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ny[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),d=u?f:c;d&&d(l)};return Iy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($y(t,n))&&this.startObserver()}unmount(){}}function $y({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zy={inView:{Feature:By},tap:{Feature:Vy},focus:{Feature:jy},hover:{Feature:My}};function Ic(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Uy(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ir(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,Wy(e),Uy(e))}let Hy=q,Io=q;const it=e=>e*1e3,ze=e=>e/1e3,qy={current:!1},Nc=e=>Array.isArray(e)&&typeof e[0]=="number";function Bc(e){return!!(!e||typeof e=="string"&&$c[e]||Nc(e)||Array.isArray(e)&&e.every(Bc))}const Zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function zc(e){if(e)return Nc(e)?Zt(e):Array.isArray(e)?e.map(zc):$c[e]}function Gy(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const f=zc(a);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Xy(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Wc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ky=1e-7,Yy=12;function Jy(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Wc(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Ky&&++a<Yy);return s}function Sn(e,t,n,r){if(e===t&&n===r)return q;const i=o=>Jy(o,0,1,e,n);return o=>o===0||o===1?o:Wc(i(o),t,r)}const Zy=Sn(.42,0,1,1),Qy=Sn(0,0,.58,1),Uc=Sn(.42,0,.58,1),e0=e=>Array.isArray(e)&&typeof e[0]!="number",Hc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qc=e=>t=>1-e(1-t),No=e=>1-Math.sin(Math.acos(e)),Gc=qc(No),t0=Hc(No),Xc=Sn(.33,1.53,.69,.99),Bo=qc(Xc),n0=Hc(Bo),r0=e=>(e*=2)<1?.5*Bo(e):.5*(2-Math.pow(2,-10*(e-1))),i0={linear:q,easeIn:Zy,easeInOut:Uc,easeOut:Qy,circIn:No,circInOut:t0,circOut:Gc,backIn:Bo,backInOut:n0,backOut:Xc,anticipate:r0},ba=e=>{if(Array.isArray(e)){Io(e.length===4);const[t,n,r,i]=e;return Sn(t,n,r,i)}else if(typeof e=="string")return i0[e];return e},$o=(e,t)=>n=>!!(bn(n)&&iy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kc=(e,t,n)=>r=>{if(!bn(r))return r;const[i,o,s,a]=r.match(Lr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},o0=e=>ot(0,255,e),ci={...wt,transform:e=>Math.round(o0(e))},vt={test:$o("rgb","red"),parse:Kc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ci.transform(e)+", "+ci.transform(t)+", "+ci.transform(n)+", "+on(rn.transform(r))+")"};function s0(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zi={test:$o("#"),parse:s0,transform:vt.transform},_t={test:$o("hsl","hue"),parse:Kc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ve.transform(on(t))+", "+Ve.transform(on(n))+", "+on(rn.transform(r))+")"},re={test:e=>vt.test(e)||zi.test(e)||_t.test(e),parse:e=>vt.test(e)?vt.parse(e):_t.test(e)?_t.parse(e):zi.parse(e),transform:e=>bn(e)?e:e.hasOwnProperty("red")?vt.transform(e):_t.transform(e)},W=(e,t,n)=>-n*e+n*t+e;function fi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function a0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=fi(l,a,e+1/3),o=fi(l,a,e),s=fi(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const di=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},l0=[zi,vt,_t],u0=e=>l0.find(t=>t.test(e));function wa(e){const t=u0(e);let n=t.parse(e);return t===_t&&(n=a0(n)),n}const Yc=(e,t)=>{const n=wa(e),r=wa(t),i={...n};return o=>(i.red=di(n.red,r.red,o),i.green=di(n.green,r.green,o),i.blue=di(n.blue,r.blue,o),i.alpha=W(n.alpha,r.alpha,o),vt.transform(i))};function c0(e){var t,n;return isNaN(e)&&bn(e)&&(((t=e.match(Lr))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ec))===null||n===void 0?void 0:n.length)||0)>0}const Jc={regex:ny,countKey:"Vars",token:"${v}",parse:q},Zc={regex:Ec,countKey:"Colors",token:"${c}",parse:re.parse},Qc={regex:Lr,countKey:"Numbers",token:"${n}",parse:wt.parse};function hi(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function pr(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&hi(n,Jc),hi(n,Zc),hi(n,Qc),n}function ef(e){return pr(e).values}function tf(e){const{values:t,numColors:n,numVars:r,tokenised:i}=pr(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Jc.token,s[l]):l<r+n?a=a.replace(Zc.token,re.transform(s[l])):a=a.replace(Qc.token,on(s[l]));return a}}const f0=e=>typeof e=="number"?0:e;function d0(e){const t=ef(e);return tf(e)(t.map(f0))}const st={test:c0,parse:ef,createTransformer:tf,getAnimatableNone:d0},nf=(e,t)=>n=>`${n>0?t:e}`;function rf(e,t){return typeof e=="number"?n=>W(e,t,n):re.test(e)?Yc(e,t):e.startsWith("var(")?nf(e,t):sf(e,t)}const of=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>rf(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},h0=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rf(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},sf=(e,t)=>{const n=st.createTransformer(t),r=pr(e),i=pr(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?rt(of(r.values,i.values),n):nf(e,t)},mn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Sa=(e,t)=>n=>W(e,t,n);function p0(e){return typeof e=="number"?Sa:typeof e=="string"?re.test(e)?Yc:sf:Array.isArray(e)?of:typeof e=="object"?h0:Sa}function m0(e,t,n){const r=[],i=n||p0(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||q:t;a=rt(l,a)}r.push(a)}return r}function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Io(o===t.length),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=m0(t,r,i),a=s.length,l=u=>{let f=0;if(a>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const c=mn(e[f],e[f+1],u);return s[f](c)};return n?u=>l(ot(e[0],e[o-1],u)):l}function g0(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=mn(0,t,r);e.push(W(n,1,i))}}function y0(e){const t=[0];return g0(t,e.length-1),t}function v0(e,t){return e.map(n=>n*t)}function x0(e,t){return e.map(()=>t||Uc).splice(0,e.length-1)}function mr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e0(r)?r.map(ba):ba(r),o={done:!1,value:t[0]},s=v0(n&&n.length===t.length?n:y0(t),e),a=af(s,t,{ease:Array.isArray(i)?i:x0(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function lf(e,t){return t?e*(1e3/t):0}const b0=5;function uf(e,t,n){const r=Math.max(t-b0,0);return lf(n-e(r),t-r)}const pi=.001,w0=.01,Ea=10,S0=.05,E0=1;function C0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hy(e<=it(Ea));let s=1-t;s=ot(S0,E0,s),e=ot(w0,Ea,ze(e)),s<1?(i=u=>{const f=u*s,c=f*e,d=f-n,h=Wi(u,s),p=Math.exp(-c);return pi-d/h*p},o=u=>{const c=u*s*e,d=c*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-c),g=Wi(Math.pow(u,2),s);return(-i(u)+pi>0?-1:1)*((d-h)*p)/g}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-pi+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const a=5/e,l=T0(i,o,a);if(e=it(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const k0=12;function T0(e,t,n){let r=n;for(let i=1;i<k0;i++)r=r-e(r)/t(r);return r}function Wi(e,t){return e*Math.sqrt(1-t*t)}const P0=["duration","bounce"],R0=["stiffness","damping","mass"];function Ca(e,t){return t.some(n=>e[n]!==void 0)}function A0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ca(e,R0)&&Ca(e,P0)){const n=C0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function cf({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:d}=A0({...r,velocity:-ze(r.velocity||0)}),h=c||0,p=l/(2*Math.sqrt(a*u)),g=o-i,y=ze(Math.sqrt(a/u)),v=Math.abs(g)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let b;if(p<1){const x=Wi(y,p);b=S=>{const E=Math.exp(-p*y*S);return o-E*((h+p*y*g)/x*Math.sin(x*S)+g*Math.cos(x*S))}}else if(p===1)b=x=>o-Math.exp(-y*x)*(g+(h+y*g)*x);else{const x=y*Math.sqrt(p*p-1);b=S=>{const E=Math.exp(-p*y*S),k=Math.min(x*S,300);return o-E*((h+p*y*g)*Math.sinh(k)+x*g*Math.cosh(k))/x}}return{calculatedDuration:d&&f||null,next:x=>{const S=b(x);if(d)s.done=x>=f;else{let E=h;x!==0&&(p<1?E=uf(b,x,S):E=0);const k=Math.abs(E)<=n,P=Math.abs(o-S)<=t;s.done=k&&P}return s.value=s.done?o:S,s}}}function ka({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=e[0],d={done:!1,value:c},h=T=>a!==void 0&&T<a||l!==void 0&&T>l,p=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let g=n*t;const y=c+g,v=s===void 0?y:s(y);v!==y&&(g=v-c);const b=T=>-g*Math.exp(-T/r),x=T=>v+b(T),S=T=>{const _=b(T),G=x(T);d.done=Math.abs(_)<=u,d.value=d.done?v:G};let E,k;const P=T=>{h(d.value)&&(E=T,k=cf({keyframes:[d.value,p(d.value)],velocity:uf(x,T,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return P(0),{calculatedDuration:null,next:T=>{let _=!1;return!k&&E===void 0&&(_=!0,S(T),P(T)),E!==void 0&&T>E?k.next(T-E):(!_&&S(T),d)}}}const O0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>B.update(t,!0),stop:()=>He(t),now:()=>ne.isProcessing?ne.timestamp:performance.now()}},Ta=2e4;function Pa(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ta;)t+=n,r=e.next(t);return t>=Ta?1/0:t}const _0={decay:ka,inertia:ka,tween:mr,keyframes:mr,spring:cf};function gr({autoplay:e=!0,delay:t=0,driver:n=O0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:f,onUpdate:c,...d}){let h=1,p=!1,g,y;const v=()=>{y=new Promise(D=>{g=D})};v();let b;const x=_0[i]||mr;let S;x!==mr&&typeof r[0]!="number"&&(S=af([0,100],r,{clamp:!1}),r=[0,100]);const E=x({...d,keyframes:r});let k;a==="mirror"&&(k=x({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let P="idle",T=null,_=null,G=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=Pa(E));const{calculatedDuration:U}=E;let z=1/0,X=1/0;U!==null&&(z=U+s,X=z*(o+1)-s);let K=0;const fe=D=>{if(_===null)return;h>0&&(_=Math.min(_,D)),h<0&&(_=Math.min(D-X/h,_)),T!==null?K=T:K=Math.round(D-_)*h;const St=K-t*(h>=0?1:-1),Et=h>=0?St<0:St>X;K=Math.max(St,0),P==="finished"&&T===null&&(K=X);let Wr=K,lt=E;if(o){const Wt=Math.min(K,X)/z;let ut=Math.floor(Wt),ke=Wt%1;!ke&&Wt>=1&&(ke=1),ke===1&&ut--,ut=Math.min(ut,o+1),!!(ut%2)&&(a==="reverse"?(ke=1-ke,s&&(ke-=s/z)):a==="mirror"&&(lt=k)),Wr=ot(0,1,ke)*z}const De=Et?{done:!1,value:r[0]}:lt.next(Wr);S&&(De.value=S(De.value));let{done:Ct}=De;!Et&&U!==null&&(Ct=h>=0?K>=X:K<=0);const kt=T===null&&(P==="finished"||P==="running"&&Ct);return c&&c(De.value),kt&&$(),De},H=()=>{b&&b.stop(),b=void 0},de=()=>{P="idle",H(),g(),v(),_=G=null},$=()=>{P="finished",f&&f(),H(),g()},he=()=>{if(p)return;b||(b=n(fe));const D=b.now();l&&l(),T!==null?_=D-T:(!_||P==="finished")&&(_=D),P==="finished"&&v(),G=_,T=null,P="running",b.start()};e&&he();const Le={then(D,St){return y.then(D,St)},get time(){return ze(K)},set time(D){D=it(D),K=D,T!==null||!b||h===0?T=D:_=b.now()-D/h},get duration(){const D=E.calculatedDuration===null?Pa(E):E.calculatedDuration;return ze(D)},get speed(){return h},set speed(D){D===h||!b||(h=D,Le.time=ze(K))},get state(){return P},play:he,pause:()=>{P="paused",T=K},stop:()=>{p=!0,P!=="idle"&&(P="idle",u&&u(),de())},cancel:()=>{G!==null&&fe(G),de()},complete:()=>{P="finished"},sample:D=>(_=0,fe(D))};return Le}function M0(e){let t;return()=>(t===void 0&&(t=e()),t)}const j0=M0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),V0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mn=10,F0=2e4,L0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Bc(t.ease);function D0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(j0()&&V0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const f=()=>{l=new Promise(x=>{a=x})};f();let{keyframes:c,duration:d=300,ease:h,times:p}=i;if(L0(t,i)){const x=gr({...i,repeat:0,delay:0});let S={done:!1,value:c[0]};const E=[];let k=0;for(;!S.done&&k<F0;)S=x.sample(k),E.push(S.value),k+=Mn;p=void 0,c=E,d=k-Mn,h="linear"}const g=Gy(e.owner.current,t,c,{...i,duration:d,ease:h,times:p}),y=()=>{u=!1,g.cancel()},v=()=>{u=!0,B.update(y),a(),f()};return g.onfinish=()=>{u||(e.set(Xy(c,i)),r&&r(),v())},{then(x,S){return l.then(x,S)},attachTimeline(x){return g.timeline=x,g.onfinish=null,q},get time(){return ze(g.currentTime||0)},set time(x){g.currentTime=it(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return ze(d)},play:()=>{s||(g.play(),He(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const S=gr({...i,autoplay:!1});e.setWithVelocity(S.sample(x-Mn).value,S.sample(x).value,Mn)}v()},complete:()=>{u||g.finish()},cancel:v}}function I0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:q,pause:q,stop:q,then:o=>(o(),Promise.resolve()),cancel:q,complete:q});return t?gr({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const N0={type:"spring",stiffness:500,damping:25,restSpeed:10},B0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$0={type:"keyframes",duration:.8},z0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W0=(e,{keyframes:t})=>t.length>2?$0:bt.has(e)?e.startsWith("scale")?B0(t[1]):N0:z0,Ui=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(st.test(t)||t==="0")&&!t.startsWith("url(")),U0=new Set(["brightness","contrast","saturate","opacity"]);function H0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lr)||[];if(!r)return e;const i=n.replace(r,"");let o=U0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const q0=/([a-z-]*)\(.*?\)/g,Hi={...st,getAnimatableNone:e=>{const t=e.match(q0);return t?t.map(H0).join(" "):e}},G0={...Cc,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Hi,WebkitFilter:Hi},zo=e=>G0[e];function ff(e,t){let n=zo(e);return n!==Hi&&(n=st),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const df=e=>/^0[^.\s]+$/.test(e);function X0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||df(e)}function K0(e,t,n,r){const i=Ui(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?s:o[u-1]),X0(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=ff(t,a)}return o}function Y0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function Wo(e,t){return e[t]||e.default||e}const J0={skipAnimations:!1},Uo=(e,t,n,r={})=>i=>{const o=Wo(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-it(s);const l=K0(t,e,n,o),u=l[0],f=l[l.length-1],c=Ui(e,u),d=Ui(e,f);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Y0(o)||(h={...h,...W0(e,h)}),h.duration&&(h.duration=it(h.duration)),h.repeatDelay&&(h.repeatDelay=it(h.repeatDelay)),!c||!d||qy.current||o.type===!1||J0.skipAnimations)return I0(h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const p=D0(t,e,h);if(p)return p}return gr(h)};function yr(e){return!!(ce(e)&&e.add)}const hf=e=>/^\-?\d*\.?\d+$/.test(e);function Ho(e,t){e.indexOf(t)===-1&&e.push(t)}function qo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Go{constructor(){this.subscriptions=[]}add(t){return Ho(this.subscriptions,t),()=>qo(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Z0=e=>!isNaN(parseFloat(e));class Q0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ne;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,B.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>B.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Z0(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Go);const r=this.events[t].add(n);return t==="change"?()=>{r(),B.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lf(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Lt(e,t){return new Q0(e,t)}const pf=e=>t=>t.test(e),ev={test:e=>e==="auto",parse:e=>e},mf=[wt,A,Ve,Ze,sy,oy,ev],qt=e=>mf.find(pf(e)),tv=[...mf,re,st],nv=e=>tv.find(pf(e));function rv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lt(n))}function iv(e,t){const n=Ir(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=wy(o[s]);rv(e,s,a)}}function ov(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=t[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),f!=null&&(typeof f=="string"&&(hf(f)||df(f))?f=parseFloat(f):!nv(f)&&st.test(u)&&(f=ff(l,u)),e.addValue(l,Lt(f,{owner:e})),n[l]===void 0&&(n[l]=f),f!==null&&e.setBaseTarget(l,f))}}function sv(e,t){return t?(t[e]||t.default||t).from:void 0}function av(e,t,n){const r={};for(const i in e){const o=sv(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function lv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uv(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function gf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c),h=a[c];if(!d||h===void 0||f&&lv(f,c))continue;const p={delay:n,elapsed:0,...Wo(o||{},c)};if(window.HandoffAppearAnimations){const v=e.getProps()[gc];if(v){const b=window.HandoffAppearAnimations(v,c,d,B);b!==null&&(p.elapsed=b,p.isHandoff=!0)}}let g=!p.isHandoff&&!uv(d,h);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(g=!1),d.animation&&(g=!1),g)continue;d.start(Uo(c,d,h,e.shouldReduceMotion&&bt.has(c)?{type:!1}:p));const y=d.animation;yr(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&iv(e,s)}),u}function qi(e,t,n={}){const r=Ir(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(gf(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return cv(e,t,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function cv(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(fv).forEach((u,f)=>{u.notify("AnimationStart",t),s.push(qi(u,t,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function fv(e,t){return e.sortNodePosition(t)}function dv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>qi(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=qi(e,t,n);else{const i=typeof t=="function"?Ir(e,t,n.custom):t;r=Promise.all(gf(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const hv=[...Ao].reverse(),pv=Ao.length;function mv(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dv(e,n,r)))}function gv(e){let t=mv(e);const n=vv();let r=!0;const i=(l,u)=>{const f=Ir(e,u);if(f){const{transition:c,transitionEnd:d,...h}=f;l={...l,...h,...d}}return l};function o(l){t=l(e)}function s(l,u){const f=e.getProps(),c=e.getVariantContext(!0)||{},d=[],h=new Set;let p={},g=1/0;for(let v=0;v<pv;v++){const b=hv[v],x=n[b],S=f[b]!==void 0?f[b]:c[b],E=hn(S),k=b===u?x.isActive:null;k===!1&&(g=v);let P=S===c[b]&&S!==f[b]&&E;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&k===null||!S&&!x.prevProp||Vr(S)||typeof S=="boolean")continue;let _=yv(x.prevProp,S)||b===u&&x.isActive&&!P&&E||v>g&&E,G=!1;const U=Array.isArray(S)?S:[S];let z=U.reduce(i,{});k===!1&&(z={});const{prevResolvedValues:X={}}=x,K={...X,...z},fe=H=>{_=!0,h.has(H)&&(G=!0,h.delete(H)),x.needsAnimating[H]=!0};for(const H in K){const de=z[H],$=X[H];if(p.hasOwnProperty(H))continue;let he=!1;hr(de)&&hr($)?he=!Ic(de,$):he=de!==$,he?de!==void 0?fe(H):h.add(H):de!==void 0&&h.has(H)?fe(H):x.protectedKeys[H]=!0}x.prevProp=S,x.prevResolvedValues=z,x.isActive&&(p={...p,...z}),r&&e.blockInitialAnimation&&(_=!1),_&&(!P||G)&&d.push(...U.map(H=>({animation:H,options:{type:b,...l}})))}if(h.size){const v={};h.forEach(b=>{const x=e.getBaseTarget(b);x!==void 0&&(v[b]=x)}),d.push({animation:v})}let y=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u,f){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(f,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function yv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ic(t,e):!1}function ct(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vv(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}class xv extends at{constructor(t){super(t),t.animationState||(t.animationState=gv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Vr(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let bv=0;class wv extends at{constructor(){super(...arguments),this.id=bv++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Sv={animation:{Feature:xv},exit:{Feature:wv}},Ra=(e,t)=>Math.abs(e-t);function Ev(e,t){const n=Ra(e.x,t.x),r=Ra(e.y,t.y);return Math.sqrt(n**2+r**2)}class yf{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=gi(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=Ev(c.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:p}=c,{timestamp:g}=ne;this.history.push({...p,timestamp:g});const{onStart:y,onMove:v}=this.handlers;d||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=mi(d,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();const{onEnd:h,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=gi(c.type==="pointercancel"?this.lastMoveEventInfo:mi(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,y),p&&p(c,y)},!jc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Dr(t),a=mi(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ne;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,gi(a,this.history)),this.removeListeners=rt($e(this.contextWindow,"pointermove",this.handlePointerMove),$e(this.contextWindow,"pointerup",this.handlePointerUp),$e(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),He(this.updatePoint)}}function mi(e,t){return t?{point:t(e.point)}:e}function Aa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gi({point:e},t){return{point:e,delta:Aa(e,vf(t)),offset:Aa(e,Cv(t)),velocity:kv(t,.1)}}function Cv(e){return e[0]}function vf(e){return e[e.length-1]}function kv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>it(t)));)n--;if(!r)return{x:0,y:0};const o=ze(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function we(e){return e.max-e.min}function Gi(e,t=0,n=.01){return Math.abs(e-t)<=n}function Oa(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=we(n)/we(t),(Gi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(Gi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sn(e,t,n,r){Oa(e.x,t.x,n.x,r?r.originX:void 0),Oa(e.y,t.y,n.y,r?r.originY:void 0)}function _a(e,t,n){e.min=n.min+t.min,e.max=e.min+we(t)}function Tv(e,t,n){_a(e.x,t.x,n.x),_a(e.y,t.y,n.y)}function Ma(e,t,n){e.min=t.min-n.min,e.max=e.min+we(t)}function an(e,t,n){Ma(e.x,t.x,n.x),Ma(e.y,t.y,n.y)}function Pv(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function ja(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Rv(e,{top:t,left:n,bottom:r,right:i}){return{x:ja(e.x,n,i),y:ja(e.y,t,r)}}function Va(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Av(e,t){return{x:Va(e.x,t.x),y:Va(e.y,t.y)}}function Ov(e,t){let n=.5;const r=we(e),i=we(t);return i>r?n=mn(t.min,t.max-r,e.min):r>i&&(n=mn(e.min,e.max-i,t.min)),ot(0,1,n)}function _v(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xi=.35;function Mv(e=Xi){return e===!1?e=0:e===!0&&(e=Xi),{x:Fa(e,"left","right"),y:Fa(e,"top","bottom")}}function Fa(e,t,n){return{min:La(e,t),max:La(e,n)}}function La(e,t){return typeof e=="number"?e:e[t]||0}const Da=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mt=()=>({x:Da(),y:Da()}),Ia=()=>({min:0,max:0}),J=()=>({x:Ia(),y:Ia()});function Ee(e){return[e("x"),e("y")]}function xf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yi(e){return e===void 0||e===1}function Ki({scale:e,scaleX:t,scaleY:n}){return!yi(e)||!yi(t)||!yi(n)}function ft(e){return Ki(e)||bf(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bf(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,i=t*r;return n+i}function Ba(e,t,n,r,i){return i!==void 0&&(e=vr(e,i,r)),vr(e,n,r)+t}function Yi(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function wf(e,{x:t,y:n}){Yi(e.x,t.translate,t.scale,t.originPoint),Yi(e.y,n.translate,n.scale,n.originPoint)}function Fv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&jt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,wf(e,s)),r&&ft(o.latestValues)&&jt(e,o.latestValues))}t.x=$a(t.x),t.y=$a(t.y)}function $a(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Qe(e,t){e.min=e.min+t,e.max=e.max+t}function za(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=W(e.min,e.max,o);Yi(e,t[n],t[r],s,t.scale)}const Lv=["x","scaleX","originX"],Dv=["y","scaleY","originY"];function jt(e,t){za(e.x,t,Lv),za(e.y,t,Dv)}function Sf(e,t){return xf(Vv(e.getBoundingClientRect(),t))}function Iv(e,t,n){const r=Sf(e,n),{scroll:i}=t;return i&&(Qe(r.x,i.offset.x),Qe(r.y,i.offset.y)),r}const Ef=({current:e})=>e?e.ownerDocument.defaultView:null,Nv=new WeakMap;class Bv{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dr(f,"page").point)},o=(f,c)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Fc(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ee(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Ve.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[y];x&&(v=we(x)*(parseFloat(v)/100))}}this.originPoint[y]=v}),p&&B.update(()=>p(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,c)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=c;if(h&&this.currentDirection===null){this.currentDirection=$v(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),g&&g(f,c)},a=(f,c)=>this.stop(f,c),l=()=>Ee(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new yf(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ef(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&B.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!jn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Pv(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ot(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Rv(i.layoutBox,n):this.constraints=!1,this.elastic=Mv(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ee(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=_v(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ot(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Iv(r,i.root,this.visualElement.getTransformPagePoint());let s=Av(i.layout.layoutBox,o);if(n){const a=n(jv(s));this.hasMutatedConstraints=!!a,a&&(s=xf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ee(f=>{if(!jn(f,n,this.currentDirection))return;let c=l&&l[f]||{};s&&(c={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Uo(t,r,0,n))}stopAnimation(){Ee(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ee(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ee(n=>{const{drag:r}=this.getProps();if(!jn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-W(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ot(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ee(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=Ov({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ee(s=>{if(!jn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(W(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Nv.set(this.visualElement,this);const t=this.visualElement.current,n=$e(t,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ot(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Ne(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ee(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Xi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function jn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $v(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zv extends at{constructor(t){super(t),this.removeGroupControls=q,this.removeListeners=q,this.controls=new Bv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||q}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wa=e=>(t,n)=>{e&&B.update(()=>e(t,n))};class Wv extends at{constructor(){super(...arguments),this.removePointerDownListener=q}onPointerDown(t){this.session=new yf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ef(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Wa(t),onStart:Wa(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&B.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=$e(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Uv(){const e=m.reactExports.useContext(Po);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=m.reactExports.useId();return m.reactExports.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Yn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ua(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Ua(e,t.target.x),r=Ua(e,t.target.y);return`${n}% ${r}%`}},Hv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=st.parse(e);if(i.length>5)return r;const o=st.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=W(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class qv extends m.React$1.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Zg(Gv),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||B.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cf(e){const[t,n]=Uv(),r=m.reactExports.useContext(vc);return m.React$1.createElement(qv,{...e,layoutGroup:r,switchLayoutGroup:m.reactExports.useContext(xc),isPresent:t,safeToRemove:n})}const Gv={borderRadius:{...Gt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gt,borderTopRightRadius:Gt,borderBottomLeftRadius:Gt,borderBottomRightRadius:Gt,boxShadow:Hv},kf=["TopLeft","TopRight","BottomLeft","BottomRight"],Xv=kf.length,Ha=e=>typeof e=="string"?parseFloat(e):e,qa=e=>typeof e=="number"||A.test(e);function Kv(e,t,n,r,i,o){i?(e.opacity=W(0,n.opacity!==void 0?n.opacity:1,Yv(r)),e.opacityExit=W(t.opacity!==void 0?t.opacity:1,0,Jv(r))):o&&(e.opacity=W(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Xv;s++){const a=`border${kf[s]}Radius`;let l=Ga(t,a),u=Ga(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||qa(l)===qa(u)?(e[a]=Math.max(W(Ha(l),Ha(u),r),0),(Ve.test(u)||Ve.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function Ga(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yv=Tf(0,.5,Gc),Jv=Tf(.5,.95,q);function Tf(e,t,n){return r=>r<e?0:r>t?1:n(mn(e,t,r))}function Xa(e,t){e.min=t.min,e.max=t.max}function Se(e,t){Xa(e.x,t.x),Xa(e.y,t.y)}function Ka(e,t,n,r,i){return e-=t,e=vr(e,1/n,r),i!==void 0&&(e=vr(e,1/i,r)),e}function Zv(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ve.test(t)&&(t=parseFloat(t),t=W(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=W(o.min,o.max,r);e===o&&(a-=t),e.min=Ka(e.min,t,n,a,i),e.max=Ka(e.max,t,n,a,i)}function Ya(e,t,[n,r,i],o,s){Zv(e,t[n],t[r],t[i],t.scale,o,s)}const Qv=["x","scaleX","originX"],ex=["y","scaleY","originY"];function Ja(e,t,n,r){Ya(e.x,t,Qv,n?n.x:void 0,r?r.x:void 0),Ya(e.y,t,ex,n?n.y:void 0,r?r.y:void 0)}function Za(e){return e.translate===0&&e.scale===1}function Pf(e){return Za(e.x)&&Za(e.y)}function tx(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Rf(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Qa(e){return we(e.x)/we(e.y)}class nx{constructor(){this.members=[]}add(t){Ho(this.members,t),t.scheduleRender()}remove(t){if(qo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function el(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const rx=(e,t)=>e.depth-t.depth;class ix{constructor(){this.children=[],this.isDirty=!1}add(t){Ho(this.children,t),this.isDirty=!0}remove(t){qo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rx),this.isDirty=!1,this.children.forEach(t)}}function ox(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(He(r),e(o-t))};return B.read(r,!0),()=>He(r)}function sx(e){window.MotionDebug&&window.MotionDebug.record(e)}function ax(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lx(e,t,n){const r=ce(e)?e:Lt(e);return r.start(Uo("",r,t,n)),r.animation}const tl=["","X","Y","Z"],ux={visibility:"hidden"},nl=1e3;let cx=0;const dt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Af({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=cx++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,dt.totalNodes=dt.resolvedTargetDeltas=dt.recalculatedProjection=0,this.nodes.forEach(hx),this.nodes.forEach(vx),this.nodes.forEach(xx),this.nodes.forEach(px),sx(dt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Go),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ax(s),this.instance=s;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=ox(d,250),Yn.hasAnimatedSinceResize&&(Yn.hasAnimatedSinceResize=!1,this.nodes.forEach(il))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||Cx,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=f.getProps(),b=!this.targetLayout||!Rf(this.targetLayout,p)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,x);const S={...Wo(g,"layout"),onPlay:y,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,He(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bx),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rl);return}this.isUpdating||this.nodes.forEach(gx),this.isUpdating=!1,this.nodes.forEach(yx),this.nodes.forEach(fx),this.nodes.forEach(dx),this.clearAllSnapshots();const a=performance.now();ne.delta=ot(0,1e3/60,a-ne.timestamp),ne.timestamp=a,ne.isProcessing=!0,ai.update.process(ne),ai.preRender.process(ne),ai.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(mx),this.sharedNodes.forEach(wx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Pf(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(a||ft(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),kx(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return J();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Qe(a.x,l.offset.x),Qe(a.y,l.offset.y)),a}removeElementScroll(s){const a=J();Se(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){Se(a,s);const{scroll:d}=this.root;d&&(Qe(a.x,-d.offset.x),Qe(a.y,-d.offset.y))}Qe(a.x,f.offset.x),Qe(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=J();Se(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&jt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ft(f.latestValues)&&jt(l,f.latestValues)}return ft(this.latestValues)&&jt(l,this.latestValues),l}removeTransform(s){const a=J();Se(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ft(u.latestValues))continue;Ki(u.latestValues)&&u.updateSnapshot();const f=J(),c=u.measurePageBox();Se(f,c),Ja(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return ft(this.latestValues)&&Ja(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=ne.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),an(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Se(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Tv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Se(this.target,this.layout.layoutBox),wf(this.target,this.targetDelta)):Se(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),an(this.relativeTargetOrigin,this.target,h.target),Se(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}dt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ki(this.parent.latestValues)||bf(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;Se(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Fv(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Mt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Mt(),this.projectionDeltaWithTransform=Mt());const g=this.projectionTransform;sn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=el(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),dt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=J(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,y=this.getStack(),v=!y||y.members.length<=1,b=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Ex));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const E=S/1e3;ol(c.x,s.x,E),ol(c.y,s.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Sx(this.relativeTarget,this.relativeTargetOrigin,d,E),x&&tx(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=J()),Se(x,this.relativeTarget)),g&&(this.animationValues=f,Kv(f,u,this.latestValues,E,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(He(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{Yn.hasAnimatedSinceResize=!0,this.currentAnimation=lx(0,nl,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Of(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||J();const c=we(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const d=we(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Se(a,l),jt(a,f),sn(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nx),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<tl.length;f++){const c="rotate"+tl[f];l[c]&&(u[c]=l[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ux;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Kn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ft(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=el(this.projectionDeltaWithTransform,this.treeScale,d),f&&(u.transform=f(d,u.transform));const{x:h,y:p}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in fr){if(d[g]===void 0)continue;const{correct:y,applyTo:v}=fr[g],b=u.transform==="none"?d[g]:y(d[g],c);if(v){const x=v.length;for(let S=0;S<x;S++)u[v[S]]=b}else u[g]=b}return this.options.layoutId&&(u.pointerEvents=c===this?Kn(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rl),this.root.sharedNodes.clear()}}}function fx(e){e.updateLayout()}function dx(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ee(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=we(d);d.min=r[c].min,d.max=d.min+h}):Of(o,n.layoutBox,r)&&Ee(c=>{const d=s?n.measuredBox[c]:n.layoutBox[c],h=we(r[c]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const a=Mt();sn(a,r,n.layoutBox);const l=Mt();s?sn(l,e.applyTransform(i,!0),n.measuredBox):sn(l,r,n.layoutBox);const u=!Pf(a);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:h}=c;if(d&&h){const p=J();an(p,n.layoutBox,d.layoutBox);const g=J();an(g,r,h.layoutBox),Rf(p,g)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function hx(e){dt.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function px(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mx(e){e.clearSnapshot()}function rl(e){e.clearMeasurements()}function gx(e){e.isLayoutDirty=!1}function yx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vx(e){e.resolveTargetDelta()}function xx(e){e.calcProjection()}function bx(e){e.resetRotation()}function wx(e){e.removeLeadSnapshot()}function ol(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sl(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function Sx(e,t,n,r){sl(e.x,t.x,n.x,r),sl(e.y,t.y,n.y,r)}function Ex(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cx={duration:.45,ease:[.4,0,.1,1]},al=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ll=al("applewebkit/")&&!al("chrome/")?Math.round:q;function ul(e){e.min=ll(e.min),e.max=ll(e.max)}function kx(e){ul(e.x),ul(e.y)}function Of(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gi(Qa(t),Qa(n),.2)}const Tx=Af({attachResizeListener:(e,t)=>Ne(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vi={current:void 0},_f=Af({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vi.current){const e=new Tx({});e.mount(window),e.setOptions({layoutScroll:!0}),vi.current=e}return vi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Px={pan:{Feature:Wv},drag:{Feature:zv,ProjectionNode:_f,MeasureLayout:Cf}},Rx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ax(e){const t=Rx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ji(e,t,n=1){const[r,i]=Ax(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return hf(s)?parseFloat(s):s}else return Bi(i)?Ji(i,t,n+1):i}function Ox(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Bi(o))return;const s=Ji(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Bi(o))continue;const s=Ji(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const _x=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mf=e=>_x.has(e),Mx=e=>Object.keys(e).some(Mf),cl=e=>e===wt||e===A,fl=(e,t)=>parseFloat(e.split(", ")[t]),dl=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return fl(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?fl(o[1],e):0}},jx=new Set(["x","y","z"]),Vx=xn.filter(e=>!jx.has(e));function Fx(e){const t=[];return Vx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Dt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dl(4,13),y:dl(5,14)};Dt.translateX=Dt.x;Dt.translateY=Dt.y;const Lx=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Dt[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const f=t.getValue(u);f&&f.jump(a[u]),e[u]=Dt[u](l,o)}),e},Dx=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Mf);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let f=n[l],c=qt(f);const d=t[l];let h;if(hr(d)){const p=d.length,g=d[0]===null?1:0;f=d[g],c=qt(f);for(let y=g;y<p&&d[y]!==null;y++)h?Io(qt(d[y])===h):h=qt(d[y])}else h=qt(d);if(c!==h)if(cl(c)&&cl(h)){const p=u.get();typeof p=="string"&&u.set(parseFloat(p)),typeof d=="string"?t[l]=parseFloat(d):Array.isArray(d)&&h===A&&(t[l]=d.map(parseFloat))}else c!=null&&c.transform&&(h!=null&&h.transform)&&(f===0||d===0)?f===0?u.set(h.transform(f)):t[l]=c.transform(d):(s||(o=Fx(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=Lx(t,e,a);return o.length&&o.forEach(([f,c])=>{e.getValue(f).set(c)}),e.render(),jr&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Ix(e,t,n,r){return Mx(t)?Dx(e,t,n,r):{target:t,transitionEnd:r}}const Nx=(e,t,n,r)=>{const i=Ox(e,t,r);return t=i.target,r=i.transitionEnd,Ix(e,t,n,r)},Zi={current:null},jf={current:!1};function Bx(){if(jf.current=!0,!!jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zi.current=e.matches;e.addListener(t),t()}else Zi.current=!1}function $x(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(ce(o))e.addValue(i,o),yr(r)&&r.add(i);else if(ce(s))e.addValue(i,Lt(o,{owner:e})),yr(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Lt(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const hl=new WeakMap,Vf=Object.keys(pn),zx=Vf.length,pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wx=Oo.length;class Ux{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>B.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Fr(n),this.isVariantNode=yc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const d=f[c];a[c]!==void 0&&ce(d)&&(d.set(a[c],!1),yr(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),jf.current||Bx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hl.delete(this.current),this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=bt.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&B.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;l<zx;l++){const u=Vf[l],{isEnabled:f,Feature:c,ProjectionNode:d,MeasureLayout:h}=pn[u];d&&(s=d),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),h&&(a=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:f,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||c&&Ot(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<pl.length;r++){const i=pl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=$x(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Wx;r++){const i=Oo[r],o=this.props[i];(hn(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Lt(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Do(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ce(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Go),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ff extends Ux{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=av(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){ov(this,r,s);const a=Nx(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Hx(e){return window.getComputedStyle(e)}class qx extends Ff{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(bt.has(n)){const r=zo(n);return r&&r.default||0}else{const r=Hx(t),i=(Sc(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sf(t,n)}build(t,n,r,i){Mo(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Lo(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Rc(t,n,r,i)}}class Gx extends Ff{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bt.has(n)){const r=zo(n);return r&&r.default||0}return n=Ac.has(n)?n:Ro(n),t.getAttribute(n)}measureInstanceViewportBox(){return J()}scrapeMotionValuesFromProps(t,n){return _c(t,n)}build(t,n,r,i){Vo(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Oc(t,n,r,i)}mount(t){this.isSVGTag=Fo(t.tagName),super.mount(t)}}const Xx=(e,t)=>_o(e)?new Gx(t,{enableHardwareAcceleration:!1}):new qx(t,{enableHardwareAcceleration:!0}),Kx={layout:{ProjectionNode:_f,MeasureLayout:Cf}},Yx={...Sv,...zy,...Px,...Kx},Jx=Yg((e,t)=>Ay(e,t,Yx,Xx));/**
|
|
36
|
-
* @remix-run/router v1.15.3
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Remix Software Inc.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
42
|
-
*
|
|
43
|
-
* @license MIT
|
|
44
|
-
*/function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(this,arguments)}var xt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xt||(xt={}));const ml="popstate";function Zx(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return Qi("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:xr(i)}return eb(t,n,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qx(){return Math.random().toString(36).substr(2,8)}function gl(e,t){return{usr:e.state,key:e.key,idx:t}}function Qi(e,t,n,r){return n===void 0&&(n=null),gn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nr(t):t,{state:n,key:t&&t.key||r||Qx()})}function xr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function eb(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=xt.Pop,l=null,u=f();u==null&&(u=0,s.replaceState(gn({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function c(){a=xt.Pop;let y=f(),v=y==null?null:y-u;u=y,l&&l({action:a,location:g.location,delta:v})}function d(y,v){a=xt.Push;let b=Qi(g.location,y,v);n&&n(b,y),u=f()+1;let x=gl(b,u),S=g.createHref(b);try{s.pushState(x,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}o&&l&&l({action:a,location:g.location,delta:1})}function h(y,v){a=xt.Replace;let b=Qi(g.location,y,v);n&&n(b,y),u=f();let x=gl(b,u),S=g.createHref(b);s.replaceState(x,"",S),o&&l&&l({action:a,location:g.location,delta:0})}function p(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof y=="string"?y:xr(y);return b=b.replace(/ $/,"%20"),Pe(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let g={get action(){return a},get location(){return e(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ml,c),l=y,()=>{i.removeEventListener(ml,c),l=null}},createHref(y){return t(i,y)},createURL:p,encodeLocation(y){let v=p(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(y){return s.go(y)}};return g}var yl;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yl||(yl={}));function Lf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function tb(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nr(e):e;return{pathname:n?n.startsWith("/")?n:nb(n,t):t,search:ib(r),hash:ob(i)}}function nb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function rb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Df(e,t){let n=rb(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function If(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nr(e):(i=gn({},e),Pe(!i.pathname||!i.pathname.includes("?"),xi("?","pathname","search",i)),Pe(!i.pathname||!i.pathname.includes("#"),xi("#","pathname","hash",i)),Pe(!i.search||!i.search.includes("#"),xi("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}a=c>=0?t[c]:"/"}let l=tb(i,a),u=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Nf=e=>e.join("/").replace(/\/\/+/g,"/"),ib=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ob=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Bf=["post","put","patch","delete"];new Set(Bf);const sb=["get",...Bf];new Set(sb);/**
|
|
45
|
-
* React Router v6.22.3
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Remix Software Inc.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
51
|
-
*
|
|
52
|
-
* @license MIT
|
|
53
|
-
*/function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}const $f=m.reactExports.createContext(null),zt=m.reactExports.createContext(null),Xo=m.reactExports.createContext(null),Br=m.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function ab(e,t){let{relative:n}=t===void 0?{}:t;$r()||Pe(!1);let{basename:r,navigator:i}=m.reactExports.useContext(zt),{hash:o,pathname:s,search:a}=Wf(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Nf([r,s])),i.createHref({pathname:l,search:a,hash:o})}function $r(){return m.reactExports.useContext(Xo)!=null}function zr(){return $r()||Pe(!1),m.reactExports.useContext(Xo).location}function zf(e){m.reactExports.useContext(zt).static||m.reactExports.useLayoutEffect(e)}function lb(){let{isDataRoute:e}=m.reactExports.useContext(Br);return e?hb():ub()}function ub(){$r()||Pe(!1);let e=m.reactExports.useContext($f),{basename:t,future:n,navigator:r}=m.reactExports.useContext(zt),{matches:i}=m.reactExports.useContext(Br),{pathname:o}=zr(),s=JSON.stringify(Df(i,n.v7_relativeSplatPath)),a=m.reactExports.useRef(!1);return zf(()=>{a.current=!0}),m.reactExports.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=If(u,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Nf([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,s,o,e])}function Wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.reactExports.useContext(zt),{matches:i}=m.reactExports.useContext(Br),{pathname:o}=zr(),s=JSON.stringify(Df(i,r.v7_relativeSplatPath));return m.reactExports.useMemo(()=>If(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}var Uf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Uf||{}),Hf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Hf||{});function cb(e){let t=m.reactExports.useContext($f);return t||Pe(!1),t}function fb(e){let t=m.reactExports.useContext(Br);return t||Pe(!1),t}function db(e){let t=fb(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function hb(){let{router:e}=cb(Uf.UseNavigateStable),t=db(Hf.UseNavigateStable),n=m.reactExports.useRef(!1);return zf(()=>{n.current=!0}),m.reactExports.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,br({fromRouteId:t},o)))},[e,t])}function pb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=xt.Pop,navigator:o,static:s=!1,future:a}=e;$r()&&Pe(!1);let l=t.replace(/^\/*/,"/"),u=m.reactExports.useMemo(()=>({basename:l,navigator:o,static:s,future:br({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Nr(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:p="default"}=r,g=m.reactExports.useMemo(()=>{let y=Lf(f,l);return y==null?null:{location:{pathname:y,search:c,hash:d,state:h,key:p},navigationType:i}},[l,f,c,d,h,p,i]);return g==null?null:m.reactExports.createElement(zt.Provider,{value:u},m.reactExports.createElement(Xo.Provider,{children:n,value:g}))}new Promise(()=>{});/**
|
|
54
|
-
* React Router DOM v6.22.3
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) Remix Software Inc.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
60
|
-
*
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eo.apply(this,arguments)}function mb(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function gb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yb(e,t){return e.button===0&&(!t||t==="_self")&&!gb(e)}const vb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xb="6";try{window.__reactRouterVersion=xb}catch{}const bb="startTransition",vl=m.React[bb];function wb(e){let{basename:t,children:n,future:r,window:i}=e,o=m.reactExports.useRef();o.current==null&&(o.current=Zx({window:i,v5Compat:!0}));let s=o.current,[a,l]=m.reactExports.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=m.reactExports.useCallback(c=>{u&&vl?vl(()=>l(c)):l(c)},[l,u]);return m.reactExports.useLayoutEffect(()=>s.listen(f),[s,f]),m.reactExports.createElement(pb,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const Sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cb=m.reactExports.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=mb(t,vb),{basename:h}=m.reactExports.useContext(zt),p,g=!1;if(typeof u=="string"&&Eb.test(u)&&(p=u,Sb))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),E=Lf(S.pathname,h);S.origin===x.origin&&E!=null?u=E+S.search+S.hash:g=!0}catch{}let y=ab(u,{relative:i}),v=kb(u,{replace:s,state:a,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function b(x){r&&r(x),x.defaultPrevented||v(x)}return m.reactExports.createElement("a",eo({},d,{href:p||y,onClick:g||o?r:b,ref:n,target:l}))});var xl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xl||(xl={}));var bl;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bl||(bl={}));function kb(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=lb(),u=zr(),f=Wf(e,{relative:s});return m.reactExports.useCallback(c=>{if(yb(c,n)){c.preventDefault();let d=r!==void 0?r:xr(u)===xr(f);l(e,{replace:d,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[u,l,f,r,i,n,e,o,s,a])}function Ko(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Tb=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"}));function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pb=Object.freeze(Object.defineProperty({__proto__:null,default:It},Symbol.toStringTag,{value:"Module"}));function qf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m._setPrototypeOf(e,t)}function bi(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}/*!
|
|
63
|
-
* content-type
|
|
64
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
65
|
-
* MIT Licensed
|
|
66
|
-
*/var wl=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Rb=/\\([\u000b\u0020-\u00ff])/g,Ab=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ob=_b;function _b(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?Mb(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!Ab.test(r))throw new TypeError("invalid media type");var i=new jb(r.toLowerCase());if(n!==-1){var o,s,a;for(wl.lastIndex=n;s=wl.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),a=s[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(Rb,"$1"))),i.parameters[o]=a}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function Mb(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function jb(e){this.parameters=Object.create(null),this.type=e}var Rt=new Map,Gf=function(t){return t.cloneNode(!0)},Sl=function(){return window.location.protocol==="file:"},Xf=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=Ob(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(Sl()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(i.status===200||Sl()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(a){if(i.abort(),a instanceof Error)r(a,i);else throw a}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},et={},El=function(t,n){et[t]=et[t]||[],et[t].push(n)},Vb=function(t){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(et[t])){var l=Rt.get(t),u=et[t][s];l instanceof SVGSVGElement&&u(null,Gf(l)),l instanceof Error&&u(l),s===et[t].length-1&&delete et[t]}},0)},r=0,i=et[t].length;r<i;r++)n(r)},Fb=function(t,n,r){if(Rt.has(t)){var i=Rt.get(t);if(i===void 0){El(t,r);return}if(i instanceof SVGSVGElement){r(null,Gf(i));return}}Rt.set(t,void 0),El(t,r),Xf(t,n,function(o,s){var a;o?Rt.set(t,o):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Rt.set(t,s.responseXML.documentElement),Vb(t)})},Lb=function(t,n,r){Xf(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},Db=0,Ib=function(){return++Db},Re=[],Cl={},Nb="http://www.w3.org/2000/svg",wi="http://www.w3.org/1999/xlink",kl=function(t,n,r,i,o,s,a){var l=t.getAttribute("data-src")||t.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(Re.indexOf(t)!==-1){Re.splice(Re.indexOf(t),1),t=null;return}Re.push(t),t.setAttribute("src","");var u=i?Fb:Lb;u(l,o,function(f,c){if(!c){Re.splice(Re.indexOf(t),1),t=null,a(f);return}var d=t.getAttribute("id");d&&c.setAttribute("id",d);var h=t.getAttribute("title");h&&c.setAttribute("title",h);var p=t.getAttribute("width");p&&c.setAttribute("width",p);var g=t.getAttribute("height");g&&c.setAttribute("height",g);var y=Array.from(new Set(bi(bi(bi([],(c.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();c.setAttribute("class",y);var v=t.getAttribute("style");v&&c.setAttribute("style",v),c.setAttribute("data-src",l);var b=[].filter.call(t.attributes,function($){return/^data-\w[\w-]*$/.test($.name)});if(Array.prototype.forEach.call(b,function($){$.name&&$.value&&c.setAttribute($.name,$.value)}),r){var x={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},S,E,k,P,T;Object.keys(x).forEach(function($){S=$,k=x[$],E=c.querySelectorAll(S+"[id]");for(var he=function(Et,Wr){P=E[Et].id,T=P+"-"+Ib();var lt;Array.prototype.forEach.call(k,function(Ur){lt=c.querySelectorAll("["+Ur+'*="'+P+'"]');for(var En=0,ed=lt.length;En<ed;En++){var Qo=lt[En].getAttribute(Ur);Qo&&!Qo.match(new RegExp('url\\("?#'+P+'"?\\)'))||lt[En].setAttribute(Ur,"url(#"+T+")")}});for(var De=c.querySelectorAll("[*|href]"),Ct=[],kt=0,Wt=De.length;kt<Wt;kt++){var ut=De[kt].getAttributeNS(wi,"href");ut&&ut.toString()==="#"+E[Et].id&&Ct.push(De[kt])}for(var ke=0,Zo=Ct.length;ke<Zo;ke++)Ct[ke].setAttributeNS(wi,"href","#"+T);E[Et].id=T},Le=0,D=E.length;Le<D;Le++)he(Le)})}c.removeAttribute("xmlns:a");for(var _=c.querySelectorAll("script"),G=[],U,z,X=0,K=_.length;X<K;X++)z=_[X].getAttribute("type"),(!z||z==="application/ecmascript"||z==="application/javascript"||z==="text/javascript")&&(U=_[X].innerText||_[X].textContent,U&&G.push(U),c.removeChild(_[X]));if(G.length>0&&(n==="always"||n==="once"&&!Cl[l])){for(var fe=0,H=G.length;fe<H;fe++)new Function(G[fe])(window);Cl[l]=!0}var de=c.querySelectorAll("style");if(Array.prototype.forEach.call(de,function($){$.textContent+=""}),c.setAttribute("xmlns",Nb),c.setAttribute("xmlns:xlink",wi),s(c),!t.parentNode){Re.splice(Re.indexOf(t),1),t=null,a(new Error("Parent node is null"));return}t.parentNode.replaceChild(c,t),Re.splice(Re.indexOf(t),1),t=null,a(null,c)})},Bb=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,u=l===void 0?function(){}:l,f=r.cacheRequests,c=f===void 0?!0:f,d=r.evalScripts,h=d===void 0?"never":d,p=r.httpRequestWithCredentials,g=p===void 0?!1:p,y=r.renumerateIRIElements,v=y===void 0?!0:y;if(t&&"length"in t)for(var b=0,x=0,S=t.length;x<S;x++)kl(t[x],h,v,c,g,u,function(E,k){a(E,k),t&&"length"in t&&t.length===++b&&o(b)});else t?kl(t,h,v,c,g,u,function(E,k){a(E,k),o(1),t=null}):o(0)},$b=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},zb=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},Wb=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Vn="http://www.w3.org/2000/svg",Tl="http://www.w3.org/1999/xlink",Yo=function(e){qf(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof $b(this.reactWrapper).Node){var o=this.props,s=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,u=o.renumerateIRIElements,f=o.src,c=o.title,d=o.useRequestCache,h=this.props.onError,p=this.props.beforeInjection,g=this.props.afterInjection,y=this.props.wrapper,v,b;y==="svg"?(v=document.createElementNS(Vn,y),v.setAttribute("xmlns",Vn),v.setAttribute("xmlns:xlink",Tl),b=document.createElementNS(Vn,y)):(v=document.createElement(y),b=document.createElement(y)),v.appendChild(b),b.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(v);var x=function(P){if(i.removeSVG(),!i._isMounted){h(P);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){h(P)})},S=function(P,T){if(P){x(P);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{g(T)}catch(_){x(_)}})},E=function(P){if(P.setAttribute("role","img"),s){var T=P.querySelector(":scope > desc");T&&P.removeChild(T);var _=document.createElement("desc");_.innerHTML=s,P.prepend(_)}if(c){var G=P.querySelector(":scope > title");G&&P.removeChild(G);var U=document.createElement("title");U.innerHTML=c,P.prepend(U)}try{p(P)}catch(z){x(z)}};Bb(b,{afterEach:S,beforeEach:E,cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;zb(It({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var a=i.wrapper,l=Ko(i,Wb),u=a;return m.reactExports.createElement(u,It({},l,{ref:this.refCallback},a==="svg"?{xmlns:Vn,xmlnsXlink:Tl}:{}),this.state.isLoading&&s&&m.reactExports.createElement(s,null),this.state.hasError&&o&&m.reactExports.createElement(o,null))},t}(m.reactExports.Component);Yo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Yo.propTypes={afterInjection:Y.func,beforeInjection:Y.func,desc:Y.string,evalScripts:Y.oneOf(["always","once","never"]),fallback:Y.oneOfType([Y.func,Y.object,Y.string]),httpRequestWithCredentials:Y.bool,loading:Y.oneOfType([Y.func,Y.object,Y.string]),onError:Y.func,renumerateIRIElements:Y.bool,src:Y.string.isRequired,title:Y.string,useRequestCache:Y.bool,wrapper:Y.oneOf(["div","span","svg"])};function Ub(e){return m.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:m.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Hb(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=m.reactExports.useState({top:0,left:0}),s=m.reactExports.useRef(null),[a,l]=m.reactExports.useState("auto");return m.reactExports.useLayoutEffect(()=>{if(n.current&&s.current){const u=n.current.getBoundingClientRect(),f=s.current.getBoundingClientRect();let c=u.top;const d=u.left+u.width,h=f.height+(window.innerHeight-u.top)>window.innerHeight;h&&(console.log("overtop"),l(window.innerHeight-u.top-50)),u.top+f.height>window.innerHeight&&!h&&(c=u.top-f.height+u.height),o({top:c,left:d})}},[n,s]),r?t({maxHeight:a}):m.reactDomExports.createPortal(m.jsxRuntimeExports.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:t({maxHeight:a})}),n.current)}function qb(e){const{children:t,title:n,hasTooltip:r}=e,i=m.reactExports.useRef(),[o,s]=m.reactExports.useState(!1),[a,l]=m.reactExports.useState({top:0,left:0});return m.jsxRuntimeExports.jsxs("div",{className:"tooltip-item__wrapper",onMouseOver:()=>{if(s(!0),i.current){const u=i.current.getBoundingClientRect();l({top:u.top-20,left:u.left})}},onMouseLeave:()=>s(!1),ref:i,children:[m.jsxRuntimeExports.jsx("div",{children:t}),o&&r&&m.jsxRuntimeExports.jsx("div",{className:"tooltip-item__content",style:{position:"fixed",background:"#85858A",borderRadius:"4px",color:"#fff",padding:"4px 8px",top:a.top,left:a.left,zIndex:1400,fontSize:"10px",transition:"all 0.2s ease-in-out",animation:"fadeIn 0.2s ease-in-out",pointerEvents:"none"},children:n})]})}function Gb(e,t){return t?e:void 0}function Kf({item:e,level:t=0,...n}){var X,K,fe,H,de;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${t}`,l=i?"collapsed":"expanded",u=r(e.id)?"active":"",f=($,he=a)=>`${$} ${he} ${l} ${u}`,c=!!((X=e.children)!=null&&X.length),[d,h]=m.reactExports.useState(!1),p=m.reactExports.useRef(),g=m.reactExports.useRef(),y=(g==null?void 0:g.current)&&((K=g==null?void 0:g.current)==null?void 0:K.scrollWidth)>((fe=g==null?void 0:g.current)==null?void 0:fe.clientWidth),v=window.location.origin,b=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},x=window.location.pathname.split("/")[1],S=b.pathname.split("/")[1],E=n.ssr||!v.includes("local")&&v!==b.origin||S!==x,k=c||t===0?"div":E?"a":Cb,P=e.path||"#",T=t+1,_=c&&!(i&&T>=2&&!d),G=i||t===0?void 0:`${t}rem`,U=()=>{h(!0)},z=()=>{h(!1)};return m.jsxRuntimeExports.jsxs("div",{ref:p,className:f("menu-item__wrapper"),onMouseOver:U,onMouseOut:z,children:[m.jsxRuntimeExports.jsx(qb,{hasTooltip:y||i&&t===1,children:m.jsxRuntimeExports.jsxs(k,{to:P,href:P,className:f("menu-item__link"),style:{paddingLeft:G,transition:"all 0.3s",color:r(e.id)?((H=n.brandColors)==null?void 0:H.primary400)||Vt.primary400:void 0,backgroundColor:r(e.id)&&t===1?(de=n.brandColors)==null?void 0:de.primary200:void 0},onClick:$=>{c&&($.preventDefault(),i||s(e.id))},children:[t!==0&&m.jsxRuntimeExports.jsx(Xb,{cls:f,item:e}),m.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),ref:g,children:e.name}),c&&m.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:m.jsxRuntimeExports.jsx(Ub,{className:f(`menu-item__icon-arrow__icon ${o(e.id)?"open":"close"}`)})})]}),title:e.name}),_&&m.jsxRuntimeExports.jsx(Hb,{parentRef:p,onlyChild:!i||i&&T<2,renderChildren:({maxHeight:$})=>{var he;return m.jsxRuntimeExports.jsx(Jx.div,{className:f(`menu-item__dropdown ${o(e.id)?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${T}`),initial:{height:i||o(e.id)?"auto":0},animate:{height:i||o(e.id)?"auto":0},transition:{duration:.25},style:Gb({maxHeight:$,overflowY:"auto",paddingRight:3},$!=="auto"&&!!T),children:(he=e.children)==null?void 0:he.map(Le=>m.reactExports.createElement(Kf,{...n,key:Le.id,item:Le,level:T}))})}})]})}function Xb({item:e,cls:t}){var s,a;const[n,r]=m.reactExports.useState(!e.icon),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return m.jsxRuntimeExports.jsx("div",{className:t("menu-item__icon"),children:n?m.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=e.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?m.jsxRuntimeExports.jsx(Yo,{src:e.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(f=>{f.hasAttribute("fill")&&f.setAttribute("fill","currentColor"),f.hasAttribute("stroke")&&f.setAttribute("stroke","currentColor")})}}):m.jsxRuntimeExports.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function Kb(){return m.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:m.jsxRuntimeExports.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Yb(){return m.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:m.jsxRuntimeExports.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function Jb(e){return m.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:m.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const Zb=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
67
|
-
`,Pl=localStorage.getItem("isCollapsed");function Qb(e){const{baseUrl:t,menuPath:n}=e,r=zr(),[i,o]=m.reactExports.useState([]),[s,a]=m.reactExports.useState(Pl===null?!0:Pl==="true"),[l,u]=m.reactExports.useState({}),f=Jo(i),[c,d]=m.reactExports.useState(window.location.href);m.reactExports.useEffect(()=>{d(window.location.href)},[r]);const h=Yf(f,c).filter(E=>E.parentKey!==0);console.log("matchPaths:",c,r,h);const p=E=>{u({...l,[E]:!l[E]})},g=()=>{a(!s),localStorage.setItem("isCollapsed",JSON.stringify(!s))};m.reactExports.useLayoutEffect(()=>{(async()=>{var k,P;try{const _=t+(n||"/global-menu-config/api/v1/menu-items/user"),{data:G}=await Kl.get(_,{withCredentials:!0});let U=G.map(X=>({...X,parentKey:0}));U=Zf(U),e.replacePath&&(U=Jf(U,e.replacePath));const z=tw(U);u(z),o(U)}catch(T){console.log(T),hc(((P=(k=T.response)==null?void 0:k.data)==null?void 0:P.errorMessage)||"Have error when get menu items")}})()},[t,n,e.replacePath]);const[y,v]=m.reactExports.useState(!1),b=s?"collapsed":"expanded",x=E=>`${E} ${b}`,S=m.reactExports.useRef(null);return m.jsxRuntimeExports.jsxs("div",{className:x("side-bar"),children:[m.jsxRuntimeExports.jsx("div",{className:x("wrap-section side-bar__wrapper-toggle-btn"),children:m.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:g,children:s?m.jsxRuntimeExports.jsx(Yb,{}):m.jsxRuntimeExports.jsx(Kb,{})})}),m.jsxRuntimeExports.jsx(ou,{ref:S,className:x("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(E=>{const k=P=>h.some(T=>T.id===P);return m.jsxRuntimeExports.jsx(Kf,{item:E,isActive:k,isCollapsed:s,expanded:P=>l[P],toggleExpand:p,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors},E.id)})}),m.jsxRuntimeExports.jsxs("div",{className:x("wrap-section side-bar__wrap-btn-logout"),children:[m.jsxRuntimeExports.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>v(!0),children:[m.jsxRuntimeExports.jsx(Jb,{className:x("side-bar__icon-logout")}),m.jsxRuntimeExports.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),m.jsxRuntimeExports.jsx(su,{isOpen:y,onClose:()=>v(!1),onConfirm:()=>e.logout?e.logout():rp(e.baseUrl)})]})]})}function Jo(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Jo(n.children)));return t}function ew(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function Yf(e,t){var l;const n=new URL(t);let r=e.filter(u=>u.path&&u.path.includes("http")).map(u=>({item:u,itemUrl:new URL(u.path),matchingParamsCount:ew(t,u.path)})).sort((u,f)=>{const c=new URL(u.itemUrl).searchParams,d=new URL(f.itemUrl).searchParams;return Array.from(c).length-Array.from(d).length}).filter(({itemUrl:u})=>n.origin===u.origin);const i=r.filter(({itemUrl:u})=>n.pathname===u.pathname),o=r.filter(({itemUrl:u})=>n.pathname.includes(u.pathname));r=i.length>0?i:o,r=r.sort((u,f)=>f.matchingParamsCount-u.matchingParamsCount);let s=r.length>0?(l=r.find(u=>u.item.parentKey))==null?void 0:l.item:null;console.log("matchingItems:",r);let a=[];for(;s;)a=[s,...a],s=e.find(u=>u.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",a),a}function Jf(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=Jf(n.children,t)):n.path=t(n.path),n})}function Zf(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=Zf(n.children)),n))}function tw(e){const t=Jo(e),n=Yf(t,window.location.href),r={};return n.forEach(i=>r[i.id]=!0),t.forEach(i=>{i.parentKey||(r[i.id]=!0)}),r}function Qf(e){return m.jsxRuntimeExports.jsx(uc,{styles:[ep,Zb],style:{position:"sticky",zIndex:20},children:m.jsxRuntimeExports.jsx(Qb,{...e})})}function nw(e){return m.jsxRuntimeExports.jsx(wb,{children:m.jsxRuntimeExports.jsx(Qf,{...e,ssr:!0})})}{const e=m.s(nw,{props:{baseUrl:"string",menuPath:"string",logout:"function",replacePath:"function",ssr:"boolean",brandColors:"json"}});customElements.define("global-menu",e)}exports.ERROR_MESSAGE=tp;exports.GlobalMenu=Qf;exports.LogoutConfirmModal=su;exports.ShadowDomWrapper=uc;exports._extends=It;exports._extends$1=Pb;exports._inheritsLoose=qf;exports._objectWithoutPropertiesLoose=Ko;exports.axios=Kl;exports.color=Vt;exports.login=np;exports.notify=Ng;exports.objectWithoutPropertiesLoose=Tb;exports.pushError=hc;
|