@spaceandtimelabs/makeinfinite-ui 0.22.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/makeinfinite-ui.es.js +6133 -6109
- package/dist/makeinfinite-ui.umd.js +155 -123
- package/package.json +3 -2
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
(function(Ot,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-ace"),require("react-dom"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-ace","react-dom","@babel/standalone"],_t):(Ot=typeof globalThis<"u"?globalThis:Ot||self,_t(Ot.MakeInfinite={},Ot.git,Ot.React,Ot.AceEditor,Ot.ReactDOM,Ot.Babel))})(this,function(Ot,_t,
|
|
1
|
+
(function(Ot,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-ace"),require("react-dom"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-ace","react-dom","@babel/standalone"],_t):(Ot=typeof globalThis<"u"?globalThis:Ot||self,_t(Ot.MakeInfinite={},Ot.git,Ot.React,Ot.AceEditor,Ot.ReactDOM,Ot.Babel))})(this,function(Ot,_t,Y,$b,mo,Db){"use strict";var Zj=Object.defineProperty;var Qj=(Ot,_t,Y)=>_t in Ot?Zj(Ot,_t,{enumerable:!0,configurable:!0,writable:!0,value:Y}):Ot[_t]=Y;var Ar=(Ot,_t,Y)=>Qj(Ot,typeof _t!="symbol"?_t+"":_t,Y);function Lc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=Lc(Y),Bb=Lc(mo),Ip=Lc(Db);var Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Va(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var Lb=jb;function jb(e){var t,n;if(typeof e!="function")throw new Error("expected a function but got "+e);return function(){return t||(t=!0,n=e.apply(this,arguments)),n}}(function(e){function t(S,O){var k;return S instanceof Buffer?k=S:k=Buffer.from(S.buffer,S.byteOffset,S.byteLength),k.toString(O)}var n=function(S){return Buffer.from(S)};function o(S){for(var O=0,k=Math.min(256*256,S.length+1),I=new Uint16Array(k),M=[],B=0;;){var D=O<S.length;if(!D||B>=k-1){var V=I.subarray(0,B),U=V;if(M.push(String.fromCharCode.apply(null,U)),!D)return M.join("");S=S.subarray(O),O=0,B=0}var C=S[O++];if(!(C&128))I[B++]=C;else if((C&224)===192){var G=S[O++]&63;I[B++]=(C&31)<<6|G}else if((C&240)===224){var G=S[O++]&63,Z=S[O++]&63;I[B++]=(C&31)<<12|G<<6|Z}else if((C&248)===240){var G=S[O++]&63,Z=S[O++]&63,H=S[O++]&63,K=(C&7)<<18|G<<12|Z<<6|H;K>65535&&(K-=65536,I[B++]=K>>>10&1023|55296,K=56320|K&1023),I[B++]=K}}}function a(S){for(var O=0,k=S.length,I=0,M=Math.max(32,k+(k>>>1)+7),B=new Uint8Array(M>>>3<<3);O<k;){var D=S.charCodeAt(O++);if(D>=55296&&D<=56319){if(O<k){var V=S.charCodeAt(O);(V&64512)===56320&&(++O,D=((D&1023)<<10)+(V&1023)+65536)}if(D>=55296&&D<=56319)continue}if(I+4>B.length){M+=8,M*=1+O/S.length*2,M=M>>>3<<3;var U=new Uint8Array(M);U.set(B),B=U}if(D&4294967168)if(!(D&4294965248))B[I++]=D>>>6&31|192;else if(!(D&4294901760))B[I++]=D>>>12&15|224,B[I++]=D>>>6&63|128;else if(!(D&4292870144))B[I++]=D>>>18&7|240,B[I++]=D>>>12&63|128,B[I++]=D>>>6&63|128;else continue;else{B[I++]=D;continue}B[I++]=D&63|128}return B.slice?B.slice(0,I):B.subarray(0,I)}var s="Failed to ",l=function(S,O,k){if(S)throw new Error("".concat(s).concat(O,": the '").concat(k,"' option is unsupported."))},u=typeof Buffer=="function"&&Buffer.from,d=u?n:a;function h(){this.encoding="utf-8"}h.prototype.encode=function(S,O){return l(O&&O.stream,"encode","stream"),d(S)};function y(S){var O;try{var k=new Blob([S],{type:"text/plain;charset=UTF-8"});O=URL.createObjectURL(k);var I=new XMLHttpRequest;return I.open("GET",O,!1),I.send(),I.responseText}finally{O&&URL.revokeObjectURL(O)}}var m=!u&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",b=["utf-8","utf8","unicode-1-1-utf-8"],w=o;u?w=t:m&&(w=function(S){try{return y(S)}catch{return o(S)}});var _="construct 'TextDecoder'",E="".concat(s," ").concat(_,": the ");function P(S,O){l(O&&O.fatal,_,"fatal"),S=S||"utf-8";var k;if(u?k=Buffer.isEncoding(S):k=b.indexOf(S.toLowerCase())!==-1,!k)throw new RangeError("".concat(E," encoding label provided ('").concat(S,"') is invalid."));this.encoding=S,this.fatal=!1,this.ignoreBOM=!1}P.prototype.decode=function(S,O){l(O&&O.stream,"decode","stream");var k;return S instanceof Uint8Array?k=S:S.buffer instanceof ArrayBuffer?k=new Uint8Array(S.buffer):k=new Uint8Array(S),w(k,this.encoding)},e.TextEncoder=e.TextEncoder||h,e.TextDecoder=e.TextDecoder||P})(typeof window<"u"?window:Mr);var Nb={encode:e=>new TextEncoder().encode(e),decode:e=>new TextDecoder().decode(e)},Fb=zb;function zb(e,t,n){var o;return function(){if(!t)return e.apply(this,arguments);var a=this,s=arguments,l=n&&!o;if(clearTimeout(o),o=setTimeout(function(){if(o=null,!l)return e.apply(a,s)},t),l)return e.apply(this,arguments)}}function Tp(e){if(e.length===0)return".";let t=Pp(e);return t=t.reduce(Gb,[]),jc(...t)}function Wb(...e){let t="";for(let n of e)n.startsWith("/")?t=n:t=Tp(jc(t,n));return t}function jc(...e){if(e.length===0)return"";let t=e.join("/");return t=t.replace(/\/{2,}/g,"/"),t}function Pp(e){if(e.length===0)return[];if(e==="/")return["/"];let t=e.split("/");return t[t.length-1]===""&&t.pop(),e[0]==="/"?t[0]="/":t[0]!=="."&&t.unshift("."),t}function Ub(e){const t=e.lastIndexOf("/");if(t===-1)throw new Error(`Cannot get dirname of "${e}"`);return t===0?"/":e.slice(0,t)}function Hb(e){if(e==="/")throw new Error(`Cannot get basename of "${e}"`);const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function Gb(e,t){if(e.length===0)return e.push(t),e;if(t===".")return e;if(t===".."){if(e.length===1){if(e[0]==="/")throw new Error("Unable to normalize path - traverses above root directory");if(e[0]===".")return e.push(t),e}return e[e.length-1]===".."?(e.push(".."),e):(e.pop(),e)}return e.push(t),e}var Nc={join:jc,normalize:Tp,split:Pp,basename:Hb,dirname:Ub,resolve:Wb};function Ni(e){return class extends Error{constructor(...t){super(...t),this.code=e,this.message?this.message=e+": "+this.message:this.message=e}}}const qb=Ni("EEXIST"),Vb=Ni("ENOENT"),Yb=Ni("ENOTDIR"),Xb=Ni("ENOTEMPTY"),Kb=Ni("ETIMEDOUT");var Op={EEXIST:qb,ENOENT:Vb,ENOTDIR:Yb,ENOTEMPTY:Xb,ETIMEDOUT:Kb};const fn=Nc,{EEXIST:Ap,ENOENT:Jb,ENOTDIR:Mp,ENOTEMPTY:Zb}=Op,on=0;var Qb=class{constructor(){}_makeRoot(t=new Map){return t.set(on,{mode:511,type:"dir",size:0,ino:0,mtimeMs:Date.now()}),t}activate(t=null){t===null?this._root=new Map([["/",this._makeRoot()]]):typeof t=="string"?this._root=new Map([["/",this._makeRoot(this.parse(t))]]):this._root=t}get activated(){return!!this._root}deactivate(){this._root=void 0}size(){return this._countInodes(this._root.get("/"))-1}_countInodes(t){let n=1;for(let[o,a]of t)o!==on&&(n+=this._countInodes(a));return n}autoinc(){return this._maxInode(this._root.get("/"))+1}_maxInode(t){let n=t.get(on).ino;for(let[o,a]of t)o!==on&&(n=Math.max(n,this._maxInode(a)));return n}print(t=this._root.get("/")){let n="";const o=(a,s)=>{for(let[l,u]of a){if(l===0)continue;let d=u.get(on),h=d.mode.toString(8);n+=`${" ".repeat(s)}${l} ${h}`,d.type==="file"?n+=` ${d.size} ${d.mtimeMs}
|
|
2
2
|
`:(n+=`
|
|
3
3
|
`,o(u,s+1))}};return o(t,0),n}parse(t){let n=0;function o(u){const d=++n,h=u.length===1?"dir":"file";let[y,m,b]=u;return y=parseInt(y,8),m=m?parseInt(m):0,b=b?parseInt(b):Date.now(),new Map([[on,{mode:y,type:h,size:m,mtimeMs:b,ino:d}]])}let a=t.trim().split(`
|
|
4
|
-
`),s=this._makeRoot(),l=[{indent:-1,node:s},{indent:0,node:null}];for(let u of a){let h=u.match(/^\t*/)[0].length;u=u.slice(h);let[y,...m]=u.split(" "),b=o(m);if(h<=l[l.length-1].indent)for(;h<=l[l.length-1].indent;)l.pop();l.push({indent:h,node:b}),l[l.length-2].node.set(y,b)}return s}_lookup(t,n=!0){let o=this._root,a="/",s=fn.split(t);for(let l=0;l<s.length;++l){let u=s[l];if(o=o.get(u),!o)throw new Zb(t);if(n||l<s.length-1){const d=o.get(on);if(d.type==="symlink"){let h=fn.resolve(a,d.target);o=this._lookup(h)}a?a=fn.join(a,u):a=u}}return o}mkdir(t,{mode:n}){if(t==="/")throw new Mp;let o=this._lookup(fn.dirname(t)),a=fn.basename(t);if(o.has(a))throw new Mp;let s=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};s.set(on,l),o.set(a,s)}rmdir(t){let n=this._lookup(t);if(n.get(on).type!=="dir")throw new $p;if(n.size>1)throw new Qb;let o=this._lookup(fn.dirname(t)),a=fn.basename(t);o.delete(a)}readdir(t){let n=this._lookup(t);if(n.get(on).type!=="dir")throw new $p;return[...n.keys()].filter(o=>typeof o=="string")}writeStat(t,n,{mode:o}){let a;try{let h=this.stat(t);o==null&&(o=h.mode),a=h.ino}catch{}o==null&&(o=438),a==null&&(a=this.autoinc());let s=this._lookup(fn.dirname(t)),l=fn.basename(t),u={mode:o,type:"file",size:n,mtimeMs:Date.now(),ino:a},d=new Map;return d.set(on,u),s.set(l,d),u}unlink(t){let n=this._lookup(fn.dirname(t)),o=fn.basename(t);n.delete(o)}rename(t,n){let o=fn.basename(n),a=this._lookup(t);this._lookup(fn.dirname(n)).set(o,a),this.unlink(t)}stat(t){return this._lookup(t).get(on)}lstat(t){return this._lookup(t,!1).get(on)}readlink(t){return this._lookup(t,!1).get(on).target}symlink(t,n){let o,a;try{let h=this.stat(n);a===null&&(a=h.mode),o=h.ino}catch{}a==null&&(a=40960),o==null&&(o=this.autoinc());let s=this._lookup(fn.dirname(n)),l=fn.basename(n),u={mode:a,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:o},d=new Map;return d.set(on,u),s.set(l,d),u}_du(t){let n=0;for(const[o,a]of t.entries())o===on?n+=a.size:n+=this._du(a);return n}du(t){let n=this._lookup(t);return this._du(n)}};class Dp{constructor(t="keyval-store",n="keyval"){this.storeName=n,this._dbName=t,this._storeName=n,this._init()}_init(){this._dbp||(this._dbp=new Promise((t,n)=>{const o=indexedDB.open(this._dbName);o.onerror=()=>n(o.error),o.onsuccess=()=>t(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(o=>new Promise((a,s)=>{const l=o.transaction(this.storeName,t);l.oncomplete=()=>a(),l.onabort=l.onerror=()=>s(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let zc;function yo(){return zc||(zc=new Dp),zc}function tx(e,t=yo()){let n;return t._withIDBStore("readwrite",o=>{n=o.get(e)}).then(()=>n.result)}function nx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{o.put(t,e)})}function rx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{const a=o.get(e);a.onsuccess=()=>{o.put(t(a.result),e)}})}function ox(e,t=yo()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function ix(e=yo()){return e._withIDBStore("readwrite",t=>{t.clear()})}function ax(e=yo()){const t=[];return e._withIDBStore("readwrite",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)}function sx(e=yo()){return e._close()}const Bp=Va(Object.freeze(Object.defineProperty({__proto__:null,Store:Dp,clear:ix,close:sx,del:ox,get:tx,keys:ax,set:nx,update:rx},Symbol.toStringTag,{value:"Module"}))),Jr=Bp;var lx=class{constructor(t,n){this._database=t,this._storename=n,this._store=new Jr.Store(this._database,this._storename)}saveSuperblock(t){return Jr.set("!root",t,this._store)}loadSuperblock(){return Jr.get("!root",this._store)}readFile(t){return Jr.get(t,this._store)}writeFile(t,n){return Jr.set(t,n,this._store)}unlink(t){return Jr.del(t,this._store)}wipe(){return Jr.clear(this._store)}close(){return Jr.close(this._store)}},cx=class{constructor(t){this._url=t}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(t=>t.ok?t.text():null)}async readFile(t){const n=await fetch(this._url+t);if(n.status===200)return n.arrayBuffer();throw new Error("ENOENT")}async sizeFile(t){const n=await fetch(this._url+t,{method:"HEAD"});if(n.status===200)return n.headers.get("content-length");throw new Error("ENOENT")}};const Fi=Bp,ux=e=>new Promise(t=>setTimeout(t,e));var dx=class{constructor(t,n){this._id=Math.random(),this._database=t,this._storename=n,this._store=new Fi.Store(this._database,this._storename),this._lock=null}async has({margin:t=2e3}={}){if(this._lock&&this._lock.holder===this._id){const n=Date.now();return this._lock.expires>n+t?!0:await this.renew()}else return!1}async renew({ttl:t=5e3}={}){let n;return await Fi.update("lock",o=>{const s=Date.now()+t;return n=o&&o.holder===this._id,this._lock=n?{holder:this._id,expires:s}:o,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,o,a;if(await Fi.update("lock",s=>{const l=Date.now(),u=l+t;return o=s&&s.expires<l,n=s===void 0||o,a=s&&s.holder===this._id,this._lock=n?{holder:this._id,expires:u}:s,this._lock},this._store),a)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:o}={}){for(;n--;){if(await this.acquire({ttl:o}))return!0;await ux(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,o,a;if(await Fi.update("lock",s=>(n=t||s&&s.holder===this._id,o=s===void 0,a=s&&s.holder!==this._id,this._lock=n?void 0:s,this._lock),this._store),await Fi.close(this._store),!n&&!t){if(o)throw new Error("Mutex double-freed");if(a)throw new Error("Mutex lost ownership")}return n}},fx=class{constructor(t){this._id=Math.random(),this._database=t,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(t=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},n=>(this._has=!!n,t(!!n),new Promise(o=>{this._release=o})))})}async wait({timeout:t=6e5}={}){return new Promise((n,o)=>{const a=new AbortController;setTimeout(()=>{a.abort(),o(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:a.signal},s=>(this._has=!!s,n(!!s),new Promise(l=>{this._release=l})))})}async release({force:t=!1}={}){this._has=!1,this._release?this._release():t&&navigator.locks.request(this._database+"_lock",{steal:!0},n=>!0)}};const{encode:px,decode:Lp}=Fb,hx=zb,gx=ex,{ENOENT:mx,ENOTEMPTY:yx,ETIMEDOUT:vx}=Ap,bx=lx,xx=cx,wx=dx,Sx=fx,zi=Fc;var Cx=class{constructor(){this.saveSuperblock=hx(()=>{this.flush()},500)}async init(t,{wipe:n,url:o,urlauto:a,fileDbName:s=t,db:l=null,fileStoreName:u=t+"_files",lockDbName:d=t+"_lock",lockStoreName:h=t+"_lock"}={}){this._name=t,this._idb=l||new bx(s,u),this._mutex=navigator.locks?new Sx(t):new wx(d,h),this._cache=new gx(t),this._opts={wipe:n,url:o},this._needsWipe=!!n,o&&(this._http=new xx(o),this._urlauto=!!a)}async activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();const t=await this._idb.loadSuperblock();if(t)this._cache.activate(t);else if(this._http){const n=await this._http.loadSuperblock();this._cache.activate(n),await this._saveSuperblock()}else this._cache.activate();if(!await this._mutex.has())throw new vx}async deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(t){console.log(t)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}_writeStat(t,n,o){let a=zi.split(zi.dirname(t)),s=a.shift();for(let l of a){s=zi.join(s,l);try{this._cache.mkdir(s,{mode:511})}catch{}}return this._cache.writeStat(t,n,o)}async readFile(t,n){const{encoding:o}=n;if(o&&o!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let a=null,s=null;try{s=this._cache.stat(t),a=await this._idb.readFile(s.ino)}catch(l){if(!this._urlauto)throw l}if(!a&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=zi.resolve(zi.dirname(t),l.target),l=this._cache.lstat(t);a=await this._http.readFile(t)}if(a&&((!s||s.size!=a.byteLength)&&(s=await this._writeStat(t,a.byteLength,{mode:s?s.mode:438}),this.saveSuperblock()),o==="utf8"?a=Lp(a):a.toString=()=>Lp(a)),!s)throw new mx(t);return a}async writeFile(t,n,o){const{mode:a,encoding:s="utf8"}=o;if(typeof n=="string"){if(s!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=px(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:a});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const o=this._cache.lstat(t);this._cache.unlink(t),o.type!=="symlink"&&await this._idb.unlink(o.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:o=511}=n;this._cache.mkdir(t,{mode:o})}rmdir(t,n){if(t==="/")throw new yx;this._cache.rmdir(t)}rename(t,n){this._cache.rename(t,n)}stat(t,n){return this._cache.stat(t)}lstat(t,n){return this._cache.lstat(t)}readlink(t,n){return this._cache.readlink(t)}symlink(t,n){this._cache.symlink(t,n)}async backFile(t,n){let o=await this._http.sizeFile(t);await this._writeStat(t,o,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},_x=class{constructor(t){this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return this.type==="file"}isDirectory(){return this.type==="dir"}isSymbolicLink(){return this.type==="symlink"}};const Ex=Cx,jp=_x,Ya=Fc;function pr(e,t,...n){return e=Ya.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function Rx(e,t,n,...o){return e=Ya.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...o]}function Np(e,t,...n){return[Ya.normalize(e),Ya.normalize(t),...n]}var Ix=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,pr,!1),this.writeFile=this._wrap(this.writeFile,Rx,!0),this.unlink=this._wrap(this.unlink,pr,!0),this.readdir=this._wrap(this.readdir,pr,!1),this.mkdir=this._wrap(this.mkdir,pr,!0),this.rmdir=this._wrap(this.rmdir,pr,!0),this.rename=this._wrap(this.rename,Np,!0),this.stat=this._wrap(this.stat,pr,!1),this.lstat=this._wrap(this.lstat,pr,!1),this.readlink=this._wrap(this.readlink,pr,!1),this.symlink=this._wrap(this.symlink,Np,!0),this.backFile=this._wrap(this.backFile,pr,!0),this.du=this._wrap(this.du,pr,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,n)}async init(...t){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...t),this._initPromise}async _init(t,n={}){await this._gracefulShutdown(),this._activationPromise&&await this._deactivate(),this._backend&&this._backend.destroy&&await this._backend.destroy(),this._backend=n.backend||new Ex,this._backend.init&&await this._backend.init(t,n),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),n.defer||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(t=>this._gracefulShutdownResolve=t),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(t,n,o){return async(...a)=>{a=n(...a);let s={name:t.name,args:a};this._operations.add(s);try{return await this._activate(),await t.apply(this,a)}finally{this._operations.delete(s),o&&this._backend.saveSuperblock(),this._operations.size===0&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),await this._activationPromise}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async readFile(t,n){return this._backend.readFile(t,n)}async writeFile(t,n,o){return await this._backend.writeFile(t,n,o),null}async unlink(t,n){return await this._backend.unlink(t,n),null}async readdir(t,n){return this._backend.readdir(t,n)}async mkdir(t,n){return await this._backend.mkdir(t,n),null}async rmdir(t,n){return await this._backend.rmdir(t,n),null}async rename(t,n){return await this._backend.rename(t,n),null}async stat(t,n){const o=await this._backend.stat(t,n);return new jp(o)}async lstat(t,n){const o=await this._backend.lstat(t,n);return new jp(o)}async readlink(t,n){return this._backend.readlink(t,n)}async symlink(t,n){return await this._backend.symlink(t,n),null}async backFile(t,n){return await this._backend.backFile(t,n),null}async du(t){return this._backend.du(t)}async flush(){return this._backend.flush()}};const kx=jb,Tx=Ix;function vn(e,t){return typeof e=="function"&&(t=e),t=kx(t),[(...o)=>t(null,...o),t]}var Px=class{constructor(...t){this.promises=new Tx(...t),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}init(t,n){return this.promises.init(t,n)}readFile(t,n,o){const[a,s]=vn(n,o);this.promises.readFile(t,n).then(a).catch(s)}writeFile(t,n,o,a){const[s,l]=vn(o,a);this.promises.writeFile(t,n,o).then(s).catch(l)}unlink(t,n,o){const[a,s]=vn(n,o);this.promises.unlink(t,n).then(a).catch(s)}readdir(t,n,o){const[a,s]=vn(n,o);this.promises.readdir(t,n).then(a).catch(s)}mkdir(t,n,o){const[a,s]=vn(n,o);this.promises.mkdir(t,n).then(a).catch(s)}rmdir(t,n,o){const[a,s]=vn(n,o);this.promises.rmdir(t,n).then(a).catch(s)}rename(t,n,o){const[a,s]=vn(o);this.promises.rename(t,n).then(a).catch(s)}stat(t,n,o){const[a,s]=vn(n,o);this.promises.stat(t).then(a).catch(s)}lstat(t,n,o){const[a,s]=vn(n,o);this.promises.lstat(t).then(a).catch(s)}readlink(t,n,o){const[a,s]=vn(n,o);this.promises.readlink(t).then(a).catch(s)}symlink(t,n,o){const[a,s]=vn(o);this.promises.symlink(t,n).then(a).catch(s)}backFile(t,n,o){const[a,s]=vn(n,o);this.promises.backFile(t,n).then(a).catch(s)}du(t,n){const[o,a]=vn(n);this.promises.du(t).then(o).catch(a)}flush(t){const[n,o]=vn(t);this.promises.flush().then(n).catch(o)}};const Ox=Tp(Px);var Fp={},Xa={};Xa.byteLength=$x,Xa.toByteArray=Bx,Xa.fromByteArray=Nx;for(var hr=[],Fn=[],Ax=typeof Uint8Array<"u"?Uint8Array:Array,Wc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uo=0,Mx=Wc.length;Uo<Mx;++Uo)hr[Uo]=Wc[Uo],Fn[Wc.charCodeAt(Uo)]=Uo;Fn[45]=62,Fn[95]=63;function zp(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function $x(e){var t=zp(e),n=t[0],o=t[1];return(n+o)*3/4-o}function Dx(e,t,n){return(t+n)*3/4-n}function Bx(e){var t,n=zp(e),o=n[0],a=n[1],s=new Ax(Dx(e,o,a)),l=0,u=a>0?o-4:o,d;for(d=0;d<u;d+=4)t=Fn[e.charCodeAt(d)]<<18|Fn[e.charCodeAt(d+1)]<<12|Fn[e.charCodeAt(d+2)]<<6|Fn[e.charCodeAt(d+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=t&255;return a===2&&(t=Fn[e.charCodeAt(d)]<<2|Fn[e.charCodeAt(d+1)]>>4,s[l++]=t&255),a===1&&(t=Fn[e.charCodeAt(d)]<<10|Fn[e.charCodeAt(d+1)]<<4|Fn[e.charCodeAt(d+2)]>>2,s[l++]=t>>8&255,s[l++]=t&255),s}function Lx(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function jx(e,t,n){for(var o,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(Lx(o));return a.join("")}function Nx(e){for(var t,n=e.length,o=n%3,a=[],s=16383,l=0,u=n-o;l<u;l+=s)a.push(jx(e,l,l+s>u?u:l+s));return o===1?(t=e[n-1],a.push(hr[t>>2]+hr[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],a.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),a.join("")}var Uc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Uc.read=function(e,t,n,o,a){var s,l,u=a*8-o-1,d=(1<<u)-1,h=d>>1,y=-7,m=n?a-1:0,b=n?-1:1,w=e[t+m];for(m+=b,s=w&(1<<-y)-1,w>>=-y,y+=u;y>0;s=s*256+e[t+m],m+=b,y-=8);for(l=s&(1<<-y)-1,s>>=-y,y+=o;y>0;l=l*256+e[t+m],m+=b,y-=8);if(s===0)s=1-h;else{if(s===d)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,o),s=s-h}return(w?-1:1)*l*Math.pow(2,s-o)},Uc.write=function(e,t,n,o,a,s){var l,u,d,h=s*8-a-1,y=(1<<h)-1,m=y>>1,b=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,S=o?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+m>=1?t+=b/d:t+=b*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(u=0,l=y):l+m>=1?(u=(t*d-1)*Math.pow(2,a),l=l+m):(u=t*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;e[n+w]=u&255,w+=S,u/=256,a-=8);for(l=l<<a|u,h+=a;h>0;e[n+w]=l&255,w+=S,l/=256,h-=8);e[n+w-S]|=E*128};/*!
|
|
4
|
+
`),s=this._makeRoot(),l=[{indent:-1,node:s},{indent:0,node:null}];for(let u of a){let h=u.match(/^\t*/)[0].length;u=u.slice(h);let[y,...m]=u.split(" "),b=o(m);if(h<=l[l.length-1].indent)for(;h<=l[l.length-1].indent;)l.pop();l.push({indent:h,node:b}),l[l.length-2].node.set(y,b)}return s}_lookup(t,n=!0){let o=this._root,a="/",s=fn.split(t);for(let l=0;l<s.length;++l){let u=s[l];if(o=o.get(u),!o)throw new Jb(t);if(n||l<s.length-1){const d=o.get(on);if(d.type==="symlink"){let h=fn.resolve(a,d.target);o=this._lookup(h)}a?a=fn.join(a,u):a=u}}return o}mkdir(t,{mode:n}){if(t==="/")throw new Ap;let o=this._lookup(fn.dirname(t)),a=fn.basename(t);if(o.has(a))throw new Ap;let s=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};s.set(on,l),o.set(a,s)}rmdir(t){let n=this._lookup(t);if(n.get(on).type!=="dir")throw new Mp;if(n.size>1)throw new Zb;let o=this._lookup(fn.dirname(t)),a=fn.basename(t);o.delete(a)}readdir(t){let n=this._lookup(t);if(n.get(on).type!=="dir")throw new Mp;return[...n.keys()].filter(o=>typeof o=="string")}writeStat(t,n,{mode:o}){let a;try{let h=this.stat(t);o==null&&(o=h.mode),a=h.ino}catch{}o==null&&(o=438),a==null&&(a=this.autoinc());let s=this._lookup(fn.dirname(t)),l=fn.basename(t),u={mode:o,type:"file",size:n,mtimeMs:Date.now(),ino:a},d=new Map;return d.set(on,u),s.set(l,d),u}unlink(t){let n=this._lookup(fn.dirname(t)),o=fn.basename(t);n.delete(o)}rename(t,n){let o=fn.basename(n),a=this._lookup(t);this._lookup(fn.dirname(n)).set(o,a),this.unlink(t)}stat(t){return this._lookup(t).get(on)}lstat(t){return this._lookup(t,!1).get(on)}readlink(t){return this._lookup(t,!1).get(on).target}symlink(t,n){let o,a;try{let h=this.stat(n);a===null&&(a=h.mode),o=h.ino}catch{}a==null&&(a=40960),o==null&&(o=this.autoinc());let s=this._lookup(fn.dirname(n)),l=fn.basename(n),u={mode:a,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:o},d=new Map;return d.set(on,u),s.set(l,d),u}_du(t){let n=0;for(const[o,a]of t.entries())o===on?n+=a.size:n+=this._du(a);return n}du(t){let n=this._lookup(t);return this._du(n)}};class $p{constructor(t="keyval-store",n="keyval"){this.storeName=n,this._dbName=t,this._storeName=n,this._init()}_init(){this._dbp||(this._dbp=new Promise((t,n)=>{const o=indexedDB.open(this._dbName);o.onerror=()=>n(o.error),o.onsuccess=()=>t(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(o=>new Promise((a,s)=>{const l=o.transaction(this.storeName,t);l.oncomplete=()=>a(),l.onabort=l.onerror=()=>s(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let Fc;function yo(){return Fc||(Fc=new $p),Fc}function ex(e,t=yo()){let n;return t._withIDBStore("readwrite",o=>{n=o.get(e)}).then(()=>n.result)}function tx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{o.put(t,e)})}function nx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{const a=o.get(e);a.onsuccess=()=>{o.put(t(a.result),e)}})}function rx(e,t=yo()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function ox(e=yo()){return e._withIDBStore("readwrite",t=>{t.clear()})}function ix(e=yo()){const t=[];return e._withIDBStore("readwrite",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)}function ax(e=yo()){return e._close()}const Dp=Va(Object.freeze(Object.defineProperty({__proto__:null,Store:$p,clear:ox,close:ax,del:rx,get:ex,keys:ix,set:tx,update:nx},Symbol.toStringTag,{value:"Module"}))),Jr=Dp;var sx=class{constructor(t,n){this._database=t,this._storename=n,this._store=new Jr.Store(this._database,this._storename)}saveSuperblock(t){return Jr.set("!root",t,this._store)}loadSuperblock(){return Jr.get("!root",this._store)}readFile(t){return Jr.get(t,this._store)}writeFile(t,n){return Jr.set(t,n,this._store)}unlink(t){return Jr.del(t,this._store)}wipe(){return Jr.clear(this._store)}close(){return Jr.close(this._store)}},lx=class{constructor(t){this._url=t}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(t=>t.ok?t.text():null)}async readFile(t){const n=await fetch(this._url+t);if(n.status===200)return n.arrayBuffer();throw new Error("ENOENT")}async sizeFile(t){const n=await fetch(this._url+t,{method:"HEAD"});if(n.status===200)return n.headers.get("content-length");throw new Error("ENOENT")}};const Fi=Dp,cx=e=>new Promise(t=>setTimeout(t,e));var ux=class{constructor(t,n){this._id=Math.random(),this._database=t,this._storename=n,this._store=new Fi.Store(this._database,this._storename),this._lock=null}async has({margin:t=2e3}={}){if(this._lock&&this._lock.holder===this._id){const n=Date.now();return this._lock.expires>n+t?!0:await this.renew()}else return!1}async renew({ttl:t=5e3}={}){let n;return await Fi.update("lock",o=>{const s=Date.now()+t;return n=o&&o.holder===this._id,this._lock=n?{holder:this._id,expires:s}:o,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,o,a;if(await Fi.update("lock",s=>{const l=Date.now(),u=l+t;return o=s&&s.expires<l,n=s===void 0||o,a=s&&s.holder===this._id,this._lock=n?{holder:this._id,expires:u}:s,this._lock},this._store),a)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:o}={}){for(;n--;){if(await this.acquire({ttl:o}))return!0;await cx(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,o,a;if(await Fi.update("lock",s=>(n=t||s&&s.holder===this._id,o=s===void 0,a=s&&s.holder!==this._id,this._lock=n?void 0:s,this._lock),this._store),await Fi.close(this._store),!n&&!t){if(o)throw new Error("Mutex double-freed");if(a)throw new Error("Mutex lost ownership")}return n}},dx=class{constructor(t){this._id=Math.random(),this._database=t,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(t=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},n=>(this._has=!!n,t(!!n),new Promise(o=>{this._release=o})))})}async wait({timeout:t=6e5}={}){return new Promise((n,o)=>{const a=new AbortController;setTimeout(()=>{a.abort(),o(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:a.signal},s=>(this._has=!!s,n(!!s),new Promise(l=>{this._release=l})))})}async release({force:t=!1}={}){this._has=!1,this._release?this._release():t&&navigator.locks.request(this._database+"_lock",{steal:!0},n=>!0)}};const{encode:fx,decode:Bp}=Nb,px=Fb,hx=Qb,{ENOENT:gx,ENOTEMPTY:mx,ETIMEDOUT:yx}=Op,vx=sx,bx=lx,xx=ux,wx=dx,zi=Nc;var Sx=class{constructor(){this.saveSuperblock=px(()=>{this.flush()},500)}async init(t,{wipe:n,url:o,urlauto:a,fileDbName:s=t,db:l=null,fileStoreName:u=t+"_files",lockDbName:d=t+"_lock",lockStoreName:h=t+"_lock"}={}){this._name=t,this._idb=l||new vx(s,u),this._mutex=navigator.locks?new wx(t):new xx(d,h),this._cache=new hx(t),this._opts={wipe:n,url:o},this._needsWipe=!!n,o&&(this._http=new bx(o),this._urlauto=!!a)}async activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();const t=await this._idb.loadSuperblock();if(t)this._cache.activate(t);else if(this._http){const n=await this._http.loadSuperblock();this._cache.activate(n),await this._saveSuperblock()}else this._cache.activate();if(!await this._mutex.has())throw new yx}async deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(t){console.log(t)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}_writeStat(t,n,o){let a=zi.split(zi.dirname(t)),s=a.shift();for(let l of a){s=zi.join(s,l);try{this._cache.mkdir(s,{mode:511})}catch{}}return this._cache.writeStat(t,n,o)}async readFile(t,n){const{encoding:o}=n;if(o&&o!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let a=null,s=null;try{s=this._cache.stat(t),a=await this._idb.readFile(s.ino)}catch(l){if(!this._urlauto)throw l}if(!a&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=zi.resolve(zi.dirname(t),l.target),l=this._cache.lstat(t);a=await this._http.readFile(t)}if(a&&((!s||s.size!=a.byteLength)&&(s=await this._writeStat(t,a.byteLength,{mode:s?s.mode:438}),this.saveSuperblock()),o==="utf8"?a=Bp(a):a.toString=()=>Bp(a)),!s)throw new gx(t);return a}async writeFile(t,n,o){const{mode:a,encoding:s="utf8"}=o;if(typeof n=="string"){if(s!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=fx(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:a});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const o=this._cache.lstat(t);this._cache.unlink(t),o.type!=="symlink"&&await this._idb.unlink(o.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:o=511}=n;this._cache.mkdir(t,{mode:o})}rmdir(t,n){if(t==="/")throw new mx;this._cache.rmdir(t)}rename(t,n){this._cache.rename(t,n)}stat(t,n){return this._cache.stat(t)}lstat(t,n){return this._cache.lstat(t)}readlink(t,n){return this._cache.readlink(t)}symlink(t,n){this._cache.symlink(t,n)}async backFile(t,n){let o=await this._http.sizeFile(t);await this._writeStat(t,o,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},Cx=class{constructor(t){this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return this.type==="file"}isDirectory(){return this.type==="dir"}isSymbolicLink(){return this.type==="symlink"}};const _x=Sx,Lp=Cx,Ya=Nc;function pr(e,t,...n){return e=Ya.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function Ex(e,t,n,...o){return e=Ya.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...o]}function jp(e,t,...n){return[Ya.normalize(e),Ya.normalize(t),...n]}var Rx=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,pr,!1),this.writeFile=this._wrap(this.writeFile,Ex,!0),this.unlink=this._wrap(this.unlink,pr,!0),this.readdir=this._wrap(this.readdir,pr,!1),this.mkdir=this._wrap(this.mkdir,pr,!0),this.rmdir=this._wrap(this.rmdir,pr,!0),this.rename=this._wrap(this.rename,jp,!0),this.stat=this._wrap(this.stat,pr,!1),this.lstat=this._wrap(this.lstat,pr,!1),this.readlink=this._wrap(this.readlink,pr,!1),this.symlink=this._wrap(this.symlink,jp,!0),this.backFile=this._wrap(this.backFile,pr,!0),this.du=this._wrap(this.du,pr,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,n)}async init(...t){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...t),this._initPromise}async _init(t,n={}){await this._gracefulShutdown(),this._activationPromise&&await this._deactivate(),this._backend&&this._backend.destroy&&await this._backend.destroy(),this._backend=n.backend||new _x,this._backend.init&&await this._backend.init(t,n),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),n.defer||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(t=>this._gracefulShutdownResolve=t),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(t,n,o){return async(...a)=>{a=n(...a);let s={name:t.name,args:a};this._operations.add(s);try{return await this._activate(),await t.apply(this,a)}finally{this._operations.delete(s),o&&this._backend.saveSuperblock(),this._operations.size===0&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),await this._activationPromise}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async readFile(t,n){return this._backend.readFile(t,n)}async writeFile(t,n,o){return await this._backend.writeFile(t,n,o),null}async unlink(t,n){return await this._backend.unlink(t,n),null}async readdir(t,n){return this._backend.readdir(t,n)}async mkdir(t,n){return await this._backend.mkdir(t,n),null}async rmdir(t,n){return await this._backend.rmdir(t,n),null}async rename(t,n){return await this._backend.rename(t,n),null}async stat(t,n){const o=await this._backend.stat(t,n);return new Lp(o)}async lstat(t,n){const o=await this._backend.lstat(t,n);return new Lp(o)}async readlink(t,n){return this._backend.readlink(t,n)}async symlink(t,n){return await this._backend.symlink(t,n),null}async backFile(t,n){return await this._backend.backFile(t,n),null}async du(t){return this._backend.du(t)}async flush(){return this._backend.flush()}};const Ix=Lb,kx=Rx;function vn(e,t){return typeof e=="function"&&(t=e),t=Ix(t),[(...o)=>t(null,...o),t]}var Tx=class{constructor(...t){this.promises=new kx(...t),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}init(t,n){return this.promises.init(t,n)}readFile(t,n,o){const[a,s]=vn(n,o);this.promises.readFile(t,n).then(a).catch(s)}writeFile(t,n,o,a){const[s,l]=vn(o,a);this.promises.writeFile(t,n,o).then(s).catch(l)}unlink(t,n,o){const[a,s]=vn(n,o);this.promises.unlink(t,n).then(a).catch(s)}readdir(t,n,o){const[a,s]=vn(n,o);this.promises.readdir(t,n).then(a).catch(s)}mkdir(t,n,o){const[a,s]=vn(n,o);this.promises.mkdir(t,n).then(a).catch(s)}rmdir(t,n,o){const[a,s]=vn(n,o);this.promises.rmdir(t,n).then(a).catch(s)}rename(t,n,o){const[a,s]=vn(o);this.promises.rename(t,n).then(a).catch(s)}stat(t,n,o){const[a,s]=vn(n,o);this.promises.stat(t).then(a).catch(s)}lstat(t,n,o){const[a,s]=vn(n,o);this.promises.lstat(t).then(a).catch(s)}readlink(t,n,o){const[a,s]=vn(n,o);this.promises.readlink(t).then(a).catch(s)}symlink(t,n,o){const[a,s]=vn(o);this.promises.symlink(t,n).then(a).catch(s)}backFile(t,n,o){const[a,s]=vn(n,o);this.promises.backFile(t,n).then(a).catch(s)}du(t,n){const[o,a]=vn(n);this.promises.du(t).then(o).catch(a)}flush(t){const[n,o]=vn(t);this.promises.flush().then(n).catch(o)}};const Px=kp(Tx);var Np={},Xa={};Xa.byteLength=Mx,Xa.toByteArray=Dx,Xa.fromByteArray=jx;for(var hr=[],Fn=[],Ox=typeof Uint8Array<"u"?Uint8Array:Array,zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ho=0,Ax=zc.length;Ho<Ax;++Ho)hr[Ho]=zc[Ho],Fn[zc.charCodeAt(Ho)]=Ho;Fn[45]=62,Fn[95]=63;function Fp(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function Mx(e){var t=Fp(e),n=t[0],o=t[1];return(n+o)*3/4-o}function $x(e,t,n){return(t+n)*3/4-n}function Dx(e){var t,n=Fp(e),o=n[0],a=n[1],s=new Ox($x(e,o,a)),l=0,u=a>0?o-4:o,d;for(d=0;d<u;d+=4)t=Fn[e.charCodeAt(d)]<<18|Fn[e.charCodeAt(d+1)]<<12|Fn[e.charCodeAt(d+2)]<<6|Fn[e.charCodeAt(d+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=t&255;return a===2&&(t=Fn[e.charCodeAt(d)]<<2|Fn[e.charCodeAt(d+1)]>>4,s[l++]=t&255),a===1&&(t=Fn[e.charCodeAt(d)]<<10|Fn[e.charCodeAt(d+1)]<<4|Fn[e.charCodeAt(d+2)]>>2,s[l++]=t>>8&255,s[l++]=t&255),s}function Bx(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function Lx(e,t,n){for(var o,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(Bx(o));return a.join("")}function jx(e){for(var t,n=e.length,o=n%3,a=[],s=16383,l=0,u=n-o;l<u;l+=s)a.push(Lx(e,l,l+s>u?u:l+s));return o===1?(t=e[n-1],a.push(hr[t>>2]+hr[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],a.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),a.join("")}var Wc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Wc.read=function(e,t,n,o,a){var s,l,u=a*8-o-1,d=(1<<u)-1,h=d>>1,y=-7,m=n?a-1:0,b=n?-1:1,w=e[t+m];for(m+=b,s=w&(1<<-y)-1,w>>=-y,y+=u;y>0;s=s*256+e[t+m],m+=b,y-=8);for(l=s&(1<<-y)-1,s>>=-y,y+=o;y>0;l=l*256+e[t+m],m+=b,y-=8);if(s===0)s=1-h;else{if(s===d)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,o),s=s-h}return(w?-1:1)*l*Math.pow(2,s-o)},Wc.write=function(e,t,n,o,a,s){var l,u,d,h=s*8-a-1,y=(1<<h)-1,m=y>>1,b=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,_=o?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+m>=1?t+=b/d:t+=b*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(u=0,l=y):l+m>=1?(u=(t*d-1)*Math.pow(2,a),l=l+m):(u=t*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;e[n+w]=u&255,w+=_,u/=256,a-=8);for(l=l<<a|u,h+=a;h>0;e[n+w]=l&255,w+=_,l/=256,h-=8);e[n+w-_]|=E*128};/*!
|
|
5
5
|
* The buffer module from node.js, for the browser.
|
|
6
6
|
*
|
|
7
7
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
8
|
* @license MIT
|
|
9
|
-
*/(function(e){const t=Xa,n=Uc,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const I=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(I,p),I.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(I){if(I>a)throw new RangeError('The value "'+I+'" is invalid for option "size"');const p=new Uint8Array(I);return Object.setPrototypeOf(p,u.prototype),p}function u(I,p,g){if(typeof I=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(I)}return d(I,p,g)}u.poolSize=8192;function d(I,p,g){if(typeof I=="string")return b(I,p);if(ArrayBuffer.isView(I))return S(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(xe(I,ArrayBuffer)||I&&xe(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(I,SharedArrayBuffer)||I&&xe(I.buffer,SharedArrayBuffer)))return E(I,p,g);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=I.valueOf&&I.valueOf();if(D!=null&&D!==I)return u.from(D,p,g);const N=P(I);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return u.from(I[Symbol.toPrimitive]("string"),p,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}u.from=function(I,p,g){return d(I,p,g)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function h(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function y(I,p,g){return h(I),I<=0?l(I):p!==void 0?typeof g=="string"?l(I).fill(p,g):l(I).fill(p):l(I)}u.alloc=function(I,p,g){return y(I,p,g)};function m(I){return h(I),l(I<0?0:C(I)|0)}u.allocUnsafe=function(I){return m(I)},u.allocUnsafeSlow=function(I){return m(I)};function b(I,p){if((typeof p!="string"||p==="")&&(p="utf8"),!u.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const g=k(I,p)|0;let D=l(g);const N=D.write(I,p);return N!==g&&(D=D.slice(0,N)),D}function w(I){const p=I.length<0?0:C(I.length)|0,g=l(p);for(let D=0;D<p;D+=1)g[D]=I[D]&255;return g}function S(I){if(xe(I,Uint8Array)){const p=new Uint8Array(I);return E(p.buffer,p.byteOffset,p.byteLength)}return w(I)}function E(I,p,g){if(p<0||I.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<p+(g||0))throw new RangeError('"length" is outside of buffer bounds');let D;return p===void 0&&g===void 0?D=new Uint8Array(I):g===void 0?D=new Uint8Array(I,p):D=new Uint8Array(I,p,g),Object.setPrototypeOf(D,u.prototype),D}function P(I){if(u.isBuffer(I)){const p=C(I.length)|0,g=l(p);return g.length===0||I.copy(g,0,0,p),g}if(I.length!==void 0)return typeof I.length!="number"||ut(I.length)?l(0):w(I);if(I.type==="Buffer"&&Array.isArray(I.data))return w(I.data)}function C(I){if(I>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),u.alloc(+I)}u.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==u.prototype},u.compare=function(p,g){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),xe(g,Uint8Array)&&(g=u.from(g,g.offset,g.byteLength)),!u.isBuffer(p)||!u.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===g)return 0;let D=p.length,N=g.length;for(let q=0,J=Math.min(D,N);q<J;++q)if(p[q]!==g[q]){D=p[q],N=g[q];break}return D<N?-1:N<D?1:0},u.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(p,g){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return u.alloc(0);let D;if(g===void 0)for(g=0,D=0;D<p.length;++D)g+=p[D].length;const N=u.allocUnsafe(g);let q=0;for(D=0;D<p.length;++D){let J=p[D];if(xe(J,Uint8Array))q+J.length>N.length?(u.isBuffer(J)||(J=u.from(J)),J.copy(N,q)):Uint8Array.prototype.set.call(N,J,q);else if(u.isBuffer(J))J.copy(N,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=J.length}return N};function k(I,p){if(u.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||xe(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const g=I.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&g===0)return 0;let N=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Ae(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return et(I).length;default:if(N)return D?-1:Ae(I).length;p=(""+p).toLowerCase(),N=!0}}u.byteLength=k;function R(I,p,g){let D=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,p>>>=0,g<=p))return"";for(I||(I="utf8");;)switch(I){case"hex":return be(this,p,g);case"utf8":case"utf-8":return Q(this,p,g);case"ascii":return pe(this,p,g);case"latin1":case"binary":return he(this,p,g);case"base64":return H(this,p,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,p,g);default:if(D)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),D=!0}}u.prototype._isBuffer=!0;function $(I,p,g){const D=I[p];I[p]=I[g],I[g]=D}u.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<p;g+=2)$(this,g,g+1);return this},u.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<p;g+=4)$(this,g,g+3),$(this,g+1,g+2);return this},u.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<p;g+=8)$(this,g,g+7),$(this,g+1,g+6),$(this,g+2,g+5),$(this,g+3,g+4);return this},u.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Q(this,0,p):R.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(p){if(!u.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:u.compare(this,p)===0},u.prototype.inspect=function(){let p="";const g=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(p+=" ... "),"<Buffer "+p+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(p,g,D,N,q){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(g===void 0&&(g=0),D===void 0&&(D=p?p.length:0),N===void 0&&(N=0),q===void 0&&(q=this.length),g<0||D>p.length||N<0||q>this.length)throw new RangeError("out of range index");if(N>=q&&g>=D)return 0;if(N>=q)return-1;if(g>=D)return 1;if(g>>>=0,D>>>=0,N>>>=0,q>>>=0,this===p)return 0;let J=q-N,ce=D-g;const oe=Math.min(J,ce),ae=this.slice(N,q),Ee=p.slice(g,D);for(let _e=0;_e<oe;++_e)if(ae[_e]!==Ee[_e]){J=ae[_e],ce=Ee[_e];break}return J<ce?-1:ce<J?1:0};function B(I,p,g,D,N){if(I.length===0)return-1;if(typeof g=="string"?(D=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ut(g)&&(g=N?0:I.length-1),g<0&&(g=I.length+g),g>=I.length){if(N)return-1;g=I.length-1}else if(g<0)if(N)g=0;else return-1;if(typeof p=="string"&&(p=u.from(p,D)),u.isBuffer(p))return p.length===0?-1:M(I,p,g,D,N);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(I,p,g):Uint8Array.prototype.lastIndexOf.call(I,p,g):M(I,[p],g,D,N);throw new TypeError("val must be string, number or Buffer")}function M(I,p,g,D,N){let q=1,J=I.length,ce=p.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(I.length<2||p.length<2)return-1;q=2,J/=2,ce/=2,g/=2}function oe(Ee,_e){return q===1?Ee[_e]:Ee.readUInt16BE(_e*q)}let ae;if(N){let Ee=-1;for(ae=g;ae<J;ae++)if(oe(I,ae)===oe(p,Ee===-1?0:ae-Ee)){if(Ee===-1&&(Ee=ae),ae-Ee+1===ce)return Ee*q}else Ee!==-1&&(ae-=ae-Ee),Ee=-1}else for(g+ce>J&&(g=J-ce),ae=g;ae>=0;ae--){let Ee=!0;for(let _e=0;_e<ce;_e++)if(oe(I,ae+_e)!==oe(p,_e)){Ee=!1;break}if(Ee)return ae}return-1}u.prototype.includes=function(p,g,D){return this.indexOf(p,g,D)!==-1},u.prototype.indexOf=function(p,g,D){return B(this,p,g,D,!0)},u.prototype.lastIndexOf=function(p,g,D){return B(this,p,g,D,!1)};function z(I,p,g,D){g=Number(g)||0;const N=I.length-g;D?(D=Number(D),D>N&&(D=N)):D=N;const q=p.length;D>q/2&&(D=q/2);let J;for(J=0;J<D;++J){const ce=parseInt(p.substr(J*2,2),16);if(ut(ce))return J;I[g+J]=ce}return J}function V(I,p,g,D){return Le(Ae(p,I.length-g),I,g,D)}function _(I,p,g,D){return Le(ke(p),I,g,D)}function G(I,p,g,D){return Le(et(p),I,g,D)}function re(I,p,g,D){return Le(We(p,I.length-g),I,g,D)}u.prototype.write=function(p,g,D,N){if(g===void 0)N="utf8",D=this.length,g=0;else if(D===void 0&&typeof g=="string")N=g,D=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(D)?(D=D>>>0,N===void 0&&(N="utf8")):(N=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-g;if((D===void 0||D>q)&&(D=q),p.length>0&&(D<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let J=!1;for(;;)switch(N){case"hex":return z(this,p,g,D);case"utf8":case"utf-8":return V(this,p,g,D);case"ascii":case"latin1":case"binary":return _(this,p,g,D);case"base64":return G(this,p,g,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,p,g,D);default:if(J)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),J=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(I,p,g){return p===0&&g===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(p,g))}function Q(I,p,g){g=Math.min(I.length,g);const D=[];let N=p;for(;N<g;){const q=I[N];let J=null,ce=q>239?4:q>223?3:q>191?2:1;if(N+ce<=g){let oe,ae,Ee,_e;switch(ce){case 1:q<128&&(J=q);break;case 2:oe=I[N+1],(oe&192)===128&&(_e=(q&31)<<6|oe&63,_e>127&&(J=_e));break;case 3:oe=I[N+1],ae=I[N+2],(oe&192)===128&&(ae&192)===128&&(_e=(q&15)<<12|(oe&63)<<6|ae&63,_e>2047&&(_e<55296||_e>57343)&&(J=_e));break;case 4:oe=I[N+1],ae=I[N+2],Ee=I[N+3],(oe&192)===128&&(ae&192)===128&&(Ee&192)===128&&(_e=(q&15)<<18|(oe&63)<<12|(ae&63)<<6|Ee&63,_e>65535&&_e<1114112&&(J=_e))}}J===null?(J=65533,ce=1):J>65535&&(J-=65536,D.push(J>>>10&1023|55296),J=56320|J&1023),D.push(J),N+=ce}return le(D)}const ee=4096;function le(I){const p=I.length;if(p<=ee)return String.fromCharCode.apply(String,I);let g="",D=0;for(;D<p;)g+=String.fromCharCode.apply(String,I.slice(D,D+=ee));return g}function pe(I,p,g){let D="";g=Math.min(I.length,g);for(let N=p;N<g;++N)D+=String.fromCharCode(I[N]&127);return D}function he(I,p,g){let D="";g=Math.min(I.length,g);for(let N=p;N<g;++N)D+=String.fromCharCode(I[N]);return D}function be(I,p,g){const D=I.length;(!p||p<0)&&(p=0),(!g||g<0||g>D)&&(g=D);let N="";for(let q=p;q<g;++q)N+=Ut[I[q]];return N}function we(I,p,g){const D=I.slice(p,g);let N="";for(let q=0;q<D.length-1;q+=2)N+=String.fromCharCode(D[q]+D[q+1]*256);return N}u.prototype.slice=function(p,g){const D=this.length;p=~~p,g=g===void 0?D:~~g,p<0?(p+=D,p<0&&(p=0)):p>D&&(p=D),g<0?(g+=D,g<0&&(g=0)):g>D&&(g=D),g<p&&(g=p);const N=this.subarray(p,g);return Object.setPrototypeOf(N,u.prototype),N};function ue(I,p,g){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+p>g)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p],q=1,J=0;for(;++J<g&&(q*=256);)N+=this[p+J]*q;return N},u.prototype.readUintBE=u.prototype.readUIntBE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p+--g],q=1;for(;g>0&&(q*=256);)N+=this[p+--g]*q;return N},u.prototype.readUint8=u.prototype.readUInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]|this[p+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]<<8|this[p+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},u.prototype.readBigUInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,q=this[++p]+this[++p]*2**8+this[++p]*2**16+D*2**24;return BigInt(N)+(BigInt(q)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=g*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],q=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+D;return(BigInt(N)<<BigInt(32))+BigInt(q)}),u.prototype.readIntLE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p],q=1,J=0;for(;++J<g&&(q*=256);)N+=this[p+J]*q;return q*=128,N>=q&&(N-=Math.pow(2,8*g)),N},u.prototype.readIntBE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=g,q=1,J=this[p+--N];for(;N>0&&(q*=256);)J+=this[p+--N]*q;return q*=128,J>=q&&(J-=Math.pow(2,8*g)),J},u.prototype.readInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},u.prototype.readInt16LE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const D=this[p]|this[p+1]<<8;return D&32768?D|4294901760:D},u.prototype.readInt16BE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const D=this[p+1]|this[p]<<8;return D&32768?D|4294901760:D},u.prototype.readInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},u.prototype.readInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},u.prototype.readBigInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(D<<24);return(BigInt(N)<<BigInt(32))+BigInt(g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),u.prototype.readBigInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=(g<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(N)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+D)}),u.prototype.readFloatLE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!0,23,4)},u.prototype.readFloatBE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!1,23,4)},u.prototype.readDoubleLE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!0,52,8)},u.prototype.readDoubleBE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!1,52,8)};function Ce(I,p,g,D,N,q){if(!u.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>N||p<q)throw new RangeError('"value" argument is out of bounds');if(g+D>I.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(p,g,D,N){if(p=+p,g=g>>>0,D=D>>>0,!N){const ce=Math.pow(2,8*D)-1;Ce(this,p,g,D,ce,0)}let q=1,J=0;for(this[g]=p&255;++J<D&&(q*=256);)this[g+J]=p/q&255;return g+D},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(p,g,D,N){if(p=+p,g=g>>>0,D=D>>>0,!N){const ce=Math.pow(2,8*D)-1;Ce(this,p,g,D,ce,0)}let q=D-1,J=1;for(this[g+q]=p&255;--q>=0&&(J*=256);)this[g+q]=p/J&255;return g+D},u.prototype.writeUint8=u.prototype.writeUInt8=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,1,255,0),this[g]=p&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,65535,0),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,65535,0),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,4294967295,0),this[g+3]=p>>>24,this[g+2]=p>>>16,this[g+1]=p>>>8,this[g]=p&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,4294967295,0),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4};function De(I,p,g,D,N){fe(p,D,N,I,g,7);let q=Number(p&BigInt(4294967295));I[g++]=q,q=q>>8,I[g++]=q,q=q>>8,I[g++]=q,q=q>>8,I[g++]=q;let J=Number(p>>BigInt(32)&BigInt(4294967295));return I[g++]=J,J=J>>8,I[g++]=J,J=J>>8,I[g++]=J,J=J>>8,I[g++]=J,g}function Xe(I,p,g,D,N){fe(p,D,N,I,g,7);let q=Number(p&BigInt(4294967295));I[g+7]=q,q=q>>8,I[g+6]=q,q=q>>8,I[g+5]=q,q=q>>8,I[g+4]=q;let J=Number(p>>BigInt(32)&BigInt(4294967295));return I[g+3]=J,J=J>>8,I[g+2]=J,J=J>>8,I[g+1]=J,J=J>>8,I[g]=J,g+8}u.prototype.writeBigUInt64LE=Ht(function(p,g=0){return De(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ht(function(p,g=0){return Xe(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(p,g,D,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*D-1);Ce(this,p,g,D,oe-1,-oe)}let q=0,J=1,ce=0;for(this[g]=p&255;++q<D&&(J*=256);)p<0&&ce===0&&this[g+q-1]!==0&&(ce=1),this[g+q]=(p/J>>0)-ce&255;return g+D},u.prototype.writeIntBE=function(p,g,D,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*D-1);Ce(this,p,g,D,oe-1,-oe)}let q=D-1,J=1,ce=0;for(this[g+q]=p&255;--q>=0&&(J*=256);)p<0&&ce===0&&this[g+q+1]!==0&&(ce=1),this[g+q]=(p/J>>0)-ce&255;return g+D},u.prototype.writeInt8=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,1,127,-128),p<0&&(p=255+p+1),this[g]=p&255,g+1},u.prototype.writeInt16LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,32767,-32768),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeInt16BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,32767,-32768),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeInt32LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,2147483647,-2147483648),this[g]=p&255,this[g+1]=p>>>8,this[g+2]=p>>>16,this[g+3]=p>>>24,g+4},u.prototype.writeInt32BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4},u.prototype.writeBigInt64LE=Ht(function(p,g=0){return De(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ht(function(p,g=0){return Xe(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ke(I,p,g,D,N,q){if(g+D>I.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function He(I,p,g,D,N){return p=+p,g=g>>>0,N||Ke(I,p,g,4),n.write(I,p,g,D,23,4),g+4}u.prototype.writeFloatLE=function(p,g,D){return He(this,p,g,!0,D)},u.prototype.writeFloatBE=function(p,g,D){return He(this,p,g,!1,D)};function gt(I,p,g,D,N){return p=+p,g=g>>>0,N||Ke(I,p,g,8),n.write(I,p,g,D,52,8),g+8}u.prototype.writeDoubleLE=function(p,g,D){return gt(this,p,g,!0,D)},u.prototype.writeDoubleBE=function(p,g,D){return gt(this,p,g,!1,D)},u.prototype.copy=function(p,g,D,N){if(!u.isBuffer(p))throw new TypeError("argument should be a Buffer");if(D||(D=0),!N&&N!==0&&(N=this.length),g>=p.length&&(g=p.length),g||(g=0),N>0&&N<D&&(N=D),N===D||p.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),p.length-g<N-D&&(N=p.length-g+D);const q=N-D;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,D,N):Uint8Array.prototype.set.call(p,this.subarray(D,N),g),q},u.prototype.fill=function(p,g,D,N){if(typeof p=="string"){if(typeof g=="string"?(N=g,g=0,D=this.length):typeof D=="string"&&(N=D,D=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(p.length===1){const J=p.charCodeAt(0);(N==="utf8"&&J<128||N==="latin1")&&(p=J)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(g<0||this.length<g||this.length<D)throw new RangeError("Out of range index");if(D<=g)return this;g=g>>>0,D=D===void 0?this.length:D>>>0,p||(p=0);let q;if(typeof p=="number")for(q=g;q<D;++q)this[q]=p;else{const J=u.isBuffer(p)?p:u.from(p,N),ce=J.length;if(ce===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(q=0;q<D-g;++q)this[q+g]=J[q%ce]}return this};const se={};function de(I,p,g){se[I]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}de("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),de("ERR_INVALID_ARG_TYPE",function(I,p){return`The "${I}" argument must be of type number. Received type ${typeof p}`},TypeError),de("ERR_OUT_OF_RANGE",function(I,p,g){let D=`The value of "${I}" is out of range.`,N=g;return Number.isInteger(g)&&Math.abs(g)>2**32?N=ge(String(g)):typeof g=="bigint"&&(N=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(N=ge(N)),N+="n"),D+=` It must be ${p}. Received ${N}`,D},RangeError);function ge(I){let p="",g=I.length;const D=I[0]==="-"?1:0;for(;g>=D+4;g-=3)p=`_${I.slice(g-3,g)}${p}`;return`${I.slice(0,g)}${p}`}function me(I,p,g){Pe(p,"offset"),(I[p]===void 0||I[p+g]===void 0)&&ve(p,I.length-(g+1))}function fe(I,p,g,D,N,q){if(I>g||I<p){const J=typeof p=="bigint"?"n":"";let ce;throw p===0||p===BigInt(0)?ce=`>= 0${J} and < 2${J} ** ${(q+1)*8}${J}`:ce=`>= -(2${J} ** ${(q+1)*8-1}${J}) and < 2 ** ${(q+1)*8-1}${J}`,new se.ERR_OUT_OF_RANGE("value",ce,I)}me(D,N,q)}function Pe(I,p){if(typeof I!="number")throw new se.ERR_INVALID_ARG_TYPE(p,"number",I)}function ve(I,p,g){throw Math.floor(I)!==I?(Pe(I,g),new se.ERR_OUT_OF_RANGE("offset","an integer",I)):p<0?new se.ERR_BUFFER_OUT_OF_BOUNDS:new se.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,I)}const Be=/[^+/0-9A-Za-z-_]/g;function Ge(I){if(I=I.split("=")[0],I=I.trim().replace(Be,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ae(I,p){p=p||1/0;let g;const D=I.length;let N=null;const q=[];for(let J=0;J<D;++J){if(g=I.charCodeAt(J),g>55295&&g<57344){if(!N){if(g>56319){(p-=3)>-1&&q.push(239,191,189);continue}else if(J+1===D){(p-=3)>-1&&q.push(239,191,189);continue}N=g;continue}if(g<56320){(p-=3)>-1&&q.push(239,191,189),N=g;continue}g=(N-55296<<10|g-56320)+65536}else N&&(p-=3)>-1&&q.push(239,191,189);if(N=null,g<128){if((p-=1)<0)break;q.push(g)}else if(g<2048){if((p-=2)<0)break;q.push(g>>6|192,g&63|128)}else if(g<65536){if((p-=3)<0)break;q.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((p-=4)<0)break;q.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return q}function ke(I){const p=[];for(let g=0;g<I.length;++g)p.push(I.charCodeAt(g)&255);return p}function We(I,p){let g,D,N;const q=[];for(let J=0;J<I.length&&!((p-=2)<0);++J)g=I.charCodeAt(J),D=g>>8,N=g%256,q.push(N),q.push(D);return q}function et(I){return t.toByteArray(Ge(I))}function Le(I,p,g,D){let N;for(N=0;N<D&&!(N+g>=p.length||N>=I.length);++N)p[N+g]=I[N];return N}function xe(I,p){return I instanceof p||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===p.name}function ut(I){return I!==I}const Ut=function(){const I="0123456789abcdef",p=new Array(256);for(let g=0;g<16;++g){const D=g*16;for(let N=0;N<16;++N)p[D+N]=I[g]+I[N]}return p}();function Ht(I){return typeof BigInt>"u"?Yn:I}function Yn(){throw new Error("BigInt not supported")}})(Fp);function Fx(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function zx(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Fx(e)}async function Wx(e,t){const n=zx(e);for(;;){const{value:o,done:a}=await n.next();if(o&&await t(o),a)break}n.return&&n.return()}async function Ux(e){let t=0;const n=[];await Wx(e,s=>{n.push(s),t+=s.byteLength});const o=new Uint8Array(t);let a=0;for(const s of n)o.set(s,a),a+=s.byteLength;return o}function Hx(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}async function Gx({onProgress:e,url:t,method:n="GET",headers:o={},body:a}){a&&(a=await Ux(a));const s=await fetch(t,{method:n,headers:o,body:a}),l=s.body&&s.body.getReader?Hx(s.body):[new Uint8Array(await s.arrayBuffer())];o={};for(const[u,d]of s.headers.entries())o[u]=d;return{url:s.url,method:s.method,statusCode:s.status,statusMessage:s.statusText,body:l,headers:o}}var Hc={request:Gx};const qx=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},Wp=async e=>await window.pfs.readdir(e),Up=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(o){console.debug("recursiveRm: Path does not exist",o);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const o=await t.readdir(e);for(const a of o)await Up(`${e}/${a}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},Vx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o="makeinfinite_client",a="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:o}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:a})},Yx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.clone({fs:o,http:Hc,dir:a,corsProxy:n,url:t,ref:"main"}),await Vx(e)},Xx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.pull({fs:o,http:Hc,dir:a,corsProxy:n,url:t,ref:"main"})},Kx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:o})},Jx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.fetch({fs:o,http:Hc,dir:a,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Zx{constructor(t,n,o){this.targetRef=t,this.sourceRef=n,this.opType=o}}const Gc=e=>{var l,u;const t=e.commit.message.trim().split(`
|
|
10
|
-
`),n=t.find(d=>d.startsWith("Git Ref: ")),o=t.find(d=>d.startsWith("Extra Metadata: "));if(!n||!o)return null;const a=(l=n.split("Git Ref: ")[1])==null?void 0:l.trim(),s=JSON.parse(((u=o.split("Extra Metadata: ")[1])==null?void 0:u.trim())||"{}");return!a||!s?null:new
|
|
9
|
+
*/(function(e){const t=Xa,n=Wc,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const R=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(R,p),R.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(R){if(R>a)throw new RangeError('The value "'+R+'" is invalid for option "size"');const p=new Uint8Array(R);return Object.setPrototypeOf(p,u.prototype),p}function u(R,p,g){if(typeof R=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(R)}return d(R,p,g)}u.poolSize=8192;function d(R,p,g){if(typeof R=="string")return b(R,p);if(ArrayBuffer.isView(R))return _(R);if(R==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(xe(R,ArrayBuffer)||R&&xe(R.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(R,SharedArrayBuffer)||R&&xe(R.buffer,SharedArrayBuffer)))return E(R,p,g);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const $=R.valueOf&&R.valueOf();if($!=null&&$!==R)return u.from($,p,g);const N=P(R);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return u.from(R[Symbol.toPrimitive]("string"),p,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}u.from=function(R,p,g){return d(R,p,g)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function h(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function y(R,p,g){return h(R),R<=0?l(R):p!==void 0?typeof g=="string"?l(R).fill(p,g):l(R).fill(p):l(R)}u.alloc=function(R,p,g){return y(R,p,g)};function m(R){return h(R),l(R<0?0:S(R)|0)}u.allocUnsafe=function(R){return m(R)},u.allocUnsafeSlow=function(R){return m(R)};function b(R,p){if((typeof p!="string"||p==="")&&(p="utf8"),!u.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const g=k(R,p)|0;let $=l(g);const N=$.write(R,p);return N!==g&&($=$.slice(0,N)),$}function w(R){const p=R.length<0?0:S(R.length)|0,g=l(p);for(let $=0;$<p;$+=1)g[$]=R[$]&255;return g}function _(R){if(xe(R,Uint8Array)){const p=new Uint8Array(R);return E(p.buffer,p.byteOffset,p.byteLength)}return w(R)}function E(R,p,g){if(p<0||R.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<p+(g||0))throw new RangeError('"length" is outside of buffer bounds');let $;return p===void 0&&g===void 0?$=new Uint8Array(R):g===void 0?$=new Uint8Array(R,p):$=new Uint8Array(R,p,g),Object.setPrototypeOf($,u.prototype),$}function P(R){if(u.isBuffer(R)){const p=S(R.length)|0,g=l(p);return g.length===0||R.copy(g,0,0,p),g}if(R.length!==void 0)return typeof R.length!="number"||ut(R.length)?l(0):w(R);if(R.type==="Buffer"&&Array.isArray(R.data))return w(R.data)}function S(R){if(R>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return R|0}function O(R){return+R!=R&&(R=0),u.alloc(+R)}u.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==u.prototype},u.compare=function(p,g){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),xe(g,Uint8Array)&&(g=u.from(g,g.offset,g.byteLength)),!u.isBuffer(p)||!u.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===g)return 0;let $=p.length,N=g.length;for(let q=0,Q=Math.min($,N);q<Q;++q)if(p[q]!==g[q]){$=p[q],N=g[q];break}return $<N?-1:N<$?1:0},u.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(p,g){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return u.alloc(0);let $;if(g===void 0)for(g=0,$=0;$<p.length;++$)g+=p[$].length;const N=u.allocUnsafe(g);let q=0;for($=0;$<p.length;++$){let Q=p[$];if(xe(Q,Uint8Array))q+Q.length>N.length?(u.isBuffer(Q)||(Q=u.from(Q)),Q.copy(N,q)):Uint8Array.prototype.set.call(N,Q,q);else if(u.isBuffer(Q))Q.copy(N,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=Q.length}return N};function k(R,p){if(u.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||xe(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);const g=R.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&g===0)return 0;let N=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Ae(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return tt(R).length;default:if(N)return $?-1:Ae(R).length;p=(""+p).toLowerCase(),N=!0}}u.byteLength=k;function I(R,p,g){let $=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,p>>>=0,g<=p))return"";for(R||(R="utf8");;)switch(R){case"hex":return be(this,p,g);case"utf8":case"utf-8":return K(this,p,g);case"ascii":return de(this,p,g);case"latin1":case"binary":return he(this,p,g);case"base64":return H(this,p,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,p,g);default:if($)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),$=!0}}u.prototype._isBuffer=!0;function M(R,p,g){const $=R[p];R[p]=R[g],R[g]=$}u.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<p;g+=2)M(this,g,g+1);return this},u.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<p;g+=4)M(this,g,g+3),M(this,g+1,g+2);return this},u.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<p;g+=8)M(this,g,g+7),M(this,g+1,g+6),M(this,g+2,g+5),M(this,g+3,g+4);return this},u.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?K(this,0,p):I.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(p){if(!u.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:u.compare(this,p)===0},u.prototype.inspect=function(){let p="";const g=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(p+=" ... "),"<Buffer "+p+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(p,g,$,N,q){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(g===void 0&&(g=0),$===void 0&&($=p?p.length:0),N===void 0&&(N=0),q===void 0&&(q=this.length),g<0||$>p.length||N<0||q>this.length)throw new RangeError("out of range index");if(N>=q&&g>=$)return 0;if(N>=q)return-1;if(g>=$)return 1;if(g>>>=0,$>>>=0,N>>>=0,q>>>=0,this===p)return 0;let Q=q-N,ce=$-g;const oe=Math.min(Q,ce),ae=this.slice(N,q),Ee=p.slice(g,$);for(let _e=0;_e<oe;++_e)if(ae[_e]!==Ee[_e]){Q=ae[_e],ce=Ee[_e];break}return Q<ce?-1:ce<Q?1:0};function B(R,p,g,$,N){if(R.length===0)return-1;if(typeof g=="string"?($=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ut(g)&&(g=N?0:R.length-1),g<0&&(g=R.length+g),g>=R.length){if(N)return-1;g=R.length-1}else if(g<0)if(N)g=0;else return-1;if(typeof p=="string"&&(p=u.from(p,$)),u.isBuffer(p))return p.length===0?-1:D(R,p,g,$,N);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(R,p,g):Uint8Array.prototype.lastIndexOf.call(R,p,g):D(R,[p],g,$,N);throw new TypeError("val must be string, number or Buffer")}function D(R,p,g,$,N){let q=1,Q=R.length,ce=p.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(R.length<2||p.length<2)return-1;q=2,Q/=2,ce/=2,g/=2}function oe(Ee,_e){return q===1?Ee[_e]:Ee.readUInt16BE(_e*q)}let ae;if(N){let Ee=-1;for(ae=g;ae<Q;ae++)if(oe(R,ae)===oe(p,Ee===-1?0:ae-Ee)){if(Ee===-1&&(Ee=ae),ae-Ee+1===ce)return Ee*q}else Ee!==-1&&(ae-=ae-Ee),Ee=-1}else for(g+ce>Q&&(g=Q-ce),ae=g;ae>=0;ae--){let Ee=!0;for(let _e=0;_e<ce;_e++)if(oe(R,ae+_e)!==oe(p,_e)){Ee=!1;break}if(Ee)return ae}return-1}u.prototype.includes=function(p,g,$){return this.indexOf(p,g,$)!==-1},u.prototype.indexOf=function(p,g,$){return B(this,p,g,$,!0)},u.prototype.lastIndexOf=function(p,g,$){return B(this,p,g,$,!1)};function V(R,p,g,$){g=Number(g)||0;const N=R.length-g;$?($=Number($),$>N&&($=N)):$=N;const q=p.length;$>q/2&&($=q/2);let Q;for(Q=0;Q<$;++Q){const ce=parseInt(p.substr(Q*2,2),16);if(ut(ce))return Q;R[g+Q]=ce}return Q}function U(R,p,g,$){return Le(Ae(p,R.length-g),R,g,$)}function C(R,p,g,$){return Le(ke(p),R,g,$)}function G(R,p,g,$){return Le(tt(p),R,g,$)}function Z(R,p,g,$){return Le(We(p,R.length-g),R,g,$)}u.prototype.write=function(p,g,$,N){if(g===void 0)N="utf8",$=this.length,g=0;else if($===void 0&&typeof g=="string")N=g,$=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite($)?($=$>>>0,N===void 0&&(N="utf8")):(N=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-g;if(($===void 0||$>q)&&($=q),p.length>0&&($<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let Q=!1;for(;;)switch(N){case"hex":return V(this,p,g,$);case"utf8":case"utf-8":return U(this,p,g,$);case"ascii":case"latin1":case"binary":return C(this,p,g,$);case"base64":return G(this,p,g,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,p,g,$);default:if(Q)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),Q=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(R,p,g){return p===0&&g===R.length?t.fromByteArray(R):t.fromByteArray(R.slice(p,g))}function K(R,p,g){g=Math.min(R.length,g);const $=[];let N=p;for(;N<g;){const q=R[N];let Q=null,ce=q>239?4:q>223?3:q>191?2:1;if(N+ce<=g){let oe,ae,Ee,_e;switch(ce){case 1:q<128&&(Q=q);break;case 2:oe=R[N+1],(oe&192)===128&&(_e=(q&31)<<6|oe&63,_e>127&&(Q=_e));break;case 3:oe=R[N+1],ae=R[N+2],(oe&192)===128&&(ae&192)===128&&(_e=(q&15)<<12|(oe&63)<<6|ae&63,_e>2047&&(_e<55296||_e>57343)&&(Q=_e));break;case 4:oe=R[N+1],ae=R[N+2],Ee=R[N+3],(oe&192)===128&&(ae&192)===128&&(Ee&192)===128&&(_e=(q&15)<<18|(oe&63)<<12|(ae&63)<<6|Ee&63,_e>65535&&_e<1114112&&(Q=_e))}}Q===null?(Q=65533,ce=1):Q>65535&&(Q-=65536,$.push(Q>>>10&1023|55296),Q=56320|Q&1023),$.push(Q),N+=ce}return se($)}const te=4096;function se(R){const p=R.length;if(p<=te)return String.fromCharCode.apply(String,R);let g="",$=0;for(;$<p;)g+=String.fromCharCode.apply(String,R.slice($,$+=te));return g}function de(R,p,g){let $="";g=Math.min(R.length,g);for(let N=p;N<g;++N)$+=String.fromCharCode(R[N]&127);return $}function he(R,p,g){let $="";g=Math.min(R.length,g);for(let N=p;N<g;++N)$+=String.fromCharCode(R[N]);return $}function be(R,p,g){const $=R.length;(!p||p<0)&&(p=0),(!g||g<0||g>$)&&(g=$);let N="";for(let q=p;q<g;++q)N+=Ut[R[q]];return N}function we(R,p,g){const $=R.slice(p,g);let N="";for(let q=0;q<$.length-1;q+=2)N+=String.fromCharCode($[q]+$[q+1]*256);return N}u.prototype.slice=function(p,g){const $=this.length;p=~~p,g=g===void 0?$:~~g,p<0?(p+=$,p<0&&(p=0)):p>$&&(p=$),g<0?(g+=$,g<0&&(g=0)):g>$&&(g=$),g<p&&(g=p);const N=this.subarray(p,g);return Object.setPrototypeOf(N,u.prototype),N};function ue(R,p,g){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+p>g)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(p,g,$){p=p>>>0,g=g>>>0,$||ue(p,g,this.length);let N=this[p],q=1,Q=0;for(;++Q<g&&(q*=256);)N+=this[p+Q]*q;return N},u.prototype.readUintBE=u.prototype.readUIntBE=function(p,g,$){p=p>>>0,g=g>>>0,$||ue(p,g,this.length);let N=this[p+--g],q=1;for(;g>0&&(q*=256);)N+=this[p+--g]*q;return N},u.prototype.readUint8=u.prototype.readUInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]|this[p+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]<<8|this[p+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},u.prototype.readBigUInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],$=this[p+7];(g===void 0||$===void 0)&&ve(p,this.length-8);const N=g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,q=this[++p]+this[++p]*2**8+this[++p]*2**16+$*2**24;return BigInt(N)+(BigInt(q)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],$=this[p+7];(g===void 0||$===void 0)&&ve(p,this.length-8);const N=g*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],q=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+$;return(BigInt(N)<<BigInt(32))+BigInt(q)}),u.prototype.readIntLE=function(p,g,$){p=p>>>0,g=g>>>0,$||ue(p,g,this.length);let N=this[p],q=1,Q=0;for(;++Q<g&&(q*=256);)N+=this[p+Q]*q;return q*=128,N>=q&&(N-=Math.pow(2,8*g)),N},u.prototype.readIntBE=function(p,g,$){p=p>>>0,g=g>>>0,$||ue(p,g,this.length);let N=g,q=1,Q=this[p+--N];for(;N>0&&(q*=256);)Q+=this[p+--N]*q;return q*=128,Q>=q&&(Q-=Math.pow(2,8*g)),Q},u.prototype.readInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},u.prototype.readInt16LE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const $=this[p]|this[p+1]<<8;return $&32768?$|4294901760:$},u.prototype.readInt16BE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const $=this[p+1]|this[p]<<8;return $&32768?$|4294901760:$},u.prototype.readInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},u.prototype.readInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},u.prototype.readBigInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],$=this[p+7];(g===void 0||$===void 0)&&ve(p,this.length-8);const N=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+($<<24);return(BigInt(N)<<BigInt(32))+BigInt(g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),u.prototype.readBigInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],$=this[p+7];(g===void 0||$===void 0)&&ve(p,this.length-8);const N=(g<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(N)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+$)}),u.prototype.readFloatLE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!0,23,4)},u.prototype.readFloatBE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!1,23,4)},u.prototype.readDoubleLE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!0,52,8)},u.prototype.readDoubleBE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!1,52,8)};function Ce(R,p,g,$,N,q){if(!u.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>N||p<q)throw new RangeError('"value" argument is out of bounds');if(g+$>R.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(p,g,$,N){if(p=+p,g=g>>>0,$=$>>>0,!N){const ce=Math.pow(2,8*$)-1;Ce(this,p,g,$,ce,0)}let q=1,Q=0;for(this[g]=p&255;++Q<$&&(q*=256);)this[g+Q]=p/q&255;return g+$},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(p,g,$,N){if(p=+p,g=g>>>0,$=$>>>0,!N){const ce=Math.pow(2,8*$)-1;Ce(this,p,g,$,ce,0)}let q=$-1,Q=1;for(this[g+q]=p&255;--q>=0&&(Q*=256);)this[g+q]=p/Q&255;return g+$},u.prototype.writeUint8=u.prototype.writeUInt8=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,1,255,0),this[g]=p&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,2,65535,0),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,2,65535,0),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,4,4294967295,0),this[g+3]=p>>>24,this[g+2]=p>>>16,this[g+1]=p>>>8,this[g]=p&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,4,4294967295,0),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4};function De(R,p,g,$,N){pe(p,$,N,R,g,7);let q=Number(p&BigInt(4294967295));R[g++]=q,q=q>>8,R[g++]=q,q=q>>8,R[g++]=q,q=q>>8,R[g++]=q;let Q=Number(p>>BigInt(32)&BigInt(4294967295));return R[g++]=Q,Q=Q>>8,R[g++]=Q,Q=Q>>8,R[g++]=Q,Q=Q>>8,R[g++]=Q,g}function Xe(R,p,g,$,N){pe(p,$,N,R,g,7);let q=Number(p&BigInt(4294967295));R[g+7]=q,q=q>>8,R[g+6]=q,q=q>>8,R[g+5]=q,q=q>>8,R[g+4]=q;let Q=Number(p>>BigInt(32)&BigInt(4294967295));return R[g+3]=Q,Q=Q>>8,R[g+2]=Q,Q=Q>>8,R[g+1]=Q,Q=Q>>8,R[g]=Q,g+8}u.prototype.writeBigUInt64LE=Ht(function(p,g=0){return De(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ht(function(p,g=0){return Xe(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(p,g,$,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*$-1);Ce(this,p,g,$,oe-1,-oe)}let q=0,Q=1,ce=0;for(this[g]=p&255;++q<$&&(Q*=256);)p<0&&ce===0&&this[g+q-1]!==0&&(ce=1),this[g+q]=(p/Q>>0)-ce&255;return g+$},u.prototype.writeIntBE=function(p,g,$,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*$-1);Ce(this,p,g,$,oe-1,-oe)}let q=$-1,Q=1,ce=0;for(this[g+q]=p&255;--q>=0&&(Q*=256);)p<0&&ce===0&&this[g+q+1]!==0&&(ce=1),this[g+q]=(p/Q>>0)-ce&255;return g+$},u.prototype.writeInt8=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,1,127,-128),p<0&&(p=255+p+1),this[g]=p&255,g+1},u.prototype.writeInt16LE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,2,32767,-32768),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeInt16BE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,2,32767,-32768),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeInt32LE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,4,2147483647,-2147483648),this[g]=p&255,this[g+1]=p>>>8,this[g+2]=p>>>16,this[g+3]=p>>>24,g+4},u.prototype.writeInt32BE=function(p,g,$){return p=+p,g=g>>>0,$||Ce(this,p,g,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4},u.prototype.writeBigInt64LE=Ht(function(p,g=0){return De(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ht(function(p,g=0){return Xe(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ke(R,p,g,$,N,q){if(g+$>R.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function He(R,p,g,$,N){return p=+p,g=g>>>0,N||Ke(R,p,g,4),n.write(R,p,g,$,23,4),g+4}u.prototype.writeFloatLE=function(p,g,$){return He(this,p,g,!0,$)},u.prototype.writeFloatBE=function(p,g,$){return He(this,p,g,!1,$)};function gt(R,p,g,$,N){return p=+p,g=g>>>0,N||Ke(R,p,g,8),n.write(R,p,g,$,52,8),g+8}u.prototype.writeDoubleLE=function(p,g,$){return gt(this,p,g,!0,$)},u.prototype.writeDoubleBE=function(p,g,$){return gt(this,p,g,!1,$)},u.prototype.copy=function(p,g,$,N){if(!u.isBuffer(p))throw new TypeError("argument should be a Buffer");if($||($=0),!N&&N!==0&&(N=this.length),g>=p.length&&(g=p.length),g||(g=0),N>0&&N<$&&(N=$),N===$||p.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),p.length-g<N-$&&(N=p.length-g+$);const q=N-$;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,$,N):Uint8Array.prototype.set.call(p,this.subarray($,N),g),q},u.prototype.fill=function(p,g,$,N){if(typeof p=="string"){if(typeof g=="string"?(N=g,g=0,$=this.length):typeof $=="string"&&(N=$,$=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(p.length===1){const Q=p.charCodeAt(0);(N==="utf8"&&Q<128||N==="latin1")&&(p=Q)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(g<0||this.length<g||this.length<$)throw new RangeError("Out of range index");if($<=g)return this;g=g>>>0,$=$===void 0?this.length:$>>>0,p||(p=0);let q;if(typeof p=="number")for(q=g;q<$;++q)this[q]=p;else{const Q=u.isBuffer(p)?p:u.from(p,N),ce=Q.length;if(ce===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(q=0;q<$-g;++q)this[q+g]=Q[q%ce]}return this};const le={};function fe(R,p,g){le[R]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${R}]`,this.stack,delete this.name}get code(){return R}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${R}]: ${this.message}`}}}fe("ERR_BUFFER_OUT_OF_BOUNDS",function(R){return R?`${R} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),fe("ERR_INVALID_ARG_TYPE",function(R,p){return`The "${R}" argument must be of type number. Received type ${typeof p}`},TypeError),fe("ERR_OUT_OF_RANGE",function(R,p,g){let $=`The value of "${R}" is out of range.`,N=g;return Number.isInteger(g)&&Math.abs(g)>2**32?N=ge(String(g)):typeof g=="bigint"&&(N=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(N=ge(N)),N+="n"),$+=` It must be ${p}. Received ${N}`,$},RangeError);function ge(R){let p="",g=R.length;const $=R[0]==="-"?1:0;for(;g>=$+4;g-=3)p=`_${R.slice(g-3,g)}${p}`;return`${R.slice(0,g)}${p}`}function me(R,p,g){Pe(p,"offset"),(R[p]===void 0||R[p+g]===void 0)&&ve(p,R.length-(g+1))}function pe(R,p,g,$,N,q){if(R>g||R<p){const Q=typeof p=="bigint"?"n":"";let ce;throw p===0||p===BigInt(0)?ce=`>= 0${Q} and < 2${Q} ** ${(q+1)*8}${Q}`:ce=`>= -(2${Q} ** ${(q+1)*8-1}${Q}) and < 2 ** ${(q+1)*8-1}${Q}`,new le.ERR_OUT_OF_RANGE("value",ce,R)}me($,N,q)}function Pe(R,p){if(typeof R!="number")throw new le.ERR_INVALID_ARG_TYPE(p,"number",R)}function ve(R,p,g){throw Math.floor(R)!==R?(Pe(R,g),new le.ERR_OUT_OF_RANGE("offset","an integer",R)):p<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,R)}const Be=/[^+/0-9A-Za-z-_]/g;function Ge(R){if(R=R.split("=")[0],R=R.trim().replace(Be,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function Ae(R,p){p=p||1/0;let g;const $=R.length;let N=null;const q=[];for(let Q=0;Q<$;++Q){if(g=R.charCodeAt(Q),g>55295&&g<57344){if(!N){if(g>56319){(p-=3)>-1&&q.push(239,191,189);continue}else if(Q+1===$){(p-=3)>-1&&q.push(239,191,189);continue}N=g;continue}if(g<56320){(p-=3)>-1&&q.push(239,191,189),N=g;continue}g=(N-55296<<10|g-56320)+65536}else N&&(p-=3)>-1&&q.push(239,191,189);if(N=null,g<128){if((p-=1)<0)break;q.push(g)}else if(g<2048){if((p-=2)<0)break;q.push(g>>6|192,g&63|128)}else if(g<65536){if((p-=3)<0)break;q.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((p-=4)<0)break;q.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return q}function ke(R){const p=[];for(let g=0;g<R.length;++g)p.push(R.charCodeAt(g)&255);return p}function We(R,p){let g,$,N;const q=[];for(let Q=0;Q<R.length&&!((p-=2)<0);++Q)g=R.charCodeAt(Q),$=g>>8,N=g%256,q.push(N),q.push($);return q}function tt(R){return t.toByteArray(Ge(R))}function Le(R,p,g,$){let N;for(N=0;N<$&&!(N+g>=p.length||N>=R.length);++N)p[N+g]=R[N];return N}function xe(R,p){return R instanceof p||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===p.name}function ut(R){return R!==R}const Ut=function(){const R="0123456789abcdef",p=new Array(256);for(let g=0;g<16;++g){const $=g*16;for(let N=0;N<16;++N)p[$+N]=R[g]+R[N]}return p}();function Ht(R){return typeof BigInt>"u"?Yn:R}function Yn(){throw new Error("BigInt not supported")}})(Np);function Nx(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function Fx(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Nx(e)}async function zx(e,t){const n=Fx(e);for(;;){const{value:o,done:a}=await n.next();if(o&&await t(o),a)break}n.return&&n.return()}async function Wx(e){let t=0;const n=[];await zx(e,s=>{n.push(s),t+=s.byteLength});const o=new Uint8Array(t);let a=0;for(const s of n)o.set(s,a),a+=s.byteLength;return o}function Ux(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}async function Hx({onProgress:e,url:t,method:n="GET",headers:o={},body:a}){a&&(a=await Wx(a));const s=await fetch(t,{method:n,headers:o,body:a}),l=s.body&&s.body.getReader?Ux(s.body):[new Uint8Array(await s.arrayBuffer())];o={};for(const[u,d]of s.headers.entries())o[u]=d;return{url:s.url,method:s.method,statusCode:s.status,statusMessage:s.statusText,body:l,headers:o}}var Uc={request:Hx};const Gx=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},zp=async e=>await window.pfs.readdir(e),Wp=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(o){console.debug("recursiveRm: Path does not exist",o);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const o=await t.readdir(e);for(const a of o)await Wp(`${e}/${a}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},qx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o="makeinfinite_client",a="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:o}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:a})},Vx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.clone({fs:o,http:Uc,dir:a,corsProxy:n,url:t,ref:"main"}),await qx(e)},Yx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.pull({fs:o,http:Uc,dir:a,corsProxy:n,url:t,ref:"main"})},Xx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:o})},Kx=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await _t.fetch({fs:o,http:Uc,dir:a,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Jx{constructor(t,n,o){this.targetRef=t,this.sourceRef=n,this.opType=o}}const Hc=e=>{var l,u;const t=e.commit.message.trim().split(`
|
|
10
|
+
`),n=t.find(d=>d.startsWith("Git Ref: ")),o=t.find(d=>d.startsWith("Extra Metadata: "));if(!n||!o)return null;const a=(l=n.split("Git Ref: ")[1])==null?void 0:l.trim(),s=JSON.parse(((u=o.split("Extra Metadata: ")[1])==null?void 0:u.trim())||"{}");return!a||!s?null:new Jx(a,s.sourceRef,s.opType)},Zx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`;return await _t.resolveRef({fs:t,dir:n,ref:"HEAD"})},Up=async(e,t)=>{const n=window.pfs,o=`${window.miDir}/${e}`,a={fs:n,dir:o,ref:"HEAD",depth:1,filepath:t},s=(await _t.log(a))[0];if(!s)throw new Error("No commit found");return s.oid},Ka=async(e,t,n,o,a=new Set,s=1e3)=>{if(s<=0)throw new Error(`Maximum recursion depth reached while resolving commit: ${n}`);const l=window.pfs,u=`${window.miDir}/${e}`,d={fs:l,dir:u,ref:n,depth:1,filepath:t},h=(await _t.log(d))[0];if(!h)throw new Error("No commit found");if(a.has(h.oid))throw new Error(`Circular reference detected: ${h.oid} has already been seen`);a.add(h.oid);const y=Hc(h);if(y&&y.opType==o)return Ka(e,t,y.targetRef,o,a,s-1);if(h.commit.parent.length>1){const m=h.commit.parent[0];if(!m)throw new Error("No parent found");return Ka(e,t,m,o,a,s-1)}return h},Qx=async(e,t)=>{const n=window.pfs,o=`${window.miDir}/${e}`,a=await Up(e,t),s=await Ka(e,t,a,"UNDO"),l=Hc(s);if(l)return[a,l.sourceRef];{let u=s.oid;const d={fs:n,dir:o,ref:u,depth:2,filepath:t},h=await _t.log(d);if(!h[1])throw new Error("No previous commit found");const y=h[1].oid;return[a,y]}},e1=async(e,t)=>{const n=await Up(e,t),o=await Ka(e,t,n,"REDO"),a=Hc(o);if(!a)throw new Error("No undos to redo");return[n,a.sourceRef]},t1=async(e,t,n)=>{await Gx(`${window.miDir}/${e}`)||await Vx(e,t,n);try{await Yx(e,t,n)}catch(a){throw await Wp(`${window.miDir}/${e}`).catch(s=>console.log(`recursiveRm error: ${s}`)),a}},Ja=async(e,t,n)=>{let o=0;const a=5;for(;o<=a;)try{await t1(e||"",t||"",n||"");break}catch(s){if(o++,console.log(`Retrying syncGitSource (Attempt ${o})`),o>a)throw console.error(`syncGitSource failed after ${o} attempts:`,s),s}},Gc=async(e,t,n)=>{const o=window.pfs,a=`${window.miDir}/${e}`;await Kx(e,t,n);const s=await _t.listTags({fs:o,dir:a});return await Promise.all(s.map(async u=>{const d=await _t.resolveRef({fs:o,dir:a,ref:`refs/tags/${u}`}),{commit:h}=await _t.readCommit({fs:o,dir:a,oid:d});return{tag:u,timestamp:h.committer.timestamp,ref:`refs/tags/${u}`}}))};var Hp={exports:{}},Wi={};/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/var
|
|
14
|
+
*/var Gp=Object.getOwnPropertySymbols,n1=Object.prototype.hasOwnProperty,r1=Object.prototype.propertyIsEnumerable;function o1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(o.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}i1();/** @license React v17.0.2
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
16
16
|
*
|
|
17
17
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var s1=X,Vp=60103;if(Wi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Yp=Symbol.for;Vp=Yp("react.element"),Wi.Fragment=Yp("react.fragment")}var l1=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c1=Object.prototype.hasOwnProperty,u1={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var o,a={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(o in t)c1.call(t,o)&&!u1.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)a[o]===void 0&&(a[o]=t[o]);return{$$typeof:Vp,type:e,key:s,ref:l,props:a,_owner:l1.current}}Wi.jsx=Xp,Wi.jsxs=Xp,Gp.exports=Wi;var v=Gp.exports;function $r(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Za.apply(null,arguments)}var d1=!1;function f1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function p1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var h1=function(){function e(n){var o=this;this._insertTag=function(a){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(a,s),o.tags.push(a)},this.isSpeedy=n.speedy===void 0?!d1:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(p1(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=f1(a);try{s.insertRule(o,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var a;return(a=o.parentNode)==null?void 0:a.removeChild(o)}),this.tags=[],this.ctr=0},e}(),an="-ms-",Qa="-moz-",at="-webkit-",Kp="comm",Vc="rule",Yc="decl",g1="@import",Jp="@keyframes",m1="@layer",y1=Math.abs,es=String.fromCharCode,v1=Object.assign;function b1(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function Zp(e){return e.trim()}function x1(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function Xc(e,t){return e.indexOf(t)}function Zt(e,t){return e.charCodeAt(t)|0}function Ui(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function Kc(e){return e.length}function ts(e,t){return t.push(e),e}function w1(e,t){return e.map(t).join("")}var ns=1,Ho=1,Qp=0,bn=0,zt=0,Go="";function rs(e,t,n,o,a,s,l){return{value:e,root:t,parent:n,type:o,props:a,children:s,line:ns,column:Ho,length:l,return:""}}function Hi(e,t){return v1(rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function S1(){return zt}function C1(){return zt=bn>0?Zt(Go,--bn):0,Ho--,zt===10&&(Ho=1,ns--),zt}function kn(){return zt=bn<Qp?Zt(Go,bn++):0,Ho++,zt===10&&(Ho=1,ns++),zt}function mr(){return Zt(Go,bn)}function os(){return bn}function Gi(e,t){return Ui(Go,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eh(e){return ns=Ho=1,Qp=gr(Go=e),bn=0,[]}function th(e){return Go="",e}function is(e){return Zp(Gi(bn-1,Jc(e===91?e+2:e===40?e+1:e)))}function _1(e){for(;(zt=mr())&&zt<33;)kn();return qi(e)>2||qi(zt)>3?"":" "}function E1(e,t){for(;--t&&kn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Gi(e,os()+(t<6&&mr()==32&&kn()==32))}function Jc(e){for(;kn();)switch(zt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Jc(zt);break;case 40:e===41&&Jc(e);break;case 92:kn();break}return bn}function R1(e,t){for(;kn()&&e+zt!==57;)if(e+zt===84&&mr()===47)break;return"/*"+Gi(t,bn-1)+"*"+es(e===47?e:kn())}function I1(e){for(;!qi(mr());)kn();return Gi(e,bn)}function k1(e){return th(as("",null,null,null,[""],e=eh(e),0,[0],e))}function as(e,t,n,o,a,s,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,S=0,E=1,P=1,C=1,O=0,k="",R=a,$=s,B=o,M=k;P;)switch(S=O,O=kn()){case 40:if(S!=108&&Zt(M,m-1)==58){Xc(M+=st(is(O),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:M+=is(O);break;case 9:case 10:case 13:case 32:M+=_1(S);break;case 92:M+=E1(os()-1,7);continue;case 47:switch(mr()){case 42:case 47:ts(T1(R1(kn(),os()),t,n),d);break;default:M+="/"}break;case 123*E:u[h++]=gr(M)*C;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:C==-1&&(M=st(M,/\f/g,"")),w>0&&gr(M)-m&&ts(w>32?rh(M+";",o,n,m-1):rh(st(M," ","")+";",o,n,m-2),d);break;case 59:M+=";";default:if(ts(B=nh(M,t,n,h,y,a,u,k,R=[],$=[],m),s),O===123)if(y===0)as(M,t,B,B,R,s,m,u,$);else switch(b===99&&Zt(M,3)===110?100:b){case 100:case 108:case 109:case 115:as(e,B,B,o&&ts(nh(e,B,B,0,0,a,u,k,a,R=[],m),$),a,$,m,u,o?R:$);break;default:as(M,B,B,B,[""],$,0,u,$)}}h=y=w=0,E=C=1,k=M="",m=l;break;case 58:m=1+gr(M),w=S;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&C1()==125)continue}switch(M+=es(O),O*E){case 38:C=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(gr(M)-1)*C,C=1;break;case 64:mr()===45&&(M+=is(kn())),b=mr(),y=m=gr(k=M+=I1(os())),O++;break;case 45:S===45&&gr(M)==2&&(E=0)}}return s}function nh(e,t,n,o,a,s,l,u,d,h,y){for(var m=a-1,b=a===0?s:[""],w=Kc(b),S=0,E=0,P=0;S<o;++S)for(var C=0,O=Ui(e,m+1,m=y1(E=l[S])),k=e;C<w;++C)(k=Zp(E>0?b[C]+" "+O:st(O,/&\f/g,b[C])))&&(d[P++]=k);return rs(e,t,n,a===0?Vc:u,d,h,y)}function T1(e,t,n){return rs(e,t,n,Kp,es(S1()),Ui(e,2,-2),0)}function rh(e,t,n,o){return rs(e,t,n,Yc,Ui(e,0,o),Ui(e,o+1,-1),o)}function qo(e,t){for(var n="",o=Kc(e),a=0;a<o;a++)n+=t(e[a],a,e,t)||"";return n}function P1(e,t,n,o){switch(e.type){case m1:if(e.children.length)break;case g1:case Yc:return e.return=e.return||e.value;case Kp:return"";case Jp:return e.return=e.value+"{"+qo(e.children,o)+"}";case Vc:e.value=e.props.join(",")}return gr(n=qo(e.children,o))?e.return=e.value+"{"+n+"}":""}function O1(e){var t=Kc(e);return function(n,o,a,s){for(var l="",u=0;u<t;u++)l+=e[u](n,o,a,s)||"";return l}}function A1(e){return function(t){t.root||(t=t.return)&&e(t)}}function oh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var M1=function(t,n,o){for(var a=0,s=0;a=s,s=mr(),a===38&&s===12&&(n[o]=1),!qi(s);)kn();return Gi(t,bn)},$1=function(t,n){var o=-1,a=44;do switch(qi(a)){case 0:a===38&&mr()===12&&(n[o]=1),t[o]+=M1(bn-1,n,o);break;case 2:t[o]+=is(a);break;case 4:if(a===44){t[++o]=mr()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=es(a)}while(a=kn());return t},D1=function(t,n){return th($1(eh(t),n))},ih=new WeakMap,B1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,a=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ih.get(o))&&!a){ih.set(t,!0);for(var s=[],l=D1(n,s),u=o.props,d=0,h=0;d<l.length;d++)for(var y=0;y<u.length;y++,h++)t.props[h]=s[d]?l[d].replace(/&\f/g,u[y]):u[y]+" "+l[d]}}},L1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ah(e,t){switch(b1(e,t)){case 5103:return at+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+Qa+e+an+e+e;case 6828:case 4268:return at+e+an+e+e;case 6165:return at+e+an+"flex-"+e+e;case 5187:return at+e+st(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+an+"flex-$1$2")+e;case 5443:return at+e+an+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return at+e+an+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+an+st(e,"shrink","negative")+e;case 5292:return at+e+an+st(e,"basis","preferred-size")+e;case 6060:return at+"box-"+st(e,"-grow","")+at+e+an+st(e,"grow","positive")+e;case 4554:return at+st(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+an+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,at+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+Qa+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xc(e,"stretch")?ah(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zt(e,t+1)!==115)break;case 6444:switch(Zt(e,gr(e)-3-(~Xc(e,"!important")&&10))){case 107:return st(e,":",":"+at)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(Zt(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(Zt(e,t+11)){case 114:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+an+e+e}return e}var j1=function(t,n,o,a){if(t.length>-1&&!t.return)switch(t.type){case Yc:t.return=ah(t.value,t.length);break;case Jp:return qo([Hi(t,{value:st(t.value,"@","@"+at)})],a);case Vc:if(t.length)return w1(t.props,function(s){switch(x1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qo([Hi(t,{props:[st(s,/:(read-\w+)/,":"+Qa+"$1")]})],a);case"::placeholder":return qo([Hi(t,{props:[st(s,/:(plac\w+)/,":"+at+"input-$1")]}),Hi(t,{props:[st(s,/:(plac\w+)/,":"+Qa+"$1")]}),Hi(t,{props:[st(s,/:(plac\w+)/,an+"input-$1")]})],a)}return""})}},N1=[j1],F1=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(E){var P=E.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||N1,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var P=E.getAttribute("data-emotion").split(" "),C=1;C<P.length;C++)s[P[C]]=!0;u.push(E)});var d,h=[B1,L1];{var y,m=[P1,A1(function(E){y.insert(E)})],b=O1(h.concat(a,m)),w=function(P){return qo(k1(P),b)};d=function(P,C,O,k){y=O,w(P?P+"{"+C.styles+"}":C.styles),k&&(S.inserted[C.name]=!0)}}var S={key:n,sheet:new h1({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return S.sheet.hydrate(u),S},sh={exports:{}},yt={};/** @license React v16.13.1
|
|
21
|
+
*/var a1=Y,qp=60103;if(Wi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Vp=Symbol.for;qp=Vp("react.element"),Wi.Fragment=Vp("react.fragment")}var s1=a1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l1=Object.prototype.hasOwnProperty,c1={key:!0,ref:!0,__self:!0,__source:!0};function Yp(e,t,n){var o,a={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(o in t)l1.call(t,o)&&!c1.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)a[o]===void 0&&(a[o]=t[o]);return{$$typeof:qp,type:e,key:s,ref:l,props:a,_owner:s1.current}}Wi.jsx=Yp,Wi.jsxs=Yp,Hp.exports=Wi;var v=Hp.exports;function $r(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Za.apply(null,arguments)}var u1=!1;function d1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function f1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var p1=function(){function e(n){var o=this;this._insertTag=function(a){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(a,s),o.tags.push(a)},this.isSpeedy=n.speedy===void 0?!u1:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(f1(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=d1(a);try{s.insertRule(o,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var a;return(a=o.parentNode)==null?void 0:a.removeChild(o)}),this.tags=[],this.ctr=0},e}(),an="-ms-",Qa="-moz-",at="-webkit-",Xp="comm",qc="rule",Vc="decl",h1="@import",Kp="@keyframes",g1="@layer",m1=Math.abs,es=String.fromCharCode,y1=Object.assign;function v1(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function Jp(e){return e.trim()}function b1(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function Yc(e,t){return e.indexOf(t)}function Zt(e,t){return e.charCodeAt(t)|0}function Ui(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function Xc(e){return e.length}function ts(e,t){return t.push(e),e}function x1(e,t){return e.map(t).join("")}var ns=1,Go=1,Zp=0,bn=0,zt=0,qo="";function rs(e,t,n,o,a,s,l){return{value:e,root:t,parent:n,type:o,props:a,children:s,line:ns,column:Go,length:l,return:""}}function Hi(e,t){return y1(rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function w1(){return zt}function S1(){return zt=bn>0?Zt(qo,--bn):0,Go--,zt===10&&(Go=1,ns--),zt}function kn(){return zt=bn<Zp?Zt(qo,bn++):0,Go++,zt===10&&(Go=1,ns++),zt}function mr(){return Zt(qo,bn)}function os(){return bn}function Gi(e,t){return Ui(qo,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qp(e){return ns=Go=1,Zp=gr(qo=e),bn=0,[]}function eh(e){return qo="",e}function is(e){return Jp(Gi(bn-1,Kc(e===91?e+2:e===40?e+1:e)))}function C1(e){for(;(zt=mr())&&zt<33;)kn();return qi(e)>2||qi(zt)>3?"":" "}function _1(e,t){for(;--t&&kn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Gi(e,os()+(t<6&&mr()==32&&kn()==32))}function Kc(e){for(;kn();)switch(zt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Kc(zt);break;case 40:e===41&&Kc(e);break;case 92:kn();break}return bn}function E1(e,t){for(;kn()&&e+zt!==57;)if(e+zt===84&&mr()===47)break;return"/*"+Gi(t,bn-1)+"*"+es(e===47?e:kn())}function R1(e){for(;!qi(mr());)kn();return Gi(e,bn)}function I1(e){return eh(as("",null,null,null,[""],e=Qp(e),0,[0],e))}function as(e,t,n,o,a,s,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,_=0,E=1,P=1,S=1,O=0,k="",I=a,M=s,B=o,D=k;P;)switch(_=O,O=kn()){case 40:if(_!=108&&Zt(D,m-1)==58){Yc(D+=st(is(O),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:D+=is(O);break;case 9:case 10:case 13:case 32:D+=C1(_);break;case 92:D+=_1(os()-1,7);continue;case 47:switch(mr()){case 42:case 47:ts(k1(E1(kn(),os()),t,n),d);break;default:D+="/"}break;case 123*E:u[h++]=gr(D)*S;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:S==-1&&(D=st(D,/\f/g,"")),w>0&&gr(D)-m&&ts(w>32?nh(D+";",o,n,m-1):nh(st(D," ","")+";",o,n,m-2),d);break;case 59:D+=";";default:if(ts(B=th(D,t,n,h,y,a,u,k,I=[],M=[],m),s),O===123)if(y===0)as(D,t,B,B,I,s,m,u,M);else switch(b===99&&Zt(D,3)===110?100:b){case 100:case 108:case 109:case 115:as(e,B,B,o&&ts(th(e,B,B,0,0,a,u,k,a,I=[],m),M),a,M,m,u,o?I:M);break;default:as(D,B,B,B,[""],M,0,u,M)}}h=y=w=0,E=S=1,k=D="",m=l;break;case 58:m=1+gr(D),w=_;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&S1()==125)continue}switch(D+=es(O),O*E){case 38:S=y>0?1:(D+="\f",-1);break;case 44:u[h++]=(gr(D)-1)*S,S=1;break;case 64:mr()===45&&(D+=is(kn())),b=mr(),y=m=gr(k=D+=R1(os())),O++;break;case 45:_===45&&gr(D)==2&&(E=0)}}return s}function th(e,t,n,o,a,s,l,u,d,h,y){for(var m=a-1,b=a===0?s:[""],w=Xc(b),_=0,E=0,P=0;_<o;++_)for(var S=0,O=Ui(e,m+1,m=m1(E=l[_])),k=e;S<w;++S)(k=Jp(E>0?b[S]+" "+O:st(O,/&\f/g,b[S])))&&(d[P++]=k);return rs(e,t,n,a===0?qc:u,d,h,y)}function k1(e,t,n){return rs(e,t,n,Xp,es(w1()),Ui(e,2,-2),0)}function nh(e,t,n,o){return rs(e,t,n,Vc,Ui(e,0,o),Ui(e,o+1,-1),o)}function Vo(e,t){for(var n="",o=Xc(e),a=0;a<o;a++)n+=t(e[a],a,e,t)||"";return n}function T1(e,t,n,o){switch(e.type){case g1:if(e.children.length)break;case h1:case Vc:return e.return=e.return||e.value;case Xp:return"";case Kp:return e.return=e.value+"{"+Vo(e.children,o)+"}";case qc:e.value=e.props.join(",")}return gr(n=Vo(e.children,o))?e.return=e.value+"{"+n+"}":""}function P1(e){var t=Xc(e);return function(n,o,a,s){for(var l="",u=0;u<t;u++)l+=e[u](n,o,a,s)||"";return l}}function O1(e){return function(t){t.root||(t=t.return)&&e(t)}}function rh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var A1=function(t,n,o){for(var a=0,s=0;a=s,s=mr(),a===38&&s===12&&(n[o]=1),!qi(s);)kn();return Gi(t,bn)},M1=function(t,n){var o=-1,a=44;do switch(qi(a)){case 0:a===38&&mr()===12&&(n[o]=1),t[o]+=A1(bn-1,n,o);break;case 2:t[o]+=is(a);break;case 4:if(a===44){t[++o]=mr()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=es(a)}while(a=kn());return t},$1=function(t,n){return eh(M1(Qp(t),n))},oh=new WeakMap,D1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,a=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!oh.get(o))&&!a){oh.set(t,!0);for(var s=[],l=$1(n,s),u=o.props,d=0,h=0;d<l.length;d++)for(var y=0;y<u.length;y++,h++)t.props[h]=s[d]?l[d].replace(/&\f/g,u[y]):u[y]+" "+l[d]}}},B1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ih(e,t){switch(v1(e,t)){case 5103:return at+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+Qa+e+an+e+e;case 6828:case 4268:return at+e+an+e+e;case 6165:return at+e+an+"flex-"+e+e;case 5187:return at+e+st(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+an+"flex-$1$2")+e;case 5443:return at+e+an+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return at+e+an+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+an+st(e,"shrink","negative")+e;case 5292:return at+e+an+st(e,"basis","preferred-size")+e;case 6060:return at+"box-"+st(e,"-grow","")+at+e+an+st(e,"grow","positive")+e;case 4554:return at+st(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+an+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,at+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+Qa+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yc(e,"stretch")?ih(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zt(e,t+1)!==115)break;case 6444:switch(Zt(e,gr(e)-3-(~Yc(e,"!important")&&10))){case 107:return st(e,":",":"+at)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(Zt(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(Zt(e,t+11)){case 114:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+an+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+an+e+e}return e}var L1=function(t,n,o,a){if(t.length>-1&&!t.return)switch(t.type){case Vc:t.return=ih(t.value,t.length);break;case Kp:return Vo([Hi(t,{value:st(t.value,"@","@"+at)})],a);case qc:if(t.length)return x1(t.props,function(s){switch(b1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([Hi(t,{props:[st(s,/:(read-\w+)/,":"+Qa+"$1")]})],a);case"::placeholder":return Vo([Hi(t,{props:[st(s,/:(plac\w+)/,":"+at+"input-$1")]}),Hi(t,{props:[st(s,/:(plac\w+)/,":"+Qa+"$1")]}),Hi(t,{props:[st(s,/:(plac\w+)/,an+"input-$1")]})],a)}return""})}},j1=[L1],N1=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(E){var P=E.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||j1,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var P=E.getAttribute("data-emotion").split(" "),S=1;S<P.length;S++)s[P[S]]=!0;u.push(E)});var d,h=[D1,B1];{var y,m=[T1,O1(function(E){y.insert(E)})],b=P1(h.concat(a,m)),w=function(P){return Vo(I1(P),b)};d=function(P,S,O,k){y=O,w(P?P+"{"+S.styles+"}":S.styles),k&&(_.inserted[S.name]=!0)}}var _={key:n,sheet:new p1({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return _.sheet.hydrate(u),_},ah={exports:{}},yt={};/** @license React v16.13.1
|
|
22
22
|
* react-is.production.min.js
|
|
23
23
|
*
|
|
24
24
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Yt=typeof Symbol=="function"&&Symbol.for,Zc=Yt?Symbol.for("react.element"):60103,Qc=Yt?Symbol.for("react.portal"):60106,ss=Yt?Symbol.for("react.fragment"):60107,ls=Yt?Symbol.for("react.strict_mode"):60108,cs=Yt?Symbol.for("react.profiler"):60114,us=Yt?Symbol.for("react.provider"):60109,ds=Yt?Symbol.for("react.context"):60110,eu=Yt?Symbol.for("react.async_mode"):60111,fs=Yt?Symbol.for("react.concurrent_mode"):60111,ps=Yt?Symbol.for("react.forward_ref"):60112,hs=Yt?Symbol.for("react.suspense"):60113,z1=Yt?Symbol.for("react.suspense_list"):60120,gs=Yt?Symbol.for("react.memo"):60115,ms=Yt?Symbol.for("react.lazy"):60116,W1=Yt?Symbol.for("react.block"):60121,U1=Yt?Symbol.for("react.fundamental"):60117,H1=Yt?Symbol.for("react.responder"):60118,G1=Yt?Symbol.for("react.scope"):60119;function Tn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zc:switch(e=e.type,e){case eu:case fs:case ss:case cs:case ls:case hs:return e;default:switch(e=e&&e.$$typeof,e){case ds:case ps:case ms:case gs:case us:return e;default:return t}}case Qc:return t}}}function lh(e){return Tn(e)===fs}yt.AsyncMode=eu,yt.ConcurrentMode=fs,yt.ContextConsumer=ds,yt.ContextProvider=us,yt.Element=Zc,yt.ForwardRef=ps,yt.Fragment=ss,yt.Lazy=ms,yt.Memo=gs,yt.Portal=Qc,yt.Profiler=cs,yt.StrictMode=ls,yt.Suspense=hs,yt.isAsyncMode=function(e){return lh(e)||Tn(e)===eu},yt.isConcurrentMode=lh,yt.isContextConsumer=function(e){return Tn(e)===ds},yt.isContextProvider=function(e){return Tn(e)===us},yt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zc},yt.isForwardRef=function(e){return Tn(e)===ps},yt.isFragment=function(e){return Tn(e)===ss},yt.isLazy=function(e){return Tn(e)===ms},yt.isMemo=function(e){return Tn(e)===gs},yt.isPortal=function(e){return Tn(e)===Qc},yt.isProfiler=function(e){return Tn(e)===cs},yt.isStrictMode=function(e){return Tn(e)===ls},yt.isSuspense=function(e){return Tn(e)===hs},yt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ss||e===fs||e===cs||e===ls||e===hs||e===z1||typeof e=="object"&&e!==null&&(e.$$typeof===ms||e.$$typeof===gs||e.$$typeof===us||e.$$typeof===ds||e.$$typeof===ps||e.$$typeof===U1||e.$$typeof===H1||e.$$typeof===G1||e.$$typeof===W1)},yt.typeOf=Tn,sh.exports=yt;var q1=sh.exports,ch=q1,V1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Y1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uh={};uh[ch.ForwardRef]=V1,uh[ch.Memo]=Y1;var X1=!0;function dh(e,t,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(o+=a+" ")}),o}var tu=function(t,n,o){var a=t.key+"-"+n.name;(o===!1||X1===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},nu=function(t,n,o){tu(t,n,o);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function K1(e){for(var t=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var J1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Z1=!1,Q1=/[A-Z]|^ms/g,ew=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fh=function(t){return t.charCodeAt(1)===45},ph=function(t){return t!=null&&typeof t!="boolean"},ru=oh(function(e){return fh(e)?e:e.replace(Q1,"-$&").toLowerCase()}),hh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ew,function(o,a,s){return yr={name:a,styles:s,next:yr},a})}return J1[t]!==1&&!fh(t)&&typeof n=="number"&&n!==0?n+"px":n},tw="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return yr={name:a.name,styles:a.styles,next:yr},a.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)yr={name:l.name,styles:l.styles,next:yr},l=l.next;var u=s.styles+";";return u}return nw(e,t,n)}case"function":{if(e!==void 0){var d=yr,h=n(e);return yr=d,Vi(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function nw(e,t,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=Vi(e,t,n[a])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?o+=s+"{"+t[u]+"}":ph(u)&&(o+=ru(s)+":"+hh(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Z1)throw new Error(tw);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)ph(l[d])&&(o+=ru(s)+":"+hh(s,l[d])+";");else{var h=Vi(e,t,l);switch(s){case"animation":case"animationName":{o+=ru(s)+":"+h+";";break}default:o+=s+"{"+h+"}"}}}}return o}var gh=/label:\s*([^\s;{]+)\s*(;|$)/g,yr;function Yi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";yr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,a+=Vi(n,t,s);else{var l=s;a+=l[0]}for(var u=1;u<e.length;u++)if(a+=Vi(n,t,e[u]),o){var d=s;a+=d[u]}gh.lastIndex=0;for(var h="",y;(y=gh.exec(a))!==null;)h+="-"+y[1];var m=K1(a)+h;return{name:m,styles:a,next:yr}}var rw=function(t){return t()},mh=j.useInsertionEffect?j.useInsertionEffect:!1,yh=mh||rw,vh=mh||j.useLayoutEffect,ow=!1,bh=j.createContext(typeof HTMLElement<"u"?F1({key:"css"}):null);bh.Provider;var ou=function(t){return X.forwardRef(function(n,o){var a=X.useContext(bh);return t(n,a,o)})},ys=j.createContext({}),iu={}.hasOwnProperty,au="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iw=function(t,n){var o={};for(var a in n)iu.call(n,a)&&(o[a]=n[a]);return o[au]=t,o},aw=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return tu(n,o,a),yh(function(){return nu(n,o,a)}),null},sw=ou(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var a=e[au],s=[o],l="";typeof e.className=="string"?l=dh(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var u=Yi(s,void 0,j.useContext(ys));l+=t.key+"-"+u.name;var d={};for(var h in e)iu.call(e,h)&&h!=="css"&&h!==au&&!ow&&(d[h]=e[h]);return d.className=l,n&&(d.ref=n),j.createElement(j.Fragment,null,j.createElement(aw,{cache:t,serialized:u,isStringTag:typeof a=="string"}),j.createElement(a,d))}),lw=sw,xh=function(t,n){var o=arguments;if(n==null||!iu.call(n,"css"))return j.createElement.apply(void 0,o);var a=o.length,s=new Array(a);s[0]=lw,s[1]=iw(t,n);for(var l=2;l<a;l++)s[l]=o[l];return j.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(xh||(xh={}));var cw=ou(function(e,t){var n=e.styles,o=Yi([n],void 0,j.useContext(ys)),a=j.useRef();return vh(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),a.current=[l,u],function(){l.flush()}},[t]),vh(function(){var s=a.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(o.next!==void 0&&nu(t,o.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",o,l,!1)},[t,o.name]),null});function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}function Xi(){var e=su.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var uw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dw=oh(function(e){return uw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),fw=!1,pw=dw,hw=function(t){return t!=="theme"},wh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pw:hw},Sh=function(t,n,o){var a;if(n){var s=n.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&o&&(a=t.__emotion_forwardProp),a},gw=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return tu(n,o,a),yh(function(){return nu(n,o,a)}),null},mw=function e(t,n){var o=t.__emotion_real===t,a=o&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=Sh(t,n,o),d=u||wh(a),h=!d("as");return function(){var y=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{var b=y[0];m.push(b[0]);for(var w=y.length,S=1;S<w;S++)m.push(y[S],b[S])}var E=ou(function(P,C,O){var k=h&&P.as||a,R="",$=[],B=P;if(P.theme==null){B={};for(var M in P)B[M]=P[M];B.theme=j.useContext(ys)}typeof P.className=="string"?R=dh(C.registered,$,P.className):P.className!=null&&(R=P.className+" ");var z=Yi(m.concat($),C.registered,B);R+=C.key+"-"+z.name,l!==void 0&&(R+=" "+l);var V=h&&u===void 0?wh(k):d,_={};for(var G in P)h&&G==="as"||V(G)&&(_[G]=P[G]);return _.className=R,O&&(_.ref=O),j.createElement(j.Fragment,null,j.createElement(gw,{cache:C,serialized:z,isStringTag:typeof k=="string"}),j.createElement(k,_))});return E.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=m,E.__emotion_forwardProp=u,Object.defineProperty(E,"toString",{value:function(){return l===void 0&&fw?"NO_COMPONENT_SELECTOR":"."+l}}),E.withComponent=function(P,C){var O=e(P,Za({},n,C,{shouldForwardProp:Sh(E,C,!0)}));return O.apply(void 0,m)},E}},yw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],lu=mw.bind(null);yw.forEach(function(e){lu[e]=lu(e)});var Ch={exports:{}},vw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bw=vw,xw=bw;function _h(){}function Eh(){}Eh.resetWarningCache=_h;var ww=function(){function e(o,a,s,l,u,d){if(d!==xw){var h=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 h.name="Invariant Violation",h}}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:Eh,resetWarningCache:_h};return n.PropTypes=n,n};Ch.exports=ww();var Zr=Ch.exports;function Sw(e){return e==null||Object.keys(e).length===0}function Cw(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?a=>t(Sw(a)?n:a):t;return v.jsx(cw,{styles:o})}/**
|
|
28
|
+
*/var Yt=typeof Symbol=="function"&&Symbol.for,Jc=Yt?Symbol.for("react.element"):60103,Zc=Yt?Symbol.for("react.portal"):60106,ss=Yt?Symbol.for("react.fragment"):60107,ls=Yt?Symbol.for("react.strict_mode"):60108,cs=Yt?Symbol.for("react.profiler"):60114,us=Yt?Symbol.for("react.provider"):60109,ds=Yt?Symbol.for("react.context"):60110,Qc=Yt?Symbol.for("react.async_mode"):60111,fs=Yt?Symbol.for("react.concurrent_mode"):60111,ps=Yt?Symbol.for("react.forward_ref"):60112,hs=Yt?Symbol.for("react.suspense"):60113,F1=Yt?Symbol.for("react.suspense_list"):60120,gs=Yt?Symbol.for("react.memo"):60115,ms=Yt?Symbol.for("react.lazy"):60116,z1=Yt?Symbol.for("react.block"):60121,W1=Yt?Symbol.for("react.fundamental"):60117,U1=Yt?Symbol.for("react.responder"):60118,H1=Yt?Symbol.for("react.scope"):60119;function Tn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jc:switch(e=e.type,e){case Qc:case fs:case ss:case cs:case ls:case hs:return e;default:switch(e=e&&e.$$typeof,e){case ds:case ps:case ms:case gs:case us:return e;default:return t}}case Zc:return t}}}function sh(e){return Tn(e)===fs}yt.AsyncMode=Qc,yt.ConcurrentMode=fs,yt.ContextConsumer=ds,yt.ContextProvider=us,yt.Element=Jc,yt.ForwardRef=ps,yt.Fragment=ss,yt.Lazy=ms,yt.Memo=gs,yt.Portal=Zc,yt.Profiler=cs,yt.StrictMode=ls,yt.Suspense=hs,yt.isAsyncMode=function(e){return sh(e)||Tn(e)===Qc},yt.isConcurrentMode=sh,yt.isContextConsumer=function(e){return Tn(e)===ds},yt.isContextProvider=function(e){return Tn(e)===us},yt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jc},yt.isForwardRef=function(e){return Tn(e)===ps},yt.isFragment=function(e){return Tn(e)===ss},yt.isLazy=function(e){return Tn(e)===ms},yt.isMemo=function(e){return Tn(e)===gs},yt.isPortal=function(e){return Tn(e)===Zc},yt.isProfiler=function(e){return Tn(e)===cs},yt.isStrictMode=function(e){return Tn(e)===ls},yt.isSuspense=function(e){return Tn(e)===hs},yt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ss||e===fs||e===cs||e===ls||e===hs||e===F1||typeof e=="object"&&e!==null&&(e.$$typeof===ms||e.$$typeof===gs||e.$$typeof===us||e.$$typeof===ds||e.$$typeof===ps||e.$$typeof===W1||e.$$typeof===U1||e.$$typeof===H1||e.$$typeof===z1)},yt.typeOf=Tn,ah.exports=yt;var G1=ah.exports,lh=G1,q1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ch={};ch[lh.ForwardRef]=q1,ch[lh.Memo]=V1;var Y1=!0;function uh(e,t,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(o+=a+" ")}),o}var eu=function(t,n,o){var a=t.key+"-"+n.name;(o===!1||Y1===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},tu=function(t,n,o){eu(t,n,o);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function X1(e){for(var t=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var K1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},J1=!1,Z1=/[A-Z]|^ms/g,Q1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dh=function(t){return t.charCodeAt(1)===45},fh=function(t){return t!=null&&typeof t!="boolean"},nu=rh(function(e){return dh(e)?e:e.replace(Z1,"-$&").toLowerCase()}),ph=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Q1,function(o,a,s){return yr={name:a,styles:s,next:yr},a})}return K1[t]!==1&&!dh(t)&&typeof n=="number"&&n!==0?n+"px":n},ew="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return yr={name:a.name,styles:a.styles,next:yr},a.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)yr={name:l.name,styles:l.styles,next:yr},l=l.next;var u=s.styles+";";return u}return tw(e,t,n)}case"function":{if(e!==void 0){var d=yr,h=n(e);return yr=d,Vi(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function tw(e,t,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=Vi(e,t,n[a])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?o+=s+"{"+t[u]+"}":fh(u)&&(o+=nu(s)+":"+ph(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&J1)throw new Error(ew);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)fh(l[d])&&(o+=nu(s)+":"+ph(s,l[d])+";");else{var h=Vi(e,t,l);switch(s){case"animation":case"animationName":{o+=nu(s)+":"+h+";";break}default:o+=s+"{"+h+"}"}}}}return o}var hh=/label:\s*([^\s;{]+)\s*(;|$)/g,yr;function Yi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";yr=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,a+=Vi(n,t,s);else{var l=s;a+=l[0]}for(var u=1;u<e.length;u++)if(a+=Vi(n,t,e[u]),o){var d=s;a+=d[u]}hh.lastIndex=0;for(var h="",y;(y=hh.exec(a))!==null;)h+="-"+y[1];var m=X1(a)+h;return{name:m,styles:a,next:yr}}var nw=function(t){return t()},gh=j.useInsertionEffect?j.useInsertionEffect:!1,mh=gh||nw,yh=gh||j.useLayoutEffect,rw=!1,vh=j.createContext(typeof HTMLElement<"u"?N1({key:"css"}):null);vh.Provider;var ru=function(t){return Y.forwardRef(function(n,o){var a=Y.useContext(vh);return t(n,a,o)})},ys=j.createContext({}),ou={}.hasOwnProperty,iu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ow=function(t,n){var o={};for(var a in n)ou.call(n,a)&&(o[a]=n[a]);return o[iu]=t,o},iw=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return eu(n,o,a),mh(function(){return tu(n,o,a)}),null},aw=ru(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var a=e[iu],s=[o],l="";typeof e.className=="string"?l=uh(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var u=Yi(s,void 0,j.useContext(ys));l+=t.key+"-"+u.name;var d={};for(var h in e)ou.call(e,h)&&h!=="css"&&h!==iu&&!rw&&(d[h]=e[h]);return d.className=l,n&&(d.ref=n),j.createElement(j.Fragment,null,j.createElement(iw,{cache:t,serialized:u,isStringTag:typeof a=="string"}),j.createElement(a,d))}),sw=aw,bh=function(t,n){var o=arguments;if(n==null||!ou.call(n,"css"))return j.createElement.apply(void 0,o);var a=o.length,s=new Array(a);s[0]=sw,s[1]=ow(t,n);for(var l=2;l<a;l++)s[l]=o[l];return j.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bh||(bh={}));var lw=ru(function(e,t){var n=e.styles,o=Yi([n],void 0,j.useContext(ys)),a=j.useRef();return yh(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),a.current=[l,u],function(){l.flush()}},[t]),yh(function(){var s=a.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(o.next!==void 0&&tu(t,o.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",o,l,!1)},[t,o.name]),null});function au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}function Xi(){var e=au.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var cw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uw=rh(function(e){return cw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),dw=!1,fw=uw,pw=function(t){return t!=="theme"},xh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fw:pw},wh=function(t,n,o){var a;if(n){var s=n.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&o&&(a=t.__emotion_forwardProp),a},hw=function(t){var n=t.cache,o=t.serialized,a=t.isStringTag;return eu(n,o,a),mh(function(){return tu(n,o,a)}),null},gw=function e(t,n){var o=t.__emotion_real===t,a=o&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=wh(t,n,o),d=u||xh(a),h=!d("as");return function(){var y=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{var b=y[0];m.push(b[0]);for(var w=y.length,_=1;_<w;_++)m.push(y[_],b[_])}var E=ru(function(P,S,O){var k=h&&P.as||a,I="",M=[],B=P;if(P.theme==null){B={};for(var D in P)B[D]=P[D];B.theme=j.useContext(ys)}typeof P.className=="string"?I=uh(S.registered,M,P.className):P.className!=null&&(I=P.className+" ");var V=Yi(m.concat(M),S.registered,B);I+=S.key+"-"+V.name,l!==void 0&&(I+=" "+l);var U=h&&u===void 0?xh(k):d,C={};for(var G in P)h&&G==="as"||U(G)&&(C[G]=P[G]);return C.className=I,O&&(C.ref=O),j.createElement(j.Fragment,null,j.createElement(hw,{cache:S,serialized:V,isStringTag:typeof k=="string"}),j.createElement(k,C))});return E.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=m,E.__emotion_forwardProp=u,Object.defineProperty(E,"toString",{value:function(){return l===void 0&&dw?"NO_COMPONENT_SELECTOR":"."+l}}),E.withComponent=function(P,S){var O=e(P,Za({},n,S,{shouldForwardProp:wh(E,S,!0)}));return O.apply(void 0,m)},E}},mw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],su=gw.bind(null);mw.forEach(function(e){su[e]=su(e)});var Sh={exports:{}},yw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vw=yw,bw=vw;function Ch(){}function _h(){}_h.resetWarningCache=Ch;var xw=function(){function e(o,a,s,l,u,d){if(d!==bw){var h=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 h.name="Invariant Violation",h}}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:_h,resetWarningCache:Ch};return n.PropTypes=n,n};Sh.exports=xw();var Zr=Sh.exports;function ww(e){return e==null||Object.keys(e).length===0}function Sw(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?a=>t(ww(a)?n:a):t;return v.jsx(lw,{styles:o})}/**
|
|
29
29
|
* @mui/styled-engine v6.1.10
|
|
30
30
|
*
|
|
31
31
|
* @license MIT
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/function Rh(e,t){return lu(e,t)}function _w(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ih=[];function kh(e){return Ih[0]=e,Yi(Ih)}function vr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Th(e){if(j.isValidElement(e)||!vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Th(e[n])}),t}function sn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return vr(e)&&vr(t)&&Object.keys(t).forEach(a=>{j.isValidElement(t[a])?o[a]=t[a]:vr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&vr(e[a])?o[a]=sn(e[a],t[a],n):n.clone?o[a]=vr(t[a])?Th(t[a]):t[a]:o[a]=t[a]}),o}const Ew=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Rw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...a}=e,s=Ew(t),l=Object.keys(s);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-o/100}${n})`}function h(b,w){const S=l.indexOf(w);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(S!==-1&&typeof t[l[S]]=="number"?t[l[S]]:w)-o/100}${n})`}function y(b){return l.indexOf(b)+1<l.length?h(b,l[l.indexOf(b)+1]):u(b)}function m(b){const w=l.indexOf(b);return w===0?u(l[1]):w===l.length-1?d(l[w]):h(b,l[l.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:u,down:d,between:h,only:y,not:m,unit:n,...a}}function Iw(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,a)=>{var l,u;const s=/min-width:\s*([0-9.]+)/;return+(((l=o.match(s))==null?void 0:l[1])||0)-+(((u=a.match(s))==null?void 0:u[1])||0)});return n.length?n.reduce((o,a)=>{const s=t[a];return delete o[a],o[a]=s,o},{...t}):t}function kw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Tw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,a]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(s)}function Pw(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...u)=>t(e.breakpoints.up(...u),l),s.down=(...u)=>t(e.breakpoints.down(...u),l),s.between=(...u)=>t(e.breakpoints.between(...u),l),s.only=(...u)=>t(e.breakpoints.only(...u),l),s.not=(...u)=>{const d=t(e.breakpoints.not(...u),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},a=s=>(n(o,s),o);return n(a),{...e,containerQueries:a}}const Ow={borderRadius:4};function Ki(e,t){return t?sn(e,t,{clone:!1}):e}const vs={xs:0,sm:600,md:900,lg:1200,xl:1536},Ph={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vs[e]}px)`},Aw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:vs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Ph;return t.reduce((l,u,d)=>(l[s.up(s.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const s=o.breakpoints||Ph;return Object.keys(t).reduce((l,u)=>{if(kw(s.keys,u)){const d=Tw(o.containerQueries?o:Aw,u);d&&(l[d]=n(t[u],u))}else if(Object.keys(s.values||vs).includes(u)){const d=s.up(u);l[d]=n(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return n(t)}function Mw(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,a)=>{const s=e.up(a);return o[s]={},o},{}))||{}}function $w(e,t){return e.reduce((n,o)=>{const a=n[o];return(!a||Object.keys(a).length===0)&&delete n[o],n},t)}function je(e){if(typeof e!="string")throw new Error($r(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function xs(e,t,n,o=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||o:a=bs(e,n)||o,t&&(a=t(a,o,e)),a}function jt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:a}=e,s=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,h=bs(d,o)||{};return Dr(l,u,m=>{let b=xs(h,a,m);return m===b&&typeof m=="string"&&(b=xs(h,a,`${t}${m==="default"?"":je(m)}`,m)),n===!1?b:{[n]:b}})};return s.propTypes={},s.filterProps=[t],s}function Dw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Bw={m:"margin",p:"padding"},Lw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Oh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jw=Dw(e=>{if(e.length>2)if(Oh[e])e=Oh[e];else return[e];const[t,n]=e.split(""),o=Bw[t],a=Lw[n]||"";return Array.isArray(a)?a.map(s=>o+s):[o+a]}),cu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cu,...uu];function Ji(e,t,n,o){const a=bs(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),u=a[l];return s>=0?u:typeof u=="number"?-u:`-${u}`}:typeof a=="function"?a:()=>{}}function du(e){return Ji(e,"spacing",8)}function Zi(e,t){return typeof t=="string"||t==null?t:e(t)}function Nw(e,t){return n=>e.reduce((o,a)=>(o[a]=Zi(t,n),o),{})}function Fw(e,t,n,o){if(!t.includes(n))return null;const a=jw(n),s=Nw(a,o),l=e[n];return Dr(e,l,s)}function Ah(e,t){const n=du(e.theme);return Object.keys(e).map(o=>Fw(e,t,o,n)).reduce(Ki,{})}function Mt(e){return Ah(e,cu)}Mt.propTypes={},Mt.filterProps=cu;function $t(e){return Ah(e,uu)}$t.propTypes={},$t.filterProps=uu;function Mh(e=8,t=du({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function ws(...e){const t=e.reduce((o,a)=>(a.filterProps.forEach(s=>{o[s]=a}),o),{}),n=o=>Object.keys(o).reduce((a,s)=>t[s]?Ki(a,t[s](o)):a,{});return n.propTypes={},n.filterProps=e.reduce((o,a)=>o.concat(a.filterProps),[]),n}function zn(e){return typeof e!="number"?e:`${e}px solid`}function Wn(e,t){return jt({prop:e,themeKey:"borders",transform:t})}const zw=Wn("border",zn),Ww=Wn("borderTop",zn),Uw=Wn("borderRight",zn),Hw=Wn("borderBottom",zn),Gw=Wn("borderLeft",zn),qw=Wn("borderColor"),Vw=Wn("borderTopColor"),Yw=Wn("borderRightColor"),Xw=Wn("borderBottomColor"),Kw=Wn("borderLeftColor"),Jw=Wn("outline",zn),Zw=Wn("outlineColor"),Ss=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ji(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Zi(t,o)});return Dr(e,e.borderRadius,n)}return null};Ss.propTypes={},Ss.filterProps=["borderRadius"],ws(zw,Ww,Uw,Hw,Gw,qw,Vw,Yw,Xw,Kw,Ss,Jw,Zw);const Cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({gap:Zi(t,o)});return Dr(e,e.gap,n)}return null};Cs.propTypes={},Cs.filterProps=["gap"];const _s=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({columnGap:Zi(t,o)});return Dr(e,e.columnGap,n)}return null};_s.propTypes={},_s.filterProps=["columnGap"];const Es=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({rowGap:Zi(t,o)});return Dr(e,e.rowGap,n)}return null};Es.propTypes={},Es.filterProps=["rowGap"];const Qw=jt({prop:"gridColumn"}),eS=jt({prop:"gridRow"}),tS=jt({prop:"gridAutoFlow"}),nS=jt({prop:"gridAutoColumns"}),rS=jt({prop:"gridAutoRows"}),oS=jt({prop:"gridTemplateColumns"}),iS=jt({prop:"gridTemplateRows"}),aS=jt({prop:"gridTemplateAreas"}),sS=jt({prop:"gridArea"});ws(Cs,_s,Es,Qw,eS,tS,nS,rS,oS,iS,aS,sS);function Vo(e,t){return t==="grey"?t:e}const lS=jt({prop:"color",themeKey:"palette",transform:Vo}),cS=jt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),uS=jt({prop:"backgroundColor",themeKey:"palette",transform:Vo});ws(lS,cS,uS);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const dS=jt({prop:"width",transform:Pn}),fu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,s,l,u,d;const o=((l=(s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.values)==null?void 0:l[n])||vs[n];return o?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Pn(n)}};return Dr(e,e.maxWidth,t)}return null};fu.filterProps=["maxWidth"];const fS=jt({prop:"minWidth",transform:Pn}),pS=jt({prop:"height",transform:Pn}),hS=jt({prop:"maxHeight",transform:Pn}),gS=jt({prop:"minHeight",transform:Pn});jt({prop:"size",cssProperty:"width",transform:Pn}),jt({prop:"size",cssProperty:"height",transform:Pn});const mS=jt({prop:"boxSizing"});ws(dS,fu,fS,pS,hS,gS,mS);const Qi={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ss},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:$t},pt:{style:$t},pr:{style:$t},pb:{style:$t},pl:{style:$t},px:{style:$t},py:{style:$t},padding:{style:$t},paddingTop:{style:$t},paddingRight:{style:$t},paddingBottom:{style:$t},paddingLeft:{style:$t},paddingX:{style:$t},paddingY:{style:$t},paddingInline:{style:$t},paddingInlineStart:{style:$t},paddingInlineEnd:{style:$t},paddingBlock:{style:$t},paddingBlockStart:{style:$t},paddingBlockEnd:{style:$t},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Cs},rowGap:{style:Es},columnGap:{style:_s},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:fu},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yS(...e){const t=e.reduce((o,a)=>o.concat(Object.keys(a)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function vS(e,t){return typeof e=="function"?e(t):e}function bS(){function e(n,o,a,s){const l={[n]:o,theme:a},u=s[n];if(!u)return{[n]:o};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=u;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[n]:o};const b=bs(a,h)||{};return m?m(l):Dr(l,o,S=>{let E=xs(b,y,S);return S===E&&typeof S=="string"&&(E=xs(b,y,`${n}${S==="default"?"":je(S)}`,S)),d===!1?E:{[d]:E}})}function t(n){const{sx:o,theme:a={}}=n||{};if(!o)return null;const s=a.unstable_sxConfig??Qi;function l(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const h=Mw(a.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(b=>{const w=vS(d[b],a);if(w!=null)if(typeof w=="object")if(s[b])m=Ki(m,e(b,w,a,s));else{const S=Dr({theme:a},w,E=>({[b]:E}));yS(S,w)?m[b]=t({sx:w,theme:a}):m=Ki(m,S)}else m=Ki(m,e(b,w,a,s))}),Iw(a,$w(y,m))}return Array.isArray(o)?o.map(l):l(o)}return t}const vo=bS();vo.filterProps=["sx"];function xS(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function pu(e={},...t){const{breakpoints:n={},palette:o={},spacing:a,shape:s={},...l}=e,u=Rw(n),d=Mh(a);let h=sn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...Ow,...s}},l);return h=Pw(h),h.applyStyles=xS,h=t.reduce((y,m)=>sn(y,m),h),h.unstable_sxConfig={...Qi,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return vo({sx:m,theme:this})},h}function wS(e){return Object.keys(e).length===0}function SS(e=null){const t=j.useContext(ys);return!t||wS(t)?e:t}const CS=pu();function hu(e=CS){return SS(e)}function _S({styles:e,themeId:t,defaultTheme:n={}}){const o=hu(n),a=typeof e=="function"?e(t&&o[t]||o):e;return v.jsx(Cw,{styles:a})}const ES=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Qi;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function $h(e){const{sx:t,...n}=e,{systemProps:o,otherProps:a}=ES(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return vr(u)?{...o,...u}:o}:s={...o,...t},{...a,sx:s}}const Dh=e=>e,Bh=(()=>{let e=Dh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dh}}})();function Lh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Lh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Te(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Lh(e))&&(o&&(o+=" "),o+=t);return o}const RS=Object.freeze(Object.defineProperty({__proto__:null,clsx:Te,default:Te},Symbol.toStringTag,{value:"Module"}));function IS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,s=Rh("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(vo);return j.forwardRef(function(d,h){const y=hu(n),{className:m,component:b="div",...w}=$h(d);return v.jsx(s,{as:b,ref:h,className:Te(m,a?a(o):o),theme:t&&y[t]||y,...w})})}const kS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function lt(e,t,n="Mui"){const o=kS[t];return o?`${n}-${o}`:`${Bh.generate(e)}-${t}`}function it(e,t,n="Mui"){const o={};return t.forEach(a=>{o[a]=lt(e,a,n)}),o}function jh(e){const{variants:t,...n}=e,o={variants:t,style:kh(n),isProcessed:!0};return o.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=kh(a.style))}),o}const TS=pu();function gu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function PS(e){return e?(t,n)=>n[e]:null}function OS(e,t,n){e.theme=MS(e.theme)?n:e.theme[t]||e.theme}function Rs(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Rs(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:a,...s}=n;o=s}return Nh(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Nh(e,t,n=[]){var a;let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((a=e.ownerState)==null?void 0:a[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(o))):n.push(l.style)}return n}function Fh(e={}){const{themeId:t,defaultTheme:n=TS,rootShouldForwardProp:o=gu,slotShouldForwardProp:a=gu}=e;function s(u){OS(u,t,n)}return(u,d={})=>{_w(u,$=>$.filter(B=>B!==vo));const{name:h,slot:y,skipVariantsResolver:m,skipSx:b,overridesResolver:w=PS(DS(y)),...S}=d,E=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,P=b||!1;let C=gu;y==="Root"||y==="root"?C=o:y?C=a:$S(u)&&(C=void 0);const O=Rh(u,{shouldForwardProp:C,label:AS(),...S}),k=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(M){return Rs(M,$)};if(vr($)){const B=jh($);return B.variants?function(z){return Rs(z,B)}:B.style}return $},R=(...$)=>{const B=[],M=$.map(k),z=[];if(B.push(s),h&&w&&z.push(function(re){var le,pe;const Q=(pe=(le=re.theme.components)==null?void 0:le[h])==null?void 0:pe.styleOverrides;if(!Q)return null;const ee={};for(const he in Q)ee[he]=Rs(re,Q[he]);return w(re,ee)}),h&&!E&&z.push(function(re){var ee,le;const H=re.theme,Q=(le=(ee=H==null?void 0:H.components)==null?void 0:ee[h])==null?void 0:le.variants;return Q?Nh(re,Q):null}),P||z.push(vo),Array.isArray(M[0])){const G=M.shift(),re=new Array(B.length).fill(""),H=new Array(z.length).fill("");let Q;Q=[...re,...G,...H],Q.raw=[...re,...G.raw,...H],B.unshift(Q)}const V=[...B,...M,...z],_=O(...V);return u.muiName&&(_.muiName=u.muiName),_};return O.withConfig&&(R.withConfig=O.withConfig),R}}function AS(e,t){return void 0}function MS(e){for(const t in e)return!1;return!0}function $S(e){return typeof e=="string"&&e.charCodeAt(0)>96}function DS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const BS=Fh();function Is(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)n[a]=s||{};else if(!s)n[a]=l;else{n[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;n[a][d]=Is(s[d],l[d])}}}else n[a]===void 0&&(n[a]=e[a])}return n}const br=typeof window<"u"?j.useLayoutEffect:j.useEffect;function LS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function mu(e,t=0,n=1){return LS(e,t,n)}function jS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,a)=>a<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(jS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($r(9,e));let o=e.substring(t+1,e.length-1),a;if(n==="color"){if(o=o.split(" "),a=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error($r(10,a))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:a}}const NS=e=>{const t=Qr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ea=(e,t)=>{try{return NS(e)}catch{return e}};function ks(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function zh(e){e=Qr(e);const{values:t}=e,n=t[0],o=t[1]/100,a=t[2]/100,s=o*Math.min(a,1-a),l=(h,y=(h+n/30)%12)=>a-s*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),ks({type:u,values:d})}function yu(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(zh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FS(e,t){const n=yu(e),o=yu(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Gt(e,t){return e=Qr(e),t=mu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ks(e)}function Ts(e,t,n){try{return Gt(e,t)}catch{return e}}function vu(e,t){if(e=Qr(e),t=mu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ks(e)}function wt(e,t,n){try{return vu(e,t)}catch{return e}}function bu(e,t){if(e=Qr(e),t=mu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ks(e)}function St(e,t,n){try{return bu(e,t)}catch{return e}}function zS(e,t=.15){return yu(e)>.5?vu(e,t):bu(e,t)}function Ps(e,t,n){try{return zS(e,t)}catch{return e}}function Wh(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function Os(e,t=166){let n;function o(...a){const s=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function xu(e,t){var n,o,a;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:a.muiName))!==-1}function Un(e){return e&&e.ownerDocument||document}function or(e){return Un(e).defaultView||window}function wu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Uh=0;function WS(e){const[t,n]=j.useState(e),o=e||t;return j.useEffect(()=>{t==null&&(Uh+=1,n(`mui-${Uh}`))},[t]),o}const Hh={...j}.useId;function Gh(e){if(Hh!==void 0){const t=Hh();return e??t}return WS(e)}function qh({controlled:e,default:t,name:n,state:o="value"}){const{current:a}=j.useRef(e!==void 0),[s,l]=j.useState(t),u=a?e:s,d=j.useCallback(h=>{a||l(h)},[]);return[u,d]}function Br(e){const t=j.useRef(e);return br(()=>{t.current=e}),j.useRef((...n)=>(0,t.current)(...n)).current}function Xt(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wu(n,t)})},e)}const Vh={};function Yh(e,t){const n=j.useRef(Vh);return n.current===Vh&&(n.current=e(t)),n}const US=[];function HS(e){j.useEffect(e,US)}class Su{constructor(){Ar(this,"currentId",null);Ar(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ar(this,"disposeEffect",()=>this.clear)}static create(){return new Su}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xh(){const e=Yh(Su.create).current;return HS(e.disposeEffect),e}function Kh(e){try{return e.matches(":focus-visible")}catch{}return!1}function Jh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ft(e,t,n=void 0){const o={};for(const a in e){const s=e[a];let l="",u=!0;for(let d=0;d<s.length;d+=1){const h=s[d];h&&(l+=(u===!0?"":" ")+t(h),u=!1,n&&n[h]&&(l+=" "+n[h]))}o[a]=l}return o}function GS(e){return typeof e=="string"}function Zh(e,t,n){return e===void 0||GS(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function eg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:s}=e;if(!t){const w=Te(n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),S={...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},E={...n,...a,...o};return w.length>0&&(E.className=w),Object.keys(S).length>0&&(E.style=S),{props:E,internalRef:void 0}}const l=Qh({...a,...o}),u=eg(o),d=eg(a),h=t(l),y=Te(h==null?void 0:h.className,n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},b={...h,...n,...d,...u};return y.length>0&&(b.className=y),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:h.ref}}function ng(e,t,n){return typeof e=="function"?e(t,n):e}function Yo(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1,...s}=e,l=a?{}:ng(n,o),{props:u,internalRef:d}=tg({...s,externalSlotProps:l}),h=Xt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return Zh(t,{...u,ref:h},o)}function ta(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const qS=j.createContext(),Cu=()=>j.useContext(qS)??!1,VS=j.createContext(void 0);function YS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const a=t.components[n];return a.defaultProps?Is(a.defaultProps,o):!a.styleOverrides&&!a.variants?Is(a,o):o}function XS({props:e,name:t}){const n=j.useContext(VS);return YS({props:e,name:t,theme:{components:n}})}const rg={theme:void 0};function KS(e){let t,n;return function(a){let s=t;return(s===void 0||a.theme!==n)&&(rg.theme=a.theme,s=jh(e(rg)),t=s,n=a.theme),s}}function JS(e=""){function t(...o){if(!o.length)return"";const a=o[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...o.slice(1))})`:`, ${a}`}return(o,...a)=>`var(--${e?`${e}-`:""}${o}${t(...a)})`}const og=(e,t,n,o=[])=>{let a=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=o.includes(s)?[]:{}),a=a[s])})},ZS=(e,t,n)=>{function o(a,s=[],l=[]){Object.entries(a).forEach(([u,d])=>{(!n||n&&!n([...s,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...s,u],Array.isArray(d)?[...l,u]:l):t([...s,u],d,l))})}o(e)},QS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _u(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},a={},s={},l={};return ZS(e,(u,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(u,d))){const y=`--${n?`${n}-`:""}${u.join("-")}`,m=QS(u,d);Object.assign(a,{[y]:m}),og(s,u,`var(${y})`,h),og(l,u,`var(${y}, ${m})`,h)}},u=>u[0]==="vars"),{css:a,vars:s,varsWithDefaults:l}}function eC(e,t={}){const{getSelector:n=P,disableCssColorScheme:o,colorSchemeSelector:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:y,varsWithDefaults:m}=_u(d,t);let b=m;const w={},{[u]:S,...E}=s;if(Object.entries(E||{}).forEach(([k,R])=>{const{vars:$,css:B,varsWithDefaults:M}=_u(R,t);b=sn(b,M),w[k]={css:B,vars:$}}),S){const{css:k,vars:R,varsWithDefaults:$}=_u(S,t);b=sn(b,$),w[u]={css:k,vars:R}}function P(k,R){var B,M;let $=a;if(a==="class"&&($=".%s"),a==="data"&&($="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&($=`[${a}="%s"]`),k){if($==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((M=(B=s[k])==null?void 0:B.palette)==null?void 0:M.mode)||k})`]:{":root":R}};if($)return e.defaultColorScheme===k?`:root, ${$.replace("%s",String(k))}`:$.replace("%s",String(k))}return":root"}return{vars:b,generateThemeVars:()=>{let k={...h};return Object.entries(w).forEach(([,{vars:R}])=>{k=sn(k,R)}),k},generateStyleSheets:()=>{var z,V;const k=[],R=e.defaultColorScheme||"light";function $(_,G){Object.keys(G).length&&k.push(typeof _=="string"?{[_]:{...G}}:_)}$(n(void 0,{...y}),y);const{[R]:B,...M}=w;if(B){const{css:_}=B,G=(V=(z=s[R])==null?void 0:z.palette)==null?void 0:V.mode,re=!o&&G?{colorScheme:G,..._}:{..._};$(n(R,{...re}),re)}return Object.entries(M).forEach(([_,{css:G}])=>{var Q,ee;const re=(ee=(Q=s[_])==null?void 0:Q.palette)==null?void 0:ee.mode,H=!o&&re?{colorScheme:re,...G}:{...G};$(n(_,{...H}),H)}),k}}}function tC(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const As="$$material",na={black:"#000",white:"#fff"},nC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Xo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ko={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ra={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Jo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function ig(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:na.white,default:na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const rC=ig();function ag(){return{text:{primary:na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:na.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const sg=ag();function lg(e,t,n,o){const a=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bu(e.main,a):t==="dark"&&(e.dark=vu(e.main,s)))}function oC(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function iC(e="light"){return e==="dark"?{main:Xo[200],light:Xo[50],dark:Xo[400]}:{main:Xo[500],light:Xo[300],dark:Xo[700]}}function aC(e="light"){return e==="dark"?{main:Ko[500],light:Ko[300],dark:Ko[700]}:{main:Ko[700],light:Ko[400],dark:Ko[800]}}function sC(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function lC(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:Qo[800],light:Qo[500],dark:Qo[900]}}function cC(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:"#ed6c02",light:ra[500],dark:ra[900]}}function Eu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...a}=e,s=e.primary||oC(t),l=e.secondary||iC(t),u=e.error||aC(t),d=e.info||sC(t),h=e.success||lC(t),y=e.warning||cC(t);function m(E){return FS(E,sg.text.primary)>=n?sg.text.primary:rC.text.primary}const b=({color:E,name:P,mainShade:C=500,lightShade:O=300,darkShade:k=700})=>{if(E={...E},!E.main&&E[C]&&(E.main=E[C]),!E.hasOwnProperty("main"))throw new Error($r(11,P?` (${P})`:"",C));if(typeof E.main!="string")throw new Error($r(12,P?` (${P})`:"",JSON.stringify(E.main)));return lg(E,"light",O,o),lg(E,"dark",k,o),E.contrastText||(E.contrastText=m(E.main)),E};let w;return t==="light"?w=ig():t==="dark"&&(w=ag()),sn({common:{...na},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:nC,contrastThreshold:n,getContrastText:m,augmentColor:b,tonalOffset:o,...w},a)}function uC(e){const t={};return Object.entries(e).forEach(o=>{const[a,s]=o;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function dC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function fC(e){return Math.round(e*1e5)/1e5}const cg={textTransform:"uppercase"},ug='"Roboto", "Helvetica", "Arial", sans-serif';function pC(e,t){const{fontFamily:n=ug,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:y,...m}=typeof t=="function"?t(e):t,b=o/14,w=y||(P=>`${P/d*b}rem`),S=(P,C,O,k,R)=>({fontFamily:n,fontWeight:P,fontSize:w(C),lineHeight:O,...n===ug?{letterSpacing:`${fC(k/C)}em`}:{},...R,...h}),E={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(l,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(l,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(l,14,1.75,.4,cg),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,cg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:u,...E},m,{clone:!1})}const hC=.2,gC=.14,mC=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mC})`].join(",")}const yC=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],vC={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dg(e){return`${Math.round(e)}ms`}function xC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function wC(e){const t={...vC,...e.easing},n={...bC,...e.duration};return{getAutoHeightDuration:xC,create:(a=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:d=0,...h}=s;return(Array.isArray(a)?a:[a]).map(y=>`${y} ${typeof l=="string"?l:dg(l)} ${u} ${typeof d=="string"?d:dg(d)}`).join(",")},...e,easing:t,duration:n}}const SC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function CC(e){return vr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fg(e={}){const t={...e};function n(o){const a=Object.entries(o);for(let s=0;s<a.length;s++){const[l,u]=a[s];!CC(u)||l.startsWith("unstable_")?delete o[l]:vr(u)&&(o[l]={...u},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
34
|
+
*/function Eh(e,t){return su(e,t)}function Cw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Rh=[];function Ih(e){return Rh[0]=e,Yi(Rh)}function vr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kh(e){if(j.isValidElement(e)||!vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=kh(e[n])}),t}function sn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return vr(e)&&vr(t)&&Object.keys(t).forEach(a=>{j.isValidElement(t[a])?o[a]=t[a]:vr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&vr(e[a])?o[a]=sn(e[a],t[a],n):n.clone?o[a]=vr(t[a])?kh(t[a]):t[a]:o[a]=t[a]}),o}const _w=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Ew(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...a}=e,s=_w(t),l=Object.keys(s);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-o/100}${n})`}function h(b,w){const _=l.indexOf(w);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(_!==-1&&typeof t[l[_]]=="number"?t[l[_]]:w)-o/100}${n})`}function y(b){return l.indexOf(b)+1<l.length?h(b,l[l.indexOf(b)+1]):u(b)}function m(b){const w=l.indexOf(b);return w===0?u(l[1]):w===l.length-1?d(l[w]):h(b,l[l.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:u,down:d,between:h,only:y,not:m,unit:n,...a}}function Rw(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,a)=>{var l,u;const s=/min-width:\s*([0-9.]+)/;return+(((l=o.match(s))==null?void 0:l[1])||0)-+(((u=a.match(s))==null?void 0:u[1])||0)});return n.length?n.reduce((o,a)=>{const s=t[a];return delete o[a],o[a]=s,o},{...t}):t}function Iw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function kw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,a]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(s)}function Tw(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...u)=>t(e.breakpoints.up(...u),l),s.down=(...u)=>t(e.breakpoints.down(...u),l),s.between=(...u)=>t(e.breakpoints.between(...u),l),s.only=(...u)=>t(e.breakpoints.only(...u),l),s.not=(...u)=>{const d=t(e.breakpoints.not(...u),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},a=s=>(n(o,s),o);return n(a),{...e,containerQueries:a}}const Pw={borderRadius:4};function Ki(e,t){return t?sn(e,t,{clone:!1}):e}const vs={xs:0,sm:600,md:900,lg:1200,xl:1536},Th={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vs[e]}px)`},Ow={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:vs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Th;return t.reduce((l,u,d)=>(l[s.up(s.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const s=o.breakpoints||Th;return Object.keys(t).reduce((l,u)=>{if(Iw(s.keys,u)){const d=kw(o.containerQueries?o:Ow,u);d&&(l[d]=n(t[u],u))}else if(Object.keys(s.values||vs).includes(u)){const d=s.up(u);l[d]=n(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return n(t)}function Aw(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,a)=>{const s=e.up(a);return o[s]={},o},{}))||{}}function Mw(e,t){return e.reduce((n,o)=>{const a=n[o];return(!a||Object.keys(a).length===0)&&delete n[o],n},t)}function je(e){if(typeof e!="string")throw new Error($r(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function xs(e,t,n,o=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||o:a=bs(e,n)||o,t&&(a=t(a,o,e)),a}function jt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:a}=e,s=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,h=bs(d,o)||{};return Dr(l,u,m=>{let b=xs(h,a,m);return m===b&&typeof m=="string"&&(b=xs(h,a,`${t}${m==="default"?"":je(m)}`,m)),n===!1?b:{[n]:b}})};return s.propTypes={},s.filterProps=[t],s}function $w(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Dw={m:"margin",p:"padding"},Bw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ph={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lw=$w(e=>{if(e.length>2)if(Ph[e])e=Ph[e];else return[e];const[t,n]=e.split(""),o=Dw[t],a=Bw[n]||"";return Array.isArray(a)?a.map(s=>o+s):[o+a]}),lu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lu,...cu];function Ji(e,t,n,o){const a=bs(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),u=a[l];return s>=0?u:typeof u=="number"?-u:`-${u}`}:typeof a=="function"?a:()=>{}}function uu(e){return Ji(e,"spacing",8)}function Zi(e,t){return typeof t=="string"||t==null?t:e(t)}function jw(e,t){return n=>e.reduce((o,a)=>(o[a]=Zi(t,n),o),{})}function Nw(e,t,n,o){if(!t.includes(n))return null;const a=Lw(n),s=jw(a,o),l=e[n];return Dr(e,l,s)}function Oh(e,t){const n=uu(e.theme);return Object.keys(e).map(o=>Nw(e,t,o,n)).reduce(Ki,{})}function Mt(e){return Oh(e,lu)}Mt.propTypes={},Mt.filterProps=lu;function $t(e){return Oh(e,cu)}$t.propTypes={},$t.filterProps=cu;function Ah(e=8,t=uu({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function ws(...e){const t=e.reduce((o,a)=>(a.filterProps.forEach(s=>{o[s]=a}),o),{}),n=o=>Object.keys(o).reduce((a,s)=>t[s]?Ki(a,t[s](o)):a,{});return n.propTypes={},n.filterProps=e.reduce((o,a)=>o.concat(a.filterProps),[]),n}function zn(e){return typeof e!="number"?e:`${e}px solid`}function Wn(e,t){return jt({prop:e,themeKey:"borders",transform:t})}const Fw=Wn("border",zn),zw=Wn("borderTop",zn),Ww=Wn("borderRight",zn),Uw=Wn("borderBottom",zn),Hw=Wn("borderLeft",zn),Gw=Wn("borderColor"),qw=Wn("borderTopColor"),Vw=Wn("borderRightColor"),Yw=Wn("borderBottomColor"),Xw=Wn("borderLeftColor"),Kw=Wn("outline",zn),Jw=Wn("outlineColor"),Ss=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ji(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Zi(t,o)});return Dr(e,e.borderRadius,n)}return null};Ss.propTypes={},Ss.filterProps=["borderRadius"],ws(Fw,zw,Ww,Uw,Hw,Gw,qw,Vw,Yw,Xw,Ss,Kw,Jw);const Cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({gap:Zi(t,o)});return Dr(e,e.gap,n)}return null};Cs.propTypes={},Cs.filterProps=["gap"];const _s=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({columnGap:Zi(t,o)});return Dr(e,e.columnGap,n)}return null};_s.propTypes={},_s.filterProps=["columnGap"];const Es=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({rowGap:Zi(t,o)});return Dr(e,e.rowGap,n)}return null};Es.propTypes={},Es.filterProps=["rowGap"];const Zw=jt({prop:"gridColumn"}),Qw=jt({prop:"gridRow"}),eS=jt({prop:"gridAutoFlow"}),tS=jt({prop:"gridAutoColumns"}),nS=jt({prop:"gridAutoRows"}),rS=jt({prop:"gridTemplateColumns"}),oS=jt({prop:"gridTemplateRows"}),iS=jt({prop:"gridTemplateAreas"}),aS=jt({prop:"gridArea"});ws(Cs,_s,Es,Zw,Qw,eS,tS,nS,rS,oS,iS,aS);function Yo(e,t){return t==="grey"?t:e}const sS=jt({prop:"color",themeKey:"palette",transform:Yo}),lS=jt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),cS=jt({prop:"backgroundColor",themeKey:"palette",transform:Yo});ws(sS,lS,cS);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const uS=jt({prop:"width",transform:Pn}),du=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,s,l,u,d;const o=((l=(s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.values)==null?void 0:l[n])||vs[n];return o?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Pn(n)}};return Dr(e,e.maxWidth,t)}return null};du.filterProps=["maxWidth"];const dS=jt({prop:"minWidth",transform:Pn}),fS=jt({prop:"height",transform:Pn}),pS=jt({prop:"maxHeight",transform:Pn}),hS=jt({prop:"minHeight",transform:Pn});jt({prop:"size",cssProperty:"width",transform:Pn}),jt({prop:"size",cssProperty:"height",transform:Pn});const gS=jt({prop:"boxSizing"});ws(uS,du,dS,fS,pS,hS,gS);const Qi={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ss},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:$t},pt:{style:$t},pr:{style:$t},pb:{style:$t},pl:{style:$t},px:{style:$t},py:{style:$t},padding:{style:$t},paddingTop:{style:$t},paddingRight:{style:$t},paddingBottom:{style:$t},paddingLeft:{style:$t},paddingX:{style:$t},paddingY:{style:$t},paddingInline:{style:$t},paddingInlineStart:{style:$t},paddingInlineEnd:{style:$t},paddingBlock:{style:$t},paddingBlockStart:{style:$t},paddingBlockEnd:{style:$t},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Cs},rowGap:{style:Es},columnGap:{style:_s},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:du},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mS(...e){const t=e.reduce((o,a)=>o.concat(Object.keys(a)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function yS(e,t){return typeof e=="function"?e(t):e}function vS(){function e(n,o,a,s){const l={[n]:o,theme:a},u=s[n];if(!u)return{[n]:o};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=u;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[n]:o};const b=bs(a,h)||{};return m?m(l):Dr(l,o,_=>{let E=xs(b,y,_);return _===E&&typeof _=="string"&&(E=xs(b,y,`${n}${_==="default"?"":je(_)}`,_)),d===!1?E:{[d]:E}})}function t(n){const{sx:o,theme:a={}}=n||{};if(!o)return null;const s=a.unstable_sxConfig??Qi;function l(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const h=Aw(a.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(b=>{const w=yS(d[b],a);if(w!=null)if(typeof w=="object")if(s[b])m=Ki(m,e(b,w,a,s));else{const _=Dr({theme:a},w,E=>({[b]:E}));mS(_,w)?m[b]=t({sx:w,theme:a}):m=Ki(m,_)}else m=Ki(m,e(b,w,a,s))}),Rw(a,Mw(y,m))}return Array.isArray(o)?o.map(l):l(o)}return t}const vo=vS();vo.filterProps=["sx"];function bS(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function fu(e={},...t){const{breakpoints:n={},palette:o={},spacing:a,shape:s={},...l}=e,u=Ew(n),d=Ah(a);let h=sn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...Pw,...s}},l);return h=Tw(h),h.applyStyles=bS,h=t.reduce((y,m)=>sn(y,m),h),h.unstable_sxConfig={...Qi,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return vo({sx:m,theme:this})},h}function xS(e){return Object.keys(e).length===0}function wS(e=null){const t=j.useContext(ys);return!t||xS(t)?e:t}const SS=fu();function pu(e=SS){return wS(e)}function CS({styles:e,themeId:t,defaultTheme:n={}}){const o=pu(n),a=typeof e=="function"?e(t&&o[t]||o):e;return v.jsx(Sw,{styles:a})}const _S=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Qi;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function Mh(e){const{sx:t,...n}=e,{systemProps:o,otherProps:a}=_S(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return vr(u)?{...o,...u}:o}:s={...o,...t},{...a,sx:s}}const $h=e=>e,Dh=(()=>{let e=$h;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$h}}})();function Bh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Bh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Te(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Bh(e))&&(o&&(o+=" "),o+=t);return o}const ES=Object.freeze(Object.defineProperty({__proto__:null,clsx:Te,default:Te},Symbol.toStringTag,{value:"Module"}));function RS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,s=Eh("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(vo);return j.forwardRef(function(d,h){const y=pu(n),{className:m,component:b="div",...w}=Mh(d);return v.jsx(s,{as:b,ref:h,className:Te(m,a?a(o):o),theme:t&&y[t]||y,...w})})}const IS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function lt(e,t,n="Mui"){const o=IS[t];return o?`${n}-${o}`:`${Dh.generate(e)}-${t}`}function it(e,t,n="Mui"){const o={};return t.forEach(a=>{o[a]=lt(e,a,n)}),o}function Lh(e){const{variants:t,...n}=e,o={variants:t,style:Ih(n),isProcessed:!0};return o.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Ih(a.style))}),o}const kS=fu();function hu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TS(e){return e?(t,n)=>n[e]:null}function PS(e,t,n){e.theme=AS(e.theme)?n:e.theme[t]||e.theme}function Rs(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Rs(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:a,...s}=n;o=s}return jh(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function jh(e,t,n=[]){var a;let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((a=e.ownerState)==null?void 0:a[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(o))):n.push(l.style)}return n}function Nh(e={}){const{themeId:t,defaultTheme:n=kS,rootShouldForwardProp:o=hu,slotShouldForwardProp:a=hu}=e;function s(u){PS(u,t,n)}return(u,d={})=>{Cw(u,M=>M.filter(B=>B!==vo));const{name:h,slot:y,skipVariantsResolver:m,skipSx:b,overridesResolver:w=TS($S(y)),..._}=d,E=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,P=b||!1;let S=hu;y==="Root"||y==="root"?S=o:y?S=a:MS(u)&&(S=void 0);const O=Eh(u,{shouldForwardProp:S,label:OS(),..._}),k=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(D){return Rs(D,M)};if(vr(M)){const B=Lh(M);return B.variants?function(V){return Rs(V,B)}:B.style}return M},I=(...M)=>{const B=[],D=M.map(k),V=[];if(B.push(s),h&&w&&V.push(function(Z){var se,de;const K=(de=(se=Z.theme.components)==null?void 0:se[h])==null?void 0:de.styleOverrides;if(!K)return null;const te={};for(const he in K)te[he]=Rs(Z,K[he]);return w(Z,te)}),h&&!E&&V.push(function(Z){var te,se;const H=Z.theme,K=(se=(te=H==null?void 0:H.components)==null?void 0:te[h])==null?void 0:se.variants;return K?jh(Z,K):null}),P||V.push(vo),Array.isArray(D[0])){const G=D.shift(),Z=new Array(B.length).fill(""),H=new Array(V.length).fill("");let K;K=[...Z,...G,...H],K.raw=[...Z,...G.raw,...H],B.unshift(K)}const U=[...B,...D,...V],C=O(...U);return u.muiName&&(C.muiName=u.muiName),C};return O.withConfig&&(I.withConfig=O.withConfig),I}}function OS(e,t){return void 0}function AS(e){for(const t in e)return!1;return!0}function MS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $S(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const DS=Nh();function Is(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)n[a]=s||{};else if(!s)n[a]=l;else{n[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;n[a][d]=Is(s[d],l[d])}}}else n[a]===void 0&&(n[a]=e[a])}return n}const br=typeof window<"u"?j.useLayoutEffect:j.useEffect;function BS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function gu(e,t=0,n=1){return BS(e,t,n)}function LS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,a)=>a<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(LS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($r(9,e));let o=e.substring(t+1,e.length-1),a;if(n==="color"){if(o=o.split(" "),a=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error($r(10,a))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:a}}const jS=e=>{const t=Qr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ea=(e,t)=>{try{return jS(e)}catch{return e}};function ks(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Fh(e){e=Qr(e);const{values:t}=e,n=t[0],o=t[1]/100,a=t[2]/100,s=o*Math.min(a,1-a),l=(h,y=(h+n/30)%12)=>a-s*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),ks({type:u,values:d})}function mu(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(Fh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function NS(e,t){const n=mu(e),o=mu(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Gt(e,t){return e=Qr(e),t=gu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ks(e)}function Ts(e,t,n){try{return Gt(e,t)}catch{return e}}function yu(e,t){if(e=Qr(e),t=gu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ks(e)}function wt(e,t,n){try{return yu(e,t)}catch{return e}}function vu(e,t){if(e=Qr(e),t=gu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ks(e)}function St(e,t,n){try{return vu(e,t)}catch{return e}}function FS(e,t=.15){return mu(e)>.5?yu(e,t):vu(e,t)}function Ps(e,t,n){try{return FS(e,t)}catch{return e}}function zh(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function Os(e,t=166){let n;function o(...a){const s=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function bu(e,t){var n,o,a;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:a.muiName))!==-1}function Un(e){return e&&e.ownerDocument||document}function or(e){return Un(e).defaultView||window}function xu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Wh=0;function zS(e){const[t,n]=j.useState(e),o=e||t;return j.useEffect(()=>{t==null&&(Wh+=1,n(`mui-${Wh}`))},[t]),o}const Uh={...j}.useId;function Hh(e){if(Uh!==void 0){const t=Uh();return e??t}return zS(e)}function Gh({controlled:e,default:t,name:n,state:o="value"}){const{current:a}=j.useRef(e!==void 0),[s,l]=j.useState(t),u=a?e:s,d=j.useCallback(h=>{a||l(h)},[]);return[u,d]}function Br(e){const t=j.useRef(e);return br(()=>{t.current=e}),j.useRef((...n)=>(0,t.current)(...n)).current}function Xt(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xu(n,t)})},e)}const qh={};function Vh(e,t){const n=j.useRef(qh);return n.current===qh&&(n.current=e(t)),n}const WS=[];function US(e){j.useEffect(e,WS)}class wu{constructor(){Ar(this,"currentId",null);Ar(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ar(this,"disposeEffect",()=>this.clear)}static create(){return new wu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Yh(){const e=Vh(wu.create).current;return US(e.disposeEffect),e}function Xh(e){try{return e.matches(":focus-visible")}catch{}return!1}function Kh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ft(e,t,n=void 0){const o={};for(const a in e){const s=e[a];let l="",u=!0;for(let d=0;d<s.length;d+=1){const h=s[d];h&&(l+=(u===!0?"":" ")+t(h),u=!1,n&&n[h]&&(l+=" "+n[h]))}o[a]=l}return o}function HS(e){return typeof e=="string"}function Jh(e,t,n){return e===void 0||HS(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Qh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function eg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:s}=e;if(!t){const w=Te(n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),_={...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},E={...n,...a,...o};return w.length>0&&(E.className=w),Object.keys(_).length>0&&(E.style=_),{props:E,internalRef:void 0}}const l=Zh({...a,...o}),u=Qh(o),d=Qh(a),h=t(l),y=Te(h==null?void 0:h.className,n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...o==null?void 0:o.style},b={...h,...n,...d,...u};return y.length>0&&(b.className=y),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:h.ref}}function tg(e,t,n){return typeof e=="function"?e(t,n):e}function Xo(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1,...s}=e,l=a?{}:tg(n,o),{props:u,internalRef:d}=eg({...s,externalSlotProps:l}),h=Xt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return Jh(t,{...u,ref:h},o)}function ta(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const GS=j.createContext(),Su=()=>j.useContext(GS)??!1,qS=j.createContext(void 0);function VS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const a=t.components[n];return a.defaultProps?Is(a.defaultProps,o):!a.styleOverrides&&!a.variants?Is(a,o):o}function YS({props:e,name:t}){const n=j.useContext(qS);return VS({props:e,name:t,theme:{components:n}})}const ng={theme:void 0};function XS(e){let t,n;return function(a){let s=t;return(s===void 0||a.theme!==n)&&(ng.theme=a.theme,s=Lh(e(ng)),t=s,n=a.theme),s}}function KS(e=""){function t(...o){if(!o.length)return"";const a=o[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...o.slice(1))})`:`, ${a}`}return(o,...a)=>`var(--${e?`${e}-`:""}${o}${t(...a)})`}const rg=(e,t,n,o=[])=>{let a=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=o.includes(s)?[]:{}),a=a[s])})},JS=(e,t,n)=>{function o(a,s=[],l=[]){Object.entries(a).forEach(([u,d])=>{(!n||n&&!n([...s,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...s,u],Array.isArray(d)?[...l,u]:l):t([...s,u],d,l))})}o(e)},ZS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Cu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},a={},s={},l={};return JS(e,(u,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(u,d))){const y=`--${n?`${n}-`:""}${u.join("-")}`,m=ZS(u,d);Object.assign(a,{[y]:m}),rg(s,u,`var(${y})`,h),rg(l,u,`var(${y}, ${m})`,h)}},u=>u[0]==="vars"),{css:a,vars:s,varsWithDefaults:l}}function QS(e,t={}){const{getSelector:n=P,disableCssColorScheme:o,colorSchemeSelector:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:y,varsWithDefaults:m}=Cu(d,t);let b=m;const w={},{[u]:_,...E}=s;if(Object.entries(E||{}).forEach(([k,I])=>{const{vars:M,css:B,varsWithDefaults:D}=Cu(I,t);b=sn(b,D),w[k]={css:B,vars:M}}),_){const{css:k,vars:I,varsWithDefaults:M}=Cu(_,t);b=sn(b,M),w[u]={css:k,vars:I}}function P(k,I){var B,D;let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),k){if(M==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((D=(B=s[k])==null?void 0:B.palette)==null?void 0:D.mode)||k})`]:{":root":I}};if(M)return e.defaultColorScheme===k?`:root, ${M.replace("%s",String(k))}`:M.replace("%s",String(k))}return":root"}return{vars:b,generateThemeVars:()=>{let k={...h};return Object.entries(w).forEach(([,{vars:I}])=>{k=sn(k,I)}),k},generateStyleSheets:()=>{var V,U;const k=[],I=e.defaultColorScheme||"light";function M(C,G){Object.keys(G).length&&k.push(typeof C=="string"?{[C]:{...G}}:C)}M(n(void 0,{...y}),y);const{[I]:B,...D}=w;if(B){const{css:C}=B,G=(U=(V=s[I])==null?void 0:V.palette)==null?void 0:U.mode,Z=!o&&G?{colorScheme:G,...C}:{...C};M(n(I,{...Z}),Z)}return Object.entries(D).forEach(([C,{css:G}])=>{var K,te;const Z=(te=(K=s[C])==null?void 0:K.palette)==null?void 0:te.mode,H=!o&&Z?{colorScheme:Z,...G}:{...G};M(n(C,{...H}),H)}),k}}}function eC(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const As="$$material",na={black:"#000",white:"#fff"},tC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ko={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ra={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Zo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ei={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function og(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:na.white,default:na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const nC=og();function ig(){return{text:{primary:na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:na.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ag=ig();function sg(e,t,n,o){const a=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=vu(e.main,a):t==="dark"&&(e.dark=yu(e.main,s)))}function rC(e="light"){return e==="dark"?{main:Zo[200],light:Zo[50],dark:Zo[400]}:{main:Zo[700],light:Zo[400],dark:Zo[800]}}function oC(e="light"){return e==="dark"?{main:Ko[200],light:Ko[50],dark:Ko[400]}:{main:Ko[500],light:Ko[300],dark:Ko[700]}}function iC(e="light"){return e==="dark"?{main:Jo[500],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function aC(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:Qo[700],light:Qo[500],dark:Qo[900]}}function sC(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function lC(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:"#ed6c02",light:ra[500],dark:ra[900]}}function _u(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...a}=e,s=e.primary||rC(t),l=e.secondary||oC(t),u=e.error||iC(t),d=e.info||aC(t),h=e.success||sC(t),y=e.warning||lC(t);function m(E){return NS(E,ag.text.primary)>=n?ag.text.primary:nC.text.primary}const b=({color:E,name:P,mainShade:S=500,lightShade:O=300,darkShade:k=700})=>{if(E={...E},!E.main&&E[S]&&(E.main=E[S]),!E.hasOwnProperty("main"))throw new Error($r(11,P?` (${P})`:"",S));if(typeof E.main!="string")throw new Error($r(12,P?` (${P})`:"",JSON.stringify(E.main)));return sg(E,"light",O,o),sg(E,"dark",k,o),E.contrastText||(E.contrastText=m(E.main)),E};let w;return t==="light"?w=og():t==="dark"&&(w=ig()),sn({common:{...na},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:tC,contrastThreshold:n,getContrastText:m,augmentColor:b,tonalOffset:o,...w},a)}function cC(e){const t={};return Object.entries(e).forEach(o=>{const[a,s]=o;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function uC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function dC(e){return Math.round(e*1e5)/1e5}const lg={textTransform:"uppercase"},cg='"Roboto", "Helvetica", "Arial", sans-serif';function fC(e,t){const{fontFamily:n=cg,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:y,...m}=typeof t=="function"?t(e):t,b=o/14,w=y||(P=>`${P/d*b}rem`),_=(P,S,O,k,I)=>({fontFamily:n,fontWeight:P,fontSize:w(S),lineHeight:O,...n===cg?{letterSpacing:`${dC(k/S)}em`}:{},...I,...h}),E={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(s,48,1.167,0),h4:_(s,34,1.235,.25),h5:_(s,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(s,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(s,16,1.5,.15),body2:_(s,14,1.43,.15),button:_(l,14,1.75,.4,lg),caption:_(s,12,1.66,.4),overline:_(s,12,2.66,1,lg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:u,...E},m,{clone:!1})}const pC=.2,hC=.14,gC=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${hC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gC})`].join(",")}const mC=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],yC={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ug(e){return`${Math.round(e)}ms`}function bC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function xC(e){const t={...yC,...e.easing},n={...vC,...e.duration};return{getAutoHeightDuration:bC,create:(a=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:d=0,...h}=s;return(Array.isArray(a)?a:[a]).map(y=>`${y} ${typeof l=="string"?l:ug(l)} ${u} ${typeof d=="string"?d:ug(d)}`).join(",")},...e,easing:t,duration:n}}const wC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function SC(e){return vr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function dg(e={}){const t={...e};function n(o){const a=Object.entries(o);for(let s=0;s<a.length;s++){const[l,u]=a[s];!SC(u)||l.startsWith("unstable_")?delete o[l]:vr(u)&&(o[l]={...u},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
35
35
|
|
|
36
36
|
const theme = ${JSON.stringify(t,null,2)};
|
|
37
37
|
|
|
38
38
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
39
39
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
40
40
|
|
|
41
|
-
export default theme;`}function
|
|
42
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function PC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const xr=e=>{try{return e()}catch{}},OC=(e="mui")=>JS(e);function ku(e,t,n,o){if(!t)return;t=t===!0?{}:t;const a=o==="dark"?"dark":"light";if(!n){e[o]=EC({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:s,...l}=Ru({...n,palette:{mode:a,...t==null?void 0:t.palette}});return e[o]={...t,palette:s,opacity:{...pg(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||hg(a)},l}function AC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=RC,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=o||(n.light&&y!=="light"?"light":y),b=OC(s),{[m]:w,light:S,dark:E,...P}=n,C={...P};let O=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(O=!0),!O)throw new Error($r(21,m));const k=ku(C,O,h,m);S&&!C.light&&ku(C,S,void 0,"light"),E&&!C.dark&&ku(C,E,void 0,"dark");let R={defaultColorScheme:m,...k,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:d,getCssVar:b,colorSchemes:C,font:{...uC(k.typography),...k.font},spacing:PC(h.spacing)};Object.keys(R.colorSchemes).forEach(V=>{const _=R.colorSchemes[V].palette,G=re=>{const H=re.split("-"),Q=H[1],ee=H[2];return b(re,_[Q][ee])};if(_.mode==="light"&&(K(_.common,"background","#fff"),K(_.common,"onBackground","#000")),_.mode==="dark"&&(K(_.common,"background","#000"),K(_.common,"onBackground","#fff")),TC(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){K(_.Alert,"errorColor",wt(_.error.light,.6)),K(_.Alert,"infoColor",wt(_.info.light,.6)),K(_.Alert,"successColor",wt(_.success.light,.6)),K(_.Alert,"warningColor",wt(_.warning.light,.6)),K(_.Alert,"errorFilledBg",G("palette-error-main")),K(_.Alert,"infoFilledBg",G("palette-info-main")),K(_.Alert,"successFilledBg",G("palette-success-main")),K(_.Alert,"warningFilledBg",G("palette-warning-main")),K(_.Alert,"errorFilledColor",xr(()=>_.getContrastText(_.error.main))),K(_.Alert,"infoFilledColor",xr(()=>_.getContrastText(_.info.main))),K(_.Alert,"successFilledColor",xr(()=>_.getContrastText(_.success.main))),K(_.Alert,"warningFilledColor",xr(()=>_.getContrastText(_.warning.main))),K(_.Alert,"errorStandardBg",St(_.error.light,.9)),K(_.Alert,"infoStandardBg",St(_.info.light,.9)),K(_.Alert,"successStandardBg",St(_.success.light,.9)),K(_.Alert,"warningStandardBg",St(_.warning.light,.9)),K(_.Alert,"errorIconColor",G("palette-error-main")),K(_.Alert,"infoIconColor",G("palette-info-main")),K(_.Alert,"successIconColor",G("palette-success-main")),K(_.Alert,"warningIconColor",G("palette-warning-main")),K(_.AppBar,"defaultBg",G("palette-grey-100")),K(_.Avatar,"defaultBg",G("palette-grey-400")),K(_.Button,"inheritContainedBg",G("palette-grey-300")),K(_.Button,"inheritContainedHoverBg",G("palette-grey-A100")),K(_.Chip,"defaultBorder",G("palette-grey-400")),K(_.Chip,"defaultAvatarColor",G("palette-grey-700")),K(_.Chip,"defaultIconColor",G("palette-grey-700")),K(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(_.LinearProgress,"primaryBg",St(_.primary.main,.62)),K(_.LinearProgress,"secondaryBg",St(_.secondary.main,.62)),K(_.LinearProgress,"errorBg",St(_.error.main,.62)),K(_.LinearProgress,"infoBg",St(_.info.main,.62)),K(_.LinearProgress,"successBg",St(_.success.main,.62)),K(_.LinearProgress,"warningBg",St(_.warning.main,.62)),K(_.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),K(_.Slider,"primaryTrack",St(_.primary.main,.62)),K(_.Slider,"secondaryTrack",St(_.secondary.main,.62)),K(_.Slider,"errorTrack",St(_.error.main,.62)),K(_.Slider,"infoTrack",St(_.info.main,.62)),K(_.Slider,"successTrack",St(_.success.main,.62)),K(_.Slider,"warningTrack",St(_.warning.main,.62));const re=Ps(_.background.default,.8);K(_.SnackbarContent,"bg",re),K(_.SnackbarContent,"color",xr(()=>_.getContrastText(re))),K(_.SpeedDialAction,"fabHoverBg",Ps(_.background.paper,.15)),K(_.StepConnector,"border",G("palette-grey-400")),K(_.StepContent,"border",G("palette-grey-400")),K(_.Switch,"defaultColor",G("palette-common-white")),K(_.Switch,"defaultDisabledColor",G("palette-grey-100")),K(_.Switch,"primaryDisabledColor",St(_.primary.main,.62)),K(_.Switch,"secondaryDisabledColor",St(_.secondary.main,.62)),K(_.Switch,"errorDisabledColor",St(_.error.main,.62)),K(_.Switch,"infoDisabledColor",St(_.info.main,.62)),K(_.Switch,"successDisabledColor",St(_.success.main,.62)),K(_.Switch,"warningDisabledColor",St(_.warning.main,.62)),K(_.TableCell,"border",St(Ts(_.divider,1),.88)),K(_.Tooltip,"bg",Ts(_.grey[700],.92))}if(_.mode==="dark"){K(_.Alert,"errorColor",St(_.error.light,.6)),K(_.Alert,"infoColor",St(_.info.light,.6)),K(_.Alert,"successColor",St(_.success.light,.6)),K(_.Alert,"warningColor",St(_.warning.light,.6)),K(_.Alert,"errorFilledBg",G("palette-error-dark")),K(_.Alert,"infoFilledBg",G("palette-info-dark")),K(_.Alert,"successFilledBg",G("palette-success-dark")),K(_.Alert,"warningFilledBg",G("palette-warning-dark")),K(_.Alert,"errorFilledColor",xr(()=>_.getContrastText(_.error.dark))),K(_.Alert,"infoFilledColor",xr(()=>_.getContrastText(_.info.dark))),K(_.Alert,"successFilledColor",xr(()=>_.getContrastText(_.success.dark))),K(_.Alert,"warningFilledColor",xr(()=>_.getContrastText(_.warning.dark))),K(_.Alert,"errorStandardBg",wt(_.error.light,.9)),K(_.Alert,"infoStandardBg",wt(_.info.light,.9)),K(_.Alert,"successStandardBg",wt(_.success.light,.9)),K(_.Alert,"warningStandardBg",wt(_.warning.light,.9)),K(_.Alert,"errorIconColor",G("palette-error-main")),K(_.Alert,"infoIconColor",G("palette-info-main")),K(_.Alert,"successIconColor",G("palette-success-main")),K(_.Alert,"warningIconColor",G("palette-warning-main")),K(_.AppBar,"defaultBg",G("palette-grey-900")),K(_.AppBar,"darkBg",G("palette-background-paper")),K(_.AppBar,"darkColor",G("palette-text-primary")),K(_.Avatar,"defaultBg",G("palette-grey-600")),K(_.Button,"inheritContainedBg",G("palette-grey-800")),K(_.Button,"inheritContainedHoverBg",G("palette-grey-700")),K(_.Chip,"defaultBorder",G("palette-grey-700")),K(_.Chip,"defaultAvatarColor",G("palette-grey-300")),K(_.Chip,"defaultIconColor",G("palette-grey-300")),K(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(_.LinearProgress,"primaryBg",wt(_.primary.main,.5)),K(_.LinearProgress,"secondaryBg",wt(_.secondary.main,.5)),K(_.LinearProgress,"errorBg",wt(_.error.main,.5)),K(_.LinearProgress,"infoBg",wt(_.info.main,.5)),K(_.LinearProgress,"successBg",wt(_.success.main,.5)),K(_.LinearProgress,"warningBg",wt(_.warning.main,.5)),K(_.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),K(_.Slider,"primaryTrack",wt(_.primary.main,.5)),K(_.Slider,"secondaryTrack",wt(_.secondary.main,.5)),K(_.Slider,"errorTrack",wt(_.error.main,.5)),K(_.Slider,"infoTrack",wt(_.info.main,.5)),K(_.Slider,"successTrack",wt(_.success.main,.5)),K(_.Slider,"warningTrack",wt(_.warning.main,.5));const re=Ps(_.background.default,.98);K(_.SnackbarContent,"bg",re),K(_.SnackbarContent,"color",xr(()=>_.getContrastText(re))),K(_.SpeedDialAction,"fabHoverBg",Ps(_.background.paper,.15)),K(_.StepConnector,"border",G("palette-grey-600")),K(_.StepContent,"border",G("palette-grey-600")),K(_.Switch,"defaultColor",G("palette-grey-300")),K(_.Switch,"defaultDisabledColor",G("palette-grey-600")),K(_.Switch,"primaryDisabledColor",wt(_.primary.main,.55)),K(_.Switch,"secondaryDisabledColor",wt(_.secondary.main,.55)),K(_.Switch,"errorDisabledColor",wt(_.error.main,.55)),K(_.Switch,"infoDisabledColor",wt(_.info.main,.55)),K(_.Switch,"successDisabledColor",wt(_.success.main,.55)),K(_.Switch,"warningDisabledColor",wt(_.warning.main,.55)),K(_.TableCell,"border",wt(Ts(_.divider,1),.68)),K(_.Tooltip,"bg",Ts(_.grey[700],.92))}Lr(_.background,"default"),Lr(_.background,"paper"),Lr(_.common,"background"),Lr(_.common,"onBackground"),Lr(_,"divider"),Object.keys(_).forEach(re=>{const H=_[re];re!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&K(_[re],"mainChannel",ea(oa(H.main))),H.light&&K(_[re],"lightChannel",ea(oa(H.light))),H.dark&&K(_[re],"darkChannel",ea(oa(H.dark))),H.contrastText&&K(_[re],"contrastTextChannel",ea(oa(H.contrastText))),re==="text"&&(Lr(_[re],"primary"),Lr(_[re],"secondary")),re==="action"&&(H.active&&Lr(_[re],"active"),H.selected&&Lr(_[re],"selected")))})}),R=t.reduce((V,_)=>sn(V,_),R);const $={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:kC(R)},{vars:B,generateThemeVars:M,generateStyleSheets:z}=eC(R,$);return R.vars=B,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([V,_])=>{R[V]=_}),R.generateThemeVars=M,R.generateStyleSheets=z,R.generateSpacing=function(){return Mh(h.spacing,du(this))},R.getColorSchemeSelector=tC(u),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...Qi,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(_){return vo({sx:_,theme:this})},R.toRuntimeSource=fg,R}function gg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Eu({...n===!0?{}:n.palette,mode:t})})}function mg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...l}=e,u=s||"light",d=a==null?void 0:a[u],h={...a,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ru(e,...t);let y=n;"palette"in e||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const m=Ru({...e,palette:y},...t);return m.defaultColorScheme=u,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},gg(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},gg(m,"light",h.light)),m}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),AC({...l,colorSchemes:h,defaultColorScheme:u,...typeof o!="boolean"&&o},...t)}const Tu=mg();function Ms(){const e=hu(Tu);return e[As]||e}function yg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>yg(e)&&e!=="classes",Re=Fh({themeId:As,defaultTheme:Tu,rootShouldForwardProp:On}),MC=it("MuiBox",["root"]),$C=mg(),Dt=IS({themeId:As,defaultTheme:$C,defaultClassName:MC.root,generateClassName:Bh.generate});function DC(e){return v.jsx(_S,{...e,defaultTheme:Tu,themeId:As})}function BC(e){return function(n){return v.jsx(DC,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function LC(){return $h}function pt(e){return XS(e)}function $s(e){return parseInt(e,10)||0}const jC={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function NC(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const FC=j.forwardRef(function(t,n){const{onChange:o,maxRows:a,minRows:s=1,style:l,value:u,...d}=t,{current:h}=j.useRef(u!=null),y=j.useRef(null),m=Xt(n,y),b=j.useRef(null),w=j.useRef(null),S=j.useCallback(()=>{const C=y.current,k=or(C).getComputedStyle(C);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const R=w.current;R.style.width=k.width,R.value=C.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
43
|
-
`&&(R.value+=" ");const $=k.boxSizing,B=$s(k.paddingBottom)+$s(k.paddingTop),M=$s(k.borderBottomWidth)+$s(k.borderTopWidth),z=R.scrollHeight;R.value="x";const V=R.scrollHeight;let _=z;s&&(_=Math.max(Number(s)*V,_)),a&&(_=Math.min(Number(a)*V,_)),_=Math.max(_,V);const G=_+($==="border-box"?B+M:0),re=Math.abs(_-z)<=1;return{outerHeightStyle:G,overflowing:re}},[a,s,t.placeholder]),E=j.useCallback(()=>{const C=S();if(NC(C))return;const O=C.outerHeightStyle,k=y.current;b.current!==O&&(b.current=O,k.style.height=`${O}px`),k.style.overflow=C.overflowing?"hidden":""},[S]);br(()=>{const C=()=>{E()};let O;const k=Os(C),R=y.current,$=or(R);$.addEventListener("resize",k);let B;return typeof ResizeObserver<"u"&&(B=new ResizeObserver(C),B.observe(R)),()=>{k.clear(),cancelAnimationFrame(O),$.removeEventListener("resize",k),B&&B.disconnect()}},[S,E]),br(()=>{E()});const P=C=>{h||E(),o&&o(C)};return v.jsxs(j.Fragment,{children:[v.jsx("textarea",{value:u,onChange:P,ref:m,rows:s,style:l,...d}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...jC.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Pu(e){return typeof e=="string"}function ei({props:e,states:t,muiFormControl:n}){return t.reduce((o,a)=>(o[a]=e[a],n&&typeof e[a]>"u"&&(o[a]=n[a]),o),{})}const Ou=j.createContext(void 0);function ti(){return j.useContext(Ou)}const vt=KS;function vg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ds(e,t=!1){return e&&(vg(e.value)&&e.value!==""||t&&vg(e.defaultValue)&&e.defaultValue!=="")}function zC(e){return e.startAdornment}function WC(e){return lt("MuiInputBase",e)}const ni=it("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bg;const Bs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ls=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},UC=e=>{const{classes:t,color:n,disabled:o,error:a,endAdornment:s,focused:l,formControl:u,fullWidth:d,hiddenLabel:h,multiline:y,readOnly:m,size:b,startAdornment:w,type:S}=e,E={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",d&&"fullWidth",l&&"focused",u&&"formControl",b&&b!=="medium"&&`size${je(b)}`,y&&"multiline",w&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",o&&"disabled",S==="search"&&"inputTypeSearch",y&&"inputMultiline",b==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",w&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return ft(E,WC,t)},js=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ni.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ns=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ni.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ni.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),xg=BC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Au=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:l,className:u,color:d,components:h={},componentsProps:y={},defaultValue:m,disabled:b,disableInjectingGlobalStyles:w,endAdornment:S,error:E,fullWidth:P=!1,id:C,inputComponent:O="input",inputProps:k={},inputRef:R,margin:$,maxRows:B,minRows:M,multiline:z=!1,name:V,onBlur:_,onChange:G,onClick:re,onFocus:H,onKeyDown:Q,onKeyUp:ee,placeholder:le,readOnly:pe,renderSuffix:he,rows:be,size:we,slotProps:ue={},slots:Ce={},startAdornment:De,type:Xe="text",value:Ke,...He}=o,gt=k.value!=null?k.value:Ke,{current:se}=j.useRef(gt!=null),de=j.useRef(),ge=j.useCallback(N=>{},[]),me=Xt(de,R,k.ref,ge),[fe,Pe]=j.useState(!1),ve=ti(),Be=ei({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=ve?ve.focused:fe,j.useEffect(()=>{!ve&&b&&fe&&(Pe(!1),_&&_())},[ve,b,fe,_]);const Ge=ve&&ve.onFilled,Ae=ve&&ve.onEmpty,ke=j.useCallback(N=>{Ds(N)?Ge&&Ge():Ae&&Ae()},[Ge,Ae]);br(()=>{se&&ke({value:gt})},[gt,ke,se]);const We=N=>{H&&H(N),k.onFocus&&k.onFocus(N),ve&&ve.onFocus?ve.onFocus(N):Pe(!0)},et=N=>{_&&_(N),k.onBlur&&k.onBlur(N),ve&&ve.onBlur?ve.onBlur(N):Pe(!1)},Le=(N,...q)=>{if(!se){const J=N.target||de.current;if(J==null)throw new Error($r(1));ke({value:J.value})}k.onChange&&k.onChange(N,...q),G&&G(N,...q)};j.useEffect(()=>{ke(de.current)},[]);const xe=N=>{de.current&&N.currentTarget===N.target&&de.current.focus(),re&&re(N)};let ut=O,Ut=k;z&&ut==="input"&&(be?Ut={type:void 0,minRows:be,maxRows:be,...Ut}:Ut={type:void 0,maxRows:B,minRows:M,...Ut},ut=FC);const Ht=N=>{ke(N.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};j.useEffect(()=>{ve&&ve.setAdornedStart(!!De)},[ve,De]);const Yn={...o,color:Be.color||"primary",disabled:Be.disabled,endAdornment:S,error:Be.error,focused:Be.focused,formControl:ve,fullWidth:P,hiddenLabel:Be.hiddenLabel,multiline:z,size:Be.size,startAdornment:De,type:Xe},I=UC(Yn),p=Ce.root||h.Root||js,g=ue.root||y.root||{},D=Ce.input||h.Input||Ns;return Ut={...Ut,...ue.input??y.input},v.jsxs(j.Fragment,{children:[!w&&typeof xg=="function"&&(bg||(bg=v.jsx(xg,{}))),v.jsxs(p,{...g,ref:n,onClick:xe,...He,...!Pu(p)&&{ownerState:{...Yn,...g.ownerState}},className:Te(I.root,g.className,u,pe&&"MuiInputBase-readOnly"),children:[De,v.jsx(Ou.Provider,{value:null,children:v.jsx(D,{"aria-invalid":Be.error,"aria-describedby":a,autoComplete:s,autoFocus:l,defaultValue:m,disabled:Be.disabled,id:C,onAnimationStart:Ht,name:V,placeholder:le,readOnly:pe,required:Be.required,rows:be,value:gt,onKeyDown:Q,onKeyUp:ee,type:Xe,...Ut,...!Pu(D)&&{as:ut,ownerState:{...Yn,...Ut.ownerState}},ref:me,className:Te(I.input,Ut.className,pe&&"MuiInputBase-readOnly"),onBlur:et,onChange:Le,onFocus:We})}),S,he?he({...Be,startAdornment:De}):null]})]})});function HC(e){return typeof e.main=="string"}function GC(e,t=[]){if(!HC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function jr(e=[]){return([,t])=>t&&GC(t,e)}function qC(e){return lt("MuiInput",e)}const ia={...ni,...it("MuiInput",["root","underline","input"])},VC=e=>{const{classes:t,disableUnderline:n}=e,a=ft({root:["root",!n&&"underline"],input:["input"]},qC,t);return{...t,...a}},YC=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ia.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ia.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ia.disabled}, .${ia.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ia.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),XC=Re(Ns,{name:"MuiInput",slot:"Input",overridesResolver:Ls})({}),Fs=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:y,slots:m={},type:b="text",...w}=o,S=VC(o),P={root:{ownerState:{disableUnderline:a}}},C=y??l?sn(y??l,P):P,O=m.root??s.Root??YC,k=m.input??s.Input??XC;return v.jsx(Au,{slots:{root:O,input:k},slotProps:C,fullWidth:u,inputComponent:d,multiline:h,ref:n,type:b,...w,classes:S})});Fs&&(Fs.muiName="Input");function KC(e){return lt("MuiFilledInput",e)}const bo={...ni,...it("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function JC(e){return lt("MuiSvgIcon",e)}it("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZC=e=>{const{color:t,fontSize:n,classes:o}=e,a={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return ft(a,JC,o)},QC=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(vt(({theme:e})=>{var t,n,o,a,s,l,u,d,h,y,m,b,w,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var P,C;return{props:{color:E},style:{color:(C=(P=(e.vars??e).palette)==null?void 0:P[E])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(S=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:S.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),zs=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:b="0 0 24 24",...w}=o,S=j.isValidElement(a)&&a.type==="svg",E={...o,color:l,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:S},P={};y||(P.viewBox=b);const C=ZC(E);return v.jsxs(QC,{as:u,className:Te(C.root,s),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...P,...w,...S&&a.props,ownerState:E,children:[S?a.props.children:a,m?v.jsx("title",{children:m}):null]})});zs&&(zs.muiName="SvgIcon");function pn(e,t){function n(o,a){return v.jsx(zs,{"data-testid":`${t}Icon`,ref:a,...o,children:e})}return n.muiName=zs.muiName,j.memo(j.forwardRef(n))}const e_=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:a,size:s,hiddenLabel:l,multiline:u}=e,d={root:["root",!n&&"underline",o&&"adornedStart",a&&"adornedEnd",s==="small"&&`size${je(s)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},h=ft(d,KC,t);return{...t,...h}},t_=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),n_=Re(Ns,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ws=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:u=!1,hiddenLabel:d,inputComponent:h="input",multiline:y=!1,slotProps:m,slots:b={},type:w="text",...S}=o,E={...o,disableUnderline:a,fullWidth:u,inputComponent:h,multiline:y,type:w},P=e_(o),C={root:{ownerState:E},input:{ownerState:E}},O=m??l?sn(C,m??l):C,k=b.root??s.Root??t_,R=b.input??s.Input??n_;return v.jsx(Au,{slots:{root:k,input:R},slotProps:O,fullWidth:u,inputComponent:h,multiline:y,ref:n,type:w,...S,classes:P})});Ws&&(Ws.muiName="Input");var wg;const r_=Re("fieldset",{shouldForwardProp:On})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),o_=Re("legend",{shouldForwardProp:On})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function i_(e){const{children:t,classes:n,className:o,label:a,notched:s,...l}=e,u=a!=null&&a!=="",d={...e,notched:s,withLabel:u};return v.jsx(r_,{"aria-hidden":!0,className:o,ownerState:d,...l,children:v.jsx(o_,{ownerState:d,children:u?v.jsx("span",{children:a}):wg||(wg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function a_(e){return lt("MuiOutlinedInput",e)}const wr={...ni,...it("MuiOutlinedInput",["root","notchedOutline","input"])},s_=e=>{const{classes:t}=e,o=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},a_,t);return{...t,...o}},l_=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${wr.focused} .${wr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{[`&.${wr.focused} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${wr.error} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wr.disabled} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),c_=Re(i_,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),u_=Re(Ns,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Us=j.forwardRef(function(t,n){var o;const a=pt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:l=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:y,slots:m={},type:b="text",...w}=a,S=s_(a),E=ti(),P=ei({props:a,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...a,color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:E,fullWidth:l,hiddenLabel:P.hiddenLabel,multiline:h,size:P.size,type:b},O=m.root??s.Root??l_,k=m.input??s.Input??u_;return v.jsx(Au,{slots:{root:O,input:k},renderSuffix:R=>v.jsx(c_,{ownerState:C,className:S.notchedOutline,label:d!=null&&d!==""&&P.required?o||(o=v.jsxs(j.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:l,inputComponent:u,multiline:h,ref:n,type:b,...w,classes:{...S,notchedOutline:null}})});Us&&(Us.muiName="Input");function d_(e){return lt("MuiFormLabel",e)}const aa=it("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),f_=e=>{const{classes:t,color:n,focused:o,disabled:a,error:s,filled:l,required:u}=e,d={root:["root",`color${je(n)}`,a&&"disabled",s&&"error",l&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return ft(d,d_,t)},p_=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${aa.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),h_=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vt(({theme:e})=>({[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}}))),g_=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormLabel"}),{children:a,className:s,color:l,component:u="label",disabled:d,error:h,filled:y,focused:m,required:b,...w}=o,S=ti(),E=ei({props:o,muiFormControl:S,states:["color","required","focused","disabled","error","filled"]}),P={...o,color:E.color||"primary",component:u,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},C=f_(P);return v.jsxs(p_,{as:u,ownerState:P,className:Te(C.root,s),ref:n,...w,children:[a,E.required&&v.jsxs(h_,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function m_(e){return lt("MuiInputLabel",e)}it("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const y_=e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:s,variant:l,required:u}=e,d={root:["root",n&&"formControl",!s&&"animated",a&&"shrink",o&&o!=="normal"&&`size${je(o)}`,l],asterisk:[u&&"asterisk"]},h=ft(d,m_,t);return{...t,...h}},v_=Re(g_,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aa.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Mu=j.forwardRef(function(t,n){const o=pt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:s,shrink:l,variant:u,className:d,...h}=o,y=ti();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const b=ei({props:o,muiFormControl:y,states:["size","variant","required","focused"]}),w={...o,disableAnimation:a,formControl:y,shrink:m,size:b.size,variant:b.variant,required:b.required,focused:b.focused},S=y_(w);return v.jsx(v_,{"data-shrink":m,ref:n,className:Te(S.root,d),...h,ownerState:w,classes:S})});function b_(e){return lt("MuiFormControl",e)}it("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const x_=e=>{const{classes:t,margin:n,fullWidth:o}=e,a={root:["root",n!=="none"&&`margin${je(n)}`,o&&"fullWidth"]};return ft(a,b_,t)},w_=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${je(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),$u=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormControl"}),{children:a,className:s,color:l="primary",component:u="div",disabled:d=!1,error:h=!1,focused:y,fullWidth:m=!1,hiddenLabel:b=!1,margin:w="none",required:S=!1,size:E="medium",variant:P="outlined",...C}=o,O={...o,color:l,component:u,disabled:d,error:h,fullWidth:m,hiddenLabel:b,margin:w,required:S,size:E,variant:P},k=x_(O),[R,$]=j.useState(()=>{let H=!1;return a&&j.Children.forEach(a,Q=>{if(!xu(Q,["Input","Select"]))return;const ee=xu(Q,["Select"])?Q.props.input:Q;ee&&zC(ee.props)&&(H=!0)}),H}),[B,M]=j.useState(()=>{let H=!1;return a&&j.Children.forEach(a,Q=>{xu(Q,["Input","Select"])&&(Ds(Q.props,!0)||Ds(Q.props.inputProps,!0))&&(H=!0)}),H}),[z,V]=j.useState(!1);d&&z&&V(!1);const _=y!==void 0&&!d?y:z;let G;j.useRef(!1);const re=j.useMemo(()=>({adornedStart:R,setAdornedStart:$,color:l,disabled:d,error:h,filled:B,focused:_,fullWidth:m,hiddenLabel:b,size:E,onBlur:()=>{V(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{V(!0)},registerEffect:G,required:S,variant:P}),[R,l,d,h,B,_,m,b,G,S,E,P]);return v.jsx(Ou.Provider,{value:re,children:v.jsx(w_,{as:u,ownerState:O,className:Te(k.root,s),ref:n,...C,children:a})})});function S_(e){return lt("MuiFormHelperText",e)}const Sg=it("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Cg;const C_=e=>{const{classes:t,contained:n,size:o,disabled:a,error:s,filled:l,focused:u,required:d}=e,h={root:["root",a&&"disabled",s&&"error",o&&`size${je(o)}`,n&&"contained",u&&"focused",l&&"filled",d&&"required"]};return ft(h,S_,t)},__=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),E_=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormHelperText"}),{children:a,className:s,component:l="p",disabled:u,error:d,filled:h,focused:y,margin:m,required:b,variant:w,...S}=o,E=ti(),P=ei({props:o,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:l,contained:P.variant==="filled"||P.variant==="outlined",variant:P.variant,size:P.size,disabled:P.disabled,error:P.error,filled:P.filled,focused:P.focused,required:P.required};delete C.ownerState;const O=C_(C);return v.jsx(__,{as:l,className:Te(O.root,s),ref:n,...S,ownerState:C,children:a===" "?Cg||(Cg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});var xt={};/**
|
|
41
|
+
export default theme;`}function Eu(e={},...t){const{breakpoints:n,mixins:o={},spacing:a,palette:s={},transitions:l={},typography:u={},shape:d,...h}=e;if(e.vars)throw new Error($r(20));const y=_u(s),m=fu(e);let b=sn(m,{mixins:uC(m.breakpoints,o),palette:y,shadows:mC.slice(),typography:fC(y,u),transitions:xC(l),zIndex:{...wC}});return b=sn(b,h),b=t.reduce((w,_)=>sn(w,_),b),b.unstable_sxConfig={...Qi,...h==null?void 0:h.unstable_sxConfig},b.unstable_sx=function(_){return vo({sx:_,theme:this})},b.toRuntimeSource=dg,b}function Ru(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const CC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ru(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function pg(e){return e==="dark"?CC:[]}function _C(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...a}=e,s=_u(t);return{palette:s,opacity:{...fg(s.mode),...n},overlays:o||pg(s.mode),...a}}function EC(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const RC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],IC=e=>(t,n)=>{const o=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return RC(e.cssVarPrefix).forEach(u=>{l[u]=n[u],delete n[u]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:s?{[s.replace("%s",t)]:l,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function kC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function J(e,t,n){!e[t]&&n&&(e[t]=n)}function oa(e){return typeof e!="string"||!e.startsWith("hsl")?e:Fh(e)}function Lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ea(oa(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
42
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function TC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const xr=e=>{try{return e()}catch{}},PC=(e="mui")=>KS(e);function Iu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const a=o==="dark"?"dark":"light";if(!n){e[o]=_C({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:s,...l}=Eu({...n,palette:{mode:a,...t==null?void 0:t.palette}});return e[o]={...t,palette:s,opacity:{...fg(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||pg(a)},l}function OC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=EC,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=o||(n.light&&y!=="light"?"light":y),b=PC(s),{[m]:w,light:_,dark:E,...P}=n,S={...P};let O=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(O=!0),!O)throw new Error($r(21,m));const k=Iu(S,O,h,m);_&&!S.light&&Iu(S,_,void 0,"light"),E&&!S.dark&&Iu(S,E,void 0,"dark");let I={defaultColorScheme:m,...k,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:d,getCssVar:b,colorSchemes:S,font:{...cC(k.typography),...k.font},spacing:TC(h.spacing)};Object.keys(I.colorSchemes).forEach(U=>{const C=I.colorSchemes[U].palette,G=Z=>{const H=Z.split("-"),K=H[1],te=H[2];return b(Z,C[K][te])};if(C.mode==="light"&&(J(C.common,"background","#fff"),J(C.common,"onBackground","#000")),C.mode==="dark"&&(J(C.common,"background","#000"),J(C.common,"onBackground","#fff")),kC(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){J(C.Alert,"errorColor",wt(C.error.light,.6)),J(C.Alert,"infoColor",wt(C.info.light,.6)),J(C.Alert,"successColor",wt(C.success.light,.6)),J(C.Alert,"warningColor",wt(C.warning.light,.6)),J(C.Alert,"errorFilledBg",G("palette-error-main")),J(C.Alert,"infoFilledBg",G("palette-info-main")),J(C.Alert,"successFilledBg",G("palette-success-main")),J(C.Alert,"warningFilledBg",G("palette-warning-main")),J(C.Alert,"errorFilledColor",xr(()=>C.getContrastText(C.error.main))),J(C.Alert,"infoFilledColor",xr(()=>C.getContrastText(C.info.main))),J(C.Alert,"successFilledColor",xr(()=>C.getContrastText(C.success.main))),J(C.Alert,"warningFilledColor",xr(()=>C.getContrastText(C.warning.main))),J(C.Alert,"errorStandardBg",St(C.error.light,.9)),J(C.Alert,"infoStandardBg",St(C.info.light,.9)),J(C.Alert,"successStandardBg",St(C.success.light,.9)),J(C.Alert,"warningStandardBg",St(C.warning.light,.9)),J(C.Alert,"errorIconColor",G("palette-error-main")),J(C.Alert,"infoIconColor",G("palette-info-main")),J(C.Alert,"successIconColor",G("palette-success-main")),J(C.Alert,"warningIconColor",G("palette-warning-main")),J(C.AppBar,"defaultBg",G("palette-grey-100")),J(C.Avatar,"defaultBg",G("palette-grey-400")),J(C.Button,"inheritContainedBg",G("palette-grey-300")),J(C.Button,"inheritContainedHoverBg",G("palette-grey-A100")),J(C.Chip,"defaultBorder",G("palette-grey-400")),J(C.Chip,"defaultAvatarColor",G("palette-grey-700")),J(C.Chip,"defaultIconColor",G("palette-grey-700")),J(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),J(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),J(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),J(C.LinearProgress,"primaryBg",St(C.primary.main,.62)),J(C.LinearProgress,"secondaryBg",St(C.secondary.main,.62)),J(C.LinearProgress,"errorBg",St(C.error.main,.62)),J(C.LinearProgress,"infoBg",St(C.info.main,.62)),J(C.LinearProgress,"successBg",St(C.success.main,.62)),J(C.LinearProgress,"warningBg",St(C.warning.main,.62)),J(C.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),J(C.Slider,"primaryTrack",St(C.primary.main,.62)),J(C.Slider,"secondaryTrack",St(C.secondary.main,.62)),J(C.Slider,"errorTrack",St(C.error.main,.62)),J(C.Slider,"infoTrack",St(C.info.main,.62)),J(C.Slider,"successTrack",St(C.success.main,.62)),J(C.Slider,"warningTrack",St(C.warning.main,.62));const Z=Ps(C.background.default,.8);J(C.SnackbarContent,"bg",Z),J(C.SnackbarContent,"color",xr(()=>C.getContrastText(Z))),J(C.SpeedDialAction,"fabHoverBg",Ps(C.background.paper,.15)),J(C.StepConnector,"border",G("palette-grey-400")),J(C.StepContent,"border",G("palette-grey-400")),J(C.Switch,"defaultColor",G("palette-common-white")),J(C.Switch,"defaultDisabledColor",G("palette-grey-100")),J(C.Switch,"primaryDisabledColor",St(C.primary.main,.62)),J(C.Switch,"secondaryDisabledColor",St(C.secondary.main,.62)),J(C.Switch,"errorDisabledColor",St(C.error.main,.62)),J(C.Switch,"infoDisabledColor",St(C.info.main,.62)),J(C.Switch,"successDisabledColor",St(C.success.main,.62)),J(C.Switch,"warningDisabledColor",St(C.warning.main,.62)),J(C.TableCell,"border",St(Ts(C.divider,1),.88)),J(C.Tooltip,"bg",Ts(C.grey[700],.92))}if(C.mode==="dark"){J(C.Alert,"errorColor",St(C.error.light,.6)),J(C.Alert,"infoColor",St(C.info.light,.6)),J(C.Alert,"successColor",St(C.success.light,.6)),J(C.Alert,"warningColor",St(C.warning.light,.6)),J(C.Alert,"errorFilledBg",G("palette-error-dark")),J(C.Alert,"infoFilledBg",G("palette-info-dark")),J(C.Alert,"successFilledBg",G("palette-success-dark")),J(C.Alert,"warningFilledBg",G("palette-warning-dark")),J(C.Alert,"errorFilledColor",xr(()=>C.getContrastText(C.error.dark))),J(C.Alert,"infoFilledColor",xr(()=>C.getContrastText(C.info.dark))),J(C.Alert,"successFilledColor",xr(()=>C.getContrastText(C.success.dark))),J(C.Alert,"warningFilledColor",xr(()=>C.getContrastText(C.warning.dark))),J(C.Alert,"errorStandardBg",wt(C.error.light,.9)),J(C.Alert,"infoStandardBg",wt(C.info.light,.9)),J(C.Alert,"successStandardBg",wt(C.success.light,.9)),J(C.Alert,"warningStandardBg",wt(C.warning.light,.9)),J(C.Alert,"errorIconColor",G("palette-error-main")),J(C.Alert,"infoIconColor",G("palette-info-main")),J(C.Alert,"successIconColor",G("palette-success-main")),J(C.Alert,"warningIconColor",G("palette-warning-main")),J(C.AppBar,"defaultBg",G("palette-grey-900")),J(C.AppBar,"darkBg",G("palette-background-paper")),J(C.AppBar,"darkColor",G("palette-text-primary")),J(C.Avatar,"defaultBg",G("palette-grey-600")),J(C.Button,"inheritContainedBg",G("palette-grey-800")),J(C.Button,"inheritContainedHoverBg",G("palette-grey-700")),J(C.Chip,"defaultBorder",G("palette-grey-700")),J(C.Chip,"defaultAvatarColor",G("palette-grey-300")),J(C.Chip,"defaultIconColor",G("palette-grey-300")),J(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),J(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),J(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),J(C.LinearProgress,"primaryBg",wt(C.primary.main,.5)),J(C.LinearProgress,"secondaryBg",wt(C.secondary.main,.5)),J(C.LinearProgress,"errorBg",wt(C.error.main,.5)),J(C.LinearProgress,"infoBg",wt(C.info.main,.5)),J(C.LinearProgress,"successBg",wt(C.success.main,.5)),J(C.LinearProgress,"warningBg",wt(C.warning.main,.5)),J(C.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),J(C.Slider,"primaryTrack",wt(C.primary.main,.5)),J(C.Slider,"secondaryTrack",wt(C.secondary.main,.5)),J(C.Slider,"errorTrack",wt(C.error.main,.5)),J(C.Slider,"infoTrack",wt(C.info.main,.5)),J(C.Slider,"successTrack",wt(C.success.main,.5)),J(C.Slider,"warningTrack",wt(C.warning.main,.5));const Z=Ps(C.background.default,.98);J(C.SnackbarContent,"bg",Z),J(C.SnackbarContent,"color",xr(()=>C.getContrastText(Z))),J(C.SpeedDialAction,"fabHoverBg",Ps(C.background.paper,.15)),J(C.StepConnector,"border",G("palette-grey-600")),J(C.StepContent,"border",G("palette-grey-600")),J(C.Switch,"defaultColor",G("palette-grey-300")),J(C.Switch,"defaultDisabledColor",G("palette-grey-600")),J(C.Switch,"primaryDisabledColor",wt(C.primary.main,.55)),J(C.Switch,"secondaryDisabledColor",wt(C.secondary.main,.55)),J(C.Switch,"errorDisabledColor",wt(C.error.main,.55)),J(C.Switch,"infoDisabledColor",wt(C.info.main,.55)),J(C.Switch,"successDisabledColor",wt(C.success.main,.55)),J(C.Switch,"warningDisabledColor",wt(C.warning.main,.55)),J(C.TableCell,"border",wt(Ts(C.divider,1),.68)),J(C.Tooltip,"bg",Ts(C.grey[700],.92))}Lr(C.background,"default"),Lr(C.background,"paper"),Lr(C.common,"background"),Lr(C.common,"onBackground"),Lr(C,"divider"),Object.keys(C).forEach(Z=>{const H=C[Z];Z!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&J(C[Z],"mainChannel",ea(oa(H.main))),H.light&&J(C[Z],"lightChannel",ea(oa(H.light))),H.dark&&J(C[Z],"darkChannel",ea(oa(H.dark))),H.contrastText&&J(C[Z],"contrastTextChannel",ea(oa(H.contrastText))),Z==="text"&&(Lr(C[Z],"primary"),Lr(C[Z],"secondary")),Z==="action"&&(H.active&&Lr(C[Z],"active"),H.selected&&Lr(C[Z],"selected")))})}),I=t.reduce((U,C)=>sn(U,C),I);const M={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:IC(I)},{vars:B,generateThemeVars:D,generateStyleSheets:V}=QS(I,M);return I.vars=B,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([U,C])=>{I[U]=C}),I.generateThemeVars=D,I.generateStyleSheets=V,I.generateSpacing=function(){return Ah(h.spacing,uu(this))},I.getColorSchemeSelector=eC(u),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=l,I.unstable_sxConfig={...Qi,...h==null?void 0:h.unstable_sxConfig},I.unstable_sx=function(C){return vo({sx:C,theme:this})},I.toRuntimeSource=dg,I}function hg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:_u({...n===!0?{}:n.palette,mode:t})})}function gg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...l}=e,u=s||"light",d=a==null?void 0:a[u],h={...a,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Eu(e,...t);let y=n;"palette"in e||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const m=Eu({...e,palette:y},...t);return m.defaultColorScheme=u,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},hg(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},hg(m,"light",h.light)),m}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),OC({...l,colorSchemes:h,defaultColorScheme:u,...typeof o!="boolean"&&o},...t)}const ku=gg();function Ms(){const e=pu(ku);return e[As]||e}function mg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>mg(e)&&e!=="classes",Re=Nh({themeId:As,defaultTheme:ku,rootShouldForwardProp:On}),AC=it("MuiBox",["root"]),MC=gg(),Dt=RS({themeId:As,defaultTheme:MC,defaultClassName:AC.root,generateClassName:Dh.generate});function $C(e){return v.jsx(CS,{...e,defaultTheme:ku,themeId:As})}function DC(e){return function(n){return v.jsx($C,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function BC(){return Mh}function pt(e){return YS(e)}function $s(e){return parseInt(e,10)||0}const LC={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function jC(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const NC=j.forwardRef(function(t,n){const{onChange:o,maxRows:a,minRows:s=1,style:l,value:u,...d}=t,{current:h}=j.useRef(u!=null),y=j.useRef(null),m=Xt(n,y),b=j.useRef(null),w=j.useRef(null),_=j.useCallback(()=>{const S=y.current,k=or(S).getComputedStyle(S);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const I=w.current;I.style.width=k.width,I.value=S.value||t.placeholder||"x",I.value.slice(-1)===`
|
|
43
|
+
`&&(I.value+=" ");const M=k.boxSizing,B=$s(k.paddingBottom)+$s(k.paddingTop),D=$s(k.borderBottomWidth)+$s(k.borderTopWidth),V=I.scrollHeight;I.value="x";const U=I.scrollHeight;let C=V;s&&(C=Math.max(Number(s)*U,C)),a&&(C=Math.min(Number(a)*U,C)),C=Math.max(C,U);const G=C+(M==="border-box"?B+D:0),Z=Math.abs(C-V)<=1;return{outerHeightStyle:G,overflowing:Z}},[a,s,t.placeholder]),E=j.useCallback(()=>{const S=_();if(jC(S))return;const O=S.outerHeightStyle,k=y.current;b.current!==O&&(b.current=O,k.style.height=`${O}px`),k.style.overflow=S.overflowing?"hidden":""},[_]);br(()=>{const S=()=>{E()};let O;const k=Os(S),I=y.current,M=or(I);M.addEventListener("resize",k);let B;return typeof ResizeObserver<"u"&&(B=new ResizeObserver(S),B.observe(I)),()=>{k.clear(),cancelAnimationFrame(O),M.removeEventListener("resize",k),B&&B.disconnect()}},[_,E]),br(()=>{E()});const P=S=>{h||E(),o&&o(S)};return v.jsxs(j.Fragment,{children:[v.jsx("textarea",{value:u,onChange:P,ref:m,rows:s,style:l,...d}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...LC.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Tu(e){return typeof e=="string"}function ti({props:e,states:t,muiFormControl:n}){return t.reduce((o,a)=>(o[a]=e[a],n&&typeof e[a]>"u"&&(o[a]=n[a]),o),{})}const Pu=j.createContext(void 0);function ni(){return j.useContext(Pu)}const vt=XS;function yg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ds(e,t=!1){return e&&(yg(e.value)&&e.value!==""||t&&yg(e.defaultValue)&&e.defaultValue!=="")}function FC(e){return e.startAdornment}function zC(e){return lt("MuiInputBase",e)}const ri=it("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var vg;const Bs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ls=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},WC=e=>{const{classes:t,color:n,disabled:o,error:a,endAdornment:s,focused:l,formControl:u,fullWidth:d,hiddenLabel:h,multiline:y,readOnly:m,size:b,startAdornment:w,type:_}=e,E={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",d&&"fullWidth",l&&"focused",u&&"formControl",b&&b!=="medium"&&`size${je(b)}`,y&&"multiline",w&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",o&&"disabled",_==="search"&&"inputTypeSearch",y&&"inputMultiline",b==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",w&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return ft(E,zC,t)},js=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ri.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ns=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ri.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ri.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),bg=DC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ou=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:l,className:u,color:d,components:h={},componentsProps:y={},defaultValue:m,disabled:b,disableInjectingGlobalStyles:w,endAdornment:_,error:E,fullWidth:P=!1,id:S,inputComponent:O="input",inputProps:k={},inputRef:I,margin:M,maxRows:B,minRows:D,multiline:V=!1,name:U,onBlur:C,onChange:G,onClick:Z,onFocus:H,onKeyDown:K,onKeyUp:te,placeholder:se,readOnly:de,renderSuffix:he,rows:be,size:we,slotProps:ue={},slots:Ce={},startAdornment:De,type:Xe="text",value:Ke,...He}=o,gt=k.value!=null?k.value:Ke,{current:le}=j.useRef(gt!=null),fe=j.useRef(),ge=j.useCallback(N=>{},[]),me=Xt(fe,I,k.ref,ge),[pe,Pe]=j.useState(!1),ve=ni(),Be=ti({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=ve?ve.focused:pe,j.useEffect(()=>{!ve&&b&&pe&&(Pe(!1),C&&C())},[ve,b,pe,C]);const Ge=ve&&ve.onFilled,Ae=ve&&ve.onEmpty,ke=j.useCallback(N=>{Ds(N)?Ge&&Ge():Ae&&Ae()},[Ge,Ae]);br(()=>{le&&ke({value:gt})},[gt,ke,le]);const We=N=>{H&&H(N),k.onFocus&&k.onFocus(N),ve&&ve.onFocus?ve.onFocus(N):Pe(!0)},tt=N=>{C&&C(N),k.onBlur&&k.onBlur(N),ve&&ve.onBlur?ve.onBlur(N):Pe(!1)},Le=(N,...q)=>{if(!le){const Q=N.target||fe.current;if(Q==null)throw new Error($r(1));ke({value:Q.value})}k.onChange&&k.onChange(N,...q),G&&G(N,...q)};j.useEffect(()=>{ke(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),Z&&Z(N)};let ut=O,Ut=k;V&&ut==="input"&&(be?Ut={type:void 0,minRows:be,maxRows:be,...Ut}:Ut={type:void 0,maxRows:B,minRows:D,...Ut},ut=NC);const Ht=N=>{ke(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};j.useEffect(()=>{ve&&ve.setAdornedStart(!!De)},[ve,De]);const Yn={...o,color:Be.color||"primary",disabled:Be.disabled,endAdornment:_,error:Be.error,focused:Be.focused,formControl:ve,fullWidth:P,hiddenLabel:Be.hiddenLabel,multiline:V,size:Be.size,startAdornment:De,type:Xe},R=WC(Yn),p=Ce.root||h.Root||js,g=ue.root||y.root||{},$=Ce.input||h.Input||Ns;return Ut={...Ut,...ue.input??y.input},v.jsxs(j.Fragment,{children:[!w&&typeof bg=="function"&&(vg||(vg=v.jsx(bg,{}))),v.jsxs(p,{...g,ref:n,onClick:xe,...He,...!Tu(p)&&{ownerState:{...Yn,...g.ownerState}},className:Te(R.root,g.className,u,de&&"MuiInputBase-readOnly"),children:[De,v.jsx(Pu.Provider,{value:null,children:v.jsx($,{"aria-invalid":Be.error,"aria-describedby":a,autoComplete:s,autoFocus:l,defaultValue:m,disabled:Be.disabled,id:S,onAnimationStart:Ht,name:U,placeholder:se,readOnly:de,required:Be.required,rows:be,value:gt,onKeyDown:K,onKeyUp:te,type:Xe,...Ut,...!Tu($)&&{as:ut,ownerState:{...Yn,...Ut.ownerState}},ref:me,className:Te(R.input,Ut.className,de&&"MuiInputBase-readOnly"),onBlur:tt,onChange:Le,onFocus:We})}),_,he?he({...Be,startAdornment:De}):null]})]})});function UC(e){return typeof e.main=="string"}function HC(e,t=[]){if(!UC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function jr(e=[]){return([,t])=>t&&HC(t,e)}function GC(e){return lt("MuiInput",e)}const ia={...ri,...it("MuiInput",["root","underline","input"])},qC=e=>{const{classes:t,disableUnderline:n}=e,a=ft({root:["root",!n&&"underline"],input:["input"]},GC,t);return{...t,...a}},VC=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ia.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ia.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ia.disabled}, .${ia.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ia.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),YC=Re(Ns,{name:"MuiInput",slot:"Input",overridesResolver:Ls})({}),Fs=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:y,slots:m={},type:b="text",...w}=o,_=qC(o),P={root:{ownerState:{disableUnderline:a}}},S=y??l?sn(y??l,P):P,O=m.root??s.Root??VC,k=m.input??s.Input??YC;return v.jsx(Ou,{slots:{root:O,input:k},slotProps:S,fullWidth:u,inputComponent:d,multiline:h,ref:n,type:b,...w,classes:_})});Fs&&(Fs.muiName="Input");function XC(e){return lt("MuiFilledInput",e)}const bo={...ri,...it("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function KC(e){return lt("MuiSvgIcon",e)}it("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JC=e=>{const{color:t,fontSize:n,classes:o}=e,a={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return ft(a,KC,o)},ZC=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(vt(({theme:e})=>{var t,n,o,a,s,l,u,d,h,y,m,b,w,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var P,S;return{props:{color:E},style:{color:(S=(P=(e.vars??e).palette)==null?void 0:P[E])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(_=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:_.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),zs=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:b="0 0 24 24",...w}=o,_=j.isValidElement(a)&&a.type==="svg",E={...o,color:l,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:_},P={};y||(P.viewBox=b);const S=JC(E);return v.jsxs(ZC,{as:u,className:Te(S.root,s),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...P,...w,..._&&a.props,ownerState:E,children:[_?a.props.children:a,m?v.jsx("title",{children:m}):null]})});zs&&(zs.muiName="SvgIcon");function pn(e,t){function n(o,a){return v.jsx(zs,{"data-testid":`${t}Icon`,ref:a,...o,children:e})}return n.muiName=zs.muiName,j.memo(j.forwardRef(n))}const QC=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:a,size:s,hiddenLabel:l,multiline:u}=e,d={root:["root",!n&&"underline",o&&"adornedStart",a&&"adornedEnd",s==="small"&&`size${je(s)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},h=ft(d,XC,t);return{...t,...h}},e_=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),t_=Re(Ns,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ws=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:u=!1,hiddenLabel:d,inputComponent:h="input",multiline:y=!1,slotProps:m,slots:b={},type:w="text",..._}=o,E={...o,disableUnderline:a,fullWidth:u,inputComponent:h,multiline:y,type:w},P=QC(o),S={root:{ownerState:E},input:{ownerState:E}},O=m??l?sn(S,m??l):S,k=b.root??s.Root??e_,I=b.input??s.Input??t_;return v.jsx(Ou,{slots:{root:k,input:I},slotProps:O,fullWidth:u,inputComponent:h,multiline:y,ref:n,type:w,..._,classes:P})});Ws&&(Ws.muiName="Input");var xg;const n_=Re("fieldset",{shouldForwardProp:On})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),r_=Re("legend",{shouldForwardProp:On})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function o_(e){const{children:t,classes:n,className:o,label:a,notched:s,...l}=e,u=a!=null&&a!=="",d={...e,notched:s,withLabel:u};return v.jsx(n_,{"aria-hidden":!0,className:o,ownerState:d,...l,children:v.jsx(r_,{ownerState:d,children:u?v.jsx("span",{children:a}):xg||(xg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function i_(e){return lt("MuiOutlinedInput",e)}const wr={...ri,...it("MuiOutlinedInput",["root","notchedOutline","input"])},a_=e=>{const{classes:t}=e,o=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},i_,t);return{...t,...o}},s_=Re(js,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${wr.focused} .${wr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{[`&.${wr.focused} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${wr.error} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wr.disabled} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),l_=Re(o_,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),c_=Re(Ns,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ls})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Us=j.forwardRef(function(t,n){var o;const a=pt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:l=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:y,slots:m={},type:b="text",...w}=a,_=a_(a),E=ni(),P=ti({props:a,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...a,color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:E,fullWidth:l,hiddenLabel:P.hiddenLabel,multiline:h,size:P.size,type:b},O=m.root??s.Root??s_,k=m.input??s.Input??c_;return v.jsx(Ou,{slots:{root:O,input:k},renderSuffix:I=>v.jsx(l_,{ownerState:S,className:_.notchedOutline,label:d!=null&&d!==""&&P.required?o||(o=v.jsxs(j.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:l,inputComponent:u,multiline:h,ref:n,type:b,...w,classes:{..._,notchedOutline:null}})});Us&&(Us.muiName="Input");function u_(e){return lt("MuiFormLabel",e)}const aa=it("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),d_=e=>{const{classes:t,color:n,focused:o,disabled:a,error:s,filled:l,required:u}=e,d={root:["root",`color${je(n)}`,a&&"disabled",s&&"error",l&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return ft(d,u_,t)},f_=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${aa.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),p_=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vt(({theme:e})=>({[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}}))),h_=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormLabel"}),{children:a,className:s,color:l,component:u="label",disabled:d,error:h,filled:y,focused:m,required:b,...w}=o,_=ni(),E=ti({props:o,muiFormControl:_,states:["color","required","focused","disabled","error","filled"]}),P={...o,color:E.color||"primary",component:u,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},S=d_(P);return v.jsxs(f_,{as:u,ownerState:P,className:Te(S.root,s),ref:n,...w,children:[a,E.required&&v.jsxs(p_,{ownerState:P,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function g_(e){return lt("MuiInputLabel",e)}it("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const m_=e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:s,variant:l,required:u}=e,d={root:["root",n&&"formControl",!s&&"animated",a&&"shrink",o&&o!=="normal"&&`size${je(o)}`,l],asterisk:[u&&"asterisk"]},h=ft(d,g_,t);return{...t,...h}},y_=Re(h_,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aa.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Au=j.forwardRef(function(t,n){const o=pt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:s,shrink:l,variant:u,className:d,...h}=o,y=ni();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const b=ti({props:o,muiFormControl:y,states:["size","variant","required","focused"]}),w={...o,disableAnimation:a,formControl:y,shrink:m,size:b.size,variant:b.variant,required:b.required,focused:b.focused},_=m_(w);return v.jsx(y_,{"data-shrink":m,ref:n,className:Te(_.root,d),...h,ownerState:w,classes:_})});function v_(e){return lt("MuiFormControl",e)}it("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const b_=e=>{const{classes:t,margin:n,fullWidth:o}=e,a={root:["root",n!=="none"&&`margin${je(n)}`,o&&"fullWidth"]};return ft(a,v_,t)},x_=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${je(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Mu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormControl"}),{children:a,className:s,color:l="primary",component:u="div",disabled:d=!1,error:h=!1,focused:y,fullWidth:m=!1,hiddenLabel:b=!1,margin:w="none",required:_=!1,size:E="medium",variant:P="outlined",...S}=o,O={...o,color:l,component:u,disabled:d,error:h,fullWidth:m,hiddenLabel:b,margin:w,required:_,size:E,variant:P},k=b_(O),[I,M]=j.useState(()=>{let H=!1;return a&&j.Children.forEach(a,K=>{if(!bu(K,["Input","Select"]))return;const te=bu(K,["Select"])?K.props.input:K;te&&FC(te.props)&&(H=!0)}),H}),[B,D]=j.useState(()=>{let H=!1;return a&&j.Children.forEach(a,K=>{bu(K,["Input","Select"])&&(Ds(K.props,!0)||Ds(K.props.inputProps,!0))&&(H=!0)}),H}),[V,U]=j.useState(!1);d&&V&&U(!1);const C=y!==void 0&&!d?y:V;let G;j.useRef(!1);const Z=j.useMemo(()=>({adornedStart:I,setAdornedStart:M,color:l,disabled:d,error:h,filled:B,focused:C,fullWidth:m,hiddenLabel:b,size:E,onBlur:()=>{U(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{U(!0)},registerEffect:G,required:_,variant:P}),[I,l,d,h,B,C,m,b,G,_,E,P]);return v.jsx(Pu.Provider,{value:Z,children:v.jsx(x_,{as:u,ownerState:O,className:Te(k.root,s),ref:n,...S,children:a})})});function w_(e){return lt("MuiFormHelperText",e)}const wg=it("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Sg;const S_=e=>{const{classes:t,contained:n,size:o,disabled:a,error:s,filled:l,focused:u,required:d}=e,h={root:["root",a&&"disabled",s&&"error",o&&`size${je(o)}`,n&&"contained",u&&"focused",l&&"filled",d&&"required"]};return ft(h,w_,t)},C_=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),__=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormHelperText"}),{children:a,className:s,component:l="p",disabled:u,error:d,filled:h,focused:y,margin:m,required:b,variant:w,..._}=o,E=ni(),P=ti({props:o,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),S={...o,component:l,contained:P.variant==="filled"||P.variant==="outlined",variant:P.variant,size:P.size,disabled:P.disabled,error:P.error,filled:P.filled,focused:P.focused,required:P.required};delete S.ownerState;const O=S_(S);return v.jsx(C_,{as:l,className:Te(O.root,s),ref:n,..._,ownerState:S,children:a===" "?Sg||(Sg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});var xt={};/**
|
|
44
44
|
* @license React
|
|
45
45
|
* react-is.production.min.js
|
|
46
46
|
*
|
|
@@ -48,7 +48,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var Du=Symbol.for("react.element"),Bu=Symbol.for("react.portal"),Hs=Symbol.for("react.fragment"),Gs=Symbol.for("react.strict_mode"),qs=Symbol.for("react.profiler"),Vs=Symbol.for("react.provider"),Ys=Symbol.for("react.context"),R_=Symbol.for("react.server_context"),Xs=Symbol.for("react.forward_ref"),Ks=Symbol.for("react.suspense"),Js=Symbol.for("react.suspense_list"),Zs=Symbol.for("react.memo"),Qs=Symbol.for("react.lazy"),I_=Symbol.for("react.offscreen"),_g;_g=Symbol.for("react.module.reference");function Hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Du:switch(e=e.type,e){case Hs:case qs:case Gs:case Ks:case Js:return e;default:switch(e=e&&e.$$typeof,e){case R_:case Ys:case Xs:case Qs:case Zs:case Vs:return e;default:return t}}case Bu:return t}}}xt.ContextConsumer=Ys,xt.ContextProvider=Vs,xt.Element=Du,xt.ForwardRef=Xs,xt.Fragment=Hs,xt.Lazy=Qs,xt.Memo=Zs,xt.Portal=Bu,xt.Profiler=qs,xt.StrictMode=Gs,xt.Suspense=Ks,xt.SuspenseList=Js,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Hn(e)===Ys},xt.isContextProvider=function(e){return Hn(e)===Vs},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Du},xt.isForwardRef=function(e){return Hn(e)===Xs},xt.isFragment=function(e){return Hn(e)===Hs},xt.isLazy=function(e){return Hn(e)===Qs},xt.isMemo=function(e){return Hn(e)===Zs},xt.isPortal=function(e){return Hn(e)===Bu},xt.isProfiler=function(e){return Hn(e)===qs},xt.isStrictMode=function(e){return Hn(e)===Gs},xt.isSuspense=function(e){return Hn(e)===Ks},xt.isSuspenseList=function(e){return Hn(e)===Js},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hs||e===qs||e===Gs||e===Ks||e===Js||e===I_||typeof e=="object"&&e!==null&&(e.$$typeof===Qs||e.$$typeof===Zs||e.$$typeof===Vs||e.$$typeof===Ys||e.$$typeof===Xs||e.$$typeof===_g||e.getModuleId!==void 0)},xt.typeOf=Hn;const ri=j.createContext({});function k_(e){return lt("MuiList",e)}it("MuiList",["root","padding","dense","subheader"]);const T_=e=>{const{classes:t,disablePadding:n,dense:o,subheader:a}=e;return ft({root:["root",!n&&"padding",o&&"dense",a&&"subheader"]},k_,t)},P_=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Lu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:u=!1,disablePadding:d=!1,subheader:h,...y}=o,m=j.useMemo(()=>({dense:u}),[u]),b={...o,component:l,dense:u,disablePadding:d},w=T_(b);return v.jsx(ri.Provider,{value:m,children:v.jsxs(P_,{as:l,className:Te(w.root,s),ref:n,ownerState:b,...y,children:[h,a]})})});function ju(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Eg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Rg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function sa(e,t,n,o,a,s){let l=!1,u=a(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const d=o?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!Rg(u,s)||d)u=a(e,u,n);else return u.focus(),!0}return!1}const O_=j.forwardRef(function(t,n){const{actions:o,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:y,variant:m="selectedMenu",...b}=t,w=j.useRef(null),S=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{a&&w.current.focus()},[a]),j.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(k,{direction:R})=>{const $=!w.current.style.width;if(k.clientHeight<w.current.clientHeight&&$){const B=`${Jh(or(k))}px`;w.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=B,w.current.style.width=`calc(100% + ${B})`}return w.current}}),[]);const E=k=>{const R=w.current,$=k.key;if(k.ctrlKey||k.metaKey||k.altKey){y&&y(k);return}const M=Un(R).activeElement;if($==="ArrowDown")k.preventDefault(),sa(R,M,h,d,ju);else if($==="ArrowUp")k.preventDefault(),sa(R,M,h,d,Eg);else if($==="Home")k.preventDefault(),sa(R,null,h,d,ju);else if($==="End")k.preventDefault(),sa(R,null,h,d,Eg);else if($.length===1){const z=S.current,V=$.toLowerCase(),_=performance.now();z.keys.length>0&&(_-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=_,z.keys.push(V);const G=M&&!z.repeating&&Rg(M,z);z.previousKeyMatched&&(G||sa(R,M,!1,d,ju,z))?k.preventDefault():z.previousKeyMatched=!1}y&&y(k)},P=Xt(w,n);let C=-1;j.Children.forEach(l,(k,R)=>{if(!j.isValidElement(k)){C===R&&(C+=1,C>=l.length&&(C=-1));return}k.props.disabled||(m==="selectedMenu"&&k.props.selected||C===-1)&&(C=R),C===R&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const O=j.Children.map(l,(k,R)=>{if(R===C){const $={};return s&&($.autoFocus=!0),k.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),j.cloneElement(k,$)}return k});return v.jsx(Lu,{role:"menu",ref:P,className:u,onKeyDown:E,tabIndex:a?0:-1,...b,children:O})});function Ig(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Nu(e,t)}function kg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nu(e,t)}const Tg={disabled:!1},el=X.createContext(null);var A_=function(t){return t.scrollTop},la="unmounted",xo="exited",wo="entering",oi="entered",Fu="exiting",Sr=function(e){kg(t,e);function t(o,a){var s;s=e.call(this,o,a)||this;var l=a,u=l&&!l.isMounting?o.enter:o.appear,d;return s.appearStatus=null,o.in?u?(d=xo,s.appearStatus=wo):d=oi:o.unmountOnExit||o.mountOnEnter?d=la:d=xo,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var l=a.in;return l&&s.status===la?{status:xo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==wo&&l!==oi&&(s=wo):(l===wo||l===oi)&&(s=Fu)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,l,u;return s=l=u=a,a!=null&&typeof a!="number"&&(s=a.exit,l=a.enter,u=a.appear!==void 0?a.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this);l&&A_(l)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:la})},n.performEnter=function(a){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:a,d=this.props.nodeRef?[u]:[mo.findDOMNode(this),u],h=d[0],y=d[1],m=this.getTimeouts(),b=u?m.appear:m.enter;if(!a&&!l||Tg.disabled){this.safeSetState({status:oi},function(){s.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:wo},function(){s.props.onEntering(h,y),s.onTransitionEnd(b,function(){s.safeSetState({status:oi},function(){s.props.onEntered(h,y)})})})},n.performExit=function(){var a=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:mo.findDOMNode(this);if(!s||Tg.disabled){this.safeSetState({status:xo},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Fu},function(){a.props.onExiting(u),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:xo},function(){a.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,a(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=d[0],y=d[1];this.props.addEndListener(h,y)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===la)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=Ig(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(el.Provider,{value:null},typeof l=="function"?l(a,u):X.cloneElement(X.Children.only(l),u))},t}(X.Component);Sr.contextType=el,Sr.propTypes={};function ii(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ii,onEntering:ii,onEntered:ii,onExit:ii,onExiting:ii,onExited:ii},Sr.UNMOUNTED=la,Sr.EXITED=xo,Sr.ENTERING=wo,Sr.ENTERED=oi,Sr.EXITING=Fu;function M_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zu(e,t){var n=function(s){return t&&X.isValidElement(s)?t(s):s},o=Object.create(null);return e&&X.Children.map(e,function(a){return a}).forEach(function(a){o[a.key]=n(a)}),o}function $_(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var o=Object.create(null),a=[];for(var s in e)s in t?a.length&&(o[s]=a,a=[]):a.push(s);var l,u={};for(var d in t){if(o[d])for(l=0;l<o[d].length;l++){var h=o[d][l];u[o[d][l]]=n(h)}u[d]=n(d)}for(l=0;l<a.length;l++)u[a[l]]=n(a[l]);return u}function So(e,t,n){return n[t]!=null?n[t]:e.props[t]}function D_(e,t){return zu(e.children,function(n){return X.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:So(n,"appear",e),enter:So(n,"enter",e),exit:So(n,"exit",e)})})}function B_(e,t,n){var o=zu(e.children),a=$_(t,o);return Object.keys(a).forEach(function(s){var l=a[s];if(X.isValidElement(l)){var u=s in t,d=s in o,h=t[s],y=X.isValidElement(h)&&!h.props.in;d&&(!u||y)?a[s]=X.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:So(l,"exit",e),enter:So(l,"enter",e)}):!d&&u&&!y?a[s]=X.cloneElement(l,{in:!1}):d&&u&&X.isValidElement(h)&&(a[s]=X.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:So(l,"exit",e),enter:So(l,"enter",e)}))}}),a}var L_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},j_={component:"div",childFactory:function(t){return t}},Wu=function(e){kg(t,e);function t(o,a){var s;s=e.call(this,o,a)||this;var l=s.handleExited.bind(M_(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var l=s.children,u=s.handleExited,d=s.firstRender;return{children:d?D_(a,u):B_(a,l,u),firstRender:!1}},n.handleExited=function(a,s){var l=zu(this.props.children);a.key in l||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(u){var d=Za({},u.children);return delete d[a.key],{children:d}}))},n.render=function(){var a=this.props,s=a.component,l=a.childFactory,u=Ig(a,["component","childFactory"]),d=this.state.contextValue,h=L_(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?X.createElement(el.Provider,{value:d},h):X.createElement(el.Provider,{value:d},X.createElement(s,u,h))},t}(X.Component);Wu.propTypes={},Wu.defaultProps=j_;const Pg=e=>e.scrollTop;function tl(e,t){const{timeout:n,easing:o,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:a.transitionDelay}}function Uu(e){return`scale(${e}, ${e**2})`}const N_={entering:{opacity:1,transform:Uu(1)},entered:{opacity:1,transform:"none"}},Hu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gu=j.forwardRef(function(t,n){const{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:h,onEntering:y,onExit:m,onExited:b,onExiting:w,style:S,timeout:E="auto",TransitionComponent:P=Sr,...C}=t,O=Xh(),k=j.useRef(),R=Ms(),$=j.useRef(null),B=Xt($,ta(s),n),M=ee=>le=>{if(ee){const pe=$.current;le===void 0?ee(pe):ee(pe,le)}},z=M(y),V=M((ee,le)=>{Pg(ee);const{duration:pe,delay:he,easing:be}=tl({style:S,timeout:E,easing:l},{mode:"enter"});let we;E==="auto"?(we=R.transitions.getAutoHeightDuration(ee.clientHeight),k.current=we):we=pe,ee.style.transition=[R.transitions.create("opacity",{duration:we,delay:he}),R.transitions.create("transform",{duration:Hu?we:we*.666,delay:he,easing:be})].join(","),d&&d(ee,le)}),_=M(h),G=M(w),re=M(ee=>{const{duration:le,delay:pe,easing:he}=tl({style:S,timeout:E,easing:l},{mode:"exit"});let be;E==="auto"?(be=R.transitions.getAutoHeightDuration(ee.clientHeight),k.current=be):be=le,ee.style.transition=[R.transitions.create("opacity",{duration:be,delay:pe}),R.transitions.create("transform",{duration:Hu?be:be*.666,delay:Hu?pe:pe||be*.333,easing:he})].join(","),ee.style.opacity=0,ee.style.transform=Uu(.75),m&&m(ee)}),H=M(b),Q=ee=>{E==="auto"&&O.start(k.current||0,ee),o&&o($.current,ee)};return v.jsx(P,{appear:a,in:u,nodeRef:$,onEnter:V,onEntered:_,onEntering:z,onExit:re,onExited:H,onExiting:G,addEndListener:Q,timeout:E==="auto"?null:E,...C,children:(ee,le)=>j.cloneElement(s,{style:{opacity:0,transform:Uu(.75),visibility:ee==="exited"&&!u?"hidden":void 0,...N_[ee],...S,...s.props.style},ref:B,...le})})});Gu&&(Gu.muiSupportAuto=!0);function F_(e){const t=Un(e);return t.body===e?or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Og(e){return parseInt(or(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Ag(e,t,n,o,a){const s=[t,n,...o];[].forEach.call(e.children,l=>{const u=!s.includes(l),d=!z_(l);u&&d&&ca(l,a)})}function qu(e,t){let n=-1;return e.some((o,a)=>t(o)?(n=a,!0):!1),n}function W_(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(F_(o)){const l=Jh(or(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Og(o)+l}px`;const u=Un(o).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Og(d)+l}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Un(o).body;else{const l=o.parentElement,u=or(o);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function U_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class H_{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const a=U_(n);Ag(n,t.mount,t.modalRef,a,!0);const s=qu(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),o)}mount(t,n){const o=qu(this.containers,s=>s.modals.includes(t)),a=this.containers[o];a.restore||(a.restore=W_(a,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const a=qu(this.containers,l=>l.modals.includes(t)),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ca(t.modalRef,n),Ag(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&ca(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const G_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q_(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V_(e))}function X_(e){const t=[],n=[];return Array.from(e.querySelectorAll(G_)).forEach((o,a)=>{const s=q_(o);s===-1||!Y_(o)||(s===0?t.push(o):n.push({documentOrder:a,tabIndex:s,node:o}))}),n.sort((o,a)=>o.tabIndex===a.tabIndex?o.documentOrder-a.documentOrder:o.tabIndex-a.tabIndex).map(o=>o.node).concat(t)}function K_(){return!0}function J_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:s=X_,isEnabled:l=K_,open:u}=e,d=j.useRef(!1),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),b=j.useRef(null),w=j.useRef(!1),S=j.useRef(null),E=Xt(ta(t),S),P=j.useRef(null);j.useEffect(()=>{!u||!S.current||(w.current=!n)},[n,u]),j.useEffect(()=>{if(!u||!S.current)return;const k=Un(S.current);return S.current.contains(k.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),w.current&&S.current.focus()),()=>{a||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[u]),j.useEffect(()=>{if(!u||!S.current)return;const k=Un(S.current),R=M=>{P.current=M,!(o||!l()||M.key!=="Tab")&&k.activeElement===S.current&&M.shiftKey&&(d.current=!0,y.current&&y.current.focus())},$=()=>{var V,_;const M=S.current;if(M===null)return;if(!k.hasFocus()||!l()||d.current){d.current=!1;return}if(M.contains(k.activeElement)||o&&k.activeElement!==h.current&&k.activeElement!==y.current)return;if(k.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!w.current)return;let z=[];if((k.activeElement===h.current||k.activeElement===y.current)&&(z=s(S.current)),z.length>0){const G=!!((V=P.current)!=null&&V.shiftKey&&((_=P.current)==null?void 0:_.key)==="Tab"),re=z[0],H=z[z.length-1];typeof re!="string"&&typeof H!="string"&&(G?H.focus():re.focus())}else M.focus()};k.addEventListener("focusin",$),k.addEventListener("keydown",R,!0);const B=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(B),k.removeEventListener("focusin",$),k.removeEventListener("keydown",R,!0)}},[n,o,a,l,u,s]);const C=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0,b.current=k.target;const R=t.props.onFocus;R&&R(k)},O=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0};return v.jsxs(j.Fragment,{children:[v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:h,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:E,onFocus:C}),v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:y,"data-testid":"sentinelEnd"})]})}function Z_(e){return typeof e=="function"?e():e}const Q_=j.forwardRef(function(t,n){const{children:o,container:a,disablePortal:s=!1}=t,[l,u]=j.useState(null),d=Xt(j.isValidElement(o)?ta(o):null,n);if(br(()=>{s||u(Z_(a)||document.body)},[a,s]),br(()=>{if(l&&!s)return wu(n,l),()=>{wu(n,null)}},[n,l,s]),s){if(j.isValidElement(o)){const h={ref:d};return j.cloneElement(o,h)}return o}return l&&Lb.createPortal(o,l)});function ir(e,t){const{className:n,elementType:o,ownerState:a,externalForwardedProps:s,internalForwardedProps:l,...u}=t,{component:d,slots:h={[e]:void 0},slotProps:y={[e]:void 0},...m}=s,b=h[e]||o,w=ng(y[e],a),{props:{component:S,...E},internalRef:P}=tg({className:n,...u,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:w}),C=Xt(P,w==null?void 0:w.ref,t.ref),O=e==="root"?S||d:S,k=Zh(b,{...e==="root"&&!d&&!h[e]&&l,...e!=="root"&&!h[e]&&l,...E,...O&&{as:O},ref:C},a);return[b,k]}const eE={entering:{opacity:1},entered:{opacity:1}},tE=j.forwardRef(function(t,n){const o=Ms(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:d,in:h,onEnter:y,onEntered:m,onEntering:b,onExit:w,onExited:S,onExiting:E,style:P,timeout:C=a,TransitionComponent:O=Sr,...k}=t,R=j.useRef(null),$=Xt(R,ta(u),n),B=Q=>ee=>{if(Q){const le=R.current;ee===void 0?Q(le):Q(le,ee)}},M=B(b),z=B((Q,ee)=>{Pg(Q);const le=tl({style:P,timeout:C,easing:d},{mode:"enter"});Q.style.webkitTransition=o.transitions.create("opacity",le),Q.style.transition=o.transitions.create("opacity",le),y&&y(Q,ee)}),V=B(m),_=B(E),G=B(Q=>{const ee=tl({style:P,timeout:C,easing:d},{mode:"exit"});Q.style.webkitTransition=o.transitions.create("opacity",ee),Q.style.transition=o.transitions.create("opacity",ee),w&&w(Q)}),re=B(S),H=Q=>{s&&s(R.current,Q)};return v.jsx(O,{appear:l,in:h,nodeRef:R,onEnter:z,onEntered:V,onEntering:M,onExit:G,onExited:re,onExiting:_,addEndListener:H,timeout:C,...k,children:(Q,ee)=>j.cloneElement(u,{style:{opacity:0,visibility:Q==="exited"&&!h?"hidden":void 0,...eE[Q],...P,...u.props.style},ref:$,...ee})})});function nE(e){return lt("MuiBackdrop",e)}it("MuiBackdrop",["root","invisible"]);const rE=e=>{const{ownerState:t,...n}=e;return n},oE=e=>{const{classes:t,invisible:n}=e;return ft({root:["root",n&&"invisible"]},nE,t)},iE=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),aE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",invisible:u=!1,open:d,components:h={},componentsProps:y={},slotProps:m={},slots:b={},TransitionComponent:w,transitionDuration:S,...E}=o,P={...o,component:l,invisible:u},C=oE(P),O={transition:w,root:h.Root,...b},k={...y,...m},R={slots:O,slotProps:k},[$,B]=ir("root",{elementType:iE,externalForwardedProps:R,className:Te(C.root,s),ownerState:P}),[M,z]=ir("transition",{elementType:tE,externalForwardedProps:R,ownerState:P}),V=rE(z);return v.jsx(M,{in:d,timeout:S,...E,...V,children:v.jsx($,{"aria-hidden":!0,...B,classes:C,ref:n,children:a})})});function sE(e){return typeof e=="function"?e():e}function lE(e){return e?e.props.hasOwnProperty("in"):!1}const Mg=()=>{},nl=new H_;function cE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:d,open:h,rootRef:y}=e,m=j.useRef({}),b=j.useRef(null),w=j.useRef(null),S=Xt(w,y),[E,P]=j.useState(!h),C=lE(u);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const k=()=>Un(b.current),R=()=>(m.current.modalRef=w.current,m.current.mount=b.current,m.current),$=()=>{nl.mount(R(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},B=Br(()=>{const ee=sE(t)||k().body;nl.add(R(),ee),w.current&&$()}),M=()=>nl.isTopModal(R()),z=Br(ee=>{b.current=ee,ee&&(h&&M()?$():w.current&&ca(w.current,O))}),V=j.useCallback(()=>{nl.remove(R(),O)},[O]);j.useEffect(()=>()=>{V()},[V]),j.useEffect(()=>{h?B():(!C||!a)&&V()},[h,V,C,a,B]);const _=ee=>le=>{var pe;(pe=ee.onKeyDown)==null||pe.call(ee,le),!(le.key!=="Escape"||le.which===229||!M())&&(n||(le.stopPropagation(),d&&d(le,"escapeKeyDown")))},G=ee=>le=>{var pe;(pe=ee.onClick)==null||pe.call(ee,le),le.target===le.currentTarget&&d&&d(le,"backdropClick")};return{getRootProps:(ee={})=>{const le=Qh(e);delete le.onTransitionEnter,delete le.onTransitionExited;const pe={...le,...ee};return{role:"presentation",...pe,onKeyDown:_(pe),ref:S}},getBackdropProps:(ee={})=>{const le=ee;return{"aria-hidden":!0,...le,onClick:G(le),open:h}},getTransitionProps:()=>{const ee=()=>{P(!1),s&&s()},le=()=>{P(!0),l&&l(),a&&V()};return{onEnter:Wh(ee,(u==null?void 0:u.props.onEnter)??Mg),onExited:Wh(le,(u==null?void 0:u.props.onExited)??Mg)}},rootRef:S,portalRef:z,isTopModal:M,exited:E,hasTransition:C}}function uE(e){return lt("MuiModal",e)}it("MuiModal",["root","hidden","backdrop"]);const dE=e=>{const{open:t,exited:n,classes:o}=e;return ft({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uE,o)},fE=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),pE=Re(aE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hE=j.forwardRef(function(t,n){const o=pt({name:"MuiModal",props:t}),{BackdropComponent:a=pE,BackdropProps:s,classes:l,className:u,closeAfterTransition:d=!1,children:h,container:y,component:m,components:b={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:k=!1,hideBackdrop:R=!1,keepMounted:$=!1,onBackdropClick:B,onClose:M,onTransitionEnter:z,onTransitionExited:V,open:_,slotProps:G={},slots:re={},theme:H,...Q}=o,ee={...o,closeAfterTransition:d,disableAutoFocus:S,disableEnforceFocus:E,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:O,disableScrollLock:k,hideBackdrop:R,keepMounted:$},{getRootProps:le,getBackdropProps:pe,getTransitionProps:he,portalRef:be,isTopModal:we,exited:ue,hasTransition:Ce}=cE({...ee,rootRef:n}),De={...ee,exited:ue},Xe=dE(De),Ke={};if(h.props.tabIndex===void 0&&(Ke.tabIndex="-1"),Ce){const{onEnter:fe,onExited:Pe}=he();Ke.onEnter=fe,Ke.onExited=Pe}const He={...Q,slots:{root:b.Root,backdrop:b.Backdrop,...re},slotProps:{...w,...G}},[gt,se]=ir("root",{elementType:fE,externalForwardedProps:He,getSlotProps:le,additionalProps:{ref:n,as:m},ownerState:De,className:Te(u,Xe==null?void 0:Xe.root,!De.open&&De.exited&&(Xe==null?void 0:Xe.hidden))}),[de,ge]=ir("backdrop",{elementType:a,externalForwardedProps:He,additionalProps:s,getSlotProps:fe=>pe({...fe,onClick:Pe=>{B&&B(Pe),fe!=null&&fe.onClick&&fe.onClick(Pe)}}),className:Te(s==null?void 0:s.className,Xe==null?void 0:Xe.backdrop),ownerState:De}),me=Xt(s==null?void 0:s.ref,ge.ref);return!$&&!_&&(!Ce||ue)?null:v.jsx(Q_,{ref:be,container:y,disablePortal:C,children:v.jsxs(gt,{...se,children:[!R&&a?v.jsx(de,{...ge,ref:me}):null,v.jsx(J_,{disableEnforceFocus:E,disableAutoFocus:S,disableRestoreFocus:O,isEnabled:we,open:_,children:j.cloneElement(h,Ke)})]})})});function gE(e){return lt("MuiPaper",e)}it("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mE=e=>{const{square:t,elevation:n,variant:o,classes:a}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ft(s,gE,a)},yE=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vE=j.forwardRef(function(t,n){var w;const o=pt({props:t,name:"MuiPaper"}),a=Ms(),{className:s,component:l="div",elevation:u=1,square:d=!1,variant:h="elevation",...y}=o,m={...o,component:l,elevation:u,square:d,variant:h},b=mE(m);return v.jsx(yE,{as:l,ownerState:m,className:Te(b.root,s),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[u],...a.vars&&{"--Paper-overlay":(w=a.vars.overlays)==null?void 0:w[u]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",Iu(u))}, ${Gt("#fff",Iu(u))})`}},...y.style}})});function bE(e){return lt("MuiPopover",e)}it("MuiPopover",["root","paper"]);function $g(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Dg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Bg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vu(e){return typeof e=="function"?e():e}const xE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"]},bE,t)},wE=Re(hE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lg=Re(vE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),SE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:y,container:m,elevation:b=8,marginThreshold:w=16,open:S,PaperProps:E={},slots:P={},slotProps:C={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:k=Gu,transitionDuration:R="auto",TransitionProps:{onEntering:$,...B}={},disableScrollLock:M=!1,...z}=o,V=(C==null?void 0:C.paper)??E,_=j.useRef(),G={...o,anchorOrigin:l,anchorReference:d,elevation:b,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:O,TransitionComponent:k,transitionDuration:R,TransitionProps:B},re=xE(G),H=j.useCallback(()=>{if(d==="anchorPosition")return u;const ge=Vu(s),fe=(ge&&ge.nodeType===1?ge:Un(_.current).body).getBoundingClientRect();return{top:fe.top+$g(fe,l.vertical),left:fe.left+Dg(fe,l.horizontal)}},[s,l.horizontal,l.vertical,u,d]),Q=j.useCallback(ge=>({vertical:$g(ge,O.vertical),horizontal:Dg(ge,O.horizontal)}),[O.horizontal,O.vertical]),ee=j.useCallback(ge=>{const me={width:ge.offsetWidth,height:ge.offsetHeight},fe=Q(me);if(d==="none")return{top:null,left:null,transformOrigin:Bg(fe)};const Pe=H();let ve=Pe.top-fe.vertical,Be=Pe.left-fe.horizontal;const Ge=ve+me.height,Ae=Be+me.width,ke=or(Vu(s)),We=ke.innerHeight-w,et=ke.innerWidth-w;if(w!==null&&ve<w){const Le=ve-w;ve-=Le,fe.vertical+=Le}else if(w!==null&&Ge>We){const Le=Ge-We;ve-=Le,fe.vertical+=Le}if(w!==null&&Be<w){const Le=Be-w;Be-=Le,fe.horizontal+=Le}else if(Ae>et){const Le=Ae-et;Be-=Le,fe.horizontal+=Le}return{top:`${Math.round(ve)}px`,left:`${Math.round(Be)}px`,transformOrigin:Bg(fe)}},[s,d,H,Q,w]),[le,pe]=j.useState(S),he=j.useCallback(()=>{const ge=_.current;if(!ge)return;const me=ee(ge);me.top!==null&&ge.style.setProperty("top",me.top),me.left!==null&&(ge.style.left=me.left),ge.style.transformOrigin=me.transformOrigin,pe(!0)},[ee]);j.useEffect(()=>(M&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[s,M,he]);const be=(ge,me)=>{$&&$(ge,me),he()},we=()=>{pe(!1)};j.useEffect(()=>{S&&he()}),j.useImperativeHandle(a,()=>S?{updatePosition:()=>{he()}}:null,[S,he]),j.useEffect(()=>{if(!S)return;const ge=Os(()=>{he()}),me=or(s);return me.addEventListener("resize",ge),()=>{ge.clear(),me.removeEventListener("resize",ge)}},[s,S,he]);let ue=R;R==="auto"&&!k.muiSupportAuto&&(ue=void 0);const Ce=m||(s?Un(Vu(s)).body:void 0),De={slots:P,slotProps:{...C,paper:V}},[Xe,Ke]=ir("paper",{elementType:Lg,externalForwardedProps:De,additionalProps:{elevation:b,className:Te(re.paper,V==null?void 0:V.className),style:le?V.style:{...V.style,opacity:0}},ownerState:G}),[He,{slotProps:gt,...se}]=ir("root",{elementType:wE,externalForwardedProps:De,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Ce,open:S},ownerState:G,className:Te(re.root,y)}),de=Xt(_,Ke.ref);return v.jsx(He,{...se,...!Pu(He)&&{slotProps:gt,disableScrollLock:M},...z,ref:n,children:v.jsx(k,{appear:!0,in:S,onEntering:be,onExited:we,timeout:ue,...B,children:v.jsx(Xe,{...Ke,ref:de,children:h})})})});function CE(e){return lt("MuiMenu",e)}it("MuiMenu",["root","paper","list"]);const _E={vertical:"top",horizontal:"right"},EE={vertical:"top",horizontal:"left"},RE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"],list:["list"]},CE,t)},IE=Re(SE,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kE=Re(Lg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TE=Re(O_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),PE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:y,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:S,...E}={},variant:P="selectedMenu",slots:C={},slotProps:O={},...k}=o,R=Cu(),$={...o,autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:S,PaperProps:m,transitionDuration:w,TransitionProps:E,variant:P},B=RE($),M=a&&!u&&y,z=j.useRef(null),V=(le,pe)=>{z.current&&z.current.adjustStyleForScrollbar(le,{direction:R?"rtl":"ltr"}),S&&S(le,pe)},_=le=>{le.key==="Tab"&&(le.preventDefault(),h&&h(le,"tabKeyDown"))};let G=-1;j.Children.map(s,(le,pe)=>{j.isValidElement(le)&&(le.props.disabled||(P==="selectedMenu"&&le.props.selected||G===-1)&&(G=pe))});const re=C.paper??kE,H=O.paper??m,Q=Yo({elementType:C.root,externalSlotProps:O.root,ownerState:$,className:[B.root,l]}),ee=Yo({elementType:re,externalSlotProps:H,ownerState:$,className:B.paper});return v.jsx(IE,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?_E:EE,slots:{paper:re,root:C.root},slotProps:{root:Q,paper:ee},open:y,ref:n,transitionDuration:w,TransitionProps:{onEntering:V,...E},ownerState:$,...k,classes:b,children:v.jsx(TE,{onKeyDown:_,actions:z,autoFocus:a&&(G===-1||u),autoFocusItem:M,variant:P,...d,className:Te(B.list,d.className),children:s})})});function OE(e){return lt("MuiNativeSelect",e)}const Yu=it("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AE=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:s,error:l}=e,u={select:["select",n,o&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,s&&"iconOpen",o&&"disabled"]};return ft(u,OE,t)},jg=Re("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Yu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ME=Re(jg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:On,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Yu.multiple}`]:t.multiple}]}})({}),Ng=Re("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Yu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),$E=Re(Ng,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),DE=j.forwardRef(function(t,n){const{className:o,disabled:a,error:s,IconComponent:l,inputRef:u,variant:d="standard",...h}=t,y={...t,disabled:a,variant:d,error:s},m=AE(y);return v.jsxs(j.Fragment,{children:[v.jsx(ME,{ownerState:y,className:Te(m.select,o),disabled:a,ref:u||n,...h}),t.multiple?null:v.jsx($E,{as:l,ownerState:y,className:m.icon})]})});function BE(e){return lt("MuiSelect",e)}const ua=it("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fg;const LE=Re(jg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ua.select}`]:t.select},{[`&.${ua.select}`]:t[n.variant]},{[`&.${ua.error}`]:t.error},{[`&.${ua.multiple}`]:t.multiple}]}})({[`&.${ua.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jE=Re(Ng,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),NE=Re("input",{shouldForwardProp:e=>yg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function FE(e){return e==null||typeof e=="string"&&!e.trim()}const zE=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:s,error:l}=e,u={select:["select",n,o&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ft(u,BE,t)},WE=j.forwardRef(function(t,n){var J;const{"aria-describedby":o,"aria-label":a,autoFocus:s,autoWidth:l,children:u,className:d,defaultOpen:h,defaultValue:y,disabled:m,displayEmpty:b,error:w=!1,IconComponent:S,inputRef:E,labelId:P,MenuProps:C={},multiple:O,name:k,onBlur:R,onChange:$,onClose:B,onFocus:M,onOpen:z,open:V,readOnly:_,renderValue:G,SelectDisplayProps:re={},tabIndex:H,type:Q,value:ee,variant:le="standard",...pe}=t,[he,be]=qh({controlled:ee,default:y,name:"Select"}),[we,ue]=qh({controlled:V,default:h,name:"Select"}),Ce=j.useRef(null),De=j.useRef(null),[Xe,Ke]=j.useState(null),{current:He}=j.useRef(V!=null),[gt,se]=j.useState(),de=Xt(n,E),ge=j.useCallback(ce=>{De.current=ce,ce&&Ke(ce)},[]),me=Xe==null?void 0:Xe.parentNode;j.useImperativeHandle(de,()=>({focus:()=>{De.current.focus()},node:Ce.current,value:he}),[he]),j.useEffect(()=>{h&&we&&Xe&&!He&&(se(l?null:me.clientWidth),De.current.focus())},[Xe,l]),j.useEffect(()=>{s&&De.current.focus()},[s]),j.useEffect(()=>{if(!P)return;const ce=Un(De.current).getElementById(P);if(ce){const oe=()=>{getSelection().isCollapsed&&De.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[P]);const fe=(ce,oe)=>{ce?z&&z(oe):B&&B(oe),He||(se(l?null:me.clientWidth),ue(ce))},Pe=ce=>{ce.button===0&&(ce.preventDefault(),De.current.focus(),fe(!0,ce))},ve=ce=>{fe(!1,ce)},Be=j.Children.toArray(u),Ge=ce=>{const oe=Be.find(ae=>ae.props.value===ce.target.value);oe!==void 0&&(be(oe.props.value),$&&$(ce,oe))},Ae=ce=>oe=>{let ae;if(oe.currentTarget.hasAttribute("tabindex")){if(O){ae=Array.isArray(he)?he.slice():[];const Ee=he.indexOf(ce.props.value);Ee===-1?ae.push(ce.props.value):ae.splice(Ee,1)}else ae=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),he!==ae&&(be(ae),$)){const Ee=oe.nativeEvent||oe,_e=new Ee.constructor(Ee.type,Ee);Object.defineProperty(_e,"target",{writable:!0,value:{value:ae,name:k}}),$(_e,ce)}O||fe(!1,oe)}},ke=ce=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),fe(!0,ce))},We=Xe!==null&&we,et=ce=>{!We&&R&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:he,name:k}}),R(ce))};delete pe["aria-invalid"];let Le,xe;const ut=[];let Ut=!1;(Ds({value:he})||b)&&(G?Le=G(he):Ut=!0);const Ht=Be.map(ce=>{if(!j.isValidElement(ce))return null;let oe;if(O){if(!Array.isArray(he))throw new Error($r(2));oe=he.some(ae=>zg(ae,ce.props.value)),oe&&Ut&&ut.push(ce.props.children)}else oe=zg(he,ce.props.value),oe&&Ut&&(xe=ce.props.children);return j.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:Ae(ce),onKeyUp:ae=>{ae.key===" "&&ae.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(ae)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});Ut&&(O?ut.length===0?Le=null:Le=ut.reduce((ce,oe,ae)=>(ce.push(oe),ae<ut.length-1&&ce.push(", "),ce),[]):Le=xe);let Yn=gt;!l&&He&&Xe&&(Yn=me.clientWidth);let I;typeof H<"u"?I=H:I=m?null:0;const p=re.id||(k?`mui-component-select-${k}`:void 0),g={...t,variant:le,value:he,open:We,error:w},D=zE(g),N={...C.PaperProps,...(J=C.slotProps)==null?void 0:J.paper},q=Gh();return v.jsxs(j.Fragment,{children:[v.jsx(LE,{as:"div",ref:ge,tabIndex:I,role:"combobox","aria-controls":q,"aria-disabled":m?"true":void 0,"aria-expanded":We?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[P,p].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ke,onMouseDown:m||_?null:Pe,onBlur:et,onFocus:M,...re,ownerState:g,className:Te(re.className,D.select,d),id:p,children:FE(Le)?Fg||(Fg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Le}),v.jsx(NE,{"aria-invalid":w,value:Array.isArray(he)?he.join(","):he,name:k,ref:Ce,"aria-hidden":!0,onChange:Ge,tabIndex:-1,disabled:m,className:D.nativeInput,autoFocus:s,...pe,ownerState:g}),v.jsx(jE,{as:S,className:D.icon,ownerState:g}),v.jsx(PE,{id:`menu-${k||""}`,anchorEl:me,open:We,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":P,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:q,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...N,style:{minWidth:Yn,...N!=null?N.style:null}}},children:Ht})]})}),UE=pn(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),HE=e=>{const{classes:t}=e;return t},Xu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>On(e)&&e!=="variant",slot:"Root"},GE=Re(Fs,Xu)(""),qE=Re(Us,Xu)(""),VE=Re(Ws,Xu)(""),rl=j.forwardRef(function(t,n){const o=pt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:s,classes:l={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:y=UE,id:m,input:b,inputProps:w,label:S,labelId:E,MenuProps:P,multiple:C=!1,native:O=!1,onClose:k,onOpen:R,open:$,renderValue:B,SelectDisplayProps:M,variant:z="outlined",...V}=o,_=O?DE:WE,G=ti(),re=ei({props:o,muiFormControl:G,states:["variant","error"]}),H=re.variant||z,Q={...o,variant:H,classes:l},ee=HE(Q),{root:le,...pe}=ee,he=b||{standard:v.jsx(GE,{ownerState:Q}),outlined:v.jsx(qE,{label:S,ownerState:Q}),filled:v.jsx(VE,{ownerState:Q})}[H],be=Xt(n,ta(he));return v.jsx(j.Fragment,{children:j.cloneElement(he,{inputComponent:_,inputProps:{children:s,error:re.error,IconComponent:y,variant:H,type:void 0,multiple:C,...O?{id:m}:{autoWidth:a,defaultOpen:d,displayEmpty:h,labelId:E,MenuProps:P,onClose:k,onOpen:R,open:$,renderValue:B,SelectDisplayProps:{id:m,...M}},...w,classes:w?sn(pe,w.classes):pe,...b?b.props.inputProps:{}},...(C&&O||h)&&H==="outlined"?{notched:!0}:{},ref:be,className:Te(he.props.className,u,ee.root),...!b&&{variant:H},...V})})});rl.muiName="Select";function YE(e){return lt("MuiTextField",e)}it("MuiTextField",["root"]);const XE={standard:Fs,filled:Ws,outlined:Us},KE=e=>{const{classes:t}=e;return ft({root:["root"]},YE,t)},JE=Re($u,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:s=!1,children:l,className:u,color:d="primary",defaultValue:h,disabled:y=!1,error:m=!1,FormHelperTextProps:b,fullWidth:w=!1,helperText:S,id:E,InputLabelProps:P,inputProps:C,InputProps:O,inputRef:k,label:R,maxRows:$,minRows:B,multiline:M=!1,name:z,onBlur:V,onChange:_,onFocus:G,placeholder:re,required:H=!1,rows:Q,select:ee=!1,SelectProps:le,slots:pe={},slotProps:he={},type:be,value:we,variant:ue="outlined",...Ce}=o,De={...o,autoFocus:s,color:d,disabled:y,error:m,fullWidth:w,multiline:M,required:H,select:ee,variant:ue},Xe=KE(De),Ke=Gh(E),He=S&&Ke?`${Ke}-helper-text`:void 0,gt=R&&Ke?`${Ke}-label`:void 0,se=XE[ue],de={slots:pe,slotProps:{input:O,inputLabel:P,htmlInput:C,formHelperText:b,select:le,...he}},ge={},me=de.slotProps.inputLabel;ue==="outlined"&&(me&&typeof me.shrink<"u"&&(ge.notched=me.shrink),ge.label=R),ee&&((!le||!le.native)&&(ge.id=void 0),ge["aria-describedby"]=void 0);const[fe,Pe]=ir("input",{elementType:se,externalForwardedProps:de,additionalProps:ge,ownerState:De}),[ve,Be]=ir("inputLabel",{elementType:Mu,externalForwardedProps:de,ownerState:De}),[Ge,Ae]=ir("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:De}),[ke,We]=ir("formHelperText",{elementType:E_,externalForwardedProps:de,ownerState:De}),[et,Le]=ir("select",{elementType:rl,externalForwardedProps:de,ownerState:De}),xe=v.jsx(fe,{"aria-describedby":He,autoComplete:a,autoFocus:s,defaultValue:h,fullWidth:w,multiline:M,name:z,rows:Q,maxRows:$,minRows:B,type:be,value:we,id:Ke,inputRef:k,onBlur:V,onChange:_,onFocus:G,placeholder:re,inputProps:Ae,slots:{input:pe.htmlInput?Ge:void 0},...Pe});return v.jsxs(JE,{className:Te(Xe.root,u),disabled:y,error:m,fullWidth:w,ref:n,required:H,color:d,variant:ue,ownerState:De,...Ce,children:[R!=null&&R!==""&&v.jsx(ve,{htmlFor:Ke,id:gt,...Be,children:R}),ee?v.jsx(et,{"aria-describedby":He,id:Ke,labelId:gt,value:we,input:xe,...Le,children:l}):xe,S&&v.jsx(ke,{id:He,...We,children:S})]})});class il{constructor(){Ar(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new il}static use(){const t=Yh(il.create).current,[n,o]=j.useState(!1);return t.shouldMount=n,t.setShouldMount=o,j.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=QE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function ZE(){return il.use()}function QE(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});return n.resolve=e,n.reject=t,n}function eR(e){const{className:t,classes:n,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:l,in:u,onExited:d,timeout:h}=e,[y,m]=j.useState(!1),b=Te(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},S=Te(n.child,y&&n.childLeaving,o&&n.childPulsate);return!u&&!y&&m(!0),j.useEffect(()=>{if(!u&&d!=null){const E=setTimeout(d,h);return()=>{clearTimeout(E)}}},[d,u,h]),v.jsx("span",{className:b,style:w,children:v.jsx("span",{className:S})})}const Gn=it("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ku=550,tR=80,nR=Xi`
|
|
51
|
+
*/var $u=Symbol.for("react.element"),Du=Symbol.for("react.portal"),Hs=Symbol.for("react.fragment"),Gs=Symbol.for("react.strict_mode"),qs=Symbol.for("react.profiler"),Vs=Symbol.for("react.provider"),Ys=Symbol.for("react.context"),E_=Symbol.for("react.server_context"),Xs=Symbol.for("react.forward_ref"),Ks=Symbol.for("react.suspense"),Js=Symbol.for("react.suspense_list"),Zs=Symbol.for("react.memo"),Qs=Symbol.for("react.lazy"),R_=Symbol.for("react.offscreen"),Cg;Cg=Symbol.for("react.module.reference");function Hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $u:switch(e=e.type,e){case Hs:case qs:case Gs:case Ks:case Js:return e;default:switch(e=e&&e.$$typeof,e){case E_:case Ys:case Xs:case Qs:case Zs:case Vs:return e;default:return t}}case Du:return t}}}xt.ContextConsumer=Ys,xt.ContextProvider=Vs,xt.Element=$u,xt.ForwardRef=Xs,xt.Fragment=Hs,xt.Lazy=Qs,xt.Memo=Zs,xt.Portal=Du,xt.Profiler=qs,xt.StrictMode=Gs,xt.Suspense=Ks,xt.SuspenseList=Js,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Hn(e)===Ys},xt.isContextProvider=function(e){return Hn(e)===Vs},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$u},xt.isForwardRef=function(e){return Hn(e)===Xs},xt.isFragment=function(e){return Hn(e)===Hs},xt.isLazy=function(e){return Hn(e)===Qs},xt.isMemo=function(e){return Hn(e)===Zs},xt.isPortal=function(e){return Hn(e)===Du},xt.isProfiler=function(e){return Hn(e)===qs},xt.isStrictMode=function(e){return Hn(e)===Gs},xt.isSuspense=function(e){return Hn(e)===Ks},xt.isSuspenseList=function(e){return Hn(e)===Js},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hs||e===qs||e===Gs||e===Ks||e===Js||e===R_||typeof e=="object"&&e!==null&&(e.$$typeof===Qs||e.$$typeof===Zs||e.$$typeof===Vs||e.$$typeof===Ys||e.$$typeof===Xs||e.$$typeof===Cg||e.getModuleId!==void 0)},xt.typeOf=Hn;const oi=j.createContext({});function I_(e){return lt("MuiList",e)}it("MuiList",["root","padding","dense","subheader"]);const k_=e=>{const{classes:t,disablePadding:n,dense:o,subheader:a}=e;return ft({root:["root",!n&&"padding",o&&"dense",a&&"subheader"]},I_,t)},T_=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Bu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:u=!1,disablePadding:d=!1,subheader:h,...y}=o,m=j.useMemo(()=>({dense:u}),[u]),b={...o,component:l,dense:u,disablePadding:d},w=k_(b);return v.jsx(oi.Provider,{value:m,children:v.jsxs(T_,{as:l,className:Te(w.root,s),ref:n,ownerState:b,...y,children:[h,a]})})});function Lu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _g(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Eg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function sa(e,t,n,o,a,s){let l=!1,u=a(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const d=o?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!Eg(u,s)||d)u=a(e,u,n);else return u.focus(),!0}return!1}const P_=j.forwardRef(function(t,n){const{actions:o,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:y,variant:m="selectedMenu",...b}=t,w=j.useRef(null),_=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{a&&w.current.focus()},[a]),j.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(k,{direction:I})=>{const M=!w.current.style.width;if(k.clientHeight<w.current.clientHeight&&M){const B=`${Kh(or(k))}px`;w.current.style[I==="rtl"?"paddingLeft":"paddingRight"]=B,w.current.style.width=`calc(100% + ${B})`}return w.current}}),[]);const E=k=>{const I=w.current,M=k.key;if(k.ctrlKey||k.metaKey||k.altKey){y&&y(k);return}const D=Un(I).activeElement;if(M==="ArrowDown")k.preventDefault(),sa(I,D,h,d,Lu);else if(M==="ArrowUp")k.preventDefault(),sa(I,D,h,d,_g);else if(M==="Home")k.preventDefault(),sa(I,null,h,d,Lu);else if(M==="End")k.preventDefault(),sa(I,null,h,d,_g);else if(M.length===1){const V=_.current,U=M.toLowerCase(),C=performance.now();V.keys.length>0&&(C-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&U!==V.keys[0]&&(V.repeating=!1)),V.lastTime=C,V.keys.push(U);const G=D&&!V.repeating&&Eg(D,V);V.previousKeyMatched&&(G||sa(I,D,!1,d,Lu,V))?k.preventDefault():V.previousKeyMatched=!1}y&&y(k)},P=Xt(w,n);let S=-1;j.Children.forEach(l,(k,I)=>{if(!j.isValidElement(k)){S===I&&(S+=1,S>=l.length&&(S=-1));return}k.props.disabled||(m==="selectedMenu"&&k.props.selected||S===-1)&&(S=I),S===I&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(S+=1,S>=l.length&&(S=-1))});const O=j.Children.map(l,(k,I)=>{if(I===S){const M={};return s&&(M.autoFocus=!0),k.props.tabIndex===void 0&&m==="selectedMenu"&&(M.tabIndex=0),j.cloneElement(k,M)}return k});return v.jsx(Bu,{role:"menu",ref:P,className:u,onKeyDown:E,tabIndex:a?0:-1,...b,children:O})});function Rg(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ju(e,t)}function Ig(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ju(e,t)}const kg={disabled:!1},el=Y.createContext(null);var O_=function(t){return t.scrollTop},la="unmounted",xo="exited",wo="entering",ii="entered",Nu="exiting",Sr=function(e){Ig(t,e);function t(o,a){var s;s=e.call(this,o,a)||this;var l=a,u=l&&!l.isMounting?o.enter:o.appear,d;return s.appearStatus=null,o.in?u?(d=xo,s.appearStatus=wo):d=ii:o.unmountOnExit||o.mountOnEnter?d=la:d=xo,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var l=a.in;return l&&s.status===la?{status:xo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==wo&&l!==ii&&(s=wo):(l===wo||l===ii)&&(s=Nu)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,l,u;return s=l=u=a,a!=null&&typeof a!="number"&&(s=a.exit,l=a.enter,u=a.appear!==void 0?a.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this);l&&O_(l)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:la})},n.performEnter=function(a){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:a,d=this.props.nodeRef?[u]:[mo.findDOMNode(this),u],h=d[0],y=d[1],m=this.getTimeouts(),b=u?m.appear:m.enter;if(!a&&!l||kg.disabled){this.safeSetState({status:ii},function(){s.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:wo},function(){s.props.onEntering(h,y),s.onTransitionEnd(b,function(){s.safeSetState({status:ii},function(){s.props.onEntered(h,y)})})})},n.performExit=function(){var a=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:mo.findDOMNode(this);if(!s||kg.disabled){this.safeSetState({status:xo},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Nu},function(){a.props.onExiting(u),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:xo},function(){a.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,a(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=d[0],y=d[1];this.props.addEndListener(h,y)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===la)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=Rg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(el.Provider,{value:null},typeof l=="function"?l(a,u):Y.cloneElement(Y.Children.only(l),u))},t}(Y.Component);Sr.contextType=el,Sr.propTypes={};function ai(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai},Sr.UNMOUNTED=la,Sr.EXITED=xo,Sr.ENTERING=wo,Sr.ENTERED=ii,Sr.EXITING=Nu;function A_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e,t){var n=function(s){return t&&Y.isValidElement(s)?t(s):s},o=Object.create(null);return e&&Y.Children.map(e,function(a){return a}).forEach(function(a){o[a.key]=n(a)}),o}function M_(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var o=Object.create(null),a=[];for(var s in e)s in t?a.length&&(o[s]=a,a=[]):a.push(s);var l,u={};for(var d in t){if(o[d])for(l=0;l<o[d].length;l++){var h=o[d][l];u[o[d][l]]=n(h)}u[d]=n(d)}for(l=0;l<a.length;l++)u[a[l]]=n(a[l]);return u}function So(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $_(e,t){return Fu(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:So(n,"appear",e),enter:So(n,"enter",e),exit:So(n,"exit",e)})})}function D_(e,t,n){var o=Fu(e.children),a=M_(t,o);return Object.keys(a).forEach(function(s){var l=a[s];if(Y.isValidElement(l)){var u=s in t,d=s in o,h=t[s],y=Y.isValidElement(h)&&!h.props.in;d&&(!u||y)?a[s]=Y.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:So(l,"exit",e),enter:So(l,"enter",e)}):!d&&u&&!y?a[s]=Y.cloneElement(l,{in:!1}):d&&u&&Y.isValidElement(h)&&(a[s]=Y.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:So(l,"exit",e),enter:So(l,"enter",e)}))}}),a}var B_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},L_={component:"div",childFactory:function(t){return t}},zu=function(e){Ig(t,e);function t(o,a){var s;s=e.call(this,o,a)||this;var l=s.handleExited.bind(A_(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var l=s.children,u=s.handleExited,d=s.firstRender;return{children:d?$_(a,u):D_(a,l,u),firstRender:!1}},n.handleExited=function(a,s){var l=Fu(this.props.children);a.key in l||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(u){var d=Za({},u.children);return delete d[a.key],{children:d}}))},n.render=function(){var a=this.props,s=a.component,l=a.childFactory,u=Rg(a,["component","childFactory"]),d=this.state.contextValue,h=B_(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?Y.createElement(el.Provider,{value:d},h):Y.createElement(el.Provider,{value:d},Y.createElement(s,u,h))},t}(Y.Component);zu.propTypes={},zu.defaultProps=L_;const Tg=e=>e.scrollTop;function tl(e,t){const{timeout:n,easing:o,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:a.transitionDelay}}function Wu(e){return`scale(${e}, ${e**2})`}const j_={entering:{opacity:1,transform:Wu(1)},entered:{opacity:1,transform:"none"}},Uu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Hu=j.forwardRef(function(t,n){const{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:h,onEntering:y,onExit:m,onExited:b,onExiting:w,style:_,timeout:E="auto",TransitionComponent:P=Sr,...S}=t,O=Yh(),k=j.useRef(),I=Ms(),M=j.useRef(null),B=Xt(M,ta(s),n),D=te=>se=>{if(te){const de=M.current;se===void 0?te(de):te(de,se)}},V=D(y),U=D((te,se)=>{Tg(te);const{duration:de,delay:he,easing:be}=tl({style:_,timeout:E,easing:l},{mode:"enter"});let we;E==="auto"?(we=I.transitions.getAutoHeightDuration(te.clientHeight),k.current=we):we=de,te.style.transition=[I.transitions.create("opacity",{duration:we,delay:he}),I.transitions.create("transform",{duration:Uu?we:we*.666,delay:he,easing:be})].join(","),d&&d(te,se)}),C=D(h),G=D(w),Z=D(te=>{const{duration:se,delay:de,easing:he}=tl({style:_,timeout:E,easing:l},{mode:"exit"});let be;E==="auto"?(be=I.transitions.getAutoHeightDuration(te.clientHeight),k.current=be):be=se,te.style.transition=[I.transitions.create("opacity",{duration:be,delay:de}),I.transitions.create("transform",{duration:Uu?be:be*.666,delay:Uu?de:de||be*.333,easing:he})].join(","),te.style.opacity=0,te.style.transform=Wu(.75),m&&m(te)}),H=D(b),K=te=>{E==="auto"&&O.start(k.current||0,te),o&&o(M.current,te)};return v.jsx(P,{appear:a,in:u,nodeRef:M,onEnter:U,onEntered:C,onEntering:V,onExit:Z,onExited:H,onExiting:G,addEndListener:K,timeout:E==="auto"?null:E,...S,children:(te,se)=>j.cloneElement(s,{style:{opacity:0,transform:Wu(.75),visibility:te==="exited"&&!u?"hidden":void 0,...j_[te],..._,...s.props.style},ref:B,...se})})});Hu&&(Hu.muiSupportAuto=!0);function N_(e){const t=Un(e);return t.body===e?or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pg(e){return parseInt(or(e).getComputedStyle(e).paddingRight,10)||0}function F_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Og(e,t,n,o,a){const s=[t,n,...o];[].forEach.call(e.children,l=>{const u=!s.includes(l),d=!F_(l);u&&d&&ca(l,a)})}function Gu(e,t){let n=-1;return e.some((o,a)=>t(o)?(n=a,!0):!1),n}function z_(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(N_(o)){const l=Kh(or(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Pg(o)+l}px`;const u=Un(o).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Pg(d)+l}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Un(o).body;else{const l=o.parentElement,u=or(o);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function W_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class U_{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const a=W_(n);Og(n,t.mount,t.modalRef,a,!0);const s=Gu(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),o)}mount(t,n){const o=Gu(this.containers,s=>s.modals.includes(t)),a=this.containers[o];a.restore||(a.restore=z_(a,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const a=Gu(this.containers,l=>l.modals.includes(t)),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ca(t.modalRef,n),Og(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&ca(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const H_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function G_(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function q_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function V_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q_(e))}function Y_(e){const t=[],n=[];return Array.from(e.querySelectorAll(H_)).forEach((o,a)=>{const s=G_(o);s===-1||!V_(o)||(s===0?t.push(o):n.push({documentOrder:a,tabIndex:s,node:o}))}),n.sort((o,a)=>o.tabIndex===a.tabIndex?o.documentOrder-a.documentOrder:o.tabIndex-a.tabIndex).map(o=>o.node).concat(t)}function X_(){return!0}function K_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:s=Y_,isEnabled:l=X_,open:u}=e,d=j.useRef(!1),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),b=j.useRef(null),w=j.useRef(!1),_=j.useRef(null),E=Xt(ta(t),_),P=j.useRef(null);j.useEffect(()=>{!u||!_.current||(w.current=!n)},[n,u]),j.useEffect(()=>{if(!u||!_.current)return;const k=Un(_.current);return _.current.contains(k.activeElement)||(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex","-1"),w.current&&_.current.focus()),()=>{a||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[u]),j.useEffect(()=>{if(!u||!_.current)return;const k=Un(_.current),I=D=>{P.current=D,!(o||!l()||D.key!=="Tab")&&k.activeElement===_.current&&D.shiftKey&&(d.current=!0,y.current&&y.current.focus())},M=()=>{var U,C;const D=_.current;if(D===null)return;if(!k.hasFocus()||!l()||d.current){d.current=!1;return}if(D.contains(k.activeElement)||o&&k.activeElement!==h.current&&k.activeElement!==y.current)return;if(k.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!w.current)return;let V=[];if((k.activeElement===h.current||k.activeElement===y.current)&&(V=s(_.current)),V.length>0){const G=!!((U=P.current)!=null&&U.shiftKey&&((C=P.current)==null?void 0:C.key)==="Tab"),Z=V[0],H=V[V.length-1];typeof Z!="string"&&typeof H!="string"&&(G?H.focus():Z.focus())}else D.focus()};k.addEventListener("focusin",M),k.addEventListener("keydown",I,!0);const B=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(B),k.removeEventListener("focusin",M),k.removeEventListener("keydown",I,!0)}},[n,o,a,l,u,s]);const S=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0,b.current=k.target;const I=t.props.onFocus;I&&I(k)},O=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0};return v.jsxs(j.Fragment,{children:[v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:h,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:E,onFocus:S}),v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:y,"data-testid":"sentinelEnd"})]})}function J_(e){return typeof e=="function"?e():e}const Z_=j.forwardRef(function(t,n){const{children:o,container:a,disablePortal:s=!1}=t,[l,u]=j.useState(null),d=Xt(j.isValidElement(o)?ta(o):null,n);if(br(()=>{s||u(J_(a)||document.body)},[a,s]),br(()=>{if(l&&!s)return xu(n,l),()=>{xu(n,null)}},[n,l,s]),s){if(j.isValidElement(o)){const h={ref:d};return j.cloneElement(o,h)}return o}return l&&Bb.createPortal(o,l)});function ir(e,t){const{className:n,elementType:o,ownerState:a,externalForwardedProps:s,internalForwardedProps:l,...u}=t,{component:d,slots:h={[e]:void 0},slotProps:y={[e]:void 0},...m}=s,b=h[e]||o,w=tg(y[e],a),{props:{component:_,...E},internalRef:P}=eg({className:n,...u,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:w}),S=Xt(P,w==null?void 0:w.ref,t.ref),O=e==="root"?_||d:_,k=Jh(b,{...e==="root"&&!d&&!h[e]&&l,...e!=="root"&&!h[e]&&l,...E,...O&&{as:O},ref:S},a);return[b,k]}const Q_={entering:{opacity:1},entered:{opacity:1}},eE=j.forwardRef(function(t,n){const o=Ms(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:d,in:h,onEnter:y,onEntered:m,onEntering:b,onExit:w,onExited:_,onExiting:E,style:P,timeout:S=a,TransitionComponent:O=Sr,...k}=t,I=j.useRef(null),M=Xt(I,ta(u),n),B=K=>te=>{if(K){const se=I.current;te===void 0?K(se):K(se,te)}},D=B(b),V=B((K,te)=>{Tg(K);const se=tl({style:P,timeout:S,easing:d},{mode:"enter"});K.style.webkitTransition=o.transitions.create("opacity",se),K.style.transition=o.transitions.create("opacity",se),y&&y(K,te)}),U=B(m),C=B(E),G=B(K=>{const te=tl({style:P,timeout:S,easing:d},{mode:"exit"});K.style.webkitTransition=o.transitions.create("opacity",te),K.style.transition=o.transitions.create("opacity",te),w&&w(K)}),Z=B(_),H=K=>{s&&s(I.current,K)};return v.jsx(O,{appear:l,in:h,nodeRef:I,onEnter:V,onEntered:U,onEntering:D,onExit:G,onExited:Z,onExiting:C,addEndListener:H,timeout:S,...k,children:(K,te)=>j.cloneElement(u,{style:{opacity:0,visibility:K==="exited"&&!h?"hidden":void 0,...Q_[K],...P,...u.props.style},ref:M,...te})})});function tE(e){return lt("MuiBackdrop",e)}it("MuiBackdrop",["root","invisible"]);const nE=e=>{const{ownerState:t,...n}=e;return n},rE=e=>{const{classes:t,invisible:n}=e;return ft({root:["root",n&&"invisible"]},tE,t)},oE=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),iE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",invisible:u=!1,open:d,components:h={},componentsProps:y={},slotProps:m={},slots:b={},TransitionComponent:w,transitionDuration:_,...E}=o,P={...o,component:l,invisible:u},S=rE(P),O={transition:w,root:h.Root,...b},k={...y,...m},I={slots:O,slotProps:k},[M,B]=ir("root",{elementType:oE,externalForwardedProps:I,className:Te(S.root,s),ownerState:P}),[D,V]=ir("transition",{elementType:eE,externalForwardedProps:I,ownerState:P}),U=nE(V);return v.jsx(D,{in:d,timeout:_,...E,...U,children:v.jsx(M,{"aria-hidden":!0,...B,classes:S,ref:n,children:a})})});function aE(e){return typeof e=="function"?e():e}function sE(e){return e?e.props.hasOwnProperty("in"):!1}const Ag=()=>{},nl=new U_;function lE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:d,open:h,rootRef:y}=e,m=j.useRef({}),b=j.useRef(null),w=j.useRef(null),_=Xt(w,y),[E,P]=j.useState(!h),S=sE(u);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const k=()=>Un(b.current),I=()=>(m.current.modalRef=w.current,m.current.mount=b.current,m.current),M=()=>{nl.mount(I(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},B=Br(()=>{const te=aE(t)||k().body;nl.add(I(),te),w.current&&M()}),D=()=>nl.isTopModal(I()),V=Br(te=>{b.current=te,te&&(h&&D()?M():w.current&&ca(w.current,O))}),U=j.useCallback(()=>{nl.remove(I(),O)},[O]);j.useEffect(()=>()=>{U()},[U]),j.useEffect(()=>{h?B():(!S||!a)&&U()},[h,U,S,a,B]);const C=te=>se=>{var de;(de=te.onKeyDown)==null||de.call(te,se),!(se.key!=="Escape"||se.which===229||!D())&&(n||(se.stopPropagation(),d&&d(se,"escapeKeyDown")))},G=te=>se=>{var de;(de=te.onClick)==null||de.call(te,se),se.target===se.currentTarget&&d&&d(se,"backdropClick")};return{getRootProps:(te={})=>{const se=Zh(e);delete se.onTransitionEnter,delete se.onTransitionExited;const de={...se,...te};return{role:"presentation",...de,onKeyDown:C(de),ref:_}},getBackdropProps:(te={})=>{const se=te;return{"aria-hidden":!0,...se,onClick:G(se),open:h}},getTransitionProps:()=>{const te=()=>{P(!1),s&&s()},se=()=>{P(!0),l&&l(),a&&U()};return{onEnter:zh(te,(u==null?void 0:u.props.onEnter)??Ag),onExited:zh(se,(u==null?void 0:u.props.onExited)??Ag)}},rootRef:_,portalRef:V,isTopModal:D,exited:E,hasTransition:S}}function cE(e){return lt("MuiModal",e)}it("MuiModal",["root","hidden","backdrop"]);const uE=e=>{const{open:t,exited:n,classes:o}=e;return ft({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cE,o)},dE=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),fE=Re(iE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pE=j.forwardRef(function(t,n){const o=pt({name:"MuiModal",props:t}),{BackdropComponent:a=fE,BackdropProps:s,classes:l,className:u,closeAfterTransition:d=!1,children:h,container:y,component:m,components:b={},componentsProps:w={},disableAutoFocus:_=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:P=!1,disablePortal:S=!1,disableRestoreFocus:O=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:M=!1,onBackdropClick:B,onClose:D,onTransitionEnter:V,onTransitionExited:U,open:C,slotProps:G={},slots:Z={},theme:H,...K}=o,te={...o,closeAfterTransition:d,disableAutoFocus:_,disableEnforceFocus:E,disableEscapeKeyDown:P,disablePortal:S,disableRestoreFocus:O,disableScrollLock:k,hideBackdrop:I,keepMounted:M},{getRootProps:se,getBackdropProps:de,getTransitionProps:he,portalRef:be,isTopModal:we,exited:ue,hasTransition:Ce}=lE({...te,rootRef:n}),De={...te,exited:ue},Xe=uE(De),Ke={};if(h.props.tabIndex===void 0&&(Ke.tabIndex="-1"),Ce){const{onEnter:pe,onExited:Pe}=he();Ke.onEnter=pe,Ke.onExited=Pe}const He={...K,slots:{root:b.Root,backdrop:b.Backdrop,...Z},slotProps:{...w,...G}},[gt,le]=ir("root",{elementType:dE,externalForwardedProps:He,getSlotProps:se,additionalProps:{ref:n,as:m},ownerState:De,className:Te(u,Xe==null?void 0:Xe.root,!De.open&&De.exited&&(Xe==null?void 0:Xe.hidden))}),[fe,ge]=ir("backdrop",{elementType:a,externalForwardedProps:He,additionalProps:s,getSlotProps:pe=>de({...pe,onClick:Pe=>{B&&B(Pe),pe!=null&&pe.onClick&&pe.onClick(Pe)}}),className:Te(s==null?void 0:s.className,Xe==null?void 0:Xe.backdrop),ownerState:De}),me=Xt(s==null?void 0:s.ref,ge.ref);return!M&&!C&&(!Ce||ue)?null:v.jsx(Z_,{ref:be,container:y,disablePortal:S,children:v.jsxs(gt,{...le,children:[!I&&a?v.jsx(fe,{...ge,ref:me}):null,v.jsx(K_,{disableEnforceFocus:E,disableAutoFocus:_,disableRestoreFocus:O,isEnabled:we,open:C,children:j.cloneElement(h,Ke)})]})})});function hE(e){return lt("MuiPaper",e)}it("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gE=e=>{const{square:t,elevation:n,variant:o,classes:a}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ft(s,hE,a)},mE=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),yE=j.forwardRef(function(t,n){var w;const o=pt({props:t,name:"MuiPaper"}),a=Ms(),{className:s,component:l="div",elevation:u=1,square:d=!1,variant:h="elevation",...y}=o,m={...o,component:l,elevation:u,square:d,variant:h},b=gE(m);return v.jsx(mE,{as:l,ownerState:m,className:Te(b.root,s),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[u],...a.vars&&{"--Paper-overlay":(w=a.vars.overlays)==null?void 0:w[u]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",Ru(u))}, ${Gt("#fff",Ru(u))})`}},...y.style}})});function vE(e){return lt("MuiPopover",e)}it("MuiPopover",["root","paper"]);function Mg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $g(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Dg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qu(e){return typeof e=="function"?e():e}const bE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"]},vE,t)},xE=Re(pE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bg=Re(yE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:y,container:m,elevation:b=8,marginThreshold:w=16,open:_,PaperProps:E={},slots:P={},slotProps:S={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:k=Hu,transitionDuration:I="auto",TransitionProps:{onEntering:M,...B}={},disableScrollLock:D=!1,...V}=o,U=(S==null?void 0:S.paper)??E,C=j.useRef(),G={...o,anchorOrigin:l,anchorReference:d,elevation:b,marginThreshold:w,externalPaperSlotProps:U,transformOrigin:O,TransitionComponent:k,transitionDuration:I,TransitionProps:B},Z=bE(G),H=j.useCallback(()=>{if(d==="anchorPosition")return u;const ge=qu(s),pe=(ge&&ge.nodeType===1?ge:Un(C.current).body).getBoundingClientRect();return{top:pe.top+Mg(pe,l.vertical),left:pe.left+$g(pe,l.horizontal)}},[s,l.horizontal,l.vertical,u,d]),K=j.useCallback(ge=>({vertical:Mg(ge,O.vertical),horizontal:$g(ge,O.horizontal)}),[O.horizontal,O.vertical]),te=j.useCallback(ge=>{const me={width:ge.offsetWidth,height:ge.offsetHeight},pe=K(me);if(d==="none")return{top:null,left:null,transformOrigin:Dg(pe)};const Pe=H();let ve=Pe.top-pe.vertical,Be=Pe.left-pe.horizontal;const Ge=ve+me.height,Ae=Be+me.width,ke=or(qu(s)),We=ke.innerHeight-w,tt=ke.innerWidth-w;if(w!==null&&ve<w){const Le=ve-w;ve-=Le,pe.vertical+=Le}else if(w!==null&&Ge>We){const Le=Ge-We;ve-=Le,pe.vertical+=Le}if(w!==null&&Be<w){const Le=Be-w;Be-=Le,pe.horizontal+=Le}else if(Ae>tt){const Le=Ae-tt;Be-=Le,pe.horizontal+=Le}return{top:`${Math.round(ve)}px`,left:`${Math.round(Be)}px`,transformOrigin:Dg(pe)}},[s,d,H,K,w]),[se,de]=j.useState(_),he=j.useCallback(()=>{const ge=C.current;if(!ge)return;const me=te(ge);me.top!==null&&ge.style.setProperty("top",me.top),me.left!==null&&(ge.style.left=me.left),ge.style.transformOrigin=me.transformOrigin,de(!0)},[te]);j.useEffect(()=>(D&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[s,D,he]);const be=(ge,me)=>{M&&M(ge,me),he()},we=()=>{de(!1)};j.useEffect(()=>{_&&he()}),j.useImperativeHandle(a,()=>_?{updatePosition:()=>{he()}}:null,[_,he]),j.useEffect(()=>{if(!_)return;const ge=Os(()=>{he()}),me=or(s);return me.addEventListener("resize",ge),()=>{ge.clear(),me.removeEventListener("resize",ge)}},[s,_,he]);let ue=I;I==="auto"&&!k.muiSupportAuto&&(ue=void 0);const Ce=m||(s?Un(qu(s)).body:void 0),De={slots:P,slotProps:{...S,paper:U}},[Xe,Ke]=ir("paper",{elementType:Bg,externalForwardedProps:De,additionalProps:{elevation:b,className:Te(Z.paper,U==null?void 0:U.className),style:se?U.style:{...U.style,opacity:0}},ownerState:G}),[He,{slotProps:gt,...le}]=ir("root",{elementType:xE,externalForwardedProps:De,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Ce,open:_},ownerState:G,className:Te(Z.root,y)}),fe=Xt(C,Ke.ref);return v.jsx(He,{...le,...!Tu(He)&&{slotProps:gt,disableScrollLock:D},...V,ref:n,children:v.jsx(k,{appear:!0,in:_,onEntering:be,onExited:we,timeout:ue,...B,children:v.jsx(Xe,{...Ke,ref:fe,children:h})})})});function SE(e){return lt("MuiMenu",e)}it("MuiMenu",["root","paper","list"]);const CE={vertical:"top",horizontal:"right"},_E={vertical:"top",horizontal:"left"},EE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"],list:["list"]},SE,t)},RE=Re(wE,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IE=Re(Bg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kE=Re(P_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),TE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:y,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:_,...E}={},variant:P="selectedMenu",slots:S={},slotProps:O={},...k}=o,I=Su(),M={...o,autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:_,PaperProps:m,transitionDuration:w,TransitionProps:E,variant:P},B=EE(M),D=a&&!u&&y,V=j.useRef(null),U=(se,de)=>{V.current&&V.current.adjustStyleForScrollbar(se,{direction:I?"rtl":"ltr"}),_&&_(se,de)},C=se=>{se.key==="Tab"&&(se.preventDefault(),h&&h(se,"tabKeyDown"))};let G=-1;j.Children.map(s,(se,de)=>{j.isValidElement(se)&&(se.props.disabled||(P==="selectedMenu"&&se.props.selected||G===-1)&&(G=de))});const Z=S.paper??IE,H=O.paper??m,K=Xo({elementType:S.root,externalSlotProps:O.root,ownerState:M,className:[B.root,l]}),te=Xo({elementType:Z,externalSlotProps:H,ownerState:M,className:B.paper});return v.jsx(RE,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?CE:_E,slots:{paper:Z,root:S.root},slotProps:{root:K,paper:te},open:y,ref:n,transitionDuration:w,TransitionProps:{onEntering:U,...E},ownerState:M,...k,classes:b,children:v.jsx(kE,{onKeyDown:C,actions:V,autoFocus:a&&(G===-1||u),autoFocusItem:D,variant:P,...d,className:Te(B.list,d.className),children:s})})});function PE(e){return lt("MuiNativeSelect",e)}const Vu=it("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OE=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:s,error:l}=e,u={select:["select",n,o&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,s&&"iconOpen",o&&"disabled"]};return ft(u,PE,t)},Lg=Re("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Vu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),AE=Re(Lg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:On,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vu.multiple}`]:t.multiple}]}})({}),jg=Re("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Vu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ME=Re(jg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),$E=j.forwardRef(function(t,n){const{className:o,disabled:a,error:s,IconComponent:l,inputRef:u,variant:d="standard",...h}=t,y={...t,disabled:a,variant:d,error:s},m=OE(y);return v.jsxs(j.Fragment,{children:[v.jsx(AE,{ownerState:y,className:Te(m.select,o),disabled:a,ref:u||n,...h}),t.multiple?null:v.jsx(ME,{as:l,ownerState:y,className:m.icon})]})});function DE(e){return lt("MuiSelect",e)}const ua=it("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ng;const BE=Re(Lg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ua.select}`]:t.select},{[`&.${ua.select}`]:t[n.variant]},{[`&.${ua.error}`]:t.error},{[`&.${ua.multiple}`]:t.multiple}]}})({[`&.${ua.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),LE=Re(jg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),jE=Re("input",{shouldForwardProp:e=>mg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NE(e){return e==null||typeof e=="string"&&!e.trim()}const FE=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:s,error:l}=e,u={select:["select",n,o&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ft(u,DE,t)},zE=j.forwardRef(function(t,n){var Q;const{"aria-describedby":o,"aria-label":a,autoFocus:s,autoWidth:l,children:u,className:d,defaultOpen:h,defaultValue:y,disabled:m,displayEmpty:b,error:w=!1,IconComponent:_,inputRef:E,labelId:P,MenuProps:S={},multiple:O,name:k,onBlur:I,onChange:M,onClose:B,onFocus:D,onOpen:V,open:U,readOnly:C,renderValue:G,SelectDisplayProps:Z={},tabIndex:H,type:K,value:te,variant:se="standard",...de}=t,[he,be]=Gh({controlled:te,default:y,name:"Select"}),[we,ue]=Gh({controlled:U,default:h,name:"Select"}),Ce=j.useRef(null),De=j.useRef(null),[Xe,Ke]=j.useState(null),{current:He}=j.useRef(U!=null),[gt,le]=j.useState(),fe=Xt(n,E),ge=j.useCallback(ce=>{De.current=ce,ce&&Ke(ce)},[]),me=Xe==null?void 0:Xe.parentNode;j.useImperativeHandle(fe,()=>({focus:()=>{De.current.focus()},node:Ce.current,value:he}),[he]),j.useEffect(()=>{h&&we&&Xe&&!He&&(le(l?null:me.clientWidth),De.current.focus())},[Xe,l]),j.useEffect(()=>{s&&De.current.focus()},[s]),j.useEffect(()=>{if(!P)return;const ce=Un(De.current).getElementById(P);if(ce){const oe=()=>{getSelection().isCollapsed&&De.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[P]);const pe=(ce,oe)=>{ce?V&&V(oe):B&&B(oe),He||(le(l?null:me.clientWidth),ue(ce))},Pe=ce=>{ce.button===0&&(ce.preventDefault(),De.current.focus(),pe(!0,ce))},ve=ce=>{pe(!1,ce)},Be=j.Children.toArray(u),Ge=ce=>{const oe=Be.find(ae=>ae.props.value===ce.target.value);oe!==void 0&&(be(oe.props.value),M&&M(ce,oe))},Ae=ce=>oe=>{let ae;if(oe.currentTarget.hasAttribute("tabindex")){if(O){ae=Array.isArray(he)?he.slice():[];const Ee=he.indexOf(ce.props.value);Ee===-1?ae.push(ce.props.value):ae.splice(Ee,1)}else ae=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),he!==ae&&(be(ae),M)){const Ee=oe.nativeEvent||oe,_e=new Ee.constructor(Ee.type,Ee);Object.defineProperty(_e,"target",{writable:!0,value:{value:ae,name:k}}),M(_e,ce)}O||pe(!1,oe)}},ke=ce=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),pe(!0,ce))},We=Xe!==null&&we,tt=ce=>{!We&&I&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:he,name:k}}),I(ce))};delete de["aria-invalid"];let Le,xe;const ut=[];let Ut=!1;(Ds({value:he})||b)&&(G?Le=G(he):Ut=!0);const Ht=Be.map(ce=>{if(!j.isValidElement(ce))return null;let oe;if(O){if(!Array.isArray(he))throw new Error($r(2));oe=he.some(ae=>Fg(ae,ce.props.value)),oe&&Ut&&ut.push(ce.props.children)}else oe=Fg(he,ce.props.value),oe&&Ut&&(xe=ce.props.children);return j.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:Ae(ce),onKeyUp:ae=>{ae.key===" "&&ae.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(ae)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});Ut&&(O?ut.length===0?Le=null:Le=ut.reduce((ce,oe,ae)=>(ce.push(oe),ae<ut.length-1&&ce.push(", "),ce),[]):Le=xe);let Yn=gt;!l&&He&&Xe&&(Yn=me.clientWidth);let R;typeof H<"u"?R=H:R=m?null:0;const p=Z.id||(k?`mui-component-select-${k}`:void 0),g={...t,variant:se,value:he,open:We,error:w},$=FE(g),N={...S.PaperProps,...(Q=S.slotProps)==null?void 0:Q.paper},q=Hh();return v.jsxs(j.Fragment,{children:[v.jsx(BE,{as:"div",ref:ge,tabIndex:R,role:"combobox","aria-controls":q,"aria-disabled":m?"true":void 0,"aria-expanded":We?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[P,p].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ke,onMouseDown:m||C?null:Pe,onBlur:tt,onFocus:D,...Z,ownerState:g,className:Te(Z.className,$.select,d),id:p,children:NE(Le)?Ng||(Ng=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Le}),v.jsx(jE,{"aria-invalid":w,value:Array.isArray(he)?he.join(","):he,name:k,ref:Ce,"aria-hidden":!0,onChange:Ge,tabIndex:-1,disabled:m,className:$.nativeInput,autoFocus:s,...de,ownerState:g}),v.jsx(LE,{as:_,className:$.icon,ownerState:g}),v.jsx(TE,{id:`menu-${k||""}`,anchorEl:me,open:We,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,MenuListProps:{"aria-labelledby":P,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:q,...S.MenuListProps},slotProps:{...S.slotProps,paper:{...N,style:{minWidth:Yn,...N!=null?N.style:null}}},children:Ht})]})}),WE=pn(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),UE=e=>{const{classes:t}=e;return t},Yu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>On(e)&&e!=="variant",slot:"Root"},HE=Re(Fs,Yu)(""),GE=Re(Us,Yu)(""),qE=Re(Ws,Yu)(""),rl=j.forwardRef(function(t,n){const o=pt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:s,classes:l={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:y=WE,id:m,input:b,inputProps:w,label:_,labelId:E,MenuProps:P,multiple:S=!1,native:O=!1,onClose:k,onOpen:I,open:M,renderValue:B,SelectDisplayProps:D,variant:V="outlined",...U}=o,C=O?$E:zE,G=ni(),Z=ti({props:o,muiFormControl:G,states:["variant","error"]}),H=Z.variant||V,K={...o,variant:H,classes:l},te=UE(K),{root:se,...de}=te,he=b||{standard:v.jsx(HE,{ownerState:K}),outlined:v.jsx(GE,{label:_,ownerState:K}),filled:v.jsx(qE,{ownerState:K})}[H],be=Xt(n,ta(he));return v.jsx(j.Fragment,{children:j.cloneElement(he,{inputComponent:C,inputProps:{children:s,error:Z.error,IconComponent:y,variant:H,type:void 0,multiple:S,...O?{id:m}:{autoWidth:a,defaultOpen:d,displayEmpty:h,labelId:E,MenuProps:P,onClose:k,onOpen:I,open:M,renderValue:B,SelectDisplayProps:{id:m,...D}},...w,classes:w?sn(de,w.classes):de,...b?b.props.inputProps:{}},...(S&&O||h)&&H==="outlined"?{notched:!0}:{},ref:be,className:Te(he.props.className,u,te.root),...!b&&{variant:H},...U})})});rl.muiName="Select";function VE(e){return lt("MuiTextField",e)}it("MuiTextField",["root"]);const YE={standard:Fs,filled:Ws,outlined:Us},XE=e=>{const{classes:t}=e;return ft({root:["root"]},VE,t)},KE=Re(Mu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:s=!1,children:l,className:u,color:d="primary",defaultValue:h,disabled:y=!1,error:m=!1,FormHelperTextProps:b,fullWidth:w=!1,helperText:_,id:E,InputLabelProps:P,inputProps:S,InputProps:O,inputRef:k,label:I,maxRows:M,minRows:B,multiline:D=!1,name:V,onBlur:U,onChange:C,onFocus:G,placeholder:Z,required:H=!1,rows:K,select:te=!1,SelectProps:se,slots:de={},slotProps:he={},type:be,value:we,variant:ue="outlined",...Ce}=o,De={...o,autoFocus:s,color:d,disabled:y,error:m,fullWidth:w,multiline:D,required:H,select:te,variant:ue},Xe=XE(De),Ke=Hh(E),He=_&&Ke?`${Ke}-helper-text`:void 0,gt=I&&Ke?`${Ke}-label`:void 0,le=YE[ue],fe={slots:de,slotProps:{input:O,inputLabel:P,htmlInput:S,formHelperText:b,select:se,...he}},ge={},me=fe.slotProps.inputLabel;ue==="outlined"&&(me&&typeof me.shrink<"u"&&(ge.notched=me.shrink),ge.label=I),te&&((!se||!se.native)&&(ge.id=void 0),ge["aria-describedby"]=void 0);const[pe,Pe]=ir("input",{elementType:le,externalForwardedProps:fe,additionalProps:ge,ownerState:De}),[ve,Be]=ir("inputLabel",{elementType:Au,externalForwardedProps:fe,ownerState:De}),[Ge,Ae]=ir("htmlInput",{elementType:"input",externalForwardedProps:fe,ownerState:De}),[ke,We]=ir("formHelperText",{elementType:__,externalForwardedProps:fe,ownerState:De}),[tt,Le]=ir("select",{elementType:rl,externalForwardedProps:fe,ownerState:De}),xe=v.jsx(pe,{"aria-describedby":He,autoComplete:a,autoFocus:s,defaultValue:h,fullWidth:w,multiline:D,name:V,rows:K,maxRows:M,minRows:B,type:be,value:we,id:Ke,inputRef:k,onBlur:U,onChange:C,onFocus:G,placeholder:Z,inputProps:Ae,slots:{input:de.htmlInput?Ge:void 0},...Pe});return v.jsxs(KE,{className:Te(Xe.root,u),disabled:y,error:m,fullWidth:w,ref:n,required:H,color:d,variant:ue,ownerState:De,...Ce,children:[I!=null&&I!==""&&v.jsx(ve,{htmlFor:Ke,id:gt,...Be,children:I}),te?v.jsx(tt,{"aria-describedby":He,id:Ke,labelId:gt,value:we,input:xe,...Le,children:l}):xe,_&&v.jsx(ke,{id:He,...We,children:_})]})});class il{constructor(){Ar(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new il}static use(){const t=Vh(il.create).current,[n,o]=j.useState(!1);return t.shouldMount=n,t.setShouldMount=o,j.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=ZE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function JE(){return il.use()}function ZE(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});return n.resolve=e,n.reject=t,n}function QE(e){const{className:t,classes:n,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:l,in:u,onExited:d,timeout:h}=e,[y,m]=j.useState(!1),b=Te(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},_=Te(n.child,y&&n.childLeaving,o&&n.childPulsate);return!u&&!y&&m(!0),j.useEffect(()=>{if(!u&&d!=null){const E=setTimeout(d,h);return()=>{clearTimeout(E)}}},[d,u,h]),v.jsx("span",{className:b,style:w,children:v.jsx("span",{className:_})})}const Gn=it("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xu=550,eR=80,tR=Xi`
|
|
52
52
|
0% {
|
|
53
53
|
transform: scale(0);
|
|
54
54
|
opacity: 0.1;
|
|
@@ -58,7 +58,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
58
58
|
transform: scale(1);
|
|
59
59
|
opacity: 0.3;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,nR=Xi`
|
|
62
62
|
0% {
|
|
63
63
|
opacity: 1;
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
66
66
|
100% {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,rR=Xi`
|
|
70
70
|
0% {
|
|
71
71
|
transform: scale(1);
|
|
72
72
|
}
|
|
@@ -78,15 +78,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
78
78
|
100% {
|
|
79
79
|
transform: scale(1);
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,oR=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iR=Re(QE,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
82
82
|
opacity: 0;
|
|
83
83
|
position: absolute;
|
|
84
84
|
|
|
85
85
|
&.${Gn.rippleVisible} {
|
|
86
86
|
opacity: 0.3;
|
|
87
87
|
transform: scale(1);
|
|
88
|
-
animation-name: ${
|
|
89
|
-
animation-duration: ${
|
|
88
|
+
animation-name: ${tR};
|
|
89
|
+
animation-duration: ${Xu}ms;
|
|
90
90
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -105,8 +105,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
105
105
|
|
|
106
106
|
& .${Gn.childLeaving} {
|
|
107
107
|
opacity: 0;
|
|
108
|
-
animation-name: ${
|
|
109
|
-
animation-duration: ${
|
|
108
|
+
animation-name: ${nR};
|
|
109
|
+
animation-duration: ${Xu}ms;
|
|
110
110
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -115,13 +115,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
/* @noflip */
|
|
116
116
|
left: 0px;
|
|
117
117
|
top: 0;
|
|
118
|
-
animation-name: ${
|
|
118
|
+
animation-name: ${rR};
|
|
119
119
|
animation-duration: 2500ms;
|
|
120
120
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
121
121
|
animation-iteration-count: infinite;
|
|
122
122
|
animation-delay: 200ms;
|
|
123
123
|
}
|
|
124
|
-
`,sR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:l,...u}=o,[d,h]=j.useState([]),y=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const b=j.useRef(!1),w=Xh(),S=j.useRef(null),E=j.useRef(null),P=j.useCallback(R=>{const{pulsate:$,rippleX:B,rippleY:M,rippleSize:z,cb:V}=R;h(_=>[..._,v.jsx(aR,{classes:{ripple:Te(s.ripple,Gn.ripple),rippleVisible:Te(s.rippleVisible,Gn.rippleVisible),ripplePulsate:Te(s.ripplePulsate,Gn.ripplePulsate),child:Te(s.child,Gn.child),childLeaving:Te(s.childLeaving,Gn.childLeaving),childPulsate:Te(s.childPulsate,Gn.childPulsate)},timeout:Ku,pulsate:$,rippleX:B,rippleY:M,rippleSize:z},y.current)]),y.current+=1,m.current=V},[s]),C=j.useCallback((R={},$={},B=()=>{})=>{const{pulsate:M=!1,center:z=a||$.pulsate,fakeElement:V=!1}=$;if((R==null?void 0:R.type)==="mousedown"&&b.current){b.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(b.current=!0);const _=V?null:E.current,G=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let re,H,Q;if(z||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)re=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:ee,clientY:le}=R.touches&&R.touches.length>0?R.touches[0]:R;re=Math.round(ee-G.left),H=Math.round(le-G.top)}if(z)Q=Math.sqrt((2*G.width**2+G.height**2)/3),Q%2===0&&(Q+=1);else{const ee=Math.max(Math.abs((_?_.clientWidth:0)-re),re)*2+2,le=Math.max(Math.abs((_?_.clientHeight:0)-H),H)*2+2;Q=Math.sqrt(ee**2+le**2)}R!=null&&R.touches?S.current===null&&(S.current=()=>{P({pulsate:M,rippleX:re,rippleY:H,rippleSize:Q,cb:B})},w.start(tR,()=>{S.current&&(S.current(),S.current=null)})):P({pulsate:M,rippleX:re,rippleY:H,rippleSize:Q,cb:B})},[a,P,w]),O=j.useCallback(()=>{C({},{pulsate:!0})},[C]),k=j.useCallback((R,$)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&S.current){S.current(),S.current=null,w.start(0,()=>{k(R,$)});return}S.current=null,h(B=>B.length>0?B.slice(1):B),m.current=$},[w]);return j.useImperativeHandle(n,()=>({pulsate:O,start:C,stop:k}),[O,C,k]),v.jsx(iR,{className:Te(Gn.root,s.root,l),ref:E,...u,children:v.jsx(Wu,{component:null,exit:!0,children:d})})});function lR(e){return lt("MuiButtonBase",e)}const cR=it("MuiButtonBase",["root","disabled","focusVisible"]),uR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:a}=e,l=ft({root:["root",t&&"disabled",n&&"focusVisible"]},lR,a);return n&&o&&(l.root+=` ${o}`),l},dR=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ai=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:l,className:u,component:d="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:b=!1,focusVisibleClassName:w,LinkComponent:S="a",onBlur:E,onClick:P,onContextMenu:C,onDragLeave:O,onFocus:k,onFocusVisible:R,onKeyDown:$,onKeyUp:B,onMouseDown:M,onMouseLeave:z,onMouseUp:V,onTouchEnd:_,onTouchMove:G,onTouchStart:re,tabIndex:H=0,TouchRippleProps:Q,touchRippleRef:ee,type:le,...pe}=o,he=j.useRef(null),be=ZE(),we=Xt(be.ref,ee),[ue,Ce]=j.useState(!1);h&&ue&&Ce(!1),j.useImperativeHandle(a,()=>({focusVisible:()=>{Ce(!0),he.current.focus()}}),[]);const De=be.shouldMount&&!y&&!h;j.useEffect(()=>{ue&&b&&!y&&be.pulsate()},[y,b,ue,be]);const Xe=Nr(be,"start",M,m),Ke=Nr(be,"stop",C,m),He=Nr(be,"stop",O,m),gt=Nr(be,"stop",V,m),se=Nr(be,"stop",xe=>{ue&&xe.preventDefault(),z&&z(xe)},m),de=Nr(be,"start",re,m),ge=Nr(be,"stop",_,m),me=Nr(be,"stop",G,m),fe=Nr(be,"stop",xe=>{Kh(xe.target)||Ce(!1),E&&E(xe)},!1),Pe=Br(xe=>{he.current||(he.current=xe.currentTarget),Kh(xe.target)&&(Ce(!0),R&&R(xe)),k&&k(xe)}),ve=()=>{const xe=he.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Be=Br(xe=>{b&&!xe.repeat&&ue&&xe.key===" "&&be.stop(xe,()=>{be.start(xe)}),xe.target===xe.currentTarget&&ve()&&xe.key===" "&&xe.preventDefault(),$&&$(xe),xe.target===xe.currentTarget&&ve()&&xe.key==="Enter"&&!h&&(xe.preventDefault(),P&&P(xe))}),Ge=Br(xe=>{b&&xe.key===" "&&ue&&!xe.defaultPrevented&&be.stop(xe,()=>{be.pulsate(xe)}),B&&B(xe),P&&xe.target===xe.currentTarget&&ve()&&xe.key===" "&&!xe.defaultPrevented&&P(xe)});let Ae=d;Ae==="button"&&(pe.href||pe.to)&&(Ae=S);const ke={};Ae==="button"?(ke.type=le===void 0?"button":le,ke.disabled=h):(!pe.href&&!pe.to&&(ke.role="button"),h&&(ke["aria-disabled"]=h));const We=Xt(n,he),et={...o,centerRipple:s,component:d,disabled:h,disableRipple:y,disableTouchRipple:m,focusRipple:b,tabIndex:H,focusVisible:ue},Le=uR(et);return v.jsxs(dR,{as:Ae,className:Te(Le.root,u),ownerState:et,onBlur:fe,onClick:P,onContextMenu:Ke,onFocus:Pe,onKeyDown:Be,onKeyUp:Ge,onMouseDown:Xe,onMouseLeave:se,onMouseUp:gt,onDragLeave:He,onTouchEnd:ge,onTouchMove:me,onTouchStart:de,ref:We,tabIndex:h?-1:H,type:le,...ke,...pe,children:[l,De?v.jsx(sR,{ref:we,center:s,...Q}):null]})});function Nr(e,t,n,o=!1){return Br(a=>(n&&n(a),o||e[t](a),!0))}function fR(e){return lt("MuiButton",e)}const si=it("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pR=j.createContext({}),hR=j.createContext(void 0),gR=e=>{const{color:t,disableElevation:n,fullWidth:o,size:a,variant:s,classes:l}=e,u={root:["root",s,`${s}${je(t)}`,`size${je(a)}`,`${s}Size${je(a)}`,`color${je(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${je(a)}`],endIcon:["icon","endIcon",`iconSize${je(a)}`]},d=ft(u,fR,l);return{...l,...d}},Wg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],mR=Re(ai,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(vt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${si.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${si.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${si.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${si.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Gt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${si.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${si.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),yR=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Wg]}),vR=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Wg]}),li=j.forwardRef(function(t,n){const o=j.useContext(pR),a=j.useContext(hR),s=Is(o,t),l=pt({props:s,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:y,disabled:m=!1,disableElevation:b=!1,disableFocusRipple:w=!1,endIcon:S,focusVisibleClassName:E,fullWidth:P=!1,size:C="medium",startIcon:O,type:k,variant:R="text",...$}=l,B={...l,color:d,component:h,disabled:m,disableElevation:b,disableFocusRipple:w,fullWidth:P,size:C,type:k,variant:R},M=gR(B),z=O&&v.jsx(yR,{className:M.startIcon,ownerState:B,children:O}),V=S&&v.jsx(vR,{className:M.endIcon,ownerState:B,children:S}),_=a||"";return v.jsxs(mR,{ownerState:B,className:Te(o.className,M.root,y,_),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Te(M.focusVisible,E),ref:n,type:k,...$,classes:M,children:[z,u,V]})});function bR(e){return lt("MuiDivider",e)}const Ug=it("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xR=e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:s,orientation:l,textAlign:u,variant:d}=e;return ft({root:["root",t&&"absolute",d,s&&"light",l==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},bR,o)},wR=Re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Gt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),SR=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),da=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:l,orientation:u="horizontal",component:d=s||u==="vertical"?"div":"hr",flexItem:h=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:b="center",variant:w="fullWidth",...S}=o,E={...o,absolute:a,component:d,flexItem:h,light:y,orientation:u,role:m,textAlign:b,variant:w},P=xR(E);return v.jsx(wR,{as:d,className:Te(P.root,l),role:m,ref:n,ownerState:E,"aria-orientation":m==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...S,children:s?v.jsx(SR,{className:P.wrapper,ownerState:E,children:s}):null})});da&&(da.muiSkipListHighlight=!0);function CR(e){return lt("MuiListItemButton",e)}const fa=it("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_R=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ER=e=>{const{alignItems:t,classes:n,dense:o,disabled:a,disableGutters:s,divider:l,selected:u}=e,h=ft({root:["root",o&&"dense",!s&&"gutters",l&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},CR,n);return{...n,...h}},RR=Re(ai,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:_R})(vt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Hg=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:s=!1,component:l="div",children:u,dense:d=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:m,selected:b=!1,className:w,...S}=o,E=j.useContext(ri),P=j.useMemo(()=>({dense:d||E.dense||!1,alignItems:a,disableGutters:h}),[a,E.dense,d,h]),C=j.useRef(null);br(()=>{s&&C.current&&C.current.focus()},[s]);const O={...o,alignItems:a,dense:P.dense,disableGutters:h,divider:y,selected:b},k=ER(O),R=Xt(C,n);return v.jsx(ri.Provider,{value:P,children:v.jsx(RR,{ref:R,href:S.href||S.to,component:(S.href||S.to)&&l==="div"?"button":l,focusVisibleClassName:Te(k.focusVisible,m),ownerState:O,className:Te(k.root,w),...S,classes:k,children:u})})});function IR(e){return lt("MuiIconButton",e)}const kR=it("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),TR=e=>{const{classes:t,disabled:n,color:o,edge:a,size:s}=e,l={root:["root",n&&"disabled",o!=="default"&&`color${je(o)}`,a&&`edge${je(a)}`,`size${je(s)}`]};return ft(l,IR,t)},PR=Re(ai,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(vt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${kR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Qt=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:y="medium",...m}=o,b={...o,edge:a,color:u,disabled:d,disableFocusRipple:h,size:y},w=TR(b);return v.jsx(PR,{className:Te(w.root,l),centerRipple:!0,focusRipple:!h,disabled:d,ref:n,...m,ownerState:b,children:s})});function OR(e){return lt("MuiTypography",e)}const Gg=it("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),AR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MR=LC(),$R=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:a,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return ft(u,OR,l)},DR=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${je(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),qg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},al=j.forwardRef(function(t,n){const{color:o,...a}=pt({props:t,name:"MuiTypography"}),s=!AR[o],l=MR({...a,...s&&{color:o}}),{align:u="inherit",className:d,component:h,gutterBottom:y=!1,noWrap:m=!1,paragraph:b=!1,variant:w="body1",variantMapping:S=qg,...E}=l,P={...l,align:u,color:o,className:d,component:h,gutterBottom:y,noWrap:m,paragraph:b,variant:w,variantMapping:S},C=h||(b?"p":S[w]||qg[w])||"span",O=$R(P);return v.jsx(DR,{as:C,ref:n,className:Te(O.root,d),...E,ownerState:P,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...E.style}})});function BR(e){return lt("MuiCircularProgress",e)}it("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const eo=44,Ju=Xi`
|
|
124
|
+
`,aR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:l,...u}=o,[d,h]=j.useState([]),y=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const b=j.useRef(!1),w=Yh(),_=j.useRef(null),E=j.useRef(null),P=j.useCallback(I=>{const{pulsate:M,rippleX:B,rippleY:D,rippleSize:V,cb:U}=I;h(C=>[...C,v.jsx(iR,{classes:{ripple:Te(s.ripple,Gn.ripple),rippleVisible:Te(s.rippleVisible,Gn.rippleVisible),ripplePulsate:Te(s.ripplePulsate,Gn.ripplePulsate),child:Te(s.child,Gn.child),childLeaving:Te(s.childLeaving,Gn.childLeaving),childPulsate:Te(s.childPulsate,Gn.childPulsate)},timeout:Xu,pulsate:M,rippleX:B,rippleY:D,rippleSize:V},y.current)]),y.current+=1,m.current=U},[s]),S=j.useCallback((I={},M={},B=()=>{})=>{const{pulsate:D=!1,center:V=a||M.pulsate,fakeElement:U=!1}=M;if((I==null?void 0:I.type)==="mousedown"&&b.current){b.current=!1;return}(I==null?void 0:I.type)==="touchstart"&&(b.current=!0);const C=U?null:E.current,G=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Z,H,K;if(V||I===void 0||I.clientX===0&&I.clientY===0||!I.clientX&&!I.touches)Z=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:te,clientY:se}=I.touches&&I.touches.length>0?I.touches[0]:I;Z=Math.round(te-G.left),H=Math.round(se-G.top)}if(V)K=Math.sqrt((2*G.width**2+G.height**2)/3),K%2===0&&(K+=1);else{const te=Math.max(Math.abs((C?C.clientWidth:0)-Z),Z)*2+2,se=Math.max(Math.abs((C?C.clientHeight:0)-H),H)*2+2;K=Math.sqrt(te**2+se**2)}I!=null&&I.touches?_.current===null&&(_.current=()=>{P({pulsate:D,rippleX:Z,rippleY:H,rippleSize:K,cb:B})},w.start(eR,()=>{_.current&&(_.current(),_.current=null)})):P({pulsate:D,rippleX:Z,rippleY:H,rippleSize:K,cb:B})},[a,P,w]),O=j.useCallback(()=>{S({},{pulsate:!0})},[S]),k=j.useCallback((I,M)=>{if(w.clear(),(I==null?void 0:I.type)==="touchend"&&_.current){_.current(),_.current=null,w.start(0,()=>{k(I,M)});return}_.current=null,h(B=>B.length>0?B.slice(1):B),m.current=M},[w]);return j.useImperativeHandle(n,()=>({pulsate:O,start:S,stop:k}),[O,S,k]),v.jsx(oR,{className:Te(Gn.root,s.root,l),ref:E,...u,children:v.jsx(zu,{component:null,exit:!0,children:d})})});function sR(e){return lt("MuiButtonBase",e)}const lR=it("MuiButtonBase",["root","disabled","focusVisible"]),cR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:a}=e,l=ft({root:["root",t&&"disabled",n&&"focusVisible"]},sR,a);return n&&o&&(l.root+=` ${o}`),l},uR=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),si=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:l,className:u,component:d="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:b=!1,focusVisibleClassName:w,LinkComponent:_="a",onBlur:E,onClick:P,onContextMenu:S,onDragLeave:O,onFocus:k,onFocusVisible:I,onKeyDown:M,onKeyUp:B,onMouseDown:D,onMouseLeave:V,onMouseUp:U,onTouchEnd:C,onTouchMove:G,onTouchStart:Z,tabIndex:H=0,TouchRippleProps:K,touchRippleRef:te,type:se,...de}=o,he=j.useRef(null),be=JE(),we=Xt(be.ref,te),[ue,Ce]=j.useState(!1);h&&ue&&Ce(!1),j.useImperativeHandle(a,()=>({focusVisible:()=>{Ce(!0),he.current.focus()}}),[]);const De=be.shouldMount&&!y&&!h;j.useEffect(()=>{ue&&b&&!y&&be.pulsate()},[y,b,ue,be]);const Xe=Nr(be,"start",D,m),Ke=Nr(be,"stop",S,m),He=Nr(be,"stop",O,m),gt=Nr(be,"stop",U,m),le=Nr(be,"stop",xe=>{ue&&xe.preventDefault(),V&&V(xe)},m),fe=Nr(be,"start",Z,m),ge=Nr(be,"stop",C,m),me=Nr(be,"stop",G,m),pe=Nr(be,"stop",xe=>{Xh(xe.target)||Ce(!1),E&&E(xe)},!1),Pe=Br(xe=>{he.current||(he.current=xe.currentTarget),Xh(xe.target)&&(Ce(!0),I&&I(xe)),k&&k(xe)}),ve=()=>{const xe=he.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Be=Br(xe=>{b&&!xe.repeat&&ue&&xe.key===" "&&be.stop(xe,()=>{be.start(xe)}),xe.target===xe.currentTarget&&ve()&&xe.key===" "&&xe.preventDefault(),M&&M(xe),xe.target===xe.currentTarget&&ve()&&xe.key==="Enter"&&!h&&(xe.preventDefault(),P&&P(xe))}),Ge=Br(xe=>{b&&xe.key===" "&&ue&&!xe.defaultPrevented&&be.stop(xe,()=>{be.pulsate(xe)}),B&&B(xe),P&&xe.target===xe.currentTarget&&ve()&&xe.key===" "&&!xe.defaultPrevented&&P(xe)});let Ae=d;Ae==="button"&&(de.href||de.to)&&(Ae=_);const ke={};Ae==="button"?(ke.type=se===void 0?"button":se,ke.disabled=h):(!de.href&&!de.to&&(ke.role="button"),h&&(ke["aria-disabled"]=h));const We=Xt(n,he),tt={...o,centerRipple:s,component:d,disabled:h,disableRipple:y,disableTouchRipple:m,focusRipple:b,tabIndex:H,focusVisible:ue},Le=cR(tt);return v.jsxs(uR,{as:Ae,className:Te(Le.root,u),ownerState:tt,onBlur:pe,onClick:P,onContextMenu:Ke,onFocus:Pe,onKeyDown:Be,onKeyUp:Ge,onMouseDown:Xe,onMouseLeave:le,onMouseUp:gt,onDragLeave:He,onTouchEnd:ge,onTouchMove:me,onTouchStart:fe,ref:We,tabIndex:h?-1:H,type:se,...ke,...de,children:[l,De?v.jsx(aR,{ref:we,center:s,...K}):null]})});function Nr(e,t,n,o=!1){return Br(a=>(n&&n(a),o||e[t](a),!0))}function dR(e){return lt("MuiButton",e)}const li=it("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),fR=j.createContext({}),pR=j.createContext(void 0),hR=e=>{const{color:t,disableElevation:n,fullWidth:o,size:a,variant:s,classes:l}=e,u={root:["root",s,`${s}${je(t)}`,`size${je(a)}`,`${s}Size${je(a)}`,`color${je(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${je(a)}`],endIcon:["icon","endIcon",`iconSize${je(a)}`]},d=ft(u,dR,l);return{...l,...d}},zg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],gR=Re(si,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(vt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${li.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${li.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${li.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${li.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Gt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${li.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${li.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),mR=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...zg]}),yR=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...zg]}),ci=j.forwardRef(function(t,n){const o=j.useContext(fR),a=j.useContext(pR),s=Is(o,t),l=pt({props:s,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:y,disabled:m=!1,disableElevation:b=!1,disableFocusRipple:w=!1,endIcon:_,focusVisibleClassName:E,fullWidth:P=!1,size:S="medium",startIcon:O,type:k,variant:I="text",...M}=l,B={...l,color:d,component:h,disabled:m,disableElevation:b,disableFocusRipple:w,fullWidth:P,size:S,type:k,variant:I},D=hR(B),V=O&&v.jsx(mR,{className:D.startIcon,ownerState:B,children:O}),U=_&&v.jsx(yR,{className:D.endIcon,ownerState:B,children:_}),C=a||"";return v.jsxs(gR,{ownerState:B,className:Te(o.className,D.root,y,C),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Te(D.focusVisible,E),ref:n,type:k,...M,classes:D,children:[V,u,U]})});function vR(e){return lt("MuiDivider",e)}const Wg=it("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),bR=e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:s,orientation:l,textAlign:u,variant:d}=e;return ft({root:["root",t&&"absolute",d,s&&"light",l==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},vR,o)},xR=Re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Gt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),wR=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),da=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:l,orientation:u="horizontal",component:d=s||u==="vertical"?"div":"hr",flexItem:h=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:b="center",variant:w="fullWidth",..._}=o,E={...o,absolute:a,component:d,flexItem:h,light:y,orientation:u,role:m,textAlign:b,variant:w},P=bR(E);return v.jsx(xR,{as:d,className:Te(P.root,l),role:m,ref:n,ownerState:E,"aria-orientation":m==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,..._,children:s?v.jsx(wR,{className:P.wrapper,ownerState:E,children:s}):null})});da&&(da.muiSkipListHighlight=!0);function SR(e){return lt("MuiListItemButton",e)}const fa=it("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),CR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_R=e=>{const{alignItems:t,classes:n,dense:o,disabled:a,disableGutters:s,divider:l,selected:u}=e,h=ft({root:["root",o&&"dense",!s&&"gutters",l&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},SR,n);return{...n,...h}},ER=Re(si,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:CR})(vt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Ug=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:s=!1,component:l="div",children:u,dense:d=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:m,selected:b=!1,className:w,..._}=o,E=j.useContext(oi),P=j.useMemo(()=>({dense:d||E.dense||!1,alignItems:a,disableGutters:h}),[a,E.dense,d,h]),S=j.useRef(null);br(()=>{s&&S.current&&S.current.focus()},[s]);const O={...o,alignItems:a,dense:P.dense,disableGutters:h,divider:y,selected:b},k=_R(O),I=Xt(S,n);return v.jsx(oi.Provider,{value:P,children:v.jsx(ER,{ref:I,href:_.href||_.to,component:(_.href||_.to)&&l==="div"?"button":l,focusVisibleClassName:Te(k.focusVisible,m),ownerState:O,className:Te(k.root,w),..._,classes:k,children:u})})});function RR(e){return lt("MuiIconButton",e)}const IR=it("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),kR=e=>{const{classes:t,disabled:n,color:o,edge:a,size:s}=e,l={root:["root",n&&"disabled",o!=="default"&&`color${je(o)}`,a&&`edge${je(a)}`,`size${je(s)}`]};return ft(l,RR,t)},TR=Re(si,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(vt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${IR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Qt=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:y="medium",...m}=o,b={...o,edge:a,color:u,disabled:d,disableFocusRipple:h,size:y},w=kR(b);return v.jsx(TR,{className:Te(w.root,l),centerRipple:!0,focusRipple:!h,disabled:d,ref:n,...m,ownerState:b,children:s})});function PR(e){return lt("MuiTypography",e)}const Hg=it("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),OR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},AR=BC(),MR=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:a,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",o&&"noWrap",a&&"paragraph"]};return ft(u,PR,l)},$R=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${je(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Gg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},al=j.forwardRef(function(t,n){const{color:o,...a}=pt({props:t,name:"MuiTypography"}),s=!OR[o],l=AR({...a,...s&&{color:o}}),{align:u="inherit",className:d,component:h,gutterBottom:y=!1,noWrap:m=!1,paragraph:b=!1,variant:w="body1",variantMapping:_=Gg,...E}=l,P={...l,align:u,color:o,className:d,component:h,gutterBottom:y,noWrap:m,paragraph:b,variant:w,variantMapping:_},S=h||(b?"p":_[w]||Gg[w])||"span",O=MR(P);return v.jsx($R,{as:S,ref:n,className:Te(O.root,d),...E,ownerState:P,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...E.style}})});function DR(e){return lt("MuiCircularProgress",e)}it("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const eo=44,Ku=Xi`
|
|
125
125
|
0% {
|
|
126
126
|
transform: rotate(0deg);
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
129
129
|
100% {
|
|
130
130
|
transform: rotate(360deg);
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,Ju=Xi`
|
|
133
133
|
0% {
|
|
134
134
|
stroke-dasharray: 1px, 200px;
|
|
135
135
|
stroke-dashoffset: 0;
|
|
@@ -144,12 +144,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
144
144
|
stroke-dasharray: 100px, 200px;
|
|
145
145
|
stroke-dashoffset: -125px;
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
148
|
-
animation: ${
|
|
149
|
-
`:null,
|
|
150
|
-
animation: ${
|
|
151
|
-
`:null,NR=e=>{const{classes:t,variant:n,color:o,disableShrink:a}=e,s={root:["root",n,`color${je(o)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,a&&"circleDisableShrink"]};return ft(s,BR,t)},FR=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(vt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:LR||{animation:`${Ju} 1.4s linear infinite`}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),zR=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),WR=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:jR||{animation:`${Zu} 1.4s ease-in-out infinite`}}]}))),UR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:l=!1,size:u=40,style:d,thickness:h=3.6,value:y=0,variant:m="indeterminate",...b}=o,w={...o,color:s,disableShrink:l,size:u,thickness:h,value:y,variant:m},S=NR(w),E={},P={},C={};if(m==="determinate"){const O=2*Math.PI*((eo-h)/2);E.strokeDasharray=O.toFixed(3),C["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*O).toFixed(3)}px`,P.transform="rotate(-90deg)"}return v.jsx(FR,{className:Te(S.root,a),style:{width:u,height:u,...P,...d},ownerState:w,ref:n,role:"progressbar",...C,...b,children:v.jsx(zR,{className:S.svg,ownerState:w,viewBox:`${eo/2} ${eo/2} ${eo} ${eo}`,children:v.jsx(WR,{className:S.circle,style:E,ownerState:w,cx:eo,cy:eo,r:(eo-h)/2,fill:"none",strokeWidth:h})})})}),Vg=it("MuiListItemIcon",["root","alignItemsFlexStart"]);function HR(e){return lt("MuiListItemText",e)}const ci=it("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),GR=e=>{const{classes:t,inset:n,primary:o,secondary:a,dense:s}=e;return ft({root:["root",n&&"inset",s&&"dense",o&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},HR,t)},qR=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ci.primary}`]:t.primary},{[`& .${ci.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Gg.root}:where(& .${ci.primary})`]:{display:"block"},[`.${Gg.root}:where(& .${ci.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Yg=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:u=!1,primary:d,primaryTypographyProps:h,secondary:y,secondaryTypographyProps:m,...b}=o,{dense:w}=j.useContext(ri);let S=d??a,E=y;const P={...o,disableTypography:l,inset:u,primary:!!S,secondary:!!E,dense:w},C=GR(P);return S!=null&&S.type!==al&&!l&&(S=v.jsx(al,{variant:w?"body2":"body1",className:C.primary,component:h!=null&&h.variant?void 0:"span",...h,children:S})),E!=null&&E.type!==al&&!l&&(E=v.jsx(al,{variant:"body2",className:C.secondary,color:"textSecondary",...m,children:E})),v.jsxs(qR,{className:Te(C.root,s),ownerState:P,ref:n,...b,children:[S,E]})});function VR(e){return lt("MuiMenuItem",e)}const pa=it("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),YR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},XR=e=>{const{disabled:t,dense:n,divider:o,disableGutters:a,selected:s,classes:l}=e,d=ft({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",o&&"divider",s&&"selected"]},VR,l);return{...l,...d}},KR=Re(ai,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YR})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ug.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ug.inset}`]:{marginLeft:52},[`& .${ci.root}`]:{marginTop:0,marginBottom:0},[`& .${ci.inset}`]:{paddingLeft:36},[`& .${Vg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Vg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:h,role:y="menuitem",tabIndex:m,className:b,...w}=o,S=j.useContext(ri),E=j.useMemo(()=>({dense:l||S.dense||!1,disableGutters:d}),[S.dense,l,d]),P=j.useRef(null);br(()=>{a&&P.current&&P.current.focus()},[a]);const C={...o,dense:E.dense,divider:u,disableGutters:d},O=XR(o),k=Xt(P,n);let R;return o.disabled||(R=m!==void 0?m:-1),v.jsx(ri.Provider,{value:E,children:v.jsx(KR,{ref:k,role:y,tabIndex:R,component:s,focusVisibleClassName:Te(O.focusVisible,h),className:Te(O.root,b),...w,ownerState:C,classes:O})})});function JR(e){return lt("MuiTab",e)}const qn=it("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),ZR=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:a,icon:s,label:l,selected:u,disabled:d}=e,h={root:["root",s&&l&&"labelIcon",`textColor${je(n)}`,o&&"fullWidth",a&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return ft(h,JR,t)},QR=Re(ai,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${qn.iconWrapper}`]:t.iconWrapper},{[`& .${qn.icon}`]:t.icon}]}})(vt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${qn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${qn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${qn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${qn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${qn.selected}`]:{opacity:1},[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),eI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u,icon:d,iconPosition:h="top",indicator:y,label:m,onChange:b,onClick:w,onFocus:S,selected:E,selectionFollowsFocus:P,textColor:C="inherit",value:O,wrapped:k=!1,...R}=o,$={...o,disabled:s,disableFocusRipple:l,selected:E,icon:!!d,iconPosition:h,label:!!m,fullWidth:u,textColor:C,wrapped:k},B=ZR($),M=d&&m&&j.isValidElement(d)?j.cloneElement(d,{className:Te(B.icon,d.props.className)}):d,z=_=>{!E&&b&&b(_,O),w&&w(_)},V=_=>{P&&!E&&b&&b(_,O),S&&S(_)};return v.jsxs(QR,{focusRipple:!l,className:Te(B.root,a),ref:n,role:"tab","aria-selected":E,disabled:s,onClick:z,onFocus:V,ownerState:$,tabIndex:E?0:-1,...R,children:[h==="top"||h==="start"?v.jsxs(j.Fragment,{children:[M,m]}):v.jsxs(j.Fragment,{children:[m,M]}),y]})}),tI=pn(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),nI=pn(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function rI(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function oI(e,t,n,o={},a=()=>{}){const{ease:s=rI,duration:l=300}=o;let u=null;const d=t[e];let h=!1;const y=()=>{h=!0},m=b=>{if(h){a(new Error("Animation cancelled"));return}u===null&&(u=b);const w=Math.min(1,(b-u)/l);if(t[e]=s(w)*(n-d)+d,w>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(m)};return d===n?(a(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const iI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function aI(e){const{onChange:t,...n}=e,o=j.useRef(),a=j.useRef(null),s=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return br(()=>{const l=Os(()=>{const d=o.current;s(),d!==o.current&&t(o.current)}),u=or(a.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),j.useEffect(()=>{s(),t(o.current)},[t]),v.jsx("div",{style:iI,...n,ref:a})}function sI(e){return lt("MuiTabScrollButton",e)}const lI=it("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),cI=e=>{const{classes:t,orientation:n,disabled:o}=e;return ft({root:["root",n,o&&"disabled"]},sI,t)},uI=Re(ai,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${lI.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),dI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u,orientation:d,disabled:h,...y}=o,m=Cu(),b={isRtl:m,...o},w=cI(b),S=s.StartScrollButtonIcon??tI,E=s.EndScrollButtonIcon??nI,P=Yo({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),C=Yo({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return v.jsx(uI,{component:"div",className:Te(w.root,a),ref:n,role:null,ownerState:b,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:u==="left"?v.jsx(S,{...P}):v.jsx(E,{...C})})});function fI(e){return lt("MuiTabs",e)}const ed=it("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Xg=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Kg=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sl=(e,t,n)=>{let o=!1,a=n(e,t);for(;a;){if(a===e.firstChild){if(o)return;o=!0}const s=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||s)a=n(e,a);else{a.focus();return}}},pI=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:a,scrollableY:s,centered:l,scrollButtonsHideMobile:u,classes:d}=e;return ft({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",a&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},fI,d)},hI=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ed.scrollButtons}`]:t.scrollButtons},{[`& .${ed.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${ed.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),gI=Re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),mI=Re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),yI=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),vI=Re(aI)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Jg={},bI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabs"}),a=Ms(),s=Cu(),{"aria-label":l,"aria-labelledby":u,action:d,centered:h=!1,children:y,className:m,component:b="div",allowScrollButtonsMobile:w=!1,indicatorColor:S="primary",onChange:E,orientation:P="horizontal",ScrollButtonComponent:C=dI,scrollButtons:O="auto",selectionFollowsFocus:k,slots:R={},slotProps:$={},TabIndicatorProps:B={},TabScrollButtonProps:M={},textColor:z="primary",value:V,variant:_="standard",visibleScrollbar:G=!1,...re}=o,H=_==="scrollable",Q=P==="vertical",ee=Q?"scrollTop":"scrollLeft",le=Q?"top":"left",pe=Q?"bottom":"right",he=Q?"clientHeight":"clientWidth",be=Q?"height":"width",we={...o,component:b,allowScrollButtonsMobile:w,indicatorColor:S,orientation:P,vertical:Q,scrollButtons:O,textColor:z,variant:_,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!Q,scrollableY:H&&Q,centered:h&&!H,scrollButtonsHideMobile:!w},ue=pI(we),Ce=Yo({elementType:R.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:we}),De=Yo({elementType:R.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:we}),[Xe,Ke]=j.useState(!1),[He,gt]=j.useState(Jg),[se,de]=j.useState(!1),[ge,me]=j.useState(!1),[fe,Pe]=j.useState(!1),[ve,Be]=j.useState({overflow:"hidden",scrollbarWidth:0}),Ge=new Map,Ae=j.useRef(null),ke=j.useRef(null),We=()=>{const oe=Ae.current;let ae;if(oe){const _e=oe.getBoundingClientRect();ae={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Ee;if(oe&&V!==!1){const _e=ke.current.children;if(_e.length>0){const Tt=_e[Ge.get(V)];Ee=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:ae,tabMeta:Ee}},et=Br(()=>{const{tabsMeta:oe,tabMeta:ae}=We();let Ee=0,_e;Q?(_e="top",ae&&oe&&(Ee=ae.top-oe.top+oe.scrollTop)):(_e=s?"right":"left",ae&&oe&&(Ee=(s?-1:1)*(ae[_e]-oe[_e]+oe.scrollLeft)));const Tt={[_e]:Ee,[be]:ae?ae[be]:0};if(typeof He[_e]!="number"||typeof He[be]!="number")gt(Tt);else{const Xn=Math.abs(He[_e]-Tt[_e]),kr=Math.abs(He[be]-Tt[be]);(Xn>=1||kr>=1)&>(Tt)}}),Le=(oe,{animation:ae=!0}={})=>{ae?oI(ee,Ae.current,oe,{duration:a.transitions.duration.standard}):Ae.current[ee]=oe},xe=oe=>{let ae=Ae.current[ee];Q?ae+=oe:ae+=oe*(s?-1:1),Le(ae)},ut=()=>{const oe=Ae.current[he];let ae=0;const Ee=Array.from(ke.current.children);for(let _e=0;_e<Ee.length;_e+=1){const Tt=Ee[_e];if(ae+Tt[he]>oe){_e===0&&(ae=oe);break}ae+=Tt[he]}return ae},Ut=()=>{xe(-1*ut())},Ht=()=>{xe(ut())},Yn=j.useCallback(oe=>{Be({overflow:null,scrollbarWidth:oe})},[]),I=()=>{const oe={};oe.scrollbarSizeListener=H?v.jsx(vI,{onChange:Yn,className:Te(ue.scrollableX,ue.hideScrollbar)}):null;const Ee=H&&(O==="auto"&&(se||ge)||O===!0);return oe.scrollButtonStart=Ee?v.jsx(C,{slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ce},orientation:P,direction:s?"right":"left",onClick:Ut,disabled:!se,...M,className:Te(ue.scrollButtons,M.className)}):null,oe.scrollButtonEnd=Ee?v.jsx(C,{slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:De},orientation:P,direction:s?"left":"right",onClick:Ht,disabled:!ge,...M,className:Te(ue.scrollButtons,M.className)}):null,oe},p=Br(oe=>{const{tabsMeta:ae,tabMeta:Ee}=We();if(!(!Ee||!ae)){if(Ee[le]<ae[le]){const _e=ae[ee]+(Ee[le]-ae[le]);Le(_e,{animation:oe})}else if(Ee[pe]>ae[pe]){const _e=ae[ee]+(Ee[pe]-ae[pe]);Le(_e,{animation:oe})}}}),g=Br(()=>{H&&O!==!1&&Pe(!fe)});j.useEffect(()=>{const oe=Os(()=>{Ae.current&&et()});let ae;const Ee=Xn=>{Xn.forEach(kr=>{kr.removedNodes.forEach(io=>{ae==null||ae.unobserve(io)}),kr.addedNodes.forEach(io=>{ae==null||ae.observe(io)})}),oe(),g()},_e=or(Ae.current);_e.addEventListener("resize",oe);let Tt;return typeof ResizeObserver<"u"&&(ae=new ResizeObserver(oe),Array.from(ke.current.children).forEach(Xn=>{ae.observe(Xn)})),typeof MutationObserver<"u"&&(Tt=new MutationObserver(Ee),Tt.observe(ke.current,{childList:!0})),()=>{oe.clear(),_e.removeEventListener("resize",oe),Tt==null||Tt.disconnect(),ae==null||ae.disconnect()}},[et,g]),j.useEffect(()=>{const oe=Array.from(ke.current.children),ae=oe.length;if(typeof IntersectionObserver<"u"&&ae>0&&H&&O!==!1){const Ee=oe[0],_e=oe[ae-1],Tt={root:Ae.current,threshold:.99},Xn=Oa=>{de(!Oa[0].isIntersecting)},kr=new IntersectionObserver(Xn,Tt);kr.observe(Ee);const io=Oa=>{me(!Oa[0].isIntersecting)},Xl=new IntersectionObserver(io,Tt);return Xl.observe(_e),()=>{kr.disconnect(),Xl.disconnect()}}},[H,O,fe,y==null?void 0:y.length]),j.useEffect(()=>{Ke(!0)},[]),j.useEffect(()=>{et()}),j.useEffect(()=>{p(Jg!==He)},[p,He]),j.useImperativeHandle(d,()=>({updateIndicator:et,updateScrollButtons:g}),[et,g]);const D=v.jsx(yI,{...B,className:Te(ue.indicator,B.className),ownerState:we,style:{...He,...B.style}});let N=0;const q=j.Children.map(y,oe=>{if(!j.isValidElement(oe))return null;const ae=oe.props.value===void 0?N:oe.props.value;Ge.set(ae,N);const Ee=ae===V;return N+=1,j.cloneElement(oe,{fullWidth:_==="fullWidth",indicator:Ee&&!Xe&&D,selected:Ee,selectionFollowsFocus:k,onChange:E,textColor:z,value:ae,...N===1&&V===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),J=oe=>{const ae=ke.current,Ee=Un(ae).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Tt=P==="horizontal"?"ArrowLeft":"ArrowUp",Xn=P==="horizontal"?"ArrowRight":"ArrowDown";switch(P==="horizontal"&&s&&(Tt="ArrowRight",Xn="ArrowLeft"),oe.key){case Tt:oe.preventDefault(),sl(ae,Ee,Kg);break;case Xn:oe.preventDefault(),sl(ae,Ee,Xg);break;case"Home":oe.preventDefault(),sl(ae,null,Xg);break;case"End":oe.preventDefault(),sl(ae,null,Kg);break}},ce=I();return v.jsxs(hI,{className:Te(ue.root,m),ownerState:we,ref:n,as:b,...re,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,v.jsxs(gI,{className:ue.scroller,ownerState:we,style:{overflow:ve.overflow,[Q?`margin${s?"Left":"Right"}`:"marginBottom"]:G?void 0:-ve.scrollbarWidth},ref:Ae,children:[v.jsx(mI,{"aria-label":l,"aria-labelledby":u,"aria-orientation":P==="vertical"?"vertical":null,className:ue.flexContainer,ownerState:we,onKeyDown:J,ref:ke,role:"tablist",children:q}),Xe&&D]}),ce.scrollButtonEnd]})});var xn=function(){return xn=Object.assign||function(t){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},xn.apply(this,arguments)};function ha(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,s;o<a;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",ga="-moz-",ht="-webkit-",Zg="comm",ll="rule",td="decl",xI="@import",Qg="@keyframes",wI="@layer",em=Math.abs,nd=String.fromCharCode,rd=Object.assign;function SI(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function tm(e){return e.trim()}function Fr(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,n){return e.replace(t,n)}function cl(e,t,n){return e.indexOf(t,n)}function Kt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Cr(e){return e.length}function nm(e){return e.length}function ma(e,t){return t.push(e),e}function CI(e,t){return e.map(t).join("")}function rm(e,t){return e.filter(function(n){return!Fr(n,t)})}var ul=1,di=1,om=0,Vn=0,Wt=0,fi="";function dl(e,t,n,o,a,s,l,u){return{value:e,root:t,parent:n,type:o,props:a,children:s,line:ul,column:di,length:l,return:"",siblings:u}}function to(e,t){return rd(dl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pi(e){for(;e.root;)e=to(e.root,{children:[e]});ma(e,e.siblings)}function _I(){return Wt}function EI(){return Wt=Vn>0?Kt(fi,--Vn):0,di--,Wt===10&&(di=1,ul--),Wt}function ar(){return Wt=Vn<om?Kt(fi,Vn++):0,di++,Wt===10&&(di=1,ul++),Wt}function Co(){return Kt(fi,Vn)}function fl(){return Vn}function pl(e,t){return ui(fi,e,t)}function od(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function RI(e){return ul=di=1,om=Cr(fi=e),Vn=0,[]}function II(e){return fi="",e}function id(e){return tm(pl(Vn-1,ad(e===91?e+2:e===40?e+1:e)))}function kI(e){for(;(Wt=Co())&&Wt<33;)ar();return od(e)>2||od(Wt)>3?"":" "}function TI(e,t){for(;--t&&ar()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return pl(e,fl()+(t<6&&Co()==32&&ar()==32))}function ad(e){for(;ar();)switch(Wt){case e:return Vn;case 34:case 39:e!==34&&e!==39&&ad(Wt);break;case 40:e===41&&ad(e);break;case 92:ar();break}return Vn}function PI(e,t){for(;ar()&&e+Wt!==57;)if(e+Wt===84&&Co()===47)break;return"/*"+pl(t,Vn-1)+"*"+nd(e===47?e:ar())}function OI(e){for(;!od(Co());)ar();return pl(e,Vn)}function AI(e){return II(hl("",null,null,null,[""],e=RI(e),0,[0],e))}function hl(e,t,n,o,a,s,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,S=0,E=1,P=1,C=1,O=0,k="",R=a,$=s,B=o,M=k;P;)switch(S=O,O=ar()){case 40:if(S!=108&&Kt(M,m-1)==58){cl(M+=Ve(id(O),"&","&\f"),"&\f",em(h?u[h-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:M+=id(O);break;case 9:case 10:case 13:case 32:M+=kI(S);break;case 92:M+=TI(fl()-1,7);continue;case 47:switch(Co()){case 42:case 47:ma(MI(PI(ar(),fl()),t,n,d),d);break;default:M+="/"}break;case 123*E:u[h++]=Cr(M)*C;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:C==-1&&(M=Ve(M,/\f/g,"")),w>0&&Cr(M)-m&&ma(w>32?am(M+";",o,n,m-1,d):am(Ve(M," ","")+";",o,n,m-2,d),d);break;case 59:M+=";";default:if(ma(B=im(M,t,n,h,y,a,u,k,R=[],$=[],m,s),s),O===123)if(y===0)hl(M,t,B,B,R,s,m,u,$);else switch(b===99&&Kt(M,3)===110?100:b){case 100:case 108:case 109:case 115:hl(e,B,B,o&&ma(im(e,B,B,0,0,a,u,k,a,R=[],m,$),$),a,$,m,u,o?R:$);break;default:hl(M,B,B,B,[""],$,0,u,$)}}h=y=w=0,E=C=1,k=M="",m=l;break;case 58:m=1+Cr(M),w=S;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&EI()==125)continue}switch(M+=nd(O),O*E){case 38:C=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(Cr(M)-1)*C,C=1;break;case 64:Co()===45&&(M+=id(ar())),b=Co(),y=m=Cr(k=M+=OI(fl())),O++;break;case 45:S===45&&Cr(M)==2&&(E=0)}}return s}function im(e,t,n,o,a,s,l,u,d,h,y,m){for(var b=a-1,w=a===0?s:[""],S=nm(w),E=0,P=0,C=0;E<o;++E)for(var O=0,k=ui(e,b+1,b=em(P=l[E])),R=e;O<S;++O)(R=tm(P>0?w[O]+" "+k:Ve(k,/&\f/g,w[O])))&&(d[C++]=R);return dl(e,t,n,a===0?ll:u,d,h,y,m)}function MI(e,t,n,o){return dl(e,t,n,Zg,nd(_I()),ui(e,2,-2),0,o)}function am(e,t,n,o,a){return dl(e,t,n,td,ui(e,0,o),ui(e,o+1,-1),o,a)}function sm(e,t,n){switch(SI(e,t)){case 5103:return ht+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ht+e+e;case 4789:return ga+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+ga+e+Rt+e+e;case 5936:switch(Kt(e,t+11)){case 114:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ht+e+Rt+e+e;case 6165:return ht+e+Rt+"flex-"+e+e;case 5187:return ht+e+Ve(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return ht+e+Rt+"flex-item-"+Ve(e,/flex-|-self/g,"")+(Fr(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ve(e,/flex-|-self/g,""))+e;case 4675:return ht+e+Rt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/g,"")+e;case 5548:return ht+e+Rt+Ve(e,"shrink","negative")+e;case 5292:return ht+e+Rt+Ve(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ve(e,"-grow","")+ht+e+Rt+Ve(e,"grow","positive")+e;case 4554:return ht+Ve(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4200:if(!Fr(e,/flex-|baseline/))return Rt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return Rt+Ve(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(o,a){return t=a,Fr(o.props,/grid-\w+-end/)})?~cl(e+(n=n[t].value),"span",0)?e:Rt+Ve(e,"-start","")+e+Rt+"grid-row-span:"+(~cl(n,"span",0)?Fr(n,/\d+/):+Fr(n,/\d+/)-+Fr(e,/\d+/))+";":Rt+Ve(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(o){return Fr(o.props,/grid-\w+-start/)})?e:Rt+Ve(Ve(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,ht+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+ga+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cl(e,"stretch",0)?sm(Ve(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ve(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,a,s,l,u,d,h){return Rt+a+":"+s+h+(l?Rt+a+"-span:"+(u?d:+d-+s)+h:"")+e});case 4949:if(Kt(e,t+6)===121)return Ve(e,":",":"+ht)+e;break;case 6444:switch(Kt(e,Kt(e,14)===45?18:11)){case 120:return Ve(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ht+(Kt(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ve(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ve(e,"scroll-","scroll-snap-")+e}return e}function gl(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function $I(e,t,n,o){switch(e.type){case wI:if(e.children.length)break;case xI:case td:return e.return=e.return||e.value;case Zg:return"";case Qg:return e.return=e.value+"{"+gl(e.children,o)+"}";case ll:if(!Cr(e.value=e.props.join(",")))return""}return Cr(n=gl(e.children,o))?e.return=e.value+"{"+n+"}":""}function DI(e){var t=nm(e);return function(n,o,a,s){for(var l="",u=0;u<t;u++)l+=e[u](n,o,a,s)||"";return l}}function BI(e){return function(t){t.root||(t=t.return)&&e(t)}}function LI(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case td:e.return=sm(e.value,e.length,n);return;case Qg:return gl([to(e,{value:Ve(e.value,"@","@"+ht)})],o);case ll:if(e.length)return CI(n=e.props,function(a){switch(Fr(a,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pi(to(e,{props:[Ve(a,/:(read-\w+)/,":"+ga+"$1")]})),pi(to(e,{props:[a]})),rd(e,{props:rm(n,o)});break;case"::placeholder":pi(to(e,{props:[Ve(a,/:(plac\w+)/,":"+ht+"input-$1")]})),pi(to(e,{props:[Ve(a,/:(plac\w+)/,":"+ga+"$1")]})),pi(to(e,{props:[Ve(a,/:(plac\w+)/,Rt+"input-$1")]})),pi(to(e,{props:[a]})),rd(e,{props:rm(n,o)});break}return""})}}var jI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hi=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",lm="active",cm="data-styled-version",ml="6.1.13",sd=`/*!sc*/
|
|
152
|
-
`,yl=typeof window<"u"&&"HTMLElement"in window,NI=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),vl=Object.freeze([]),gi=Object.freeze({});function FI(e,t,n){return n===void 0&&(n=gi),e.theme!==n.theme&&e.theme||t||n.theme}var um=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),zI=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,WI=/(^-|-$)/g;function dm(e){return e.replace(zI,"-").replace(WI,"")}var UI=/(a)(d)/gi,bl=52,fm=function(e){return String.fromCharCode(e+(e>25?39:97))};function ld(e){var t,n="";for(t=Math.abs(e);t>bl;t=t/bl|0)n=fm(t%bl)+n;return(fm(t%bl)+n).replace(UI,"$1-$2")}var cd,pm=5381,mi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hm=function(e){return mi(pm,e)};function gm(e){return ld(hm(e)>>>0)}function HI(e){return e.displayName||e.name||"Component"}function ud(e){return typeof e=="string"&&!0}var mm=typeof Symbol=="function"&&Symbol.for,ym=mm?Symbol.for("react.memo"):60115,GI=mm?Symbol.for("react.forward_ref"):60112,qI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},VI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YI=((cd={})[GI]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cd[ym]=vm,cd);function bm(e){return("type"in(t=e)&&t.type.$$typeof)===ym?vm:"$$typeof"in e?YI[e.$$typeof]:qI;var t}var XI=Object.defineProperty,KI=Object.getOwnPropertyNames,xm=Object.getOwnPropertySymbols,JI=Object.getOwnPropertyDescriptor,ZI=Object.getPrototypeOf,wm=Object.prototype;function Sm(e,t,n){if(typeof t!="string"){if(wm){var o=ZI(t);o&&o!==wm&&Sm(e,o,n)}var a=KI(t);xm&&(a=a.concat(xm(t)));for(var s=bm(e),l=bm(t),u=0;u<a.length;++u){var d=a[u];if(!(d in VI||n&&n[d]||l&&d in l||s&&d in s)){var h=JI(t,d);try{XI(e,d,h)}catch{}}}}return e}function yi(e){return typeof e=="function"}function dd(e){return typeof e=="object"&&"styledComponentId"in e}function _o(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function fd(e,t){if(e.length===0)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ya(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pd(e,t,n){if(n===void 0&&(n=!1),!n&&!ya(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=pd(e[o],t[o]);else if(ya(t))for(var o in t)e[o]=pd(e[o],t[o]);return e}function hd(e,t){Object.defineProperty(e,"toString",{value:t})}function va(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var QI=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,o=0;o<t;o++)n+=this.groupSizes[o];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var o=this.groupSizes,a=o.length,s=a;t>=s;)if((s<<=1)<0)throw va(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(var l=a;l<s;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(u,n[l])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n;this.groupSizes[t]=0;for(var s=o;s<a;s++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var o=this.groupSizes[t],a=this.indexOfGroup(t),s=a+o,l=a;l<s;l++)n+="".concat(this.tag.getRule(l)).concat(sd);return n},e}(),xl=new Map,wl=new Map,Sl=1,Cl=function(e){if(xl.has(e))return xl.get(e);for(;wl.has(Sl);)Sl++;var t=Sl++;return xl.set(e,t),wl.set(t,e),t},ek=function(e,t){Sl=t+1,xl.set(e,t),wl.set(t,e)},tk="style[".concat(hi,"][").concat(cm,'="').concat(ml,'"]'),nk=new RegExp("^".concat(hi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),rk=function(e,t,n){for(var o,a=n.split(","),s=0,l=a.length;s<l;s++)(o=a[s])&&e.registerName(t,o)},ok=function(e,t){for(var n,o=((n=t.textContent)!==null&&n!==void 0?n:"").split(sd),a=[],s=0,l=o.length;s<l;s++){var u=o[s].trim();if(u){var d=u.match(nk);if(d){var h=0|parseInt(d[1],10),y=d[2];h!==0&&(ek(y,h),rk(e,y,d[3]),e.getTag().insertRules(h,a)),a.length=0}else a.push(u)}}},Cm=function(e){for(var t=document.querySelectorAll(tk),n=0,o=t.length;n<o;n++){var a=t[n];a&&a.getAttribute(hi)!==lm&&(ok(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function ik(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var _m=function(e){var t=document.head,n=e||t,o=document.createElement("style"),a=function(u){var d=Array.from(u.querySelectorAll("style[".concat(hi,"]")));return d[d.length-1]}(n),s=a!==void 0?a.nextSibling:null;o.setAttribute(hi,lm),o.setAttribute(cm,ml);var l=ik();return l&&o.setAttribute("nonce",l),n.insertBefore(o,s),o},ak=function(){function e(t){this.element=_m(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var l=o[a];if(l.ownerNode===n)return l}throw va(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),sk=function(){function e(t){this.element=_m(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var o=document.createTextNode(n);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),lk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Em=yl,ck={isServer:!yl,useCSSOMInjection:!NI},Rm=function(){function e(t,n,o){t===void 0&&(t=gi),n===void 0&&(n={});var a=this;this.options=xn(xn({},ck),t),this.gs=n,this.names=new Map(o),this.server=!!t.isServer,!this.server&&yl&&Em&&(Em=!1,Cm(this)),hd(this,function(){return function(s){for(var l=s.getTag(),u=l.length,d="",h=function(m){var b=function(C){return wl.get(C)}(m);if(b===void 0)return"continue";var w=s.names.get(b),S=l.getGroup(m);if(w===void 0||!w.size||S.length===0)return"continue";var E="".concat(hi,".g").concat(m,'[id="').concat(b,'"]'),P="";w!==void 0&&w.forEach(function(C){C.length>0&&(P+="".concat(C,","))}),d+="".concat(S).concat(E,'{content:"').concat(P,'"}').concat(sd)},y=0;y<u;y++)h(y);return d}(a)})}return e.registerId=function(t){return Cl(t)},e.prototype.rehydrate=function(){!this.server&&yl&&Cm(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(xn(xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var o=n.useCSSOMInjection,a=n.target;return n.isServer?new lk(a):o?new ak(a):new sk(a)}(this.options),new QI(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Cl(t),this.names.has(t))this.names.get(t).add(n);else{var o=new Set;o.add(n),this.names.set(t,o)}},e.prototype.insertRules=function(t,n,o){this.registerName(t,n),this.getTag().insertRules(Cl(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Cl(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),uk=/&/g,dk=/^\s*\/\/.*$/gm;function Im(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Im(n.children,t)),n})}function fk(e){var t,n,o,a=gi,s=a.options,l=s===void 0?gi:s,u=a.plugins,d=u===void 0?vl:u,h=function(b,w,S){return S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):b},y=d.slice();y.push(function(b){b.type===ll&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(uk,n).replace(o,h))}),l.prefix&&y.push(LI),y.push($I);var m=function(b,w,S,E){w===void 0&&(w=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=w,o=new RegExp("\\".concat(n,"\\b"),"g");var P=b.replace(dk,""),C=AI(S||w?"".concat(S," ").concat(w," { ").concat(P," }"):P);l.namespace&&(C=Im(C,l.namespace));var O=[];return gl(C,DI(y.concat(BI(function(k){return O.push(k)})))),O};return m.hash=d.length?d.reduce(function(b,w){return w.name||va(15),mi(b,w.name)},pm).toString():"",m}var pk=new Rm,gd=fk(),km=X.createContext({shouldForwardProp:void 0,styleSheet:pk,stylis:gd});km.Consumer,X.createContext(void 0);function Tm(){return X.useContext(km)}var Pm=function(){function e(t,n){var o=this;this.inject=function(a,s){s===void 0&&(s=gd);var l=o.name+s.hash;a.hasNameForId(o.id,l)||a.insertRules(o.id,l,s(o.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,hd(this,function(){throw va(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gd),this.name+t.hash},e}(),hk=function(e){return e>="A"&&e<="Z"};function Om(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(n===1&&o==="-"&&e[0]==="-")return e;hk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Am=function(e){return e==null||e===!1||e===""},Mm=function(e){var t,n,o=[];for(var a in e){var s=e[a];e.hasOwnProperty(a)&&!Am(s)&&(Array.isArray(s)&&s.isCss||yi(s)?o.push("".concat(Om(a),":"),s,";"):ya(s)?o.push.apply(o,ha(ha(["".concat(a," {")],Mm(s),!1),["}"],!1)):o.push("".concat(Om(a),": ").concat((t=a,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in jI||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Eo(e,t,n,o){if(Am(e))return[];if(dd(e))return[".".concat(e.styledComponentId)];if(yi(e)){if(!yi(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var a=e(t);return Eo(a,t,n,o)}var s;return e instanceof Pm?n?(e.inject(n,o),[e.getName(o)]):[e]:ya(e)?Mm(e):Array.isArray(e)?Array.prototype.concat.apply(vl,e.map(function(l){return Eo(l,t,n,o)})):[e.toString()]}function gk(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(yi(n)&&!dd(n))return!1}return!0}var mk=hm(ml),yk=function(){function e(t,n,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&gk(t),this.componentId=n,this.baseHash=mi(mk,n),this.baseStyle=o,Rm.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,o){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))a=_o(a,this.staticRulesId);else{var s=fd(Eo(this.rules,t,n,o)),l=ld(mi(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,l)){var u=o(s,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,u)}a=_o(a,l),this.staticRulesId=l}else{for(var d=mi(this.baseHash,o.hash),h="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")h+=m;else if(m){var b=fd(Eo(m,t,n,o));d=mi(d,b+y),h+=b}}if(h){var w=ld(d>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,o(h,".".concat(w),void 0,this.componentId)),a=_o(a,w)}}return a},e}(),$m=X.createContext(void 0);$m.Consumer;var md={};function vk(e,t,n){var o=dd(e),a=e,s=!ud(e),l=t.attrs,u=l===void 0?vl:l,d=t.componentId,h=d===void 0?function(R,$){var B=typeof R!="string"?"sc":dm(R);md[B]=(md[B]||0)+1;var M="".concat(B,"-").concat(gm(ml+B+md[B]));return $?"".concat($,"-").concat(M):M}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(R){return ud(R)?"styled.".concat(R):"Styled(".concat(HI(R),")")}(e):y,b=t.displayName&&t.componentId?"".concat(dm(t.displayName),"-").concat(t.componentId):t.componentId||h,w=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,S=t.shouldForwardProp;if(o&&a.shouldForwardProp){var E=a.shouldForwardProp;if(t.shouldForwardProp){var P=t.shouldForwardProp;S=function(R,$){return E(R,$)&&P(R,$)}}else S=E}var C=new yk(n,b,o?a.componentStyle:void 0);function O(R,$){return function(B,M,z){var V=B.attrs,_=B.componentStyle,G=B.defaultProps,re=B.foldedComponentIds,H=B.styledComponentId,Q=B.target,ee=X.useContext($m),le=Tm(),pe=B.shouldForwardProp||le.shouldForwardProp,he=FI(M,ee,G)||gi,be=function(Ke,He,gt){for(var se,de=xn(xn({},He),{className:void 0,theme:gt}),ge=0;ge<Ke.length;ge+=1){var me=yi(se=Ke[ge])?se(de):se;for(var fe in me)de[fe]=fe==="className"?_o(de[fe],me[fe]):fe==="style"?xn(xn({},de[fe]),me[fe]):me[fe]}return He.className&&(de.className=_o(de.className,He.className)),de}(V,M,he),we=be.as||Q,ue={};for(var Ce in be)be[Ce]===void 0||Ce[0]==="$"||Ce==="as"||Ce==="theme"&&be.theme===he||(Ce==="forwardedAs"?ue.as=be.forwardedAs:pe&&!pe(Ce,we)||(ue[Ce]=be[Ce]));var De=function(Ke,He){var gt=Tm(),se=Ke.generateAndInjectStyles(He,gt.styleSheet,gt.stylis);return se}(_,be),Xe=_o(re,H);return De&&(Xe+=" "+De),be.className&&(Xe+=" "+be.className),ue[ud(we)&&!um.has(we)?"class":"className"]=Xe,ue.ref=z,X.createElement(we,ue)}(k,R,$)}O.displayName=m;var k=X.forwardRef(O);return k.attrs=w,k.componentStyle=C,k.displayName=m,k.shouldForwardProp=S,k.foldedComponentIds=o?_o(a.foldedComponentIds,a.styledComponentId):"",k.styledComponentId=b,k.target=o?a.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=o?function($){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];for(var z=0,V=B;z<V.length;z++)pd($,V[z],!0);return $}({},a.defaultProps,R):R}}),hd(k,function(){return".".concat(k.styledComponentId)}),s&&Sm(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Dm(e,t){for(var n=[e[0]],o=0,a=t.length;o<a;o+=1)n.push(t[o],e[o+1]);return n}var Bm=function(e){return Object.assign(e,{isCss:!0})};function Lm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(yi(e)||ya(e))return Bm(Eo(Dm(vl,ha([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?Eo(o):Bm(Eo(Dm(o,t)))}function yd(e,t,n){if(n===void 0&&(n=gi),!t)throw va(1,t);var o=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];return e(t,n,Lm.apply(void 0,ha([a],s,!1)))};return o.attrs=function(a){return yd(e,t,xn(xn({},n),{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return yd(e,t,xn(xn({},n),a))},o}var jm=function(e){return yd(vk,e)},nt=jm;um.forEach(function(e){nt[e]=jm(e)});function bk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=fd(Lm.apply(void 0,ha([e],t,!1))),a=gm(o);return new Pm(a,o)}const xk=nt.div`
|
|
147
|
+
`,BR=typeof Ku!="string"?au`
|
|
148
|
+
animation: ${Ku} 1.4s linear infinite;
|
|
149
|
+
`:null,LR=typeof Ju!="string"?au`
|
|
150
|
+
animation: ${Ju} 1.4s ease-in-out infinite;
|
|
151
|
+
`:null,jR=e=>{const{classes:t,variant:n,color:o,disableShrink:a}=e,s={root:["root",n,`color${je(o)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,a&&"circleDisableShrink"]};return ft(s,DR,t)},NR=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(vt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:BR||{animation:`${Ku} 1.4s linear infinite`}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),FR=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zR=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:LR||{animation:`${Ju} 1.4s ease-in-out infinite`}}]}))),WR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:l=!1,size:u=40,style:d,thickness:h=3.6,value:y=0,variant:m="indeterminate",...b}=o,w={...o,color:s,disableShrink:l,size:u,thickness:h,value:y,variant:m},_=jR(w),E={},P={},S={};if(m==="determinate"){const O=2*Math.PI*((eo-h)/2);E.strokeDasharray=O.toFixed(3),S["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*O).toFixed(3)}px`,P.transform="rotate(-90deg)"}return v.jsx(NR,{className:Te(_.root,a),style:{width:u,height:u,...P,...d},ownerState:w,ref:n,role:"progressbar",...S,...b,children:v.jsx(FR,{className:_.svg,ownerState:w,viewBox:`${eo/2} ${eo/2} ${eo} ${eo}`,children:v.jsx(zR,{className:_.circle,style:E,ownerState:w,cx:eo,cy:eo,r:(eo-h)/2,fill:"none",strokeWidth:h})})})}),qg=it("MuiListItemIcon",["root","alignItemsFlexStart"]);function UR(e){return lt("MuiListItemText",e)}const ui=it("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),HR=e=>{const{classes:t,inset:n,primary:o,secondary:a,dense:s}=e;return ft({root:["root",n&&"inset",s&&"dense",o&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},UR,t)},GR=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ui.primary}`]:t.primary},{[`& .${ui.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Hg.root}:where(& .${ui.primary})`]:{display:"block"},[`.${Hg.root}:where(& .${ui.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vg=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:u=!1,primary:d,primaryTypographyProps:h,secondary:y,secondaryTypographyProps:m,...b}=o,{dense:w}=j.useContext(oi);let _=d??a,E=y;const P={...o,disableTypography:l,inset:u,primary:!!_,secondary:!!E,dense:w},S=HR(P);return _!=null&&_.type!==al&&!l&&(_=v.jsx(al,{variant:w?"body2":"body1",className:S.primary,component:h!=null&&h.variant?void 0:"span",...h,children:_})),E!=null&&E.type!==al&&!l&&(E=v.jsx(al,{variant:"body2",className:S.secondary,color:"textSecondary",...m,children:E})),v.jsxs(GR,{className:Te(S.root,s),ownerState:P,ref:n,...b,children:[_,E]})});function qR(e){return lt("MuiMenuItem",e)}const pa=it("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},YR=e=>{const{disabled:t,dense:n,divider:o,disableGutters:a,selected:s,classes:l}=e,d=ft({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",o&&"divider",s&&"selected"]},qR,l);return{...l,...d}},XR=Re(si,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VR})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Wg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Wg.inset}`]:{marginLeft:52},[`& .${ui.root}`]:{marginTop:0,marginBottom:0},[`& .${ui.inset}`]:{paddingLeft:36},[`& .${qg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${qg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:h,role:y="menuitem",tabIndex:m,className:b,...w}=o,_=j.useContext(oi),E=j.useMemo(()=>({dense:l||_.dense||!1,disableGutters:d}),[_.dense,l,d]),P=j.useRef(null);br(()=>{a&&P.current&&P.current.focus()},[a]);const S={...o,dense:E.dense,divider:u,disableGutters:d},O=YR(o),k=Xt(P,n);let I;return o.disabled||(I=m!==void 0?m:-1),v.jsx(oi.Provider,{value:E,children:v.jsx(XR,{ref:k,role:y,tabIndex:I,component:s,focusVisibleClassName:Te(O.focusVisible,h),className:Te(O.root,b),...w,ownerState:S,classes:O})})});function KR(e){return lt("MuiTab",e)}const qn=it("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),JR=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:a,icon:s,label:l,selected:u,disabled:d}=e,h={root:["root",s&&l&&"labelIcon",`textColor${je(n)}`,o&&"fullWidth",a&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return ft(h,KR,t)},ZR=Re(si,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${qn.iconWrapper}`]:t.iconWrapper},{[`& .${qn.icon}`]:t.icon}]}})(vt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${qn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${qn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${qn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${qn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${qn.selected}`]:{opacity:1},[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),QR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u,icon:d,iconPosition:h="top",indicator:y,label:m,onChange:b,onClick:w,onFocus:_,selected:E,selectionFollowsFocus:P,textColor:S="inherit",value:O,wrapped:k=!1,...I}=o,M={...o,disabled:s,disableFocusRipple:l,selected:E,icon:!!d,iconPosition:h,label:!!m,fullWidth:u,textColor:S,wrapped:k},B=JR(M),D=d&&m&&j.isValidElement(d)?j.cloneElement(d,{className:Te(B.icon,d.props.className)}):d,V=C=>{!E&&b&&b(C,O),w&&w(C)},U=C=>{P&&!E&&b&&b(C,O),_&&_(C)};return v.jsxs(ZR,{focusRipple:!l,className:Te(B.root,a),ref:n,role:"tab","aria-selected":E,disabled:s,onClick:V,onFocus:U,ownerState:M,tabIndex:E?0:-1,...I,children:[h==="top"||h==="start"?v.jsxs(j.Fragment,{children:[D,m]}):v.jsxs(j.Fragment,{children:[m,D]}),y]})}),eI=pn(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tI=pn(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function nI(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function rI(e,t,n,o={},a=()=>{}){const{ease:s=nI,duration:l=300}=o;let u=null;const d=t[e];let h=!1;const y=()=>{h=!0},m=b=>{if(h){a(new Error("Animation cancelled"));return}u===null&&(u=b);const w=Math.min(1,(b-u)/l);if(t[e]=s(w)*(n-d)+d,w>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(m)};return d===n?(a(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const oI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function iI(e){const{onChange:t,...n}=e,o=j.useRef(),a=j.useRef(null),s=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return br(()=>{const l=Os(()=>{const d=o.current;s(),d!==o.current&&t(o.current)}),u=or(a.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),j.useEffect(()=>{s(),t(o.current)},[t]),v.jsx("div",{style:oI,...n,ref:a})}function aI(e){return lt("MuiTabScrollButton",e)}const sI=it("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),lI=e=>{const{classes:t,orientation:n,disabled:o}=e;return ft({root:["root",n,o&&"disabled"]},aI,t)},cI=Re(si,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${sI.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),uI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u,orientation:d,disabled:h,...y}=o,m=Su(),b={isRtl:m,...o},w=lI(b),_=s.StartScrollButtonIcon??eI,E=s.EndScrollButtonIcon??tI,P=Xo({elementType:_,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),S=Xo({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return v.jsx(cI,{component:"div",className:Te(w.root,a),ref:n,role:null,ownerState:b,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:u==="left"?v.jsx(_,{...P}):v.jsx(E,{...S})})});function dI(e){return lt("MuiTabs",e)}const Qu=it("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Yg=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Xg=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sl=(e,t,n)=>{let o=!1,a=n(e,t);for(;a;){if(a===e.firstChild){if(o)return;o=!0}const s=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||s)a=n(e,a);else{a.focus();return}}},fI=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:a,scrollableY:s,centered:l,scrollButtonsHideMobile:u,classes:d}=e;return ft({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",a&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},dI,d)},pI=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qu.scrollButtons}`]:t.scrollButtons},{[`& .${Qu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Qu.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),hI=Re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),gI=Re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),mI=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),yI=Re(iI)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Kg={},vI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabs"}),a=Ms(),s=Su(),{"aria-label":l,"aria-labelledby":u,action:d,centered:h=!1,children:y,className:m,component:b="div",allowScrollButtonsMobile:w=!1,indicatorColor:_="primary",onChange:E,orientation:P="horizontal",ScrollButtonComponent:S=uI,scrollButtons:O="auto",selectionFollowsFocus:k,slots:I={},slotProps:M={},TabIndicatorProps:B={},TabScrollButtonProps:D={},textColor:V="primary",value:U,variant:C="standard",visibleScrollbar:G=!1,...Z}=o,H=C==="scrollable",K=P==="vertical",te=K?"scrollTop":"scrollLeft",se=K?"top":"left",de=K?"bottom":"right",he=K?"clientHeight":"clientWidth",be=K?"height":"width",we={...o,component:b,allowScrollButtonsMobile:w,indicatorColor:_,orientation:P,vertical:K,scrollButtons:O,textColor:V,variant:C,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!K,scrollableY:H&&K,centered:h&&!H,scrollButtonsHideMobile:!w},ue=fI(we),Ce=Xo({elementType:I.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:we}),De=Xo({elementType:I.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:we}),[Xe,Ke]=j.useState(!1),[He,gt]=j.useState(Kg),[le,fe]=j.useState(!1),[ge,me]=j.useState(!1),[pe,Pe]=j.useState(!1),[ve,Be]=j.useState({overflow:"hidden",scrollbarWidth:0}),Ge=new Map,Ae=j.useRef(null),ke=j.useRef(null),We=()=>{const oe=Ae.current;let ae;if(oe){const _e=oe.getBoundingClientRect();ae={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Ee;if(oe&&U!==!1){const _e=ke.current.children;if(_e.length>0){const Tt=_e[Ge.get(U)];Ee=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:ae,tabMeta:Ee}},tt=Br(()=>{const{tabsMeta:oe,tabMeta:ae}=We();let Ee=0,_e;K?(_e="top",ae&&oe&&(Ee=ae.top-oe.top+oe.scrollTop)):(_e=s?"right":"left",ae&&oe&&(Ee=(s?-1:1)*(ae[_e]-oe[_e]+oe.scrollLeft)));const Tt={[_e]:Ee,[be]:ae?ae[be]:0};if(typeof He[_e]!="number"||typeof He[be]!="number")gt(Tt);else{const Xn=Math.abs(He[_e]-Tt[_e]),kr=Math.abs(He[be]-Tt[be]);(Xn>=1||kr>=1)&>(Tt)}}),Le=(oe,{animation:ae=!0}={})=>{ae?rI(te,Ae.current,oe,{duration:a.transitions.duration.standard}):Ae.current[te]=oe},xe=oe=>{let ae=Ae.current[te];K?ae+=oe:ae+=oe*(s?-1:1),Le(ae)},ut=()=>{const oe=Ae.current[he];let ae=0;const Ee=Array.from(ke.current.children);for(let _e=0;_e<Ee.length;_e+=1){const Tt=Ee[_e];if(ae+Tt[he]>oe){_e===0&&(ae=oe);break}ae+=Tt[he]}return ae},Ut=()=>{xe(-1*ut())},Ht=()=>{xe(ut())},Yn=j.useCallback(oe=>{Be({overflow:null,scrollbarWidth:oe})},[]),R=()=>{const oe={};oe.scrollbarSizeListener=H?v.jsx(yI,{onChange:Yn,className:Te(ue.scrollableX,ue.hideScrollbar)}):null;const Ee=H&&(O==="auto"&&(le||ge)||O===!0);return oe.scrollButtonStart=Ee?v.jsx(S,{slots:{StartScrollButtonIcon:I.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ce},orientation:P,direction:s?"right":"left",onClick:Ut,disabled:!le,...D,className:Te(ue.scrollButtons,D.className)}):null,oe.scrollButtonEnd=Ee?v.jsx(S,{slots:{EndScrollButtonIcon:I.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:De},orientation:P,direction:s?"left":"right",onClick:Ht,disabled:!ge,...D,className:Te(ue.scrollButtons,D.className)}):null,oe},p=Br(oe=>{const{tabsMeta:ae,tabMeta:Ee}=We();if(!(!Ee||!ae)){if(Ee[se]<ae[se]){const _e=ae[te]+(Ee[se]-ae[se]);Le(_e,{animation:oe})}else if(Ee[de]>ae[de]){const _e=ae[te]+(Ee[de]-ae[de]);Le(_e,{animation:oe})}}}),g=Br(()=>{H&&O!==!1&&Pe(!pe)});j.useEffect(()=>{const oe=Os(()=>{Ae.current&&tt()});let ae;const Ee=Xn=>{Xn.forEach(kr=>{kr.removedNodes.forEach(io=>{ae==null||ae.unobserve(io)}),kr.addedNodes.forEach(io=>{ae==null||ae.observe(io)})}),oe(),g()},_e=or(Ae.current);_e.addEventListener("resize",oe);let Tt;return typeof ResizeObserver<"u"&&(ae=new ResizeObserver(oe),Array.from(ke.current.children).forEach(Xn=>{ae.observe(Xn)})),typeof MutationObserver<"u"&&(Tt=new MutationObserver(Ee),Tt.observe(ke.current,{childList:!0})),()=>{oe.clear(),_e.removeEventListener("resize",oe),Tt==null||Tt.disconnect(),ae==null||ae.disconnect()}},[tt,g]),j.useEffect(()=>{const oe=Array.from(ke.current.children),ae=oe.length;if(typeof IntersectionObserver<"u"&&ae>0&&H&&O!==!1){const Ee=oe[0],_e=oe[ae-1],Tt={root:Ae.current,threshold:.99},Xn=Oa=>{fe(!Oa[0].isIntersecting)},kr=new IntersectionObserver(Xn,Tt);kr.observe(Ee);const io=Oa=>{me(!Oa[0].isIntersecting)},Yl=new IntersectionObserver(io,Tt);return Yl.observe(_e),()=>{kr.disconnect(),Yl.disconnect()}}},[H,O,pe,y==null?void 0:y.length]),j.useEffect(()=>{Ke(!0)},[]),j.useEffect(()=>{tt()}),j.useEffect(()=>{p(Kg!==He)},[p,He]),j.useImperativeHandle(d,()=>({updateIndicator:tt,updateScrollButtons:g}),[tt,g]);const $=v.jsx(mI,{...B,className:Te(ue.indicator,B.className),ownerState:we,style:{...He,...B.style}});let N=0;const q=j.Children.map(y,oe=>{if(!j.isValidElement(oe))return null;const ae=oe.props.value===void 0?N:oe.props.value;Ge.set(ae,N);const Ee=ae===U;return N+=1,j.cloneElement(oe,{fullWidth:C==="fullWidth",indicator:Ee&&!Xe&&$,selected:Ee,selectionFollowsFocus:k,onChange:E,textColor:V,value:ae,...N===1&&U===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),Q=oe=>{const ae=ke.current,Ee=Un(ae).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Tt=P==="horizontal"?"ArrowLeft":"ArrowUp",Xn=P==="horizontal"?"ArrowRight":"ArrowDown";switch(P==="horizontal"&&s&&(Tt="ArrowRight",Xn="ArrowLeft"),oe.key){case Tt:oe.preventDefault(),sl(ae,Ee,Xg);break;case Xn:oe.preventDefault(),sl(ae,Ee,Yg);break;case"Home":oe.preventDefault(),sl(ae,null,Yg);break;case"End":oe.preventDefault(),sl(ae,null,Xg);break}},ce=R();return v.jsxs(pI,{className:Te(ue.root,m),ownerState:we,ref:n,as:b,...Z,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,v.jsxs(hI,{className:ue.scroller,ownerState:we,style:{overflow:ve.overflow,[K?`margin${s?"Left":"Right"}`:"marginBottom"]:G?void 0:-ve.scrollbarWidth},ref:Ae,children:[v.jsx(gI,{"aria-label":l,"aria-labelledby":u,"aria-orientation":P==="vertical"?"vertical":null,className:ue.flexContainer,ownerState:we,onKeyDown:Q,ref:ke,role:"tablist",children:q}),Xe&&$]}),ce.scrollButtonEnd]})});var xn=function(){return xn=Object.assign||function(t){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},xn.apply(this,arguments)};function ha(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,s;o<a;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",ga="-moz-",ht="-webkit-",Jg="comm",ll="rule",ed="decl",bI="@import",Zg="@keyframes",xI="@layer",Qg=Math.abs,td=String.fromCharCode,nd=Object.assign;function wI(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function em(e){return e.trim()}function Fr(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,n){return e.replace(t,n)}function cl(e,t,n){return e.indexOf(t,n)}function Kt(e,t){return e.charCodeAt(t)|0}function di(e,t,n){return e.slice(t,n)}function Cr(e){return e.length}function tm(e){return e.length}function ma(e,t){return t.push(e),e}function SI(e,t){return e.map(t).join("")}function nm(e,t){return e.filter(function(n){return!Fr(n,t)})}var ul=1,fi=1,rm=0,Vn=0,Wt=0,pi="";function dl(e,t,n,o,a,s,l,u){return{value:e,root:t,parent:n,type:o,props:a,children:s,line:ul,column:fi,length:l,return:"",siblings:u}}function to(e,t){return nd(dl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function hi(e){for(;e.root;)e=to(e.root,{children:[e]});ma(e,e.siblings)}function CI(){return Wt}function _I(){return Wt=Vn>0?Kt(pi,--Vn):0,fi--,Wt===10&&(fi=1,ul--),Wt}function ar(){return Wt=Vn<rm?Kt(pi,Vn++):0,fi++,Wt===10&&(fi=1,ul++),Wt}function Co(){return Kt(pi,Vn)}function fl(){return Vn}function pl(e,t){return di(pi,e,t)}function rd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function EI(e){return ul=fi=1,rm=Cr(pi=e),Vn=0,[]}function RI(e){return pi="",e}function od(e){return em(pl(Vn-1,id(e===91?e+2:e===40?e+1:e)))}function II(e){for(;(Wt=Co())&&Wt<33;)ar();return rd(e)>2||rd(Wt)>3?"":" "}function kI(e,t){for(;--t&&ar()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return pl(e,fl()+(t<6&&Co()==32&&ar()==32))}function id(e){for(;ar();)switch(Wt){case e:return Vn;case 34:case 39:e!==34&&e!==39&&id(Wt);break;case 40:e===41&&id(e);break;case 92:ar();break}return Vn}function TI(e,t){for(;ar()&&e+Wt!==57;)if(e+Wt===84&&Co()===47)break;return"/*"+pl(t,Vn-1)+"*"+td(e===47?e:ar())}function PI(e){for(;!rd(Co());)ar();return pl(e,Vn)}function OI(e){return RI(hl("",null,null,null,[""],e=EI(e),0,[0],e))}function hl(e,t,n,o,a,s,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,_=0,E=1,P=1,S=1,O=0,k="",I=a,M=s,B=o,D=k;P;)switch(_=O,O=ar()){case 40:if(_!=108&&Kt(D,m-1)==58){cl(D+=Ve(od(O),"&","&\f"),"&\f",Qg(h?u[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:D+=od(O);break;case 9:case 10:case 13:case 32:D+=II(_);break;case 92:D+=kI(fl()-1,7);continue;case 47:switch(Co()){case 42:case 47:ma(AI(TI(ar(),fl()),t,n,d),d);break;default:D+="/"}break;case 123*E:u[h++]=Cr(D)*S;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:S==-1&&(D=Ve(D,/\f/g,"")),w>0&&Cr(D)-m&&ma(w>32?im(D+";",o,n,m-1,d):im(Ve(D," ","")+";",o,n,m-2,d),d);break;case 59:D+=";";default:if(ma(B=om(D,t,n,h,y,a,u,k,I=[],M=[],m,s),s),O===123)if(y===0)hl(D,t,B,B,I,s,m,u,M);else switch(b===99&&Kt(D,3)===110?100:b){case 100:case 108:case 109:case 115:hl(e,B,B,o&&ma(om(e,B,B,0,0,a,u,k,a,I=[],m,M),M),a,M,m,u,o?I:M);break;default:hl(D,B,B,B,[""],M,0,u,M)}}h=y=w=0,E=S=1,k=D="",m=l;break;case 58:m=1+Cr(D),w=_;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&_I()==125)continue}switch(D+=td(O),O*E){case 38:S=y>0?1:(D+="\f",-1);break;case 44:u[h++]=(Cr(D)-1)*S,S=1;break;case 64:Co()===45&&(D+=od(ar())),b=Co(),y=m=Cr(k=D+=PI(fl())),O++;break;case 45:_===45&&Cr(D)==2&&(E=0)}}return s}function om(e,t,n,o,a,s,l,u,d,h,y,m){for(var b=a-1,w=a===0?s:[""],_=tm(w),E=0,P=0,S=0;E<o;++E)for(var O=0,k=di(e,b+1,b=Qg(P=l[E])),I=e;O<_;++O)(I=em(P>0?w[O]+" "+k:Ve(k,/&\f/g,w[O])))&&(d[S++]=I);return dl(e,t,n,a===0?ll:u,d,h,y,m)}function AI(e,t,n,o){return dl(e,t,n,Jg,td(CI()),di(e,2,-2),0,o)}function im(e,t,n,o,a){return dl(e,t,n,ed,di(e,0,o),di(e,o+1,-1),o,a)}function am(e,t,n){switch(wI(e,t)){case 5103:return ht+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ht+e+e;case 4789:return ga+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+ga+e+Rt+e+e;case 5936:switch(Kt(e,t+11)){case 114:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ht+e+Rt+e+e;case 6165:return ht+e+Rt+"flex-"+e+e;case 5187:return ht+e+Ve(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return ht+e+Rt+"flex-item-"+Ve(e,/flex-|-self/g,"")+(Fr(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ve(e,/flex-|-self/g,""))+e;case 4675:return ht+e+Rt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/g,"")+e;case 5548:return ht+e+Rt+Ve(e,"shrink","negative")+e;case 5292:return ht+e+Rt+Ve(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ve(e,"-grow","")+ht+e+Rt+Ve(e,"grow","positive")+e;case 4554:return ht+Ve(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4200:if(!Fr(e,/flex-|baseline/))return Rt+"grid-column-align"+di(e,t)+e;break;case 2592:case 3360:return Rt+Ve(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(o,a){return t=a,Fr(o.props,/grid-\w+-end/)})?~cl(e+(n=n[t].value),"span",0)?e:Rt+Ve(e,"-start","")+e+Rt+"grid-row-span:"+(~cl(n,"span",0)?Fr(n,/\d+/):+Fr(n,/\d+/)-+Fr(e,/\d+/))+";":Rt+Ve(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(o){return Fr(o.props,/grid-\w+-start/)})?e:Rt+Ve(Ve(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,ht+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+ga+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cl(e,"stretch",0)?am(Ve(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ve(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,a,s,l,u,d,h){return Rt+a+":"+s+h+(l?Rt+a+"-span:"+(u?d:+d-+s)+h:"")+e});case 4949:if(Kt(e,t+6)===121)return Ve(e,":",":"+ht)+e;break;case 6444:switch(Kt(e,Kt(e,14)===45?18:11)){case 120:return Ve(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ht+(Kt(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ve(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ve(e,"scroll-","scroll-snap-")+e}return e}function gl(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function MI(e,t,n,o){switch(e.type){case xI:if(e.children.length)break;case bI:case ed:return e.return=e.return||e.value;case Jg:return"";case Zg:return e.return=e.value+"{"+gl(e.children,o)+"}";case ll:if(!Cr(e.value=e.props.join(",")))return""}return Cr(n=gl(e.children,o))?e.return=e.value+"{"+n+"}":""}function $I(e){var t=tm(e);return function(n,o,a,s){for(var l="",u=0;u<t;u++)l+=e[u](n,o,a,s)||"";return l}}function DI(e){return function(t){t.root||(t=t.return)&&e(t)}}function BI(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ed:e.return=am(e.value,e.length,n);return;case Zg:return gl([to(e,{value:Ve(e.value,"@","@"+ht)})],o);case ll:if(e.length)return SI(n=e.props,function(a){switch(Fr(a,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":hi(to(e,{props:[Ve(a,/:(read-\w+)/,":"+ga+"$1")]})),hi(to(e,{props:[a]})),nd(e,{props:nm(n,o)});break;case"::placeholder":hi(to(e,{props:[Ve(a,/:(plac\w+)/,":"+ht+"input-$1")]})),hi(to(e,{props:[Ve(a,/:(plac\w+)/,":"+ga+"$1")]})),hi(to(e,{props:[Ve(a,/:(plac\w+)/,Rt+"input-$1")]})),hi(to(e,{props:[a]})),nd(e,{props:nm(n,o)});break}return""})}}var LI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gi=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sm="active",lm="data-styled-version",ml="6.1.13",ad=`/*!sc*/
|
|
152
|
+
`,yl=typeof window<"u"&&"HTMLElement"in window,jI=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),vl=Object.freeze([]),mi=Object.freeze({});function NI(e,t,n){return n===void 0&&(n=mi),e.theme!==n.theme&&e.theme||t||n.theme}var cm=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),FI=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zI=/(^-|-$)/g;function um(e){return e.replace(FI,"-").replace(zI,"")}var WI=/(a)(d)/gi,bl=52,dm=function(e){return String.fromCharCode(e+(e>25?39:97))};function sd(e){var t,n="";for(t=Math.abs(e);t>bl;t=t/bl|0)n=dm(t%bl)+n;return(dm(t%bl)+n).replace(WI,"$1-$2")}var ld,fm=5381,yi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},pm=function(e){return yi(fm,e)};function hm(e){return sd(pm(e)>>>0)}function UI(e){return e.displayName||e.name||"Component"}function cd(e){return typeof e=="string"&&!0}var gm=typeof Symbol=="function"&&Symbol.for,mm=gm?Symbol.for("react.memo"):60115,HI=gm?Symbol.for("react.forward_ref"):60112,GI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ym={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VI=((ld={})[HI]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ld[mm]=ym,ld);function vm(e){return("type"in(t=e)&&t.type.$$typeof)===mm?ym:"$$typeof"in e?VI[e.$$typeof]:GI;var t}var YI=Object.defineProperty,XI=Object.getOwnPropertyNames,bm=Object.getOwnPropertySymbols,KI=Object.getOwnPropertyDescriptor,JI=Object.getPrototypeOf,xm=Object.prototype;function wm(e,t,n){if(typeof t!="string"){if(xm){var o=JI(t);o&&o!==xm&&wm(e,o,n)}var a=XI(t);bm&&(a=a.concat(bm(t)));for(var s=vm(e),l=vm(t),u=0;u<a.length;++u){var d=a[u];if(!(d in qI||n&&n[d]||l&&d in l||s&&d in s)){var h=KI(t,d);try{YI(e,d,h)}catch{}}}}return e}function vi(e){return typeof e=="function"}function ud(e){return typeof e=="object"&&"styledComponentId"in e}function _o(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dd(e,t){if(e.length===0)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ya(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fd(e,t,n){if(n===void 0&&(n=!1),!n&&!ya(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=fd(e[o],t[o]);else if(ya(t))for(var o in t)e[o]=fd(e[o],t[o]);return e}function pd(e,t){Object.defineProperty(e,"toString",{value:t})}function va(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var ZI=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,o=0;o<t;o++)n+=this.groupSizes[o];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var o=this.groupSizes,a=o.length,s=a;t>=s;)if((s<<=1)<0)throw va(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(var l=a;l<s;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(u,n[l])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n;this.groupSizes[t]=0;for(var s=o;s<a;s++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var o=this.groupSizes[t],a=this.indexOfGroup(t),s=a+o,l=a;l<s;l++)n+="".concat(this.tag.getRule(l)).concat(ad);return n},e}(),xl=new Map,wl=new Map,Sl=1,Cl=function(e){if(xl.has(e))return xl.get(e);for(;wl.has(Sl);)Sl++;var t=Sl++;return xl.set(e,t),wl.set(t,e),t},QI=function(e,t){Sl=t+1,xl.set(e,t),wl.set(t,e)},ek="style[".concat(gi,"][").concat(lm,'="').concat(ml,'"]'),tk=new RegExp("^".concat(gi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),nk=function(e,t,n){for(var o,a=n.split(","),s=0,l=a.length;s<l;s++)(o=a[s])&&e.registerName(t,o)},rk=function(e,t){for(var n,o=((n=t.textContent)!==null&&n!==void 0?n:"").split(ad),a=[],s=0,l=o.length;s<l;s++){var u=o[s].trim();if(u){var d=u.match(tk);if(d){var h=0|parseInt(d[1],10),y=d[2];h!==0&&(QI(y,h),nk(e,y,d[3]),e.getTag().insertRules(h,a)),a.length=0}else a.push(u)}}},Sm=function(e){for(var t=document.querySelectorAll(ek),n=0,o=t.length;n<o;n++){var a=t[n];a&&a.getAttribute(gi)!==sm&&(rk(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function ok(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Cm=function(e){var t=document.head,n=e||t,o=document.createElement("style"),a=function(u){var d=Array.from(u.querySelectorAll("style[".concat(gi,"]")));return d[d.length-1]}(n),s=a!==void 0?a.nextSibling:null;o.setAttribute(gi,sm),o.setAttribute(lm,ml);var l=ok();return l&&o.setAttribute("nonce",l),n.insertBefore(o,s),o},ik=function(){function e(t){this.element=Cm(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var l=o[a];if(l.ownerNode===n)return l}throw va(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),ak=function(){function e(t){this.element=Cm(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var o=document.createTextNode(n);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),sk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),_m=yl,lk={isServer:!yl,useCSSOMInjection:!jI},Em=function(){function e(t,n,o){t===void 0&&(t=mi),n===void 0&&(n={});var a=this;this.options=xn(xn({},lk),t),this.gs=n,this.names=new Map(o),this.server=!!t.isServer,!this.server&&yl&&_m&&(_m=!1,Sm(this)),pd(this,function(){return function(s){for(var l=s.getTag(),u=l.length,d="",h=function(m){var b=function(S){return wl.get(S)}(m);if(b===void 0)return"continue";var w=s.names.get(b),_=l.getGroup(m);if(w===void 0||!w.size||_.length===0)return"continue";var E="".concat(gi,".g").concat(m,'[id="').concat(b,'"]'),P="";w!==void 0&&w.forEach(function(S){S.length>0&&(P+="".concat(S,","))}),d+="".concat(_).concat(E,'{content:"').concat(P,'"}').concat(ad)},y=0;y<u;y++)h(y);return d}(a)})}return e.registerId=function(t){return Cl(t)},e.prototype.rehydrate=function(){!this.server&&yl&&Sm(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(xn(xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var o=n.useCSSOMInjection,a=n.target;return n.isServer?new sk(a):o?new ik(a):new ak(a)}(this.options),new ZI(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Cl(t),this.names.has(t))this.names.get(t).add(n);else{var o=new Set;o.add(n),this.names.set(t,o)}},e.prototype.insertRules=function(t,n,o){this.registerName(t,n),this.getTag().insertRules(Cl(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Cl(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ck=/&/g,uk=/^\s*\/\/.*$/gm;function Rm(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Rm(n.children,t)),n})}function dk(e){var t,n,o,a=mi,s=a.options,l=s===void 0?mi:s,u=a.plugins,d=u===void 0?vl:u,h=function(b,w,_){return _.startsWith(n)&&_.endsWith(n)&&_.replaceAll(n,"").length>0?".".concat(t):b},y=d.slice();y.push(function(b){b.type===ll&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(ck,n).replace(o,h))}),l.prefix&&y.push(BI),y.push(MI);var m=function(b,w,_,E){w===void 0&&(w=""),_===void 0&&(_=""),E===void 0&&(E="&"),t=E,n=w,o=new RegExp("\\".concat(n,"\\b"),"g");var P=b.replace(uk,""),S=OI(_||w?"".concat(_," ").concat(w," { ").concat(P," }"):P);l.namespace&&(S=Rm(S,l.namespace));var O=[];return gl(S,$I(y.concat(DI(function(k){return O.push(k)})))),O};return m.hash=d.length?d.reduce(function(b,w){return w.name||va(15),yi(b,w.name)},fm).toString():"",m}var fk=new Em,hd=dk(),Im=Y.createContext({shouldForwardProp:void 0,styleSheet:fk,stylis:hd});Im.Consumer,Y.createContext(void 0);function km(){return Y.useContext(Im)}var Tm=function(){function e(t,n){var o=this;this.inject=function(a,s){s===void 0&&(s=hd);var l=o.name+s.hash;a.hasNameForId(o.id,l)||a.insertRules(o.id,l,s(o.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,pd(this,function(){throw va(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hd),this.name+t.hash},e}(),pk=function(e){return e>="A"&&e<="Z"};function Pm(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(n===1&&o==="-"&&e[0]==="-")return e;pk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Om=function(e){return e==null||e===!1||e===""},Am=function(e){var t,n,o=[];for(var a in e){var s=e[a];e.hasOwnProperty(a)&&!Om(s)&&(Array.isArray(s)&&s.isCss||vi(s)?o.push("".concat(Pm(a),":"),s,";"):ya(s)?o.push.apply(o,ha(ha(["".concat(a," {")],Am(s),!1),["}"],!1)):o.push("".concat(Pm(a),": ").concat((t=a,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in LI||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Eo(e,t,n,o){if(Om(e))return[];if(ud(e))return[".".concat(e.styledComponentId)];if(vi(e)){if(!vi(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var a=e(t);return Eo(a,t,n,o)}var s;return e instanceof Tm?n?(e.inject(n,o),[e.getName(o)]):[e]:ya(e)?Am(e):Array.isArray(e)?Array.prototype.concat.apply(vl,e.map(function(l){return Eo(l,t,n,o)})):[e.toString()]}function hk(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!ud(n))return!1}return!0}var gk=pm(ml),mk=function(){function e(t,n,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&hk(t),this.componentId=n,this.baseHash=yi(gk,n),this.baseStyle=o,Em.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,o){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))a=_o(a,this.staticRulesId);else{var s=dd(Eo(this.rules,t,n,o)),l=sd(yi(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,l)){var u=o(s,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,u)}a=_o(a,l),this.staticRulesId=l}else{for(var d=yi(this.baseHash,o.hash),h="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")h+=m;else if(m){var b=dd(Eo(m,t,n,o));d=yi(d,b+y),h+=b}}if(h){var w=sd(d>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,o(h,".".concat(w),void 0,this.componentId)),a=_o(a,w)}}return a},e}(),Mm=Y.createContext(void 0);Mm.Consumer;var gd={};function yk(e,t,n){var o=ud(e),a=e,s=!cd(e),l=t.attrs,u=l===void 0?vl:l,d=t.componentId,h=d===void 0?function(I,M){var B=typeof I!="string"?"sc":um(I);gd[B]=(gd[B]||0)+1;var D="".concat(B,"-").concat(hm(ml+B+gd[B]));return M?"".concat(M,"-").concat(D):D}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(I){return cd(I)?"styled.".concat(I):"Styled(".concat(UI(I),")")}(e):y,b=t.displayName&&t.componentId?"".concat(um(t.displayName),"-").concat(t.componentId):t.componentId||h,w=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,_=t.shouldForwardProp;if(o&&a.shouldForwardProp){var E=a.shouldForwardProp;if(t.shouldForwardProp){var P=t.shouldForwardProp;_=function(I,M){return E(I,M)&&P(I,M)}}else _=E}var S=new mk(n,b,o?a.componentStyle:void 0);function O(I,M){return function(B,D,V){var U=B.attrs,C=B.componentStyle,G=B.defaultProps,Z=B.foldedComponentIds,H=B.styledComponentId,K=B.target,te=Y.useContext(Mm),se=km(),de=B.shouldForwardProp||se.shouldForwardProp,he=NI(D,te,G)||mi,be=function(Ke,He,gt){for(var le,fe=xn(xn({},He),{className:void 0,theme:gt}),ge=0;ge<Ke.length;ge+=1){var me=vi(le=Ke[ge])?le(fe):le;for(var pe in me)fe[pe]=pe==="className"?_o(fe[pe],me[pe]):pe==="style"?xn(xn({},fe[pe]),me[pe]):me[pe]}return He.className&&(fe.className=_o(fe.className,He.className)),fe}(U,D,he),we=be.as||K,ue={};for(var Ce in be)be[Ce]===void 0||Ce[0]==="$"||Ce==="as"||Ce==="theme"&&be.theme===he||(Ce==="forwardedAs"?ue.as=be.forwardedAs:de&&!de(Ce,we)||(ue[Ce]=be[Ce]));var De=function(Ke,He){var gt=km(),le=Ke.generateAndInjectStyles(He,gt.styleSheet,gt.stylis);return le}(C,be),Xe=_o(Z,H);return De&&(Xe+=" "+De),be.className&&(Xe+=" "+be.className),ue[cd(we)&&!cm.has(we)?"class":"className"]=Xe,ue.ref=V,Y.createElement(we,ue)}(k,I,M)}O.displayName=m;var k=Y.forwardRef(O);return k.attrs=w,k.componentStyle=S,k.displayName=m,k.shouldForwardProp=_,k.foldedComponentIds=o?_o(a.foldedComponentIds,a.styledComponentId):"",k.styledComponentId=b,k.target=o?a.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(I){this._foldedDefaultProps=o?function(M){for(var B=[],D=1;D<arguments.length;D++)B[D-1]=arguments[D];for(var V=0,U=B;V<U.length;V++)fd(M,U[V],!0);return M}({},a.defaultProps,I):I}}),pd(k,function(){return".".concat(k.styledComponentId)}),s&&wm(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function $m(e,t){for(var n=[e[0]],o=0,a=t.length;o<a;o+=1)n.push(t[o],e[o+1]);return n}var Dm=function(e){return Object.assign(e,{isCss:!0})};function Bm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||ya(e))return Dm(Eo($m(vl,ha([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?Eo(o):Dm(Eo($m(o,t)))}function md(e,t,n){if(n===void 0&&(n=mi),!t)throw va(1,t);var o=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];return e(t,n,Bm.apply(void 0,ha([a],s,!1)))};return o.attrs=function(a){return md(e,t,xn(xn({},n),{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return md(e,t,xn(xn({},n),a))},o}var Lm=function(e){return md(yk,e)},et=Lm;cm.forEach(function(e){et[e]=Lm(e)});function vk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=dd(Bm.apply(void 0,ha([e],t,!1))),a=hm(o);return new Tm(a,o)}const bk=et.div`
|
|
153
153
|
position: fixed;
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -160,7 +160,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
160
160
|
justify-content: center;
|
|
161
161
|
align-items: center;
|
|
162
162
|
z-index: 10000; /* Increased z-index to be higher than all other components (others use 9999) */
|
|
163
|
-
`,
|
|
163
|
+
`,xk=et.div`
|
|
164
164
|
border: 4px solid rgba(255, 255, 255, 0.3);
|
|
165
165
|
border-top: 4px solid white;
|
|
166
166
|
border-radius: 50%;
|
|
@@ -176,7 +176,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
176
176
|
transform: rotate(360deg);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
`,ba=({isVisible:e})=>e?v.jsx(xk,{children:v.jsx(wk,{})}):null,Nm=X.createContext(null),Fm=()=>{const e=X.useContext(Nm);if(!e)throw new Error("useAPI must be used within an APIProvider");return e},Sk=({children:e})=>{const[t,n]=X.useState(0),o=X.useCallback(async s=>{n(l=>l+1);try{return await s}finally{n(l=>Math.max(0,l-1))}},[]),a=X.useCallback(async(s,l)=>(n(u=>u+1),new Promise((u,d)=>{const h=s(),y=()=>{n(m=>Math.max(0,m-1))};h.addEventListener("load",()=>{if(y(),h.status>=200&&h.status<300)try{const m=l(h);u(m)}catch(m){d(m)}else d(new Error(`Request failed with status ${h.status}`))}),h.addEventListener("error",()=>{y(),d(new Error("Network error occurred"))}),h.addEventListener("abort",()=>{y(),d(new Error("Request cancelled"))})})),[]);return v.jsxs(Nm.Provider,{value:{isLoading:t>0,wrapAPICall:o,wrapXHRCall:a},children:[v.jsx(ba,{isVisible:t>0}),e]})},zm=e=>{const t=e;return{createProject:async(R,$)=>{const B={description:R,component_namespace:$};return await fetch(`${t}/create_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},getProjects:async()=>await fetch(`${t}/fetch_projects`,{method:"GET",headers:{"Content-Type":"application/json"}}),getSubdomains:async R=>await fetch(`${t}/subdomains?project_name=${R}`,{method:"GET",headers:{"Content-Type":"application/json"}}),allocateSubdomain:async(R,$)=>{const B={project_name:R,subdomain:$};return await fetch(`${t}/allocate_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},releaseSubdomain:async(R,$)=>{const B={project_name:R,subdomain:$};return await fetch(`${t}/release_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},publishProject:async(R,$)=>{const B={project_name:R,git_ref:$};return await fetch(`${t}/publish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},unpublishProject:async R=>{const $={project_name:R};return await fetch(`${t}/unpublish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},tagCommit:async(R,$,B)=>{const M={project_name:R,commit_hash:$,tag_name:B};return await fetch(`${t}/tag_project_commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},getComponentLibrary:async()=>await fetch(`${t}/library_components?namespaces=common,example`,{method:"GET",headers:{"Content-Type":"application/json"}}),addProjectComponent:async(R,$,B,M)=>{const z={project_name:R,component_namespace:$,component_name:B,layout_metadata:M};return await fetch(`${t}/add_project_component`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)})},addProjectChart:async(R,$,B)=>{const M={project_name:R,visual_id:$,layout_metadata:B};return await fetch(`${t}/add_project_chart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},updateProjectComponentLayoutMetadata:async(R,$,B)=>{const M={project_name:R,component_id:$,layout_metadata:B};return await fetch(`${t}/update_project_component_layout_metadata`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},updateProjectComponentSourceCode:async(R,$,B)=>{const M={project_name:R,component_id:$,source_code:B};return await fetch(`${t}/update_project_component_source_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},deleteProjectFile:async(R,$)=>{const B={project_name:R,file_path:$};return await fetch(`${t}/delete_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},resetProjectFile:async(R,$,B,M,z)=>{let V={project_name:R,file_path:$,git_ref:B};return M&&(V.prune=M),z&&(V.extra_metadata=z),await fetch(`${t}/reset_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})},deleteProject:async R=>{const $={projects:[R]};return await fetch(`${t}/delete_projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},requestErrorCorrection:async(R,$,B)=>{const M={project_name:R,component_id:$,error_message:B};return await fetch(`${t}/error_correction`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},addImage:async R=>await fetch(`${t}/add_image`,{method:"POST",body:R})}},Wm=e=>{const t=e;return{getQueryContent:async a=>await fetch(`${t}/v1/public/sql/content-queries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({queryId:a,biscuits:[]})}),getVisuals:async(a,s,l,u,d,h,y,m)=>{const b=new URLSearchParams({pageNo:a.toString(),pageSize:s.toString(),scope:l,searchPattern:u,sortBy:d,sortOrder:h,visibility:y,visualType:m}).toString();return await fetch(`${t}/v2/content/visuals?${b}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}};for(var en=[],vd=0;vd<256;++vd)en.push((vd+256).toString(16).slice(1));function Ck(e,t=0){return(en[e[t+0]]+en[e[t+1]]+en[e[t+2]]+en[e[t+3]]+"-"+en[e[t+4]]+en[e[t+5]]+"-"+en[e[t+6]]+en[e[t+7]]+"-"+en[e[t+8]]+en[e[t+9]]+"-"+en[e[t+10]]+en[e[t+11]]+en[e[t+12]]+en[e[t+13]]+en[e[t+14]]+en[e[t+15]]).toLowerCase()}var _l,_k=new Uint8Array(16);function Ek(){if(!_l&&(_l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _l(_k)}var Rk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Um={randomUUID:Rk};function xa(e,t,n){if(Um.randomUUID&&!t&&!e)return Um.randomUUID();e=e||{};var o=e.random||(e.rng||Ek)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ck(o)}function Ik(e){return typeof e=="function"}const kk=e=>{const{wrapAPICall:t}=Fm(),n=zm(e);return new Proxy(n,{get:(a,s)=>{const l=a[s];return Ik(l)?(...u)=>t(l.apply(a,u)):l}})},bd=X.createContext(null);bd.Consumer;const Tk=e=>{const[t,n]=X.useState({projectName:null,projectURL:null}),[o,a]=X.useState({API_BASE_URL:null,WS_BASE_URL:null,GW_BASE_URL:null,CORS_PROXY:null}),[s,l]=X.useState(()=>Wm(e.config.GW_BASE_URL)),[u,d]=X.useState(""),[h,y]=X.useState(xa()),m=kk(e.config.API_BASE_URL),b=zm(e.config.API_BASE_URL),w=m||b,[S,E]=X.useState(),[P,C]=X.useState(!1),O=()=>{y(xa())},k=(R,$)=>{if(!R)return;S&&S.close();const B=localStorage.getItem("accessToken")||"",M=`${o.WS_BASE_URL}/ws/chat/${R}?token=${B}`,z=new WebSocket(M);z.onopen=()=>{C(!0),$.onopen()},z.onclose=V=>{C(!1),$.onclose(V)},z.onerror=V=>{$.onerror(V)},z.onmessage=V=>{$.onmessage(V)},E(z)};return X.useEffect(()=>(a(e.config),l(Wm(e.config.GW_BASE_URL)),e.metadata&&n(e.metadata),()=>{S&&S.close()}),[e.config]),v.jsx(bd.Provider,{value:{config:o,projectMetadata:t,setProjectMetadata:n,syncToken:h,setSyncToken:O,selectedComponentId:u,setSelectedComponentId:d,APIHandler:w,gwAPIHandler:s,startChatbot:k,chatbotWebsocket:S,chatbotWebsocketConnected:P},children:e.children})},Pk=e=>v.jsx(Sk,{children:v.jsx(Tk,{...e})}),wn=()=>{const e=X.useContext(bd);if(e===null)throw new Error("Invalid project context.");return{...e}},Ok=()=>{const{APIHandler:e,projectMetadata:t}=wn(),n=X.useRef(""),[o,a]=X.useState(""),s=X.useMemo(()=>!t.projectName,[t.projectName]),l=X.useMemo(()=>n.current===o,[o]),u=async()=>{if((await e.allocateSubdomain(t.projectName,o)).status!==200)throw new Error("Failed to allocate subdomain");if(!n.current)return;if((await e.releaseSubdomain(t.projectName,n.current)).status!==200)throw new Error("Failed to release subdomain")};return X.useEffect(()=>{e.getSubdomains(t.projectName).then(d=>{if(d.status!==200)throw Error("Failed to retrieve subdomains");return d}).then(d=>d.json()).then(d=>{const h=d&&d.pop();if(h){let y=h.subdomain.split(".")[0];n.current=y,a(y)}})},[t.projectName]),v.jsx(v.Fragment,{children:v.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Subdomain",variant:"outlined",fullWidth:!0,value:o,disabled:s,onChange:d=>a(d.target.value),size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:l,onClick:u,sx:{flex:1},children:"Update"})]})})})},Ak=e=>{const t=o=>o.filter(a=>a.tag!=="published"),n=o=>o.toSorted((a,s)=>a.timestamp-s.timestamp);return v.jsx(v.Fragment,{children:v.jsx(Dt,{children:v.jsx(Lu,{dense:!0,sx:{width:"100%"},children:e.tags&&n(t(e.tags)).map(o=>v.jsx(Hg,{onClick:e.onSelect(o),children:v.jsx(Yg,{primary:o.tag})},o.tag))})})})},Mk=()=>{const{projectMetadata:e,APIHandler:t,config:n}=wn(),[o,a]=X.useState([]),[s,l]=X.useState(""),u=X.useRef({}),[d,h]=X.useState({}),[y,m]=X.useState(""),b=X.useMemo(()=>!e.projectName,[e.projectName]),w=X.useMemo(()=>d.tag===u.current.tag,[d]),S=async()=>{const R=await qc(e.projectName,e.projectURL,n.CORS_PROXY);a(R)},E=async()=>{const R=await Qx(e.projectName);if((await t.tagCommit(e.projectName,R,s)).status!==200)throw new Error("Error tagging commit.");await S()},P=async()=>{if((await t.publishProject(e.projectName,d.ref)).status!==200)throw new Error("Error releasing project.")},C=async()=>{if((await t.unpublishProject(e.projectName)).status!==200)throw new Error("Error unpublishing project.")},O=R=>()=>{h(R),m(R.tag)},k=async()=>{if((await t.deleteProject(e.projectName)).status!==200)throw new Error("Error deleting project.");location.reload()};return X.useEffect(()=>{S()},[e.projectName]),v.jsx(v.Fragment,{children:v.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},overflow:"hidden",children:[v.jsx(Dt,{sx:{width:"100%"},children:v.jsx(li,{variant:"outlined",color:"error",fullWidth:!0,onClick:C,children:"unpublish"})}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Release to Publish",variant:"outlined",fullWidth:!0,value:y||"",disabled:!0,size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:w,onClick:P,sx:{flex:1},children:"Publish"})]}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"New Release Name",variant:"outlined",fullWidth:!0,value:s,disabled:b,onChange:R=>l(R.target.value),size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:!s,onClick:E,sx:{flex:1},children:"Create"})]}),v.jsx(Dt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{maxHeight:"300px",padding:"5px",width:"100%",overflow:"auto",background:"DarkGrey",borderRadius:"10px"},children:v.jsx(Ak,{tags:o,onSelect:O})}),v.jsx(Dt,{sx:{padding:"50px 0px 0px 0px",width:"100%"},children:v.jsx(li,{variant:"outlined",color:"error",fullWidth:!0,onClick:()=>k(),disabled:b,children:"Delete Project"})})]})})},$k=()=>v.jsxs(v.Fragment,{children:[v.jsx(Ok,{}),v.jsx(da,{sx:{borderBottomWidth:5}}),v.jsx(Mk,{})]}),Hm=pn(v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Gm=pn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Dk=nt.div``,Bk=nt.div`
|
|
179
|
+
`,ba=({isVisible:e})=>e?v.jsx(bk,{children:v.jsx(xk,{})}):null,jm=Y.createContext(null),Nm=()=>{const e=Y.useContext(jm);if(!e)throw new Error("useAPI must be used within an APIProvider");return e},wk=({children:e})=>{const[t,n]=Y.useState(0),o=Y.useCallback(async s=>{n(l=>l+1);try{return await s}finally{n(l=>Math.max(0,l-1))}},[]),a=Y.useCallback(async(s,l)=>(n(u=>u+1),new Promise((u,d)=>{const h=s(),y=()=>{n(m=>Math.max(0,m-1))};h.addEventListener("load",()=>{if(y(),h.status>=200&&h.status<300)try{const m=l(h);u(m)}catch(m){d(m)}else d(new Error(`Request failed with status ${h.status}`))}),h.addEventListener("error",()=>{y(),d(new Error("Network error occurred"))}),h.addEventListener("abort",()=>{y(),d(new Error("Request cancelled"))})})),[]);return v.jsxs(jm.Provider,{value:{isLoading:t>0,wrapAPICall:o,wrapXHRCall:a},children:[v.jsx(ba,{isVisible:t>0}),e]})},Fm=e=>{const t=e;return{createProject:async(I,M)=>{const B={description:I,component_namespace:M};return await fetch(`${t}/create_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},getProjects:async()=>await fetch(`${t}/fetch_projects`,{method:"GET",headers:{"Content-Type":"application/json"}}),getSubdomains:async I=>await fetch(`${t}/subdomains?project_name=${I}`,{method:"GET",headers:{"Content-Type":"application/json"}}),allocateSubdomain:async(I,M)=>{const B={project_name:I,subdomain:M};return await fetch(`${t}/allocate_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},releaseSubdomain:async(I,M)=>{const B={project_name:I,subdomain:M};return await fetch(`${t}/release_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},publishProject:async(I,M)=>{const B={project_name:I,git_ref:M};return await fetch(`${t}/publish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},unpublishProject:async I=>{const M={project_name:I};return await fetch(`${t}/unpublish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},tagCommit:async(I,M,B)=>{const D={project_name:I,commit_hash:M,tag_name:B};return await fetch(`${t}/tag_project_commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},getComponentLibrary:async()=>await fetch(`${t}/library_components?namespaces=common,example`,{method:"GET",headers:{"Content-Type":"application/json"}}),addProjectComponent:async(I,M,B,D)=>{const V={project_name:I,component_namespace:M,component_name:B,layout_metadata:D};return await fetch(`${t}/add_project_component`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})},addProjectChart:async(I,M,B)=>{const D={project_name:I,visual_id:M,layout_metadata:B};return await fetch(`${t}/add_project_chart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},updateProjectComponentLayoutMetadata:async(I,M,B)=>{const D={project_name:I,component_id:M,layout_metadata:B};return await fetch(`${t}/update_project_component_layout_metadata`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},updateProjectComponentSourceCode:async(I,M,B)=>{const D={project_name:I,component_id:M,source_code:B};return await fetch(`${t}/update_project_component_source_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},deleteProjectFile:async(I,M)=>{const B={project_name:I,file_path:M};return await fetch(`${t}/delete_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},resetProjectFile:async(I,M,B,D,V)=>{let U={project_name:I,file_path:M,git_ref:B};return D&&(U.prune=D),V&&(U.extra_metadata=V),await fetch(`${t}/reset_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(U)})},deleteProject:async I=>{const M={projects:[I]};return await fetch(`${t}/delete_projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},requestErrorCorrection:async(I,M,B)=>{const D={project_name:I,component_id:M,error_message:B};return await fetch(`${t}/error_correction`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},addImage:async I=>await fetch(`${t}/add_image`,{method:"POST",body:I})}},zm=e=>{const t=e;return{getQueryContent:async a=>await fetch(`${t}/v1/public/sql/content-queries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({queryId:a,biscuits:[]})}),getVisuals:async(a,s,l,u,d,h,y,m)=>{const b=new URLSearchParams({pageNo:a.toString(),pageSize:s.toString(),scope:l,searchPattern:u,sortBy:d,sortOrder:h,visibility:y,visualType:m}).toString();return await fetch(`${t}/v2/content/visuals?${b}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}};for(var en=[],yd=0;yd<256;++yd)en.push((yd+256).toString(16).slice(1));function Sk(e,t=0){return(en[e[t+0]]+en[e[t+1]]+en[e[t+2]]+en[e[t+3]]+"-"+en[e[t+4]]+en[e[t+5]]+"-"+en[e[t+6]]+en[e[t+7]]+"-"+en[e[t+8]]+en[e[t+9]]+"-"+en[e[t+10]]+en[e[t+11]]+en[e[t+12]]+en[e[t+13]]+en[e[t+14]]+en[e[t+15]]).toLowerCase()}var _l,Ck=new Uint8Array(16);function _k(){if(!_l&&(_l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _l(Ck)}var Ek=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Wm={randomUUID:Ek};function xa(e,t,n){if(Wm.randomUUID&&!t&&!e)return Wm.randomUUID();e=e||{};var o=e.random||(e.rng||_k)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Sk(o)}function Rk(e){return typeof e=="function"}const Ik=e=>{const{wrapAPICall:t}=Nm(),n=Fm(e);return new Proxy(n,{get:(a,s)=>{const l=a[s];return Rk(l)?(...u)=>t(l.apply(a,u)):l}})},vd=Y.createContext(null);vd.Consumer;const kk=e=>{const[t,n]=Y.useState({projectName:null,projectURL:null}),[o,a]=Y.useState({API_BASE_URL:null,WS_BASE_URL:null,GW_BASE_URL:null,CORS_PROXY:null}),[s,l]=Y.useState(()=>zm(e.config.GW_BASE_URL)),[u,d]=Y.useState(""),[h,y]=Y.useState(xa()),m=Ik(e.config.API_BASE_URL),b=Fm(e.config.API_BASE_URL),w=m||b,[_,E]=Y.useState(),[P,S]=Y.useState(!1),O=()=>{y(xa())},k=(I,M)=>{if(!I)return;_&&_.close();const B=localStorage.getItem("accessToken")||"",D=`${o.WS_BASE_URL}/ws/chat/${I}?token=${B}`,V=new WebSocket(D);V.onopen=()=>{S(!0),M.onopen()},V.onclose=U=>{S(!1),M.onclose(U)},V.onerror=U=>{M.onerror(U)},V.onmessage=U=>{M.onmessage(U)},E(V)};return Y.useEffect(()=>(a(e.config),l(zm(e.config.GW_BASE_URL)),e.metadata&&n(e.metadata),()=>{_&&_.close()}),[e.config]),v.jsx(vd.Provider,{value:{config:o,projectMetadata:t,setProjectMetadata:n,syncToken:h,setSyncToken:O,selectedComponentId:u,setSelectedComponentId:d,APIHandler:w,gwAPIHandler:s,startChatbot:k,chatbotWebsocket:_,chatbotWebsocketConnected:P},children:e.children})},Tk=e=>v.jsx(wk,{children:v.jsx(kk,{...e})}),wn=()=>{const e=Y.useContext(vd);if(e===null)throw new Error("Invalid project context.");return{...e}},Pk=()=>{const{APIHandler:e,projectMetadata:t}=wn(),n=Y.useRef(""),[o,a]=Y.useState(""),s=Y.useMemo(()=>!t.projectName,[t.projectName]),l=Y.useMemo(()=>n.current===o,[o]),u=async()=>{if((await e.allocateSubdomain(t.projectName,o)).status!==200)throw new Error("Failed to allocate subdomain");if(!n.current)return;if((await e.releaseSubdomain(t.projectName,n.current)).status!==200)throw new Error("Failed to release subdomain")};return Y.useEffect(()=>{e.getSubdomains(t.projectName).then(d=>{if(d.status!==200)throw Error("Failed to retrieve subdomains");return d}).then(d=>d.json()).then(d=>{const h=d&&d.pop();if(h){let y=h.subdomain.split(".")[0];n.current=y,a(y)}})},[t.projectName]),v.jsx(v.Fragment,{children:v.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Subdomain",variant:"outlined",fullWidth:!0,value:o,disabled:s,onChange:d=>a(d.target.value),size:"small"})}),v.jsx(ci,{variant:"outlined",fullWidth:!0,disabled:l,onClick:u,sx:{flex:1},children:"Update"})]})})})},Ok=e=>{const t=o=>o.filter(a=>a.tag!=="published"),n=o=>o.toSorted((a,s)=>a.timestamp-s.timestamp);return v.jsx(v.Fragment,{children:v.jsx(Dt,{children:v.jsx(Bu,{dense:!0,sx:{width:"100%"},children:e.tags&&n(t(e.tags)).map(o=>v.jsx(Ug,{onClick:e.onSelect(o),children:v.jsx(Vg,{primary:o.tag})},o.tag))})})})},Ak=()=>{const{projectMetadata:e,APIHandler:t,config:n}=wn(),[o,a]=Y.useState([]),[s,l]=Y.useState(""),u=Y.useRef({}),[d,h]=Y.useState({}),[y,m]=Y.useState(""),b=Y.useMemo(()=>!e.projectName,[e.projectName]),w=Y.useMemo(()=>d.tag===u.current.tag,[d]),_=async()=>{const I=await Gc(e.projectName,e.projectURL,n.CORS_PROXY);a(I)},E=async()=>{const I=await Zx(e.projectName);if((await t.tagCommit(e.projectName,I,s)).status!==200)throw new Error("Error tagging commit.");await _()},P=async()=>{if((await t.publishProject(e.projectName,d.ref)).status!==200)throw new Error("Error releasing project.")},S=async()=>{if((await t.unpublishProject(e.projectName)).status!==200)throw new Error("Error unpublishing project.")},O=I=>()=>{h(I),m(I.tag)},k=async()=>{if((await t.deleteProject(e.projectName)).status!==200)throw new Error("Error deleting project.");location.reload()};return Y.useEffect(()=>{_()},[e.projectName]),v.jsx(v.Fragment,{children:v.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},overflow:"hidden",children:[v.jsx(Dt,{sx:{width:"100%"},children:v.jsx(ci,{variant:"outlined",color:"error",fullWidth:!0,onClick:S,children:"unpublish"})}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Release to Publish",variant:"outlined",fullWidth:!0,value:y||"",disabled:!0,size:"small"})}),v.jsx(ci,{variant:"outlined",fullWidth:!0,disabled:w,onClick:P,sx:{flex:1},children:"Publish"})]}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"New Release Name",variant:"outlined",fullWidth:!0,value:s,disabled:b,onChange:I=>l(I.target.value),size:"small"})}),v.jsx(ci,{variant:"outlined",fullWidth:!0,disabled:!s,onClick:E,sx:{flex:1},children:"Create"})]}),v.jsx(Dt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{maxHeight:"300px",padding:"5px",width:"100%",overflow:"auto",background:"DarkGrey",borderRadius:"10px"},children:v.jsx(Ok,{tags:o,onSelect:O})}),v.jsx(Dt,{sx:{padding:"50px 0px 0px 0px",width:"100%"},children:v.jsx(ci,{variant:"outlined",color:"error",fullWidth:!0,onClick:()=>k(),disabled:b,children:"Delete Project"})})]})})},Mk=()=>v.jsxs(v.Fragment,{children:[v.jsx(Pk,{}),v.jsx(da,{sx:{borderBottomWidth:5}}),v.jsx(Ak,{})]}),Um=pn(v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Hm=pn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$k=et.div``,Dk=et.div`
|
|
180
180
|
.controls {
|
|
181
181
|
position: absolute;
|
|
182
182
|
right: 5px;
|
|
@@ -197,11 +197,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
`,qm={color:"primary.main","&:hover":{color:"secondary.main"}},Lk=e=>v.jsxs(v.Fragment,{children:[v.jsx(Bk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(Qt,{size:"large",onClick:e.onSave,children:v.jsx(Hm,{fontSize:"medium",sx:qm})}),v.jsx(Qt,{size:"large",onClick:e.onClose,children:v.jsx(Gm,{fontSize:"large",sx:qm})})]})}),v.jsx(Dk,{children:v.jsx("p",{children:"Inline Editor!"})})]});var jk={exports:{}};(function(e,t){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,o,a){var s=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},u.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};s.inherits(u,l),u.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},u.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},o.JsDocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,o,a){var s=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,u=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",h=function(b){var w={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},S=this.createKeywordMapper(w,"identifier"),E="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",P="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",C="(function)(\\s*)(\\*?)",O={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(w).join("|")+"\\b)"+d+")(\\s*)(\\()"};this.$rules={no_regex:[l.getStartRule("doc-start"),m("no_regex"),O,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(=)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+d+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+E+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:S,regex:d},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:d},{regex:"",token:"empty",next:"no_regex"}],start:[l.getStartRule("doc-start"),m("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[m("function_arguments"),{token:"variable.parameter",regex:d},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!b||!b.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(k,R,$){if(this.next=k=="{"?this.nextState:"",k=="{"&&$.length)$.unshift("start",R);else if(k=="}"&&$.length&&($.shift(),this.next=$.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return k=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:P},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+d+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!b||b.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};s.inherits(h,u);function y(){var b=d.replace("\\d","\\d\\-"),w={onMatch:function(E,P,C){var O=E.charAt(1)=="/"?2:1;return O==1?(P!=this.nextState?C.unshift(this.next,this.nextState,0):C.unshift(this.next),C[2]++):O==2&&P==this.nextState&&(C[1]--,(!C[1]||C[1]<0)&&(C.shift(),C.shift())),[{type:"meta.tag.punctuation."+(O==1?"":"end-")+"tag-open.xml",value:E.slice(0,O)},{type:"meta.tag.tag-name.xml",value:E.substr(O)}]},regex:"</?(?:"+b+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(w);var S={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[S,w,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(E,P,C){return P==C[0]&&C.shift(),E.length==2&&(C[0]==this.nextState&&C[1]--,(!C[1]||C[1]<0)&&C.splice(0,2)),this.next=C[0]||"start",[{type:this.token,value:E}]},nextState:"jsx"},S,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:b},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},w],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function m(b){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}o.JavaScriptHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,o,a){var s=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(u,d){return/^\s+$/.test(u)?/^\s*\}/.test(d):!1},this.autoOutdent=function(u,d){var h=u.getLine(d),y=h.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,b=u.findMatchingBracket({row:d,column:m});if(!b||b.row==d)return 0;var w=this.$getIndent(u.getLine(b.row));u.replace(new s(d,0,d,m-1),w)},this.$getIndent=function(u){return u.match(/^\s*/)[0]}}).call(l.prototype),o.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,o,a){var s=n("../../lib/oop"),l=n("../behaviour").Behaviour,u=n("../../token_iterator").TokenIterator;function d(y,m){return y&&y.type.lastIndexOf(m+".xml")>-1}var h=function(){this.add("string_dquotes","insertion",function(y,m,b,w,S){if(S=='"'||S=="'"){var E=S,P=w.doc.getTextRange(b.getSelectionRange());if(P!==""&&P!=="'"&&P!='"'&&b.getWrapBehavioursEnabled())return{text:E+P+E,selection:!1};var C=b.getCursorPosition(),O=w.doc.getLine(C.row),k=O.substring(C.column,C.column+1),R=new u(w,C.row,C.column),$=R.getCurrentToken();if(k==E&&(d($,"attribute-value")||d($,"string")))return{text:"",selection:[1,1]};if($||($=R.stepBackward()),!$)return;for(;d($,"tag-whitespace")||d($,"whitespace");)$=R.stepBackward();var B=!k||k.match(/\s/);if(d($,"attribute-equals")&&(B||k==">")||d($,"decl-attribute-equals")&&(B||k=="?"))return{text:E+E,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,b,w,S){var E=w.doc.getTextRange(S);if(!S.isMultiLine()&&(E=='"'||E=="'")){var P=w.doc.getLine(S.start.row),C=P.substring(S.start.column+1,S.start.column+2);if(C==E)return S.end.column++,S}}),this.add("autoclosing","insertion",function(y,m,b,w,S){if(S==">"){var E=b.getSelectionRange().start,P=new u(w,E.row,E.column),C=P.getCurrentToken()||P.stepBackward();if(!C||!(d(C,"tag-name")||d(C,"tag-whitespace")||d(C,"attribute-name")||d(C,"attribute-equals")||d(C,"attribute-value"))||d(C,"reference.attribute-value"))return;if(d(C,"attribute-value")){var O=P.getCurrentTokenColumn()+C.value.length;if(E.column<O)return;if(E.column==O){var k=P.stepForward();if(k&&d(k,"attribute-value"))return;P.stepBackward()}}if(/^\s*>/.test(w.getLine(E.row).slice(E.column)))return;for(;!d(C,"tag-name");)if(C=P.stepBackward(),C.value=="<"){C=P.stepForward();break}var R=P.getCurrentTokenRow(),$=P.getCurrentTokenColumn();if(d(P.stepBackward(),"end-tag-open"))return;var B=C.value;return R==E.row&&(B=B.substring(0,E.column-$)),this.voidElements&&this.voidElements.hasOwnProperty(B.toLowerCase())?void 0:{text:"></"+B+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,b,w,S){if(S==`
|
|
201
|
-
`){var E=b.getCursorPosition(),P=w.getLine(E.row),
|
|
202
|
-
`+
|
|
203
|
-
`+B,selection:[1,
|
|
204
|
-
`+
|
|
200
|
+
`,Gm={color:"primary.main","&:hover":{color:"secondary.main"}},Bk=e=>v.jsxs(v.Fragment,{children:[v.jsx(Dk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(Qt,{size:"large",onClick:e.onSave,children:v.jsx(Um,{fontSize:"medium",sx:Gm})}),v.jsx(Qt,{size:"large",onClick:e.onClose,children:v.jsx(Hm,{fontSize:"large",sx:Gm})})]})}),v.jsx($k,{children:v.jsx("p",{children:"Inline Editor!"})})]});var Lk={exports:{}};(function(e,t){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,o,a){var s=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},u.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};s.inherits(u,l),u.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},u.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},o.JsDocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,o,a){var s=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,u=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",h=function(b){var w={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},_=this.createKeywordMapper(w,"identifier"),E="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",P="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",S="(function)(\\s*)(\\*?)",O={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(w).join("|")+"\\b)"+d+")(\\s*)(\\()"};this.$rules={no_regex:[l.getStartRule("doc-start"),m("no_regex"),O,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(=)(\\s*)"+S+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+d+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(:)(\\s*)"+S+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+S+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+E+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:_,regex:d},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:S+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:d},{regex:"",token:"empty",next:"no_regex"}],start:[l.getStartRule("doc-start"),m("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[m("function_arguments"),{token:"variable.parameter",regex:d},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!b||!b.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(k,I,M){if(this.next=k=="{"?this.nextState:"",k=="{"&&M.length)M.unshift("start",I);else if(k=="}"&&M.length&&(M.shift(),this.next=M.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return k=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:P},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+d+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!b||b.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};s.inherits(h,u);function y(){var b=d.replace("\\d","\\d\\-"),w={onMatch:function(E,P,S){var O=E.charAt(1)=="/"?2:1;return O==1?(P!=this.nextState?S.unshift(this.next,this.nextState,0):S.unshift(this.next),S[2]++):O==2&&P==this.nextState&&(S[1]--,(!S[1]||S[1]<0)&&(S.shift(),S.shift())),[{type:"meta.tag.punctuation."+(O==1?"":"end-")+"tag-open.xml",value:E.slice(0,O)},{type:"meta.tag.tag-name.xml",value:E.substr(O)}]},regex:"</?(?:"+b+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(w);var _={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[_,w,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(E,P,S){return P==S[0]&&S.shift(),E.length==2&&(S[0]==this.nextState&&S[1]--,(!S[1]||S[1]<0)&&S.splice(0,2)),this.next=S[0]||"start",[{type:this.token,value:E}]},nextState:"jsx"},_,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:b},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},w],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function m(b){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}o.JavaScriptHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,o,a){var s=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(u,d){return/^\s+$/.test(u)?/^\s*\}/.test(d):!1},this.autoOutdent=function(u,d){var h=u.getLine(d),y=h.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,b=u.findMatchingBracket({row:d,column:m});if(!b||b.row==d)return 0;var w=this.$getIndent(u.getLine(b.row));u.replace(new s(d,0,d,m-1),w)},this.$getIndent=function(u){return u.match(/^\s*/)[0]}}).call(l.prototype),o.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,o,a){var s=n("../../lib/oop"),l=n("../behaviour").Behaviour,u=n("../../token_iterator").TokenIterator;function d(y,m){return y&&y.type.lastIndexOf(m+".xml")>-1}var h=function(){this.add("string_dquotes","insertion",function(y,m,b,w,_){if(_=='"'||_=="'"){var E=_,P=w.doc.getTextRange(b.getSelectionRange());if(P!==""&&P!=="'"&&P!='"'&&b.getWrapBehavioursEnabled())return{text:E+P+E,selection:!1};var S=b.getCursorPosition(),O=w.doc.getLine(S.row),k=O.substring(S.column,S.column+1),I=new u(w,S.row,S.column),M=I.getCurrentToken();if(k==E&&(d(M,"attribute-value")||d(M,"string")))return{text:"",selection:[1,1]};if(M||(M=I.stepBackward()),!M)return;for(;d(M,"tag-whitespace")||d(M,"whitespace");)M=I.stepBackward();var B=!k||k.match(/\s/);if(d(M,"attribute-equals")&&(B||k==">")||d(M,"decl-attribute-equals")&&(B||k=="?"))return{text:E+E,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,b,w,_){var E=w.doc.getTextRange(_);if(!_.isMultiLine()&&(E=='"'||E=="'")){var P=w.doc.getLine(_.start.row),S=P.substring(_.start.column+1,_.start.column+2);if(S==E)return _.end.column++,_}}),this.add("autoclosing","insertion",function(y,m,b,w,_){if(_==">"){var E=b.getSelectionRange().start,P=new u(w,E.row,E.column),S=P.getCurrentToken()||P.stepBackward();if(!S||!(d(S,"tag-name")||d(S,"tag-whitespace")||d(S,"attribute-name")||d(S,"attribute-equals")||d(S,"attribute-value"))||d(S,"reference.attribute-value"))return;if(d(S,"attribute-value")){var O=P.getCurrentTokenColumn()+S.value.length;if(E.column<O)return;if(E.column==O){var k=P.stepForward();if(k&&d(k,"attribute-value"))return;P.stepBackward()}}if(/^\s*>/.test(w.getLine(E.row).slice(E.column)))return;for(;!d(S,"tag-name");)if(S=P.stepBackward(),S.value=="<"){S=P.stepForward();break}var I=P.getCurrentTokenRow(),M=P.getCurrentTokenColumn();if(d(P.stepBackward(),"end-tag-open"))return;var B=S.value;return I==E.row&&(B=B.substring(0,E.column-M)),this.voidElements&&this.voidElements.hasOwnProperty(B.toLowerCase())?void 0:{text:"></"+B+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,b,w,_){if(_==`
|
|
201
|
+
`){var E=b.getCursorPosition(),P=w.getLine(E.row),S=new u(w,E.row,E.column),O=S.getCurrentToken();if(d(O,"")&&O.type.indexOf("tag-close")!==-1){if(O.value=="/>")return;for(;O&&O.type.indexOf("tag-name")===-1;)O=S.stepBackward();if(!O)return;var k=O.value,I=S.getCurrentTokenRow();if(O=S.stepBackward(),!O||O.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[k]||!this.voidElements){var M=w.getTokenAt(E.row,E.column+1),P=w.getLine(I),B=this.$getIndent(P),D=B+w.getTabString();return M&&M.value==="</"?{text:`
|
|
202
|
+
`+D+`
|
|
203
|
+
`+B,selection:[1,D.length,1,D.length]}:{text:`
|
|
204
|
+
`+D}}}}})};s.inherits(h,l),o.XmlBehaviour=h}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(n,o,a){var s=n("../../lib/oop"),l=n("../../token_iterator").TokenIterator,u=n("../behaviour/cstyle").CstyleBehaviour,d=n("../behaviour/xml").XmlBehaviour,h=function(){var y=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(y),this.inherit(u),this.add("autoclosing-fragment","insertion",function(m,b,w,_,E){if(E==">"){var P=w.getSelectionRange().start,S=new l(_,P.row,P.column),O=S.getCurrentToken()||S.stepBackward();if(!O)return;if(O.value=="<")return{text:"></>",selection:[1,1]}}})};s.inherits(h,u),o.JavaScriptBehaviour=h}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,o,a){var s=n("../../lib/oop"),l=n("../../range").Range,u=n("./fold_mode").FoldMode,d=o.FoldMode=function(m,b){u.call(this),this.voidElements=m||{},this.optionalEndTags=s.mixin({},this.voidElements),b&&s.mixin(this.optionalEndTags,b)};s.inherits(d,u);var h=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function y(m,b){return m.type.lastIndexOf(b+".xml")>-1}(function(){this.getFoldWidget=function(m,b,w){var _=this._getFirstTagInLine(m,w);return _?_.closing||!_.tagName&&_.selfClosing?b==="markbeginend"?"end":"":!_.tagName||_.selfClosing||this.voidElements.hasOwnProperty(_.tagName.toLowerCase())||this._findEndTagInLine(m,w,_.tagName,_.end.column)?"":"start":this.getCommentFoldWidget(m,w)},this.getCommentFoldWidget=function(m,b){return/comment/.test(m.getState(b))&&/<!-/.test(m.getLine(b))?"start":""},this._getFirstTagInLine=function(m,b){for(var w=m.getTokens(b),_=new h,E=0;E<w.length;E++){var P=w[E];if(y(P,"tag-open")){if(_.end.column=_.start.column+P.value.length,_.closing=y(P,"end-tag-open"),P=w[++E],!P)return null;if(_.tagName=P.value,P.value===""){if(P=w[++E],!P)return null;_.tagName=P.value}for(_.end.column+=P.value.length,E++;E<w.length;E++)if(P=w[E],_.end.column+=P.value.length,y(P,"tag-close")){_.selfClosing=P.value=="/>";break}return _}else if(y(P,"tag-close"))return _.selfClosing=P.value=="/>",_;_.start.column+=P.value.length}return null},this._findEndTagInLine=function(m,b,w,_){for(var E=m.getTokens(b),P=0,S=0;S<E.length;S++){var O=E[S];if(P+=O.value.length,!(P<_-1)&&y(O,"end-tag-open")&&(O=E[S+1],y(O,"tag-name")&&O.value===""&&(O=E[S+2]),O&&O.value==w))return!0}return!1},this.getFoldWidgetRange=function(m,b,w){var _=this._getFirstTagInLine(m,w);if(!_)return this.getCommentFoldWidget(m,w)&&m.getCommentFoldRange(w,m.getLine(w).length);var E=m.getMatchingTags({row:w,column:0});if(E)return new l(E.openTag.end.row,E.openTag.end.column,E.closeTag.start.row,E.closeTag.start.column)}}).call(d.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,o,a){var s=n("../../lib/oop"),l=n("../../range").Range,u=n("./fold_mode").FoldMode,d=o.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};s.inherits(d,u),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,y,m){var b=h.getLine(m);if(this.singleLineBlockCommentRe.test(b)&&!this.startRegionRe.test(b)&&!this.tripleStarBlockCommentRe.test(b))return"";var w=this._getFoldWidgetBase(h,y,m);return!w&&this.startRegionRe.test(b)?"start":w},this.getFoldWidgetRange=function(h,y,m,b){var w=h.getLine(m);if(this.startRegionRe.test(w))return this.getCommentRegionBlock(h,w,m);var P=w.match(this.foldingStartMarker);if(P){var _=P.index;if(P[1])return this.openingBracketBlock(h,P[1],m,_);var E=h.getCommentFoldRange(m,_+P[0].length,1);return E&&!E.isMultiLine()&&(b?E=this.getSectionRange(h,m):y!="all"&&(E=null)),E}if(y!=="markbegin"){var P=w.match(this.foldingStopMarker);if(P){var _=P.index+P[0].length;return P[1]?this.closingBracketBlock(h,P[1],m,_):h.getCommentFoldRange(m,_,-1)}}},this.getSectionRange=function(h,y){var m=h.getLine(y),b=m.search(/\S/),w=y,_=m.length;y=y+1;for(var E=y,P=h.getLength();++y<P;){m=h.getLine(y);var S=m.search(/\S/);if(S!==-1){if(b>S)break;var O=this.getFoldWidgetRange(h,"all",y);if(O){if(O.start.row<=w)break;if(O.isMultiLine())y=O.end.row;else if(b==S)break}E=y}}return new l(w,_,E,h.getLine(E).length)},this.getCommentRegionBlock=function(h,y,m){for(var b=y.search(/\s*$/),w=h.getLength(),_=m,E=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,P=1;++m<w;){y=h.getLine(m);var S=E.exec(y);if(S&&(S[1]?P--:P++,!P))break}var O=m;if(O>_)return new l(_,b,O,y.length)}}).call(d.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,o,a){var s=n("../../lib/oop"),l=n("./xml").FoldMode,u=n("./cstyle").FoldMode,d=o.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end))),this.xmlFoldMode=new l};s.inherits(d,u),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,y,m){var b=this.getFoldWidgetBase(h,y,m);return b||this.xmlFoldMode.getFoldWidget(h,y,m)},this.getFoldWidgetRange=function(h,y,m,b){var w=this.getFoldWidgetRangeBase(h,y,m,b);return w||this.xmlFoldMode.getFoldWidgetRange(h,y,m)}}).call(d.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(n,o,a){var s=n("../lib/oop"),l=n("./text").Mode,u=n("./javascript_highlight_rules").JavaScriptHighlightRules,d=n("./matching_brace_outdent").MatchingBraceOutdent,h=n("../worker/worker_client").WorkerClient,y=n("./behaviour/javascript").JavaScriptBehaviour,m=n("./folding/javascript").FoldMode,b=function(){this.HighlightRules=u,this.$outdent=new d,this.$behaviour=new y,this.foldingRules=new m};s.inherits(b,l),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(w,_,E){var P=this.$getIndent(_),S=this.getTokenizer().getLineTokens(_,w),O=S.tokens,k=S.state;if(O.length&&O[O.length-1].type=="comment")return P;if(w=="start"||w=="no_regex"){var I=_.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);I&&(P+=E)}else if(w=="doc-start"&&(k=="start"||k=="no_regex"))return"";return P},this.checkOutdent=function(w,_,E){return this.$outdent.checkOutdent(_,E)},this.autoOutdent=function(w,_,E){this.$outdent.autoOutdent(_,E)},this.createWorker=function(w){var _=new h(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return _.attachToDocument(w.getDocument()),_.on("annotate",function(E){w.setAnnotations(E.data)}),_.on("terminate",function(){w.clearAnnotations()}),_},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(b.prototype),o.Mode=b}),function(){ace.require(["ace/mode/javascript"],function(n){e&&(e.exports=n)})}()})(Lk);var jk={exports:{}};(function(e,t){ace.define("ace/theme/monokai-css",["require","exports","module"],function(n,o,a){a.exports=`.ace-monokai .ace_gutter {
|
|
205
205
|
background: #2F3129;
|
|
206
206
|
color: #8F908A
|
|
207
207
|
}
|
|
@@ -326,12 +326,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
326
326
|
.ace-monokai .ace_indent-guide-active {
|
|
327
327
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
328
328
|
}
|
|
329
|
-
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,o,a){o.isDark=!0,o.cssClass="ace-monokai",o.cssText=n("./monokai-css");var s=n("../lib/dom");s.importCssString(o.cssText,o.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){e&&(e.exports=n)})}()})(
|
|
329
|
+
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,o,a){o.isDark=!0,o.cssClass="ace-monokai",o.cssText=n("./monokai-css");var s=n("../lib/dom");s.importCssString(o.cssText,o.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){e&&(e.exports=n)})}()})(jk);const Nk=et.div`
|
|
330
330
|
display: flex;
|
|
331
331
|
flex-direction: row;
|
|
332
332
|
height: 100%;
|
|
333
333
|
width: 100%;
|
|
334
|
-
`,
|
|
334
|
+
`,Fk=et.div`
|
|
335
335
|
.controls {
|
|
336
336
|
position: absolute;
|
|
337
337
|
right: 5px;
|
|
@@ -352,7 +352,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
`,
|
|
355
|
+
`,qm={color:"primary.main","&:hover":{color:"secondary.main"}},Vm=e=>{const[t,n]=Y.useState(e.source);return v.jsxs(v.Fragment,{children:[v.jsx(Fk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(Qt,{size:"large",onClick:()=>e.onSave(t),children:v.jsx(Um,{fontSize:"medium",sx:qm})}),v.jsx(Qt,{size:"large",onClick:e.onClose,children:v.jsx(Hm,{fontSize:"large",sx:qm})})]})}),v.jsx(Nk,{children:v.jsx($b,{mode:"javascript",theme:"monokai",name:"codeEditor",value:t,onChange:o=>n(o),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,height:"100%",width:"100%",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,showPrintMargin:!1}})})]})},Ym=pn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"CodeOutlined"),Xm=pn(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),zk=pn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),Wk=pn(v.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction"),Km=pn(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"UndoOutlined"),Jm=pn(v.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"RedoOutlined"),Uk=et.div`
|
|
356
356
|
.controls {
|
|
357
357
|
position: absolute;
|
|
358
358
|
right: 5px;
|
|
@@ -373,7 +373,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
`,wa={color:"primary.main","&:hover":{color:"secondary.main"}},
|
|
376
|
+
`,wa={color:"primary.main","&:hover":{color:"secondary.main"}},Hk={color:"#FFD700",backgroundColor:"black","&:hover":{color:"#FFB700"}},Gk=async e=>{await navigator.clipboard.writeText(e)},bd=e=>{const{projectMetadata:t,APIHandler:n,setSyncToken:o}=wn(),a=async()=>{if((await n.requestErrorCorrection(t.projectName,e.componentId,e.message)).status!==200)throw new Error("Error requesting error correction.");o()};return v.jsxs(v.Fragment,{children:[v.jsx(Uk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(Qt,{size:"large",onClick:()=>a(),children:v.jsx(Wk,{fontSize:"medium",sx:Hk})}),v.jsx(Qt,{size:"large",onClick:e.onUndo,children:v.jsx(Km,{fontSize:"medium",sx:wa})}),v.jsx(Qt,{size:"large",onClick:e.onRedo,children:v.jsx(Jm,{fontSize:"medium",sx:wa})}),v.jsx(Qt,{size:"large",onClick:()=>Gk(e.message),children:v.jsx(zk,{fontSize:"medium",sx:wa})}),v.jsx(Qt,{size:"large",onClick:e.onCodeEdit,children:v.jsx(Ym,{fontSize:"medium",sx:wa})}),v.jsx(Qt,{onClick:e.onDelete,size:"large",children:v.jsx(Xm,{fontSize:"medium",sx:wa})})]})}),v.jsxs("div",{style:{color:"red",backgroundColor:"#ffecec",padding:"10px",borderRadius:"5px",border:"1px solid #ffb3b3",fontSize:"14px",fontFamily:"Arial, sans-serif",marginBottom:"10px",width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[v.jsx("strong",{style:{marginBottom:"10px"},children:"Error:"}),v.jsx("div",{style:{flex:1,overflowY:"auto",whiteSpace:"pre-wrap"},children:e.message})]})]})},qk=et.div`
|
|
377
377
|
position: fixed;
|
|
378
378
|
top: 0;
|
|
379
379
|
left: 0;
|
|
@@ -384,7 +384,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
384
384
|
justify-content: center;
|
|
385
385
|
align-items: center;
|
|
386
386
|
z-index: 1000;
|
|
387
|
-
`,
|
|
387
|
+
`,Vk=et.dialog`
|
|
388
388
|
background-color: white;
|
|
389
389
|
padding: 20px;
|
|
390
390
|
border-radius: 8px;
|
|
@@ -416,12 +416,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
416
416
|
margin: 0;
|
|
417
417
|
line-height: 1.4;
|
|
418
418
|
}
|
|
419
|
-
`,
|
|
419
|
+
`,Yk=et.div`
|
|
420
420
|
display: flex;
|
|
421
421
|
gap: 10px;
|
|
422
422
|
justify-content: center;
|
|
423
423
|
margin-top: 10px;
|
|
424
|
-
`,
|
|
424
|
+
`,Zm=et.button`
|
|
425
425
|
padding: 8px 16px;
|
|
426
426
|
border: none;
|
|
427
427
|
border-radius: 4px;
|
|
@@ -448,7 +448,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
448
448
|
${e=>e.variant==="primary"?"#cc0aac":"#5000bf"};
|
|
449
449
|
outline-offset: 2px;
|
|
450
450
|
}
|
|
451
|
-
`;class
|
|
451
|
+
`;class Xk extends Y.Component{constructor(n){super(n);Ar(this,"dialogRef");Ar(this,"retryButtonRef");Ar(this,"lastFocusedElement");Ar(this,"handleRetry",()=>{this.setState({hasError:!1,error:null})});Ar(this,"handleKeyDown",n=>{n.key==="Escape"&&this.props.onClose()});this.state={hasError:!1,error:null},this.dialogRef=Y.createRef(),this.retryButtonRef=Y.createRef(),this.lastFocusedElement=null}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,o){console.error("ImageGallery Error:",n),console.error("Error Info:",o)}componentDidUpdate(n,o){var a,s;!o.hasError&&this.state.hasError?(this.lastFocusedElement=document.activeElement,(a=this.retryButtonRef.current)==null||a.focus()):o.hasError&&!this.state.hasError&&((s=this.lastFocusedElement)==null||s.focus())}componentWillUnmount(){var n;this.state.hasError&&((n=this.lastFocusedElement)==null||n.focus())}render(){var n;return this.state.hasError?v.jsx(qk,{role:"presentation",children:v.jsxs(Vk,{ref:this.dialogRef,role:"dialog","aria-labelledby":"error-title","aria-describedby":"error-description",onKeyDown:this.handleKeyDown,"aria-modal":"true",children:[v.jsx("h2",{id:"error-title",children:"Something went wrong"}),v.jsxs("div",{id:"error-description",children:[v.jsx("p",{children:((n=this.state.error)==null?void 0:n.message)||"An error occurred while displaying the image gallery."}),v.jsx("p",{children:"You can try again or close the gallery."})]}),v.jsxs(Yk,{children:[v.jsx(Zm,{ref:this.retryButtonRef,variant:"primary",onClick:this.handleRetry,"aria-label":"Try loading the gallery again",children:"Try Again"}),v.jsx(Zm,{onClick:this.props.onClose,"aria-label":"Close gallery and return to chat",children:"Close Gallery"})]})]})}):v.jsx(v.Fragment,{children:this.props.children})}}const Sa=["jpg","jpeg","png","gif","webp"],xd={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"},Qm=5*1024*1024,wd=async(e,t,n)=>{if(e)try{n({status:"loading"});const o=`${window.miDir}/${t}/src/assets/images`;let a;try{a=await zp(o)}catch{n({status:"empty"});return}const s=a.filter(d=>{var y;const h=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"";return Sa.includes(h)}),u=(await Promise.all(s.map(async d=>{var y;const h=`${o}/${d}`;try{const m=await window.pfs.readFile(h),b=Buffer.from(m).toString("base64"),w=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"",_=xd[w]||"image/jpeg";return{name:d,path:`./src/assets/images/${d}`,base64:`data:${_};base64,${b}`}}catch(m){return console.error(`Error loading image ${d}:`,m),null}}))).filter(d=>d!==null);u.length===0?n({status:"empty"}):n({status:"loaded",images:u})}catch(o){console.error("Error loading images:",o),n({status:"error",message:"Failed to load images. Please try again."})}},e0=e=>{var n;return((n=(e instanceof File?e.name:e).split(".").pop())==null?void 0:n.toLowerCase())||""},t0=e=>Sa.includes(e),Kk=e=>{const t=e0(e);if(!t0(t))return!1;const n=xd[t];return e.type===n},Jk=e=>{const n=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,o)).toFixed(2))} ${n[o]}`},Zk=e=>{if(!e)return{isValid:!1,error:"No file selected"};if(e.size===0)return{isValid:!1,error:"File is empty"};if(e.size>Qm)return{isValid:!1,error:`File size exceeds the ${Jk(Qm)} limit`};const t=e0(e);return t0(t)?Kk(e)?{isValid:!0}:{isValid:!1,error:"Invalid file type. File extension does not match its content"}:{isValid:!1,error:`Unsupported file type. Supported types: ${Sa.join(", ").toUpperCase()}`}},Qk=(e,t)=>{const n=new FormData;return n.append("project_name",e),n.append("upload_file",t),n},eT=()=>{const{wrapXHRCall:e}=Nm();return Y.useCallback((t,n,o)=>e(()=>{const a=new XMLHttpRequest;a.upload.addEventListener("progress",l=>{if(l.lengthComputable){const u=Math.round(l.loaded*100/l.total);o({percentage:u,status:`Uploading... ${u}%`})}}),a.open("POST",`${t}/add_image`);const s=localStorage.getItem("accessToken");return s?a.setRequestHeader("Authorization",`Bearer ${s}`):console.warn("No access token found in localStorage."),a.send(n),a},a=>{try{return JSON.parse(a.responseText)}catch{throw new Error("Invalid response format")}}),[e])},tT=et.div`
|
|
452
452
|
position: fixed;
|
|
453
453
|
top: 0;
|
|
454
454
|
left: 0;
|
|
@@ -460,7 +460,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
460
460
|
align-items: center;
|
|
461
461
|
z-index: 1000;
|
|
462
462
|
backdrop-filter: blur(2px);
|
|
463
|
-
`,
|
|
463
|
+
`,nT=et.dialog`
|
|
464
464
|
background-color: white;
|
|
465
465
|
padding: 20px;
|
|
466
466
|
border-radius: 8px;
|
|
@@ -484,7 +484,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
484
484
|
outline: 2px solid #5000bf;
|
|
485
485
|
outline-offset: 2px;
|
|
486
486
|
}
|
|
487
|
-
`,
|
|
487
|
+
`,rT=et.button`
|
|
488
488
|
position: absolute;
|
|
489
489
|
top: 10px;
|
|
490
490
|
right: 10px;
|
|
@@ -503,7 +503,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
503
503
|
outline: 2px solid #5000bf;
|
|
504
504
|
outline-offset: 2px;
|
|
505
505
|
}
|
|
506
|
-
`,
|
|
506
|
+
`,Sd=et.div`
|
|
507
507
|
display: grid;
|
|
508
508
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
509
509
|
gap: 20px;
|
|
@@ -516,7 +516,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
516
516
|
display: flex;
|
|
517
517
|
justify-content: center;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,Cd=et.button`
|
|
520
520
|
border: 1px solid #ccc;
|
|
521
521
|
border-radius: 4px;
|
|
522
522
|
padding: 10px;
|
|
@@ -567,7 +567,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
567
567
|
white-space: nowrap;
|
|
568
568
|
border: 0;
|
|
569
569
|
}
|
|
570
|
-
`,Ca=
|
|
570
|
+
`,Ca=et.div`
|
|
571
571
|
text-align: center;
|
|
572
572
|
padding: 20px;
|
|
573
573
|
color: #666;
|
|
@@ -582,7 +582,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
582
582
|
max-width: 400px;
|
|
583
583
|
line-height: 1.4;
|
|
584
584
|
}
|
|
585
|
-
`;
|
|
585
|
+
`;et.button`
|
|
586
586
|
background: #5000bf;
|
|
587
587
|
color: white;
|
|
588
588
|
border: none;
|
|
@@ -599,7 +599,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
599
599
|
outline: 2px solid #cc0aac;
|
|
600
600
|
outline-offset: 2px;
|
|
601
601
|
}
|
|
602
|
-
`;const
|
|
602
|
+
`;const oT=et.div`
|
|
603
603
|
border: 2px dashed
|
|
604
604
|
${e=>e.isError?"#ff4444":e.isDragActive?"#5000bf":"#ccc"};
|
|
605
605
|
border-radius: 8px;
|
|
@@ -618,23 +618,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
618
618
|
input[type="file"] {
|
|
619
619
|
display: none;
|
|
620
620
|
}
|
|
621
|
-
`,
|
|
621
|
+
`,iT=vk`
|
|
622
622
|
0% { transform: rotate(0deg); }
|
|
623
623
|
100% { transform: rotate(360deg); }
|
|
624
|
-
`,
|
|
624
|
+
`,aT=et.div`
|
|
625
625
|
display: inline-block;
|
|
626
626
|
width: 20px;
|
|
627
627
|
height: 20px;
|
|
628
628
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
629
629
|
border-radius: 50%;
|
|
630
630
|
border-top-color: #fff;
|
|
631
|
-
animation: ${
|
|
631
|
+
animation: ${iT} 1s ease-in-out infinite;
|
|
632
632
|
margin-right: 8px;
|
|
633
|
-
`,
|
|
633
|
+
`,sT=et.p`
|
|
634
634
|
color: ${e=>e.isError?"#ff4444":"#666"};
|
|
635
635
|
margin: 5px 0;
|
|
636
636
|
font-size: 0.9em;
|
|
637
|
-
`,
|
|
637
|
+
`,lT=et.div`
|
|
638
638
|
font-size: 0.9em;
|
|
639
639
|
color: #666;
|
|
640
640
|
margin: 10px 0;
|
|
@@ -648,10 +648,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
648
648
|
li {
|
|
649
649
|
margin: 3px 0;
|
|
650
650
|
}
|
|
651
|
-
`,
|
|
651
|
+
`,cT=et.div`
|
|
652
652
|
width: 100%;
|
|
653
653
|
margin: 10px 0;
|
|
654
|
-
`,
|
|
654
|
+
`,uT=et.div`
|
|
655
655
|
width: 100%;
|
|
656
656
|
height: 4px;
|
|
657
657
|
background-color: #eee;
|
|
@@ -666,33 +666,33 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
666
666
|
background-color: #5000bf;
|
|
667
667
|
transition: width 0.3s ease;
|
|
668
668
|
}
|
|
669
|
-
`,
|
|
669
|
+
`,dT=({isOpen:e,onClose:t,onImageSelect:n,projectName:o})=>{const{config:a,projectMetadata:s,setSyncToken:l}=wn(),u=eT(),[d,h]=Y.useState({status:"loading"}),[y,m]=Y.useState({isDragging:!1,hasError:!1}),[b,w]=Y.useState(!1),_=Y.useRef(null),E=Y.useRef(null),P=Y.useRef(null),S=Y.useRef(null);if(Y.useEffect(()=>{var H;e?(S.current=document.activeElement,(H=E.current)==null||H.focus()):S.current&&S.current.focus()},[e]),Y.useEffect(()=>{const H=K=>{K.key==="Escape"&&t()};return e?(document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)):()=>{}},[e,t]),Y.useEffect(()=>(wd(e,o,h),()=>{}),[e,o]),!e)return null;const O=H=>{n(H),t()},k=H=>{const K=d.status==="loaded"?d.images:[];h({status:"uploading",currentImages:K,uploadProgress:H})},I=async H=>{if(H.length===0)return;const K=H[0];if(!K)return;const te=Zk(K);if(!te.isValid){m({isDragging:!1,hasError:!0,errorMessage:te.error});return}const se=d.status==="loaded"?d.images:[];try{h({status:"uploading",currentImages:se,uploadProgress:{percentage:0,status:"Starting upload..."}});const de=Qk(o,K);await u(a.API_BASE_URL,de,k),l(),s.projectName&&s.projectURL&&(w(!0),await Ja(s.projectName,s.projectURL,a.CORS_PROXY),w(!1),await wd(e,o,h)),m({isDragging:!1,hasError:!1})}catch(de){h({status:"upload_error",currentImages:se,error:de instanceof Error?de.message:"Failed to upload image"})}},M=H=>{const K=H.target.files;K&&I(Array.from(K)),H.target.value=""},B=()=>{var H;(H=P.current)==null||H.click()},D=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!0,hasError:!1})},V=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!1,hasError:!1})},U=H=>{H.preventDefault(),H.stopPropagation()},C=H=>{H.preventDefault(),H.stopPropagation();const K=Array.from(H.dataTransfer.files);I(K)},G=()=>v.jsxs(oT,{onDragEnter:D,onDragLeave:V,onDragOver:U,onDrop:C,onClick:B,isDragActive:y.isDragging,isError:y.hasError,role:"button","aria-label":"Upload image",tabIndex:0,children:[v.jsx("input",{ref:P,type:"file",accept:Object.values(xd).join(","),onChange:M,"aria-label":"File input"}),v.jsxs(lT,{children:[v.jsx("div",{children:y.isDragging?"Drop image here":"Drag and drop an image here, or click to select"}),v.jsxs("div",{children:["Supported formats: ",Sa.join(", ").toUpperCase()]})]}),y.hasError&&v.jsx(sT,{isError:!0,children:y.errorMessage})]}),Z=()=>{switch(d.status){case"loading":return v.jsx(Ca,{role:"status","aria-live":"polite",children:"Loading images..."});case"error":return v.jsxs(Ca,{role:"alert",children:[v.jsx("div",{children:d.message}),v.jsx("button",{onClick:()=>wd(e,o,h),"aria-label":"Try loading images again",className:"retry-button",children:"Try Again"})]});case"empty":return v.jsxs(v.Fragment,{children:[G(),v.jsxs(Ca,{role:"status",children:[v.jsx("div",{children:"No images available"}),v.jsxs("div",{className:"help-text",children:["Upload an image using the area above, or:",v.jsxs("ol",{children:[v.jsx("li",{children:"Create an 'images' directory in your project's src/assets folder"}),v.jsx("li",{children:"Add your images to the directory"}),v.jsx("li",{children:"Commit and push your changes"}),v.jsx("li",{children:"Pull the changes to this workspace"})]}),"Supported formats:"," ",Sa.join(", ").toUpperCase()]})]})]});case"uploading":return v.jsxs(v.Fragment,{children:[v.jsxs(Ca,{role:"status","aria-live":"polite",children:[v.jsx(aT,{}),v.jsx("div",{children:"Uploading image..."}),v.jsx(cT,{children:v.jsx(uT,{progress:d.uploadProgress.percentage,"aria-valuenow":d.uploadProgress.percentage,"aria-valuemin":0,"aria-valuemax":100})}),v.jsx("div",{children:d.uploadProgress.status})]}),d.currentImages.length>0&&v.jsx(Sd,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(Cd,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name})]})},H.path))})]});case"upload_error":return v.jsxs(v.Fragment,{children:[G(),v.jsx(Ca,{role:"alert",children:v.jsxs("div",{children:["Upload failed: ",d.error]})}),d.currentImages.length>0&&v.jsx(Sd,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(Cd,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name})]})},H.path))})]});case"loaded":return v.jsxs(v.Fragment,{children:[G(),v.jsx(Sd,{role:"grid","aria-label":"Project images",children:d.images.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(Cd,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name}),v.jsx("span",{className:"sr-only",children:"Press enter or space to select this image"})]})},H.path))})]})}};return v.jsxs(tT,{role:"presentation",onClick:H=>{H.target===H.currentTarget&&t()},children:[v.jsx(ba,{isVisible:b}),v.jsxs(nT,{ref:_,role:"dialog","aria-label":"Image gallery","aria-modal":"true",children:[v.jsx(rT,{ref:E,onClick:t,"aria-label":"Close gallery",children:"Close"}),Z()]})]})},n0=e=>e.isOpen?v.jsx(Xk,{onClose:e.onClose,children:v.jsx(dT,{...e})}):null,fT=e=>{const[t,n]=Y.useState([]),o=a=>a.toSorted((s,l)=>{let u=Number(s.project_name.split("_").pop());return Number(l.project_name.split("_").pop())-u});return Y.useEffect(()=>{n(e.projects)},[e.projects]),v.jsx(v.Fragment,{children:v.jsx(Dt,{children:v.jsx(Bu,{dense:!0,children:t&&o(t).map(a=>v.jsx(Ug,{onClick:e.onSelect(a.project_name,a.clone_url),children:v.jsx(Vg,{primary:a.project_name})},a.project_name))})})})},pT=e=>{const[t,n]=Y.useState(""),[o,a]=Y.useState("");return v.jsx(v.Fragment,{children:v.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:[v.jsx(ol,{label:"Project Description",variant:"outlined",fullWidth:!0,value:t,onChange:s=>n(s.target.value),size:"small",sx:{padding:"2px"}}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3,padding:"2px"},children:v.jsxs(Mu,{fullWidth:!0,children:[v.jsx(Au,{id:"template-select-label",children:"Template"}),v.jsx(rl,{labelId:"template-select-label",id:"template-select",label:"Template",value:o,onChange:s=>a(s.target.value),fullWidth:!0,size:"small",children:v.jsx(Zu,{value:"example",children:"example"})})]})}),v.jsx(ci,{variant:"outlined",onClick:()=>e.onCreate(t,o),fullWidth:!0,sx:{flex:1},size:"small",children:"Create"})]})]})})},hT=()=>{const[e,t]=Y.useState([]),{setProjectMetadata:n,APIHandler:o}=wn(),a=()=>{o.getProjects().then(u=>{if(u.status!==200)throw new Error("Error fetching projects.");return u}).then(u=>u.json()).then(u=>{t(u.projects)})},s=(u,d)=>()=>{n({projectName:u,projectURL:d})},l=(u,d)=>{o.createProject(u,d).then(h=>{if(h.status!==200)throw new Error("Unable to create project");a()})};return Y.useEffect(()=>{a()},[]),v.jsxs(v.Fragment,{children:[v.jsx(pT,{onCreate:l}),v.jsx(da,{}),v.jsx(fT,{projects:e,onSelect:s})]})},r0=e=>v.jsx(v.Fragment,{children:v.jsx("div",{className:"droppable-element",draggable:!0,unselectable:"on",onDragStart:t=>{t.dataTransfer.setData("text/plain",""),t.dataTransfer.setData("application/reactgridlayout",JSON.stringify({id:e.id,type:e.type,initialSize:e.initialSize,metadata:e.metadata}))},children:e.node})});var El={exports:{}};/**
|
|
670
670
|
* @license
|
|
671
671
|
* Lodash <https://lodash.com/>
|
|
672
672
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
673
673
|
* Released under MIT license <https://lodash.com/license>
|
|
674
674
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
675
675
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
676
|
-
*/El.exports,function(e,t){(function(){var n,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,b=2,w=4,S=1,E=2,P=1,C=2,O=4,k=8,R=16,$=32,B=64,M=128,z=256,V=512,_=30,G="...",re=800,H=16,Q=1,ee=2,le=3,pe=1/0,he=9007199254740991,be=17976931348623157e292,we=NaN,ue=4294967295,Ce=ue-1,De=ue>>>1,Xe=[["ary",M],["bind",P],["bindKey",C],["curry",k],["curryRight",R],["flip",V],["partial",$],["partialRight",B],["rearg",z]],Ke="[object Arguments]",He="[object Array]",gt="[object AsyncFunction]",se="[object Boolean]",de="[object Date]",ge="[object DOMException]",me="[object Error]",fe="[object Function]",Pe="[object GeneratorFunction]",ve="[object Map]",Be="[object Number]",Ge="[object Null]",Ae="[object Object]",ke="[object Promise]",We="[object Proxy]",et="[object RegExp]",Le="[object Set]",xe="[object String]",ut="[object Symbol]",Ut="[object Undefined]",Ht="[object WeakMap]",Yn="[object WeakSet]",I="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",q="[object Int16Array]",J="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",ae="[object Uint16Array]",Ee="[object Uint32Array]",_e=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kr=/&(?:amp|lt|gt|quot|#39);/g,io=/[&<>"']/g,Xl=RegExp(kr.source),Oa=RegExp(io.source),EO=/<%-([\s\S]+?)%>/g,RO=/<%([\s\S]+?)%>/g,ly=/<%=([\s\S]+?)%>/g,IO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kO=/^\w*$/,TO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/[\\^$.*+?()[\]{}|]/g,PO=RegExp(mf.source),yf=/^\s+/,OO=/\s/,AO=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,MO=/\{\n\/\* \[wrapped with (.+)\] \*/,$O=/,? & /,DO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,BO=/[()=,{}\[\]\/\s]/,LO=/\\(\\)?/g,jO=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cy=/\w*$/,NO=/^[-+]0x[0-9a-f]+$/i,FO=/^0b[01]+$/i,zO=/^\[object .+?Constructor\]$/,WO=/^0o[0-7]+$/i,UO=/^(?:0|[1-9]\d*)$/,HO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl=/($^)/,GO=/['\n\r\u2028\u2029\\]/g,Jl="\\ud800-\\udfff",qO="\\u0300-\\u036f",VO="\\ufe20-\\ufe2f",YO="\\u20d0-\\u20ff",uy=qO+VO+YO,dy="\\u2700-\\u27bf",fy="a-z\\xdf-\\xf6\\xf8-\\xff",XO="\\xac\\xb1\\xd7\\xf7",KO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JO="\\u2000-\\u206f",ZO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",py="A-Z\\xc0-\\xd6\\xd8-\\xde",hy="\\ufe0e\\ufe0f",gy=XO+KO+JO+ZO,vf="['’]",QO="["+Jl+"]",my="["+gy+"]",Zl="["+uy+"]",yy="\\d+",eA="["+dy+"]",vy="["+fy+"]",by="[^"+Jl+gy+yy+dy+fy+py+"]",bf="\\ud83c[\\udffb-\\udfff]",tA="(?:"+Zl+"|"+bf+")",xy="[^"+Jl+"]",xf="(?:\\ud83c[\\udde6-\\uddff]){2}",wf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+py+"]",wy="\\u200d",Sy="(?:"+vy+"|"+by+")",nA="(?:"+Ei+"|"+by+")",Cy="(?:"+vf+"(?:d|ll|m|re|s|t|ve))?",_y="(?:"+vf+"(?:D|LL|M|RE|S|T|VE))?",Ey=tA+"?",Ry="["+hy+"]?",rA="(?:"+wy+"(?:"+[xy,xf,wf].join("|")+")"+Ry+Ey+")*",oA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Iy=Ry+Ey+rA,aA="(?:"+[eA,xf,wf].join("|")+")"+Iy,sA="(?:"+[xy+Zl+"?",Zl,xf,wf,QO].join("|")+")",lA=RegExp(vf,"g"),cA=RegExp(Zl,"g"),Sf=RegExp(bf+"(?="+bf+")|"+sA+Iy,"g"),uA=RegExp([Ei+"?"+vy+"+"+Cy+"(?="+[my,Ei,"$"].join("|")+")",nA+"+"+_y+"(?="+[my,Ei+Sy,"$"].join("|")+")",Ei+"?"+Sy+"+"+Cy,Ei+"+"+_y,iA,oA,yy,aA].join("|"),"g"),dA=RegExp("["+wy+Jl+uy+hy+"]"),fA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hA=-1,It={};It[g]=It[D]=It[N]=It[q]=It[J]=It[ce]=It[oe]=It[ae]=It[Ee]=!0,It[Ke]=It[He]=It[I]=It[se]=It[p]=It[de]=It[me]=It[fe]=It[ve]=It[Be]=It[Ae]=It[et]=It[Le]=It[xe]=It[Ht]=!1;var Et={};Et[Ke]=Et[He]=Et[I]=Et[p]=Et[se]=Et[de]=Et[g]=Et[D]=Et[N]=Et[q]=Et[J]=Et[ve]=Et[Be]=Et[Ae]=Et[et]=Et[Le]=Et[xe]=Et[ut]=Et[ce]=Et[oe]=Et[ae]=Et[Ee]=!0,Et[me]=Et[fe]=Et[Ht]=!1;var gA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mA={"&":"&","<":"<",">":">",'"':""","'":"'"},yA={"&":"&","<":"<",">":">",""":'"',"'":"'"},vA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bA=parseFloat,xA=parseInt,ky=typeof Mr=="object"&&Mr&&Mr.Object===Object&&Mr,wA=typeof self=="object"&&self&&self.Object===Object&&self,nn=ky||wA||Function("return this")(),Cf=t&&!t.nodeType&&t,$o=Cf&&!0&&e&&!e.nodeType&&e,Ty=$o&&$o.exports===Cf,_f=Ty&&ky.process,Kn=function(){try{var W=$o&&$o.require&&$o.require("util").types;return W||_f&&_f.binding&&_f.binding("util")}catch{}}(),Py=Kn&&Kn.isArrayBuffer,Oy=Kn&&Kn.isDate,Ay=Kn&&Kn.isMap,My=Kn&&Kn.isRegExp,$y=Kn&&Kn.isSet,Dy=Kn&&Kn.isTypedArray;function $n(W,Z,Y){switch(Y.length){case 0:return W.call(Z);case 1:return W.call(Z,Y[0]);case 2:return W.call(Z,Y[0],Y[1]);case 3:return W.call(Z,Y[0],Y[1],Y[2])}return W.apply(Z,Y)}function SA(W,Z,Y,Se){for(var Fe=-1,dt=W==null?0:W.length;++Fe<dt;){var qt=W[Fe];Z(Se,qt,Y(qt),W)}return Se}function Jn(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se&&Z(W[Y],Y,W)!==!1;);return W}function CA(W,Z){for(var Y=W==null?0:W.length;Y--&&Z(W[Y],Y,W)!==!1;);return W}function By(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(!Z(W[Y],Y,W))return!1;return!0}function ao(W,Z){for(var Y=-1,Se=W==null?0:W.length,Fe=0,dt=[];++Y<Se;){var qt=W[Y];Z(qt,Y,W)&&(dt[Fe++]=qt)}return dt}function Ql(W,Z){var Y=W==null?0:W.length;return!!Y&&Ri(W,Z,0)>-1}function Ef(W,Z,Y){for(var Se=-1,Fe=W==null?0:W.length;++Se<Fe;)if(Y(Z,W[Se]))return!0;return!1}function Pt(W,Z){for(var Y=-1,Se=W==null?0:W.length,Fe=Array(Se);++Y<Se;)Fe[Y]=Z(W[Y],Y,W);return Fe}function so(W,Z){for(var Y=-1,Se=Z.length,Fe=W.length;++Y<Se;)W[Fe+Y]=Z[Y];return W}function Rf(W,Z,Y,Se){var Fe=-1,dt=W==null?0:W.length;for(Se&&dt&&(Y=W[++Fe]);++Fe<dt;)Y=Z(Y,W[Fe],Fe,W);return Y}function _A(W,Z,Y,Se){var Fe=W==null?0:W.length;for(Se&&Fe&&(Y=W[--Fe]);Fe--;)Y=Z(Y,W[Fe],Fe,W);return Y}function If(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(Z(W[Y],Y,W))return!0;return!1}var EA=kf("length");function RA(W){return W.split("")}function IA(W){return W.match(DO)||[]}function Ly(W,Z,Y){var Se;return Y(W,function(Fe,dt,qt){if(Z(Fe,dt,qt))return Se=dt,!1}),Se}function ec(W,Z,Y,Se){for(var Fe=W.length,dt=Y+(Se?1:-1);Se?dt--:++dt<Fe;)if(Z(W[dt],dt,W))return dt;return-1}function Ri(W,Z,Y){return Z===Z?NA(W,Z,Y):ec(W,jy,Y)}function kA(W,Z,Y,Se){for(var Fe=Y-1,dt=W.length;++Fe<dt;)if(Se(W[Fe],Z))return Fe;return-1}function jy(W){return W!==W}function Ny(W,Z){var Y=W==null?0:W.length;return Y?Pf(W,Z)/Y:we}function kf(W){return function(Z){return Z==null?n:Z[W]}}function Tf(W){return function(Z){return W==null?n:W[Z]}}function Fy(W,Z,Y,Se,Fe){return Fe(W,function(dt,qt,Ct){Y=Se?(Se=!1,dt):Z(Y,dt,qt,Ct)}),Y}function TA(W,Z){var Y=W.length;for(W.sort(Z);Y--;)W[Y]=W[Y].value;return W}function Pf(W,Z){for(var Y,Se=-1,Fe=W.length;++Se<Fe;){var dt=Z(W[Se]);dt!==n&&(Y=Y===n?dt:Y+dt)}return Y}function Of(W,Z){for(var Y=-1,Se=Array(W);++Y<W;)Se[Y]=Z(Y);return Se}function PA(W,Z){return Pt(Z,function(Y){return[Y,W[Y]]})}function zy(W){return W&&W.slice(0,Gy(W)+1).replace(yf,"")}function Dn(W){return function(Z){return W(Z)}}function Af(W,Z){return Pt(Z,function(Y){return W[Y]})}function Aa(W,Z){return W.has(Z)}function Wy(W,Z){for(var Y=-1,Se=W.length;++Y<Se&&Ri(Z,W[Y],0)>-1;);return Y}function Uy(W,Z){for(var Y=W.length;Y--&&Ri(Z,W[Y],0)>-1;);return Y}function OA(W,Z){for(var Y=W.length,Se=0;Y--;)W[Y]===Z&&++Se;return Se}var AA=Tf(gA),MA=Tf(mA);function $A(W){return"\\"+vA[W]}function DA(W,Z){return W==null?n:W[Z]}function Ii(W){return dA.test(W)}function BA(W){return fA.test(W)}function LA(W){for(var Z,Y=[];!(Z=W.next()).done;)Y.push(Z.value);return Y}function Mf(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se,Fe){Y[++Z]=[Fe,Se]}),Y}function Hy(W,Z){return function(Y){return W(Z(Y))}}function lo(W,Z){for(var Y=-1,Se=W.length,Fe=0,dt=[];++Y<Se;){var qt=W[Y];(qt===Z||qt===y)&&(W[Y]=y,dt[Fe++]=Y)}return dt}function tc(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++Z]=Se}),Y}function jA(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++Z]=[Se,Se]}),Y}function NA(W,Z,Y){for(var Se=Y-1,Fe=W.length;++Se<Fe;)if(W[Se]===Z)return Se;return-1}function FA(W,Z,Y){for(var Se=Y+1;Se--;)if(W[Se]===Z)return Se;return Se}function ki(W){return Ii(W)?WA(W):EA(W)}function cr(W){return Ii(W)?UA(W):RA(W)}function Gy(W){for(var Z=W.length;Z--&&OO.test(W.charAt(Z)););return Z}var zA=Tf(yA);function WA(W){for(var Z=Sf.lastIndex=0;Sf.test(W);)++Z;return Z}function UA(W){return W.match(Sf)||[]}function HA(W){return W.match(uA)||[]}var GA=function W(Z){Z=Z==null?nn:Ti.defaults(nn.Object(),Z,Ti.pick(nn,pA));var Y=Z.Array,Se=Z.Date,Fe=Z.Error,dt=Z.Function,qt=Z.Math,Ct=Z.Object,$f=Z.RegExp,qA=Z.String,Zn=Z.TypeError,nc=Y.prototype,VA=dt.prototype,Pi=Ct.prototype,rc=Z["__core-js_shared__"],oc=VA.toString,bt=Pi.hasOwnProperty,YA=0,qy=function(){var r=/[^.]+$/.exec(rc&&rc.keys&&rc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ic=Pi.toString,XA=oc.call(Ct),KA=nn._,JA=$f("^"+oc.call(bt).replace(mf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ac=Ty?Z.Buffer:n,co=Z.Symbol,sc=Z.Uint8Array,Vy=ac?ac.allocUnsafe:n,lc=Hy(Ct.getPrototypeOf,Ct),Yy=Ct.create,Xy=Pi.propertyIsEnumerable,cc=nc.splice,Ky=co?co.isConcatSpreadable:n,Ma=co?co.iterator:n,Do=co?co.toStringTag:n,uc=function(){try{var r=Fo(Ct,"defineProperty");return r({},"",{}),r}catch{}}(),ZA=Z.clearTimeout!==nn.clearTimeout&&Z.clearTimeout,QA=Se&&Se.now!==nn.Date.now&&Se.now,eM=Z.setTimeout!==nn.setTimeout&&Z.setTimeout,dc=qt.ceil,fc=qt.floor,Df=Ct.getOwnPropertySymbols,tM=ac?ac.isBuffer:n,Jy=Z.isFinite,nM=nc.join,rM=Hy(Ct.keys,Ct),Vt=qt.max,un=qt.min,oM=Se.now,iM=Z.parseInt,Zy=qt.random,aM=nc.reverse,Bf=Fo(Z,"DataView"),$a=Fo(Z,"Map"),Lf=Fo(Z,"Promise"),Oi=Fo(Z,"Set"),Da=Fo(Z,"WeakMap"),Ba=Fo(Ct,"create"),pc=Da&&new Da,Ai={},sM=zo(Bf),lM=zo($a),cM=zo(Lf),uM=zo(Oi),dM=zo(Da),hc=co?co.prototype:n,La=hc?hc.valueOf:n,Qy=hc?hc.toString:n;function T(r){if(Lt(r)&&!ze(r)&&!(r instanceof rt)){if(r instanceof Qn)return r;if(bt.call(r,"__wrapped__"))return eb(r)}return new Qn(r)}var Mi=function(){function r(){}return function(i){if(!At(i))return{};if(Yy)return Yy(i);r.prototype=i;var c=new r;return r.prototype=n,c}}();function gc(){}function Qn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}T.templateSettings={escape:EO,evaluate:RO,interpolate:ly,variable:"",imports:{_:T}},T.prototype=gc.prototype,T.prototype.constructor=T,Qn.prototype=Mi(gc.prototype),Qn.prototype.constructor=Qn;function rt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function fM(){var r=new rt(this.__wrapped__);return r.__actions__=_n(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=_n(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=_n(this.__views__),r}function pM(){if(this.__filtered__){var r=new rt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function hM(){var r=this.__wrapped__.value(),i=this.__dir__,c=ze(r),f=i<0,x=c?r.length:0,A=R$(0,x,this.__views__),L=A.start,F=A.end,U=F-L,te=f?F:L-1,ne=this.__iteratees__,ie=ne.length,ye=0,Ie=un(U,this.__takeCount__);if(!c||!f&&x==U&&Ie==U)return Cv(r,this.__actions__);var Me=[];e:for(;U--&&ye<Ie;){te+=i;for(var Je=-1,$e=r[te];++Je<ie;){var tt=ne[Je],ot=tt.iteratee,jn=tt.type,yn=ot($e);if(jn==ee)$e=yn;else if(!yn){if(jn==Q)continue e;break e}}Me[ye++]=$e}return Me}rt.prototype=Mi(gc.prototype),rt.prototype.constructor=rt;function Bo(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function gM(){this.__data__=Ba?Ba(null):{},this.size=0}function mM(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function yM(r){var i=this.__data__;if(Ba){var c=i[r];return c===d?n:c}return bt.call(i,r)?i[r]:n}function vM(r){var i=this.__data__;return Ba?i[r]!==n:bt.call(i,r)}function bM(r,i){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=Ba&&i===n?d:i,this}Bo.prototype.clear=gM,Bo.prototype.delete=mM,Bo.prototype.get=yM,Bo.prototype.has=vM,Bo.prototype.set=bM;function Wr(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function xM(){this.__data__=[],this.size=0}function wM(r){var i=this.__data__,c=mc(i,r);if(c<0)return!1;var f=i.length-1;return c==f?i.pop():cc.call(i,c,1),--this.size,!0}function SM(r){var i=this.__data__,c=mc(i,r);return c<0?n:i[c][1]}function CM(r){return mc(this.__data__,r)>-1}function _M(r,i){var c=this.__data__,f=mc(c,r);return f<0?(++this.size,c.push([r,i])):c[f][1]=i,this}Wr.prototype.clear=xM,Wr.prototype.delete=wM,Wr.prototype.get=SM,Wr.prototype.has=CM,Wr.prototype.set=_M;function Ur(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function EM(){this.size=0,this.__data__={hash:new Bo,map:new($a||Wr),string:new Bo}}function RM(r){var i=kc(this,r).delete(r);return this.size-=i?1:0,i}function IM(r){return kc(this,r).get(r)}function kM(r){return kc(this,r).has(r)}function TM(r,i){var c=kc(this,r),f=c.size;return c.set(r,i),this.size+=c.size==f?0:1,this}Ur.prototype.clear=EM,Ur.prototype.delete=RM,Ur.prototype.get=IM,Ur.prototype.has=kM,Ur.prototype.set=TM;function Lo(r){var i=-1,c=r==null?0:r.length;for(this.__data__=new Ur;++i<c;)this.add(r[i])}function PM(r){return this.__data__.set(r,d),this}function OM(r){return this.__data__.has(r)}Lo.prototype.add=Lo.prototype.push=PM,Lo.prototype.has=OM;function ur(r){var i=this.__data__=new Wr(r);this.size=i.size}function AM(){this.__data__=new Wr,this.size=0}function MM(r){var i=this.__data__,c=i.delete(r);return this.size=i.size,c}function $M(r){return this.__data__.get(r)}function DM(r){return this.__data__.has(r)}function BM(r,i){var c=this.__data__;if(c instanceof Wr){var f=c.__data__;if(!$a||f.length<a-1)return f.push([r,i]),this.size=++c.size,this;c=this.__data__=new Ur(f)}return c.set(r,i),this.size=c.size,this}ur.prototype.clear=AM,ur.prototype.delete=MM,ur.prototype.get=$M,ur.prototype.has=DM,ur.prototype.set=BM;function ev(r,i){var c=ze(r),f=!c&&Wo(r),x=!c&&!f&&go(r),A=!c&&!f&&!x&&Li(r),L=c||f||x||A,F=L?Of(r.length,qA):[],U=F.length;for(var te in r)(i||bt.call(r,te))&&!(L&&(te=="length"||x&&(te=="offset"||te=="parent")||A&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Vr(te,U)))&&F.push(te);return F}function tv(r){var i=r.length;return i?r[Yf(0,i-1)]:n}function LM(r,i){return Tc(_n(r),jo(i,0,r.length))}function jM(r){return Tc(_n(r))}function jf(r,i,c){(c!==n&&!dr(r[i],c)||c===n&&!(i in r))&&Hr(r,i,c)}function ja(r,i,c){var f=r[i];(!(bt.call(r,i)&&dr(f,c))||c===n&&!(i in r))&&Hr(r,i,c)}function mc(r,i){for(var c=r.length;c--;)if(dr(r[c][0],i))return c;return-1}function NM(r,i,c,f){return uo(r,function(x,A,L){i(f,x,c(x),L)}),f}function nv(r,i){return r&&Pr(i,Jt(i),r)}function FM(r,i){return r&&Pr(i,Rn(i),r)}function Hr(r,i,c){i=="__proto__"&&uc?uc(r,i,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[i]=c}function Nf(r,i){for(var c=-1,f=i.length,x=Y(f),A=r==null;++c<f;)x[c]=A?n:bp(r,i[c]);return x}function jo(r,i,c){return r===r&&(c!==n&&(r=r<=c?r:c),i!==n&&(r=r>=i?r:i)),r}function er(r,i,c,f,x,A){var L,F=i&m,U=i&b,te=i&w;if(c&&(L=x?c(r,f,x,A):c(r)),L!==n)return L;if(!At(r))return r;var ne=ze(r);if(ne){if(L=k$(r),!F)return _n(r,L)}else{var ie=dn(r),ye=ie==fe||ie==Pe;if(go(r))return Rv(r,F);if(ie==Ae||ie==Ke||ye&&!x){if(L=U||ye?{}:Gv(r),!F)return U?y$(r,FM(L,r)):m$(r,nv(L,r))}else{if(!Et[ie])return x?r:{};L=T$(r,ie,F)}}A||(A=new ur);var Ie=A.get(r);if(Ie)return Ie;A.set(r,L),xb(r)?r.forEach(function($e){L.add(er($e,i,c,$e,r,A))}):vb(r)&&r.forEach(function($e,tt){L.set(tt,er($e,i,c,tt,r,A))});var Me=te?U?ip:op:U?Rn:Jt,Je=ne?n:Me(r);return Jn(Je||r,function($e,tt){Je&&(tt=$e,$e=r[tt]),ja(L,tt,er($e,i,c,tt,r,A))}),L}function zM(r){var i=Jt(r);return function(c){return rv(c,r,i)}}function rv(r,i,c){var f=c.length;if(r==null)return!f;for(r=Ct(r);f--;){var x=c[f],A=i[x],L=r[x];if(L===n&&!(x in r)||!A(L))return!1}return!0}function ov(r,i,c){if(typeof r!="function")throw new Zn(l);return Ga(function(){r.apply(n,c)},i)}function Na(r,i,c,f){var x=-1,A=Ql,L=!0,F=r.length,U=[],te=i.length;if(!F)return U;c&&(i=Pt(i,Dn(c))),f?(A=Ef,L=!1):i.length>=a&&(A=Aa,L=!1,i=new Lo(i));e:for(;++x<F;){var ne=r[x],ie=c==null?ne:c(ne);if(ne=f||ne!==0?ne:0,L&&ie===ie){for(var ye=te;ye--;)if(i[ye]===ie)continue e;U.push(ne)}else A(i,ie,f)||U.push(ne)}return U}var uo=Ov(Tr),iv=Ov(zf,!0);function WM(r,i){var c=!0;return uo(r,function(f,x,A){return c=!!i(f,x,A),c}),c}function yc(r,i,c){for(var f=-1,x=r.length;++f<x;){var A=r[f],L=i(A);if(L!=null&&(F===n?L===L&&!Ln(L):c(L,F)))var F=L,U=A}return U}function UM(r,i,c,f){var x=r.length;for(c=qe(c),c<0&&(c=-c>x?0:x+c),f=f===n||f>x?x:qe(f),f<0&&(f+=x),f=c>f?0:Sb(f);c<f;)r[c++]=i;return r}function av(r,i){var c=[];return uo(r,function(f,x,A){i(f,x,A)&&c.push(f)}),c}function rn(r,i,c,f,x){var A=-1,L=r.length;for(c||(c=O$),x||(x=[]);++A<L;){var F=r[A];i>0&&c(F)?i>1?rn(F,i-1,c,f,x):so(x,F):f||(x[x.length]=F)}return x}var Ff=Av(),sv=Av(!0);function Tr(r,i){return r&&Ff(r,i,Jt)}function zf(r,i){return r&&sv(r,i,Jt)}function vc(r,i){return ao(i,function(c){return Yr(r[c])})}function No(r,i){i=po(i,r);for(var c=0,f=i.length;r!=null&&c<f;)r=r[Or(i[c++])];return c&&c==f?r:n}function lv(r,i,c){var f=i(r);return ze(r)?f:so(f,c(r))}function gn(r){return r==null?r===n?Ut:Ge:Do&&Do in Ct(r)?E$(r):j$(r)}function Wf(r,i){return r>i}function HM(r,i){return r!=null&&bt.call(r,i)}function GM(r,i){return r!=null&&i in Ct(r)}function qM(r,i,c){return r>=un(i,c)&&r<Vt(i,c)}function Uf(r,i,c){for(var f=c?Ef:Ql,x=r[0].length,A=r.length,L=A,F=Y(A),U=1/0,te=[];L--;){var ne=r[L];L&&i&&(ne=Pt(ne,Dn(i))),U=un(ne.length,U),F[L]=!c&&(i||x>=120&&ne.length>=120)?new Lo(L&&ne):n}ne=r[0];var ie=-1,ye=F[0];e:for(;++ie<x&&te.length<U;){var Ie=ne[ie],Me=i?i(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ye?Aa(ye,Me):f(te,Me,c))){for(L=A;--L;){var Je=F[L];if(!(Je?Aa(Je,Me):f(r[L],Me,c)))continue e}ye&&ye.push(Me),te.push(Ie)}}return te}function VM(r,i,c,f){return Tr(r,function(x,A,L){i(f,c(x),A,L)}),f}function Fa(r,i,c){i=po(i,r),r=Xv(r,i);var f=r==null?r:r[Or(nr(i))];return f==null?n:$n(f,r,c)}function cv(r){return Lt(r)&&gn(r)==Ke}function YM(r){return Lt(r)&&gn(r)==I}function XM(r){return Lt(r)&&gn(r)==de}function za(r,i,c,f,x){return r===i?!0:r==null||i==null||!Lt(r)&&!Lt(i)?r!==r&&i!==i:KM(r,i,c,f,za,x)}function KM(r,i,c,f,x,A){var L=ze(r),F=ze(i),U=L?He:dn(r),te=F?He:dn(i);U=U==Ke?Ae:U,te=te==Ke?Ae:te;var ne=U==Ae,ie=te==Ae,ye=U==te;if(ye&&go(r)){if(!go(i))return!1;L=!0,ne=!1}if(ye&&!ne)return A||(A=new ur),L||Li(r)?Wv(r,i,c,f,x,A):C$(r,i,U,c,f,x,A);if(!(c&S)){var Ie=ne&&bt.call(r,"__wrapped__"),Me=ie&&bt.call(i,"__wrapped__");if(Ie||Me){var Je=Ie?r.value():r,$e=Me?i.value():i;return A||(A=new ur),x(Je,$e,c,f,A)}}return ye?(A||(A=new ur),_$(r,i,c,f,x,A)):!1}function JM(r){return Lt(r)&&dn(r)==ve}function Hf(r,i,c,f){var x=c.length,A=x,L=!f;if(r==null)return!A;for(r=Ct(r);x--;){var F=c[x];if(L&&F[2]?F[1]!==r[F[0]]:!(F[0]in r))return!1}for(;++x<A;){F=c[x];var U=F[0],te=r[U],ne=F[1];if(L&&F[2]){if(te===n&&!(U in r))return!1}else{var ie=new ur;if(f)var ye=f(te,ne,U,r,i,ie);if(!(ye===n?za(ne,te,S|E,f,ie):ye))return!1}}return!0}function uv(r){if(!At(r)||M$(r))return!1;var i=Yr(r)?JA:zO;return i.test(zo(r))}function ZM(r){return Lt(r)&&gn(r)==et}function QM(r){return Lt(r)&&dn(r)==Le}function e$(r){return Lt(r)&&Dc(r.length)&&!!It[gn(r)]}function dv(r){return typeof r=="function"?r:r==null?In:typeof r=="object"?ze(r)?hv(r[0],r[1]):pv(r):Mb(r)}function Gf(r){if(!Ha(r))return rM(r);var i=[];for(var c in Ct(r))bt.call(r,c)&&c!="constructor"&&i.push(c);return i}function t$(r){if(!At(r))return L$(r);var i=Ha(r),c=[];for(var f in r)f=="constructor"&&(i||!bt.call(r,f))||c.push(f);return c}function qf(r,i){return r<i}function fv(r,i){var c=-1,f=En(r)?Y(r.length):[];return uo(r,function(x,A,L){f[++c]=i(x,A,L)}),f}function pv(r){var i=sp(r);return i.length==1&&i[0][2]?Vv(i[0][0],i[0][1]):function(c){return c===r||Hf(c,r,i)}}function hv(r,i){return cp(r)&&qv(i)?Vv(Or(r),i):function(c){var f=bp(c,r);return f===n&&f===i?xp(c,r):za(i,f,S|E)}}function bc(r,i,c,f,x){r!==i&&Ff(i,function(A,L){if(x||(x=new ur),At(A))n$(r,i,L,c,bc,f,x);else{var F=f?f(dp(r,L),A,L+"",r,i,x):n;F===n&&(F=A),jf(r,L,F)}},Rn)}function n$(r,i,c,f,x,A,L){var F=dp(r,c),U=dp(i,c),te=L.get(U);if(te){jf(r,c,te);return}var ne=A?A(F,U,c+"",r,i,L):n,ie=ne===n;if(ie){var ye=ze(U),Ie=!ye&&go(U),Me=!ye&&!Ie&&Li(U);ne=U,ye||Ie||Me?ze(F)?ne=F:Nt(F)?ne=_n(F):Ie?(ie=!1,ne=Rv(U,!0)):Me?(ie=!1,ne=Iv(U,!0)):ne=[]:qa(U)||Wo(U)?(ne=F,Wo(F)?ne=Cb(F):(!At(F)||Yr(F))&&(ne=Gv(U))):ie=!1}ie&&(L.set(U,ne),x(ne,U,f,A,L),L.delete(U)),jf(r,c,ne)}function gv(r,i){var c=r.length;if(c)return i+=i<0?c:0,Vr(i,c)?r[i]:n}function mv(r,i,c){i.length?i=Pt(i,function(A){return ze(A)?function(L){return No(L,A.length===1?A[0]:A)}:A}):i=[In];var f=-1;i=Pt(i,Dn(Oe()));var x=fv(r,function(A,L,F){var U=Pt(i,function(te){return te(A)});return{criteria:U,index:++f,value:A}});return TA(x,function(A,L){return g$(A,L,c)})}function r$(r,i){return yv(r,i,function(c,f){return xp(r,f)})}function yv(r,i,c){for(var f=-1,x=i.length,A={};++f<x;){var L=i[f],F=No(r,L);c(F,L)&&Wa(A,po(L,r),F)}return A}function o$(r){return function(i){return No(i,r)}}function Vf(r,i,c,f){var x=f?kA:Ri,A=-1,L=i.length,F=r;for(r===i&&(i=_n(i)),c&&(F=Pt(r,Dn(c)));++A<L;)for(var U=0,te=i[A],ne=c?c(te):te;(U=x(F,ne,U,f))>-1;)F!==r&&cc.call(F,U,1),cc.call(r,U,1);return r}function vv(r,i){for(var c=r?i.length:0,f=c-1;c--;){var x=i[c];if(c==f||x!==A){var A=x;Vr(x)?cc.call(r,x,1):Jf(r,x)}}return r}function Yf(r,i){return r+fc(Zy()*(i-r+1))}function i$(r,i,c,f){for(var x=-1,A=Vt(dc((i-r)/(c||1)),0),L=Y(A);A--;)L[f?A:++x]=r,r+=c;return L}function Xf(r,i){var c="";if(!r||i<1||i>he)return c;do i%2&&(c+=r),i=fc(i/2),i&&(r+=r);while(i);return c}function Ze(r,i){return fp(Yv(r,i,In),r+"")}function a$(r){return tv(ji(r))}function s$(r,i){var c=ji(r);return Tc(c,jo(i,0,c.length))}function Wa(r,i,c,f){if(!At(r))return r;i=po(i,r);for(var x=-1,A=i.length,L=A-1,F=r;F!=null&&++x<A;){var U=Or(i[x]),te=c;if(U==="__proto__"||U==="constructor"||U==="prototype")return r;if(x!=L){var ne=F[U];te=f?f(ne,U,F):n,te===n&&(te=At(ne)?ne:Vr(i[x+1])?[]:{})}ja(F,U,te),F=F[U]}return r}var bv=pc?function(r,i){return pc.set(r,i),r}:In,l$=uc?function(r,i){return uc(r,"toString",{configurable:!0,enumerable:!1,value:Sp(i),writable:!0})}:In;function c$(r){return Tc(ji(r))}function tr(r,i,c){var f=-1,x=r.length;i<0&&(i=-i>x?0:x+i),c=c>x?x:c,c<0&&(c+=x),x=i>c?0:c-i>>>0,i>>>=0;for(var A=Y(x);++f<x;)A[f]=r[f+i];return A}function u$(r,i){var c;return uo(r,function(f,x,A){return c=i(f,x,A),!c}),!!c}function xc(r,i,c){var f=0,x=r==null?f:r.length;if(typeof i=="number"&&i===i&&x<=De){for(;f<x;){var A=f+x>>>1,L=r[A];L!==null&&!Ln(L)&&(c?L<=i:L<i)?f=A+1:x=A}return x}return Kf(r,i,In,c)}function Kf(r,i,c,f){var x=0,A=r==null?0:r.length;if(A===0)return 0;i=c(i);for(var L=i!==i,F=i===null,U=Ln(i),te=i===n;x<A;){var ne=fc((x+A)/2),ie=c(r[ne]),ye=ie!==n,Ie=ie===null,Me=ie===ie,Je=Ln(ie);if(L)var $e=f||Me;else te?$e=Me&&(f||ye):F?$e=Me&&ye&&(f||!Ie):U?$e=Me&&ye&&!Ie&&(f||!Je):Ie||Je?$e=!1:$e=f?ie<=i:ie<i;$e?x=ne+1:A=ne}return un(A,Ce)}function xv(r,i){for(var c=-1,f=r.length,x=0,A=[];++c<f;){var L=r[c],F=i?i(L):L;if(!c||!dr(F,U)){var U=F;A[x++]=L===0?0:L}}return A}function wv(r){return typeof r=="number"?r:Ln(r)?we:+r}function Bn(r){if(typeof r=="string")return r;if(ze(r))return Pt(r,Bn)+"";if(Ln(r))return Qy?Qy.call(r):"";var i=r+"";return i=="0"&&1/r==-pe?"-0":i}function fo(r,i,c){var f=-1,x=Ql,A=r.length,L=!0,F=[],U=F;if(c)L=!1,x=Ef;else if(A>=a){var te=i?null:w$(r);if(te)return tc(te);L=!1,x=Aa,U=new Lo}else U=i?[]:F;e:for(;++f<A;){var ne=r[f],ie=i?i(ne):ne;if(ne=c||ne!==0?ne:0,L&&ie===ie){for(var ye=U.length;ye--;)if(U[ye]===ie)continue e;i&&U.push(ie),F.push(ne)}else x(U,ie,c)||(U!==F&&U.push(ie),F.push(ne))}return F}function Jf(r,i){return i=po(i,r),r=Xv(r,i),r==null||delete r[Or(nr(i))]}function Sv(r,i,c,f){return Wa(r,i,c(No(r,i)),f)}function wc(r,i,c,f){for(var x=r.length,A=f?x:-1;(f?A--:++A<x)&&i(r[A],A,r););return c?tr(r,f?0:A,f?A+1:x):tr(r,f?A+1:0,f?x:A)}function Cv(r,i){var c=r;return c instanceof rt&&(c=c.value()),Rf(i,function(f,x){return x.func.apply(x.thisArg,so([f],x.args))},c)}function Zf(r,i,c){var f=r.length;if(f<2)return f?fo(r[0]):[];for(var x=-1,A=Y(f);++x<f;)for(var L=r[x],F=-1;++F<f;)F!=x&&(A[x]=Na(A[x]||L,r[F],i,c));return fo(rn(A,1),i,c)}function _v(r,i,c){for(var f=-1,x=r.length,A=i.length,L={};++f<x;){var F=f<A?i[f]:n;c(L,r[f],F)}return L}function Qf(r){return Nt(r)?r:[]}function ep(r){return typeof r=="function"?r:In}function po(r,i){return ze(r)?r:cp(r,i)?[r]:Qv(mt(r))}var d$=Ze;function ho(r,i,c){var f=r.length;return c=c===n?f:c,!i&&c>=f?r:tr(r,i,c)}var Ev=ZA||function(r){return nn.clearTimeout(r)};function Rv(r,i){if(i)return r.slice();var c=r.length,f=Vy?Vy(c):new r.constructor(c);return r.copy(f),f}function tp(r){var i=new r.constructor(r.byteLength);return new sc(i).set(new sc(r)),i}function f$(r,i){var c=i?tp(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function p$(r){var i=new r.constructor(r.source,cy.exec(r));return i.lastIndex=r.lastIndex,i}function h$(r){return La?Ct(La.call(r)):{}}function Iv(r,i){var c=i?tp(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function kv(r,i){if(r!==i){var c=r!==n,f=r===null,x=r===r,A=Ln(r),L=i!==n,F=i===null,U=i===i,te=Ln(i);if(!F&&!te&&!A&&r>i||A&&L&&U&&!F&&!te||f&&L&&U||!c&&U||!x)return 1;if(!f&&!A&&!te&&r<i||te&&c&&x&&!f&&!A||F&&c&&x||!L&&x||!U)return-1}return 0}function g$(r,i,c){for(var f=-1,x=r.criteria,A=i.criteria,L=x.length,F=c.length;++f<L;){var U=kv(x[f],A[f]);if(U){if(f>=F)return U;var te=c[f];return U*(te=="desc"?-1:1)}}return r.index-i.index}function Tv(r,i,c,f){for(var x=-1,A=r.length,L=c.length,F=-1,U=i.length,te=Vt(A-L,0),ne=Y(U+te),ie=!f;++F<U;)ne[F]=i[F];for(;++x<L;)(ie||x<A)&&(ne[c[x]]=r[x]);for(;te--;)ne[F++]=r[x++];return ne}function Pv(r,i,c,f){for(var x=-1,A=r.length,L=-1,F=c.length,U=-1,te=i.length,ne=Vt(A-F,0),ie=Y(ne+te),ye=!f;++x<ne;)ie[x]=r[x];for(var Ie=x;++U<te;)ie[Ie+U]=i[U];for(;++L<F;)(ye||x<A)&&(ie[Ie+c[L]]=r[x++]);return ie}function _n(r,i){var c=-1,f=r.length;for(i||(i=Y(f));++c<f;)i[c]=r[c];return i}function Pr(r,i,c,f){var x=!c;c||(c={});for(var A=-1,L=i.length;++A<L;){var F=i[A],U=f?f(c[F],r[F],F,c,r):n;U===n&&(U=r[F]),x?Hr(c,F,U):ja(c,F,U)}return c}function m$(r,i){return Pr(r,lp(r),i)}function y$(r,i){return Pr(r,Uv(r),i)}function Sc(r,i){return function(c,f){var x=ze(c)?SA:NM,A=i?i():{};return x(c,r,Oe(f,2),A)}}function $i(r){return Ze(function(i,c){var f=-1,x=c.length,A=x>1?c[x-1]:n,L=x>2?c[2]:n;for(A=r.length>3&&typeof A=="function"?(x--,A):n,L&&mn(c[0],c[1],L)&&(A=x<3?n:A,x=1),i=Ct(i);++f<x;){var F=c[f];F&&r(i,F,f,A)}return i})}function Ov(r,i){return function(c,f){if(c==null)return c;if(!En(c))return r(c,f);for(var x=c.length,A=i?x:-1,L=Ct(c);(i?A--:++A<x)&&f(L[A],A,L)!==!1;);return c}}function Av(r){return function(i,c,f){for(var x=-1,A=Ct(i),L=f(i),F=L.length;F--;){var U=L[r?F:++x];if(c(A[U],U,A)===!1)break}return i}}function v$(r,i,c){var f=i&P,x=Ua(r);function A(){var L=this&&this!==nn&&this instanceof A?x:r;return L.apply(f?c:this,arguments)}return A}function Mv(r){return function(i){i=mt(i);var c=Ii(i)?cr(i):n,f=c?c[0]:i.charAt(0),x=c?ho(c,1).join(""):i.slice(1);return f[r]()+x}}function Di(r){return function(i){return Rf(Ob(Pb(i).replace(lA,"")),r,"")}}function Ua(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var c=Mi(r.prototype),f=r.apply(c,i);return At(f)?f:c}}function b$(r,i,c){var f=Ua(r);function x(){for(var A=arguments.length,L=Y(A),F=A,U=Bi(x);F--;)L[F]=arguments[F];var te=A<3&&L[0]!==U&&L[A-1]!==U?[]:lo(L,U);if(A-=te.length,A<c)return jv(r,i,Cc,x.placeholder,n,L,te,n,n,c-A);var ne=this&&this!==nn&&this instanceof x?f:r;return $n(ne,this,L)}return x}function $v(r){return function(i,c,f){var x=Ct(i);if(!En(i)){var A=Oe(c,3);i=Jt(i),c=function(F){return A(x[F],F,x)}}var L=r(i,c,f);return L>-1?x[A?i[L]:L]:n}}function Dv(r){return qr(function(i){var c=i.length,f=c,x=Qn.prototype.thru;for(r&&i.reverse();f--;){var A=i[f];if(typeof A!="function")throw new Zn(l);if(x&&!L&&Ic(A)=="wrapper")var L=new Qn([],!0)}for(f=L?f:c;++f<c;){A=i[f];var F=Ic(A),U=F=="wrapper"?ap(A):n;U&&up(U[0])&&U[1]==(M|k|$|z)&&!U[4].length&&U[9]==1?L=L[Ic(U[0])].apply(L,U[3]):L=A.length==1&&up(A)?L[F]():L.thru(A)}return function(){var te=arguments,ne=te[0];if(L&&te.length==1&&ze(ne))return L.plant(ne).value();for(var ie=0,ye=c?i[ie].apply(this,te):ne;++ie<c;)ye=i[ie].call(this,ye);return ye}})}function Cc(r,i,c,f,x,A,L,F,U,te){var ne=i&M,ie=i&P,ye=i&C,Ie=i&(k|R),Me=i&V,Je=ye?n:Ua(r);function $e(){for(var tt=arguments.length,ot=Y(tt),jn=tt;jn--;)ot[jn]=arguments[jn];if(Ie)var yn=Bi($e),Nn=OA(ot,yn);if(f&&(ot=Tv(ot,f,x,Ie)),A&&(ot=Pv(ot,A,L,Ie)),tt-=Nn,Ie&&tt<te){var Ft=lo(ot,yn);return jv(r,i,Cc,$e.placeholder,c,ot,Ft,F,U,te-tt)}var fr=ie?c:this,Kr=ye?fr[r]:r;return tt=ot.length,F?ot=N$(ot,F):Me&&tt>1&&ot.reverse(),ne&&U<tt&&(ot.length=U),this&&this!==nn&&this instanceof $e&&(Kr=Je||Ua(Kr)),Kr.apply(fr,ot)}return $e}function Bv(r,i){return function(c,f){return VM(c,r,i(f),{})}}function _c(r,i){return function(c,f){var x;if(c===n&&f===n)return i;if(c!==n&&(x=c),f!==n){if(x===n)return f;typeof c=="string"||typeof f=="string"?(c=Bn(c),f=Bn(f)):(c=wv(c),f=wv(f)),x=r(c,f)}return x}}function np(r){return qr(function(i){return i=Pt(i,Dn(Oe())),Ze(function(c){var f=this;return r(i,function(x){return $n(x,f,c)})})})}function Ec(r,i){i=i===n?" ":Bn(i);var c=i.length;if(c<2)return c?Xf(i,r):i;var f=Xf(i,dc(r/ki(i)));return Ii(i)?ho(cr(f),0,r).join(""):f.slice(0,r)}function x$(r,i,c,f){var x=i&P,A=Ua(r);function L(){for(var F=-1,U=arguments.length,te=-1,ne=f.length,ie=Y(ne+U),ye=this&&this!==nn&&this instanceof L?A:r;++te<ne;)ie[te]=f[te];for(;U--;)ie[te++]=arguments[++F];return $n(ye,x?c:this,ie)}return L}function Lv(r){return function(i,c,f){return f&&typeof f!="number"&&mn(i,c,f)&&(c=f=n),i=Xr(i),c===n?(c=i,i=0):c=Xr(c),f=f===n?i<c?1:-1:Xr(f),i$(i,c,f,r)}}function Rc(r){return function(i,c){return typeof i=="string"&&typeof c=="string"||(i=rr(i),c=rr(c)),r(i,c)}}function jv(r,i,c,f,x,A,L,F,U,te){var ne=i&k,ie=ne?L:n,ye=ne?n:L,Ie=ne?A:n,Me=ne?n:A;i|=ne?$:B,i&=~(ne?B:$),i&O||(i&=~(P|C));var Je=[r,i,x,Ie,ie,Me,ye,F,U,te],$e=c.apply(n,Je);return up(r)&&Kv($e,Je),$e.placeholder=f,Jv($e,r,i)}function rp(r){var i=qt[r];return function(c,f){if(c=rr(c),f=f==null?0:un(qe(f),292),f&&Jy(c)){var x=(mt(c)+"e").split("e"),A=i(x[0]+"e"+(+x[1]+f));return x=(mt(A)+"e").split("e"),+(x[0]+"e"+(+x[1]-f))}return i(c)}}var w$=Oi&&1/tc(new Oi([,-0]))[1]==pe?function(r){return new Oi(r)}:Ep;function Nv(r){return function(i){var c=dn(i);return c==ve?Mf(i):c==Le?jA(i):PA(i,r(i))}}function Gr(r,i,c,f,x,A,L,F){var U=i&C;if(!U&&typeof r!="function")throw new Zn(l);var te=f?f.length:0;if(te||(i&=~($|B),f=x=n),L=L===n?L:Vt(qe(L),0),F=F===n?F:qe(F),te-=x?x.length:0,i&B){var ne=f,ie=x;f=x=n}var ye=U?n:ap(r),Ie=[r,i,c,f,x,ne,ie,A,L,F];if(ye&&B$(Ie,ye),r=Ie[0],i=Ie[1],c=Ie[2],f=Ie[3],x=Ie[4],F=Ie[9]=Ie[9]===n?U?0:r.length:Vt(Ie[9]-te,0),!F&&i&(k|R)&&(i&=~(k|R)),!i||i==P)var Me=v$(r,i,c);else i==k||i==R?Me=b$(r,i,F):(i==$||i==(P|$))&&!x.length?Me=x$(r,i,c,f):Me=Cc.apply(n,Ie);var Je=ye?bv:Kv;return Jv(Je(Me,Ie),r,i)}function Fv(r,i,c,f){return r===n||dr(r,Pi[c])&&!bt.call(f,c)?i:r}function zv(r,i,c,f,x,A){return At(r)&&At(i)&&(A.set(i,r),bc(r,i,n,zv,A),A.delete(i)),r}function S$(r){return qa(r)?n:r}function Wv(r,i,c,f,x,A){var L=c&S,F=r.length,U=i.length;if(F!=U&&!(L&&U>F))return!1;var te=A.get(r),ne=A.get(i);if(te&&ne)return te==i&&ne==r;var ie=-1,ye=!0,Ie=c&E?new Lo:n;for(A.set(r,i),A.set(i,r);++ie<F;){var Me=r[ie],Je=i[ie];if(f)var $e=L?f(Je,Me,ie,i,r,A):f(Me,Je,ie,r,i,A);if($e!==n){if($e)continue;ye=!1;break}if(Ie){if(!If(i,function(tt,ot){if(!Aa(Ie,ot)&&(Me===tt||x(Me,tt,c,f,A)))return Ie.push(ot)})){ye=!1;break}}else if(!(Me===Je||x(Me,Je,c,f,A))){ye=!1;break}}return A.delete(r),A.delete(i),ye}function C$(r,i,c,f,x,A,L){switch(c){case p:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case I:return!(r.byteLength!=i.byteLength||!A(new sc(r),new sc(i)));case se:case de:case Be:return dr(+r,+i);case me:return r.name==i.name&&r.message==i.message;case et:case xe:return r==i+"";case ve:var F=Mf;case Le:var U=f&S;if(F||(F=tc),r.size!=i.size&&!U)return!1;var te=L.get(r);if(te)return te==i;f|=E,L.set(r,i);var ne=Wv(F(r),F(i),f,x,A,L);return L.delete(r),ne;case ut:if(La)return La.call(r)==La.call(i)}return!1}function _$(r,i,c,f,x,A){var L=c&S,F=op(r),U=F.length,te=op(i),ne=te.length;if(U!=ne&&!L)return!1;for(var ie=U;ie--;){var ye=F[ie];if(!(L?ye in i:bt.call(i,ye)))return!1}var Ie=A.get(r),Me=A.get(i);if(Ie&&Me)return Ie==i&&Me==r;var Je=!0;A.set(r,i),A.set(i,r);for(var $e=L;++ie<U;){ye=F[ie];var tt=r[ye],ot=i[ye];if(f)var jn=L?f(ot,tt,ye,i,r,A):f(tt,ot,ye,r,i,A);if(!(jn===n?tt===ot||x(tt,ot,c,f,A):jn)){Je=!1;break}$e||($e=ye=="constructor")}if(Je&&!$e){var yn=r.constructor,Nn=i.constructor;yn!=Nn&&"constructor"in r&&"constructor"in i&&!(typeof yn=="function"&&yn instanceof yn&&typeof Nn=="function"&&Nn instanceof Nn)&&(Je=!1)}return A.delete(r),A.delete(i),Je}function qr(r){return fp(Yv(r,n,rb),r+"")}function op(r){return lv(r,Jt,lp)}function ip(r){return lv(r,Rn,Uv)}var ap=pc?function(r){return pc.get(r)}:Ep;function Ic(r){for(var i=r.name+"",c=Ai[i],f=bt.call(Ai,i)?c.length:0;f--;){var x=c[f],A=x.func;if(A==null||A==r)return x.name}return i}function Bi(r){var i=bt.call(T,"placeholder")?T:r;return i.placeholder}function Oe(){var r=T.iteratee||Cp;return r=r===Cp?dv:r,arguments.length?r(arguments[0],arguments[1]):r}function kc(r,i){var c=r.__data__;return A$(i)?c[typeof i=="string"?"string":"hash"]:c.map}function sp(r){for(var i=Jt(r),c=i.length;c--;){var f=i[c],x=r[f];i[c]=[f,x,qv(x)]}return i}function Fo(r,i){var c=DA(r,i);return uv(c)?c:n}function E$(r){var i=bt.call(r,Do),c=r[Do];try{r[Do]=n;var f=!0}catch{}var x=ic.call(r);return f&&(i?r[Do]=c:delete r[Do]),x}var lp=Df?function(r){return r==null?[]:(r=Ct(r),ao(Df(r),function(i){return Xy.call(r,i)}))}:Rp,Uv=Df?function(r){for(var i=[];r;)so(i,lp(r)),r=lc(r);return i}:Rp,dn=gn;(Bf&&dn(new Bf(new ArrayBuffer(1)))!=p||$a&&dn(new $a)!=ve||Lf&&dn(Lf.resolve())!=ke||Oi&&dn(new Oi)!=Le||Da&&dn(new Da)!=Ht)&&(dn=function(r){var i=gn(r),c=i==Ae?r.constructor:n,f=c?zo(c):"";if(f)switch(f){case sM:return p;case lM:return ve;case cM:return ke;case uM:return Le;case dM:return Ht}return i});function R$(r,i,c){for(var f=-1,x=c.length;++f<x;){var A=c[f],L=A.size;switch(A.type){case"drop":r+=L;break;case"dropRight":i-=L;break;case"take":i=un(i,r+L);break;case"takeRight":r=Vt(r,i-L);break}}return{start:r,end:i}}function I$(r){var i=r.match(MO);return i?i[1].split($O):[]}function Hv(r,i,c){i=po(i,r);for(var f=-1,x=i.length,A=!1;++f<x;){var L=Or(i[f]);if(!(A=r!=null&&c(r,L)))break;r=r[L]}return A||++f!=x?A:(x=r==null?0:r.length,!!x&&Dc(x)&&Vr(L,x)&&(ze(r)||Wo(r)))}function k$(r){var i=r.length,c=new r.constructor(i);return i&&typeof r[0]=="string"&&bt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Gv(r){return typeof r.constructor=="function"&&!Ha(r)?Mi(lc(r)):{}}function T$(r,i,c){var f=r.constructor;switch(i){case I:return tp(r);case se:case de:return new f(+r);case p:return f$(r,c);case g:case D:case N:case q:case J:case ce:case oe:case ae:case Ee:return Iv(r,c);case ve:return new f;case Be:case xe:return new f(r);case et:return p$(r);case Le:return new f;case ut:return h$(r)}}function P$(r,i){var c=i.length;if(!c)return r;var f=c-1;return i[f]=(c>1?"& ":"")+i[f],i=i.join(c>2?", ":" "),r.replace(AO,`{
|
|
676
|
+
*/El.exports,function(e,t){(function(){var n,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,b=2,w=4,_=1,E=2,P=1,S=2,O=4,k=8,I=16,M=32,B=64,D=128,V=256,U=512,C=30,G="...",Z=800,H=16,K=1,te=2,se=3,de=1/0,he=9007199254740991,be=17976931348623157e292,we=NaN,ue=4294967295,Ce=ue-1,De=ue>>>1,Xe=[["ary",D],["bind",P],["bindKey",S],["curry",k],["curryRight",I],["flip",U],["partial",M],["partialRight",B],["rearg",V]],Ke="[object Arguments]",He="[object Array]",gt="[object AsyncFunction]",le="[object Boolean]",fe="[object Date]",ge="[object DOMException]",me="[object Error]",pe="[object Function]",Pe="[object GeneratorFunction]",ve="[object Map]",Be="[object Number]",Ge="[object Null]",Ae="[object Object]",ke="[object Promise]",We="[object Proxy]",tt="[object RegExp]",Le="[object Set]",xe="[object String]",ut="[object Symbol]",Ut="[object Undefined]",Ht="[object WeakMap]",Yn="[object WeakSet]",R="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",$="[object Float64Array]",N="[object Int8Array]",q="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",ae="[object Uint16Array]",Ee="[object Uint32Array]",_e=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kr=/&(?:amp|lt|gt|quot|#39);/g,io=/[&<>"']/g,Yl=RegExp(kr.source),Oa=RegExp(io.source),_O=/<%-([\s\S]+?)%>/g,EO=/<%([\s\S]+?)%>/g,sy=/<%=([\s\S]+?)%>/g,RO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IO=/^\w*$/,kO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gf=/[\\^$.*+?()[\]{}|]/g,TO=RegExp(gf.source),mf=/^\s+/,PO=/\s/,OO=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,AO=/\{\n\/\* \[wrapped with (.+)\] \*/,MO=/,? & /,$O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DO=/[()=,{}\[\]\/\s]/,BO=/\\(\\)?/g,LO=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ly=/\w*$/,jO=/^[-+]0x[0-9a-f]+$/i,NO=/^0b[01]+$/i,FO=/^\[object .+?Constructor\]$/,zO=/^0o[0-7]+$/i,WO=/^(?:0|[1-9]\d*)$/,UO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xl=/($^)/,HO=/['\n\r\u2028\u2029\\]/g,Kl="\\ud800-\\udfff",GO="\\u0300-\\u036f",qO="\\ufe20-\\ufe2f",VO="\\u20d0-\\u20ff",cy=GO+qO+VO,uy="\\u2700-\\u27bf",dy="a-z\\xdf-\\xf6\\xf8-\\xff",YO="\\xac\\xb1\\xd7\\xf7",XO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",KO="\\u2000-\\u206f",JO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fy="A-Z\\xc0-\\xd6\\xd8-\\xde",py="\\ufe0e\\ufe0f",hy=YO+XO+KO+JO,yf="['’]",ZO="["+Kl+"]",gy="["+hy+"]",Jl="["+cy+"]",my="\\d+",QO="["+uy+"]",yy="["+dy+"]",vy="[^"+Kl+hy+my+uy+dy+fy+"]",vf="\\ud83c[\\udffb-\\udfff]",eA="(?:"+Jl+"|"+vf+")",by="[^"+Kl+"]",bf="(?:\\ud83c[\\udde6-\\uddff]){2}",xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+fy+"]",xy="\\u200d",wy="(?:"+yy+"|"+vy+")",tA="(?:"+Ei+"|"+vy+")",Sy="(?:"+yf+"(?:d|ll|m|re|s|t|ve))?",Cy="(?:"+yf+"(?:D|LL|M|RE|S|T|VE))?",_y=eA+"?",Ey="["+py+"]?",nA="(?:"+xy+"(?:"+[by,bf,xf].join("|")+")"+Ey+_y+")*",rA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ry=Ey+_y+nA,iA="(?:"+[QO,bf,xf].join("|")+")"+Ry,aA="(?:"+[by+Jl+"?",Jl,bf,xf,ZO].join("|")+")",sA=RegExp(yf,"g"),lA=RegExp(Jl,"g"),wf=RegExp(vf+"(?="+vf+")|"+aA+Ry,"g"),cA=RegExp([Ei+"?"+yy+"+"+Sy+"(?="+[gy,Ei,"$"].join("|")+")",tA+"+"+Cy+"(?="+[gy,Ei+wy,"$"].join("|")+")",Ei+"?"+wy+"+"+Sy,Ei+"+"+Cy,oA,rA,my,iA].join("|"),"g"),uA=RegExp("["+xy+Kl+cy+py+"]"),dA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pA=-1,It={};It[g]=It[$]=It[N]=It[q]=It[Q]=It[ce]=It[oe]=It[ae]=It[Ee]=!0,It[Ke]=It[He]=It[R]=It[le]=It[p]=It[fe]=It[me]=It[pe]=It[ve]=It[Be]=It[Ae]=It[tt]=It[Le]=It[xe]=It[Ht]=!1;var Et={};Et[Ke]=Et[He]=Et[R]=Et[p]=Et[le]=Et[fe]=Et[g]=Et[$]=Et[N]=Et[q]=Et[Q]=Et[ve]=Et[Be]=Et[Ae]=Et[tt]=Et[Le]=Et[xe]=Et[ut]=Et[ce]=Et[oe]=Et[ae]=Et[Ee]=!0,Et[me]=Et[pe]=Et[Ht]=!1;var hA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gA={"&":"&","<":"<",">":">",'"':""","'":"'"},mA={"&":"&","<":"<",">":">",""":'"',"'":"'"},yA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vA=parseFloat,bA=parseInt,Iy=typeof Mr=="object"&&Mr&&Mr.Object===Object&&Mr,xA=typeof self=="object"&&self&&self.Object===Object&&self,nn=Iy||xA||Function("return this")(),Sf=t&&!t.nodeType&&t,Do=Sf&&!0&&e&&!e.nodeType&&e,ky=Do&&Do.exports===Sf,Cf=ky&&Iy.process,Kn=function(){try{var z=Do&&Do.require&&Do.require("util").types;return z||Cf&&Cf.binding&&Cf.binding("util")}catch{}}(),Ty=Kn&&Kn.isArrayBuffer,Py=Kn&&Kn.isDate,Oy=Kn&&Kn.isMap,Ay=Kn&&Kn.isRegExp,My=Kn&&Kn.isSet,$y=Kn&&Kn.isTypedArray;function $n(z,ee,X){switch(X.length){case 0:return z.call(ee);case 1:return z.call(ee,X[0]);case 2:return z.call(ee,X[0],X[1]);case 3:return z.call(ee,X[0],X[1],X[2])}return z.apply(ee,X)}function wA(z,ee,X,Se){for(var Fe=-1,dt=z==null?0:z.length;++Fe<dt;){var qt=z[Fe];ee(Se,qt,X(qt),z)}return Se}function Jn(z,ee){for(var X=-1,Se=z==null?0:z.length;++X<Se&&ee(z[X],X,z)!==!1;);return z}function SA(z,ee){for(var X=z==null?0:z.length;X--&&ee(z[X],X,z)!==!1;);return z}function Dy(z,ee){for(var X=-1,Se=z==null?0:z.length;++X<Se;)if(!ee(z[X],X,z))return!1;return!0}function ao(z,ee){for(var X=-1,Se=z==null?0:z.length,Fe=0,dt=[];++X<Se;){var qt=z[X];ee(qt,X,z)&&(dt[Fe++]=qt)}return dt}function Zl(z,ee){var X=z==null?0:z.length;return!!X&&Ri(z,ee,0)>-1}function _f(z,ee,X){for(var Se=-1,Fe=z==null?0:z.length;++Se<Fe;)if(X(ee,z[Se]))return!0;return!1}function Pt(z,ee){for(var X=-1,Se=z==null?0:z.length,Fe=Array(Se);++X<Se;)Fe[X]=ee(z[X],X,z);return Fe}function so(z,ee){for(var X=-1,Se=ee.length,Fe=z.length;++X<Se;)z[Fe+X]=ee[X];return z}function Ef(z,ee,X,Se){var Fe=-1,dt=z==null?0:z.length;for(Se&&dt&&(X=z[++Fe]);++Fe<dt;)X=ee(X,z[Fe],Fe,z);return X}function CA(z,ee,X,Se){var Fe=z==null?0:z.length;for(Se&&Fe&&(X=z[--Fe]);Fe--;)X=ee(X,z[Fe],Fe,z);return X}function Rf(z,ee){for(var X=-1,Se=z==null?0:z.length;++X<Se;)if(ee(z[X],X,z))return!0;return!1}var _A=If("length");function EA(z){return z.split("")}function RA(z){return z.match($O)||[]}function By(z,ee,X){var Se;return X(z,function(Fe,dt,qt){if(ee(Fe,dt,qt))return Se=dt,!1}),Se}function Ql(z,ee,X,Se){for(var Fe=z.length,dt=X+(Se?1:-1);Se?dt--:++dt<Fe;)if(ee(z[dt],dt,z))return dt;return-1}function Ri(z,ee,X){return ee===ee?jA(z,ee,X):Ql(z,Ly,X)}function IA(z,ee,X,Se){for(var Fe=X-1,dt=z.length;++Fe<dt;)if(Se(z[Fe],ee))return Fe;return-1}function Ly(z){return z!==z}function jy(z,ee){var X=z==null?0:z.length;return X?Tf(z,ee)/X:we}function If(z){return function(ee){return ee==null?n:ee[z]}}function kf(z){return function(ee){return z==null?n:z[ee]}}function Ny(z,ee,X,Se,Fe){return Fe(z,function(dt,qt,Ct){X=Se?(Se=!1,dt):ee(X,dt,qt,Ct)}),X}function kA(z,ee){var X=z.length;for(z.sort(ee);X--;)z[X]=z[X].value;return z}function Tf(z,ee){for(var X,Se=-1,Fe=z.length;++Se<Fe;){var dt=ee(z[Se]);dt!==n&&(X=X===n?dt:X+dt)}return X}function Pf(z,ee){for(var X=-1,Se=Array(z);++X<z;)Se[X]=ee(X);return Se}function TA(z,ee){return Pt(ee,function(X){return[X,z[X]]})}function Fy(z){return z&&z.slice(0,Hy(z)+1).replace(mf,"")}function Dn(z){return function(ee){return z(ee)}}function Of(z,ee){return Pt(ee,function(X){return z[X]})}function Aa(z,ee){return z.has(ee)}function zy(z,ee){for(var X=-1,Se=z.length;++X<Se&&Ri(ee,z[X],0)>-1;);return X}function Wy(z,ee){for(var X=z.length;X--&&Ri(ee,z[X],0)>-1;);return X}function PA(z,ee){for(var X=z.length,Se=0;X--;)z[X]===ee&&++Se;return Se}var OA=kf(hA),AA=kf(gA);function MA(z){return"\\"+yA[z]}function $A(z,ee){return z==null?n:z[ee]}function Ii(z){return uA.test(z)}function DA(z){return dA.test(z)}function BA(z){for(var ee,X=[];!(ee=z.next()).done;)X.push(ee.value);return X}function Af(z){var ee=-1,X=Array(z.size);return z.forEach(function(Se,Fe){X[++ee]=[Fe,Se]}),X}function Uy(z,ee){return function(X){return z(ee(X))}}function lo(z,ee){for(var X=-1,Se=z.length,Fe=0,dt=[];++X<Se;){var qt=z[X];(qt===ee||qt===y)&&(z[X]=y,dt[Fe++]=X)}return dt}function ec(z){var ee=-1,X=Array(z.size);return z.forEach(function(Se){X[++ee]=Se}),X}function LA(z){var ee=-1,X=Array(z.size);return z.forEach(function(Se){X[++ee]=[Se,Se]}),X}function jA(z,ee,X){for(var Se=X-1,Fe=z.length;++Se<Fe;)if(z[Se]===ee)return Se;return-1}function NA(z,ee,X){for(var Se=X+1;Se--;)if(z[Se]===ee)return Se;return Se}function ki(z){return Ii(z)?zA(z):_A(z)}function cr(z){return Ii(z)?WA(z):EA(z)}function Hy(z){for(var ee=z.length;ee--&&PO.test(z.charAt(ee)););return ee}var FA=kf(mA);function zA(z){for(var ee=wf.lastIndex=0;wf.test(z);)++ee;return ee}function WA(z){return z.match(wf)||[]}function UA(z){return z.match(cA)||[]}var HA=function z(ee){ee=ee==null?nn:Ti.defaults(nn.Object(),ee,Ti.pick(nn,fA));var X=ee.Array,Se=ee.Date,Fe=ee.Error,dt=ee.Function,qt=ee.Math,Ct=ee.Object,Mf=ee.RegExp,GA=ee.String,Zn=ee.TypeError,tc=X.prototype,qA=dt.prototype,Pi=Ct.prototype,nc=ee["__core-js_shared__"],rc=qA.toString,bt=Pi.hasOwnProperty,VA=0,Gy=function(){var r=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),oc=Pi.toString,YA=rc.call(Ct),XA=nn._,KA=Mf("^"+rc.call(bt).replace(gf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ic=ky?ee.Buffer:n,co=ee.Symbol,ac=ee.Uint8Array,qy=ic?ic.allocUnsafe:n,sc=Uy(Ct.getPrototypeOf,Ct),Vy=Ct.create,Yy=Pi.propertyIsEnumerable,lc=tc.splice,Xy=co?co.isConcatSpreadable:n,Ma=co?co.iterator:n,Bo=co?co.toStringTag:n,cc=function(){try{var r=zo(Ct,"defineProperty");return r({},"",{}),r}catch{}}(),JA=ee.clearTimeout!==nn.clearTimeout&&ee.clearTimeout,ZA=Se&&Se.now!==nn.Date.now&&Se.now,QA=ee.setTimeout!==nn.setTimeout&&ee.setTimeout,uc=qt.ceil,dc=qt.floor,$f=Ct.getOwnPropertySymbols,eM=ic?ic.isBuffer:n,Ky=ee.isFinite,tM=tc.join,nM=Uy(Ct.keys,Ct),Vt=qt.max,un=qt.min,rM=Se.now,oM=ee.parseInt,Jy=qt.random,iM=tc.reverse,Df=zo(ee,"DataView"),$a=zo(ee,"Map"),Bf=zo(ee,"Promise"),Oi=zo(ee,"Set"),Da=zo(ee,"WeakMap"),Ba=zo(Ct,"create"),fc=Da&&new Da,Ai={},aM=Wo(Df),sM=Wo($a),lM=Wo(Bf),cM=Wo(Oi),uM=Wo(Da),pc=co?co.prototype:n,La=pc?pc.valueOf:n,Zy=pc?pc.toString:n;function T(r){if(Lt(r)&&!ze(r)&&!(r instanceof rt)){if(r instanceof Qn)return r;if(bt.call(r,"__wrapped__"))return Qv(r)}return new Qn(r)}var Mi=function(){function r(){}return function(i){if(!At(i))return{};if(Vy)return Vy(i);r.prototype=i;var c=new r;return r.prototype=n,c}}();function hc(){}function Qn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}T.templateSettings={escape:_O,evaluate:EO,interpolate:sy,variable:"",imports:{_:T}},T.prototype=hc.prototype,T.prototype.constructor=T,Qn.prototype=Mi(hc.prototype),Qn.prototype.constructor=Qn;function rt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function dM(){var r=new rt(this.__wrapped__);return r.__actions__=_n(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=_n(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=_n(this.__views__),r}function fM(){if(this.__filtered__){var r=new rt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function pM(){var r=this.__wrapped__.value(),i=this.__dir__,c=ze(r),f=i<0,x=c?r.length:0,A=E$(0,x,this.__views__),L=A.start,F=A.end,W=F-L,ne=f?F:L-1,re=this.__iteratees__,ie=re.length,ye=0,Ie=un(W,this.__takeCount__);if(!c||!f&&x==W&&Ie==W)return Sv(r,this.__actions__);var Me=[];e:for(;W--&&ye<Ie;){ne+=i;for(var Je=-1,$e=r[ne];++Je<ie;){var nt=re[Je],ot=nt.iteratee,jn=nt.type,yn=ot($e);if(jn==te)$e=yn;else if(!yn){if(jn==K)continue e;break e}}Me[ye++]=$e}return Me}rt.prototype=Mi(hc.prototype),rt.prototype.constructor=rt;function Lo(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function hM(){this.__data__=Ba?Ba(null):{},this.size=0}function gM(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function mM(r){var i=this.__data__;if(Ba){var c=i[r];return c===d?n:c}return bt.call(i,r)?i[r]:n}function yM(r){var i=this.__data__;return Ba?i[r]!==n:bt.call(i,r)}function vM(r,i){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=Ba&&i===n?d:i,this}Lo.prototype.clear=hM,Lo.prototype.delete=gM,Lo.prototype.get=mM,Lo.prototype.has=yM,Lo.prototype.set=vM;function Wr(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function bM(){this.__data__=[],this.size=0}function xM(r){var i=this.__data__,c=gc(i,r);if(c<0)return!1;var f=i.length-1;return c==f?i.pop():lc.call(i,c,1),--this.size,!0}function wM(r){var i=this.__data__,c=gc(i,r);return c<0?n:i[c][1]}function SM(r){return gc(this.__data__,r)>-1}function CM(r,i){var c=this.__data__,f=gc(c,r);return f<0?(++this.size,c.push([r,i])):c[f][1]=i,this}Wr.prototype.clear=bM,Wr.prototype.delete=xM,Wr.prototype.get=wM,Wr.prototype.has=SM,Wr.prototype.set=CM;function Ur(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function _M(){this.size=0,this.__data__={hash:new Lo,map:new($a||Wr),string:new Lo}}function EM(r){var i=Ic(this,r).delete(r);return this.size-=i?1:0,i}function RM(r){return Ic(this,r).get(r)}function IM(r){return Ic(this,r).has(r)}function kM(r,i){var c=Ic(this,r),f=c.size;return c.set(r,i),this.size+=c.size==f?0:1,this}Ur.prototype.clear=_M,Ur.prototype.delete=EM,Ur.prototype.get=RM,Ur.prototype.has=IM,Ur.prototype.set=kM;function jo(r){var i=-1,c=r==null?0:r.length;for(this.__data__=new Ur;++i<c;)this.add(r[i])}function TM(r){return this.__data__.set(r,d),this}function PM(r){return this.__data__.has(r)}jo.prototype.add=jo.prototype.push=TM,jo.prototype.has=PM;function ur(r){var i=this.__data__=new Wr(r);this.size=i.size}function OM(){this.__data__=new Wr,this.size=0}function AM(r){var i=this.__data__,c=i.delete(r);return this.size=i.size,c}function MM(r){return this.__data__.get(r)}function $M(r){return this.__data__.has(r)}function DM(r,i){var c=this.__data__;if(c instanceof Wr){var f=c.__data__;if(!$a||f.length<a-1)return f.push([r,i]),this.size=++c.size,this;c=this.__data__=new Ur(f)}return c.set(r,i),this.size=c.size,this}ur.prototype.clear=OM,ur.prototype.delete=AM,ur.prototype.get=MM,ur.prototype.has=$M,ur.prototype.set=DM;function Qy(r,i){var c=ze(r),f=!c&&Uo(r),x=!c&&!f&&go(r),A=!c&&!f&&!x&&Li(r),L=c||f||x||A,F=L?Pf(r.length,GA):[],W=F.length;for(var ne in r)(i||bt.call(r,ne))&&!(L&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||A&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Vr(ne,W)))&&F.push(ne);return F}function ev(r){var i=r.length;return i?r[Vf(0,i-1)]:n}function BM(r,i){return kc(_n(r),No(i,0,r.length))}function LM(r){return kc(_n(r))}function Lf(r,i,c){(c!==n&&!dr(r[i],c)||c===n&&!(i in r))&&Hr(r,i,c)}function ja(r,i,c){var f=r[i];(!(bt.call(r,i)&&dr(f,c))||c===n&&!(i in r))&&Hr(r,i,c)}function gc(r,i){for(var c=r.length;c--;)if(dr(r[c][0],i))return c;return-1}function jM(r,i,c,f){return uo(r,function(x,A,L){i(f,x,c(x),L)}),f}function tv(r,i){return r&&Pr(i,Jt(i),r)}function NM(r,i){return r&&Pr(i,Rn(i),r)}function Hr(r,i,c){i=="__proto__"&&cc?cc(r,i,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[i]=c}function jf(r,i){for(var c=-1,f=i.length,x=X(f),A=r==null;++c<f;)x[c]=A?n:vp(r,i[c]);return x}function No(r,i,c){return r===r&&(c!==n&&(r=r<=c?r:c),i!==n&&(r=r>=i?r:i)),r}function er(r,i,c,f,x,A){var L,F=i&m,W=i&b,ne=i&w;if(c&&(L=x?c(r,f,x,A):c(r)),L!==n)return L;if(!At(r))return r;var re=ze(r);if(re){if(L=I$(r),!F)return _n(r,L)}else{var ie=dn(r),ye=ie==pe||ie==Pe;if(go(r))return Ev(r,F);if(ie==Ae||ie==Ke||ye&&!x){if(L=W||ye?{}:Hv(r),!F)return W?m$(r,NM(L,r)):g$(r,tv(L,r))}else{if(!Et[ie])return x?r:{};L=k$(r,ie,F)}}A||(A=new ur);var Ie=A.get(r);if(Ie)return Ie;A.set(r,L),bb(r)?r.forEach(function($e){L.add(er($e,i,c,$e,r,A))}):yb(r)&&r.forEach(function($e,nt){L.set(nt,er($e,i,c,nt,r,A))});var Me=ne?W?op:rp:W?Rn:Jt,Je=re?n:Me(r);return Jn(Je||r,function($e,nt){Je&&(nt=$e,$e=r[nt]),ja(L,nt,er($e,i,c,nt,r,A))}),L}function FM(r){var i=Jt(r);return function(c){return nv(c,r,i)}}function nv(r,i,c){var f=c.length;if(r==null)return!f;for(r=Ct(r);f--;){var x=c[f],A=i[x],L=r[x];if(L===n&&!(x in r)||!A(L))return!1}return!0}function rv(r,i,c){if(typeof r!="function")throw new Zn(l);return Ga(function(){r.apply(n,c)},i)}function Na(r,i,c,f){var x=-1,A=Zl,L=!0,F=r.length,W=[],ne=i.length;if(!F)return W;c&&(i=Pt(i,Dn(c))),f?(A=_f,L=!1):i.length>=a&&(A=Aa,L=!1,i=new jo(i));e:for(;++x<F;){var re=r[x],ie=c==null?re:c(re);if(re=f||re!==0?re:0,L&&ie===ie){for(var ye=ne;ye--;)if(i[ye]===ie)continue e;W.push(re)}else A(i,ie,f)||W.push(re)}return W}var uo=Pv(Tr),ov=Pv(Ff,!0);function zM(r,i){var c=!0;return uo(r,function(f,x,A){return c=!!i(f,x,A),c}),c}function mc(r,i,c){for(var f=-1,x=r.length;++f<x;){var A=r[f],L=i(A);if(L!=null&&(F===n?L===L&&!Ln(L):c(L,F)))var F=L,W=A}return W}function WM(r,i,c,f){var x=r.length;for(c=qe(c),c<0&&(c=-c>x?0:x+c),f=f===n||f>x?x:qe(f),f<0&&(f+=x),f=c>f?0:wb(f);c<f;)r[c++]=i;return r}function iv(r,i){var c=[];return uo(r,function(f,x,A){i(f,x,A)&&c.push(f)}),c}function rn(r,i,c,f,x){var A=-1,L=r.length;for(c||(c=P$),x||(x=[]);++A<L;){var F=r[A];i>0&&c(F)?i>1?rn(F,i-1,c,f,x):so(x,F):f||(x[x.length]=F)}return x}var Nf=Ov(),av=Ov(!0);function Tr(r,i){return r&&Nf(r,i,Jt)}function Ff(r,i){return r&&av(r,i,Jt)}function yc(r,i){return ao(i,function(c){return Yr(r[c])})}function Fo(r,i){i=po(i,r);for(var c=0,f=i.length;r!=null&&c<f;)r=r[Or(i[c++])];return c&&c==f?r:n}function sv(r,i,c){var f=i(r);return ze(r)?f:so(f,c(r))}function gn(r){return r==null?r===n?Ut:Ge:Bo&&Bo in Ct(r)?_$(r):L$(r)}function zf(r,i){return r>i}function UM(r,i){return r!=null&&bt.call(r,i)}function HM(r,i){return r!=null&&i in Ct(r)}function GM(r,i,c){return r>=un(i,c)&&r<Vt(i,c)}function Wf(r,i,c){for(var f=c?_f:Zl,x=r[0].length,A=r.length,L=A,F=X(A),W=1/0,ne=[];L--;){var re=r[L];L&&i&&(re=Pt(re,Dn(i))),W=un(re.length,W),F[L]=!c&&(i||x>=120&&re.length>=120)?new jo(L&&re):n}re=r[0];var ie=-1,ye=F[0];e:for(;++ie<x&&ne.length<W;){var Ie=re[ie],Me=i?i(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ye?Aa(ye,Me):f(ne,Me,c))){for(L=A;--L;){var Je=F[L];if(!(Je?Aa(Je,Me):f(r[L],Me,c)))continue e}ye&&ye.push(Me),ne.push(Ie)}}return ne}function qM(r,i,c,f){return Tr(r,function(x,A,L){i(f,c(x),A,L)}),f}function Fa(r,i,c){i=po(i,r),r=Yv(r,i);var f=r==null?r:r[Or(nr(i))];return f==null?n:$n(f,r,c)}function lv(r){return Lt(r)&&gn(r)==Ke}function VM(r){return Lt(r)&&gn(r)==R}function YM(r){return Lt(r)&&gn(r)==fe}function za(r,i,c,f,x){return r===i?!0:r==null||i==null||!Lt(r)&&!Lt(i)?r!==r&&i!==i:XM(r,i,c,f,za,x)}function XM(r,i,c,f,x,A){var L=ze(r),F=ze(i),W=L?He:dn(r),ne=F?He:dn(i);W=W==Ke?Ae:W,ne=ne==Ke?Ae:ne;var re=W==Ae,ie=ne==Ae,ye=W==ne;if(ye&&go(r)){if(!go(i))return!1;L=!0,re=!1}if(ye&&!re)return A||(A=new ur),L||Li(r)?zv(r,i,c,f,x,A):S$(r,i,W,c,f,x,A);if(!(c&_)){var Ie=re&&bt.call(r,"__wrapped__"),Me=ie&&bt.call(i,"__wrapped__");if(Ie||Me){var Je=Ie?r.value():r,$e=Me?i.value():i;return A||(A=new ur),x(Je,$e,c,f,A)}}return ye?(A||(A=new ur),C$(r,i,c,f,x,A)):!1}function KM(r){return Lt(r)&&dn(r)==ve}function Uf(r,i,c,f){var x=c.length,A=x,L=!f;if(r==null)return!A;for(r=Ct(r);x--;){var F=c[x];if(L&&F[2]?F[1]!==r[F[0]]:!(F[0]in r))return!1}for(;++x<A;){F=c[x];var W=F[0],ne=r[W],re=F[1];if(L&&F[2]){if(ne===n&&!(W in r))return!1}else{var ie=new ur;if(f)var ye=f(ne,re,W,r,i,ie);if(!(ye===n?za(re,ne,_|E,f,ie):ye))return!1}}return!0}function cv(r){if(!At(r)||A$(r))return!1;var i=Yr(r)?KA:FO;return i.test(Wo(r))}function JM(r){return Lt(r)&&gn(r)==tt}function ZM(r){return Lt(r)&&dn(r)==Le}function QM(r){return Lt(r)&&$c(r.length)&&!!It[gn(r)]}function uv(r){return typeof r=="function"?r:r==null?In:typeof r=="object"?ze(r)?pv(r[0],r[1]):fv(r):Ab(r)}function Hf(r){if(!Ha(r))return nM(r);var i=[];for(var c in Ct(r))bt.call(r,c)&&c!="constructor"&&i.push(c);return i}function e$(r){if(!At(r))return B$(r);var i=Ha(r),c=[];for(var f in r)f=="constructor"&&(i||!bt.call(r,f))||c.push(f);return c}function Gf(r,i){return r<i}function dv(r,i){var c=-1,f=En(r)?X(r.length):[];return uo(r,function(x,A,L){f[++c]=i(x,A,L)}),f}function fv(r){var i=ap(r);return i.length==1&&i[0][2]?qv(i[0][0],i[0][1]):function(c){return c===r||Uf(c,r,i)}}function pv(r,i){return lp(r)&&Gv(i)?qv(Or(r),i):function(c){var f=vp(c,r);return f===n&&f===i?bp(c,r):za(i,f,_|E)}}function vc(r,i,c,f,x){r!==i&&Nf(i,function(A,L){if(x||(x=new ur),At(A))t$(r,i,L,c,vc,f,x);else{var F=f?f(up(r,L),A,L+"",r,i,x):n;F===n&&(F=A),Lf(r,L,F)}},Rn)}function t$(r,i,c,f,x,A,L){var F=up(r,c),W=up(i,c),ne=L.get(W);if(ne){Lf(r,c,ne);return}var re=A?A(F,W,c+"",r,i,L):n,ie=re===n;if(ie){var ye=ze(W),Ie=!ye&&go(W),Me=!ye&&!Ie&&Li(W);re=W,ye||Ie||Me?ze(F)?re=F:Nt(F)?re=_n(F):Ie?(ie=!1,re=Ev(W,!0)):Me?(ie=!1,re=Rv(W,!0)):re=[]:qa(W)||Uo(W)?(re=F,Uo(F)?re=Sb(F):(!At(F)||Yr(F))&&(re=Hv(W))):ie=!1}ie&&(L.set(W,re),x(re,W,f,A,L),L.delete(W)),Lf(r,c,re)}function hv(r,i){var c=r.length;if(c)return i+=i<0?c:0,Vr(i,c)?r[i]:n}function gv(r,i,c){i.length?i=Pt(i,function(A){return ze(A)?function(L){return Fo(L,A.length===1?A[0]:A)}:A}):i=[In];var f=-1;i=Pt(i,Dn(Oe()));var x=dv(r,function(A,L,F){var W=Pt(i,function(ne){return ne(A)});return{criteria:W,index:++f,value:A}});return kA(x,function(A,L){return h$(A,L,c)})}function n$(r,i){return mv(r,i,function(c,f){return bp(r,f)})}function mv(r,i,c){for(var f=-1,x=i.length,A={};++f<x;){var L=i[f],F=Fo(r,L);c(F,L)&&Wa(A,po(L,r),F)}return A}function r$(r){return function(i){return Fo(i,r)}}function qf(r,i,c,f){var x=f?IA:Ri,A=-1,L=i.length,F=r;for(r===i&&(i=_n(i)),c&&(F=Pt(r,Dn(c)));++A<L;)for(var W=0,ne=i[A],re=c?c(ne):ne;(W=x(F,re,W,f))>-1;)F!==r&&lc.call(F,W,1),lc.call(r,W,1);return r}function yv(r,i){for(var c=r?i.length:0,f=c-1;c--;){var x=i[c];if(c==f||x!==A){var A=x;Vr(x)?lc.call(r,x,1):Kf(r,x)}}return r}function Vf(r,i){return r+dc(Jy()*(i-r+1))}function o$(r,i,c,f){for(var x=-1,A=Vt(uc((i-r)/(c||1)),0),L=X(A);A--;)L[f?A:++x]=r,r+=c;return L}function Yf(r,i){var c="";if(!r||i<1||i>he)return c;do i%2&&(c+=r),i=dc(i/2),i&&(r+=r);while(i);return c}function Ze(r,i){return dp(Vv(r,i,In),r+"")}function i$(r){return ev(ji(r))}function a$(r,i){var c=ji(r);return kc(c,No(i,0,c.length))}function Wa(r,i,c,f){if(!At(r))return r;i=po(i,r);for(var x=-1,A=i.length,L=A-1,F=r;F!=null&&++x<A;){var W=Or(i[x]),ne=c;if(W==="__proto__"||W==="constructor"||W==="prototype")return r;if(x!=L){var re=F[W];ne=f?f(re,W,F):n,ne===n&&(ne=At(re)?re:Vr(i[x+1])?[]:{})}ja(F,W,ne),F=F[W]}return r}var vv=fc?function(r,i){return fc.set(r,i),r}:In,s$=cc?function(r,i){return cc(r,"toString",{configurable:!0,enumerable:!1,value:wp(i),writable:!0})}:In;function l$(r){return kc(ji(r))}function tr(r,i,c){var f=-1,x=r.length;i<0&&(i=-i>x?0:x+i),c=c>x?x:c,c<0&&(c+=x),x=i>c?0:c-i>>>0,i>>>=0;for(var A=X(x);++f<x;)A[f]=r[f+i];return A}function c$(r,i){var c;return uo(r,function(f,x,A){return c=i(f,x,A),!c}),!!c}function bc(r,i,c){var f=0,x=r==null?f:r.length;if(typeof i=="number"&&i===i&&x<=De){for(;f<x;){var A=f+x>>>1,L=r[A];L!==null&&!Ln(L)&&(c?L<=i:L<i)?f=A+1:x=A}return x}return Xf(r,i,In,c)}function Xf(r,i,c,f){var x=0,A=r==null?0:r.length;if(A===0)return 0;i=c(i);for(var L=i!==i,F=i===null,W=Ln(i),ne=i===n;x<A;){var re=dc((x+A)/2),ie=c(r[re]),ye=ie!==n,Ie=ie===null,Me=ie===ie,Je=Ln(ie);if(L)var $e=f||Me;else ne?$e=Me&&(f||ye):F?$e=Me&&ye&&(f||!Ie):W?$e=Me&&ye&&!Ie&&(f||!Je):Ie||Je?$e=!1:$e=f?ie<=i:ie<i;$e?x=re+1:A=re}return un(A,Ce)}function bv(r,i){for(var c=-1,f=r.length,x=0,A=[];++c<f;){var L=r[c],F=i?i(L):L;if(!c||!dr(F,W)){var W=F;A[x++]=L===0?0:L}}return A}function xv(r){return typeof r=="number"?r:Ln(r)?we:+r}function Bn(r){if(typeof r=="string")return r;if(ze(r))return Pt(r,Bn)+"";if(Ln(r))return Zy?Zy.call(r):"";var i=r+"";return i=="0"&&1/r==-de?"-0":i}function fo(r,i,c){var f=-1,x=Zl,A=r.length,L=!0,F=[],W=F;if(c)L=!1,x=_f;else if(A>=a){var ne=i?null:x$(r);if(ne)return ec(ne);L=!1,x=Aa,W=new jo}else W=i?[]:F;e:for(;++f<A;){var re=r[f],ie=i?i(re):re;if(re=c||re!==0?re:0,L&&ie===ie){for(var ye=W.length;ye--;)if(W[ye]===ie)continue e;i&&W.push(ie),F.push(re)}else x(W,ie,c)||(W!==F&&W.push(ie),F.push(re))}return F}function Kf(r,i){return i=po(i,r),r=Yv(r,i),r==null||delete r[Or(nr(i))]}function wv(r,i,c,f){return Wa(r,i,c(Fo(r,i)),f)}function xc(r,i,c,f){for(var x=r.length,A=f?x:-1;(f?A--:++A<x)&&i(r[A],A,r););return c?tr(r,f?0:A,f?A+1:x):tr(r,f?A+1:0,f?x:A)}function Sv(r,i){var c=r;return c instanceof rt&&(c=c.value()),Ef(i,function(f,x){return x.func.apply(x.thisArg,so([f],x.args))},c)}function Jf(r,i,c){var f=r.length;if(f<2)return f?fo(r[0]):[];for(var x=-1,A=X(f);++x<f;)for(var L=r[x],F=-1;++F<f;)F!=x&&(A[x]=Na(A[x]||L,r[F],i,c));return fo(rn(A,1),i,c)}function Cv(r,i,c){for(var f=-1,x=r.length,A=i.length,L={};++f<x;){var F=f<A?i[f]:n;c(L,r[f],F)}return L}function Zf(r){return Nt(r)?r:[]}function Qf(r){return typeof r=="function"?r:In}function po(r,i){return ze(r)?r:lp(r,i)?[r]:Zv(mt(r))}var u$=Ze;function ho(r,i,c){var f=r.length;return c=c===n?f:c,!i&&c>=f?r:tr(r,i,c)}var _v=JA||function(r){return nn.clearTimeout(r)};function Ev(r,i){if(i)return r.slice();var c=r.length,f=qy?qy(c):new r.constructor(c);return r.copy(f),f}function ep(r){var i=new r.constructor(r.byteLength);return new ac(i).set(new ac(r)),i}function d$(r,i){var c=i?ep(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function f$(r){var i=new r.constructor(r.source,ly.exec(r));return i.lastIndex=r.lastIndex,i}function p$(r){return La?Ct(La.call(r)):{}}function Rv(r,i){var c=i?ep(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function Iv(r,i){if(r!==i){var c=r!==n,f=r===null,x=r===r,A=Ln(r),L=i!==n,F=i===null,W=i===i,ne=Ln(i);if(!F&&!ne&&!A&&r>i||A&&L&&W&&!F&&!ne||f&&L&&W||!c&&W||!x)return 1;if(!f&&!A&&!ne&&r<i||ne&&c&&x&&!f&&!A||F&&c&&x||!L&&x||!W)return-1}return 0}function h$(r,i,c){for(var f=-1,x=r.criteria,A=i.criteria,L=x.length,F=c.length;++f<L;){var W=Iv(x[f],A[f]);if(W){if(f>=F)return W;var ne=c[f];return W*(ne=="desc"?-1:1)}}return r.index-i.index}function kv(r,i,c,f){for(var x=-1,A=r.length,L=c.length,F=-1,W=i.length,ne=Vt(A-L,0),re=X(W+ne),ie=!f;++F<W;)re[F]=i[F];for(;++x<L;)(ie||x<A)&&(re[c[x]]=r[x]);for(;ne--;)re[F++]=r[x++];return re}function Tv(r,i,c,f){for(var x=-1,A=r.length,L=-1,F=c.length,W=-1,ne=i.length,re=Vt(A-F,0),ie=X(re+ne),ye=!f;++x<re;)ie[x]=r[x];for(var Ie=x;++W<ne;)ie[Ie+W]=i[W];for(;++L<F;)(ye||x<A)&&(ie[Ie+c[L]]=r[x++]);return ie}function _n(r,i){var c=-1,f=r.length;for(i||(i=X(f));++c<f;)i[c]=r[c];return i}function Pr(r,i,c,f){var x=!c;c||(c={});for(var A=-1,L=i.length;++A<L;){var F=i[A],W=f?f(c[F],r[F],F,c,r):n;W===n&&(W=r[F]),x?Hr(c,F,W):ja(c,F,W)}return c}function g$(r,i){return Pr(r,sp(r),i)}function m$(r,i){return Pr(r,Wv(r),i)}function wc(r,i){return function(c,f){var x=ze(c)?wA:jM,A=i?i():{};return x(c,r,Oe(f,2),A)}}function $i(r){return Ze(function(i,c){var f=-1,x=c.length,A=x>1?c[x-1]:n,L=x>2?c[2]:n;for(A=r.length>3&&typeof A=="function"?(x--,A):n,L&&mn(c[0],c[1],L)&&(A=x<3?n:A,x=1),i=Ct(i);++f<x;){var F=c[f];F&&r(i,F,f,A)}return i})}function Pv(r,i){return function(c,f){if(c==null)return c;if(!En(c))return r(c,f);for(var x=c.length,A=i?x:-1,L=Ct(c);(i?A--:++A<x)&&f(L[A],A,L)!==!1;);return c}}function Ov(r){return function(i,c,f){for(var x=-1,A=Ct(i),L=f(i),F=L.length;F--;){var W=L[r?F:++x];if(c(A[W],W,A)===!1)break}return i}}function y$(r,i,c){var f=i&P,x=Ua(r);function A(){var L=this&&this!==nn&&this instanceof A?x:r;return L.apply(f?c:this,arguments)}return A}function Av(r){return function(i){i=mt(i);var c=Ii(i)?cr(i):n,f=c?c[0]:i.charAt(0),x=c?ho(c,1).join(""):i.slice(1);return f[r]()+x}}function Di(r){return function(i){return Ef(Pb(Tb(i).replace(sA,"")),r,"")}}function Ua(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var c=Mi(r.prototype),f=r.apply(c,i);return At(f)?f:c}}function v$(r,i,c){var f=Ua(r);function x(){for(var A=arguments.length,L=X(A),F=A,W=Bi(x);F--;)L[F]=arguments[F];var ne=A<3&&L[0]!==W&&L[A-1]!==W?[]:lo(L,W);if(A-=ne.length,A<c)return Lv(r,i,Sc,x.placeholder,n,L,ne,n,n,c-A);var re=this&&this!==nn&&this instanceof x?f:r;return $n(re,this,L)}return x}function Mv(r){return function(i,c,f){var x=Ct(i);if(!En(i)){var A=Oe(c,3);i=Jt(i),c=function(F){return A(x[F],F,x)}}var L=r(i,c,f);return L>-1?x[A?i[L]:L]:n}}function $v(r){return qr(function(i){var c=i.length,f=c,x=Qn.prototype.thru;for(r&&i.reverse();f--;){var A=i[f];if(typeof A!="function")throw new Zn(l);if(x&&!L&&Rc(A)=="wrapper")var L=new Qn([],!0)}for(f=L?f:c;++f<c;){A=i[f];var F=Rc(A),W=F=="wrapper"?ip(A):n;W&&cp(W[0])&&W[1]==(D|k|M|V)&&!W[4].length&&W[9]==1?L=L[Rc(W[0])].apply(L,W[3]):L=A.length==1&&cp(A)?L[F]():L.thru(A)}return function(){var ne=arguments,re=ne[0];if(L&&ne.length==1&&ze(re))return L.plant(re).value();for(var ie=0,ye=c?i[ie].apply(this,ne):re;++ie<c;)ye=i[ie].call(this,ye);return ye}})}function Sc(r,i,c,f,x,A,L,F,W,ne){var re=i&D,ie=i&P,ye=i&S,Ie=i&(k|I),Me=i&U,Je=ye?n:Ua(r);function $e(){for(var nt=arguments.length,ot=X(nt),jn=nt;jn--;)ot[jn]=arguments[jn];if(Ie)var yn=Bi($e),Nn=PA(ot,yn);if(f&&(ot=kv(ot,f,x,Ie)),A&&(ot=Tv(ot,A,L,Ie)),nt-=Nn,Ie&&nt<ne){var Ft=lo(ot,yn);return Lv(r,i,Sc,$e.placeholder,c,ot,Ft,F,W,ne-nt)}var fr=ie?c:this,Kr=ye?fr[r]:r;return nt=ot.length,F?ot=j$(ot,F):Me&&nt>1&&ot.reverse(),re&&W<nt&&(ot.length=W),this&&this!==nn&&this instanceof $e&&(Kr=Je||Ua(Kr)),Kr.apply(fr,ot)}return $e}function Dv(r,i){return function(c,f){return qM(c,r,i(f),{})}}function Cc(r,i){return function(c,f){var x;if(c===n&&f===n)return i;if(c!==n&&(x=c),f!==n){if(x===n)return f;typeof c=="string"||typeof f=="string"?(c=Bn(c),f=Bn(f)):(c=xv(c),f=xv(f)),x=r(c,f)}return x}}function tp(r){return qr(function(i){return i=Pt(i,Dn(Oe())),Ze(function(c){var f=this;return r(i,function(x){return $n(x,f,c)})})})}function _c(r,i){i=i===n?" ":Bn(i);var c=i.length;if(c<2)return c?Yf(i,r):i;var f=Yf(i,uc(r/ki(i)));return Ii(i)?ho(cr(f),0,r).join(""):f.slice(0,r)}function b$(r,i,c,f){var x=i&P,A=Ua(r);function L(){for(var F=-1,W=arguments.length,ne=-1,re=f.length,ie=X(re+W),ye=this&&this!==nn&&this instanceof L?A:r;++ne<re;)ie[ne]=f[ne];for(;W--;)ie[ne++]=arguments[++F];return $n(ye,x?c:this,ie)}return L}function Bv(r){return function(i,c,f){return f&&typeof f!="number"&&mn(i,c,f)&&(c=f=n),i=Xr(i),c===n?(c=i,i=0):c=Xr(c),f=f===n?i<c?1:-1:Xr(f),o$(i,c,f,r)}}function Ec(r){return function(i,c){return typeof i=="string"&&typeof c=="string"||(i=rr(i),c=rr(c)),r(i,c)}}function Lv(r,i,c,f,x,A,L,F,W,ne){var re=i&k,ie=re?L:n,ye=re?n:L,Ie=re?A:n,Me=re?n:A;i|=re?M:B,i&=~(re?B:M),i&O||(i&=~(P|S));var Je=[r,i,x,Ie,ie,Me,ye,F,W,ne],$e=c.apply(n,Je);return cp(r)&&Xv($e,Je),$e.placeholder=f,Kv($e,r,i)}function np(r){var i=qt[r];return function(c,f){if(c=rr(c),f=f==null?0:un(qe(f),292),f&&Ky(c)){var x=(mt(c)+"e").split("e"),A=i(x[0]+"e"+(+x[1]+f));return x=(mt(A)+"e").split("e"),+(x[0]+"e"+(+x[1]-f))}return i(c)}}var x$=Oi&&1/ec(new Oi([,-0]))[1]==de?function(r){return new Oi(r)}:_p;function jv(r){return function(i){var c=dn(i);return c==ve?Af(i):c==Le?LA(i):TA(i,r(i))}}function Gr(r,i,c,f,x,A,L,F){var W=i&S;if(!W&&typeof r!="function")throw new Zn(l);var ne=f?f.length:0;if(ne||(i&=~(M|B),f=x=n),L=L===n?L:Vt(qe(L),0),F=F===n?F:qe(F),ne-=x?x.length:0,i&B){var re=f,ie=x;f=x=n}var ye=W?n:ip(r),Ie=[r,i,c,f,x,re,ie,A,L,F];if(ye&&D$(Ie,ye),r=Ie[0],i=Ie[1],c=Ie[2],f=Ie[3],x=Ie[4],F=Ie[9]=Ie[9]===n?W?0:r.length:Vt(Ie[9]-ne,0),!F&&i&(k|I)&&(i&=~(k|I)),!i||i==P)var Me=y$(r,i,c);else i==k||i==I?Me=v$(r,i,F):(i==M||i==(P|M))&&!x.length?Me=b$(r,i,c,f):Me=Sc.apply(n,Ie);var Je=ye?vv:Xv;return Kv(Je(Me,Ie),r,i)}function Nv(r,i,c,f){return r===n||dr(r,Pi[c])&&!bt.call(f,c)?i:r}function Fv(r,i,c,f,x,A){return At(r)&&At(i)&&(A.set(i,r),vc(r,i,n,Fv,A),A.delete(i)),r}function w$(r){return qa(r)?n:r}function zv(r,i,c,f,x,A){var L=c&_,F=r.length,W=i.length;if(F!=W&&!(L&&W>F))return!1;var ne=A.get(r),re=A.get(i);if(ne&&re)return ne==i&&re==r;var ie=-1,ye=!0,Ie=c&E?new jo:n;for(A.set(r,i),A.set(i,r);++ie<F;){var Me=r[ie],Je=i[ie];if(f)var $e=L?f(Je,Me,ie,i,r,A):f(Me,Je,ie,r,i,A);if($e!==n){if($e)continue;ye=!1;break}if(Ie){if(!Rf(i,function(nt,ot){if(!Aa(Ie,ot)&&(Me===nt||x(Me,nt,c,f,A)))return Ie.push(ot)})){ye=!1;break}}else if(!(Me===Je||x(Me,Je,c,f,A))){ye=!1;break}}return A.delete(r),A.delete(i),ye}function S$(r,i,c,f,x,A,L){switch(c){case p:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case R:return!(r.byteLength!=i.byteLength||!A(new ac(r),new ac(i)));case le:case fe:case Be:return dr(+r,+i);case me:return r.name==i.name&&r.message==i.message;case tt:case xe:return r==i+"";case ve:var F=Af;case Le:var W=f&_;if(F||(F=ec),r.size!=i.size&&!W)return!1;var ne=L.get(r);if(ne)return ne==i;f|=E,L.set(r,i);var re=zv(F(r),F(i),f,x,A,L);return L.delete(r),re;case ut:if(La)return La.call(r)==La.call(i)}return!1}function C$(r,i,c,f,x,A){var L=c&_,F=rp(r),W=F.length,ne=rp(i),re=ne.length;if(W!=re&&!L)return!1;for(var ie=W;ie--;){var ye=F[ie];if(!(L?ye in i:bt.call(i,ye)))return!1}var Ie=A.get(r),Me=A.get(i);if(Ie&&Me)return Ie==i&&Me==r;var Je=!0;A.set(r,i),A.set(i,r);for(var $e=L;++ie<W;){ye=F[ie];var nt=r[ye],ot=i[ye];if(f)var jn=L?f(ot,nt,ye,i,r,A):f(nt,ot,ye,r,i,A);if(!(jn===n?nt===ot||x(nt,ot,c,f,A):jn)){Je=!1;break}$e||($e=ye=="constructor")}if(Je&&!$e){var yn=r.constructor,Nn=i.constructor;yn!=Nn&&"constructor"in r&&"constructor"in i&&!(typeof yn=="function"&&yn instanceof yn&&typeof Nn=="function"&&Nn instanceof Nn)&&(Je=!1)}return A.delete(r),A.delete(i),Je}function qr(r){return dp(Vv(r,n,nb),r+"")}function rp(r){return sv(r,Jt,sp)}function op(r){return sv(r,Rn,Wv)}var ip=fc?function(r){return fc.get(r)}:_p;function Rc(r){for(var i=r.name+"",c=Ai[i],f=bt.call(Ai,i)?c.length:0;f--;){var x=c[f],A=x.func;if(A==null||A==r)return x.name}return i}function Bi(r){var i=bt.call(T,"placeholder")?T:r;return i.placeholder}function Oe(){var r=T.iteratee||Sp;return r=r===Sp?uv:r,arguments.length?r(arguments[0],arguments[1]):r}function Ic(r,i){var c=r.__data__;return O$(i)?c[typeof i=="string"?"string":"hash"]:c.map}function ap(r){for(var i=Jt(r),c=i.length;c--;){var f=i[c],x=r[f];i[c]=[f,x,Gv(x)]}return i}function zo(r,i){var c=$A(r,i);return cv(c)?c:n}function _$(r){var i=bt.call(r,Bo),c=r[Bo];try{r[Bo]=n;var f=!0}catch{}var x=oc.call(r);return f&&(i?r[Bo]=c:delete r[Bo]),x}var sp=$f?function(r){return r==null?[]:(r=Ct(r),ao($f(r),function(i){return Yy.call(r,i)}))}:Ep,Wv=$f?function(r){for(var i=[];r;)so(i,sp(r)),r=sc(r);return i}:Ep,dn=gn;(Df&&dn(new Df(new ArrayBuffer(1)))!=p||$a&&dn(new $a)!=ve||Bf&&dn(Bf.resolve())!=ke||Oi&&dn(new Oi)!=Le||Da&&dn(new Da)!=Ht)&&(dn=function(r){var i=gn(r),c=i==Ae?r.constructor:n,f=c?Wo(c):"";if(f)switch(f){case aM:return p;case sM:return ve;case lM:return ke;case cM:return Le;case uM:return Ht}return i});function E$(r,i,c){for(var f=-1,x=c.length;++f<x;){var A=c[f],L=A.size;switch(A.type){case"drop":r+=L;break;case"dropRight":i-=L;break;case"take":i=un(i,r+L);break;case"takeRight":r=Vt(r,i-L);break}}return{start:r,end:i}}function R$(r){var i=r.match(AO);return i?i[1].split(MO):[]}function Uv(r,i,c){i=po(i,r);for(var f=-1,x=i.length,A=!1;++f<x;){var L=Or(i[f]);if(!(A=r!=null&&c(r,L)))break;r=r[L]}return A||++f!=x?A:(x=r==null?0:r.length,!!x&&$c(x)&&Vr(L,x)&&(ze(r)||Uo(r)))}function I$(r){var i=r.length,c=new r.constructor(i);return i&&typeof r[0]=="string"&&bt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Hv(r){return typeof r.constructor=="function"&&!Ha(r)?Mi(sc(r)):{}}function k$(r,i,c){var f=r.constructor;switch(i){case R:return ep(r);case le:case fe:return new f(+r);case p:return d$(r,c);case g:case $:case N:case q:case Q:case ce:case oe:case ae:case Ee:return Rv(r,c);case ve:return new f;case Be:case xe:return new f(r);case tt:return f$(r);case Le:return new f;case ut:return p$(r)}}function T$(r,i){var c=i.length;if(!c)return r;var f=c-1;return i[f]=(c>1?"& ":"")+i[f],i=i.join(c>2?", ":" "),r.replace(OO,`{
|
|
677
677
|
/* [wrapped with `+i+`] */
|
|
678
|
-
`)}function O$(r){return ze(r)||Wo(r)||!!(Ky&&r&&r[Ky])}function Vr(r,i){var c=typeof r;return i=i??he,!!i&&(c=="number"||c!="symbol"&&UO.test(r))&&r>-1&&r%1==0&&r<i}function mn(r,i,c){if(!At(c))return!1;var f=typeof i;return(f=="number"?En(c)&&Vr(i,c.length):f=="string"&&i in c)?dr(c[i],r):!1}function cp(r,i){if(ze(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Ln(r)?!0:kO.test(r)||!IO.test(r)||i!=null&&r in Ct(i)}function A$(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function up(r){var i=Ic(r),c=T[i];if(typeof c!="function"||!(i in rt.prototype))return!1;if(r===c)return!0;var f=ap(c);return!!f&&r===f[0]}function M$(r){return!!qy&&qy in r}var $$=rc?Yr:Ip;function Ha(r){var i=r&&r.constructor,c=typeof i=="function"&&i.prototype||Pi;return r===c}function qv(r){return r===r&&!At(r)}function Vv(r,i){return function(c){return c==null?!1:c[r]===i&&(i!==n||r in Ct(c))}}function D$(r){var i=Mc(r,function(f){return c.size===h&&c.clear(),f}),c=i.cache;return i}function B$(r,i){var c=r[1],f=i[1],x=c|f,A=x<(P|C|M),L=f==M&&c==k||f==M&&c==z&&r[7].length<=i[8]||f==(M|z)&&i[7].length<=i[8]&&c==k;if(!(A||L))return r;f&P&&(r[2]=i[2],x|=c&P?0:O);var F=i[3];if(F){var U=r[3];r[3]=U?Tv(U,F,i[4]):F,r[4]=U?lo(r[3],y):i[4]}return F=i[5],F&&(U=r[5],r[5]=U?Pv(U,F,i[6]):F,r[6]=U?lo(r[5],y):i[6]),F=i[7],F&&(r[7]=F),f&M&&(r[8]=r[8]==null?i[8]:un(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=x,r}function L$(r){var i=[];if(r!=null)for(var c in Ct(r))i.push(c);return i}function j$(r){return ic.call(r)}function Yv(r,i,c){return i=Vt(i===n?r.length-1:i,0),function(){for(var f=arguments,x=-1,A=Vt(f.length-i,0),L=Y(A);++x<A;)L[x]=f[i+x];x=-1;for(var F=Y(i+1);++x<i;)F[x]=f[x];return F[i]=c(L),$n(r,this,F)}}function Xv(r,i){return i.length<2?r:No(r,tr(i,0,-1))}function N$(r,i){for(var c=r.length,f=un(i.length,c),x=_n(r);f--;){var A=i[f];r[f]=Vr(A,c)?x[A]:n}return r}function dp(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Kv=Zv(bv),Ga=eM||function(r,i){return nn.setTimeout(r,i)},fp=Zv(l$);function Jv(r,i,c){var f=i+"";return fp(r,P$(f,F$(I$(f),c)))}function Zv(r){var i=0,c=0;return function(){var f=oM(),x=H-(f-c);if(c=f,x>0){if(++i>=re)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Tc(r,i){var c=-1,f=r.length,x=f-1;for(i=i===n?f:i;++c<i;){var A=Yf(c,x),L=r[A];r[A]=r[c],r[c]=L}return r.length=i,r}var Qv=D$(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(TO,function(c,f,x,A){i.push(x?A.replace(LO,"$1"):f||c)}),i});function Or(r){if(typeof r=="string"||Ln(r))return r;var i=r+"";return i=="0"&&1/r==-pe?"-0":i}function zo(r){if(r!=null){try{return oc.call(r)}catch{}try{return r+""}catch{}}return""}function F$(r,i){return Jn(Xe,function(c){var f="_."+c[0];i&c[1]&&!Ql(r,f)&&r.push(f)}),r.sort()}function eb(r){if(r instanceof rt)return r.clone();var i=new Qn(r.__wrapped__,r.__chain__);return i.__actions__=_n(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function z$(r,i,c){(c?mn(r,i,c):i===n)?i=1:i=Vt(qe(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var x=0,A=0,L=Y(dc(f/i));x<f;)L[A++]=tr(r,x,x+=i);return L}function W$(r){for(var i=-1,c=r==null?0:r.length,f=0,x=[];++i<c;){var A=r[i];A&&(x[f++]=A)}return x}function U$(){var r=arguments.length;if(!r)return[];for(var i=Y(r-1),c=arguments[0],f=r;f--;)i[f-1]=arguments[f];return so(ze(c)?_n(c):[c],rn(i,1))}var H$=Ze(function(r,i){return Nt(r)?Na(r,rn(i,1,Nt,!0)):[]}),G$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Na(r,rn(i,1,Nt,!0),Oe(c,2)):[]}),q$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Na(r,rn(i,1,Nt,!0),n,c):[]});function V$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),tr(r,i<0?0:i,f)):[]}function Y$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,0,i<0?0:i)):[]}function X$(r,i){return r&&r.length?wc(r,Oe(i,3),!0,!0):[]}function K$(r,i){return r&&r.length?wc(r,Oe(i,3),!0):[]}function J$(r,i,c,f){var x=r==null?0:r.length;return x?(c&&typeof c!="number"&&mn(r,i,c)&&(c=0,f=x),UM(r,i,c,f)):[]}function tb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),ec(r,Oe(i,3),x)}function nb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f-1;return c!==n&&(x=qe(c),x=c<0?Vt(f+x,0):un(x,f-1)),ec(r,Oe(i,3),x,!0)}function rb(r){var i=r==null?0:r.length;return i?rn(r,1):[]}function Z$(r){var i=r==null?0:r.length;return i?rn(r,pe):[]}function Q$(r,i){var c=r==null?0:r.length;return c?(i=i===n?1:qe(i),rn(r,i)):[]}function eD(r){for(var i=-1,c=r==null?0:r.length,f={};++i<c;){var x=r[i];f[x[0]]=x[1]}return f}function ob(r){return r&&r.length?r[0]:n}function tD(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),Ri(r,i,x)}function nD(r){var i=r==null?0:r.length;return i?tr(r,0,-1):[]}var rD=Ze(function(r){var i=Pt(r,Qf);return i.length&&i[0]===r[0]?Uf(i):[]}),oD=Ze(function(r){var i=nr(r),c=Pt(r,Qf);return i===nr(c)?i=n:c.pop(),c.length&&c[0]===r[0]?Uf(c,Oe(i,2)):[]}),iD=Ze(function(r){var i=nr(r),c=Pt(r,Qf);return i=typeof i=="function"?i:n,i&&c.pop(),c.length&&c[0]===r[0]?Uf(c,n,i):[]});function aD(r,i){return r==null?"":nM.call(r,i)}function nr(r){var i=r==null?0:r.length;return i?r[i-1]:n}function sD(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f;return c!==n&&(x=qe(c),x=x<0?Vt(f+x,0):un(x,f-1)),i===i?FA(r,i,x):ec(r,jy,x,!0)}function lD(r,i){return r&&r.length?gv(r,qe(i)):n}var cD=Ze(ib);function ib(r,i){return r&&r.length&&i&&i.length?Vf(r,i):r}function uD(r,i,c){return r&&r.length&&i&&i.length?Vf(r,i,Oe(c,2)):r}function dD(r,i,c){return r&&r.length&&i&&i.length?Vf(r,i,n,c):r}var fD=qr(function(r,i){var c=r==null?0:r.length,f=Nf(r,i);return vv(r,Pt(i,function(x){return Vr(x,c)?+x:x}).sort(kv)),f});function pD(r,i){var c=[];if(!(r&&r.length))return c;var f=-1,x=[],A=r.length;for(i=Oe(i,3);++f<A;){var L=r[f];i(L,f,r)&&(c.push(L),x.push(f))}return vv(r,x),c}function pp(r){return r==null?r:aM.call(r)}function hD(r,i,c){var f=r==null?0:r.length;return f?(c&&typeof c!="number"&&mn(r,i,c)?(i=0,c=f):(i=i==null?0:qe(i),c=c===n?f:qe(c)),tr(r,i,c)):[]}function gD(r,i){return xc(r,i)}function mD(r,i,c){return Kf(r,i,Oe(c,2))}function yD(r,i){var c=r==null?0:r.length;if(c){var f=xc(r,i);if(f<c&&dr(r[f],i))return f}return-1}function vD(r,i){return xc(r,i,!0)}function bD(r,i,c){return Kf(r,i,Oe(c,2),!0)}function xD(r,i){var c=r==null?0:r.length;if(c){var f=xc(r,i,!0)-1;if(dr(r[f],i))return f}return-1}function wD(r){return r&&r.length?xv(r):[]}function SD(r,i){return r&&r.length?xv(r,Oe(i,2)):[]}function CD(r){var i=r==null?0:r.length;return i?tr(r,1,i):[]}function _D(r,i,c){return r&&r.length?(i=c||i===n?1:qe(i),tr(r,0,i<0?0:i)):[]}function ED(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,i<0?0:i,f)):[]}function RD(r,i){return r&&r.length?wc(r,Oe(i,3),!1,!0):[]}function ID(r,i){return r&&r.length?wc(r,Oe(i,3)):[]}var kD=Ze(function(r){return fo(rn(r,1,Nt,!0))}),TD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),fo(rn(r,1,Nt,!0),Oe(i,2))}),PD=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,fo(rn(r,1,Nt,!0),n,i)});function OD(r){return r&&r.length?fo(r):[]}function AD(r,i){return r&&r.length?fo(r,Oe(i,2)):[]}function MD(r,i){return i=typeof i=="function"?i:n,r&&r.length?fo(r,n,i):[]}function hp(r){if(!(r&&r.length))return[];var i=0;return r=ao(r,function(c){if(Nt(c))return i=Vt(c.length,i),!0}),Of(i,function(c){return Pt(r,kf(c))})}function ab(r,i){if(!(r&&r.length))return[];var c=hp(r);return i==null?c:Pt(c,function(f){return $n(i,n,f)})}var $D=Ze(function(r,i){return Nt(r)?Na(r,i):[]}),DD=Ze(function(r){return Zf(ao(r,Nt))}),BD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),Zf(ao(r,Nt),Oe(i,2))}),LD=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,Zf(ao(r,Nt),n,i)}),jD=Ze(hp);function ND(r,i){return _v(r||[],i||[],ja)}function FD(r,i){return _v(r||[],i||[],Wa)}var zD=Ze(function(r){var i=r.length,c=i>1?r[i-1]:n;return c=typeof c=="function"?(r.pop(),c):n,ab(r,c)});function sb(r){var i=T(r);return i.__chain__=!0,i}function WD(r,i){return i(r),r}function Pc(r,i){return i(r)}var UD=qr(function(r){var i=r.length,c=i?r[0]:0,f=this.__wrapped__,x=function(A){return Nf(A,r)};return i>1||this.__actions__.length||!(f instanceof rt)||!Vr(c)?this.thru(x):(f=f.slice(c,+c+(i?1:0)),f.__actions__.push({func:Pc,args:[x],thisArg:n}),new Qn(f,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function HD(){return sb(this)}function GD(){return new Qn(this.value(),this.__chain__)}function qD(){this.__values__===n&&(this.__values__=wb(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function VD(){return this}function YD(r){for(var i,c=this;c instanceof gc;){var f=eb(c);f.__index__=0,f.__values__=n,i?x.__wrapped__=f:i=f;var x=f;c=c.__wrapped__}return x.__wrapped__=r,i}function XD(){var r=this.__wrapped__;if(r instanceof rt){var i=r;return this.__actions__.length&&(i=new rt(this)),i=i.reverse(),i.__actions__.push({func:Pc,args:[pp],thisArg:n}),new Qn(i,this.__chain__)}return this.thru(pp)}function KD(){return Cv(this.__wrapped__,this.__actions__)}var JD=Sc(function(r,i,c){bt.call(r,c)?++r[c]:Hr(r,c,1)});function ZD(r,i,c){var f=ze(r)?By:WM;return c&&mn(r,i,c)&&(i=n),f(r,Oe(i,3))}function QD(r,i){var c=ze(r)?ao:av;return c(r,Oe(i,3))}var eB=$v(tb),tB=$v(nb);function nB(r,i){return rn(Oc(r,i),1)}function rB(r,i){return rn(Oc(r,i),pe)}function oB(r,i,c){return c=c===n?1:qe(c),rn(Oc(r,i),c)}function lb(r,i){var c=ze(r)?Jn:uo;return c(r,Oe(i,3))}function cb(r,i){var c=ze(r)?CA:iv;return c(r,Oe(i,3))}var iB=Sc(function(r,i,c){bt.call(r,c)?r[c].push(i):Hr(r,c,[i])});function aB(r,i,c,f){r=En(r)?r:ji(r),c=c&&!f?qe(c):0;var x=r.length;return c<0&&(c=Vt(x+c,0)),Bc(r)?c<=x&&r.indexOf(i,c)>-1:!!x&&Ri(r,i,c)>-1}var sB=Ze(function(r,i,c){var f=-1,x=typeof i=="function",A=En(r)?Y(r.length):[];return uo(r,function(L){A[++f]=x?$n(i,L,c):Fa(L,i,c)}),A}),lB=Sc(function(r,i,c){Hr(r,c,i)});function Oc(r,i){var c=ze(r)?Pt:fv;return c(r,Oe(i,3))}function cB(r,i,c,f){return r==null?[]:(ze(i)||(i=i==null?[]:[i]),c=f?n:c,ze(c)||(c=c==null?[]:[c]),mv(r,i,c))}var uB=Sc(function(r,i,c){r[c?0:1].push(i)},function(){return[[],[]]});function dB(r,i,c){var f=ze(r)?Rf:Fy,x=arguments.length<3;return f(r,Oe(i,4),c,x,uo)}function fB(r,i,c){var f=ze(r)?_A:Fy,x=arguments.length<3;return f(r,Oe(i,4),c,x,iv)}function pB(r,i){var c=ze(r)?ao:av;return c(r,$c(Oe(i,3)))}function hB(r){var i=ze(r)?tv:a$;return i(r)}function gB(r,i,c){(c?mn(r,i,c):i===n)?i=1:i=qe(i);var f=ze(r)?LM:s$;return f(r,i)}function mB(r){var i=ze(r)?jM:c$;return i(r)}function yB(r){if(r==null)return 0;if(En(r))return Bc(r)?ki(r):r.length;var i=dn(r);return i==ve||i==Le?r.size:Gf(r).length}function vB(r,i,c){var f=ze(r)?If:u$;return c&&mn(r,i,c)&&(i=n),f(r,Oe(i,3))}var bB=Ze(function(r,i){if(r==null)return[];var c=i.length;return c>1&&mn(r,i[0],i[1])?i=[]:c>2&&mn(i[0],i[1],i[2])&&(i=[i[0]]),mv(r,rn(i,1),[])}),Ac=QA||function(){return nn.Date.now()};function xB(r,i){if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){if(--r<1)return i.apply(this,arguments)}}function ub(r,i,c){return i=c?n:i,i=r&&i==null?r.length:i,Gr(r,M,n,n,n,n,i)}function db(r,i){var c;if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){return--r>0&&(c=i.apply(this,arguments)),r<=1&&(i=n),c}}var gp=Ze(function(r,i,c){var f=P;if(c.length){var x=lo(c,Bi(gp));f|=$}return Gr(r,f,i,c,x)}),fb=Ze(function(r,i,c){var f=P|C;if(c.length){var x=lo(c,Bi(fb));f|=$}return Gr(i,f,r,c,x)});function pb(r,i,c){i=c?n:i;var f=Gr(r,k,n,n,n,n,n,i);return f.placeholder=pb.placeholder,f}function hb(r,i,c){i=c?n:i;var f=Gr(r,R,n,n,n,n,n,i);return f.placeholder=hb.placeholder,f}function gb(r,i,c){var f,x,A,L,F,U,te=0,ne=!1,ie=!1,ye=!0;if(typeof r!="function")throw new Zn(l);i=rr(i)||0,At(c)&&(ne=!!c.leading,ie="maxWait"in c,A=ie?Vt(rr(c.maxWait)||0,i):A,ye="trailing"in c?!!c.trailing:ye);function Ie(Ft){var fr=f,Kr=x;return f=x=n,te=Ft,L=r.apply(Kr,fr),L}function Me(Ft){return te=Ft,F=Ga(tt,i),ne?Ie(Ft):L}function Je(Ft){var fr=Ft-U,Kr=Ft-te,$b=i-fr;return ie?un($b,A-Kr):$b}function $e(Ft){var fr=Ft-U,Kr=Ft-te;return U===n||fr>=i||fr<0||ie&&Kr>=A}function tt(){var Ft=Ac();if($e(Ft))return ot(Ft);F=Ga(tt,Je(Ft))}function ot(Ft){return F=n,ye&&f?Ie(Ft):(f=x=n,L)}function jn(){F!==n&&Ev(F),te=0,f=U=x=F=n}function yn(){return F===n?L:ot(Ac())}function Nn(){var Ft=Ac(),fr=$e(Ft);if(f=arguments,x=this,U=Ft,fr){if(F===n)return Me(U);if(ie)return Ev(F),F=Ga(tt,i),Ie(U)}return F===n&&(F=Ga(tt,i)),L}return Nn.cancel=jn,Nn.flush=yn,Nn}var wB=Ze(function(r,i){return ov(r,1,i)}),SB=Ze(function(r,i,c){return ov(r,rr(i)||0,c)});function CB(r){return Gr(r,V)}function Mc(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new Zn(l);var c=function(){var f=arguments,x=i?i.apply(this,f):f[0],A=c.cache;if(A.has(x))return A.get(x);var L=r.apply(this,f);return c.cache=A.set(x,L)||A,L};return c.cache=new(Mc.Cache||Ur),c}Mc.Cache=Ur;function $c(r){if(typeof r!="function")throw new Zn(l);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function _B(r){return db(2,r)}var EB=d$(function(r,i){i=i.length==1&&ze(i[0])?Pt(i[0],Dn(Oe())):Pt(rn(i,1),Dn(Oe()));var c=i.length;return Ze(function(f){for(var x=-1,A=un(f.length,c);++x<A;)f[x]=i[x].call(this,f[x]);return $n(r,this,f)})}),mp=Ze(function(r,i){var c=lo(i,Bi(mp));return Gr(r,$,n,i,c)}),mb=Ze(function(r,i){var c=lo(i,Bi(mb));return Gr(r,B,n,i,c)}),RB=qr(function(r,i){return Gr(r,z,n,n,n,i)});function IB(r,i){if(typeof r!="function")throw new Zn(l);return i=i===n?i:qe(i),Ze(r,i)}function kB(r,i){if(typeof r!="function")throw new Zn(l);return i=i==null?0:Vt(qe(i),0),Ze(function(c){var f=c[i],x=ho(c,0,i);return f&&so(x,f),$n(r,this,x)})}function TB(r,i,c){var f=!0,x=!0;if(typeof r!="function")throw new Zn(l);return At(c)&&(f="leading"in c?!!c.leading:f,x="trailing"in c?!!c.trailing:x),gb(r,i,{leading:f,maxWait:i,trailing:x})}function PB(r){return ub(r,1)}function OB(r,i){return mp(ep(i),r)}function AB(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function MB(r){return er(r,w)}function $B(r,i){return i=typeof i=="function"?i:n,er(r,w,i)}function DB(r){return er(r,m|w)}function BB(r,i){return i=typeof i=="function"?i:n,er(r,m|w,i)}function LB(r,i){return i==null||rv(r,i,Jt(i))}function dr(r,i){return r===i||r!==r&&i!==i}var jB=Rc(Wf),NB=Rc(function(r,i){return r>=i}),Wo=cv(function(){return arguments}())?cv:function(r){return Lt(r)&&bt.call(r,"callee")&&!Xy.call(r,"callee")},ze=Y.isArray,FB=Py?Dn(Py):YM;function En(r){return r!=null&&Dc(r.length)&&!Yr(r)}function Nt(r){return Lt(r)&&En(r)}function zB(r){return r===!0||r===!1||Lt(r)&&gn(r)==se}var go=tM||Ip,WB=Oy?Dn(Oy):XM;function UB(r){return Lt(r)&&r.nodeType===1&&!qa(r)}function HB(r){if(r==null)return!0;if(En(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||go(r)||Li(r)||Wo(r)))return!r.length;var i=dn(r);if(i==ve||i==Le)return!r.size;if(Ha(r))return!Gf(r).length;for(var c in r)if(bt.call(r,c))return!1;return!0}function GB(r,i){return za(r,i)}function qB(r,i,c){c=typeof c=="function"?c:n;var f=c?c(r,i):n;return f===n?za(r,i,n,c):!!f}function yp(r){if(!Lt(r))return!1;var i=gn(r);return i==me||i==ge||typeof r.message=="string"&&typeof r.name=="string"&&!qa(r)}function VB(r){return typeof r=="number"&&Jy(r)}function Yr(r){if(!At(r))return!1;var i=gn(r);return i==fe||i==Pe||i==gt||i==We}function yb(r){return typeof r=="number"&&r==qe(r)}function Dc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=he}function At(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function Lt(r){return r!=null&&typeof r=="object"}var vb=Ay?Dn(Ay):JM;function YB(r,i){return r===i||Hf(r,i,sp(i))}function XB(r,i,c){return c=typeof c=="function"?c:n,Hf(r,i,sp(i),c)}function KB(r){return bb(r)&&r!=+r}function JB(r){if($$(r))throw new Fe(s);return uv(r)}function ZB(r){return r===null}function QB(r){return r==null}function bb(r){return typeof r=="number"||Lt(r)&&gn(r)==Be}function qa(r){if(!Lt(r)||gn(r)!=Ae)return!1;var i=lc(r);if(i===null)return!0;var c=bt.call(i,"constructor")&&i.constructor;return typeof c=="function"&&c instanceof c&&oc.call(c)==XA}var vp=My?Dn(My):ZM;function eL(r){return yb(r)&&r>=-he&&r<=he}var xb=$y?Dn($y):QM;function Bc(r){return typeof r=="string"||!ze(r)&&Lt(r)&&gn(r)==xe}function Ln(r){return typeof r=="symbol"||Lt(r)&&gn(r)==ut}var Li=Dy?Dn(Dy):e$;function tL(r){return r===n}function nL(r){return Lt(r)&&dn(r)==Ht}function rL(r){return Lt(r)&&gn(r)==Yn}var oL=Rc(qf),iL=Rc(function(r,i){return r<=i});function wb(r){if(!r)return[];if(En(r))return Bc(r)?cr(r):_n(r);if(Ma&&r[Ma])return LA(r[Ma]());var i=dn(r),c=i==ve?Mf:i==Le?tc:ji;return c(r)}function Xr(r){if(!r)return r===0?r:0;if(r=rr(r),r===pe||r===-pe){var i=r<0?-1:1;return i*be}return r===r?r:0}function qe(r){var i=Xr(r),c=i%1;return i===i?c?i-c:i:0}function Sb(r){return r?jo(qe(r),0,ue):0}function rr(r){if(typeof r=="number")return r;if(Ln(r))return we;if(At(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=At(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=zy(r);var c=FO.test(r);return c||WO.test(r)?xA(r.slice(2),c?2:8):NO.test(r)?we:+r}function Cb(r){return Pr(r,Rn(r))}function aL(r){return r?jo(qe(r),-he,he):r===0?r:0}function mt(r){return r==null?"":Bn(r)}var sL=$i(function(r,i){if(Ha(i)||En(i)){Pr(i,Jt(i),r);return}for(var c in i)bt.call(i,c)&&ja(r,c,i[c])}),_b=$i(function(r,i){Pr(i,Rn(i),r)}),Lc=$i(function(r,i,c,f){Pr(i,Rn(i),r,f)}),lL=$i(function(r,i,c,f){Pr(i,Jt(i),r,f)}),cL=qr(Nf);function uL(r,i){var c=Mi(r);return i==null?c:nv(c,i)}var dL=Ze(function(r,i){r=Ct(r);var c=-1,f=i.length,x=f>2?i[2]:n;for(x&&mn(i[0],i[1],x)&&(f=1);++c<f;)for(var A=i[c],L=Rn(A),F=-1,U=L.length;++F<U;){var te=L[F],ne=r[te];(ne===n||dr(ne,Pi[te])&&!bt.call(r,te))&&(r[te]=A[te])}return r}),fL=Ze(function(r){return r.push(n,zv),$n(Eb,n,r)});function pL(r,i){return Ly(r,Oe(i,3),Tr)}function hL(r,i){return Ly(r,Oe(i,3),zf)}function gL(r,i){return r==null?r:Ff(r,Oe(i,3),Rn)}function mL(r,i){return r==null?r:sv(r,Oe(i,3),Rn)}function yL(r,i){return r&&Tr(r,Oe(i,3))}function vL(r,i){return r&&zf(r,Oe(i,3))}function bL(r){return r==null?[]:vc(r,Jt(r))}function xL(r){return r==null?[]:vc(r,Rn(r))}function bp(r,i,c){var f=r==null?n:No(r,i);return f===n?c:f}function wL(r,i){return r!=null&&Hv(r,i,HM)}function xp(r,i){return r!=null&&Hv(r,i,GM)}var SL=Bv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=ic.call(i)),r[i]=c},Sp(In)),CL=Bv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=ic.call(i)),bt.call(r,i)?r[i].push(c):r[i]=[c]},Oe),_L=Ze(Fa);function Jt(r){return En(r)?ev(r):Gf(r)}function Rn(r){return En(r)?ev(r,!0):t$(r)}function EL(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,i(f,x,A),f)}),c}function RL(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,x,i(f,x,A))}),c}var IL=$i(function(r,i,c){bc(r,i,c)}),Eb=$i(function(r,i,c,f){bc(r,i,c,f)}),kL=qr(function(r,i){var c={};if(r==null)return c;var f=!1;i=Pt(i,function(A){return A=po(A,r),f||(f=A.length>1),A}),Pr(r,ip(r),c),f&&(c=er(c,m|b|w,S$));for(var x=i.length;x--;)Jf(c,i[x]);return c});function TL(r,i){return Rb(r,$c(Oe(i)))}var PL=qr(function(r,i){return r==null?{}:r$(r,i)});function Rb(r,i){if(r==null)return{};var c=Pt(ip(r),function(f){return[f]});return i=Oe(i),yv(r,c,function(f,x){return i(f,x[0])})}function OL(r,i,c){i=po(i,r);var f=-1,x=i.length;for(x||(x=1,r=n);++f<x;){var A=r==null?n:r[Or(i[f])];A===n&&(f=x,A=c),r=Yr(A)?A.call(r):A}return r}function AL(r,i,c){return r==null?r:Wa(r,i,c)}function ML(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:Wa(r,i,c,f)}var Ib=Nv(Jt),kb=Nv(Rn);function $L(r,i,c){var f=ze(r),x=f||go(r)||Li(r);if(i=Oe(i,4),c==null){var A=r&&r.constructor;x?c=f?new A:[]:At(r)?c=Yr(A)?Mi(lc(r)):{}:c={}}return(x?Jn:Tr)(r,function(L,F,U){return i(c,L,F,U)}),c}function DL(r,i){return r==null?!0:Jf(r,i)}function BL(r,i,c){return r==null?r:Sv(r,i,ep(c))}function LL(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:Sv(r,i,ep(c),f)}function ji(r){return r==null?[]:Af(r,Jt(r))}function jL(r){return r==null?[]:Af(r,Rn(r))}function NL(r,i,c){return c===n&&(c=i,i=n),c!==n&&(c=rr(c),c=c===c?c:0),i!==n&&(i=rr(i),i=i===i?i:0),jo(rr(r),i,c)}function FL(r,i,c){return i=Xr(i),c===n?(c=i,i=0):c=Xr(c),r=rr(r),qM(r,i,c)}function zL(r,i,c){if(c&&typeof c!="boolean"&&mn(r,i,c)&&(i=c=n),c===n&&(typeof i=="boolean"?(c=i,i=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&i===n?(r=0,i=1):(r=Xr(r),i===n?(i=r,r=0):i=Xr(i)),r>i){var f=r;r=i,i=f}if(c||r%1||i%1){var x=Zy();return un(r+x*(i-r+bA("1e-"+((x+"").length-1))),i)}return Yf(r,i)}var WL=Di(function(r,i,c){return i=i.toLowerCase(),r+(c?Tb(i):i)});function Tb(r){return wp(mt(r).toLowerCase())}function Pb(r){return r=mt(r),r&&r.replace(HO,AA).replace(cA,"")}function UL(r,i,c){r=mt(r),i=Bn(i);var f=r.length;c=c===n?f:jo(qe(c),0,f);var x=c;return c-=i.length,c>=0&&r.slice(c,x)==i}function HL(r){return r=mt(r),r&&Oa.test(r)?r.replace(io,MA):r}function GL(r){return r=mt(r),r&&PO.test(r)?r.replace(mf,"\\$&"):r}var qL=Di(function(r,i,c){return r+(c?"-":"")+i.toLowerCase()}),VL=Di(function(r,i,c){return r+(c?" ":"")+i.toLowerCase()}),YL=Mv("toLowerCase");function XL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;if(!i||f>=i)return r;var x=(i-f)/2;return Ec(fc(x),c)+r+Ec(dc(x),c)}function KL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?r+Ec(i-f,c):r}function JL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?Ec(i-f,c)+r:r}function ZL(r,i,c){return c||i==null?i=0:i&&(i=+i),iM(mt(r).replace(yf,""),i||0)}function QL(r,i,c){return(c?mn(r,i,c):i===n)?i=1:i=qe(i),Xf(mt(r),i)}function ej(){var r=arguments,i=mt(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var tj=Di(function(r,i,c){return r+(c?"_":"")+i.toLowerCase()});function nj(r,i,c){return c&&typeof c!="number"&&mn(r,i,c)&&(i=c=n),c=c===n?ue:c>>>0,c?(r=mt(r),r&&(typeof i=="string"||i!=null&&!vp(i))&&(i=Bn(i),!i&&Ii(r))?ho(cr(r),0,c):r.split(i,c)):[]}var rj=Di(function(r,i,c){return r+(c?" ":"")+wp(i)});function oj(r,i,c){return r=mt(r),c=c==null?0:jo(qe(c),0,r.length),i=Bn(i),r.slice(c,c+i.length)==i}function ij(r,i,c){var f=T.templateSettings;c&&mn(r,i,c)&&(i=n),r=mt(r),i=Lc({},i,f,Fv);var x=Lc({},i.imports,f.imports,Fv),A=Jt(x),L=Af(x,A),F,U,te=0,ne=i.interpolate||Kl,ie="__p += '",ye=$f((i.escape||Kl).source+"|"+ne.source+"|"+(ne===ly?jO:Kl).source+"|"+(i.evaluate||Kl).source+"|$","g"),Ie="//# sourceURL="+(bt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hA+"]")+`
|
|
679
|
-
`;r.replace(ye,function($e,
|
|
680
|
-
__e(`+
|
|
681
|
-
'`),yn&&(
|
|
678
|
+
`)}function P$(r){return ze(r)||Uo(r)||!!(Xy&&r&&r[Xy])}function Vr(r,i){var c=typeof r;return i=i??he,!!i&&(c=="number"||c!="symbol"&&WO.test(r))&&r>-1&&r%1==0&&r<i}function mn(r,i,c){if(!At(c))return!1;var f=typeof i;return(f=="number"?En(c)&&Vr(i,c.length):f=="string"&&i in c)?dr(c[i],r):!1}function lp(r,i){if(ze(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Ln(r)?!0:IO.test(r)||!RO.test(r)||i!=null&&r in Ct(i)}function O$(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function cp(r){var i=Rc(r),c=T[i];if(typeof c!="function"||!(i in rt.prototype))return!1;if(r===c)return!0;var f=ip(c);return!!f&&r===f[0]}function A$(r){return!!Gy&&Gy in r}var M$=nc?Yr:Rp;function Ha(r){var i=r&&r.constructor,c=typeof i=="function"&&i.prototype||Pi;return r===c}function Gv(r){return r===r&&!At(r)}function qv(r,i){return function(c){return c==null?!1:c[r]===i&&(i!==n||r in Ct(c))}}function $$(r){var i=Ac(r,function(f){return c.size===h&&c.clear(),f}),c=i.cache;return i}function D$(r,i){var c=r[1],f=i[1],x=c|f,A=x<(P|S|D),L=f==D&&c==k||f==D&&c==V&&r[7].length<=i[8]||f==(D|V)&&i[7].length<=i[8]&&c==k;if(!(A||L))return r;f&P&&(r[2]=i[2],x|=c&P?0:O);var F=i[3];if(F){var W=r[3];r[3]=W?kv(W,F,i[4]):F,r[4]=W?lo(r[3],y):i[4]}return F=i[5],F&&(W=r[5],r[5]=W?Tv(W,F,i[6]):F,r[6]=W?lo(r[5],y):i[6]),F=i[7],F&&(r[7]=F),f&D&&(r[8]=r[8]==null?i[8]:un(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=x,r}function B$(r){var i=[];if(r!=null)for(var c in Ct(r))i.push(c);return i}function L$(r){return oc.call(r)}function Vv(r,i,c){return i=Vt(i===n?r.length-1:i,0),function(){for(var f=arguments,x=-1,A=Vt(f.length-i,0),L=X(A);++x<A;)L[x]=f[i+x];x=-1;for(var F=X(i+1);++x<i;)F[x]=f[x];return F[i]=c(L),$n(r,this,F)}}function Yv(r,i){return i.length<2?r:Fo(r,tr(i,0,-1))}function j$(r,i){for(var c=r.length,f=un(i.length,c),x=_n(r);f--;){var A=i[f];r[f]=Vr(A,c)?x[A]:n}return r}function up(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Xv=Jv(vv),Ga=QA||function(r,i){return nn.setTimeout(r,i)},dp=Jv(s$);function Kv(r,i,c){var f=i+"";return dp(r,T$(f,N$(R$(f),c)))}function Jv(r){var i=0,c=0;return function(){var f=rM(),x=H-(f-c);if(c=f,x>0){if(++i>=Z)return arguments[0]}else i=0;return r.apply(n,arguments)}}function kc(r,i){var c=-1,f=r.length,x=f-1;for(i=i===n?f:i;++c<i;){var A=Vf(c,x),L=r[A];r[A]=r[c],r[c]=L}return r.length=i,r}var Zv=$$(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(kO,function(c,f,x,A){i.push(x?A.replace(BO,"$1"):f||c)}),i});function Or(r){if(typeof r=="string"||Ln(r))return r;var i=r+"";return i=="0"&&1/r==-de?"-0":i}function Wo(r){if(r!=null){try{return rc.call(r)}catch{}try{return r+""}catch{}}return""}function N$(r,i){return Jn(Xe,function(c){var f="_."+c[0];i&c[1]&&!Zl(r,f)&&r.push(f)}),r.sort()}function Qv(r){if(r instanceof rt)return r.clone();var i=new Qn(r.__wrapped__,r.__chain__);return i.__actions__=_n(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function F$(r,i,c){(c?mn(r,i,c):i===n)?i=1:i=Vt(qe(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var x=0,A=0,L=X(uc(f/i));x<f;)L[A++]=tr(r,x,x+=i);return L}function z$(r){for(var i=-1,c=r==null?0:r.length,f=0,x=[];++i<c;){var A=r[i];A&&(x[f++]=A)}return x}function W$(){var r=arguments.length;if(!r)return[];for(var i=X(r-1),c=arguments[0],f=r;f--;)i[f-1]=arguments[f];return so(ze(c)?_n(c):[c],rn(i,1))}var U$=Ze(function(r,i){return Nt(r)?Na(r,rn(i,1,Nt,!0)):[]}),H$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Na(r,rn(i,1,Nt,!0),Oe(c,2)):[]}),G$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Na(r,rn(i,1,Nt,!0),n,c):[]});function q$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),tr(r,i<0?0:i,f)):[]}function V$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,0,i<0?0:i)):[]}function Y$(r,i){return r&&r.length?xc(r,Oe(i,3),!0,!0):[]}function X$(r,i){return r&&r.length?xc(r,Oe(i,3),!0):[]}function K$(r,i,c,f){var x=r==null?0:r.length;return x?(c&&typeof c!="number"&&mn(r,i,c)&&(c=0,f=x),WM(r,i,c,f)):[]}function eb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),Ql(r,Oe(i,3),x)}function tb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f-1;return c!==n&&(x=qe(c),x=c<0?Vt(f+x,0):un(x,f-1)),Ql(r,Oe(i,3),x,!0)}function nb(r){var i=r==null?0:r.length;return i?rn(r,1):[]}function J$(r){var i=r==null?0:r.length;return i?rn(r,de):[]}function Z$(r,i){var c=r==null?0:r.length;return c?(i=i===n?1:qe(i),rn(r,i)):[]}function Q$(r){for(var i=-1,c=r==null?0:r.length,f={};++i<c;){var x=r[i];f[x[0]]=x[1]}return f}function rb(r){return r&&r.length?r[0]:n}function eD(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),Ri(r,i,x)}function tD(r){var i=r==null?0:r.length;return i?tr(r,0,-1):[]}var nD=Ze(function(r){var i=Pt(r,Zf);return i.length&&i[0]===r[0]?Wf(i):[]}),rD=Ze(function(r){var i=nr(r),c=Pt(r,Zf);return i===nr(c)?i=n:c.pop(),c.length&&c[0]===r[0]?Wf(c,Oe(i,2)):[]}),oD=Ze(function(r){var i=nr(r),c=Pt(r,Zf);return i=typeof i=="function"?i:n,i&&c.pop(),c.length&&c[0]===r[0]?Wf(c,n,i):[]});function iD(r,i){return r==null?"":tM.call(r,i)}function nr(r){var i=r==null?0:r.length;return i?r[i-1]:n}function aD(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f;return c!==n&&(x=qe(c),x=x<0?Vt(f+x,0):un(x,f-1)),i===i?NA(r,i,x):Ql(r,Ly,x,!0)}function sD(r,i){return r&&r.length?hv(r,qe(i)):n}var lD=Ze(ob);function ob(r,i){return r&&r.length&&i&&i.length?qf(r,i):r}function cD(r,i,c){return r&&r.length&&i&&i.length?qf(r,i,Oe(c,2)):r}function uD(r,i,c){return r&&r.length&&i&&i.length?qf(r,i,n,c):r}var dD=qr(function(r,i){var c=r==null?0:r.length,f=jf(r,i);return yv(r,Pt(i,function(x){return Vr(x,c)?+x:x}).sort(Iv)),f});function fD(r,i){var c=[];if(!(r&&r.length))return c;var f=-1,x=[],A=r.length;for(i=Oe(i,3);++f<A;){var L=r[f];i(L,f,r)&&(c.push(L),x.push(f))}return yv(r,x),c}function fp(r){return r==null?r:iM.call(r)}function pD(r,i,c){var f=r==null?0:r.length;return f?(c&&typeof c!="number"&&mn(r,i,c)?(i=0,c=f):(i=i==null?0:qe(i),c=c===n?f:qe(c)),tr(r,i,c)):[]}function hD(r,i){return bc(r,i)}function gD(r,i,c){return Xf(r,i,Oe(c,2))}function mD(r,i){var c=r==null?0:r.length;if(c){var f=bc(r,i);if(f<c&&dr(r[f],i))return f}return-1}function yD(r,i){return bc(r,i,!0)}function vD(r,i,c){return Xf(r,i,Oe(c,2),!0)}function bD(r,i){var c=r==null?0:r.length;if(c){var f=bc(r,i,!0)-1;if(dr(r[f],i))return f}return-1}function xD(r){return r&&r.length?bv(r):[]}function wD(r,i){return r&&r.length?bv(r,Oe(i,2)):[]}function SD(r){var i=r==null?0:r.length;return i?tr(r,1,i):[]}function CD(r,i,c){return r&&r.length?(i=c||i===n?1:qe(i),tr(r,0,i<0?0:i)):[]}function _D(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,i<0?0:i,f)):[]}function ED(r,i){return r&&r.length?xc(r,Oe(i,3),!1,!0):[]}function RD(r,i){return r&&r.length?xc(r,Oe(i,3)):[]}var ID=Ze(function(r){return fo(rn(r,1,Nt,!0))}),kD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),fo(rn(r,1,Nt,!0),Oe(i,2))}),TD=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,fo(rn(r,1,Nt,!0),n,i)});function PD(r){return r&&r.length?fo(r):[]}function OD(r,i){return r&&r.length?fo(r,Oe(i,2)):[]}function AD(r,i){return i=typeof i=="function"?i:n,r&&r.length?fo(r,n,i):[]}function pp(r){if(!(r&&r.length))return[];var i=0;return r=ao(r,function(c){if(Nt(c))return i=Vt(c.length,i),!0}),Pf(i,function(c){return Pt(r,If(c))})}function ib(r,i){if(!(r&&r.length))return[];var c=pp(r);return i==null?c:Pt(c,function(f){return $n(i,n,f)})}var MD=Ze(function(r,i){return Nt(r)?Na(r,i):[]}),$D=Ze(function(r){return Jf(ao(r,Nt))}),DD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),Jf(ao(r,Nt),Oe(i,2))}),BD=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,Jf(ao(r,Nt),n,i)}),LD=Ze(pp);function jD(r,i){return Cv(r||[],i||[],ja)}function ND(r,i){return Cv(r||[],i||[],Wa)}var FD=Ze(function(r){var i=r.length,c=i>1?r[i-1]:n;return c=typeof c=="function"?(r.pop(),c):n,ib(r,c)});function ab(r){var i=T(r);return i.__chain__=!0,i}function zD(r,i){return i(r),r}function Tc(r,i){return i(r)}var WD=qr(function(r){var i=r.length,c=i?r[0]:0,f=this.__wrapped__,x=function(A){return jf(A,r)};return i>1||this.__actions__.length||!(f instanceof rt)||!Vr(c)?this.thru(x):(f=f.slice(c,+c+(i?1:0)),f.__actions__.push({func:Tc,args:[x],thisArg:n}),new Qn(f,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function UD(){return ab(this)}function HD(){return new Qn(this.value(),this.__chain__)}function GD(){this.__values__===n&&(this.__values__=xb(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function qD(){return this}function VD(r){for(var i,c=this;c instanceof hc;){var f=Qv(c);f.__index__=0,f.__values__=n,i?x.__wrapped__=f:i=f;var x=f;c=c.__wrapped__}return x.__wrapped__=r,i}function YD(){var r=this.__wrapped__;if(r instanceof rt){var i=r;return this.__actions__.length&&(i=new rt(this)),i=i.reverse(),i.__actions__.push({func:Tc,args:[fp],thisArg:n}),new Qn(i,this.__chain__)}return this.thru(fp)}function XD(){return Sv(this.__wrapped__,this.__actions__)}var KD=wc(function(r,i,c){bt.call(r,c)?++r[c]:Hr(r,c,1)});function JD(r,i,c){var f=ze(r)?Dy:zM;return c&&mn(r,i,c)&&(i=n),f(r,Oe(i,3))}function ZD(r,i){var c=ze(r)?ao:iv;return c(r,Oe(i,3))}var QD=Mv(eb),eB=Mv(tb);function tB(r,i){return rn(Pc(r,i),1)}function nB(r,i){return rn(Pc(r,i),de)}function rB(r,i,c){return c=c===n?1:qe(c),rn(Pc(r,i),c)}function sb(r,i){var c=ze(r)?Jn:uo;return c(r,Oe(i,3))}function lb(r,i){var c=ze(r)?SA:ov;return c(r,Oe(i,3))}var oB=wc(function(r,i,c){bt.call(r,c)?r[c].push(i):Hr(r,c,[i])});function iB(r,i,c,f){r=En(r)?r:ji(r),c=c&&!f?qe(c):0;var x=r.length;return c<0&&(c=Vt(x+c,0)),Dc(r)?c<=x&&r.indexOf(i,c)>-1:!!x&&Ri(r,i,c)>-1}var aB=Ze(function(r,i,c){var f=-1,x=typeof i=="function",A=En(r)?X(r.length):[];return uo(r,function(L){A[++f]=x?$n(i,L,c):Fa(L,i,c)}),A}),sB=wc(function(r,i,c){Hr(r,c,i)});function Pc(r,i){var c=ze(r)?Pt:dv;return c(r,Oe(i,3))}function lB(r,i,c,f){return r==null?[]:(ze(i)||(i=i==null?[]:[i]),c=f?n:c,ze(c)||(c=c==null?[]:[c]),gv(r,i,c))}var cB=wc(function(r,i,c){r[c?0:1].push(i)},function(){return[[],[]]});function uB(r,i,c){var f=ze(r)?Ef:Ny,x=arguments.length<3;return f(r,Oe(i,4),c,x,uo)}function dB(r,i,c){var f=ze(r)?CA:Ny,x=arguments.length<3;return f(r,Oe(i,4),c,x,ov)}function fB(r,i){var c=ze(r)?ao:iv;return c(r,Mc(Oe(i,3)))}function pB(r){var i=ze(r)?ev:i$;return i(r)}function hB(r,i,c){(c?mn(r,i,c):i===n)?i=1:i=qe(i);var f=ze(r)?BM:a$;return f(r,i)}function gB(r){var i=ze(r)?LM:l$;return i(r)}function mB(r){if(r==null)return 0;if(En(r))return Dc(r)?ki(r):r.length;var i=dn(r);return i==ve||i==Le?r.size:Hf(r).length}function yB(r,i,c){var f=ze(r)?Rf:c$;return c&&mn(r,i,c)&&(i=n),f(r,Oe(i,3))}var vB=Ze(function(r,i){if(r==null)return[];var c=i.length;return c>1&&mn(r,i[0],i[1])?i=[]:c>2&&mn(i[0],i[1],i[2])&&(i=[i[0]]),gv(r,rn(i,1),[])}),Oc=ZA||function(){return nn.Date.now()};function bB(r,i){if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){if(--r<1)return i.apply(this,arguments)}}function cb(r,i,c){return i=c?n:i,i=r&&i==null?r.length:i,Gr(r,D,n,n,n,n,i)}function ub(r,i){var c;if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){return--r>0&&(c=i.apply(this,arguments)),r<=1&&(i=n),c}}var hp=Ze(function(r,i,c){var f=P;if(c.length){var x=lo(c,Bi(hp));f|=M}return Gr(r,f,i,c,x)}),db=Ze(function(r,i,c){var f=P|S;if(c.length){var x=lo(c,Bi(db));f|=M}return Gr(i,f,r,c,x)});function fb(r,i,c){i=c?n:i;var f=Gr(r,k,n,n,n,n,n,i);return f.placeholder=fb.placeholder,f}function pb(r,i,c){i=c?n:i;var f=Gr(r,I,n,n,n,n,n,i);return f.placeholder=pb.placeholder,f}function hb(r,i,c){var f,x,A,L,F,W,ne=0,re=!1,ie=!1,ye=!0;if(typeof r!="function")throw new Zn(l);i=rr(i)||0,At(c)&&(re=!!c.leading,ie="maxWait"in c,A=ie?Vt(rr(c.maxWait)||0,i):A,ye="trailing"in c?!!c.trailing:ye);function Ie(Ft){var fr=f,Kr=x;return f=x=n,ne=Ft,L=r.apply(Kr,fr),L}function Me(Ft){return ne=Ft,F=Ga(nt,i),re?Ie(Ft):L}function Je(Ft){var fr=Ft-W,Kr=Ft-ne,Mb=i-fr;return ie?un(Mb,A-Kr):Mb}function $e(Ft){var fr=Ft-W,Kr=Ft-ne;return W===n||fr>=i||fr<0||ie&&Kr>=A}function nt(){var Ft=Oc();if($e(Ft))return ot(Ft);F=Ga(nt,Je(Ft))}function ot(Ft){return F=n,ye&&f?Ie(Ft):(f=x=n,L)}function jn(){F!==n&&_v(F),ne=0,f=W=x=F=n}function yn(){return F===n?L:ot(Oc())}function Nn(){var Ft=Oc(),fr=$e(Ft);if(f=arguments,x=this,W=Ft,fr){if(F===n)return Me(W);if(ie)return _v(F),F=Ga(nt,i),Ie(W)}return F===n&&(F=Ga(nt,i)),L}return Nn.cancel=jn,Nn.flush=yn,Nn}var xB=Ze(function(r,i){return rv(r,1,i)}),wB=Ze(function(r,i,c){return rv(r,rr(i)||0,c)});function SB(r){return Gr(r,U)}function Ac(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new Zn(l);var c=function(){var f=arguments,x=i?i.apply(this,f):f[0],A=c.cache;if(A.has(x))return A.get(x);var L=r.apply(this,f);return c.cache=A.set(x,L)||A,L};return c.cache=new(Ac.Cache||Ur),c}Ac.Cache=Ur;function Mc(r){if(typeof r!="function")throw new Zn(l);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function CB(r){return ub(2,r)}var _B=u$(function(r,i){i=i.length==1&&ze(i[0])?Pt(i[0],Dn(Oe())):Pt(rn(i,1),Dn(Oe()));var c=i.length;return Ze(function(f){for(var x=-1,A=un(f.length,c);++x<A;)f[x]=i[x].call(this,f[x]);return $n(r,this,f)})}),gp=Ze(function(r,i){var c=lo(i,Bi(gp));return Gr(r,M,n,i,c)}),gb=Ze(function(r,i){var c=lo(i,Bi(gb));return Gr(r,B,n,i,c)}),EB=qr(function(r,i){return Gr(r,V,n,n,n,i)});function RB(r,i){if(typeof r!="function")throw new Zn(l);return i=i===n?i:qe(i),Ze(r,i)}function IB(r,i){if(typeof r!="function")throw new Zn(l);return i=i==null?0:Vt(qe(i),0),Ze(function(c){var f=c[i],x=ho(c,0,i);return f&&so(x,f),$n(r,this,x)})}function kB(r,i,c){var f=!0,x=!0;if(typeof r!="function")throw new Zn(l);return At(c)&&(f="leading"in c?!!c.leading:f,x="trailing"in c?!!c.trailing:x),hb(r,i,{leading:f,maxWait:i,trailing:x})}function TB(r){return cb(r,1)}function PB(r,i){return gp(Qf(i),r)}function OB(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function AB(r){return er(r,w)}function MB(r,i){return i=typeof i=="function"?i:n,er(r,w,i)}function $B(r){return er(r,m|w)}function DB(r,i){return i=typeof i=="function"?i:n,er(r,m|w,i)}function BB(r,i){return i==null||nv(r,i,Jt(i))}function dr(r,i){return r===i||r!==r&&i!==i}var LB=Ec(zf),jB=Ec(function(r,i){return r>=i}),Uo=lv(function(){return arguments}())?lv:function(r){return Lt(r)&&bt.call(r,"callee")&&!Yy.call(r,"callee")},ze=X.isArray,NB=Ty?Dn(Ty):VM;function En(r){return r!=null&&$c(r.length)&&!Yr(r)}function Nt(r){return Lt(r)&&En(r)}function FB(r){return r===!0||r===!1||Lt(r)&&gn(r)==le}var go=eM||Rp,zB=Py?Dn(Py):YM;function WB(r){return Lt(r)&&r.nodeType===1&&!qa(r)}function UB(r){if(r==null)return!0;if(En(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||go(r)||Li(r)||Uo(r)))return!r.length;var i=dn(r);if(i==ve||i==Le)return!r.size;if(Ha(r))return!Hf(r).length;for(var c in r)if(bt.call(r,c))return!1;return!0}function HB(r,i){return za(r,i)}function GB(r,i,c){c=typeof c=="function"?c:n;var f=c?c(r,i):n;return f===n?za(r,i,n,c):!!f}function mp(r){if(!Lt(r))return!1;var i=gn(r);return i==me||i==ge||typeof r.message=="string"&&typeof r.name=="string"&&!qa(r)}function qB(r){return typeof r=="number"&&Ky(r)}function Yr(r){if(!At(r))return!1;var i=gn(r);return i==pe||i==Pe||i==gt||i==We}function mb(r){return typeof r=="number"&&r==qe(r)}function $c(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=he}function At(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function Lt(r){return r!=null&&typeof r=="object"}var yb=Oy?Dn(Oy):KM;function VB(r,i){return r===i||Uf(r,i,ap(i))}function YB(r,i,c){return c=typeof c=="function"?c:n,Uf(r,i,ap(i),c)}function XB(r){return vb(r)&&r!=+r}function KB(r){if(M$(r))throw new Fe(s);return cv(r)}function JB(r){return r===null}function ZB(r){return r==null}function vb(r){return typeof r=="number"||Lt(r)&&gn(r)==Be}function qa(r){if(!Lt(r)||gn(r)!=Ae)return!1;var i=sc(r);if(i===null)return!0;var c=bt.call(i,"constructor")&&i.constructor;return typeof c=="function"&&c instanceof c&&rc.call(c)==YA}var yp=Ay?Dn(Ay):JM;function QB(r){return mb(r)&&r>=-he&&r<=he}var bb=My?Dn(My):ZM;function Dc(r){return typeof r=="string"||!ze(r)&&Lt(r)&&gn(r)==xe}function Ln(r){return typeof r=="symbol"||Lt(r)&&gn(r)==ut}var Li=$y?Dn($y):QM;function eL(r){return r===n}function tL(r){return Lt(r)&&dn(r)==Ht}function nL(r){return Lt(r)&&gn(r)==Yn}var rL=Ec(Gf),oL=Ec(function(r,i){return r<=i});function xb(r){if(!r)return[];if(En(r))return Dc(r)?cr(r):_n(r);if(Ma&&r[Ma])return BA(r[Ma]());var i=dn(r),c=i==ve?Af:i==Le?ec:ji;return c(r)}function Xr(r){if(!r)return r===0?r:0;if(r=rr(r),r===de||r===-de){var i=r<0?-1:1;return i*be}return r===r?r:0}function qe(r){var i=Xr(r),c=i%1;return i===i?c?i-c:i:0}function wb(r){return r?No(qe(r),0,ue):0}function rr(r){if(typeof r=="number")return r;if(Ln(r))return we;if(At(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=At(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=Fy(r);var c=NO.test(r);return c||zO.test(r)?bA(r.slice(2),c?2:8):jO.test(r)?we:+r}function Sb(r){return Pr(r,Rn(r))}function iL(r){return r?No(qe(r),-he,he):r===0?r:0}function mt(r){return r==null?"":Bn(r)}var aL=$i(function(r,i){if(Ha(i)||En(i)){Pr(i,Jt(i),r);return}for(var c in i)bt.call(i,c)&&ja(r,c,i[c])}),Cb=$i(function(r,i){Pr(i,Rn(i),r)}),Bc=$i(function(r,i,c,f){Pr(i,Rn(i),r,f)}),sL=$i(function(r,i,c,f){Pr(i,Jt(i),r,f)}),lL=qr(jf);function cL(r,i){var c=Mi(r);return i==null?c:tv(c,i)}var uL=Ze(function(r,i){r=Ct(r);var c=-1,f=i.length,x=f>2?i[2]:n;for(x&&mn(i[0],i[1],x)&&(f=1);++c<f;)for(var A=i[c],L=Rn(A),F=-1,W=L.length;++F<W;){var ne=L[F],re=r[ne];(re===n||dr(re,Pi[ne])&&!bt.call(r,ne))&&(r[ne]=A[ne])}return r}),dL=Ze(function(r){return r.push(n,Fv),$n(_b,n,r)});function fL(r,i){return By(r,Oe(i,3),Tr)}function pL(r,i){return By(r,Oe(i,3),Ff)}function hL(r,i){return r==null?r:Nf(r,Oe(i,3),Rn)}function gL(r,i){return r==null?r:av(r,Oe(i,3),Rn)}function mL(r,i){return r&&Tr(r,Oe(i,3))}function yL(r,i){return r&&Ff(r,Oe(i,3))}function vL(r){return r==null?[]:yc(r,Jt(r))}function bL(r){return r==null?[]:yc(r,Rn(r))}function vp(r,i,c){var f=r==null?n:Fo(r,i);return f===n?c:f}function xL(r,i){return r!=null&&Uv(r,i,UM)}function bp(r,i){return r!=null&&Uv(r,i,HM)}var wL=Dv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=oc.call(i)),r[i]=c},wp(In)),SL=Dv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=oc.call(i)),bt.call(r,i)?r[i].push(c):r[i]=[c]},Oe),CL=Ze(Fa);function Jt(r){return En(r)?Qy(r):Hf(r)}function Rn(r){return En(r)?Qy(r,!0):e$(r)}function _L(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,i(f,x,A),f)}),c}function EL(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,x,i(f,x,A))}),c}var RL=$i(function(r,i,c){vc(r,i,c)}),_b=$i(function(r,i,c,f){vc(r,i,c,f)}),IL=qr(function(r,i){var c={};if(r==null)return c;var f=!1;i=Pt(i,function(A){return A=po(A,r),f||(f=A.length>1),A}),Pr(r,op(r),c),f&&(c=er(c,m|b|w,w$));for(var x=i.length;x--;)Kf(c,i[x]);return c});function kL(r,i){return Eb(r,Mc(Oe(i)))}var TL=qr(function(r,i){return r==null?{}:n$(r,i)});function Eb(r,i){if(r==null)return{};var c=Pt(op(r),function(f){return[f]});return i=Oe(i),mv(r,c,function(f,x){return i(f,x[0])})}function PL(r,i,c){i=po(i,r);var f=-1,x=i.length;for(x||(x=1,r=n);++f<x;){var A=r==null?n:r[Or(i[f])];A===n&&(f=x,A=c),r=Yr(A)?A.call(r):A}return r}function OL(r,i,c){return r==null?r:Wa(r,i,c)}function AL(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:Wa(r,i,c,f)}var Rb=jv(Jt),Ib=jv(Rn);function ML(r,i,c){var f=ze(r),x=f||go(r)||Li(r);if(i=Oe(i,4),c==null){var A=r&&r.constructor;x?c=f?new A:[]:At(r)?c=Yr(A)?Mi(sc(r)):{}:c={}}return(x?Jn:Tr)(r,function(L,F,W){return i(c,L,F,W)}),c}function $L(r,i){return r==null?!0:Kf(r,i)}function DL(r,i,c){return r==null?r:wv(r,i,Qf(c))}function BL(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:wv(r,i,Qf(c),f)}function ji(r){return r==null?[]:Of(r,Jt(r))}function LL(r){return r==null?[]:Of(r,Rn(r))}function jL(r,i,c){return c===n&&(c=i,i=n),c!==n&&(c=rr(c),c=c===c?c:0),i!==n&&(i=rr(i),i=i===i?i:0),No(rr(r),i,c)}function NL(r,i,c){return i=Xr(i),c===n?(c=i,i=0):c=Xr(c),r=rr(r),GM(r,i,c)}function FL(r,i,c){if(c&&typeof c!="boolean"&&mn(r,i,c)&&(i=c=n),c===n&&(typeof i=="boolean"?(c=i,i=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&i===n?(r=0,i=1):(r=Xr(r),i===n?(i=r,r=0):i=Xr(i)),r>i){var f=r;r=i,i=f}if(c||r%1||i%1){var x=Jy();return un(r+x*(i-r+vA("1e-"+((x+"").length-1))),i)}return Vf(r,i)}var zL=Di(function(r,i,c){return i=i.toLowerCase(),r+(c?kb(i):i)});function kb(r){return xp(mt(r).toLowerCase())}function Tb(r){return r=mt(r),r&&r.replace(UO,OA).replace(lA,"")}function WL(r,i,c){r=mt(r),i=Bn(i);var f=r.length;c=c===n?f:No(qe(c),0,f);var x=c;return c-=i.length,c>=0&&r.slice(c,x)==i}function UL(r){return r=mt(r),r&&Oa.test(r)?r.replace(io,AA):r}function HL(r){return r=mt(r),r&&TO.test(r)?r.replace(gf,"\\$&"):r}var GL=Di(function(r,i,c){return r+(c?"-":"")+i.toLowerCase()}),qL=Di(function(r,i,c){return r+(c?" ":"")+i.toLowerCase()}),VL=Av("toLowerCase");function YL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;if(!i||f>=i)return r;var x=(i-f)/2;return _c(dc(x),c)+r+_c(uc(x),c)}function XL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?r+_c(i-f,c):r}function KL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?_c(i-f,c)+r:r}function JL(r,i,c){return c||i==null?i=0:i&&(i=+i),oM(mt(r).replace(mf,""),i||0)}function ZL(r,i,c){return(c?mn(r,i,c):i===n)?i=1:i=qe(i),Yf(mt(r),i)}function QL(){var r=arguments,i=mt(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var ej=Di(function(r,i,c){return r+(c?"_":"")+i.toLowerCase()});function tj(r,i,c){return c&&typeof c!="number"&&mn(r,i,c)&&(i=c=n),c=c===n?ue:c>>>0,c?(r=mt(r),r&&(typeof i=="string"||i!=null&&!yp(i))&&(i=Bn(i),!i&&Ii(r))?ho(cr(r),0,c):r.split(i,c)):[]}var nj=Di(function(r,i,c){return r+(c?" ":"")+xp(i)});function rj(r,i,c){return r=mt(r),c=c==null?0:No(qe(c),0,r.length),i=Bn(i),r.slice(c,c+i.length)==i}function oj(r,i,c){var f=T.templateSettings;c&&mn(r,i,c)&&(i=n),r=mt(r),i=Bc({},i,f,Nv);var x=Bc({},i.imports,f.imports,Nv),A=Jt(x),L=Of(x,A),F,W,ne=0,re=i.interpolate||Xl,ie="__p += '",ye=Mf((i.escape||Xl).source+"|"+re.source+"|"+(re===sy?LO:Xl).source+"|"+(i.evaluate||Xl).source+"|$","g"),Ie="//# sourceURL="+(bt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pA+"]")+`
|
|
679
|
+
`;r.replace(ye,function($e,nt,ot,jn,yn,Nn){return ot||(ot=jn),ie+=r.slice(ne,Nn).replace(HO,MA),nt&&(F=!0,ie+=`' +
|
|
680
|
+
__e(`+nt+`) +
|
|
681
|
+
'`),yn&&(W=!0,ie+=`';
|
|
682
682
|
`+yn+`;
|
|
683
683
|
__p += '`),ot&&(ie+=`' +
|
|
684
684
|
((__t = (`+ot+`)) == null ? '' : __t) +
|
|
685
|
-
'`),
|
|
685
|
+
'`),ne=Nn+$e.length,$e}),ie+=`';
|
|
686
686
|
`;var Me=bt.call(i,"variable")&&i.variable;if(!Me)ie=`with (obj) {
|
|
687
687
|
`+ie+`
|
|
688
688
|
}
|
|
689
|
-
`;else if(
|
|
689
|
+
`;else if(DO.test(Me))throw new Fe(u);ie=(W?ie.replace(_e,""):ie).replace(Tt,"$1").replace(Xn,"$1;"),ie="function("+(Me||"obj")+`) {
|
|
690
690
|
`+(Me?"":`obj || (obj = {});
|
|
691
|
-
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(
|
|
691
|
+
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
|
|
692
692
|
function print() { __p += __j.call(arguments, '') }
|
|
693
693
|
`:`;
|
|
694
694
|
`)+ie+`return __p
|
|
695
|
-
}`;var Je=Ab(function(){return dt(A,Ie+"return "+ie).apply(n,L)});if(Je.source=ie,yp(Je))throw Je;return Je}function aj(r){return mt(r).toLowerCase()}function sj(r){return mt(r).toUpperCase()}function lj(r,i,c){if(r=mt(r),r&&(c||i===n))return zy(r);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=cr(i),A=Wy(f,x),L=Uy(f,x)+1;return ho(f,A,L).join("")}function cj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.slice(0,Gy(r)+1);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=Uy(f,cr(i))+1;return ho(f,0,x).join("")}function uj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.replace(yf,"");if(!r||!(i=Bn(i)))return r;var f=cr(r),x=Wy(f,cr(i));return ho(f,x).join("")}function dj(r,i){var c=_,f=G;if(At(i)){var x="separator"in i?i.separator:x;c="length"in i?qe(i.length):c,f="omission"in i?Bn(i.omission):f}r=mt(r);var A=r.length;if(Ii(r)){var L=cr(r);A=L.length}if(c>=A)return r;var F=c-ki(f);if(F<1)return f;var U=L?ho(L,0,F).join(""):r.slice(0,F);if(x===n)return U+f;if(L&&(F+=U.length-F),vp(x)){if(r.slice(F).search(x)){var te,ne=U;for(x.global||(x=$f(x.source,mt(cy.exec(x))+"g")),x.lastIndex=0;te=x.exec(ne);)var ie=te.index;U=U.slice(0,ie===n?F:ie)}}else if(r.indexOf(Bn(x),F)!=F){var ye=U.lastIndexOf(x);ye>-1&&(U=U.slice(0,ye))}return U+f}function fj(r){return r=mt(r),r&&Xl.test(r)?r.replace(kr,zA):r}var pj=Di(function(r,i,c){return r+(c?" ":"")+i.toUpperCase()}),wp=Mv("toUpperCase");function Ob(r,i,c){return r=mt(r),i=c?n:i,i===n?BA(r)?HA(r):IA(r):r.match(i)||[]}var Ab=Ze(function(r,i){try{return $n(r,n,i)}catch(c){return yp(c)?c:new Fe(c)}}),hj=qr(function(r,i){return Jn(i,function(c){c=Or(c),Hr(r,c,gp(r[c],r))}),r});function gj(r){var i=r==null?0:r.length,c=Oe();return r=i?Pt(r,function(f){if(typeof f[1]!="function")throw new Zn(l);return[c(f[0]),f[1]]}):[],Ze(function(f){for(var x=-1;++x<i;){var A=r[x];if($n(A[0],this,f))return $n(A[1],this,f)}})}function mj(r){return zM(er(r,m))}function Sp(r){return function(){return r}}function yj(r,i){return r==null||r!==r?i:r}var vj=Dv(),bj=Dv(!0);function In(r){return r}function Cp(r){return dv(typeof r=="function"?r:er(r,m))}function xj(r){return pv(er(r,m))}function wj(r,i){return hv(r,er(i,m))}var Sj=Ze(function(r,i){return function(c){return Fa(c,r,i)}}),Cj=Ze(function(r,i){return function(c){return Fa(r,c,i)}});function _p(r,i,c){var f=Jt(i),x=vc(i,f);c==null&&!(At(i)&&(x.length||!f.length))&&(c=i,i=r,r=this,x=vc(i,Jt(i)));var A=!(At(c)&&"chain"in c)||!!c.chain,L=Yr(r);return Jn(x,function(F){var U=i[F];r[F]=U,L&&(r.prototype[F]=function(){var te=this.__chain__;if(A||te){var ne=r(this.__wrapped__),ie=ne.__actions__=_n(this.__actions__);return ie.push({func:U,args:arguments,thisArg:r}),ne.__chain__=te,ne}return U.apply(r,so([this.value()],arguments))})}),r}function _j(){return nn._===this&&(nn._=KA),this}function Ep(){}function Ej(r){return r=qe(r),Ze(function(i){return gv(i,r)})}var Rj=np(Pt),Ij=np(By),kj=np(If);function Mb(r){return cp(r)?kf(Or(r)):o$(r)}function Tj(r){return function(i){return r==null?n:No(r,i)}}var Pj=Lv(),Oj=Lv(!0);function Rp(){return[]}function Ip(){return!1}function Aj(){return{}}function Mj(){return""}function $j(){return!0}function Dj(r,i){if(r=qe(r),r<1||r>he)return[];var c=ue,f=un(r,ue);i=Oe(i),r-=ue;for(var x=Of(f,i);++c<r;)i(c);return x}function Bj(r){return ze(r)?Pt(r,Or):Ln(r)?[r]:_n(Qv(mt(r)))}function Lj(r){var i=++YA;return mt(r)+i}var jj=_c(function(r,i){return r+i},0),Nj=rp("ceil"),Fj=_c(function(r,i){return r/i},1),zj=rp("floor");function Wj(r){return r&&r.length?yc(r,In,Wf):n}function Uj(r,i){return r&&r.length?yc(r,Oe(i,2),Wf):n}function Hj(r){return Ny(r,In)}function Gj(r,i){return Ny(r,Oe(i,2))}function qj(r){return r&&r.length?yc(r,In,qf):n}function Vj(r,i){return r&&r.length?yc(r,Oe(i,2),qf):n}var Yj=_c(function(r,i){return r*i},1),Xj=rp("round"),Kj=_c(function(r,i){return r-i},0);function Jj(r){return r&&r.length?Pf(r,In):0}function Zj(r,i){return r&&r.length?Pf(r,Oe(i,2)):0}return T.after=xB,T.ary=ub,T.assign=sL,T.assignIn=_b,T.assignInWith=Lc,T.assignWith=lL,T.at=cL,T.before=db,T.bind=gp,T.bindAll=hj,T.bindKey=fb,T.castArray=AB,T.chain=sb,T.chunk=z$,T.compact=W$,T.concat=U$,T.cond=gj,T.conforms=mj,T.constant=Sp,T.countBy=JD,T.create=uL,T.curry=pb,T.curryRight=hb,T.debounce=gb,T.defaults=dL,T.defaultsDeep=fL,T.defer=wB,T.delay=SB,T.difference=H$,T.differenceBy=G$,T.differenceWith=q$,T.drop=V$,T.dropRight=Y$,T.dropRightWhile=X$,T.dropWhile=K$,T.fill=J$,T.filter=QD,T.flatMap=nB,T.flatMapDeep=rB,T.flatMapDepth=oB,T.flatten=rb,T.flattenDeep=Z$,T.flattenDepth=Q$,T.flip=CB,T.flow=vj,T.flowRight=bj,T.fromPairs=eD,T.functions=bL,T.functionsIn=xL,T.groupBy=iB,T.initial=nD,T.intersection=rD,T.intersectionBy=oD,T.intersectionWith=iD,T.invert=SL,T.invertBy=CL,T.invokeMap=sB,T.iteratee=Cp,T.keyBy=lB,T.keys=Jt,T.keysIn=Rn,T.map=Oc,T.mapKeys=EL,T.mapValues=RL,T.matches=xj,T.matchesProperty=wj,T.memoize=Mc,T.merge=IL,T.mergeWith=Eb,T.method=Sj,T.methodOf=Cj,T.mixin=_p,T.negate=$c,T.nthArg=Ej,T.omit=kL,T.omitBy=TL,T.once=_B,T.orderBy=cB,T.over=Rj,T.overArgs=EB,T.overEvery=Ij,T.overSome=kj,T.partial=mp,T.partialRight=mb,T.partition=uB,T.pick=PL,T.pickBy=Rb,T.property=Mb,T.propertyOf=Tj,T.pull=cD,T.pullAll=ib,T.pullAllBy=uD,T.pullAllWith=dD,T.pullAt=fD,T.range=Pj,T.rangeRight=Oj,T.rearg=RB,T.reject=pB,T.remove=pD,T.rest=IB,T.reverse=pp,T.sampleSize=gB,T.set=AL,T.setWith=ML,T.shuffle=mB,T.slice=hD,T.sortBy=bB,T.sortedUniq=wD,T.sortedUniqBy=SD,T.split=nj,T.spread=kB,T.tail=CD,T.take=_D,T.takeRight=ED,T.takeRightWhile=RD,T.takeWhile=ID,T.tap=WD,T.throttle=TB,T.thru=Pc,T.toArray=wb,T.toPairs=Ib,T.toPairsIn=kb,T.toPath=Bj,T.toPlainObject=Cb,T.transform=$L,T.unary=PB,T.union=kD,T.unionBy=TD,T.unionWith=PD,T.uniq=OD,T.uniqBy=AD,T.uniqWith=MD,T.unset=DL,T.unzip=hp,T.unzipWith=ab,T.update=BL,T.updateWith=LL,T.values=ji,T.valuesIn=jL,T.without=$D,T.words=Ob,T.wrap=OB,T.xor=DD,T.xorBy=BD,T.xorWith=LD,T.zip=jD,T.zipObject=ND,T.zipObjectDeep=FD,T.zipWith=zD,T.entries=Ib,T.entriesIn=kb,T.extend=_b,T.extendWith=Lc,_p(T,T),T.add=jj,T.attempt=Ab,T.camelCase=WL,T.capitalize=Tb,T.ceil=Nj,T.clamp=NL,T.clone=MB,T.cloneDeep=DB,T.cloneDeepWith=BB,T.cloneWith=$B,T.conformsTo=LB,T.deburr=Pb,T.defaultTo=yj,T.divide=Fj,T.endsWith=UL,T.eq=dr,T.escape=HL,T.escapeRegExp=GL,T.every=ZD,T.find=eB,T.findIndex=tb,T.findKey=pL,T.findLast=tB,T.findLastIndex=nb,T.findLastKey=hL,T.floor=zj,T.forEach=lb,T.forEachRight=cb,T.forIn=gL,T.forInRight=mL,T.forOwn=yL,T.forOwnRight=vL,T.get=bp,T.gt=jB,T.gte=NB,T.has=wL,T.hasIn=xp,T.head=ob,T.identity=In,T.includes=aB,T.indexOf=tD,T.inRange=FL,T.invoke=_L,T.isArguments=Wo,T.isArray=ze,T.isArrayBuffer=FB,T.isArrayLike=En,T.isArrayLikeObject=Nt,T.isBoolean=zB,T.isBuffer=go,T.isDate=WB,T.isElement=UB,T.isEmpty=HB,T.isEqual=GB,T.isEqualWith=qB,T.isError=yp,T.isFinite=VB,T.isFunction=Yr,T.isInteger=yb,T.isLength=Dc,T.isMap=vb,T.isMatch=YB,T.isMatchWith=XB,T.isNaN=KB,T.isNative=JB,T.isNil=QB,T.isNull=ZB,T.isNumber=bb,T.isObject=At,T.isObjectLike=Lt,T.isPlainObject=qa,T.isRegExp=vp,T.isSafeInteger=eL,T.isSet=xb,T.isString=Bc,T.isSymbol=Ln,T.isTypedArray=Li,T.isUndefined=tL,T.isWeakMap=nL,T.isWeakSet=rL,T.join=aD,T.kebabCase=qL,T.last=nr,T.lastIndexOf=sD,T.lowerCase=VL,T.lowerFirst=YL,T.lt=oL,T.lte=iL,T.max=Wj,T.maxBy=Uj,T.mean=Hj,T.meanBy=Gj,T.min=qj,T.minBy=Vj,T.stubArray=Rp,T.stubFalse=Ip,T.stubObject=Aj,T.stubString=Mj,T.stubTrue=$j,T.multiply=Yj,T.nth=lD,T.noConflict=_j,T.noop=Ep,T.now=Ac,T.pad=XL,T.padEnd=KL,T.padStart=JL,T.parseInt=ZL,T.random=zL,T.reduce=dB,T.reduceRight=fB,T.repeat=QL,T.replace=ej,T.result=OL,T.round=Xj,T.runInContext=W,T.sample=hB,T.size=yB,T.snakeCase=tj,T.some=vB,T.sortedIndex=gD,T.sortedIndexBy=mD,T.sortedIndexOf=yD,T.sortedLastIndex=vD,T.sortedLastIndexBy=bD,T.sortedLastIndexOf=xD,T.startCase=rj,T.startsWith=oj,T.subtract=Kj,T.sum=Jj,T.sumBy=Zj,T.template=ij,T.times=Dj,T.toFinite=Xr,T.toInteger=qe,T.toLength=Sb,T.toLower=aj,T.toNumber=rr,T.toSafeInteger=aL,T.toString=mt,T.toUpper=sj,T.trim=lj,T.trimEnd=cj,T.trimStart=uj,T.truncate=dj,T.unescape=fj,T.uniqueId=Lj,T.upperCase=pj,T.upperFirst=wp,T.each=lb,T.eachRight=cb,T.first=ob,_p(T,function(){var r={};return Tr(T,function(i,c){bt.call(T.prototype,c)||(r[c]=i)}),r}(),{chain:!1}),T.VERSION=o,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){T[r].placeholder=T}),Jn(["drop","take"],function(r,i){rt.prototype[r]=function(c){c=c===n?1:Vt(qe(c),0);var f=this.__filtered__&&!i?new rt(this):this.clone();return f.__filtered__?f.__takeCount__=un(c,f.__takeCount__):f.__views__.push({size:un(c,ue),type:r+(f.__dir__<0?"Right":"")}),f},rt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Jn(["filter","map","takeWhile"],function(r,i){var c=i+1,f=c==Q||c==le;rt.prototype[r]=function(x){var A=this.clone();return A.__iteratees__.push({iteratee:Oe(x,3),type:c}),A.__filtered__=A.__filtered__||f,A}}),Jn(["head","last"],function(r,i){var c="take"+(i?"Right":"");rt.prototype[r]=function(){return this[c](1).value()[0]}}),Jn(["initial","tail"],function(r,i){var c="drop"+(i?"":"Right");rt.prototype[r]=function(){return this.__filtered__?new rt(this):this[c](1)}}),rt.prototype.compact=function(){return this.filter(In)},rt.prototype.find=function(r){return this.filter(r).head()},rt.prototype.findLast=function(r){return this.reverse().find(r)},rt.prototype.invokeMap=Ze(function(r,i){return typeof r=="function"?new rt(this):this.map(function(c){return Fa(c,r,i)})}),rt.prototype.reject=function(r){return this.filter($c(Oe(r)))},rt.prototype.slice=function(r,i){r=qe(r);var c=this;return c.__filtered__&&(r>0||i<0)?new rt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),i!==n&&(i=qe(i),c=i<0?c.dropRight(-i):c.take(i-r)),c)},rt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},rt.prototype.toArray=function(){return this.take(ue)},Tr(rt.prototype,function(r,i){var c=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),x=T[f?"take"+(i=="last"?"Right":""):i],A=f||/^find/.test(i);x&&(T.prototype[i]=function(){var L=this.__wrapped__,F=f?[1]:arguments,U=L instanceof rt,te=F[0],ne=U||ze(L),ie=function(tt){var ot=x.apply(T,so([tt],F));return f&&ye?ot[0]:ot};ne&&c&&typeof te=="function"&&te.length!=1&&(U=ne=!1);var ye=this.__chain__,Ie=!!this.__actions__.length,Me=A&&!ye,Je=U&&!Ie;if(!A&&ne){L=Je?L:new rt(this);var $e=r.apply(L,F);return $e.__actions__.push({func:Pc,args:[ie],thisArg:n}),new Qn($e,ye)}return Me&&Je?r.apply(this,F):($e=this.thru(ie),Me?f?$e.value()[0]:$e.value():$e)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(r){var i=nc[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);T.prototype[r]=function(){var x=arguments;if(f&&!this.__chain__){var A=this.value();return i.apply(ze(A)?A:[],x)}return this[c](function(L){return i.apply(ze(L)?L:[],x)})}}),Tr(rt.prototype,function(r,i){var c=T[i];if(c){var f=c.name+"";bt.call(Ai,f)||(Ai[f]=[]),Ai[f].push({name:i,func:c})}}),Ai[Cc(n,C).name]=[{name:"wrapper",func:n}],rt.prototype.clone=fM,rt.prototype.reverse=pM,rt.prototype.value=hM,T.prototype.at=UD,T.prototype.chain=HD,T.prototype.commit=GD,T.prototype.next=qD,T.prototype.plant=YD,T.prototype.reverse=XD,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=KD,T.prototype.first=T.prototype.head,Ma&&(T.prototype[Ma]=VD),T},Ti=GA();$o?(($o.exports=Ti)._=Ti,Cf._=Ti):nn._=Ti}).call(Mr)}(El,El.exports);var vi=El.exports;const mT=nt.div`
|
|
695
|
+
}`;var Je=Ob(function(){return dt(A,Ie+"return "+ie).apply(n,L)});if(Je.source=ie,mp(Je))throw Je;return Je}function ij(r){return mt(r).toLowerCase()}function aj(r){return mt(r).toUpperCase()}function sj(r,i,c){if(r=mt(r),r&&(c||i===n))return Fy(r);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=cr(i),A=zy(f,x),L=Wy(f,x)+1;return ho(f,A,L).join("")}function lj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.slice(0,Hy(r)+1);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=Wy(f,cr(i))+1;return ho(f,0,x).join("")}function cj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.replace(mf,"");if(!r||!(i=Bn(i)))return r;var f=cr(r),x=zy(f,cr(i));return ho(f,x).join("")}function uj(r,i){var c=C,f=G;if(At(i)){var x="separator"in i?i.separator:x;c="length"in i?qe(i.length):c,f="omission"in i?Bn(i.omission):f}r=mt(r);var A=r.length;if(Ii(r)){var L=cr(r);A=L.length}if(c>=A)return r;var F=c-ki(f);if(F<1)return f;var W=L?ho(L,0,F).join(""):r.slice(0,F);if(x===n)return W+f;if(L&&(F+=W.length-F),yp(x)){if(r.slice(F).search(x)){var ne,re=W;for(x.global||(x=Mf(x.source,mt(ly.exec(x))+"g")),x.lastIndex=0;ne=x.exec(re);)var ie=ne.index;W=W.slice(0,ie===n?F:ie)}}else if(r.indexOf(Bn(x),F)!=F){var ye=W.lastIndexOf(x);ye>-1&&(W=W.slice(0,ye))}return W+f}function dj(r){return r=mt(r),r&&Yl.test(r)?r.replace(kr,FA):r}var fj=Di(function(r,i,c){return r+(c?" ":"")+i.toUpperCase()}),xp=Av("toUpperCase");function Pb(r,i,c){return r=mt(r),i=c?n:i,i===n?DA(r)?UA(r):RA(r):r.match(i)||[]}var Ob=Ze(function(r,i){try{return $n(r,n,i)}catch(c){return mp(c)?c:new Fe(c)}}),pj=qr(function(r,i){return Jn(i,function(c){c=Or(c),Hr(r,c,hp(r[c],r))}),r});function hj(r){var i=r==null?0:r.length,c=Oe();return r=i?Pt(r,function(f){if(typeof f[1]!="function")throw new Zn(l);return[c(f[0]),f[1]]}):[],Ze(function(f){for(var x=-1;++x<i;){var A=r[x];if($n(A[0],this,f))return $n(A[1],this,f)}})}function gj(r){return FM(er(r,m))}function wp(r){return function(){return r}}function mj(r,i){return r==null||r!==r?i:r}var yj=$v(),vj=$v(!0);function In(r){return r}function Sp(r){return uv(typeof r=="function"?r:er(r,m))}function bj(r){return fv(er(r,m))}function xj(r,i){return pv(r,er(i,m))}var wj=Ze(function(r,i){return function(c){return Fa(c,r,i)}}),Sj=Ze(function(r,i){return function(c){return Fa(r,c,i)}});function Cp(r,i,c){var f=Jt(i),x=yc(i,f);c==null&&!(At(i)&&(x.length||!f.length))&&(c=i,i=r,r=this,x=yc(i,Jt(i)));var A=!(At(c)&&"chain"in c)||!!c.chain,L=Yr(r);return Jn(x,function(F){var W=i[F];r[F]=W,L&&(r.prototype[F]=function(){var ne=this.__chain__;if(A||ne){var re=r(this.__wrapped__),ie=re.__actions__=_n(this.__actions__);return ie.push({func:W,args:arguments,thisArg:r}),re.__chain__=ne,re}return W.apply(r,so([this.value()],arguments))})}),r}function Cj(){return nn._===this&&(nn._=XA),this}function _p(){}function _j(r){return r=qe(r),Ze(function(i){return hv(i,r)})}var Ej=tp(Pt),Rj=tp(Dy),Ij=tp(Rf);function Ab(r){return lp(r)?If(Or(r)):r$(r)}function kj(r){return function(i){return r==null?n:Fo(r,i)}}var Tj=Bv(),Pj=Bv(!0);function Ep(){return[]}function Rp(){return!1}function Oj(){return{}}function Aj(){return""}function Mj(){return!0}function $j(r,i){if(r=qe(r),r<1||r>he)return[];var c=ue,f=un(r,ue);i=Oe(i),r-=ue;for(var x=Pf(f,i);++c<r;)i(c);return x}function Dj(r){return ze(r)?Pt(r,Or):Ln(r)?[r]:_n(Zv(mt(r)))}function Bj(r){var i=++VA;return mt(r)+i}var Lj=Cc(function(r,i){return r+i},0),jj=np("ceil"),Nj=Cc(function(r,i){return r/i},1),Fj=np("floor");function zj(r){return r&&r.length?mc(r,In,zf):n}function Wj(r,i){return r&&r.length?mc(r,Oe(i,2),zf):n}function Uj(r){return jy(r,In)}function Hj(r,i){return jy(r,Oe(i,2))}function Gj(r){return r&&r.length?mc(r,In,Gf):n}function qj(r,i){return r&&r.length?mc(r,Oe(i,2),Gf):n}var Vj=Cc(function(r,i){return r*i},1),Yj=np("round"),Xj=Cc(function(r,i){return r-i},0);function Kj(r){return r&&r.length?Tf(r,In):0}function Jj(r,i){return r&&r.length?Tf(r,Oe(i,2)):0}return T.after=bB,T.ary=cb,T.assign=aL,T.assignIn=Cb,T.assignInWith=Bc,T.assignWith=sL,T.at=lL,T.before=ub,T.bind=hp,T.bindAll=pj,T.bindKey=db,T.castArray=OB,T.chain=ab,T.chunk=F$,T.compact=z$,T.concat=W$,T.cond=hj,T.conforms=gj,T.constant=wp,T.countBy=KD,T.create=cL,T.curry=fb,T.curryRight=pb,T.debounce=hb,T.defaults=uL,T.defaultsDeep=dL,T.defer=xB,T.delay=wB,T.difference=U$,T.differenceBy=H$,T.differenceWith=G$,T.drop=q$,T.dropRight=V$,T.dropRightWhile=Y$,T.dropWhile=X$,T.fill=K$,T.filter=ZD,T.flatMap=tB,T.flatMapDeep=nB,T.flatMapDepth=rB,T.flatten=nb,T.flattenDeep=J$,T.flattenDepth=Z$,T.flip=SB,T.flow=yj,T.flowRight=vj,T.fromPairs=Q$,T.functions=vL,T.functionsIn=bL,T.groupBy=oB,T.initial=tD,T.intersection=nD,T.intersectionBy=rD,T.intersectionWith=oD,T.invert=wL,T.invertBy=SL,T.invokeMap=aB,T.iteratee=Sp,T.keyBy=sB,T.keys=Jt,T.keysIn=Rn,T.map=Pc,T.mapKeys=_L,T.mapValues=EL,T.matches=bj,T.matchesProperty=xj,T.memoize=Ac,T.merge=RL,T.mergeWith=_b,T.method=wj,T.methodOf=Sj,T.mixin=Cp,T.negate=Mc,T.nthArg=_j,T.omit=IL,T.omitBy=kL,T.once=CB,T.orderBy=lB,T.over=Ej,T.overArgs=_B,T.overEvery=Rj,T.overSome=Ij,T.partial=gp,T.partialRight=gb,T.partition=cB,T.pick=TL,T.pickBy=Eb,T.property=Ab,T.propertyOf=kj,T.pull=lD,T.pullAll=ob,T.pullAllBy=cD,T.pullAllWith=uD,T.pullAt=dD,T.range=Tj,T.rangeRight=Pj,T.rearg=EB,T.reject=fB,T.remove=fD,T.rest=RB,T.reverse=fp,T.sampleSize=hB,T.set=OL,T.setWith=AL,T.shuffle=gB,T.slice=pD,T.sortBy=vB,T.sortedUniq=xD,T.sortedUniqBy=wD,T.split=tj,T.spread=IB,T.tail=SD,T.take=CD,T.takeRight=_D,T.takeRightWhile=ED,T.takeWhile=RD,T.tap=zD,T.throttle=kB,T.thru=Tc,T.toArray=xb,T.toPairs=Rb,T.toPairsIn=Ib,T.toPath=Dj,T.toPlainObject=Sb,T.transform=ML,T.unary=TB,T.union=ID,T.unionBy=kD,T.unionWith=TD,T.uniq=PD,T.uniqBy=OD,T.uniqWith=AD,T.unset=$L,T.unzip=pp,T.unzipWith=ib,T.update=DL,T.updateWith=BL,T.values=ji,T.valuesIn=LL,T.without=MD,T.words=Pb,T.wrap=PB,T.xor=$D,T.xorBy=DD,T.xorWith=BD,T.zip=LD,T.zipObject=jD,T.zipObjectDeep=ND,T.zipWith=FD,T.entries=Rb,T.entriesIn=Ib,T.extend=Cb,T.extendWith=Bc,Cp(T,T),T.add=Lj,T.attempt=Ob,T.camelCase=zL,T.capitalize=kb,T.ceil=jj,T.clamp=jL,T.clone=AB,T.cloneDeep=$B,T.cloneDeepWith=DB,T.cloneWith=MB,T.conformsTo=BB,T.deburr=Tb,T.defaultTo=mj,T.divide=Nj,T.endsWith=WL,T.eq=dr,T.escape=UL,T.escapeRegExp=HL,T.every=JD,T.find=QD,T.findIndex=eb,T.findKey=fL,T.findLast=eB,T.findLastIndex=tb,T.findLastKey=pL,T.floor=Fj,T.forEach=sb,T.forEachRight=lb,T.forIn=hL,T.forInRight=gL,T.forOwn=mL,T.forOwnRight=yL,T.get=vp,T.gt=LB,T.gte=jB,T.has=xL,T.hasIn=bp,T.head=rb,T.identity=In,T.includes=iB,T.indexOf=eD,T.inRange=NL,T.invoke=CL,T.isArguments=Uo,T.isArray=ze,T.isArrayBuffer=NB,T.isArrayLike=En,T.isArrayLikeObject=Nt,T.isBoolean=FB,T.isBuffer=go,T.isDate=zB,T.isElement=WB,T.isEmpty=UB,T.isEqual=HB,T.isEqualWith=GB,T.isError=mp,T.isFinite=qB,T.isFunction=Yr,T.isInteger=mb,T.isLength=$c,T.isMap=yb,T.isMatch=VB,T.isMatchWith=YB,T.isNaN=XB,T.isNative=KB,T.isNil=ZB,T.isNull=JB,T.isNumber=vb,T.isObject=At,T.isObjectLike=Lt,T.isPlainObject=qa,T.isRegExp=yp,T.isSafeInteger=QB,T.isSet=bb,T.isString=Dc,T.isSymbol=Ln,T.isTypedArray=Li,T.isUndefined=eL,T.isWeakMap=tL,T.isWeakSet=nL,T.join=iD,T.kebabCase=GL,T.last=nr,T.lastIndexOf=aD,T.lowerCase=qL,T.lowerFirst=VL,T.lt=rL,T.lte=oL,T.max=zj,T.maxBy=Wj,T.mean=Uj,T.meanBy=Hj,T.min=Gj,T.minBy=qj,T.stubArray=Ep,T.stubFalse=Rp,T.stubObject=Oj,T.stubString=Aj,T.stubTrue=Mj,T.multiply=Vj,T.nth=sD,T.noConflict=Cj,T.noop=_p,T.now=Oc,T.pad=YL,T.padEnd=XL,T.padStart=KL,T.parseInt=JL,T.random=FL,T.reduce=uB,T.reduceRight=dB,T.repeat=ZL,T.replace=QL,T.result=PL,T.round=Yj,T.runInContext=z,T.sample=pB,T.size=mB,T.snakeCase=ej,T.some=yB,T.sortedIndex=hD,T.sortedIndexBy=gD,T.sortedIndexOf=mD,T.sortedLastIndex=yD,T.sortedLastIndexBy=vD,T.sortedLastIndexOf=bD,T.startCase=nj,T.startsWith=rj,T.subtract=Xj,T.sum=Kj,T.sumBy=Jj,T.template=oj,T.times=$j,T.toFinite=Xr,T.toInteger=qe,T.toLength=wb,T.toLower=ij,T.toNumber=rr,T.toSafeInteger=iL,T.toString=mt,T.toUpper=aj,T.trim=sj,T.trimEnd=lj,T.trimStart=cj,T.truncate=uj,T.unescape=dj,T.uniqueId=Bj,T.upperCase=fj,T.upperFirst=xp,T.each=sb,T.eachRight=lb,T.first=rb,Cp(T,function(){var r={};return Tr(T,function(i,c){bt.call(T.prototype,c)||(r[c]=i)}),r}(),{chain:!1}),T.VERSION=o,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){T[r].placeholder=T}),Jn(["drop","take"],function(r,i){rt.prototype[r]=function(c){c=c===n?1:Vt(qe(c),0);var f=this.__filtered__&&!i?new rt(this):this.clone();return f.__filtered__?f.__takeCount__=un(c,f.__takeCount__):f.__views__.push({size:un(c,ue),type:r+(f.__dir__<0?"Right":"")}),f},rt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Jn(["filter","map","takeWhile"],function(r,i){var c=i+1,f=c==K||c==se;rt.prototype[r]=function(x){var A=this.clone();return A.__iteratees__.push({iteratee:Oe(x,3),type:c}),A.__filtered__=A.__filtered__||f,A}}),Jn(["head","last"],function(r,i){var c="take"+(i?"Right":"");rt.prototype[r]=function(){return this[c](1).value()[0]}}),Jn(["initial","tail"],function(r,i){var c="drop"+(i?"":"Right");rt.prototype[r]=function(){return this.__filtered__?new rt(this):this[c](1)}}),rt.prototype.compact=function(){return this.filter(In)},rt.prototype.find=function(r){return this.filter(r).head()},rt.prototype.findLast=function(r){return this.reverse().find(r)},rt.prototype.invokeMap=Ze(function(r,i){return typeof r=="function"?new rt(this):this.map(function(c){return Fa(c,r,i)})}),rt.prototype.reject=function(r){return this.filter(Mc(Oe(r)))},rt.prototype.slice=function(r,i){r=qe(r);var c=this;return c.__filtered__&&(r>0||i<0)?new rt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),i!==n&&(i=qe(i),c=i<0?c.dropRight(-i):c.take(i-r)),c)},rt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},rt.prototype.toArray=function(){return this.take(ue)},Tr(rt.prototype,function(r,i){var c=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),x=T[f?"take"+(i=="last"?"Right":""):i],A=f||/^find/.test(i);x&&(T.prototype[i]=function(){var L=this.__wrapped__,F=f?[1]:arguments,W=L instanceof rt,ne=F[0],re=W||ze(L),ie=function(nt){var ot=x.apply(T,so([nt],F));return f&&ye?ot[0]:ot};re&&c&&typeof ne=="function"&&ne.length!=1&&(W=re=!1);var ye=this.__chain__,Ie=!!this.__actions__.length,Me=A&&!ye,Je=W&&!Ie;if(!A&&re){L=Je?L:new rt(this);var $e=r.apply(L,F);return $e.__actions__.push({func:Tc,args:[ie],thisArg:n}),new Qn($e,ye)}return Me&&Je?r.apply(this,F):($e=this.thru(ie),Me?f?$e.value()[0]:$e.value():$e)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(r){var i=tc[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);T.prototype[r]=function(){var x=arguments;if(f&&!this.__chain__){var A=this.value();return i.apply(ze(A)?A:[],x)}return this[c](function(L){return i.apply(ze(L)?L:[],x)})}}),Tr(rt.prototype,function(r,i){var c=T[i];if(c){var f=c.name+"";bt.call(Ai,f)||(Ai[f]=[]),Ai[f].push({name:i,func:c})}}),Ai[Sc(n,S).name]=[{name:"wrapper",func:n}],rt.prototype.clone=dM,rt.prototype.reverse=fM,rt.prototype.value=pM,T.prototype.at=WD,T.prototype.chain=UD,T.prototype.commit=HD,T.prototype.next=GD,T.prototype.plant=VD,T.prototype.reverse=YD,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=XD,T.prototype.first=T.prototype.head,Ma&&(T.prototype[Ma]=qD),T},Ti=HA();Do?((Do.exports=Ti)._=Ti,Sf._=Ti):nn._=Ti}).call(Mr)}(El,El.exports);var Ro=El.exports;const gT=et.div`
|
|
696
696
|
.component-library .list-item {
|
|
697
697
|
display: flex;
|
|
698
698
|
justify-content: center;
|
|
@@ -701,7 +701,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
701
701
|
background-color: gray;
|
|
702
702
|
margin: 3px;
|
|
703
703
|
}
|
|
704
|
-
`,
|
|
704
|
+
`,o0=e=>e?e.map(t=>v.jsx("div",{className:"list-item",children:v.jsx(r0,{id:`${t.class}-${xa()}`,type:"ProjectComponent",initialSize:Ro.pick(t.layout,["w","h"]),metadata:{name:t.class},node:v.jsx("div",{children:t.class})})},t.class)):[],mT=e=>{const[t,n]=Y.useState(o0(e.componentLibrary));return Y.useEffect(()=>{n(o0(e.componentLibrary))},[e.componentLibrary]),v.jsx(gT,{children:v.jsx("div",{className:"component-library",children:v.jsx("ul",{children:t})})})},yT=et.div`
|
|
705
705
|
.visuals .list-item {
|
|
706
706
|
display: flex;
|
|
707
707
|
justify-content: center;
|
|
@@ -710,7 +710,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
710
710
|
background-color: lavender;
|
|
711
711
|
margin: 3px;
|
|
712
712
|
}
|
|
713
|
-
`,
|
|
713
|
+
`,i0=e=>e?e.map(t=>v.jsx("div",{className:"list-item",children:v.jsx(r0,{id:t.id,type:"ProjectChart",initialSize:{w:2,h:2},metadata:t,node:v.jsx("div",{children:t.name})})},t.id)):[],vT=e=>{const[t,n]=Y.useState(i0(e.visualLibrary));return Y.useEffect(()=>{n(i0(e.visualLibrary))},[e.visualLibrary]),v.jsx(yT,{children:v.jsx("div",{className:"visuals",children:v.jsx("ul",{children:t})})})},bT=e=>{const[t,n]=Y.useState("lib"),{gwAPIHandler:o}=wn(),[a,s]=Y.useState(e.componentLibrary),[l,u]=Y.useState([]);return Y.useEffect(()=>{s(e.componentLibrary)},[e.componentLibrary]),Y.useEffect(()=>{(async()=>{const h=await o.getVisuals(1,100,"private","","modified","DESC","","GRAPH");if(h.status!==200)throw new Error("Failed to load visuals.");return(await h.json()).content})().then(h=>{u(h)})},[]),v.jsxs(v.Fragment,{children:[v.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:v.jsx(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:v.jsx(Dt,{sx:{flex:3,padding:"2px"},children:v.jsxs(Mu,{fullWidth:!0,children:[v.jsx(Au,{id:"template-select-label",children:"Type"}),v.jsxs(rl,{labelId:"template-select-label",id:"template-select",label:"Template",value:t,onChange:d=>n(d.target.value),fullWidth:!0,size:"small",children:[v.jsx(Zu,{value:"lib",children:"library"}),v.jsx(Zu,{value:"vis",children:"visual"})]})]})})})}),v.jsx(da,{}),t==="lib"&&v.jsx(mT,{componentLibrary:a}),t==="vis"&&v.jsx(vT,{visualLibrary:l})]})};var a0=(e=>(e.USER="user",e.ASSISTANT="assistant",e))(a0||{}),sr=(e=>(e.READY_TO_RECEIVE="ready_to_receive",e.GENERATION_STARTED="generation_started",e.GENERATION_ENDED="generation_ended",e.GENERATION_CANCELED="generation_cancelled",e.GENERATION_FAILED="generation_failed",e))(sr||{});const xT=e=>Object.values(a0).includes(e),wT=et.div`
|
|
714
714
|
display: flex;
|
|
715
715
|
flex-direction: column;
|
|
716
716
|
.message {
|
|
@@ -737,7 +737,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
737
737
|
background-color: gray;
|
|
738
738
|
color: white;
|
|
739
739
|
}
|
|
740
|
-
`,
|
|
740
|
+
`,ST=({message:e})=>{let t=null;if(xT(e.role)&&(t=e.role),t===null)return null;const n=`message ${t}-message`;return v.jsx(wT,{children:v.jsx("div",{className:n,children:e.content},e.id)})},CT=et.div`
|
|
741
741
|
margin-bottom: 10px;
|
|
742
742
|
padding: 5px 10px;
|
|
743
743
|
border-radius: 5px;
|
|
@@ -793,7 +793,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
793
793
|
opacity: 0;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
|
-
`,
|
|
796
|
+
`,_T=()=>v.jsx(CT,{}),ET=et.div`
|
|
797
797
|
.chat-container {
|
|
798
798
|
display: flex;
|
|
799
799
|
flex-direction: column;
|
|
@@ -910,9 +910,65 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
910
910
|
background-color: #f0f0f0 !important;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
`,IT=e=>e.map(t=>t.type==="LOADING_SIGNAL"?v.jsx(ET,{},t.type):v.jsx(CT,{message:t},t.id)).filter(Boolean).reverse(),Ed=5,kT=()=>{const[e,t]=X.useState(0),[n,o]=X.useState([]),[a,s]=X.useState(!1),[l,u]=X.useState(!1),[d,h]=X.useState(""),y=X.useRef(""),[m,b]=X.useState(),w=X.useRef(),{config:S,setSyncToken:E,startChatbot:P,projectMetadata:C,chatbotWebsocket:O,selectedComponentId:k,chatbotWebsocketConnected:R}=wn(),$=X.useMemo(()=>!C.projectName,[C.projectName]),B=()=>({type:"LOADING_SIGNAL"}),M=we=>we.filter(ue=>ue.type!=="LOADING_SIGNAL"),z=async()=>{w.current&&w.current.abort(),w.current=new AbortController;const we=w.current.signal;try{u(!0),await Ja(C.projectName,C.projectURL,S.CORS_PROXY),u(!1);const ue=`${window.miDir}/${C.projectName}/chat.json`,Ce=await window.pfs.readFile(ue,"utf8"),De=JSON.parse(Ce);we.aborted||o(De)}catch(ue){console.log("error when fetching chat history",ue)}},V=()=>{e>Ed||(console.log("Attempting to connect to a new WebSocket..."),P(C.projectName,{onopen:Q,onclose:ee,onerror:le,onmessage:pe}))},_=()=>{O&&R===!0&&O.close()},G=async()=>{if(m===sr.GENERATION_FAILED||m===sr.GENERATION_STARTED)return;const we=k;if(!we){alert("Please select a component");return}const ue={type:"chat",content:{role:"user",source:"web_client",content:d.trim(),context:null,metadata:{component_id:we}}};O.send(JSON.stringify(ue)),o(Ce=>[...Ce,{role:"user",content:d,id:xa()},B()]),y.current=d,h("")},re=we=>{h(ue=>{const Ce=ue.trim();return Ce?`${Ce} ${we}`:we})},H=we=>{he===!1&&we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),G())},Q=()=>{console.log("websocket connection is initiated")},ee=we=>{[1001,1002,1003,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015].indexOf(we.code)>-1&&(console.log(`WebSocket closed: ${we.code} - ${we.reason}`),t(Ce=>(Ce+1<=Ed&&alert(`websocket was closed. Attempting to reconnecting: ${Ce+1}/${Ed}`),Ce+1)),V())},le=we=>{console.log("there was an error with the websocket",we)},pe=we=>{const ue=JSON.parse(we.data);if(ue.type)switch(ue.type){case"chat":{o(Ce=>[...M(Ce),ue.content]);break}case"signal":switch(ue.content&&ue.content.type?b(ue.content.type):console.warn("Signal type is undefined",ue.content),ue.content.type){case sr.READY_TO_RECEIVE:break;case sr.GENERATION_STARTED:o(Ce=>[...M(Ce),B()]);break;case sr.GENERATION_ENDED:{o(Ce=>[...M(Ce)]),E();break}case sr.GENERATION_CANCELED:break;case sr.GENERATION_FAILED:{_(),setTimeout(()=>{o([]),setTimeout(()=>{z().then(()=>{V(),h(y.current),y.current=""})},1e3)},2e3);break}}break;case"error":console.log("error came from websocket");break}};X.useEffect(()=>{if(C.projectName&&C.projectURL)return _(),z().then(()=>V()),()=>{w.current&&w.current.abort(),_()}},[C.projectName]);const he=!O||m===sr.GENERATION_STARTED||m===sr.GENERATION_FAILED,be=m===sr.GENERATION_FAILED;return v.jsxs(v.Fragment,{children:[v.jsx(ba,{isVisible:l}),v.jsx(RT,{children:v.jsxs("div",{className:"chat-container",children:[v.jsxs("div",{className:"chat-messages",children:[!O&&v.jsx("div",{className:"chat-connecting-toast",children:"Establishing Connection"}),be&&v.jsx("div",{className:"chat-error-toast",children:"Restoring Chat as Generation Failed"}),IT(n)]}),v.jsxs("div",{className:"chat-input",children:[v.jsx("input",{type:"text",placeholder:"Type your message...",value:d,onChange:we=>h(we.target.value),onKeyDown:H,disabled:he}),v.jsx("button",{className:"gallery-button",onClick:()=>s(!0),disabled:$,children:"Images"}),v.jsx("button",{onClick:G,disabled:he,children:"Send"})]})]})}),C.projectName&&v.jsx(r0,{isOpen:a,onClose:()=>s(!1),onImageSelect:re,projectName:C.projectName})]})},Rl=BS(eI)({fontSize:"12px",padding:"2px"}),Il=e=>v.jsx(v.Fragment,{children:v.jsx("div",{role:"tabpanel",hidden:e.activeIndex!=e.panelIndex,children:e.children})}),TT=e=>{const[t,n]=X.useState(0),o=(a,s)=>{n(s)};return v.jsxs(v.Fragment,{children:[v.jsx(Dt,{sx:{width:"100%",position:"sticky",top:0,zIndex:1e3,backgroundColor:"LightGray"},children:v.jsx(Dt,{sx:{borderBottom:3,borderColor:"divider"},children:v.jsxs(bI,{value:t,onChange:o,children:[v.jsx(Rl,{label:"Components"}),v.jsx(Rl,{label:"Chatbot"}),v.jsx(Rl,{label:"Projects"}),v.jsx(Rl,{label:"Manage"})]})})}),v.jsx(Il,{panelIndex:0,activeIndex:t,children:v.jsx(xT,{componentLibrary:e.componentLibrary})}),v.jsx(Il,{panelIndex:1,activeIndex:t,children:v.jsx(kT,{})}),v.jsx(Il,{panelIndex:2,activeIndex:t,children:v.jsx(gT,{})}),v.jsx(Il,{panelIndex:3,activeIndex:t,children:v.jsx($k,{})})]})},PT=e=>v.jsx(v.Fragment,{children:v.jsx(TT,{componentLibrary:e.componentLibrary})}),OT=pn(v.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),AT=pn(v.jsx("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2m0 8h2v-2H3zm4 8h2v-2H7zM3 9h2V7H3zm10-6h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zM9 3H7v2h2zm2 18h2v-2h-2zm8-8h2v-2h-2zm0 8c1.1 0 2-.9 2-2h-2zm0-12h2V7h-2zm0 8h2v-2h-2zm-4 4h2v-2h-2zm0-16h2V3h-2zM7 17h10V7H7zm2-8h6v6H9z"}),"SelectAll"),MT=pn(v.jsx("path",{d:"M3 13h2v-2H3zm4 8h2v-2H7zm6-18h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zm8 4h2v-2h-2zm8-8h2v-2h-2zm0-4h2V7h-2zm-4-4h2V3h-2zM7.83 5 7 4.17V3h2v2zm12 12-.83-.83V15h2v2zm1.36 4.19L2.81 2.81 1.39 4.22 4.17 7H3v2h2V7.83l2 2V17h7.17l2 2H15v2h2v-1.17l2.78 2.78zM9 15v-3.17L12.17 15zm6-2.83V9h-3.17l-2-2H17v7.17z"}),"Deselect");var l0={exports:{}},_a={},Rd={exports:{}};(function(e,t){(function(n,o){o(t)})(Mr,function(n){function o(se){return function(ge,me,fe,Pe,ve,Be,Ge){return se(ge,me,Ge)}}function a(se){return function(ge,me,fe,Pe){if(!ge||!me||typeof ge!="object"||typeof me!="object")return se(ge,me,fe,Pe);var ve=Pe.get(ge),Be=Pe.get(me);if(ve&&Be)return ve===me&&Be===ge;Pe.set(ge,me),Pe.set(me,ge);var Ge=se(ge,me,fe,Pe);return Pe.delete(ge),Pe.delete(me),Ge}}function s(se,de){var ge={};for(var me in se)ge[me]=se[me];for(var me in de)ge[me]=de[me];return ge}function l(se){return se.constructor===Object||se.constructor==null}function u(se){return typeof se.then=="function"}function d(se,de){return se===de||se!==se&&de!==de}var h="[object Arguments]",y="[object Boolean]",m="[object Date]",b="[object RegExp]",w="[object Map]",S="[object Number]",E="[object Object]",P="[object Set]",C="[object String]",O=Object.prototype.toString;function k(se){var de=se.areArraysEqual,ge=se.areDatesEqual,me=se.areMapsEqual,fe=se.areObjectsEqual,Pe=se.areRegExpsEqual,ve=se.areSetsEqual,Be=se.createIsNestedEqual,Ge=Be(Ae);function Ae(ke,We,et){if(ke===We)return!0;if(!ke||!We||typeof ke!="object"||typeof We!="object")return ke!==ke&&We!==We;if(l(ke)&&l(We))return fe(ke,We,Ge,et);var Le=Array.isArray(ke),xe=Array.isArray(We);if(Le||xe)return Le===xe&&de(ke,We,Ge,et);var ut=O.call(ke);return ut!==O.call(We)?!1:ut===m?ge(ke,We,Ge,et):ut===b?Pe(ke,We,Ge,et):ut===w?me(ke,We,Ge,et):ut===P?ve(ke,We,Ge,et):ut===E||ut===h?u(ke)||u(We)?!1:fe(ke,We,Ge,et):ut===y||ut===S||ut===C?d(ke.valueOf(),We.valueOf()):!1}return Ae}function R(se,de,ge,me){var fe=se.length;if(de.length!==fe)return!1;for(;fe-- >0;)if(!ge(se[fe],de[fe],fe,fe,se,de,me))return!1;return!0}var $=a(R);function B(se,de){return d(se.valueOf(),de.valueOf())}function M(se,de,ge,me){var fe=se.size===de.size;if(!fe)return!1;if(!se.size)return!0;var Pe={},ve=0;return se.forEach(function(Be,Ge){if(fe){var Ae=!1,ke=0;de.forEach(function(We,et){!Ae&&!Pe[ke]&&(Ae=ge(Ge,et,ve,ke,se,de,me)&&ge(Be,We,Ge,et,se,de,me))&&(Pe[ke]=!0),ke++}),ve++,fe=Ae}}),fe}var z=a(M),V="_owner",_=Object.prototype.hasOwnProperty;function G(se,de,ge,me){var fe=Object.keys(se),Pe=fe.length;if(Object.keys(de).length!==Pe)return!1;for(var ve;Pe-- >0;){if(ve=fe[Pe],ve===V){var Be=!!se.$$typeof,Ge=!!de.$$typeof;if((Be||Ge)&&Be!==Ge)return!1}if(!_.call(de,ve)||!ge(se[ve],de[ve],ve,ve,se,de,me))return!1}return!0}var re=a(G);function H(se,de){return se.source===de.source&&se.flags===de.flags}function Q(se,de,ge,me){var fe=se.size===de.size;if(!fe)return!1;if(!se.size)return!0;var Pe={};return se.forEach(function(ve,Be){if(fe){var Ge=!1,Ae=0;de.forEach(function(ke,We){!Ge&&!Pe[Ae]&&(Ge=ge(ve,ke,Be,We,se,de,me))&&(Pe[Ae]=!0),Ae++}),fe=Ge}}),fe}var ee=a(Q),le=Object.freeze({areArraysEqual:R,areDatesEqual:B,areMapsEqual:M,areObjectsEqual:G,areRegExpsEqual:H,areSetsEqual:Q,createIsNestedEqual:o}),pe=Object.freeze({areArraysEqual:$,areDatesEqual:B,areMapsEqual:z,areObjectsEqual:re,areRegExpsEqual:H,areSetsEqual:ee,createIsNestedEqual:o}),he=k(le);function be(se,de){return he(se,de,void 0)}var we=k(s(le,{createIsNestedEqual:function(){return d}}));function ue(se,de){return we(se,de,void 0)}var Ce=k(pe);function De(se,de){return Ce(se,de,new WeakMap)}var Xe=k(s(pe,{createIsNestedEqual:function(){return d}}));function Ke(se,de){return Xe(se,de,new WeakMap)}function He(se){return k(s(le,se(le)))}function gt(se){var de=k(s(pe,se(pe)));return function(ge,me,fe){return fe===void 0&&(fe=new WeakMap),de(ge,me,fe)}}n.circularDeepEqual=De,n.circularShallowEqual=Ke,n.createCustomCircularEqual=gt,n.createCustomEqual=He,n.deepEqual=be,n.sameValueZeroEqual=d,n.shallowEqual=ue,Object.defineProperty(n,"__esModule",{value:!0})})})(Rd,Rd.exports);var Id=Rd.exports;const kd=Va(RS);var Qe={},$T=function(t,n,o){return t===n?!0:t.className===n.className&&o(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&o(t.verticalCompact,n.verticalCompact)&&o(t.compactType,n.compactType)&&o(t.layout,n.layout)&&o(t.margin,n.margin)&&o(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&o(t.resizeHandles,n.resizeHandles)&&o(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&o(t.droppingItem,n.droppingItem)&&o(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=Td,Qe.childrenEqual=LT,Qe.cloneLayout=u0,Qe.cloneLayoutItem=Ro,Qe.collides=kl,Qe.compact=f0,Qe.compactItem=p0,Qe.compactType=VT,Qe.correctBounds=h0,Qe.fastPositionEqual=jT,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=g0,Qe.getFirstCollision=Io,Qe.getLayoutItem=Od,Qe.getStatics=Ad,Qe.modifyLayout=d0,Qe.moveElement=Ra,Qe.moveElementAwayFromCollision=Md,Qe.noop=void 0,Qe.perc=FT,Qe.resizeItemInDirection=WT,Qe.setTopLeft=HT,Qe.setTransform=UT,Qe.sortLayoutItems=Nd,Qe.sortLayoutItemsByColRow=x0,Qe.sortLayoutItemsByRowCol=b0,Qe.synchronizeLayoutWithChildren=GT,Qe.validateLayout=qT,Qe.withLayoutItem=BT;var c0=Id,Ea=DT(X);function DT(e){return e&&e.__esModule?e:{default:e}}function Td(e){let t=0,n;for(let o=0,a=e.length;o<a;o++)n=e[o].y+e[o].h,n>t&&(t=n);return t}function u0(e){const t=Array(e.length);for(let n=0,o=e.length;n<o;n++)t[n]=Ro(e[n]);return t}function d0(e,t){const n=Array(e.length);for(let o=0,a=e.length;o<a;o++)t.i===e[o].i?n[o]=t:n[o]=e[o];return n}function BT(e,t,n){let o=Od(e,t);return o?(o=n(Ro(o)),e=d0(e,o),[e,o]):[e,null]}function Ro(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function LT(e,t){return(0,c0.deepEqual)(Ea.default.Children.map(e,n=>n==null?void 0:n.key),Ea.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,c0.deepEqual)(Ea.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Ea.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=$T;function jT(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function kl(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function f0(e,t,n,o){const a=Ad(e),s=Nd(e,t),l=Array(e.length);for(let u=0,d=s.length;u<d;u++){let h=Ro(s[u]);h.static||(h=p0(a,h,t,n,s,o),a.push(h)),l[e.indexOf(s[u])]=h,h.moved=!1}return l}const NT={x:"w",y:"h"};function Pd(e,t,n,o){const a=NT[o];t[o]+=1;const s=e.map(l=>l.i).indexOf(t.i);for(let l=s+1;l<e.length;l++){const u=e[l];if(!u.static){if(u.y>t.y+t.h)break;kl(t,u)&&Pd(e,u,n+t[a],o)}}t[o]=n}function p0(e,t,n,o,a,s){const l=n==="vertical",u=n==="horizontal";if(l)for(t.y=Math.min(Td(e),t.y);t.y>0&&!Io(e,t);)t.y--;else if(u)for(;t.x>0&&!Io(e,t);)t.x--;let d;for(;(d=Io(e,t))&&!(n===null&&s);)if(u?Pd(a,t,d.x+d.w,"x"):Pd(a,t,d.y+d.h,"y"),u&&t.x+t.w>o)for(t.x=o-t.w,t.y++;t.x>0&&!Io(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function h0(e,t){const n=Ad(e);for(let o=0,a=e.length;o<a;o++){const s=e[o];if(s.x+s.w>t.cols&&(s.x=t.cols-s.w),s.x<0&&(s.x=0,s.w=t.cols),!s.static)n.push(s);else for(;Io(n,s);)s.y++}return e}function Od(e,t){for(let n=0,o=e.length;n<o;n++)if(e[n].i===t)return e[n]}function Io(e,t){for(let n=0,o=e.length;n<o;n++)if(kl(e[n],t))return e[n]}function g0(e,t){return e.filter(n=>kl(n,t))}function Ad(e){return e.filter(t=>t.static)}function Ra(e,t,n,o,a,s,l,u,d){if(t.static&&t.isDraggable!==!0||t.y===o&&t.x===n)return e;`${t.i}${String(n)}${String(o)}${t.x}${t.y}`;const h=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof o=="number"&&(t.y=o),t.moved=!0;let m=Nd(e,l);(l==="vertical"&&typeof o=="number"?y>=o:l==="horizontal"&&typeof n=="number"?h>=n:!1)&&(m=m.reverse());const w=g0(m,t),S=w.length>0;if(S&&d)return u0(e);if(S&&s)return`${t.i}`,t.x=h,t.y=y,t.moved=!1,e;for(let E=0,P=w.length;E<P;E++){const C=w[E];`${t.i}${t.x}${t.y}${C.i}${C.x}${C.y}`,!C.moved&&(C.static?e=Md(e,C,t,a,l):e=Md(e,t,C,a,l))}return e}function Md(e,t,n,o,a,s){const l=a==="horizontal",u=a==="vertical",d=t.static;if(o){o=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:u?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},b=Io(e,m),w=b&&b.y+b.h>t.y,S=b&&t.x+t.w>b.x;if(b){if(w&&u)return Ra(e,n,void 0,t.y+1,o,d,a);if(w&&a==null)return t.y=n.y,n.y=n.y+n.h,e;if(S&&l)return Ra(e,t,n.x,void 0,o,d,a)}else return`${n.i}${m.x}${m.y}`,Ra(e,n,l?m.x:void 0,u?m.y:void 0,o,d,a)}const h=l?n.x+1:void 0,y=u?n.y+1:void 0;return h==null&&y==null?e:Ra(e,n,l?n.x+1:void 0,u?n.y+1:void 0,o,d,a)}function FT(e){return e*100+"%"}const m0=(e,t,n,o)=>e+n>o?t:n,y0=(e,t,n)=>e<0?t:n,v0=e=>Math.max(0,e),$d=e=>Math.max(0,e),Dd=(e,t,n)=>{let{left:o,height:a,width:s}=t;const l=e.top-(a-e.height);return{left:o,width:s,height:y0(l,e.height,a),top:$d(l)}},Bd=(e,t,n)=>{let{top:o,left:a,height:s,width:l}=t;return{top:o,height:s,width:m0(e.left,e.width,l,n),left:v0(a)}},Ld=(e,t,n)=>{let{top:o,height:a,width:s}=t;const l=e.left-(s-e.width);return{height:a,width:l<0?e.width:m0(e.left,e.width,s,n),top:$d(o),left:v0(l)}},jd=(e,t,n)=>{let{top:o,left:a,height:s,width:l}=t;return{width:l,left:a,height:y0(o,e.height,s),top:$d(o)}},zT={n:Dd,ne:function(){return Dd(arguments.length<=0?void 0:arguments[0],Bd(...arguments))},e:Bd,se:function(){return jd(arguments.length<=0?void 0:arguments[0],Bd(...arguments))},s:jd,sw:function(){return jd(arguments.length<=0?void 0:arguments[0],Ld(...arguments))},w:Ld,nw:function(){return Dd(arguments.length<=0?void 0:arguments[0],Ld(...arguments))}};function WT(e,t,n,o){const a=zT[e];return a?a(t,{...t,...n},o):n}function UT(e){let{top:t,left:n,width:o,height:a}=e;const s=`translate(${n}px,${t}px)`;return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:`${o}px`,height:`${a}px`,position:"absolute"}}function HT(e){let{top:t,left:n,width:o,height:a}=e;return{top:`${t}px`,left:`${n}px`,width:`${o}px`,height:`${a}px`,position:"absolute"}}function Nd(e,t){return t==="horizontal"?x0(e):t==="vertical"?b0(e):e}function b0(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function x0(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function GT(e,t,n,o,a){e=e||[];const s=[];Ea.default.Children.forEach(t,u=>{if((u==null?void 0:u.key)==null)return;const d=Od(e,String(u.key)),h=u.props["data-grid"];d&&h==null?s.push(Ro(d)):h?s.push(Ro({...h,i:u.key})):s.push(Ro({w:1,h:1,x:0,y:Td(s),i:String(u.key)}))});const l=h0(s,{cols:n});return a?l:f0(l,o,n)}function qT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let o=0,a=e.length;o<a;o++){const s=e[o];for(let l=0;l<n.length;l++){const u=n[l],d=s[u];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${o}].${u} must be a number! Received: ${d} (${typeof d})`)}if(typeof s.i<"u"&&typeof s.i!="string")throw new Error(`ReactGridLayout: ${t}[${o}].i must be a string! Received: ${s.i} (${typeof s.i})`)}}function VT(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function l5(){}const YT=()=>{};Qe.noop=YT;var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.calcGridColWidth=Tl,_r.calcGridItemPosition=XT,_r.calcGridItemWHPx=Fd,_r.calcWH=JT,_r.calcXY=KT,_r.clamp=ko;function Tl(e){const{margin:t,containerPadding:n,containerWidth:o,cols:a}=e;return(o-t[0]*(a-1)-n[0]*2)/a}function Fd(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function XT(e,t,n,o,a,s){const{margin:l,containerPadding:u,rowHeight:d}=e,h=Tl(e),y={};return s&&s.resizing?(y.width=Math.round(s.resizing.width),y.height=Math.round(s.resizing.height)):(y.width=Fd(o,h,l[0]),y.height=Fd(a,d,l[1])),s&&s.dragging?(y.top=Math.round(s.dragging.top),y.left=Math.round(s.dragging.left)):s&&s.resizing&&typeof s.resizing.top=="number"&&typeof s.resizing.left=="number"?(y.top=Math.round(s.resizing.top),y.left=Math.round(s.resizing.left)):(y.top=Math.round((d+l[1])*n+u[1]),y.left=Math.round((h+l[0])*t+u[0])),y}function KT(e,t,n,o,a){const{margin:s,containerPadding:l,cols:u,rowHeight:d,maxRows:h}=e,y=Tl(e);let m=Math.round((n-l[0])/(y+s[0])),b=Math.round((t-l[1])/(d+s[1]));return m=ko(m,0,u-o),b=ko(b,0,h-a),{x:m,y:b}}function JT(e,t,n,o,a,s){const{margin:l,maxRows:u,cols:d,rowHeight:h}=e,y=Tl(e);let m=Math.round((t+l[0])/(y+l[0])),b=Math.round((n+l[1])/(h+l[1])),w=ko(m,0,d-o),S=ko(b,0,u-a);return["sw","w","nw"].indexOf(s)!==-1&&(w=ko(m,0,d)),["nw","n","ne"].indexOf(s)!==-1&&(S=ko(b,0,u)),{w,h:S}}function ko(e,t,n){return Math.max(Math.min(e,n),t)}var Pl={},Ol={exports:{}},w0={};function S0(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=S0(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function C0(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=S0(e))&&(o&&(o+=" "),o+=t);return o}const ZT=Va(Object.freeze(Object.defineProperty({__proto__:null,clsx:C0,default:C0},Symbol.toStringTag,{value:"Module"})));var Bt={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.dontSetMe=rP,Er.findInArray=QT,Er.int=nP,Er.isFunction=eP,Er.isNum=tP;function QT(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function eP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function tP(e){return typeof e=="number"&&!isNaN(e)}function nP(e){return parseInt(e,10)}function rP(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var To={};Object.defineProperty(To,"__esModule",{value:!0}),To.browserPrefixToKey=E0,To.browserPrefixToStyle=oP,To.default=void 0,To.getPrefix=_0;const zd=["Moz","Webkit","O","ms"];function _0(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let o=0;o<zd.length;o++)if(E0(t,zd[o])in n)return zd[o];return""}function E0(e,t){return t?"".concat(t).concat(iP(e)):e}function oP(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function iP(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):e[o]==="-"?n=!0:t+=e[o];return t}To.default=_0(),Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.addClassName=T0,Bt.addEvent=lP,Bt.addUserSelectStyles=bP,Bt.createCSSTransform=gP,Bt.createSVGTransform=mP,Bt.getTouch=yP,Bt.getTouchIdentifier=vP,Bt.getTranslation=Wd,Bt.innerHeight=fP,Bt.innerWidth=pP,Bt.matchesSelector=k0,Bt.matchesSelectorAndParentsTo=sP,Bt.offsetXYFromParent=hP,Bt.outerHeight=uP,Bt.outerWidth=dP,Bt.removeClassName=P0,Bt.removeEvent=cP,Bt.removeUserSelectStyles=xP;var An=Er,R0=aP(To);function I0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(I0=function(o){return o?n:t})(e)}function aP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=I0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}let Al="";function k0(e,t){return Al||(Al=(0,An.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,An.isFunction)(e[n])})),(0,An.isFunction)(e[Al])?e[Al](t):!1}function sP(e,t,n){let o=e;do{if(k0(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1}function lP(e,t,n,o){if(!e)return;const a={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function cP(e,t,n,o){if(!e)return;const a={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function uP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderTopWidth),t+=(0,An.int)(n.borderBottomWidth),t}function dP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderLeftWidth),t+=(0,An.int)(n.borderRightWidth),t}function fP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingTop),t-=(0,An.int)(n.paddingBottom),t}function pP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingLeft),t-=(0,An.int)(n.paddingRight),t}function hP(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),s=(e.clientX+t.scrollLeft-a.left)/n,l=(e.clientY+t.scrollTop-a.top)/n;return{x:s,y:l}}function gP(e,t){const n=Wd(e,t,"px");return{[(0,R0.browserPrefixToKey)("transform",R0.default)]:n}}function mP(e,t){return Wd(e,t,"")}function Wd(e,t,n){let{x:o,y:a}=e,s="translate(".concat(o).concat(n,",").concat(a).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),u="".concat(typeof t.y=="string"?t.y:t.y+n);s="translate(".concat(l,", ").concat(u,")")+s}return s}function yP(e,t){return e.targetTouches&&(0,An.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,An.findInArray)(e.changedTouches,n=>t===n.identifier)}function vP(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function bP(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
913
|
+
`,RT=e=>e.map(t=>t.type==="LOADING_SIGNAL"?v.jsx(_T,{},t.type):v.jsx(ST,{message:t},t.id)).filter(Boolean).reverse(),_d=5,IT=()=>{const[e,t]=Y.useState(0),[n,o]=Y.useState([]),[a,s]=Y.useState(!1),[l,u]=Y.useState(!1),[d,h]=Y.useState(""),y=Y.useRef(""),[m,b]=Y.useState(),w=Y.useRef(),{config:_,setSyncToken:E,startChatbot:P,projectMetadata:S,chatbotWebsocket:O,selectedComponentId:k,chatbotWebsocketConnected:I}=wn(),M=Y.useMemo(()=>!S.projectName,[S.projectName]),B=()=>({type:"LOADING_SIGNAL"}),D=we=>we.filter(ue=>ue.type!=="LOADING_SIGNAL"),V=async()=>{w.current&&w.current.abort(),w.current=new AbortController;const we=w.current.signal;try{u(!0),await Ja(S.projectName,S.projectURL,_.CORS_PROXY),u(!1);const ue=`${window.miDir}/${S.projectName}/chat.json`,Ce=await window.pfs.readFile(ue,"utf8"),De=JSON.parse(Ce);we.aborted||o(De)}catch(ue){console.log("error when fetching chat history",ue)}},U=()=>{e>_d||(console.log("Attempting to connect to a new WebSocket..."),P(S.projectName,{onopen:K,onclose:te,onerror:se,onmessage:de}))},C=()=>{O&&I===!0&&O.close()},G=async()=>{if(m===sr.GENERATION_FAILED||m===sr.GENERATION_STARTED)return;const we=k;if(!we){alert("Please select a component");return}const ue={type:"chat",content:{role:"user",source:"web_client",content:d.trim(),context:null,metadata:{component_id:we}}};O.send(JSON.stringify(ue)),o(Ce=>[...Ce,{role:"user",content:d,id:xa()},B()]),y.current=d,h("")},Z=we=>{h(ue=>{const Ce=ue.trim();return Ce?`${Ce} ${we}`:we})},H=we=>{he===!1&&we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),G())},K=()=>{console.log("websocket connection is initiated")},te=we=>{[1001,1002,1003,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015].indexOf(we.code)>-1&&(console.log(`WebSocket closed: ${we.code} - ${we.reason}`),t(Ce=>(Ce+1<=_d&&alert(`websocket was closed. Attempting to reconnecting: ${Ce+1}/${_d}`),Ce+1)),U())},se=we=>{console.log("there was an error with the websocket",we)},de=we=>{const ue=JSON.parse(we.data);if(ue.type)switch(ue.type){case"chat":{o(Ce=>[...D(Ce),ue.content]);break}case"signal":switch(ue.content&&ue.content.type?b(ue.content.type):console.warn("Signal type is undefined",ue.content),ue.content.type){case sr.READY_TO_RECEIVE:break;case sr.GENERATION_STARTED:o(Ce=>[...D(Ce),B()]);break;case sr.GENERATION_ENDED:{o(Ce=>[...D(Ce)]),E();break}case sr.GENERATION_CANCELED:break;case sr.GENERATION_FAILED:{C(),setTimeout(()=>{o([]),setTimeout(()=>{V().then(()=>{U(),h(y.current),y.current=""})},1e3)},2e3);break}}break;case"error":console.log("error came from websocket");break}};Y.useEffect(()=>{if(S.projectName&&S.projectURL)return C(),V().then(()=>U()),()=>{w.current&&w.current.abort(),C()}},[S.projectName]);const he=!O||m===sr.GENERATION_STARTED||m===sr.GENERATION_FAILED,be=m===sr.GENERATION_FAILED;return v.jsxs(v.Fragment,{children:[v.jsx(ba,{isVisible:l}),v.jsx(ET,{children:v.jsxs("div",{className:"chat-container",children:[v.jsxs("div",{className:"chat-messages",children:[!O&&v.jsx("div",{className:"chat-connecting-toast",children:"Establishing Connection"}),be&&v.jsx("div",{className:"chat-error-toast",children:"Restoring Chat as Generation Failed"}),RT(n)]}),v.jsxs("div",{className:"chat-input",children:[v.jsx("input",{type:"text",placeholder:"Type your message...",value:d,onChange:we=>h(we.target.value),onKeyDown:H,disabled:he}),v.jsx("button",{className:"gallery-button",onClick:()=>s(!0),disabled:M,children:"Images"}),v.jsx("button",{onClick:G,disabled:he,children:"Send"})]})]})}),S.projectName&&v.jsx(n0,{isOpen:a,onClose:()=>s(!1),onImageSelect:Z,projectName:S.projectName})]})},Rl=DS(QR)({fontSize:"12px",padding:"2px"}),Il=e=>v.jsx(v.Fragment,{children:v.jsx("div",{role:"tabpanel",hidden:e.activeIndex!=e.panelIndex,children:e.children})}),kT=e=>{const[t,n]=Y.useState(0),o=(a,s)=>{n(s)};return v.jsxs(v.Fragment,{children:[v.jsx(Dt,{sx:{width:"100%",position:"sticky",top:0,zIndex:1e3,backgroundColor:"LightGray"},children:v.jsx(Dt,{sx:{borderBottom:3,borderColor:"divider"},children:v.jsxs(vI,{value:t,onChange:o,children:[v.jsx(Rl,{label:"Components"}),v.jsx(Rl,{label:"Chatbot"}),v.jsx(Rl,{label:"Projects"}),v.jsx(Rl,{label:"Manage"})]})})}),v.jsx(Il,{panelIndex:0,activeIndex:t,children:v.jsx(bT,{componentLibrary:e.componentLibrary})}),v.jsx(Il,{panelIndex:1,activeIndex:t,children:v.jsx(IT,{})}),v.jsx(Il,{panelIndex:2,activeIndex:t,children:v.jsx(hT,{})}),v.jsx(Il,{panelIndex:3,activeIndex:t,children:v.jsx(Mk,{})})]})},TT=e=>v.jsx(v.Fragment,{children:v.jsx(kT,{componentLibrary:e.componentLibrary})});var s0={exports:{}},_a={},Ed={exports:{}};(function(e,t){(function(n,o){o(t)})(Mr,function(n){function o(le){return function(ge,me,pe,Pe,ve,Be,Ge){return le(ge,me,Ge)}}function a(le){return function(ge,me,pe,Pe){if(!ge||!me||typeof ge!="object"||typeof me!="object")return le(ge,me,pe,Pe);var ve=Pe.get(ge),Be=Pe.get(me);if(ve&&Be)return ve===me&&Be===ge;Pe.set(ge,me),Pe.set(me,ge);var Ge=le(ge,me,pe,Pe);return Pe.delete(ge),Pe.delete(me),Ge}}function s(le,fe){var ge={};for(var me in le)ge[me]=le[me];for(var me in fe)ge[me]=fe[me];return ge}function l(le){return le.constructor===Object||le.constructor==null}function u(le){return typeof le.then=="function"}function d(le,fe){return le===fe||le!==le&&fe!==fe}var h="[object Arguments]",y="[object Boolean]",m="[object Date]",b="[object RegExp]",w="[object Map]",_="[object Number]",E="[object Object]",P="[object Set]",S="[object String]",O=Object.prototype.toString;function k(le){var fe=le.areArraysEqual,ge=le.areDatesEqual,me=le.areMapsEqual,pe=le.areObjectsEqual,Pe=le.areRegExpsEqual,ve=le.areSetsEqual,Be=le.createIsNestedEqual,Ge=Be(Ae);function Ae(ke,We,tt){if(ke===We)return!0;if(!ke||!We||typeof ke!="object"||typeof We!="object")return ke!==ke&&We!==We;if(l(ke)&&l(We))return pe(ke,We,Ge,tt);var Le=Array.isArray(ke),xe=Array.isArray(We);if(Le||xe)return Le===xe&&fe(ke,We,Ge,tt);var ut=O.call(ke);return ut!==O.call(We)?!1:ut===m?ge(ke,We,Ge,tt):ut===b?Pe(ke,We,Ge,tt):ut===w?me(ke,We,Ge,tt):ut===P?ve(ke,We,Ge,tt):ut===E||ut===h?u(ke)||u(We)?!1:pe(ke,We,Ge,tt):ut===y||ut===_||ut===S?d(ke.valueOf(),We.valueOf()):!1}return Ae}function I(le,fe,ge,me){var pe=le.length;if(fe.length!==pe)return!1;for(;pe-- >0;)if(!ge(le[pe],fe[pe],pe,pe,le,fe,me))return!1;return!0}var M=a(I);function B(le,fe){return d(le.valueOf(),fe.valueOf())}function D(le,fe,ge,me){var pe=le.size===fe.size;if(!pe)return!1;if(!le.size)return!0;var Pe={},ve=0;return le.forEach(function(Be,Ge){if(pe){var Ae=!1,ke=0;fe.forEach(function(We,tt){!Ae&&!Pe[ke]&&(Ae=ge(Ge,tt,ve,ke,le,fe,me)&&ge(Be,We,Ge,tt,le,fe,me))&&(Pe[ke]=!0),ke++}),ve++,pe=Ae}}),pe}var V=a(D),U="_owner",C=Object.prototype.hasOwnProperty;function G(le,fe,ge,me){var pe=Object.keys(le),Pe=pe.length;if(Object.keys(fe).length!==Pe)return!1;for(var ve;Pe-- >0;){if(ve=pe[Pe],ve===U){var Be=!!le.$$typeof,Ge=!!fe.$$typeof;if((Be||Ge)&&Be!==Ge)return!1}if(!C.call(fe,ve)||!ge(le[ve],fe[ve],ve,ve,le,fe,me))return!1}return!0}var Z=a(G);function H(le,fe){return le.source===fe.source&&le.flags===fe.flags}function K(le,fe,ge,me){var pe=le.size===fe.size;if(!pe)return!1;if(!le.size)return!0;var Pe={};return le.forEach(function(ve,Be){if(pe){var Ge=!1,Ae=0;fe.forEach(function(ke,We){!Ge&&!Pe[Ae]&&(Ge=ge(ve,ke,Be,We,le,fe,me))&&(Pe[Ae]=!0),Ae++}),pe=Ge}}),pe}var te=a(K),se=Object.freeze({areArraysEqual:I,areDatesEqual:B,areMapsEqual:D,areObjectsEqual:G,areRegExpsEqual:H,areSetsEqual:K,createIsNestedEqual:o}),de=Object.freeze({areArraysEqual:M,areDatesEqual:B,areMapsEqual:V,areObjectsEqual:Z,areRegExpsEqual:H,areSetsEqual:te,createIsNestedEqual:o}),he=k(se);function be(le,fe){return he(le,fe,void 0)}var we=k(s(se,{createIsNestedEqual:function(){return d}}));function ue(le,fe){return we(le,fe,void 0)}var Ce=k(de);function De(le,fe){return Ce(le,fe,new WeakMap)}var Xe=k(s(de,{createIsNestedEqual:function(){return d}}));function Ke(le,fe){return Xe(le,fe,new WeakMap)}function He(le){return k(s(se,le(se)))}function gt(le){var fe=k(s(de,le(de)));return function(ge,me,pe){return pe===void 0&&(pe=new WeakMap),fe(ge,me,pe)}}n.circularDeepEqual=De,n.circularShallowEqual=Ke,n.createCustomCircularEqual=gt,n.createCustomEqual=He,n.deepEqual=be,n.sameValueZeroEqual=d,n.shallowEqual=ue,Object.defineProperty(n,"__esModule",{value:!0})})})(Ed,Ed.exports);var Rd=Ed.exports;const Id=Va(ES);var Qe={},PT=function(t,n,o){return t===n?!0:t.className===n.className&&o(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&o(t.verticalCompact,n.verticalCompact)&&o(t.compactType,n.compactType)&&o(t.layout,n.layout)&&o(t.margin,n.margin)&&o(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&o(t.resizeHandles,n.resizeHandles)&&o(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&o(t.droppingItem,n.droppingItem)&&o(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=kd,Qe.childrenEqual=MT,Qe.cloneLayout=c0,Qe.cloneLayoutItem=Io,Qe.collides=kl,Qe.compact=d0,Qe.compactItem=f0,Qe.compactType=UT,Qe.correctBounds=p0,Qe.fastPositionEqual=$T,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=h0,Qe.getFirstCollision=ko,Qe.getLayoutItem=Pd,Qe.getStatics=Od,Qe.modifyLayout=u0,Qe.moveElement=Ra,Qe.moveElementAwayFromCollision=Ad,Qe.noop=void 0,Qe.perc=BT,Qe.resizeItemInDirection=jT,Qe.setTopLeft=FT,Qe.setTransform=NT,Qe.sortLayoutItems=jd,Qe.sortLayoutItemsByColRow=b0,Qe.sortLayoutItemsByRowCol=v0,Qe.synchronizeLayoutWithChildren=zT,Qe.validateLayout=WT,Qe.withLayoutItem=AT;var l0=Rd,Ea=OT(Y);function OT(e){return e&&e.__esModule?e:{default:e}}function kd(e){let t=0,n;for(let o=0,a=e.length;o<a;o++)n=e[o].y+e[o].h,n>t&&(t=n);return t}function c0(e){const t=Array(e.length);for(let n=0,o=e.length;n<o;n++)t[n]=Io(e[n]);return t}function u0(e,t){const n=Array(e.length);for(let o=0,a=e.length;o<a;o++)t.i===e[o].i?n[o]=t:n[o]=e[o];return n}function AT(e,t,n){let o=Pd(e,t);return o?(o=n(Io(o)),e=u0(e,o),[e,o]):[e,null]}function Io(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function MT(e,t){return(0,l0.deepEqual)(Ea.default.Children.map(e,n=>n==null?void 0:n.key),Ea.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,l0.deepEqual)(Ea.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Ea.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=PT;function $T(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function kl(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function d0(e,t,n,o){const a=Od(e),s=jd(e,t),l=Array(e.length);for(let u=0,d=s.length;u<d;u++){let h=Io(s[u]);h.static||(h=f0(a,h,t,n,s,o),a.push(h)),l[e.indexOf(s[u])]=h,h.moved=!1}return l}const DT={x:"w",y:"h"};function Td(e,t,n,o){const a=DT[o];t[o]+=1;const s=e.map(l=>l.i).indexOf(t.i);for(let l=s+1;l<e.length;l++){const u=e[l];if(!u.static){if(u.y>t.y+t.h)break;kl(t,u)&&Td(e,u,n+t[a],o)}}t[o]=n}function f0(e,t,n,o,a,s){const l=n==="vertical",u=n==="horizontal";if(l)for(t.y=Math.min(kd(e),t.y);t.y>0&&!ko(e,t);)t.y--;else if(u)for(;t.x>0&&!ko(e,t);)t.x--;let d;for(;(d=ko(e,t))&&!(n===null&&s);)if(u?Td(a,t,d.x+d.w,"x"):Td(a,t,d.y+d.h,"y"),u&&t.x+t.w>o)for(t.x=o-t.w,t.y++;t.x>0&&!ko(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function p0(e,t){const n=Od(e);for(let o=0,a=e.length;o<a;o++){const s=e[o];if(s.x+s.w>t.cols&&(s.x=t.cols-s.w),s.x<0&&(s.x=0,s.w=t.cols),!s.static)n.push(s);else for(;ko(n,s);)s.y++}return e}function Pd(e,t){for(let n=0,o=e.length;n<o;n++)if(e[n].i===t)return e[n]}function ko(e,t){for(let n=0,o=e.length;n<o;n++)if(kl(e[n],t))return e[n]}function h0(e,t){return e.filter(n=>kl(n,t))}function Od(e){return e.filter(t=>t.static)}function Ra(e,t,n,o,a,s,l,u,d){if(t.static&&t.isDraggable!==!0||t.y===o&&t.x===n)return e;`${t.i}${String(n)}${String(o)}${t.x}${t.y}`;const h=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof o=="number"&&(t.y=o),t.moved=!0;let m=jd(e,l);(l==="vertical"&&typeof o=="number"?y>=o:l==="horizontal"&&typeof n=="number"?h>=n:!1)&&(m=m.reverse());const w=h0(m,t),_=w.length>0;if(_&&d)return c0(e);if(_&&s)return`${t.i}`,t.x=h,t.y=y,t.moved=!1,e;for(let E=0,P=w.length;E<P;E++){const S=w[E];`${t.i}${t.x}${t.y}${S.i}${S.x}${S.y}`,!S.moved&&(S.static?e=Ad(e,S,t,a,l):e=Ad(e,t,S,a,l))}return e}function Ad(e,t,n,o,a,s){const l=a==="horizontal",u=a==="vertical",d=t.static;if(o){o=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:u?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},b=ko(e,m),w=b&&b.y+b.h>t.y,_=b&&t.x+t.w>b.x;if(b){if(w&&u)return Ra(e,n,void 0,t.y+1,o,d,a);if(w&&a==null)return t.y=n.y,n.y=n.y+n.h,e;if(_&&l)return Ra(e,t,n.x,void 0,o,d,a)}else return`${n.i}${m.x}${m.y}`,Ra(e,n,l?m.x:void 0,u?m.y:void 0,o,d,a)}const h=l?n.x+1:void 0,y=u?n.y+1:void 0;return h==null&&y==null?e:Ra(e,n,l?n.x+1:void 0,u?n.y+1:void 0,o,d,a)}function BT(e){return e*100+"%"}const g0=(e,t,n,o)=>e+n>o?t:n,m0=(e,t,n)=>e<0?t:n,y0=e=>Math.max(0,e),Md=e=>Math.max(0,e),$d=(e,t,n)=>{let{left:o,height:a,width:s}=t;const l=e.top-(a-e.height);return{left:o,width:s,height:m0(l,e.height,a),top:Md(l)}},Dd=(e,t,n)=>{let{top:o,left:a,height:s,width:l}=t;return{top:o,height:s,width:g0(e.left,e.width,l,n),left:y0(a)}},Bd=(e,t,n)=>{let{top:o,height:a,width:s}=t;const l=e.left-(s-e.width);return{height:a,width:l<0?e.width:g0(e.left,e.width,s,n),top:Md(o),left:y0(l)}},Ld=(e,t,n)=>{let{top:o,left:a,height:s,width:l}=t;return{width:l,left:a,height:m0(o,e.height,s),top:Md(o)}},LT={n:$d,ne:function(){return $d(arguments.length<=0?void 0:arguments[0],Dd(...arguments))},e:Dd,se:function(){return Ld(arguments.length<=0?void 0:arguments[0],Dd(...arguments))},s:Ld,sw:function(){return Ld(arguments.length<=0?void 0:arguments[0],Bd(...arguments))},w:Bd,nw:function(){return $d(arguments.length<=0?void 0:arguments[0],Bd(...arguments))}};function jT(e,t,n,o){const a=LT[e];return a?a(t,{...t,...n},o):n}function NT(e){let{top:t,left:n,width:o,height:a}=e;const s=`translate(${n}px,${t}px)`;return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:`${o}px`,height:`${a}px`,position:"absolute"}}function FT(e){let{top:t,left:n,width:o,height:a}=e;return{top:`${t}px`,left:`${n}px`,width:`${o}px`,height:`${a}px`,position:"absolute"}}function jd(e,t){return t==="horizontal"?b0(e):t==="vertical"?v0(e):e}function v0(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function b0(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function zT(e,t,n,o,a){e=e||[];const s=[];Ea.default.Children.forEach(t,u=>{if((u==null?void 0:u.key)==null)return;const d=Pd(e,String(u.key)),h=u.props["data-grid"];d&&h==null?s.push(Io(d)):h?s.push(Io({...h,i:u.key})):s.push(Io({w:1,h:1,x:0,y:kd(s),i:String(u.key)}))});const l=p0(s,{cols:n});return a?l:d0(l,o,n)}function WT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let o=0,a=e.length;o<a;o++){const s=e[o];for(let l=0;l<n.length;l++){const u=n[l],d=s[u];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${o}].${u} must be a number! Received: ${d} (${typeof d})`)}if(typeof s.i<"u"&&typeof s.i!="string")throw new Error(`ReactGridLayout: ${t}[${o}].i must be a string! Received: ${s.i} (${typeof s.i})`)}}function UT(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function s5(){}const HT=()=>{};Qe.noop=HT;var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.calcGridColWidth=Tl,_r.calcGridItemPosition=GT,_r.calcGridItemWHPx=Nd,_r.calcWH=VT,_r.calcXY=qT,_r.clamp=To;function Tl(e){const{margin:t,containerPadding:n,containerWidth:o,cols:a}=e;return(o-t[0]*(a-1)-n[0]*2)/a}function Nd(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function GT(e,t,n,o,a,s){const{margin:l,containerPadding:u,rowHeight:d}=e,h=Tl(e),y={};return s&&s.resizing?(y.width=Math.round(s.resizing.width),y.height=Math.round(s.resizing.height)):(y.width=Nd(o,h,l[0]),y.height=Nd(a,d,l[1])),s&&s.dragging?(y.top=Math.round(s.dragging.top),y.left=Math.round(s.dragging.left)):s&&s.resizing&&typeof s.resizing.top=="number"&&typeof s.resizing.left=="number"?(y.top=Math.round(s.resizing.top),y.left=Math.round(s.resizing.left)):(y.top=Math.round((d+l[1])*n+u[1]),y.left=Math.round((h+l[0])*t+u[0])),y}function qT(e,t,n,o,a){const{margin:s,containerPadding:l,cols:u,rowHeight:d,maxRows:h}=e,y=Tl(e);let m=Math.round((n-l[0])/(y+s[0])),b=Math.round((t-l[1])/(d+s[1]));return m=To(m,0,u-o),b=To(b,0,h-a),{x:m,y:b}}function VT(e,t,n,o,a,s){const{margin:l,maxRows:u,cols:d,rowHeight:h}=e,y=Tl(e);let m=Math.round((t+l[0])/(y+l[0])),b=Math.round((n+l[1])/(h+l[1])),w=To(m,0,d-o),_=To(b,0,u-a);return["sw","w","nw"].indexOf(s)!==-1&&(w=To(m,0,d)),["nw","n","ne"].indexOf(s)!==-1&&(_=To(b,0,u)),{w,h:_}}function To(e,t,n){return Math.max(Math.min(e,n),t)}var Pl={},Ol={exports:{}},x0={};function w0(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=w0(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function S0(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=w0(e))&&(o&&(o+=" "),o+=t);return o}const YT=Va(Object.freeze(Object.defineProperty({__proto__:null,clsx:S0,default:S0},Symbol.toStringTag,{value:"Module"})));var Bt={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.dontSetMe=QT,Er.findInArray=XT,Er.int=ZT,Er.isFunction=KT,Er.isNum=JT;function XT(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function KT(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function JT(e){return typeof e=="number"&&!isNaN(e)}function ZT(e){return parseInt(e,10)}function QT(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.browserPrefixToKey=_0,Po.browserPrefixToStyle=eP,Po.default=void 0,Po.getPrefix=C0;const Fd=["Moz","Webkit","O","ms"];function C0(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let o=0;o<Fd.length;o++)if(_0(t,Fd[o])in n)return Fd[o];return""}function _0(e,t){return t?"".concat(t).concat(tP(e)):e}function eP(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function tP(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):e[o]==="-"?n=!0:t+=e[o];return t}Po.default=C0(),Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.addClassName=k0,Bt.addEvent=oP,Bt.addUserSelectStyles=gP,Bt.createCSSTransform=dP,Bt.createSVGTransform=fP,Bt.getTouch=pP,Bt.getTouchIdentifier=hP,Bt.getTranslation=zd,Bt.innerHeight=lP,Bt.innerWidth=cP,Bt.matchesSelector=I0,Bt.matchesSelectorAndParentsTo=rP,Bt.offsetXYFromParent=uP,Bt.outerHeight=aP,Bt.outerWidth=sP,Bt.removeClassName=T0,Bt.removeEvent=iP,Bt.removeUserSelectStyles=mP;var An=Er,E0=nP(Po);function R0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(R0=function(o){return o?n:t})(e)}function nP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=R0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}let Al="";function I0(e,t){return Al||(Al=(0,An.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,An.isFunction)(e[n])})),(0,An.isFunction)(e[Al])?e[Al](t):!1}function rP(e,t,n){let o=e;do{if(I0(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1}function oP(e,t,n,o){if(!e)return;const a={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,a):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function iP(e,t,n,o){if(!e)return;const a={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function aP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderTopWidth),t+=(0,An.int)(n.borderBottomWidth),t}function sP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderLeftWidth),t+=(0,An.int)(n.borderRightWidth),t}function lP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingTop),t-=(0,An.int)(n.paddingBottom),t}function cP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingLeft),t-=(0,An.int)(n.paddingRight),t}function uP(e,t,n){const a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),s=(e.clientX+t.scrollLeft-a.left)/n,l=(e.clientY+t.scrollTop-a.top)/n;return{x:s,y:l}}function dP(e,t){const n=zd(e,t,"px");return{[(0,E0.browserPrefixToKey)("transform",E0.default)]:n}}function fP(e,t){return zd(e,t,"")}function zd(e,t,n){let{x:o,y:a}=e,s="translate(".concat(o).concat(n,",").concat(a).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),u="".concat(typeof t.y=="string"?t.y:t.y+n);s="translate(".concat(l,", ").concat(u,")")+s}return s}function pP(e,t){return e.targetTouches&&(0,An.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,An.findInArray)(e.changedTouches,n=>t===n.identifier)}function hP(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function gP(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
914
914
|
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
915
|
-
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&T0(e.body,"react-draggable-transparent-selection")}function xP(e){if(e)try{if(e.body&&P0(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function T0(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function P0(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.canDragX=CP,Rr.canDragY=_P,Rr.createCoreData=RP,Rr.createDraggableData=IP,Rr.getBoundPosition=wP,Rr.getControlPosition=EP,Rr.snapToGrid=SP;var Mn=Er,bi=Bt;function wP(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:o}=e.props;o=typeof o=="string"?o:kP(o);const a=Ud(e);if(typeof o=="string"){const{ownerDocument:s}=a,l=s.defaultView;let u;if(o==="parent"?u=a.parentNode:u=s.querySelector(o),!(u instanceof l.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const d=u,h=l.getComputedStyle(a),y=l.getComputedStyle(d);o={left:-a.offsetLeft+(0,Mn.int)(y.paddingLeft)+(0,Mn.int)(h.marginLeft),top:-a.offsetTop+(0,Mn.int)(y.paddingTop)+(0,Mn.int)(h.marginTop),right:(0,bi.innerWidth)(d)-(0,bi.outerWidth)(a)-a.offsetLeft+(0,Mn.int)(y.paddingRight)-(0,Mn.int)(h.marginRight),bottom:(0,bi.innerHeight)(d)-(0,bi.outerHeight)(a)-a.offsetTop+(0,Mn.int)(y.paddingBottom)-(0,Mn.int)(h.marginBottom)}}return(0,Mn.isNum)(o.right)&&(t=Math.min(t,o.right)),(0,Mn.isNum)(o.bottom)&&(n=Math.min(n,o.bottom)),(0,Mn.isNum)(o.left)&&(t=Math.max(t,o.left)),(0,Mn.isNum)(o.top)&&(n=Math.max(n,o.top)),[t,n]}function SP(e,t,n){const o=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[o,a]}function CP(e){return e.props.axis==="both"||e.props.axis==="x"}function _P(e){return e.props.axis==="both"||e.props.axis==="y"}function EP(e,t,n){const o=typeof t=="number"?(0,bi.getTouch)(e,t):null;if(typeof t=="number"&&!o)return null;const a=Ud(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,bi.offsetXYFromParent)(o||e,s,n.props.scale)}function RP(e,t,n){const o=!(0,Mn.isNum)(e.lastX),a=Ud(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function IP(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function kP(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Ud(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Ml={},$l={};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=TP;function TP(){}Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var Hd=OP(X),Sn=qd(Zr),PP=qd(mo),ln=Bt,no=Rr,Gd=Er,Ia=qd($l);function qd(e){return e&&e.__esModule?e:{default:e}}function O0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(O0=function(o){return o?n:t})(e)}function OP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=O0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function hn(e,t,n){return t=AP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AP(e){var t=MP(e,"string");return typeof t=="symbol"?t:String(t)}function MP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const lr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ro=lr.mouse,Dl=class extends Hd.Component{constructor(){super(...arguments),hn(this,"dragging",!1),hn(this,"lastX",NaN),hn(this,"lastY",NaN),hn(this,"touchIdentifier",null),hn(this,"mounted",!1),hn(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:o}=n;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const a=(0,ln.getTouchIdentifier)(t);this.touchIdentifier=a;const s=(0,no.getControlPosition)(t,a,this);if(s==null)return;const{x:l,y:u}=s,d=(0,no.createCoreData)(this,l,u);(0,Ia.default)("DraggableCore: handleDragStart: %j",d),(0,Ia.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ln.addUserSelectStyles)(o),this.dragging=!0,this.lastX=l,this.lastY=u,(0,ln.addEvent)(o,ro.move,this.handleDrag),(0,ln.addEvent)(o,ro.stop,this.handleDragStop))}),hn(this,"handleDrag",t=>{const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:a}=n;if(Array.isArray(this.props.grid)){let u=o-this.lastX,d=a-this.lastY;if([u,d]=(0,no.snapToGrid)(this.props.grid,u,d),!u&&!d)return;o=this.lastX+u,a=this.lastY+d}const s=(0,no.createCoreData)(this,o,a);if((0,Ia.default)("DraggableCore: handleDrag: %j",s),this.props.onDrag(t,s)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(d)}return}this.lastX=o,this.lastY=a}),hn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:a}=n;if(Array.isArray(this.props.grid)){let d=o-this.lastX||0,h=a-this.lastY||0;[d,h]=(0,no.snapToGrid)(this.props.grid,d,h),o=this.lastX+d,a=this.lastY+h}const s=(0,no.createCoreData)(this,o,a);if(this.props.onStop(t,s)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(u.ownerDocument),(0,Ia.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,Ia.default)("DraggableCore: Removing handlers"),(0,ln.removeEvent)(u.ownerDocument,ro.move,this.handleDrag),(0,ln.removeEvent)(u.ownerDocument,ro.stop,this.handleDragStop))}),hn(this,"onMouseDown",t=>(ro=lr.mouse,this.handleDragStart(t))),hn(this,"onMouseUp",t=>(ro=lr.mouse,this.handleDragStop(t))),hn(this,"onTouchStart",t=>(ro=lr.touch,this.handleDragStart(t))),hn(this,"onTouchEnd",t=>(ro=lr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,ln.addEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,ln.removeEvent)(n,lr.mouse.move,this.handleDrag),(0,ln.removeEvent)(n,lr.touch.move,this.handleDrag),(0,ln.removeEvent)(n,lr.mouse.stop,this.handleDragStop),(0,ln.removeEvent)(n,lr.touch.stop,this.handleDragStop),(0,ln.removeEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:PP.default.findDOMNode(this)}render(){return Hd.cloneElement(Hd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Ml.default=Dl,hn(Dl,"displayName","DraggableCore"),hn(Dl,"propTypes",{allowAnyClick:Sn.default.bool,children:Sn.default.node.isRequired,disabled:Sn.default.bool,enableUserSelectHack:Sn.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Sn.default.arrayOf(Sn.default.number),handle:Sn.default.string,cancel:Sn.default.string,nodeRef:Sn.default.object,onStart:Sn.default.func,onDrag:Sn.default.func,onStop:Sn.default.func,onMouseDown:Sn.default.func,scale:Sn.default.number,className:Gd.dontSetMe,style:Gd.dontSetMe,transform:Gd.dontSetMe}),hn(Dl,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=b(X),n=y(Zr),o=y(mo),a=y(ZT),s=Bt,l=Rr,u=Er,d=y(Ml),h=y($l);function y(O){return O&&O.__esModule?O:{default:O}}function m(O){if(typeof WeakMap!="function")return null;var k=new WeakMap,R=new WeakMap;return(m=function($){return $?R:k})(O)}function b(O,k){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var R=m(k);if(R&&R.has(O))return R.get(O);var $={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in O)if(M!=="default"&&Object.prototype.hasOwnProperty.call(O,M)){var z=B?Object.getOwnPropertyDescriptor(O,M):null;z&&(z.get||z.set)?Object.defineProperty($,M,z):$[M]=O[M]}return $.default=O,R&&R.set(O,$),$}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var k=1;k<arguments.length;k++){var R=arguments[k];for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&(O[$]=R[$])}return O},w.apply(this,arguments)}function S(O,k,R){return k=E(k),k in O?Object.defineProperty(O,k,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[k]=R,O}function E(O){var k=P(O,"string");return typeof k=="symbol"?k:String(k)}function P(O,k){if(typeof O!="object"||O===null)return O;var R=O[Symbol.toPrimitive];if(R!==void 0){var $=R.call(O,k||"default");if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(O)}class C extends t.Component{static getDerivedStateFromProps(k,R){let{position:$}=k,{prevPropsPosition:B}=R;return $&&(!B||$.x!==B.x||$.y!==B.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:$,prevPropsPosition:B}),{x:$.x,y:$.y,prevPropsPosition:{...$}}):null}constructor(k){super(k),S(this,"onDragStart",(R,$)=>{if((0,h.default)("Draggable: onDragStart: %j",$),this.props.onStart(R,(0,l.createDraggableData)(this,$))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(R,$)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",$);const B=(0,l.createDraggableData)(this,$),M={x:B.x,y:B.y,slackX:0,slackY:0};if(this.props.bounds){const{x:V,y:_}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[G,re]=(0,l.getBoundPosition)(this,M.x,M.y);M.x=G,M.y=re,M.slackX=this.state.slackX+(V-M.x),M.slackY=this.state.slackY+(_-M.y),B.x=M.x,B.y=M.y,B.deltaX=M.x-this.state.x,B.deltaY=M.y-this.state.y}if(this.props.onDrag(R,B)===!1)return!1;this.setState(M)}),S(this,"onDragStop",(R,$)=>{if(!this.state.dragging||this.props.onStop(R,(0,l.createDraggableData)(this,$))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",$);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:V,y:_}=this.props.position;M.x=V,M.y=_}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:k.position?k.position.x:k.defaultPosition.x,y:k.position?k.position.y:k.defaultPosition.y,prevPropsPosition:{...k.position},slackX:0,slackY:0,isElementSVG:!1},k.position&&!(k.onDrag||k.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var k,R;return(k=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&k!==void 0?k:o.default.findDOMNode(this)}render(){const{axis:k,bounds:R,children:$,defaultPosition:B,defaultClassName:M,defaultClassNameDragging:z,defaultClassNameDragged:V,position:_,positionOffset:G,scale:re,...H}=this.props;let Q={},ee=null;const pe=!!!_||this.state.dragging,he=_||B,be={x:(0,l.canDragX)(this)&&pe?this.state.x:he.x,y:(0,l.canDragY)(this)&&pe?this.state.y:he.y};this.state.isElementSVG?ee=(0,s.createSVGTransform)(be,G):Q=(0,s.createCSSTransform)(be,G);const we=(0,a.default)($.props.className||"",M,{[z]:this.state.dragging,[V]:this.state.dragged});return t.createElement(d.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only($),{className:we,style:{...$.props.style,...Q},transform:ee}))}}e.default=C,S(C,"displayName","Draggable"),S(C,"propTypes",{...d.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),S(C,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(w0);const{default:A0,DraggableCore:$P}=w0;Ol.exports=A0,Ol.exports.default=A0,Ol.exports.DraggableCore=$P;var M0=Ol.exports,Bl={exports:{}},ka={},Vd={};Vd.__esModule=!0,Vd.cloneElement=FP;var DP=BP(X);function BP(e){return e&&e.__esModule?e:{default:e}}function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function D0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(o){LP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function LP(e,t,n){return t=jP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e){var t=NP(e,"string");return typeof t=="symbol"?t:String(t)}function NP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FP(e,t){return t.style&&e.props.style&&(t.style=D0(D0({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),DP.default.cloneElement(e,t)}var Ta={};Ta.__esModule=!0,Ta.resizableProps=void 0;var Ue=zP(Zr);function zP(e){return e&&e.__esModule?e:{default:e}}var WP={axis:Ue.default.oneOf(["both","x","y","none"]),className:Ue.default.string,children:Ue.default.element.isRequired,draggableOpts:Ue.default.shape({allowAnyClick:Ue.default.bool,cancel:Ue.default.string,children:Ue.default.node,disabled:Ue.default.bool,enableUserSelectHack:Ue.default.bool,offsetParent:Ue.default.node,grid:Ue.default.arrayOf(Ue.default.number),handle:Ue.default.string,nodeRef:Ue.default.object,onStart:Ue.default.func,onDrag:Ue.default.func,onStop:Ue.default.func,onMouseDown:Ue.default.func,scale:Ue.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a=n[0];if(a.axis==="both"||a.axis==="y"){var s;return(s=Ue.default.number).isRequired.apply(s,n)}return Ue.default.number.apply(Ue.default,n)},handle:Ue.default.oneOfType([Ue.default.node,Ue.default.func]),handleSize:Ue.default.arrayOf(Ue.default.number),lockAspectRatio:Ue.default.bool,maxConstraints:Ue.default.arrayOf(Ue.default.number),minConstraints:Ue.default.arrayOf(Ue.default.number),onResizeStop:Ue.default.func,onResizeStart:Ue.default.func,onResize:Ue.default.func,resizeHandles:Ue.default.arrayOf(Ue.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ue.default.number,width:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a=n[0];if(a.axis==="both"||a.axis==="x"){var s;return(s=Ue.default.number).isRequired.apply(s,n)}return Ue.default.number.apply(Ue.default,n)}};Ta.resizableProps=WP,ka.__esModule=!0,ka.default=void 0;var Pa=VP(X),UP=M0,HP=Vd,GP=Ta,qP=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function B0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(B0=function(a){return a?n:t})(e)}function VP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=B0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yd.apply(this,arguments)}function YP(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(n),!0).forEach(function(o){XP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function XP(e,t,n){return t=KP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KP(e){var t=JP(e,"string");return typeof t=="symbol"?t:String(t)}function JP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kd(e,t)}function Kd(e,t){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Kd(e,t)}var Jd=function(e){ZP(t,e);function t(){for(var o,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=e.call.apply(e,[this].concat(s))||this,o.handleRefs={},o.lastHandleRect=null,o.slack=null,o}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(a,s){var l=this.props,u=l.minConstraints,d=l.maxConstraints,h=l.lockAspectRatio;if(!u&&!d&&!h)return[a,s];if(h){var y=this.props.width/this.props.height,m=a-this.props.width,b=s-this.props.height;Math.abs(m)>Math.abs(b*y)?s=a/y:a=s*y}var w=a,S=s,E=this.slack||[0,0],P=E[0],C=E[1];return a+=P,s+=C,u&&(a=Math.max(u[0],a),s=Math.max(u[1],s)),d&&(a=Math.min(d[0],a),s=Math.min(d[1],s)),this.slack=[P+(w-a),C+(S-s)],[a,s]},n.resizeHandler=function(a,s){var l=this;return function(u,d){var h=d.node,y=d.deltaX,m=d.deltaY;a==="onResizeStart"&&l.resetData();var b=(l.props.axis==="both"||l.props.axis==="x")&&s!=="n"&&s!=="s",w=(l.props.axis==="both"||l.props.axis==="y")&&s!=="e"&&s!=="w";if(!(!b&&!w)){var S=s[0],E=s[s.length-1],P=h.getBoundingClientRect();if(l.lastHandleRect!=null){if(E==="w"){var C=P.left-l.lastHandleRect.left;y+=C}if(S==="n"){var O=P.top-l.lastHandleRect.top;m+=O}}l.lastHandleRect=P,E==="w"&&(y=-y),S==="n"&&(m=-m);var k=l.props.width+(b?y/l.props.transformScale:0),R=l.props.height+(w?m/l.props.transformScale:0),$=l.runConstraints(k,R);k=$[0],R=$[1];var B=k!==l.props.width||R!==l.props.height,M=typeof l.props[a]=="function"?l.props[a]:null,z=a==="onResize"&&!B;M&&!z&&(u.persist==null||u.persist(),M(u,{node:h,size:{width:k,height:R},handle:s})),a==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(a,s){var l=this.props.handle;if(!l)return Pa.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:s});if(typeof l=="function")return l(a,s);var u=typeof l.type=="string",d=Xd({ref:s},u?{}:{handleAxis:a});return Pa.cloneElement(l,d)},n.render=function(){var a=this,s=this.props,l=s.children,u=s.className,d=s.draggableOpts;s.width,s.height,s.handle,s.handleSize,s.lockAspectRatio,s.axis,s.minConstraints,s.maxConstraints,s.onResize,s.onResizeStop,s.onResizeStart;var h=s.resizeHandles;s.transformScale;var y=YP(s,qP);return(0,HP.cloneElement)(l,Xd(Xd({},y),{},{className:(u?u+" ":"")+"react-resizable",children:[].concat(l.props.children,h.map(function(m){var b,w=(b=a.handleRefs[m])!=null?b:a.handleRefs[m]=Pa.createRef();return Pa.createElement(UP.DraggableCore,Yd({},d,{nodeRef:w,key:"resizableHandle-"+m,onStop:a.resizeHandler("onResizeStop",m),onStart:a.resizeHandler("onResizeStart",m),onDrag:a.resizeHandler("onResize",m)}),a.renderResizeHandle(m,w))}))}))},t}(Pa.Component);ka.default=Jd,Jd.propTypes=GP.resizableProps,Jd.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Ll={};Ll.__esModule=!0,Ll.default=void 0;var Zd=r2(X),QP=j0(Zr),e2=j0(ka),t2=Ta,n2=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function j0(e){return e&&e.__esModule?e:{default:e}}function N0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(N0=function(a){return a?n:t})(e)}function r2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=N0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qd.apply(this,arguments)}function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(o){o2(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function o2(e,t,n){return t=i2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e){var t=a2(e,"string");return typeof t=="symbol"?t:String(t)}function a2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s2(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function l2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},ef(e,t)}var z0=function(e){l2(t,e);function t(){for(var o,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=e.call.apply(e,[this].concat(s))||this,o.state={width:o.props.width,height:o.props.height,propsWidth:o.props.width,propsHeight:o.props.height},o.onResize=function(u,d){var h=d.size;o.props.onResize?(u.persist==null||u.persist(),o.setState(h,function(){return o.props.onResize&&o.props.onResize(u,d)})):o.setState(h)},o}t.getDerivedStateFromProps=function(a,s){return s.propsWidth!==a.width||s.propsHeight!==a.height?{width:a.width,height:a.height,propsWidth:a.width,propsHeight:a.height}:null};var n=t.prototype;return n.render=function(){var a=this.props,s=a.handle,l=a.handleSize;a.onResize;var u=a.onResizeStart,d=a.onResizeStop,h=a.draggableOpts,y=a.minConstraints,m=a.maxConstraints,b=a.lockAspectRatio,w=a.axis;a.width,a.height;var S=a.resizeHandles,E=a.style,P=a.transformScale,C=s2(a,n2);return Zd.createElement(e2.default,{axis:w,draggableOpts:h,handle:s,handleSize:l,height:this.state.height,lockAspectRatio:b,maxConstraints:m,minConstraints:y,onResizeStart:u,onResize:this.onResize,onResizeStop:d,resizeHandles:S,transformScale:P,width:this.state.width},Zd.createElement("div",Qd({},C,{style:jl(jl({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Zd.Component);Ll.default=z0,z0.propTypes=jl(jl({},t2.resizableProps),{},{children:QP.default.element}),Bl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Bl.exports.Resizable=ka.default,Bl.exports.ResizableBox=Ll.default;var c2=Bl.exports,zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.resizeHandleType=zr.resizeHandleAxesType=zr.default=void 0;var Ye=W0(Zr),u2=W0(X);function W0(e){return e&&e.__esModule?e:{default:e}}const d2=zr.resizeHandleAxesType=Ye.default.arrayOf(Ye.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),f2=zr.resizeHandleType=Ye.default.oneOfType([Ye.default.node,Ye.default.func]);zr.default={className:Ye.default.string,style:Ye.default.object,width:Ye.default.number,autoSize:Ye.default.bool,cols:Ye.default.number,draggableCancel:Ye.default.string,draggableHandle:Ye.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ye.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ye.default.arrayOf(Ye.default.number),containerPadding:Ye.default.arrayOf(Ye.default.number),rowHeight:Ye.default.number,maxRows:Ye.default.number,isBounded:Ye.default.bool,isDraggable:Ye.default.bool,isResizable:Ye.default.bool,allowOverlap:Ye.default.bool,preventCollision:Ye.default.bool,useCSSTransforms:Ye.default.bool,transformScale:Ye.default.number,isDroppable:Ye.default.bool,resizeHandles:d2,resizeHandle:f2,onLayoutChange:Ye.default.func,onDragStart:Ye.default.func,onDrag:Ye.default.func,onDragStop:Ye.default.func,onResizeStart:Ye.default.func,onResize:Ye.default.func,onResizeStop:Ye.default.func,onDrop:Ye.default.func,droppingItem:Ye.default.shape({i:Ye.default.string.isRequired,w:Ye.default.number.isRequired,h:Ye.default.number.isRequired}),children:function(e,t){const n=e[t],o={};u2.default.Children.forEach(n,function(a){if((a==null?void 0:a.key)!=null){if(o[a.key])throw new Error('Duplicate child key "'+a.key+'" found! This will cause problems in ReactGridLayout.');o[a.key]=!0}})},innerRef:Ye.default.any},Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var xi=tf(X),ct=tf(Zr),p2=M0,h2=c2,wi=Qe,tn=_r,U0=zr,g2=tf(kd);function tf(e){return e&&e.__esModule?e:{default:e}}function Ir(e,t,n){return t=m2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m2(e){var t=y2(e,"string");return typeof t=="symbol"?t:String(t)}function y2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class nf extends xi.default.Component{constructor(){super(...arguments),Ir(this,"state",{resizing:null,dragging:null,className:""}),Ir(this,"elementRef",xi.default.createRef()),Ir(this,"onDragStart",(t,n)=>{let{node:o}=n;const{onDragStart:a,transformScale:s}=this.props;if(!a)return;const l={top:0,left:0},{offsetParent:u}=o;if(!u)return;const d=u.getBoundingClientRect(),h=o.getBoundingClientRect(),y=h.left/s,m=d.left/s,b=h.top/s,w=d.top/s;l.left=y-m+u.scrollLeft,l.top=b-w+u.scrollTop,this.setState({dragging:l});const{x:S,y:E}=(0,tn.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return a.call(this,this.props.i,S,E,{e:t,node:o,newPosition:l})}),Ir(this,"onDrag",(t,n)=>{let{node:o,deltaX:a,deltaY:s}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let u=this.state.dragging.top+s,d=this.state.dragging.left+a;const{isBounded:h,i:y,w:m,h:b,containerWidth:w}=this.props,S=this.getPositionParams();if(h){const{offsetParent:O}=o;if(O){const{margin:k,rowHeight:R,containerPadding:$}=this.props,B=O.clientHeight-(0,tn.calcGridItemWHPx)(b,R,k[1]);u=(0,tn.clamp)(u-$[1],0,B);const M=(0,tn.calcGridColWidth)(S),z=w-(0,tn.calcGridItemWHPx)(m,M,k[0]);d=(0,tn.clamp)(d-$[0],0,z)}}const E={top:u,left:d};this.setState({dragging:E});const{x:P,y:C}=(0,tn.calcXY)(S,u,d,m,b);return l.call(this,y,P,C,{e:t,node:o,newPosition:E})}),Ir(this,"onDragStop",(t,n)=>{let{node:o}=n;const{onDragStop:a}=this.props;if(!a)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:s,h:l,i:u}=this.props,{left:d,top:h}=this.state.dragging,y={top:h,left:d};this.setState({dragging:null});const{x:m,y:b}=(0,tn.calcXY)(this.getPositionParams(),h,d,s,l);return a.call(this,u,m,b,{e:t,node:o,newPosition:y})}),Ir(this,"onResizeStop",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStop")),Ir(this,"onResizeStart",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStart")),Ir(this,"onResize",(t,n,o)=>this.onResizeHandler(t,n,o,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const o=(0,tn.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),a=(0,tn.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,wi.fastPositionEqual)(o,a)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const o=this.elementRef.current;if(!o)return;const a=t.droppingPosition||{left:0,top:0},{dragging:s}=this.state,l=s&&n.left!==a.left||n.top!==a.top;if(!s)this.onDragStart(n.e,{node:o,deltaX:n.left,deltaY:n.top});else if(l){const u=n.left-s.left,d=n.top-s.top;this.onDrag(n.e,{node:o,deltaX:u,deltaY:d})}}getPositionParams(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){const{usePercentages:n,containerWidth:o,useCSSTransforms:a}=this.props;let s;return a?s=(0,wi.setTransform)(t):(s=(0,wi.setTopLeft)(t),n&&(s.left=(0,wi.perc)(t.left/o),s.width=(0,wi.perc)(t.width/o))),s}mixinDraggable(t,n){return xi.default.createElement(p2.DraggableCore,{disabled:!n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},t)}curryResizeHandler(t,n){return(o,a)=>n(o,a,t)}mixinResizable(t,n,o){const{cols:a,minW:s,minH:l,maxW:u,maxH:d,transformScale:h,resizeHandles:y,resizeHandle:m}=this.props,b=this.getPositionParams(),w=(0,tn.calcGridItemPosition)(b,0,0,a,0).width,S=(0,tn.calcGridItemPosition)(b,0,0,s,l),E=(0,tn.calcGridItemPosition)(b,0,0,u,d),P=[S.width,S.height],C=[Math.min(E.width,w),Math.min(E.height,1/0)];return xi.default.createElement(h2.Resizable,{draggableOpts:{disabled:!o},className:o?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:P,maxConstraints:C,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:h,resizeHandles:y,handle:m},t)}onResizeHandler(t,n,o,a){let{node:s,size:l,handle:u}=n;const d=this.props[a];if(!d)return;const{x:h,y,i:m,maxH:b,minH:w,containerWidth:S}=this.props,{minW:E,maxW:P}=this.props;let C=l;s&&(C=(0,wi.resizeItemInDirection)(u,o,l,S),this.setState({resizing:a==="onResizeStop"?null:C}));let{w:O,h:k}=(0,tn.calcWH)(this.getPositionParams(),C.width,C.height,h,y,u);O=(0,tn.clamp)(O,Math.max(E,1),P),k=(0,tn.clamp)(k,w,b),d.call(this,m,O,k,{e:t,node:s,size:C,handle:u})}render(){const{x:t,y:n,w:o,h:a,isDraggable:s,isResizable:l,droppingPosition:u,useCSSTransforms:d}=this.props,h=(0,tn.calcGridItemPosition)(this.getPositionParams(),t,n,o,a,this.state),y=xi.default.Children.only(this.props.children);let m=xi.default.cloneElement(y,{ref:this.elementRef,className:(0,g2.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":s,"react-draggable-dragging":!!this.state.dragging,dropping:!!u,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(h)}});return m=this.mixinResizable(m,h,l),m=this.mixinDraggable(m,s),m}}Pl.default=nf,Ir(nf,"propTypes",{children:ct.default.element,cols:ct.default.number.isRequired,containerWidth:ct.default.number.isRequired,rowHeight:ct.default.number.isRequired,margin:ct.default.array.isRequired,maxRows:ct.default.number.isRequired,containerPadding:ct.default.array.isRequired,x:ct.default.number.isRequired,y:ct.default.number.isRequired,w:ct.default.number.isRequired,h:ct.default.number.isRequired,minW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minWidth not Number");if(n>e.w||n>e.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxWidth not Number");if(n<e.w||n<e.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minHeight not Number");if(n>e.h||n>e.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxHeight not Number");if(n<e.h||n<e.minH)return new Error("maxHeight smaller than item height/minHeight")},i:ct.default.string.isRequired,resizeHandles:U0.resizeHandleAxesType,resizeHandle:U0.resizeHandleType,onDragStop:ct.default.func,onDragStart:ct.default.func,onDrag:ct.default.func,onResizeStop:ct.default.func,onResizeStart:ct.default.func,onResize:ct.default.func,isDraggable:ct.default.bool.isRequired,isResizable:ct.default.bool.isRequired,isBounded:ct.default.bool.isRequired,static:ct.default.bool,useCSSTransforms:ct.default.bool.isRequired,transformScale:ct.default.number,className:ct.default.string,handle:ct.default.string,cancel:ct.default.string,droppingPosition:ct.default.shape({e:ct.default.object.isRequired,left:ct.default.number.isRequired,top:ct.default.number.isRequired})}),Ir(nf,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=void 0;var Po=w2(X),rf=Id,v2=of(kd),Ne=Qe,b2=_r,H0=of(Pl),x2=of(zr);function of(e){return e&&e.__esModule?e:{default:e}}function G0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(G0=function(o){return o?n:t})(e)}function w2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=G0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function cn(e,t,n){return t=S2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S2(e){var t=C2(e,"string");return typeof t=="symbol"?t:String(t)}function C2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const q0="react-grid-layout";let V0=!1;try{V0=/firefox/i.test(navigator.userAgent)}catch{}class Nl extends Po.Component{constructor(){super(...arguments),cn(this,"state",{activeDrag:null,layout:(0,Ne.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,Ne.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),cn(this,"dragEnterCounter",0),cn(this,"onDragStart",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);if(!d)return;const h={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,Ne.cloneLayoutItem)(d),oldLayout:u,activeDrag:h}),this.props.onDragStart(u,d,d,null,s,l)}),cn(this,"onDrag",(t,n,o,a)=>{let{e:s,node:l}=a;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,allowOverlap:y,preventCollision:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;const w={w:b.w,h:b.h,x:b.x,y:b.y,placeholder:!0,i:t};d=(0,Ne.moveElement)(d,b,n,o,!0,m,(0,Ne.compactType)(this.props),h,y),this.props.onDrag(d,u,b,w,s,l),this.setState({layout:y?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h),activeDrag:w})}),cn(this,"onDragStop",(t,n,o,a)=>{let{e:s,node:l}=a;if(!this.state.activeDrag)return;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,preventCollision:y,allowOverlap:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;d=(0,Ne.moveElement)(d,b,n,o,!0,y,(0,Ne.compactType)(this.props),h,m);const S=m?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h);this.props.onDragStop(S,u,b,null,s,l);const{oldLayout:E}=this.state;this.setState({activeDrag:null,layout:S,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(S,E)}),cn(this,"onResizeStart",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);d&&(this.setState({oldResizeItem:(0,Ne.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(u,d,d,null,s,l))}),cn(this,"onResize",(t,n,o,a)=>{let{e:s,node:l,size:u,handle:d}=a;const{oldResizeItem:h}=this.state,{layout:y}=this.state,{cols:m,preventCollision:b,allowOverlap:w}=this.props;let S=!1,E,P,C;const[O,k]=(0,Ne.withLayoutItem)(y,t,$=>{let B;return P=$.x,C=$.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(P=$.x+($.w-n),n=$.x!==P&&P<0?$.w:n,P=P<0?0:P),["ne","n","nw"].indexOf(d)!==-1&&(C=$.y+($.h-o),o=$.y!==C&&C<0?$.h:o,C=C<0?0:C),S=!0),b&&!w&&(B=(0,Ne.getAllCollisions)(y,{...$,w:n,h:o,x:P,y:C}).filter(z=>z.i!==$.i).length>0,B&&(C=$.y,o=$.h,P=$.x,n=$.w,S=!1)),$.w=n,$.h=o,$});if(!k)return;E=O,S&&(E=(0,Ne.moveElement)(O,k,P,C,!0,this.props.preventCollision,(0,Ne.compactType)(this.props),m,w));const R={w:k.w,h:k.h,x:k.x,y:k.y,static:!0,i:t};this.props.onResize(E,h,k,R,s,l),this.setState({layout:w?E:(0,Ne.compact)(E,(0,Ne.compactType)(this.props),m),activeDrag:R})}),cn(this,"onResizeStop",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u,oldResizeItem:d}=this.state,{cols:h,allowOverlap:y}=this.props,m=(0,Ne.getLayoutItem)(u,t),b=y?u:(0,Ne.compact)(u,(0,Ne.compactType)(this.props),h);this.props.onResizeStop(b,d,m,null,s,l);const{oldLayout:w}=this.state;this.setState({activeDrag:null,layout:b,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(b,w)}),cn(this,"onDragOver",t=>{var O;if(t.preventDefault(),t.stopPropagation(),V0&&!((O=t.nativeEvent.target)!=null&&O.classList.contains(q0)))return!1;const{droppingItem:n,onDropDragOver:o,margin:a,cols:s,rowHeight:l,maxRows:u,width:d,containerPadding:h,transformScale:y}=this.props,m=o==null?void 0:o(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const b={...n,...m},{layout:w}=this.state,S=t.currentTarget.getBoundingClientRect(),E=t.clientX-S.left,P=t.clientY-S.top,C={left:E/y,top:P/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:k,top:R}=this.state.droppingPosition;(k!=E||R!=P)&&this.setState({droppingPosition:C})}}else{const k={cols:s,margin:a,maxRows:u,rowHeight:l,containerWidth:d,containerPadding:h||a},R=(0,b2.calcXY)(k,P,E,b.w,b.h);this.setState({droppingDOMNode:Po.createElement("div",{key:b.i}),droppingPosition:C,layout:[...w,{...b,x:R.x,y:R.y,static:!1,isDraggable:!0}]})}}),cn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:o}=this.state,a=(0,Ne.compact)(o.filter(s=>s.i!==t.i),(0,Ne.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),cn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),cn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),cn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:o}=this.state,a=o.find(s=>s.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(o,a,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let o;return n.activeDrag?null:(!(0,rf.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?o=t.layout:(0,Ne.childrenEqual)(t.children,n.children)||(o=n.layout),o?{layout:(0,Ne.synchronizeLayoutWithChildren)(o,t.children,t.cols,(0,Ne.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,Ne.fastRGLPropsEqual)(this.props,t,rf.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const o=this.state.layout,a=n.layout;this.onLayoutMaybeChanged(o,a)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,Ne.bottom)(this.state.layout),n=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+n*2+"px"}onLayoutMaybeChanged(t,n){n||(n=this.state.layout),(0,rf.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:o,margin:a,containerPadding:s,rowHeight:l,maxRows:u,useCSSTransforms:d,transformScale:h}=this.props;return Po.createElement(H0.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:o,margin:a,containerPadding:s||a,maxRows:u,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:h},Po.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const o=(0,Ne.getLayoutItem)(this.state.layout,String(t.key));if(!o)return null;const{width:a,cols:s,margin:l,containerPadding:u,rowHeight:d,maxRows:h,isDraggable:y,isResizable:m,isBounded:b,useCSSTransforms:w,transformScale:S,draggableCancel:E,draggableHandle:P,resizeHandles:C,resizeHandle:O}=this.props,{mounted:k,droppingPosition:R}=this.state,$=typeof o.isDraggable=="boolean"?o.isDraggable:!o.static&&y,B=typeof o.isResizable=="boolean"?o.isResizable:!o.static&&m,M=o.resizeHandles||C,z=$&&b&&o.isBounded!==!1;return Po.createElement(H0.default,{containerWidth:a,cols:s,margin:l,containerPadding:u||l,maxRows:h,rowHeight:d,cancel:E,handle:P,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:$,isResizable:B,isBounded:z,useCSSTransforms:w&&k,usePercentages:!k,transformScale:S,w:o.w,h:o.h,x:o.x,y:o.y,i:o.i,minH:o.minH,minW:o.minW,maxH:o.maxH,maxW:o.maxW,static:o.static,droppingPosition:n?R:void 0,resizeHandles:M,resizeHandle:O},t)}render(){const{className:t,style:n,isDroppable:o,innerRef:a}=this.props,s=(0,v2.default)(q0,t),l={height:this.containerHeight(),...n};return Po.createElement("div",{ref:a,className:s,style:l,onDrop:o?this.onDrop:Ne.noop,onDragLeave:o?this.onDragLeave:Ne.noop,onDragEnter:o?this.onDragEnter:Ne.noop,onDragOver:o?this.onDragOver:Ne.noop},Po.Children.map(this.props.children,u=>this.processGridItem(u)),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}_a.default=Nl,cn(Nl,"displayName","ReactGridLayout"),cn(Nl,"propTypes",x2.default),cn(Nl,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:Ne.noop,onDragStart:Ne.noop,onDrag:Ne.noop,onDragStop:Ne.noop,onResizeStart:Ne.noop,onResize:Ne.noop,onResizeStop:Ne.noop,onDrop:Ne.noop,onDropDragOver:Ne.noop});var Fl={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.findOrGenerateResponsiveLayout=R2,Oo.getBreakpointFromWidth=_2,Oo.getColsFromBreakpoint=E2,Oo.sortBreakpoints=af;var zl=Qe;function _2(e,t){const n=af(e);let o=n[0];for(let a=1,s=n.length;a<s;a++){const l=n[a];t>e[l]&&(o=l)}return o}function E2(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function R2(e,t,n,o,a,s){if(e[n])return(0,zl.cloneLayout)(e[n]);let l=e[o];const u=af(t),d=u.slice(u.indexOf(n));for(let h=0,y=d.length;h<y;h++){const m=d[h];if(e[m]){l=e[m];break}}return l=(0,zl.cloneLayout)(l||[]),(0,zl.compact)((0,zl.correctBounds)(l,{cols:a}),s,a)}function af(e){return Object.keys(e).sort(function(n,o){return e[n]-e[o]})}Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var Y0=k2(X),Cn=X0(Zr),sf=Id,Si=Qe,Ao=Oo,I2=X0(_a);function X0(e){return e&&e.__esModule?e:{default:e}}function K0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(K0=function(o){return o?n:t})(e)}function k2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=K0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lf.apply(this,arguments)}function Wl(e,t,n){return t=T2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2(e){var t=P2(e,"string");return typeof t=="symbol"?t:String(t)}function P2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const J0=e=>Object.prototype.toString.call(e);function Ul(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class cf extends Y0.Component{constructor(){super(...arguments),Wl(this,"state",this.generateInitialState()),Wl(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:o,cols:a}=this.props,s=(0,Ao.getBreakpointFromWidth)(n,t),l=(0,Ao.getColsFromBreakpoint)(s,a),u=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Ao.findOrGenerateResponsiveLayout)(o,n,s,s,l,u),breakpoint:s,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,sf.deepEqual)(t.layouts,n.layouts)){const{breakpoint:o,cols:a}=n;return{layout:(0,Ao.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,o,o,a,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,sf.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,sf.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:o,layouts:a,compactType:s}=this.props,l=this.props.breakpoint||(0,Ao.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,d=(0,Ao.getColsFromBreakpoint)(l,o),h={...a};if(u!==l||t.breakpoints!==n||t.cols!==o){u in h||(h[u]=(0,Si.cloneLayout)(this.state.layout));let b=(0,Ao.findOrGenerateResponsiveLayout)(h,n,l,u,d,s);b=(0,Si.synchronizeLayoutWithChildren)(b,this.props.children,d,s,this.props.allowOverlap),h[l]=b,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(b,h),this.setState({breakpoint:l,layout:b,cols:d})}const y=Ul(this.props.margin,l),m=Ul(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:o,layouts:a,margin:s,containerPadding:l,onBreakpointChange:u,onLayoutChange:d,onWidthChange:h,...y}=this.props;return Y0.createElement(I2.default,lf({},y,{margin:Ul(s,this.state.breakpoint),containerPadding:Ul(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}Fl.default=cf,Wl(cf,"propTypes",{breakpoint:Cn.default.string,breakpoints:Cn.default.object,allowOverlap:Cn.default.bool,cols:Cn.default.object,margin:Cn.default.oneOfType([Cn.default.array,Cn.default.object]),containerPadding:Cn.default.oneOfType([Cn.default.array,Cn.default.object]),layouts(e,t){if(J0(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+J0(e[t]));Object.keys(e[t]).forEach(n=>{if(!(n in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,Si.validateLayout)(e.layouts[n],"layouts."+n)})},width:Cn.default.number.isRequired,onBreakpointChange:Cn.default.func,onLayoutChange:Cn.default.func,onWidthChange:Cn.default.func}),Wl(cf,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:Si.noop,onLayoutChange:Si.noop,onWidthChange:Si.noop});var uf={},Z0=function(){if(typeof Map<"u")return Map;function e(t,n){var o=-1;return t.some(function(a,s){return a[0]===n?(o=s,!0):!1}),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var o=e(this.__entries__,n),a=this.__entries__[o];return a&&a[1]},t.prototype.set=function(n,o){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=o:this.__entries__.push([n,o])},t.prototype.delete=function(n){var o=this.__entries__,a=e(o,n);~a&&o.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var a=0,s=this.__entries__;a<s.length;a++){var l=s[a];n.call(o,l[1],l[0])}},t}()}(),df=typeof window<"u"&&typeof document<"u"&&window.document===document,Hl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),O2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),A2=2;function M2(e,t){var n=!1,o=!1,a=0;function s(){n&&(n=!1,e()),o&&u()}function l(){O2(s)}function u(){var d=Date.now();if(n){if(d-a<A2)return;o=!0}else n=!0,o=!1,setTimeout(l,t);a=d}return u}var $2=20,D2=["top","right","bottom","left","width","height","size","weight"],B2=typeof MutationObserver<"u",L2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=M2(this.refresh.bind(this),$2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,o=n.indexOf(t);~o&&n.splice(o,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!df||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!df||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,a=D2.some(function(s){return!!~o.indexOf(s)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Q0=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var a=o[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Ci=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hl},ey=ql(0,0,0,0);function Gl(e){return parseFloat(e)||0}function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(o,a){var s=e["border-"+a+"-width"];return o+Gl(s)},0)}function j2(e){for(var t=["top","right","bottom","left"],n={},o=0,a=t;o<a.length;o++){var s=a[o],l=e["padding-"+s];n[s]=Gl(l)}return n}function N2(e){var t=e.getBBox();return ql(0,0,t.width,t.height)}function F2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ey;var o=Ci(e).getComputedStyle(e),a=j2(o),s=a.left+a.right,l=a.top+a.bottom,u=Gl(o.width),d=Gl(o.height);if(o.boxSizing==="border-box"&&(Math.round(u+s)!==t&&(u-=ty(o,"left","right")+s),Math.round(d+l)!==n&&(d-=ty(o,"top","bottom")+l)),!W2(e)){var h=Math.round(u+s)-t,y=Math.round(d+l)-n;Math.abs(h)!==1&&(u-=h),Math.abs(y)!==1&&(d-=y)}return ql(a.left,a.top,u,d)}var z2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ci(e).SVGGraphicsElement}:function(e){return e instanceof Ci(e).SVGElement&&typeof e.getBBox=="function"}}();function W2(e){return e===Ci(e).document.documentElement}function U2(e){return df?z2(e)?N2(e):F2(e):ey}function H2(e){var t=e.x,n=e.y,o=e.width,a=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(s.prototype);return Q0(l,{x:t,y:n,width:o,height:a,top:n,right:t+o,bottom:a+n,left:t}),l}function ql(e,t,n,o){return{x:e,y:t,width:n,height:o}}var G2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ql(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=U2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),q2=function(){function e(t,n){var o=H2(n);Q0(this,{target:t,contentRect:o})}return e}(),V2=function(){function e(t,n,o){if(this.activeObservations_=[],this.observations_=new Z0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new G2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new q2(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ny=typeof WeakMap<"u"?new WeakMap:new Z0,ry=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=L2.getInstance(),o=new V2(t,n,this);ny.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ry.prototype[e]=function(){var t;return(t=ny.get(this))[e].apply(t,arguments)}});var Y2=function(){return typeof Hl.ResizeObserver<"u"?Hl.ResizeObserver:ry}();const X2=Va(Object.freeze(Object.defineProperty({__proto__:null,default:Y2},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(uf,"__esModule",{value:!0}),uf.default=rO;var Vl=Q2(X),K2=ff(Zr),J2=ff(X2),Z2=ff(kd);function ff(e){return e&&e.__esModule?e:{default:e}}function oy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oy=function(o){return o?n:t})(e)}function Q2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oy(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)}function _i(e,t,n){return t=eO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eO(e){var t=tO(e,"string");return typeof t=="symbol"?t:String(t)}function tO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const nO="react-grid-layout";function rO(e){var t;return t=class extends Vl.Component{constructor(){super(...arguments),_i(this,"state",{width:1280}),_i(this,"elementRef",Vl.createRef()),_i(this,"mounted",!1),_i(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new J2.default(a=>{if(this.elementRef.current instanceof HTMLElement){const l=a[0].contentRect.width;this.setState({width:l})}});const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.observe(o)}componentWillUnmount(){this.mounted=!1;const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.unobserve(o),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:o,...a}=this.props;return o&&!this.mounted?Vl.createElement("div",{className:(0,Z2.default)(this.props.className,nO),style:this.props.style,ref:this.elementRef}):Vl.createElement(e,pf({innerRef:this.elementRef},a,this.state))}},_i(t,"defaultProps",{measureBeforeMount:!1}),_i(t,"propTypes",{measureBeforeMount:K2.default.bool}),t}(function(e){e.exports=_a.default,e.exports.utils=Qe,e.exports.calculateUtils=_r,e.exports.Responsive=Fl.default,e.exports.Responsive.utils=Oo,e.exports.WidthProvider=uf.default})(l0);var iy=l0.exports;const oO=Tp(iy);class iO extends X.Component{constructor(t){super(t),this.state={hasError:!1,message:null}}static getDerivedStateFromError(t){return{hasError:!0,message:t.stack}}render(){if(this.state.hasError&&this.props.fallbackConfig){const t=v.jsx(xd,{componentId:this.props.componentId,message:this.state.message||"",onUndo:this.props.fallbackConfig.onUndo(this.props.componentId),onRedo:this.props.fallbackConfig.onRedo(this.props.componentId),onDelete:this.props.fallbackConfig.onDelete(this.props.componentId),onCodeEdit:this.props.fallbackConfig.onCodeEdit(this.props.componentId,this.state.message)});return this.resetState(),t}return this.props.children}resetState(){this.state={hasError:!1,message:null}}}const aO=X.forwardRef(({style:e,className:t,onMouseDown:n,onMouseUp:o,onTouchEnd:a,children:s,component:l,componentId:u,fallbackConfig:d,controls:h},y)=>{const{selectedComponentId:m}=wn(),[b,w]=X.useState(!1),S=X.useMemo(()=>m===u,[m]);return v.jsxs("div",{style:{...e},className:t+(S?" selected":""),ref:y,onMouseDown:n,onMouseUp:o,onTouchEnd:a,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[v.jsx("div",{className:"grid-item "+(S?"selected":""),children:v.jsxs(iO,{componentId:u,fallbackConfig:d,children:[b&&h,l]})}),s]})}),hf=iy.WidthProvider(oO);var Yl=(e=>(e[e.EditMode=0]="EditMode",e[e.PreviewMode=1]="PreviewMode",e))(Yl||{});const sO=nt.div`
|
|
915
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&k0(e.body,"react-draggable-transparent-selection")}function mP(e){if(e)try{if(e.body&&T0(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function k0(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function T0(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.canDragX=bP,Rr.canDragY=xP,Rr.createCoreData=SP,Rr.createDraggableData=CP,Rr.getBoundPosition=yP,Rr.getControlPosition=wP,Rr.snapToGrid=vP;var Mn=Er,bi=Bt;function yP(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:o}=e.props;o=typeof o=="string"?o:_P(o);const a=Wd(e);if(typeof o=="string"){const{ownerDocument:s}=a,l=s.defaultView;let u;if(o==="parent"?u=a.parentNode:u=s.querySelector(o),!(u instanceof l.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const d=u,h=l.getComputedStyle(a),y=l.getComputedStyle(d);o={left:-a.offsetLeft+(0,Mn.int)(y.paddingLeft)+(0,Mn.int)(h.marginLeft),top:-a.offsetTop+(0,Mn.int)(y.paddingTop)+(0,Mn.int)(h.marginTop),right:(0,bi.innerWidth)(d)-(0,bi.outerWidth)(a)-a.offsetLeft+(0,Mn.int)(y.paddingRight)-(0,Mn.int)(h.marginRight),bottom:(0,bi.innerHeight)(d)-(0,bi.outerHeight)(a)-a.offsetTop+(0,Mn.int)(y.paddingBottom)-(0,Mn.int)(h.marginBottom)}}return(0,Mn.isNum)(o.right)&&(t=Math.min(t,o.right)),(0,Mn.isNum)(o.bottom)&&(n=Math.min(n,o.bottom)),(0,Mn.isNum)(o.left)&&(t=Math.max(t,o.left)),(0,Mn.isNum)(o.top)&&(n=Math.max(n,o.top)),[t,n]}function vP(e,t,n){const o=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[o,a]}function bP(e){return e.props.axis==="both"||e.props.axis==="x"}function xP(e){return e.props.axis==="both"||e.props.axis==="y"}function wP(e,t,n){const o=typeof t=="number"?(0,bi.getTouch)(e,t):null;if(typeof t=="number"&&!o)return null;const a=Wd(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,bi.offsetXYFromParent)(o||e,s,n.props.scale)}function SP(e,t,n){const o=!(0,Mn.isNum)(e.lastX),a=Wd(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function CP(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function _P(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Wd(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Ml={},$l={};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=EP;function EP(){}Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var Ud=IP(Y),Sn=Gd(Zr),RP=Gd(mo),ln=Bt,no=Rr,Hd=Er,Ia=Gd($l);function Gd(e){return e&&e.__esModule?e:{default:e}}function P0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(P0=function(o){return o?n:t})(e)}function IP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=P0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function hn(e,t,n){return t=kP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e){var t=TP(e,"string");return typeof t=="symbol"?t:String(t)}function TP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const lr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ro=lr.mouse,Dl=class extends Ud.Component{constructor(){super(...arguments),hn(this,"dragging",!1),hn(this,"lastX",NaN),hn(this,"lastY",NaN),hn(this,"touchIdentifier",null),hn(this,"mounted",!1),hn(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:o}=n;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const a=(0,ln.getTouchIdentifier)(t);this.touchIdentifier=a;const s=(0,no.getControlPosition)(t,a,this);if(s==null)return;const{x:l,y:u}=s,d=(0,no.createCoreData)(this,l,u);(0,Ia.default)("DraggableCore: handleDragStart: %j",d),(0,Ia.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ln.addUserSelectStyles)(o),this.dragging=!0,this.lastX=l,this.lastY=u,(0,ln.addEvent)(o,ro.move,this.handleDrag),(0,ln.addEvent)(o,ro.stop,this.handleDragStop))}),hn(this,"handleDrag",t=>{const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:a}=n;if(Array.isArray(this.props.grid)){let u=o-this.lastX,d=a-this.lastY;if([u,d]=(0,no.snapToGrid)(this.props.grid,u,d),!u&&!d)return;o=this.lastX+u,a=this.lastY+d}const s=(0,no.createCoreData)(this,o,a);if((0,Ia.default)("DraggableCore: handleDrag: %j",s),this.props.onDrag(t,s)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(d)}return}this.lastX=o,this.lastY=a}),hn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:a}=n;if(Array.isArray(this.props.grid)){let d=o-this.lastX||0,h=a-this.lastY||0;[d,h]=(0,no.snapToGrid)(this.props.grid,d,h),o=this.lastX+d,a=this.lastY+h}const s=(0,no.createCoreData)(this,o,a);if(this.props.onStop(t,s)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(u.ownerDocument),(0,Ia.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,Ia.default)("DraggableCore: Removing handlers"),(0,ln.removeEvent)(u.ownerDocument,ro.move,this.handleDrag),(0,ln.removeEvent)(u.ownerDocument,ro.stop,this.handleDragStop))}),hn(this,"onMouseDown",t=>(ro=lr.mouse,this.handleDragStart(t))),hn(this,"onMouseUp",t=>(ro=lr.mouse,this.handleDragStop(t))),hn(this,"onTouchStart",t=>(ro=lr.touch,this.handleDragStart(t))),hn(this,"onTouchEnd",t=>(ro=lr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,ln.addEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,ln.removeEvent)(n,lr.mouse.move,this.handleDrag),(0,ln.removeEvent)(n,lr.touch.move,this.handleDrag),(0,ln.removeEvent)(n,lr.mouse.stop,this.handleDragStop),(0,ln.removeEvent)(n,lr.touch.stop,this.handleDragStop),(0,ln.removeEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:RP.default.findDOMNode(this)}render(){return Ud.cloneElement(Ud.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Ml.default=Dl,hn(Dl,"displayName","DraggableCore"),hn(Dl,"propTypes",{allowAnyClick:Sn.default.bool,children:Sn.default.node.isRequired,disabled:Sn.default.bool,enableUserSelectHack:Sn.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Sn.default.arrayOf(Sn.default.number),handle:Sn.default.string,cancel:Sn.default.string,nodeRef:Sn.default.object,onStart:Sn.default.func,onDrag:Sn.default.func,onStop:Sn.default.func,onMouseDown:Sn.default.func,scale:Sn.default.number,className:Hd.dontSetMe,style:Hd.dontSetMe,transform:Hd.dontSetMe}),hn(Dl,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=b(Y),n=y(Zr),o=y(mo),a=y(YT),s=Bt,l=Rr,u=Er,d=y(Ml),h=y($l);function y(O){return O&&O.__esModule?O:{default:O}}function m(O){if(typeof WeakMap!="function")return null;var k=new WeakMap,I=new WeakMap;return(m=function(M){return M?I:k})(O)}function b(O,k){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var I=m(k);if(I&&I.has(O))return I.get(O);var M={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in O)if(D!=="default"&&Object.prototype.hasOwnProperty.call(O,D)){var V=B?Object.getOwnPropertyDescriptor(O,D):null;V&&(V.get||V.set)?Object.defineProperty(M,D,V):M[D]=O[D]}return M.default=O,I&&I.set(O,M),M}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var k=1;k<arguments.length;k++){var I=arguments[k];for(var M in I)Object.prototype.hasOwnProperty.call(I,M)&&(O[M]=I[M])}return O},w.apply(this,arguments)}function _(O,k,I){return k=E(k),k in O?Object.defineProperty(O,k,{value:I,enumerable:!0,configurable:!0,writable:!0}):O[k]=I,O}function E(O){var k=P(O,"string");return typeof k=="symbol"?k:String(k)}function P(O,k){if(typeof O!="object"||O===null)return O;var I=O[Symbol.toPrimitive];if(I!==void 0){var M=I.call(O,k||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(O)}class S extends t.Component{static getDerivedStateFromProps(k,I){let{position:M}=k,{prevPropsPosition:B}=I;return M&&(!B||M.x!==B.x||M.y!==B.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:M,prevPropsPosition:B}),{x:M.x,y:M.y,prevPropsPosition:{...M}}):null}constructor(k){super(k),_(this,"onDragStart",(I,M)=>{if((0,h.default)("Draggable: onDragStart: %j",M),this.props.onStart(I,(0,l.createDraggableData)(this,M))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(I,M)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",M);const B=(0,l.createDraggableData)(this,M),D={x:B.x,y:B.y,slackX:0,slackY:0};if(this.props.bounds){const{x:U,y:C}=D;D.x+=this.state.slackX,D.y+=this.state.slackY;const[G,Z]=(0,l.getBoundPosition)(this,D.x,D.y);D.x=G,D.y=Z,D.slackX=this.state.slackX+(U-D.x),D.slackY=this.state.slackY+(C-D.y),B.x=D.x,B.y=D.y,B.deltaX=D.x-this.state.x,B.deltaY=D.y-this.state.y}if(this.props.onDrag(I,B)===!1)return!1;this.setState(D)}),_(this,"onDragStop",(I,M)=>{if(!this.state.dragging||this.props.onStop(I,(0,l.createDraggableData)(this,M))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",M);const D={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:U,y:C}=this.props.position;D.x=U,D.y=C}this.setState(D)}),this.state={dragging:!1,dragged:!1,x:k.position?k.position.x:k.defaultPosition.x,y:k.position?k.position.y:k.defaultPosition.y,prevPropsPosition:{...k.position},slackX:0,slackY:0,isElementSVG:!1},k.position&&!(k.onDrag||k.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var k,I;return(k=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&k!==void 0?k:o.default.findDOMNode(this)}render(){const{axis:k,bounds:I,children:M,defaultPosition:B,defaultClassName:D,defaultClassNameDragging:V,defaultClassNameDragged:U,position:C,positionOffset:G,scale:Z,...H}=this.props;let K={},te=null;const de=!!!C||this.state.dragging,he=C||B,be={x:(0,l.canDragX)(this)&&de?this.state.x:he.x,y:(0,l.canDragY)(this)&&de?this.state.y:he.y};this.state.isElementSVG?te=(0,s.createSVGTransform)(be,G):K=(0,s.createCSSTransform)(be,G);const we=(0,a.default)(M.props.className||"",D,{[V]:this.state.dragging,[U]:this.state.dragged});return t.createElement(d.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(M),{className:we,style:{...M.props.style,...K},transform:te}))}}e.default=S,_(S,"displayName","Draggable"),_(S,"propTypes",{...d.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),_(S,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(x0);const{default:O0,DraggableCore:PP}=x0;Ol.exports=O0,Ol.exports.default=O0,Ol.exports.DraggableCore=PP;var A0=Ol.exports,Bl={exports:{}},ka={},qd={};qd.__esModule=!0,qd.cloneElement=BP;var OP=AP(Y);function AP(e){return e&&e.__esModule?e:{default:e}}function M0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function $0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(n),!0).forEach(function(o){MP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function MP(e,t,n){return t=$P(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){var t=DP(e,"string");return typeof t=="symbol"?t:String(t)}function DP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BP(e,t){return t.style&&e.props.style&&(t.style=$0($0({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),OP.default.cloneElement(e,t)}var Ta={};Ta.__esModule=!0,Ta.resizableProps=void 0;var Ue=LP(Zr);function LP(e){return e&&e.__esModule?e:{default:e}}var jP={axis:Ue.default.oneOf(["both","x","y","none"]),className:Ue.default.string,children:Ue.default.element.isRequired,draggableOpts:Ue.default.shape({allowAnyClick:Ue.default.bool,cancel:Ue.default.string,children:Ue.default.node,disabled:Ue.default.bool,enableUserSelectHack:Ue.default.bool,offsetParent:Ue.default.node,grid:Ue.default.arrayOf(Ue.default.number),handle:Ue.default.string,nodeRef:Ue.default.object,onStart:Ue.default.func,onDrag:Ue.default.func,onStop:Ue.default.func,onMouseDown:Ue.default.func,scale:Ue.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a=n[0];if(a.axis==="both"||a.axis==="y"){var s;return(s=Ue.default.number).isRequired.apply(s,n)}return Ue.default.number.apply(Ue.default,n)},handle:Ue.default.oneOfType([Ue.default.node,Ue.default.func]),handleSize:Ue.default.arrayOf(Ue.default.number),lockAspectRatio:Ue.default.bool,maxConstraints:Ue.default.arrayOf(Ue.default.number),minConstraints:Ue.default.arrayOf(Ue.default.number),onResizeStop:Ue.default.func,onResizeStart:Ue.default.func,onResize:Ue.default.func,resizeHandles:Ue.default.arrayOf(Ue.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ue.default.number,width:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a=n[0];if(a.axis==="both"||a.axis==="x"){var s;return(s=Ue.default.number).isRequired.apply(s,n)}return Ue.default.number.apply(Ue.default,n)}};Ta.resizableProps=jP,ka.__esModule=!0,ka.default=void 0;var Pa=UP(Y),NP=A0,FP=qd,zP=Ta,WP=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function D0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(D0=function(a){return a?n:t})(e)}function UP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=D0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Vd.apply(this,arguments)}function HP(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function B0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B0(Object(n),!0).forEach(function(o){GP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function GP(e,t,n){return t=qP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qP(e){var t=VP(e,"string");return typeof t=="symbol"?t:String(t)}function VP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xd(e,t)}function Xd(e,t){return Xd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Xd(e,t)}var Kd=function(e){YP(t,e);function t(){for(var o,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=e.call.apply(e,[this].concat(s))||this,o.handleRefs={},o.lastHandleRect=null,o.slack=null,o}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(a,s){var l=this.props,u=l.minConstraints,d=l.maxConstraints,h=l.lockAspectRatio;if(!u&&!d&&!h)return[a,s];if(h){var y=this.props.width/this.props.height,m=a-this.props.width,b=s-this.props.height;Math.abs(m)>Math.abs(b*y)?s=a/y:a=s*y}var w=a,_=s,E=this.slack||[0,0],P=E[0],S=E[1];return a+=P,s+=S,u&&(a=Math.max(u[0],a),s=Math.max(u[1],s)),d&&(a=Math.min(d[0],a),s=Math.min(d[1],s)),this.slack=[P+(w-a),S+(_-s)],[a,s]},n.resizeHandler=function(a,s){var l=this;return function(u,d){var h=d.node,y=d.deltaX,m=d.deltaY;a==="onResizeStart"&&l.resetData();var b=(l.props.axis==="both"||l.props.axis==="x")&&s!=="n"&&s!=="s",w=(l.props.axis==="both"||l.props.axis==="y")&&s!=="e"&&s!=="w";if(!(!b&&!w)){var _=s[0],E=s[s.length-1],P=h.getBoundingClientRect();if(l.lastHandleRect!=null){if(E==="w"){var S=P.left-l.lastHandleRect.left;y+=S}if(_==="n"){var O=P.top-l.lastHandleRect.top;m+=O}}l.lastHandleRect=P,E==="w"&&(y=-y),_==="n"&&(m=-m);var k=l.props.width+(b?y/l.props.transformScale:0),I=l.props.height+(w?m/l.props.transformScale:0),M=l.runConstraints(k,I);k=M[0],I=M[1];var B=k!==l.props.width||I!==l.props.height,D=typeof l.props[a]=="function"?l.props[a]:null,V=a==="onResize"&&!B;D&&!V&&(u.persist==null||u.persist(),D(u,{node:h,size:{width:k,height:I},handle:s})),a==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(a,s){var l=this.props.handle;if(!l)return Pa.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:s});if(typeof l=="function")return l(a,s);var u=typeof l.type=="string",d=Yd({ref:s},u?{}:{handleAxis:a});return Pa.cloneElement(l,d)},n.render=function(){var a=this,s=this.props,l=s.children,u=s.className,d=s.draggableOpts;s.width,s.height,s.handle,s.handleSize,s.lockAspectRatio,s.axis,s.minConstraints,s.maxConstraints,s.onResize,s.onResizeStop,s.onResizeStart;var h=s.resizeHandles;s.transformScale;var y=HP(s,WP);return(0,FP.cloneElement)(l,Yd(Yd({},y),{},{className:(u?u+" ":"")+"react-resizable",children:[].concat(l.props.children,h.map(function(m){var b,w=(b=a.handleRefs[m])!=null?b:a.handleRefs[m]=Pa.createRef();return Pa.createElement(NP.DraggableCore,Vd({},d,{nodeRef:w,key:"resizableHandle-"+m,onStop:a.resizeHandler("onResizeStop",m),onStart:a.resizeHandler("onResizeStart",m),onDrag:a.resizeHandler("onResize",m)}),a.renderResizeHandle(m,w))}))}))},t}(Pa.Component);ka.default=Kd,Kd.propTypes=zP.resizableProps,Kd.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Ll={};Ll.__esModule=!0,Ll.default=void 0;var Jd=QP(Y),XP=L0(Zr),KP=L0(ka),JP=Ta,ZP=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function L0(e){return e&&e.__esModule?e:{default:e}}function j0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(j0=function(a){return a?n:t})(e)}function QP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=j0(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zd.apply(this,arguments)}function N0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(n),!0).forEach(function(o){e2(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function e2(e,t,n){return t=t2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(e){var t=n2(e,"string");return typeof t=="symbol"?t:String(t)}function n2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r2(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function o2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qd(e,t)}function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Qd(e,t)}var F0=function(e){o2(t,e);function t(){for(var o,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=e.call.apply(e,[this].concat(s))||this,o.state={width:o.props.width,height:o.props.height,propsWidth:o.props.width,propsHeight:o.props.height},o.onResize=function(u,d){var h=d.size;o.props.onResize?(u.persist==null||u.persist(),o.setState(h,function(){return o.props.onResize&&o.props.onResize(u,d)})):o.setState(h)},o}t.getDerivedStateFromProps=function(a,s){return s.propsWidth!==a.width||s.propsHeight!==a.height?{width:a.width,height:a.height,propsWidth:a.width,propsHeight:a.height}:null};var n=t.prototype;return n.render=function(){var a=this.props,s=a.handle,l=a.handleSize;a.onResize;var u=a.onResizeStart,d=a.onResizeStop,h=a.draggableOpts,y=a.minConstraints,m=a.maxConstraints,b=a.lockAspectRatio,w=a.axis;a.width,a.height;var _=a.resizeHandles,E=a.style,P=a.transformScale,S=r2(a,ZP);return Jd.createElement(KP.default,{axis:w,draggableOpts:h,handle:s,handleSize:l,height:this.state.height,lockAspectRatio:b,maxConstraints:m,minConstraints:y,onResizeStart:u,onResize:this.onResize,onResizeStop:d,resizeHandles:_,transformScale:P,width:this.state.width},Jd.createElement("div",Zd({},S,{style:jl(jl({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Jd.Component);Ll.default=F0,F0.propTypes=jl(jl({},JP.resizableProps),{},{children:XP.default.element}),Bl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Bl.exports.Resizable=ka.default,Bl.exports.ResizableBox=Ll.default;var i2=Bl.exports,zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.resizeHandleType=zr.resizeHandleAxesType=zr.default=void 0;var Ye=z0(Zr),a2=z0(Y);function z0(e){return e&&e.__esModule?e:{default:e}}const s2=zr.resizeHandleAxesType=Ye.default.arrayOf(Ye.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),l2=zr.resizeHandleType=Ye.default.oneOfType([Ye.default.node,Ye.default.func]);zr.default={className:Ye.default.string,style:Ye.default.object,width:Ye.default.number,autoSize:Ye.default.bool,cols:Ye.default.number,draggableCancel:Ye.default.string,draggableHandle:Ye.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ye.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ye.default.arrayOf(Ye.default.number),containerPadding:Ye.default.arrayOf(Ye.default.number),rowHeight:Ye.default.number,maxRows:Ye.default.number,isBounded:Ye.default.bool,isDraggable:Ye.default.bool,isResizable:Ye.default.bool,allowOverlap:Ye.default.bool,preventCollision:Ye.default.bool,useCSSTransforms:Ye.default.bool,transformScale:Ye.default.number,isDroppable:Ye.default.bool,resizeHandles:s2,resizeHandle:l2,onLayoutChange:Ye.default.func,onDragStart:Ye.default.func,onDrag:Ye.default.func,onDragStop:Ye.default.func,onResizeStart:Ye.default.func,onResize:Ye.default.func,onResizeStop:Ye.default.func,onDrop:Ye.default.func,droppingItem:Ye.default.shape({i:Ye.default.string.isRequired,w:Ye.default.number.isRequired,h:Ye.default.number.isRequired}),children:function(e,t){const n=e[t],o={};a2.default.Children.forEach(n,function(a){if((a==null?void 0:a.key)!=null){if(o[a.key])throw new Error('Duplicate child key "'+a.key+'" found! This will cause problems in ReactGridLayout.');o[a.key]=!0}})},innerRef:Ye.default.any},Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var xi=ef(Y),ct=ef(Zr),c2=A0,u2=i2,wi=Qe,tn=_r,W0=zr,d2=ef(Id);function ef(e){return e&&e.__esModule?e:{default:e}}function Ir(e,t,n){return t=f2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f2(e){var t=p2(e,"string");return typeof t=="symbol"?t:String(t)}function p2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tf extends xi.default.Component{constructor(){super(...arguments),Ir(this,"state",{resizing:null,dragging:null,className:""}),Ir(this,"elementRef",xi.default.createRef()),Ir(this,"onDragStart",(t,n)=>{let{node:o}=n;const{onDragStart:a,transformScale:s}=this.props;if(!a)return;const l={top:0,left:0},{offsetParent:u}=o;if(!u)return;const d=u.getBoundingClientRect(),h=o.getBoundingClientRect(),y=h.left/s,m=d.left/s,b=h.top/s,w=d.top/s;l.left=y-m+u.scrollLeft,l.top=b-w+u.scrollTop,this.setState({dragging:l});const{x:_,y:E}=(0,tn.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return a.call(this,this.props.i,_,E,{e:t,node:o,newPosition:l})}),Ir(this,"onDrag",(t,n)=>{let{node:o,deltaX:a,deltaY:s}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let u=this.state.dragging.top+s,d=this.state.dragging.left+a;const{isBounded:h,i:y,w:m,h:b,containerWidth:w}=this.props,_=this.getPositionParams();if(h){const{offsetParent:O}=o;if(O){const{margin:k,rowHeight:I,containerPadding:M}=this.props,B=O.clientHeight-(0,tn.calcGridItemWHPx)(b,I,k[1]);u=(0,tn.clamp)(u-M[1],0,B);const D=(0,tn.calcGridColWidth)(_),V=w-(0,tn.calcGridItemWHPx)(m,D,k[0]);d=(0,tn.clamp)(d-M[0],0,V)}}const E={top:u,left:d};this.setState({dragging:E});const{x:P,y:S}=(0,tn.calcXY)(_,u,d,m,b);return l.call(this,y,P,S,{e:t,node:o,newPosition:E})}),Ir(this,"onDragStop",(t,n)=>{let{node:o}=n;const{onDragStop:a}=this.props;if(!a)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:s,h:l,i:u}=this.props,{left:d,top:h}=this.state.dragging,y={top:h,left:d};this.setState({dragging:null});const{x:m,y:b}=(0,tn.calcXY)(this.getPositionParams(),h,d,s,l);return a.call(this,u,m,b,{e:t,node:o,newPosition:y})}),Ir(this,"onResizeStop",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStop")),Ir(this,"onResizeStart",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStart")),Ir(this,"onResize",(t,n,o)=>this.onResizeHandler(t,n,o,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const o=(0,tn.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),a=(0,tn.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,wi.fastPositionEqual)(o,a)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const o=this.elementRef.current;if(!o)return;const a=t.droppingPosition||{left:0,top:0},{dragging:s}=this.state,l=s&&n.left!==a.left||n.top!==a.top;if(!s)this.onDragStart(n.e,{node:o,deltaX:n.left,deltaY:n.top});else if(l){const u=n.left-s.left,d=n.top-s.top;this.onDrag(n.e,{node:o,deltaX:u,deltaY:d})}}getPositionParams(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){const{usePercentages:n,containerWidth:o,useCSSTransforms:a}=this.props;let s;return a?s=(0,wi.setTransform)(t):(s=(0,wi.setTopLeft)(t),n&&(s.left=(0,wi.perc)(t.left/o),s.width=(0,wi.perc)(t.width/o))),s}mixinDraggable(t,n){return xi.default.createElement(c2.DraggableCore,{disabled:!n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},t)}curryResizeHandler(t,n){return(o,a)=>n(o,a,t)}mixinResizable(t,n,o){const{cols:a,minW:s,minH:l,maxW:u,maxH:d,transformScale:h,resizeHandles:y,resizeHandle:m}=this.props,b=this.getPositionParams(),w=(0,tn.calcGridItemPosition)(b,0,0,a,0).width,_=(0,tn.calcGridItemPosition)(b,0,0,s,l),E=(0,tn.calcGridItemPosition)(b,0,0,u,d),P=[_.width,_.height],S=[Math.min(E.width,w),Math.min(E.height,1/0)];return xi.default.createElement(u2.Resizable,{draggableOpts:{disabled:!o},className:o?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:P,maxConstraints:S,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:h,resizeHandles:y,handle:m},t)}onResizeHandler(t,n,o,a){let{node:s,size:l,handle:u}=n;const d=this.props[a];if(!d)return;const{x:h,y,i:m,maxH:b,minH:w,containerWidth:_}=this.props,{minW:E,maxW:P}=this.props;let S=l;s&&(S=(0,wi.resizeItemInDirection)(u,o,l,_),this.setState({resizing:a==="onResizeStop"?null:S}));let{w:O,h:k}=(0,tn.calcWH)(this.getPositionParams(),S.width,S.height,h,y,u);O=(0,tn.clamp)(O,Math.max(E,1),P),k=(0,tn.clamp)(k,w,b),d.call(this,m,O,k,{e:t,node:s,size:S,handle:u})}render(){const{x:t,y:n,w:o,h:a,isDraggable:s,isResizable:l,droppingPosition:u,useCSSTransforms:d}=this.props,h=(0,tn.calcGridItemPosition)(this.getPositionParams(),t,n,o,a,this.state),y=xi.default.Children.only(this.props.children);let m=xi.default.cloneElement(y,{ref:this.elementRef,className:(0,d2.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":s,"react-draggable-dragging":!!this.state.dragging,dropping:!!u,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(h)}});return m=this.mixinResizable(m,h,l),m=this.mixinDraggable(m,s),m}}Pl.default=tf,Ir(tf,"propTypes",{children:ct.default.element,cols:ct.default.number.isRequired,containerWidth:ct.default.number.isRequired,rowHeight:ct.default.number.isRequired,margin:ct.default.array.isRequired,maxRows:ct.default.number.isRequired,containerPadding:ct.default.array.isRequired,x:ct.default.number.isRequired,y:ct.default.number.isRequired,w:ct.default.number.isRequired,h:ct.default.number.isRequired,minW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minWidth not Number");if(n>e.w||n>e.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxWidth not Number");if(n<e.w||n<e.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minHeight not Number");if(n>e.h||n>e.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxHeight not Number");if(n<e.h||n<e.minH)return new Error("maxHeight smaller than item height/minHeight")},i:ct.default.string.isRequired,resizeHandles:W0.resizeHandleAxesType,resizeHandle:W0.resizeHandleType,onDragStop:ct.default.func,onDragStart:ct.default.func,onDrag:ct.default.func,onResizeStop:ct.default.func,onResizeStart:ct.default.func,onResize:ct.default.func,isDraggable:ct.default.bool.isRequired,isResizable:ct.default.bool.isRequired,isBounded:ct.default.bool.isRequired,static:ct.default.bool,useCSSTransforms:ct.default.bool.isRequired,transformScale:ct.default.number,className:ct.default.string,handle:ct.default.string,cancel:ct.default.string,droppingPosition:ct.default.shape({e:ct.default.object.isRequired,left:ct.default.number.isRequired,top:ct.default.number.isRequired})}),Ir(tf,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=void 0;var Oo=y2(Y),nf=Rd,h2=rf(Id),Ne=Qe,g2=_r,U0=rf(Pl),m2=rf(zr);function rf(e){return e&&e.__esModule?e:{default:e}}function H0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(H0=function(o){return o?n:t})(e)}function y2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=H0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function cn(e,t,n){return t=v2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v2(e){var t=b2(e,"string");return typeof t=="symbol"?t:String(t)}function b2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const G0="react-grid-layout";let q0=!1;try{q0=/firefox/i.test(navigator.userAgent)}catch{}class Nl extends Oo.Component{constructor(){super(...arguments),cn(this,"state",{activeDrag:null,layout:(0,Ne.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,Ne.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),cn(this,"dragEnterCounter",0),cn(this,"onDragStart",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);if(!d)return;const h={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,Ne.cloneLayoutItem)(d),oldLayout:u,activeDrag:h}),this.props.onDragStart(u,d,d,null,s,l)}),cn(this,"onDrag",(t,n,o,a)=>{let{e:s,node:l}=a;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,allowOverlap:y,preventCollision:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;const w={w:b.w,h:b.h,x:b.x,y:b.y,placeholder:!0,i:t};d=(0,Ne.moveElement)(d,b,n,o,!0,m,(0,Ne.compactType)(this.props),h,y),this.props.onDrag(d,u,b,w,s,l),this.setState({layout:y?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h),activeDrag:w})}),cn(this,"onDragStop",(t,n,o,a)=>{let{e:s,node:l}=a;if(!this.state.activeDrag)return;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,preventCollision:y,allowOverlap:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;d=(0,Ne.moveElement)(d,b,n,o,!0,y,(0,Ne.compactType)(this.props),h,m);const _=m?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h);this.props.onDragStop(_,u,b,null,s,l);const{oldLayout:E}=this.state;this.setState({activeDrag:null,layout:_,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(_,E)}),cn(this,"onResizeStart",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);d&&(this.setState({oldResizeItem:(0,Ne.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(u,d,d,null,s,l))}),cn(this,"onResize",(t,n,o,a)=>{let{e:s,node:l,size:u,handle:d}=a;const{oldResizeItem:h}=this.state,{layout:y}=this.state,{cols:m,preventCollision:b,allowOverlap:w}=this.props;let _=!1,E,P,S;const[O,k]=(0,Ne.withLayoutItem)(y,t,M=>{let B;return P=M.x,S=M.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(P=M.x+(M.w-n),n=M.x!==P&&P<0?M.w:n,P=P<0?0:P),["ne","n","nw"].indexOf(d)!==-1&&(S=M.y+(M.h-o),o=M.y!==S&&S<0?M.h:o,S=S<0?0:S),_=!0),b&&!w&&(B=(0,Ne.getAllCollisions)(y,{...M,w:n,h:o,x:P,y:S}).filter(V=>V.i!==M.i).length>0,B&&(S=M.y,o=M.h,P=M.x,n=M.w,_=!1)),M.w=n,M.h=o,M});if(!k)return;E=O,_&&(E=(0,Ne.moveElement)(O,k,P,S,!0,this.props.preventCollision,(0,Ne.compactType)(this.props),m,w));const I={w:k.w,h:k.h,x:k.x,y:k.y,static:!0,i:t};this.props.onResize(E,h,k,I,s,l),this.setState({layout:w?E:(0,Ne.compact)(E,(0,Ne.compactType)(this.props),m),activeDrag:I})}),cn(this,"onResizeStop",(t,n,o,a)=>{let{e:s,node:l}=a;const{layout:u,oldResizeItem:d}=this.state,{cols:h,allowOverlap:y}=this.props,m=(0,Ne.getLayoutItem)(u,t),b=y?u:(0,Ne.compact)(u,(0,Ne.compactType)(this.props),h);this.props.onResizeStop(b,d,m,null,s,l);const{oldLayout:w}=this.state;this.setState({activeDrag:null,layout:b,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(b,w)}),cn(this,"onDragOver",t=>{var O;if(t.preventDefault(),t.stopPropagation(),q0&&!((O=t.nativeEvent.target)!=null&&O.classList.contains(G0)))return!1;const{droppingItem:n,onDropDragOver:o,margin:a,cols:s,rowHeight:l,maxRows:u,width:d,containerPadding:h,transformScale:y}=this.props,m=o==null?void 0:o(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const b={...n,...m},{layout:w}=this.state,_=t.currentTarget.getBoundingClientRect(),E=t.clientX-_.left,P=t.clientY-_.top,S={left:E/y,top:P/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:k,top:I}=this.state.droppingPosition;(k!=E||I!=P)&&this.setState({droppingPosition:S})}}else{const k={cols:s,margin:a,maxRows:u,rowHeight:l,containerWidth:d,containerPadding:h||a},I=(0,g2.calcXY)(k,P,E,b.w,b.h);this.setState({droppingDOMNode:Oo.createElement("div",{key:b.i}),droppingPosition:S,layout:[...w,{...b,x:I.x,y:I.y,static:!1,isDraggable:!0}]})}}),cn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:o}=this.state,a=(0,Ne.compact)(o.filter(s=>s.i!==t.i),(0,Ne.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),cn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),cn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),cn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:o}=this.state,a=o.find(s=>s.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(o,a,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let o;return n.activeDrag?null:(!(0,nf.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?o=t.layout:(0,Ne.childrenEqual)(t.children,n.children)||(o=n.layout),o?{layout:(0,Ne.synchronizeLayoutWithChildren)(o,t.children,t.cols,(0,Ne.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,Ne.fastRGLPropsEqual)(this.props,t,nf.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const o=this.state.layout,a=n.layout;this.onLayoutMaybeChanged(o,a)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,Ne.bottom)(this.state.layout),n=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+n*2+"px"}onLayoutMaybeChanged(t,n){n||(n=this.state.layout),(0,nf.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:o,margin:a,containerPadding:s,rowHeight:l,maxRows:u,useCSSTransforms:d,transformScale:h}=this.props;return Oo.createElement(U0.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:o,margin:a,containerPadding:s||a,maxRows:u,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:h},Oo.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const o=(0,Ne.getLayoutItem)(this.state.layout,String(t.key));if(!o)return null;const{width:a,cols:s,margin:l,containerPadding:u,rowHeight:d,maxRows:h,isDraggable:y,isResizable:m,isBounded:b,useCSSTransforms:w,transformScale:_,draggableCancel:E,draggableHandle:P,resizeHandles:S,resizeHandle:O}=this.props,{mounted:k,droppingPosition:I}=this.state,M=typeof o.isDraggable=="boolean"?o.isDraggable:!o.static&&y,B=typeof o.isResizable=="boolean"?o.isResizable:!o.static&&m,D=o.resizeHandles||S,V=M&&b&&o.isBounded!==!1;return Oo.createElement(U0.default,{containerWidth:a,cols:s,margin:l,containerPadding:u||l,maxRows:h,rowHeight:d,cancel:E,handle:P,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:M,isResizable:B,isBounded:V,useCSSTransforms:w&&k,usePercentages:!k,transformScale:_,w:o.w,h:o.h,x:o.x,y:o.y,i:o.i,minH:o.minH,minW:o.minW,maxH:o.maxH,maxW:o.maxW,static:o.static,droppingPosition:n?I:void 0,resizeHandles:D,resizeHandle:O},t)}render(){const{className:t,style:n,isDroppable:o,innerRef:a}=this.props,s=(0,h2.default)(G0,t),l={height:this.containerHeight(),...n};return Oo.createElement("div",{ref:a,className:s,style:l,onDrop:o?this.onDrop:Ne.noop,onDragLeave:o?this.onDragLeave:Ne.noop,onDragEnter:o?this.onDragEnter:Ne.noop,onDragOver:o?this.onDragOver:Ne.noop},Oo.Children.map(this.props.children,u=>this.processGridItem(u)),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}_a.default=Nl,cn(Nl,"displayName","ReactGridLayout"),cn(Nl,"propTypes",m2.default),cn(Nl,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:Ne.noop,onDragStart:Ne.noop,onDrag:Ne.noop,onDragStop:Ne.noop,onResizeStart:Ne.noop,onResize:Ne.noop,onResizeStop:Ne.noop,onDrop:Ne.noop,onDropDragOver:Ne.noop});var Fl={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.findOrGenerateResponsiveLayout=S2,Ao.getBreakpointFromWidth=x2,Ao.getColsFromBreakpoint=w2,Ao.sortBreakpoints=of;var zl=Qe;function x2(e,t){const n=of(e);let o=n[0];for(let a=1,s=n.length;a<s;a++){const l=n[a];t>e[l]&&(o=l)}return o}function w2(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function S2(e,t,n,o,a,s){if(e[n])return(0,zl.cloneLayout)(e[n]);let l=e[o];const u=of(t),d=u.slice(u.indexOf(n));for(let h=0,y=d.length;h<y;h++){const m=d[h];if(e[m]){l=e[m];break}}return l=(0,zl.cloneLayout)(l||[]),(0,zl.compact)((0,zl.correctBounds)(l,{cols:a}),s,a)}function of(e){return Object.keys(e).sort(function(n,o){return e[n]-e[o]})}Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var V0=_2(Y),Cn=Y0(Zr),af=Rd,Si=Qe,Mo=Ao,C2=Y0(_a);function Y0(e){return e&&e.__esModule?e:{default:e}}function X0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(X0=function(o){return o?n:t})(e)}function _2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=X0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sf.apply(this,arguments)}function Wl(e,t,n){return t=E2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E2(e){var t=R2(e,"string");return typeof t=="symbol"?t:String(t)}function R2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const K0=e=>Object.prototype.toString.call(e);function Ul(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class lf extends V0.Component{constructor(){super(...arguments),Wl(this,"state",this.generateInitialState()),Wl(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:o,cols:a}=this.props,s=(0,Mo.getBreakpointFromWidth)(n,t),l=(0,Mo.getColsFromBreakpoint)(s,a),u=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(o,n,s,s,l,u),breakpoint:s,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,af.deepEqual)(t.layouts,n.layouts)){const{breakpoint:o,cols:a}=n;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,o,o,a,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,af.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,af.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:o,layouts:a,compactType:s}=this.props,l=this.props.breakpoint||(0,Mo.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,d=(0,Mo.getColsFromBreakpoint)(l,o),h={...a};if(u!==l||t.breakpoints!==n||t.cols!==o){u in h||(h[u]=(0,Si.cloneLayout)(this.state.layout));let b=(0,Mo.findOrGenerateResponsiveLayout)(h,n,l,u,d,s);b=(0,Si.synchronizeLayoutWithChildren)(b,this.props.children,d,s,this.props.allowOverlap),h[l]=b,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(b,h),this.setState({breakpoint:l,layout:b,cols:d})}const y=Ul(this.props.margin,l),m=Ul(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:o,layouts:a,margin:s,containerPadding:l,onBreakpointChange:u,onLayoutChange:d,onWidthChange:h,...y}=this.props;return V0.createElement(C2.default,sf({},y,{margin:Ul(s,this.state.breakpoint),containerPadding:Ul(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}Fl.default=lf,Wl(lf,"propTypes",{breakpoint:Cn.default.string,breakpoints:Cn.default.object,allowOverlap:Cn.default.bool,cols:Cn.default.object,margin:Cn.default.oneOfType([Cn.default.array,Cn.default.object]),containerPadding:Cn.default.oneOfType([Cn.default.array,Cn.default.object]),layouts(e,t){if(K0(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+K0(e[t]));Object.keys(e[t]).forEach(n=>{if(!(n in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,Si.validateLayout)(e.layouts[n],"layouts."+n)})},width:Cn.default.number.isRequired,onBreakpointChange:Cn.default.func,onLayoutChange:Cn.default.func,onWidthChange:Cn.default.func}),Wl(lf,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:Si.noop,onLayoutChange:Si.noop,onWidthChange:Si.noop});var cf={},J0=function(){if(typeof Map<"u")return Map;function e(t,n){var o=-1;return t.some(function(a,s){return a[0]===n?(o=s,!0):!1}),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var o=e(this.__entries__,n),a=this.__entries__[o];return a&&a[1]},t.prototype.set=function(n,o){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=o:this.__entries__.push([n,o])},t.prototype.delete=function(n){var o=this.__entries__,a=e(o,n);~a&&o.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var a=0,s=this.__entries__;a<s.length;a++){var l=s[a];n.call(o,l[1],l[0])}},t}()}(),uf=typeof window<"u"&&typeof document<"u"&&window.document===document,Hl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),I2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),k2=2;function T2(e,t){var n=!1,o=!1,a=0;function s(){n&&(n=!1,e()),o&&u()}function l(){I2(s)}function u(){var d=Date.now();if(n){if(d-a<k2)return;o=!0}else n=!0,o=!1,setTimeout(l,t);a=d}return u}var P2=20,O2=["top","right","bottom","left","width","height","size","weight"],A2=typeof MutationObserver<"u",M2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=T2(this.refresh.bind(this),P2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,o=n.indexOf(t);~o&&n.splice(o,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!uf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!uf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,a=O2.some(function(s){return!!~o.indexOf(s)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Z0=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var a=o[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Ci=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hl},Q0=ql(0,0,0,0);function Gl(e){return parseFloat(e)||0}function ey(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(o,a){var s=e["border-"+a+"-width"];return o+Gl(s)},0)}function $2(e){for(var t=["top","right","bottom","left"],n={},o=0,a=t;o<a.length;o++){var s=a[o],l=e["padding-"+s];n[s]=Gl(l)}return n}function D2(e){var t=e.getBBox();return ql(0,0,t.width,t.height)}function B2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q0;var o=Ci(e).getComputedStyle(e),a=$2(o),s=a.left+a.right,l=a.top+a.bottom,u=Gl(o.width),d=Gl(o.height);if(o.boxSizing==="border-box"&&(Math.round(u+s)!==t&&(u-=ey(o,"left","right")+s),Math.round(d+l)!==n&&(d-=ey(o,"top","bottom")+l)),!j2(e)){var h=Math.round(u+s)-t,y=Math.round(d+l)-n;Math.abs(h)!==1&&(u-=h),Math.abs(y)!==1&&(d-=y)}return ql(a.left,a.top,u,d)}var L2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ci(e).SVGGraphicsElement}:function(e){return e instanceof Ci(e).SVGElement&&typeof e.getBBox=="function"}}();function j2(e){return e===Ci(e).document.documentElement}function N2(e){return uf?L2(e)?D2(e):B2(e):Q0}function F2(e){var t=e.x,n=e.y,o=e.width,a=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(s.prototype);return Z0(l,{x:t,y:n,width:o,height:a,top:n,right:t+o,bottom:a+n,left:t}),l}function ql(e,t,n,o){return{x:e,y:t,width:n,height:o}}var z2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ql(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=N2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),W2=function(){function e(t,n){var o=F2(n);Z0(this,{target:t,contentRect:o})}return e}(),U2=function(){function e(t,n,o){if(this.activeObservations_=[],this.observations_=new J0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new z2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new W2(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ty=typeof WeakMap<"u"?new WeakMap:new J0,ny=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=M2.getInstance(),o=new U2(t,n,this);ty.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ny.prototype[e]=function(){var t;return(t=ty.get(this))[e].apply(t,arguments)}});var H2=function(){return typeof Hl.ResizeObserver<"u"?Hl.ResizeObserver:ny}();const G2=Va(Object.freeze(Object.defineProperty({__proto__:null,default:H2},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=Q2;var Vl=X2(Y),q2=df(Zr),V2=df(G2),Y2=df(Id);function df(e){return e&&e.__esModule?e:{default:e}}function ry(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ry=function(o){return o?n:t})(e)}function X2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ry(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ff.apply(this,arguments)}function _i(e,t,n){return t=K2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K2(e){var t=J2(e,"string");return typeof t=="symbol"?t:String(t)}function J2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Z2="react-grid-layout";function Q2(e){var t;return t=class extends Vl.Component{constructor(){super(...arguments),_i(this,"state",{width:1280}),_i(this,"elementRef",Vl.createRef()),_i(this,"mounted",!1),_i(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new V2.default(a=>{if(this.elementRef.current instanceof HTMLElement){const l=a[0].contentRect.width;this.setState({width:l})}});const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.observe(o)}componentWillUnmount(){this.mounted=!1;const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.unobserve(o),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:o,...a}=this.props;return o&&!this.mounted?Vl.createElement("div",{className:(0,Y2.default)(this.props.className,Z2),style:this.props.style,ref:this.elementRef}):Vl.createElement(e,ff({innerRef:this.elementRef},a,this.state))}},_i(t,"defaultProps",{measureBeforeMount:!1}),_i(t,"propTypes",{measureBeforeMount:q2.default.bool}),t}(function(e){e.exports=_a.default,e.exports.utils=Qe,e.exports.calculateUtils=_r,e.exports.Responsive=Fl.default,e.exports.Responsive.utils=Ao,e.exports.WidthProvider=cf.default})(s0);var pf=s0.exports;const oy=kp(pf);class eO extends Y.Component{constructor(t){super(t),this.state={hasError:!1,message:null}}static getDerivedStateFromError(t){return{hasError:!0,message:t.stack}}render(){if(this.state.hasError&&this.props.fallbackConfig){const t=v.jsx(bd,{componentId:this.props.componentId,message:this.state.message||"",onUndo:this.props.fallbackConfig.onUndo(this.props.componentId),onRedo:this.props.fallbackConfig.onRedo(this.props.componentId),onDelete:this.props.fallbackConfig.onDelete(this.props.componentId),onCodeEdit:this.props.fallbackConfig.onCodeEdit(this.props.componentId,this.state.message)});return this.resetState(),t}return this.props.children}resetState(){this.state={hasError:!1,message:null}}}const tO=Y.forwardRef(({style:e,className:t,onMouseDown:n,onMouseUp:o,onTouchEnd:a,children:s,component:l,componentId:u,fallbackConfig:d,controls:h},y)=>{const{selectedComponentId:m}=wn(),[b,w]=Y.useState(!1),_=Y.useMemo(()=>m===u,[m]);return v.jsxs("div",{style:{...e},className:t+(_?" selected":""),ref:y,onMouseDown:n,onMouseUp:o,onTouchEnd:a,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[v.jsx("div",{className:"grid-item "+(_?"selected":""),children:v.jsxs(eO,{componentId:u,fallbackConfig:d,children:[b&&h,l]})}),s]})}),nO=()=>v.jsx(Dt,{sx:{display:"flex"},children:v.jsx(WR,{})}),rO=pn(v.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),oO=pn(v.jsx("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2m0 8h2v-2H3zm4 8h2v-2H7zM3 9h2V7H3zm10-6h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zM9 3H7v2h2zm2 18h2v-2h-2zm8-8h2v-2h-2zm0 8c1.1 0 2-.9 2-2h-2zm0-12h2V7h-2zm0 8h2v-2h-2zm-4 4h2v-2h-2zm0-16h2V3h-2zM7 17h10V7H7zm2-8h6v6H9z"}),"SelectAll"),iO=pn(v.jsx("path",{d:"M3 13h2v-2H3zm4 8h2v-2H7zm6-18h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zm8 4h2v-2h-2zm8-8h2v-2h-2zm0-4h2V7h-2zm-4-4h2V3h-2zM7.83 5 7 4.17V3h2v2zm12 12-.83-.83V15h2v2zm1.36 4.19L2.81 2.81 1.39 4.22 4.17 7H3v2h2V7.83l2 2V17h7.17l2 2H15v2h2v-1.17l2.78 2.78zM9 15v-3.17L12.17 15zm6-2.83V9h-3.17l-2-2H17v7.17z"}),"Deselect"),aO=et.div`
|
|
916
|
+
display: flex;
|
|
917
|
+
flex-direction: row;
|
|
918
|
+
align-items: center;
|
|
919
|
+
justify-content: space-between;
|
|
920
|
+
width: 100%;
|
|
921
|
+
position: absolute;
|
|
922
|
+
top: 0;
|
|
923
|
+
left: 0;
|
|
924
|
+
z-index: 9999;
|
|
925
|
+
|
|
926
|
+
.control-section {
|
|
927
|
+
flex: 1;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.control-section button {
|
|
931
|
+
border: 2px solid black;
|
|
932
|
+
border-radius: 2px;
|
|
933
|
+
|
|
934
|
+
background: white;
|
|
935
|
+
color: black;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.select-button-container {
|
|
939
|
+
display: flex;
|
|
940
|
+
flex-direction: row;
|
|
941
|
+
align-items: center;
|
|
942
|
+
justify-content: flex-start;
|
|
943
|
+
}
|
|
944
|
+
.select-button-container button {
|
|
945
|
+
height: 24px;
|
|
946
|
+
width: 48px;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.drag-button-container {
|
|
950
|
+
display: flex;
|
|
951
|
+
flex-direction: row;
|
|
952
|
+
align-items: center;
|
|
953
|
+
justify-content: center;
|
|
954
|
+
}
|
|
955
|
+
.drag-button-container button {
|
|
956
|
+
height: 24px;
|
|
957
|
+
width: 96px;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.edit-button-container {
|
|
961
|
+
display: flex;
|
|
962
|
+
flex-direction: row;
|
|
963
|
+
align-items: center;
|
|
964
|
+
justify-content: flex-end;
|
|
965
|
+
gap: 8px;
|
|
966
|
+
}
|
|
967
|
+
.edit-button-container button {
|
|
968
|
+
height: 24px;
|
|
969
|
+
width: 24px;
|
|
970
|
+
}
|
|
971
|
+
`,$o={color:"primary.main","&:hover":{color:"secondary.main"}},hf=e=>{const{selectedComponentId:t,setSelectedComponentId:n}=wn(),o=Y.useMemo(()=>e.componentId===t,[t]),a=Y.useCallback(()=>{n(o?"":e.componentId)},[o]);return v.jsx(v.Fragment,{children:v.jsxs(aO,{children:[v.jsx("div",{className:"control-section select-button-container",children:v.jsx(Qt,{size:"large",onClick:a,children:o?v.jsx(iO,{fontSize:"medium",sx:$o}):v.jsx(oO,{fontSize:"medium",sx:$o})})}),v.jsx("div",{className:"control-section drag-button-container",children:v.jsx(Qt,{size:"large",className:"react-grid-drag-handle",children:v.jsx(rO,{fontSize:"large",sx:$o})})}),v.jsxs("div",{className:"control-section edit-button-container",children:[v.jsx(Qt,{size:"large",onClick:e.onCodeEdit,children:v.jsx(Ym,{fontSize:"medium",sx:$o})}),v.jsx(Qt,{size:"large",onClick:e.onUndo,children:v.jsx(Km,{fontSize:"medium",sx:$o})}),v.jsx(Qt,{size:"large",onClick:()=>e.onRedo(),children:v.jsx(Jm,{fontSize:"medium",sx:$o})}),v.jsx(Qt,{onClick:e.onDelete,size:"large",children:v.jsx(Xm,{fontSize:"medium",sx:$o})})]})]})})},sO=pf.WidthProvider(oy),lO=et.div`
|
|
916
972
|
.react-grid-layout {
|
|
917
973
|
position: relative;
|
|
918
974
|
// transition: height 200ms ease;
|
|
@@ -960,7 +1016,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
960
1016
|
box-sizing: border-box;
|
|
961
1017
|
cursor: se-resize;
|
|
962
1018
|
}
|
|
963
|
-
`,
|
|
1019
|
+
`,cO=et.div`
|
|
964
1020
|
.grid-container {
|
|
965
1021
|
display: flex;
|
|
966
1022
|
|
|
@@ -992,69 +1048,45 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
992
1048
|
.react-grid-drag-handle {
|
|
993
1049
|
cursor: move;
|
|
994
1050
|
}
|
|
995
|
-
`,
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
align-items: center;
|
|
999
|
-
justify-content: space-between;
|
|
1000
|
-
width: 100%;
|
|
1001
|
-
position: absolute;
|
|
1002
|
-
top: 0;
|
|
1003
|
-
left: 0;
|
|
1004
|
-
z-index: 9999;
|
|
1051
|
+
`,oo=(e,t,n)=>v.jsx(tO,{component:e.component,componentId:e.id,controls:t,fallbackConfig:n},e.id),uO=e=>{const{projectMetadata:t,setSyncToken:n,APIHandler:o}=wn(),[a,s]=Y.useState([]),[l,u]=Y.useState([]),[d,h]=Y.useState([]),y=Y.useRef({}),m=U=>()=>{let C=e.components.find(G=>G.id===U);u(G=>[...G.filter(Z=>Z.props.componentId!==U),oo(C,v.jsx(hf,{componentId:U,onInlineEdit:b(U),onCodeEdit:w(U),onUndo:D(U),onRedo:V(U),onDelete:B(U)}),{onDelete:B,onCodeEdit:E})])},b=U=>()=>{let C={id:U,component:v.jsx(Bk,{onClose:m(U),onSave:()=>console.log("saving")})};u(G=>[...G.filter(Z=>Z.props.componentId!==U),oo(C)])},w=U=>()=>{const C=`${t.projectName}/src/ProjectComponents/`,G=`${U}/component.tsx`,Z=`${window.miDir}/${C}/${G}`;window.pfs.readFile(Z,"utf8").then(H=>{let K=H,te={id:U,component:v.jsx(Vm,{source:K,onClose:m(U),onSave:P(t.projectName,U)})};u(se=>[...se.filter(de=>de.props.componentId!==U),oo(te)])})},_=(U,C)=>()=>{let G={id:U,component:v.jsx(bd,{componentId:U,message:C,onUndo:D(U),onRedo:V(U),onDelete:B(U),onCodeEdit:E(U,C)})};u(Z=>[...Z.filter(H=>H.props.componentId!==U),oo(G)])},E=(U,C)=>()=>{const G=`${t.projectName}/src/ProjectComponents/`,Z=`${U}/component.tsx`,H=`${window.miDir}/${G}/${Z}`;window.pfs.readFile(H,"utf8").then(K=>{let te=K,se={id:U,component:v.jsx(Vm,{source:te,onClose:_(U,C),onSave:P(t.projectName,U)})};u(de=>[...de.filter(he=>he.props.componentId!==U),oo(se)])})},P=(U,C)=>G=>{let Z=U,H=C;o.updateProjectComponentSourceCode(Z,H,G).then(K=>{K.status===200&&(n(),m(H)())})},S=Y.useMemo(()=>Ro.debounce(async()=>{try{for(const[U,C]of Object.entries(y.current))await o.updateProjectComponentLayoutMetadata(t.projectName,U,C)}catch(U){console.error("Failed to update layout:",U)}finally{y.current={},n()}},2e3),[t.projectName,o,n]);Y.useEffect(()=>()=>{S.cancel()},[S]);const O=U=>{s(U)},k=(...U)=>{const C=U[2],G=Ro.pick(C,["w","h","x","y"]);y.current={...y.current,[C.i]:G},S()},I=(...U)=>{const C=U[2],G=Ro.pick(C,["w","h","x","y"]);y.current={...y.current,[C.i]:G},S()},M=(U,C,G)=>{let Z=JSON.parse(G.dataTransfer.getData("application/reactgridlayout")),H={id:xa(),component:v.jsx(nO,{})},K={...Ro.pick(C,["x","y"]),...Z.initialSize,i:H.id};switch(s(te=>[...te,K]),u(te=>[...te,oo(H,v.jsx(hf,{componentId:H.id,onInlineEdit:b(H.id),onCodeEdit:w(H.id),onUndo:D(H.id),onRedo:V(H.id),onDelete:B(H.id)}),{onDelete:B,onCodeEdit:E})]),Z.type){case"ProjectComponent":o.addProjectComponent(t.projectName,"example",Z.metadata.name,Ro.pick(K,["x","y","w","h"])).then(te=>{te.status===200&&n()});break;case"ProjectChart":o.addProjectChart(t.projectName,Z.metadata.id,Ro.pick(K,["x","y","w","h"])).then(te=>{te.status===200&&n()});break;default:throw new Error(`Error: Attempt to add unknown component type '${Z.type}'`)}},B=U=>()=>{u(G=>G.filter(Z=>Z.props.componentId!==U)),s(G=>G.filter(Z=>Z.id!==U));const C=`src/ProjectComponents/${U}`;o.deleteProjectFile(t.projectName,C).then(G=>{G.status===200&&n()})},D=U=>async()=>{const C=`src/ProjectComponents/${U}/component.tsx`,[G,Z]=await Qx(t.projectName,C);if((await o.resetProjectFile(t.projectName,C,Z,!1,JSON.stringify({sourceRef:G,opType:"UNDO"}))).status!==200)throw new Error("Failed to reset project file (undo)");n()},V=U=>async()=>{const C=`src/ProjectComponents/${U}/component.tsx`,[G,Z]=await e1(t.projectName,C);if((await o.resetProjectFile(t.projectName,C,Z,!1,JSON.stringify({sourceRef:G,opType:"REDO"}))).status!==200)throw new Error("Failed to reset project file (redo)");n()};return Y.useEffect(()=>{s(e.layout)},[e.layout]),Y.useEffect(()=>{let U=[];e.components.forEach(C=>{var G;if((G=C==null?void 0:C.overrides)!=null&&G.compileError){C.component=v.jsx(bd,{componentId:C.id,message:C.overrides.compileError.message,onDelete:B(C.id),onUndo:D(C.id),onRedo:V(C.id),onCodeEdit:E(C.id,C.overrides.compileError.message)}),U.push(oo(C));return}U.push(oo(C,v.jsx(hf,{componentId:C.id,onInlineEdit:b(C.id),onCodeEdit:w(C.id),onUndo:D(C.id),onRedo:V(C.id),onDelete:B(C.id)}),{onDelete:B,onCodeEdit:E}))}),u(U)},[e.components]),Y.useEffect(()=>{h(e.componentLibrary)},[e.componentLibrary]),v.jsx(v.Fragment,{children:v.jsx(lO,{children:v.jsx(cO,{children:v.jsx(sO,{className:"layout",rowHeight:50,cols:12,onLayoutChange:O,onResizeStop:k,onDrop:M,onDragStop:I,compactType:null,preventCollision:!0,draggableCancel:".cancel-drag",layout:a,isDroppable:!0,draggableHandle:".react-grid-drag-handle",children:l})})})})},dO=pf.WidthProvider(oy),fO=et.div`
|
|
1052
|
+
.grid-container {
|
|
1053
|
+
display: flex;
|
|
1005
1054
|
|
|
1006
|
-
|
|
1007
|
-
|
|
1055
|
+
justify-content: center;
|
|
1056
|
+
align-items: center;
|
|
1057
|
+
|
|
1058
|
+
background-color: gray;
|
|
1008
1059
|
}
|
|
1009
1060
|
|
|
1010
|
-
.
|
|
1011
|
-
|
|
1012
|
-
|
|
1061
|
+
.grid-item {
|
|
1062
|
+
width: 100%;
|
|
1063
|
+
height: 100%;
|
|
1064
|
+
position: relative;
|
|
1065
|
+
overflow: hidden;
|
|
1013
1066
|
|
|
1014
|
-
background:
|
|
1015
|
-
color: black;
|
|
1067
|
+
background-color: gray;
|
|
1016
1068
|
}
|
|
1017
1069
|
|
|
1018
|
-
.
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
justify-content: flex-start;
|
|
1023
|
-
}
|
|
1024
|
-
.select-button-container button {
|
|
1025
|
-
height: 24px;
|
|
1026
|
-
width: 48px;
|
|
1070
|
+
.selected {
|
|
1071
|
+
border: 2px solid #cc0aac;
|
|
1072
|
+
border-radius: 5px;
|
|
1073
|
+
box-shadow: 0 0 10px #cc0aac;
|
|
1027
1074
|
}
|
|
1028
1075
|
|
|
1029
|
-
.
|
|
1030
|
-
display:
|
|
1031
|
-
flex-direction: row;
|
|
1032
|
-
align-items: center;
|
|
1033
|
-
justify-content: center;
|
|
1034
|
-
}
|
|
1035
|
-
.drag-button-container button {
|
|
1036
|
-
height: 24px;
|
|
1037
|
-
width: 96px;
|
|
1076
|
+
.react-resizable-hide .react-resizable-handle {
|
|
1077
|
+
display: none !important;
|
|
1038
1078
|
}
|
|
1039
1079
|
|
|
1040
|
-
.
|
|
1041
|
-
|
|
1042
|
-
flex-direction: row;
|
|
1043
|
-
align-items: center;
|
|
1044
|
-
justify-content: flex-end;
|
|
1045
|
-
gap: 8px;
|
|
1046
|
-
}
|
|
1047
|
-
.edit-button-container button {
|
|
1048
|
-
height: 24px;
|
|
1049
|
-
width: 24px;
|
|
1080
|
+
.react-grid-drag-handle {
|
|
1081
|
+
cursor: move;
|
|
1050
1082
|
}
|
|
1051
|
-
`,
|
|
1083
|
+
`,iy=e=>v.jsx(v.Fragment,{children:v.jsx(fO,{children:v.jsx(dO,{className:"layout",rowHeight:50,cols:12,compactType:null,isResizable:!1,isDraggable:!1,preventCollision:!0,margin:[0,0],layout:e.layout,children:e.components.map(t=>v.jsx("div",{className:"grid-item",children:t.component},t.id))})})}),pO=pn(v.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),hO=et.div`
|
|
1052
1084
|
display: flex;
|
|
1053
1085
|
flex-direction: row;
|
|
1054
1086
|
|
|
1055
1087
|
justify-content: space-between;
|
|
1056
1088
|
align-items: center;
|
|
1057
|
-
`,
|
|
1089
|
+
`,gO={color:"primary.main","&:hover":{color:"secondary.main"}},mO=e=>{const[t,n]=Y.useState(0),{projectMetadata:o}=wn(),a=u=>{n(Number(u.target.value))},s=Y.useMemo(()=>o.projectName&&o.projectURL,[o.projectName,o.projectURL]),l=()=>{window.open(`https://github.com/56b81caaa87941618cfed6dfb4d34047/${o.projectName}`,"_blank")};return v.jsxs(v.Fragment,{children:[v.jsxs(hO,{children:[v.jsxs("select",{value:t,onChange:a,disabled:!s,children:[v.jsx("option",{value:0,children:"Edit Mode"}),v.jsx("option",{value:1,children:"Preview Mode"})]}),v.jsx(Qt,{size:"large",disabled:!s,onClick:l,children:v.jsx(pO,{fontSize:"large",color:"warning",sx:gO})})]}),t===0&&v.jsx(uO,{components:e.components,componentLibrary:e.componentLibrary,layout:e.layout}),t===1&&v.jsx(iy,{layout:e.layout,components:e.components})]})},yO=async e=>{let t=null,n=null;try{const o=e.replace(/import.*?;\n/g,""),a=Ip.transform(o,{presets:["react","typescript"],filename:"file.tsx"}).code,s=new Blob([a],{type:"text/javascript"});t=(await import(URL.createObjectURL(s))).component}catch(o){t=null,n=o.stack}return{compileError:n,compiledComponent:t}},vO=async e=>{let t=[];const n=await e.getComponentLibrary();if(n.status!==200)throw new Error("Could not load library components");let o=(await n.json()).components;for(const a in o)if(a==="example")for(const s of o[a]){let l=s.content["component.tsx"];l=l.replace(/import.*?;\n/g,"");let u=s.content["layout.json"];const d=Ip.transform(l,{presets:["react","typescript"],filename:"file.tsx"}).code,h=new Blob([d],{type:"text/javascript"}),b=(await import(URL.createObjectURL(h))).component;t.push({class:s.name,layout:JSON.parse(u),component:v.jsx(b,{})})}return t},ay=async e=>{let t=[],n=[];const o=`${window.miDir}/${e}`,a="src/ProjectComponents";let s=await zp(`${o}/${a}`);s=s.filter(l=>!(l.includes(".gitkeep")||l.includes("index.ts")));for(const l of s){let u=`${l.replace(a,"")}`,d=`${u}/component.tsx`,h=await window.pfs.readFile(`${o}/${a}/${d}`,"utf8");const{compileError:y,compiledComponent:m}=await yO(h);let b=`${u}/layout.json`;const w=await window.pfs.readFile(`${o}/${a}/${b}`,"utf8");let _={id:l,component:null};if(y){_={..._,overrides:{compileError:{message:y}}},t.push(_),n.push({...JSON.parse(w),i:l});continue}if(u.includes("Chart")){let E=`${u}/chart_config.json`;const P=await window.pfs.readFile(`${o}/${a}/${E}`,"utf8"),S=JSON.parse(P),O=m;_.component=v.jsx(O,{chartConfig:S})}else{const E=m;_.component=v.jsx(E,{})}t.push(_),n.push({...JSON.parse(w),i:l})}return{components:t,layout:n}},bO=et.div`
|
|
1058
1090
|
display: flex;
|
|
1059
1091
|
flex-direction: row;
|
|
1060
1092
|
|
|
@@ -1079,7 +1111,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1079
1111
|
overflow: auto;
|
|
1080
1112
|
min-width: 350px;
|
|
1081
1113
|
}
|
|
1082
|
-
`,
|
|
1114
|
+
`,xO=()=>{const[e,t]=Y.useState([]),[n,o]=Y.useState([]),[a,s]=Y.useState([]),[l,u]=Y.useState(!1),{projectMetadata:d,config:h,syncToken:y,APIHandler:m}=wn();return Y.useEffect(()=>{vO(m).then(b=>{t(b)})},[]),Y.useEffect(()=>{d.projectName&&d.projectURL&&(u(!0),Ja(d.projectName,d.projectURL,h.CORS_PROXY).then(()=>{u(!1),ay(d.projectName).then(b=>{o(b.components),s(b.layout)})}))},[d,y]),v.jsx(v.Fragment,{children:v.jsxs(bO,{children:[v.jsx(ba,{isVisible:l}),v.jsxs("div",{className:"mi-container",children:[v.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:v.jsx(mO,{componentLibrary:e,components:n,layout:a})}),v.jsx("div",{className:"mi-toolspace",style:{backgroundColor:"lightgray"},children:v.jsx(TT,{componentLibrary:e})})]})]})})},wO=et.div`
|
|
1083
1115
|
.mi-container {
|
|
1084
1116
|
display: flex;
|
|
1085
1117
|
flex-direction: row;
|
|
@@ -1098,4 +1130,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1098
1130
|
flex-grow: 1;
|
|
1099
1131
|
overflow: auto;
|
|
1100
1132
|
}
|
|
1101
|
-
`,
|
|
1133
|
+
`,SO=()=>{const[e,t]=Y.useState([]),[n,o]=Y.useState([]),[a,s]=Y.useState(!1),{projectMetadata:l,config:u}=wn(),d=async()=>{s(!0),await Ja(l.projectName,l.projectURL,u.CORS_PROXY),s(!1),await Gc(l.projectName,l.projectURL,u.CORS_PROXY),await Xx(l.projectName);const h=await ay(l.projectName);t(h.components),o(h.layout)};return Y.useEffect(()=>{!l.projectName&&!l.projectURL||d()},[l.projectName,l.projectURL]),v.jsx(v.Fragment,{children:v.jsxs(wO,{children:[v.jsx(ba,{isVisible:a}),v.jsx("div",{className:"mi-container",children:v.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:v.jsx(iy,{components:e,layout:n})})})]})})},CO=()=>{typeof window<"u"&&(window.Buffer=Np.Buffer,window.fs=new Px("fs"),window.pfs=window.fs.promises,window.miDir="/mi")};Ot.ImageGallery=n0,Ot.MakeInfinite=xO,Ot.MiniApp=SO,Ot.ProjectProvider=Tk,Ot.getTags=Gc,Ot.initializeMakeInfinite=CO,Ot.useProject=wn,Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"})});
|