@spaceandtimelabs/makeinfinite-ui 0.19.2 → 0.19.3
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 +7117 -7004
- package/dist/makeinfinite-ui.umd.js +97 -70
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function($t,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-dom"),require("react-ace"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-dom","react-ace","@babel/standalone"],_t):($t=typeof globalThis<"u"?globalThis:$t||self,_t($t.MakeInfinite={},$t.git,$t.React,$t.ReactDOM,$t.AceEditor,$t.Babel))})(this,function($t,_t,
|
|
1
|
+
(function($t,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-dom"),require("react-ace"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-dom","react-ace","@babel/standalone"],_t):($t=typeof globalThis<"u"?globalThis:$t||self,_t($t.MakeInfinite={},$t.git,$t.React,$t.ReactDOM,$t.AceEditor,$t.Babel))})(this,function($t,_t,X,wo,dx,fx){"use strict";var B5=Object.defineProperty;var D5=($t,_t,X)=>_t in $t?B5($t,_t,{enumerable:!0,configurable:!0,writable:!0,value:X}):$t[_t]=X;var na=($t,_t,X)=>D5($t,typeof _t!="symbol"?_t+"":_t,X);function lu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=lu(X),px=lu(wo),Yp=lu(fx);var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ra(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var hx=gx;function gx(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(_,O){var C;return _ instanceof Buffer?C=_:C=Buffer.from(_.buffer,_.byteOffset,_.byteLength),C.toString(O)}var n=function(_){return Buffer.from(_)};function r(_){for(var O=0,C=Math.min(256*256,_.length+1),P=new Uint16Array(C),M=[],D=0;;){var $=O<_.length;if(!$||D>=C-1){var z=P.subarray(0,D),V=z;if(M.push(String.fromCharCode.apply(null,V)),!$)return M.join("");_=_.subarray(O),O=0,D=0}var R=_[O++];if(!(R&128))P[D++]=R;else if((R&224)===192){var G=_[O++]&63;P[D++]=(R&31)<<6|G}else if((R&240)===224){var G=_[O++]&63,te=_[O++]&63;P[D++]=(R&31)<<12|G<<6|te}else if((R&248)===240){var G=_[O++]&63,te=_[O++]&63,H=_[O++]&63,Y=(R&7)<<18|G<<12|te<<6|H;Y>65535&&(Y-=65536,P[D++]=Y>>>10&1023|55296,Y=56320|Y&1023),P[D++]=Y}}}function i(_){for(var O=0,C=_.length,P=0,M=Math.max(32,C+(C>>>1)+7),D=new Uint8Array(M>>>3<<3);O<C;){var $=_.charCodeAt(O++);if($>=55296&&$<=56319){if(O<C){var z=_.charCodeAt(O);(z&64512)===56320&&(++O,$=(($&1023)<<10)+(z&1023)+65536)}if($>=55296&&$<=56319)continue}if(P+4>D.length){M+=8,M*=1+O/_.length*2,M=M>>>3<<3;var V=new Uint8Array(M);V.set(D),D=V}if($&4294967168)if(!($&4294965248))D[P++]=$>>>6&31|192;else if(!($&4294901760))D[P++]=$>>>12&15|224,D[P++]=$>>>6&63|128;else if(!($&4292870144))D[P++]=$>>>18&7|240,D[P++]=$>>>12&63|128,D[P++]=$>>>6&63|128;else continue;else{D[P++]=$;continue}D[P++]=$&63|128}return D.slice?D.slice(0,P):D.subarray(0,P)}var a="Failed to ",l=function(_,O,C){if(_)throw new Error("".concat(a).concat(O,": the '").concat(C,"' option is unsupported."))},c=typeof Buffer=="function"&&Buffer.from,d=c?n:i;function h(){this.encoding="utf-8"}h.prototype.encode=function(_,O){return l(O&&O.stream,"encode","stream"),d(_)};function y(_){var O;try{var C=new Blob([_],{type:"text/plain;charset=UTF-8"});O=URL.createObjectURL(C);var P=new XMLHttpRequest;return P.open("GET",O,!1),P.send(),P.responseText}finally{O&&URL.revokeObjectURL(O)}}var m=!c&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",v=["utf-8","utf8","unicode-1-1-utf-8"],w=r;c?w=t:m&&(w=function(_){try{return y(_)}catch{return r(_)}});var b="construct 'TextDecoder'",E="".concat(a," ").concat(b,": the ");function k(_,O){l(O&&O.fatal,b,"fatal"),_=_||"utf-8";var C;if(c?C=Buffer.isEncoding(_):C=v.indexOf(_.toLowerCase())!==-1,!C)throw new RangeError("".concat(E," encoding label provided ('").concat(_,"') is invalid."));this.encoding=_,this.fatal=!1,this.ignoreBOM=!1}k.prototype.decode=function(_,O){l(O&&O.stream,"decode","stream");var C;return _ instanceof Uint8Array?C=_:_.buffer instanceof ArrayBuffer?C=new Uint8Array(_.buffer):C=new Uint8Array(_),w(C,this.encoding)},e.TextEncoder=e.TextEncoder||h,e.TextDecoder=e.TextDecoder||k})(typeof window<"u"?window:Lr);var mx={encode:e=>new TextEncoder().encode(e),decode:e=>new TextDecoder().decode(e)},yx=vx;function vx(e,t,n){var r;return function(){if(!t)return e.apply(this,arguments);var i=this,a=arguments,l=n&&!r;if(clearTimeout(r),r=setTimeout(function(){if(r=null,!l)return e.apply(i,a)},t),l)return e.apply(this,arguments)}}function Jp(e){if(e.length===0)return".";let t=Zp(e);return t=t.reduce(Sx,[]),cu(...t)}function bx(...e){let t="";for(let n of e)n.startsWith("/")?t=n:t=Jp(cu(t,n));return t}function cu(...e){if(e.length===0)return"";let t=e.join("/");return t=t.replace(/\/{2,}/g,"/"),t}function Zp(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 xx(e){const t=e.lastIndexOf("/");if(t===-1)throw new Error(`Cannot get dirname of "${e}"`);return t===0?"/":e.slice(0,t)}function wx(e){if(e==="/")throw new Error(`Cannot get basename of "${e}"`);const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function Sx(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 uu={join:cu,normalize:Jp,split:Zp,basename:wx,dirname:xx,resolve:bx};function Gi(e){return class extends Error{constructor(...t){super(...t),this.code=e,this.message?this.message=e+": "+this.message:this.message=e}}}const Cx=Gi("EEXIST"),_x=Gi("ENOENT"),Ex=Gi("ENOTDIR"),Rx=Gi("ENOTEMPTY"),Px=Gi("ETIMEDOUT");var Qp={EEXIST:Cx,ENOENT:_x,ENOTDIR:Ex,ENOTEMPTY:Rx,ETIMEDOUT:Px};const gn=uu,{EEXIST:eh,ENOENT:Tx,ENOTDIR:th,ENOTEMPTY:Ix}=Qp,an=0;var kx=class{constructor(){}_makeRoot(t=new Map){return t.set(an,{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[r,i]of t)r!==an&&(n+=this._countInodes(i));return n}autoinc(){return this._maxInode(this._root.get("/"))+1}_maxInode(t){let n=t.get(an).ino;for(let[r,i]of t)r!==an&&(n=Math.max(n,this._maxInode(i)));return n}print(t=this._root.get("/")){let n="";const r=(i,a)=>{for(let[l,c]of i){if(l===0)continue;let d=c.get(an),h=d.mode.toString(8);n+=`${" ".repeat(a)}${l} ${h}`,d.type==="file"?n+=` ${d.size} ${d.mtimeMs}
|
|
2
2
|
`:(n+=`
|
|
3
3
|
`,r(c,a+1))}};return r(t,0),n}parse(t){let n=0;function r(c){const d=++n,h=c.length===1?"dir":"file";let[y,m,v]=c;return y=parseInt(y,8),m=m?parseInt(m):0,v=v?parseInt(v):Date.now(),new Map([[an,{mode:y,type:h,size:m,mtimeMs:v,ino:d}]])}let i=t.trim().split(`
|
|
4
|
-
`),a=this._makeRoot(),l=[{indent:-1,node:a},{indent:0,node:null}];for(let c of i){let h=c.match(/^\t*/)[0].length;c=c.slice(h);let[y,...m]=c.split(" "),v=r(m);if(h<=l[l.length-1].indent)for(;h<=l[l.length-1].indent;)l.pop();l.push({indent:h,node:v}),l[l.length-2].node.set(y,v)}return a}_lookup(t,n=!0){let r=this._root,i="/",a=hn.split(t);for(let l=0;l<a.length;++l){let c=a[l];if(r=r.get(c),!r)throw new Cx(t);if(n||l<a.length-1){const d=r.get(an);if(d.type==="symlink"){let h=hn.resolve(i,d.target);r=this._lookup(h)}i?i=hn.join(i,c):i=c}}return r}mkdir(t,{mode:n}){if(t==="/")throw new Qp;let r=this._lookup(hn.dirname(t)),i=hn.basename(t);if(r.has(i))throw new Qp;let a=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};a.set(an,l),r.set(i,a)}rmdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new eh;if(n.size>1)throw new _x;let r=this._lookup(hn.dirname(t)),i=hn.basename(t);r.delete(i)}readdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new eh;return[...n.keys()].filter(r=>typeof r=="string")}writeStat(t,n,{mode:r}){let i;try{let h=this.stat(t);r==null&&(r=h.mode),i=h.ino}catch{}r==null&&(r=438),i==null&&(i=this.autoinc());let a=this._lookup(hn.dirname(t)),l=hn.basename(t),c={mode:r,type:"file",size:n,mtimeMs:Date.now(),ino:i},d=new Map;return d.set(an,c),a.set(l,d),c}unlink(t){let n=this._lookup(hn.dirname(t)),r=hn.basename(t);n.delete(r)}rename(t,n){let r=hn.basename(n),i=this._lookup(t);this._lookup(hn.dirname(n)).set(r,i),this.unlink(t)}stat(t){return this._lookup(t).get(an)}lstat(t){return this._lookup(t,!1).get(an)}readlink(t){return this._lookup(t,!1).get(an).target}symlink(t,n){let r,i;try{let h=this.stat(n);i===null&&(i=h.mode),r=h.ino}catch{}i==null&&(i=40960),r==null&&(r=this.autoinc());let a=this._lookup(hn.dirname(n)),l=hn.basename(n),c={mode:i,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:r},d=new Map;return d.set(an,c),a.set(l,d),c}_du(t){let n=0;for(const[r,i]of t.entries())r===an?n+=i.size:n+=this._du(i);return n}du(t){let n=this._lookup(t);return this._du(n)}};class th{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 r=indexedDB.open(this._dbName);r.onerror=()=>n(r.error),r.onsuccess=()=>t(r.result),r.onupgradeneeded=()=>{r.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(r=>new Promise((i,a)=>{const l=r.transaction(this.storeName,t);l.oncomplete=()=>i(),l.onabort=l.onerror=()=>a(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let uu;function So(){return uu||(uu=new th),uu}function Rx(e,t=So()){let n;return t._withIDBStore("readwrite",r=>{n=r.get(e)}).then(()=>n.result)}function Tx(e,t,n=So()){return n._withIDBStore("readwrite",r=>{r.put(t,e)})}function Px(e,t,n=So()){return n._withIDBStore("readwrite",r=>{const i=r.get(e);i.onsuccess=()=>{r.put(t(i.result),e)}})}function kx(e,t=So()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function Ix(e=So()){return e._withIDBStore("readwrite",t=>{t.clear()})}function Ox(e=So()){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=So()){return e._close()}const nh=ta(Object.freeze(Object.defineProperty({__proto__:null,Store:th,clear:Ix,close:Ax,del:kx,get:Rx,keys:Ox,set:Tx,update:Px},Symbol.toStringTag,{value:"Module"}))),to=nh;var $x=class{constructor(t,n){this._database=t,this._storename=n,this._store=new to.Store(this._database,this._storename)}saveSuperblock(t){return to.set("!root",t,this._store)}loadSuperblock(){return to.get("!root",this._store)}readFile(t){return to.get(t,this._store)}writeFile(t,n){return to.set(t,n,this._store)}unlink(t){return to.del(t,this._store)}wipe(){return to.clear(this._store)}close(){return to.close(this._store)}},Mx=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 qi=nh,Bx=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 qi.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 qi.update("lock",r=>{const a=Date.now()+t;return n=r&&r.holder===this._id,this._lock=n?{holder:this._id,expires:a}:r,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,r,i;if(await qi.update("lock",a=>{const l=Date.now(),c=l+t;return r=a&&a.expires<l,n=a===void 0||r,i=a&&a.holder===this._id,this._lock=n?{holder:this._id,expires:c}:a,this._lock},this._store),i)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:r}={}){for(;n--;){if(await this.acquire({ttl:r}))return!0;await Bx(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,r,i;if(await qi.update("lock",a=>(n=t||a&&a.holder===this._id,r=a===void 0,i=a&&a.holder!==this._id,this._lock=n?void 0:a,this._lock),this._store),await qi.close(this._store),!n&&!t){if(r)throw new Error("Mutex double-freed");if(i)throw new Error("Mutex lost ownership")}return n}},Lx=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(r=>{this._release=r})))})}async wait({timeout:t=6e5}={}){return new Promise((n,r)=>{const i=new AbortController;setTimeout(()=>{i.abort(),r(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:i.signal},a=>(this._has=!!a,n(!!a),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:jx,decode:rh}=dx,Fx=fx,Nx=Ex,{ENOENT:zx,ENOTEMPTY:Wx,ETIMEDOUT:Ux}=Zp,Hx=$x,Gx=Mx,qx=Dx,Vx=Lx,Vi=cu;var Kx=class{constructor(){this.saveSuperblock=Fx(()=>{this.flush()},500)}async init(t,{wipe:n,url:r,urlauto:i,fileDbName:a=t,db:l=null,fileStoreName:c=t+"_files",lockDbName:d=t+"_lock",lockStoreName:h=t+"_lock"}={}){this._name=t,this._idb=l||new Hx(a,c),this._mutex=navigator.locks?new Vx(t):new qx(d,h),this._cache=new Nx(t),this._opts={wipe:n,url:r},this._needsWipe=!!n,r&&(this._http=new Gx(r),this._urlauto=!!i)}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 Ux}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,r){let i=Vi.split(Vi.dirname(t)),a=i.shift();for(let l of i){a=Vi.join(a,l);try{this._cache.mkdir(a,{mode:511})}catch{}}return this._cache.writeStat(t,n,r)}async readFile(t,n){const{encoding:r}=n;if(r&&r!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let i=null,a=null;try{a=this._cache.stat(t),i=await this._idb.readFile(a.ino)}catch(l){if(!this._urlauto)throw l}if(!i&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=Vi.resolve(Vi.dirname(t),l.target),l=this._cache.lstat(t);i=await this._http.readFile(t)}if(i&&((!a||a.size!=i.byteLength)&&(a=await this._writeStat(t,i.byteLength,{mode:a?a.mode:438}),this.saveSuperblock()),r==="utf8"?i=rh(i):i.toString=()=>rh(i)),!a)throw new zx(t);return i}async writeFile(t,n,r){const{mode:i,encoding:a="utf8"}=r;if(typeof n=="string"){if(a!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=jx(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:i});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const r=this._cache.lstat(t);this._cache.unlink(t),r.type!=="symlink"&&await this._idb.unlink(r.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:r=511}=n;this._cache.mkdir(t,{mode:r})}rmdir(t,n){if(t==="/")throw new Wx;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 r=await this._http.sizeFile(t);await this._writeStat(t,r,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},Yx=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 Xx=Kx,oh=Yx,na=cu;function vr(e,t,...n){return e=na.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function Jx(e,t,n,...r){return e=na.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...r]}function ih(e,t,...n){return[na.normalize(e),na.normalize(t),...n]}var Zx=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,vr,!1),this.writeFile=this._wrap(this.writeFile,Jx,!0),this.unlink=this._wrap(this.unlink,vr,!0),this.readdir=this._wrap(this.readdir,vr,!1),this.mkdir=this._wrap(this.mkdir,vr,!0),this.rmdir=this._wrap(this.rmdir,vr,!0),this.rename=this._wrap(this.rename,ih,!0),this.stat=this._wrap(this.stat,vr,!1),this.lstat=this._wrap(this.lstat,vr,!1),this.readlink=this._wrap(this.readlink,vr,!1),this.symlink=this._wrap(this.symlink,ih,!0),this.backFile=this._wrap(this.backFile,vr,!0),this.du=this._wrap(this.du,vr,!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 Xx,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,r){return async(...i)=>{i=n(...i);let a={name:t.name,args:i};this._operations.add(a);try{return await this._activate(),await t.apply(this,i)}finally{this._operations.delete(a),r&&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,r){return await this._backend.writeFile(t,n,r),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 r=await this._backend.stat(t,n);return new oh(r)}async lstat(t,n){const r=await this._backend.lstat(t,n);return new oh(r)}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 Qx=cx,ew=Zx;function xn(e,t){return typeof e=="function"&&(t=e),t=Qx(t),[(...r)=>t(null,...r),t]}var tw=class{constructor(...t){this.promises=new ew(...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,r){const[i,a]=xn(n,r);this.promises.readFile(t,n).then(i).catch(a)}writeFile(t,n,r,i){const[a,l]=xn(r,i);this.promises.writeFile(t,n,r).then(a).catch(l)}unlink(t,n,r){const[i,a]=xn(n,r);this.promises.unlink(t,n).then(i).catch(a)}readdir(t,n,r){const[i,a]=xn(n,r);this.promises.readdir(t,n).then(i).catch(a)}mkdir(t,n,r){const[i,a]=xn(n,r);this.promises.mkdir(t,n).then(i).catch(a)}rmdir(t,n,r){const[i,a]=xn(n,r);this.promises.rmdir(t,n).then(i).catch(a)}rename(t,n,r){const[i,a]=xn(r);this.promises.rename(t,n).then(i).catch(a)}stat(t,n,r){const[i,a]=xn(n,r);this.promises.stat(t).then(i).catch(a)}lstat(t,n,r){const[i,a]=xn(n,r);this.promises.lstat(t).then(i).catch(a)}readlink(t,n,r){const[i,a]=xn(n,r);this.promises.readlink(t).then(i).catch(a)}symlink(t,n,r){const[i,a]=xn(r);this.promises.symlink(t,n).then(i).catch(a)}backFile(t,n,r){const[i,a]=xn(n,r);this.promises.backFile(t,n).then(i).catch(a)}du(t,n){const[r,i]=xn(n);this.promises.du(t).then(r).catch(i)}flush(t){const[n,r]=xn(t);this.promises.flush().then(n).catch(r)}};const nw=Yp(tw);var sh={},ra={};ra.byteLength=iw,ra.toByteArray=aw,ra.fromByteArray=uw;for(var br=[],Hn=[],rw=typeof Uint8Array<"u"?Uint8Array:Array,du="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yo=0,ow=du.length;Yo<ow;++Yo)br[Yo]=du[Yo],Hn[du.charCodeAt(Yo)]=Yo;Hn[45]=62,Hn[95]=63;function ah(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 r=n===t?0:4-n%4;return[n,r]}function iw(e){var t=ah(e),n=t[0],r=t[1];return(n+r)*3/4-r}function sw(e,t,n){return(t+n)*3/4-n}function aw(e){var t,n=ah(e),r=n[0],i=n[1],a=new rw(sw(e,r,i)),l=0,c=i>0?r-4:r,d;for(d=0;d<c;d+=4)t=Hn[e.charCodeAt(d)]<<18|Hn[e.charCodeAt(d+1)]<<12|Hn[e.charCodeAt(d+2)]<<6|Hn[e.charCodeAt(d+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=t&255;return i===2&&(t=Hn[e.charCodeAt(d)]<<2|Hn[e.charCodeAt(d+1)]>>4,a[l++]=t&255),i===1&&(t=Hn[e.charCodeAt(d)]<<10|Hn[e.charCodeAt(d+1)]<<4|Hn[e.charCodeAt(d+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function lw(e){return br[e>>18&63]+br[e>>12&63]+br[e>>6&63]+br[e&63]}function cw(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(lw(r));return i.join("")}function uw(e){for(var t,n=e.length,r=n%3,i=[],a=16383,l=0,c=n-r;l<c;l+=a)i.push(cw(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],i.push(br[t>>2]+br[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(br[t>>10]+br[t>>4&63]+br[t<<2&63]+"=")),i.join("")}var fu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */fu.read=function(e,t,n,r,i){var a,l,c=i*8-r-1,d=(1<<c)-1,h=d>>1,y=-7,m=n?i-1:0,v=n?-1:1,S=e[t+m];for(m+=v,a=S&(1<<-y)-1,S>>=-y,y+=c;y>0;a=a*256+e[t+m],m+=v,y-=8);for(l=a&(1<<-y)-1,a>>=-y,y+=r;y>0;l=l*256+e[t+m],m+=v,y-=8);if(a===0)a=1-h;else{if(a===d)return l?NaN:(S?-1:1)*(1/0);l=l+Math.pow(2,r),a=a-h}return(S?-1:1)*l*Math.pow(2,a-r)},fu.write=function(e,t,n,r,i,a){var l,c,d,h=a*8-i-1,y=(1<<h)-1,m=y>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=r?0:a-1,x=r?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=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+=v/d:t+=v*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(c=0,l=y):l+m>=1?(c=(t*d-1)*Math.pow(2,i),l=l+m):(c=t*Math.pow(2,m-1)*Math.pow(2,i),l=0));i>=8;e[n+S]=c&255,S+=x,c/=256,i-=8);for(l=l<<i|c,h+=i;h>0;e[n+S]=l&255,S+=x,l/=256,h-=8);e[n+S-x]|=R*128};/*!
|
|
4
|
+
`),a=this._makeRoot(),l=[{indent:-1,node:a},{indent:0,node:null}];for(let c of i){let h=c.match(/^\t*/)[0].length;c=c.slice(h);let[y,...m]=c.split(" "),v=r(m);if(h<=l[l.length-1].indent)for(;h<=l[l.length-1].indent;)l.pop();l.push({indent:h,node:v}),l[l.length-2].node.set(y,v)}return a}_lookup(t,n=!0){let r=this._root,i="/",a=gn.split(t);for(let l=0;l<a.length;++l){let c=a[l];if(r=r.get(c),!r)throw new Tx(t);if(n||l<a.length-1){const d=r.get(an);if(d.type==="symlink"){let h=gn.resolve(i,d.target);r=this._lookup(h)}i?i=gn.join(i,c):i=c}}return r}mkdir(t,{mode:n}){if(t==="/")throw new eh;let r=this._lookup(gn.dirname(t)),i=gn.basename(t);if(r.has(i))throw new eh;let a=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};a.set(an,l),r.set(i,a)}rmdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new th;if(n.size>1)throw new Ix;let r=this._lookup(gn.dirname(t)),i=gn.basename(t);r.delete(i)}readdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new th;return[...n.keys()].filter(r=>typeof r=="string")}writeStat(t,n,{mode:r}){let i;try{let h=this.stat(t);r==null&&(r=h.mode),i=h.ino}catch{}r==null&&(r=438),i==null&&(i=this.autoinc());let a=this._lookup(gn.dirname(t)),l=gn.basename(t),c={mode:r,type:"file",size:n,mtimeMs:Date.now(),ino:i},d=new Map;return d.set(an,c),a.set(l,d),c}unlink(t){let n=this._lookup(gn.dirname(t)),r=gn.basename(t);n.delete(r)}rename(t,n){let r=gn.basename(n),i=this._lookup(t);this._lookup(gn.dirname(n)).set(r,i),this.unlink(t)}stat(t){return this._lookup(t).get(an)}lstat(t){return this._lookup(t,!1).get(an)}readlink(t){return this._lookup(t,!1).get(an).target}symlink(t,n){let r,i;try{let h=this.stat(n);i===null&&(i=h.mode),r=h.ino}catch{}i==null&&(i=40960),r==null&&(r=this.autoinc());let a=this._lookup(gn.dirname(n)),l=gn.basename(n),c={mode:i,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:r},d=new Map;return d.set(an,c),a.set(l,d),c}_du(t){let n=0;for(const[r,i]of t.entries())r===an?n+=i.size:n+=this._du(i);return n}du(t){let n=this._lookup(t);return this._du(n)}};class nh{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 r=indexedDB.open(this._dbName);r.onerror=()=>n(r.error),r.onsuccess=()=>t(r.result),r.onupgradeneeded=()=>{r.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(r=>new Promise((i,a)=>{const l=r.transaction(this.storeName,t);l.oncomplete=()=>i(),l.onabort=l.onerror=()=>a(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let du;function So(){return du||(du=new nh),du}function Ox(e,t=So()){let n;return t._withIDBStore("readwrite",r=>{n=r.get(e)}).then(()=>n.result)}function Ax(e,t,n=So()){return n._withIDBStore("readwrite",r=>{r.put(t,e)})}function $x(e,t,n=So()){return n._withIDBStore("readwrite",r=>{const i=r.get(e);i.onsuccess=()=>{r.put(t(i.result),e)}})}function Mx(e,t=So()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function Bx(e=So()){return e._withIDBStore("readwrite",t=>{t.clear()})}function Dx(e=So()){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 Lx(e=So()){return e._close()}const rh=ra(Object.freeze(Object.defineProperty({__proto__:null,Store:nh,clear:Bx,close:Lx,del:Mx,get:Ox,keys:Dx,set:Ax,update:$x},Symbol.toStringTag,{value:"Module"}))),to=rh;var jx=class{constructor(t,n){this._database=t,this._storename=n,this._store=new to.Store(this._database,this._storename)}saveSuperblock(t){return to.set("!root",t,this._store)}loadSuperblock(){return to.get("!root",this._store)}readFile(t){return to.get(t,this._store)}writeFile(t,n){return to.set(t,n,this._store)}unlink(t){return to.del(t,this._store)}wipe(){return to.clear(this._store)}close(){return to.close(this._store)}},Fx=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 qi=rh,Nx=e=>new Promise(t=>setTimeout(t,e));var zx=class{constructor(t,n){this._id=Math.random(),this._database=t,this._storename=n,this._store=new qi.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 qi.update("lock",r=>{const a=Date.now()+t;return n=r&&r.holder===this._id,this._lock=n?{holder:this._id,expires:a}:r,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,r,i;if(await qi.update("lock",a=>{const l=Date.now(),c=l+t;return r=a&&a.expires<l,n=a===void 0||r,i=a&&a.holder===this._id,this._lock=n?{holder:this._id,expires:c}:a,this._lock},this._store),i)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:r}={}){for(;n--;){if(await this.acquire({ttl:r}))return!0;await Nx(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,r,i;if(await qi.update("lock",a=>(n=t||a&&a.holder===this._id,r=a===void 0,i=a&&a.holder!==this._id,this._lock=n?void 0:a,this._lock),this._store),await qi.close(this._store),!n&&!t){if(r)throw new Error("Mutex double-freed");if(i)throw new Error("Mutex lost ownership")}return n}},Wx=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(r=>{this._release=r})))})}async wait({timeout:t=6e5}={}){return new Promise((n,r)=>{const i=new AbortController;setTimeout(()=>{i.abort(),r(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:i.signal},a=>(this._has=!!a,n(!!a),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:Ux,decode:oh}=mx,Hx=yx,Gx=kx,{ENOENT:qx,ENOTEMPTY:Vx,ETIMEDOUT:Kx}=Qp,Yx=jx,Xx=Fx,Jx=zx,Zx=Wx,Vi=uu;var Qx=class{constructor(){this.saveSuperblock=Hx(()=>{this.flush()},500)}async init(t,{wipe:n,url:r,urlauto:i,fileDbName:a=t,db:l=null,fileStoreName:c=t+"_files",lockDbName:d=t+"_lock",lockStoreName:h=t+"_lock"}={}){this._name=t,this._idb=l||new Yx(a,c),this._mutex=navigator.locks?new Zx(t):new Jx(d,h),this._cache=new Gx(t),this._opts={wipe:n,url:r},this._needsWipe=!!n,r&&(this._http=new Xx(r),this._urlauto=!!i)}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 Kx}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,r){let i=Vi.split(Vi.dirname(t)),a=i.shift();for(let l of i){a=Vi.join(a,l);try{this._cache.mkdir(a,{mode:511})}catch{}}return this._cache.writeStat(t,n,r)}async readFile(t,n){const{encoding:r}=n;if(r&&r!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let i=null,a=null;try{a=this._cache.stat(t),i=await this._idb.readFile(a.ino)}catch(l){if(!this._urlauto)throw l}if(!i&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=Vi.resolve(Vi.dirname(t),l.target),l=this._cache.lstat(t);i=await this._http.readFile(t)}if(i&&((!a||a.size!=i.byteLength)&&(a=await this._writeStat(t,i.byteLength,{mode:a?a.mode:438}),this.saveSuperblock()),r==="utf8"?i=oh(i):i.toString=()=>oh(i)),!a)throw new qx(t);return i}async writeFile(t,n,r){const{mode:i,encoding:a="utf8"}=r;if(typeof n=="string"){if(a!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=Ux(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:i});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const r=this._cache.lstat(t);this._cache.unlink(t),r.type!=="symlink"&&await this._idb.unlink(r.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:r=511}=n;this._cache.mkdir(t,{mode:r})}rmdir(t,n){if(t==="/")throw new Vx;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 r=await this._http.sizeFile(t);await this._writeStat(t,r,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},ew=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 tw=Qx,ih=ew,oa=uu;function vr(e,t,...n){return e=oa.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function nw(e,t,n,...r){return e=oa.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...r]}function sh(e,t,...n){return[oa.normalize(e),oa.normalize(t),...n]}var rw=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,vr,!1),this.writeFile=this._wrap(this.writeFile,nw,!0),this.unlink=this._wrap(this.unlink,vr,!0),this.readdir=this._wrap(this.readdir,vr,!1),this.mkdir=this._wrap(this.mkdir,vr,!0),this.rmdir=this._wrap(this.rmdir,vr,!0),this.rename=this._wrap(this.rename,sh,!0),this.stat=this._wrap(this.stat,vr,!1),this.lstat=this._wrap(this.lstat,vr,!1),this.readlink=this._wrap(this.readlink,vr,!1),this.symlink=this._wrap(this.symlink,sh,!0),this.backFile=this._wrap(this.backFile,vr,!0),this.du=this._wrap(this.du,vr,!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 tw,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,r){return async(...i)=>{i=n(...i);let a={name:t.name,args:i};this._operations.add(a);try{return await this._activate(),await t.apply(this,i)}finally{this._operations.delete(a),r&&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,r){return await this._backend.writeFile(t,n,r),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 r=await this._backend.stat(t,n);return new ih(r)}async lstat(t,n){const r=await this._backend.lstat(t,n);return new ih(r)}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 ow=hx,iw=rw;function wn(e,t){return typeof e=="function"&&(t=e),t=ow(t),[(...r)=>t(null,...r),t]}var sw=class{constructor(...t){this.promises=new iw(...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,r){const[i,a]=wn(n,r);this.promises.readFile(t,n).then(i).catch(a)}writeFile(t,n,r,i){const[a,l]=wn(r,i);this.promises.writeFile(t,n,r).then(a).catch(l)}unlink(t,n,r){const[i,a]=wn(n,r);this.promises.unlink(t,n).then(i).catch(a)}readdir(t,n,r){const[i,a]=wn(n,r);this.promises.readdir(t,n).then(i).catch(a)}mkdir(t,n,r){const[i,a]=wn(n,r);this.promises.mkdir(t,n).then(i).catch(a)}rmdir(t,n,r){const[i,a]=wn(n,r);this.promises.rmdir(t,n).then(i).catch(a)}rename(t,n,r){const[i,a]=wn(r);this.promises.rename(t,n).then(i).catch(a)}stat(t,n,r){const[i,a]=wn(n,r);this.promises.stat(t).then(i).catch(a)}lstat(t,n,r){const[i,a]=wn(n,r);this.promises.lstat(t).then(i).catch(a)}readlink(t,n,r){const[i,a]=wn(n,r);this.promises.readlink(t).then(i).catch(a)}symlink(t,n,r){const[i,a]=wn(r);this.promises.symlink(t,n).then(i).catch(a)}backFile(t,n,r){const[i,a]=wn(n,r);this.promises.backFile(t,n).then(i).catch(a)}du(t,n){const[r,i]=wn(n);this.promises.du(t).then(r).catch(i)}flush(t){const[n,r]=wn(t);this.promises.flush().then(n).catch(r)}};const aw=Xp(sw);var ah={},ia={};ia.byteLength=uw,ia.toByteArray=fw,ia.fromByteArray=gw;for(var br=[],Hn=[],lw=typeof Uint8Array<"u"?Uint8Array:Array,fu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yo=0,cw=fu.length;Yo<cw;++Yo)br[Yo]=fu[Yo],Hn[fu.charCodeAt(Yo)]=Yo;Hn[45]=62,Hn[95]=63;function lh(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 r=n===t?0:4-n%4;return[n,r]}function uw(e){var t=lh(e),n=t[0],r=t[1];return(n+r)*3/4-r}function dw(e,t,n){return(t+n)*3/4-n}function fw(e){var t,n=lh(e),r=n[0],i=n[1],a=new lw(dw(e,r,i)),l=0,c=i>0?r-4:r,d;for(d=0;d<c;d+=4)t=Hn[e.charCodeAt(d)]<<18|Hn[e.charCodeAt(d+1)]<<12|Hn[e.charCodeAt(d+2)]<<6|Hn[e.charCodeAt(d+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=t&255;return i===2&&(t=Hn[e.charCodeAt(d)]<<2|Hn[e.charCodeAt(d+1)]>>4,a[l++]=t&255),i===1&&(t=Hn[e.charCodeAt(d)]<<10|Hn[e.charCodeAt(d+1)]<<4|Hn[e.charCodeAt(d+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function pw(e){return br[e>>18&63]+br[e>>12&63]+br[e>>6&63]+br[e&63]}function hw(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(pw(r));return i.join("")}function gw(e){for(var t,n=e.length,r=n%3,i=[],a=16383,l=0,c=n-r;l<c;l+=a)i.push(hw(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],i.push(br[t>>2]+br[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(br[t>>10]+br[t>>4&63]+br[t<<2&63]+"=")),i.join("")}var pu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */pu.read=function(e,t,n,r,i){var a,l,c=i*8-r-1,d=(1<<c)-1,h=d>>1,y=-7,m=n?i-1:0,v=n?-1:1,w=e[t+m];for(m+=v,a=w&(1<<-y)-1,w>>=-y,y+=c;y>0;a=a*256+e[t+m],m+=v,y-=8);for(l=a&(1<<-y)-1,a>>=-y,y+=r;y>0;l=l*256+e[t+m],m+=v,y-=8);if(a===0)a=1-h;else{if(a===d)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,r),a=a-h}return(w?-1:1)*l*Math.pow(2,a-r)},pu.write=function(e,t,n,r,i,a){var l,c,d,h=a*8-i-1,y=(1<<h)-1,m=y>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=r?0:a-1,b=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=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+=v/d:t+=v*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(c=0,l=y):l+m>=1?(c=(t*d-1)*Math.pow(2,i),l=l+m):(c=t*Math.pow(2,m-1)*Math.pow(2,i),l=0));i>=8;e[n+w]=c&255,w+=b,c/=256,i-=8);for(l=l<<i|c,h+=i;h>0;e[n+w]=l&255,w+=b,l/=256,h-=8);e[n+w-b]|=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=ra,n=fu,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=a(),!c.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 a(){try{const T=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(T,p),T.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function l(T){if(T>i)throw new RangeError('The value "'+T+'" is invalid for option "size"');const p=new Uint8Array(T);return Object.setPrototypeOf(p,c.prototype),p}function c(T,p,g){if(typeof T=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(T)}return d(T,p,g)}c.poolSize=8192;function d(T,p,g){if(typeof T=="string")return v(T,p);if(ArrayBuffer.isView(T))return x(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(it(T,ArrayBuffer)||T&&it(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(it(T,SharedArrayBuffer)||T&&it(T.buffer,SharedArrayBuffer)))return R(T,p,g);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const B=T.valueOf&&T.valueOf();if(B!=null&&B!==T)return c.from(B,p,g);const F=O(T);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return c.from(T[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 T)}c.from=function(T,p,g){return d(T,p,g)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function h(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function y(T,p,g){return h(T),T<=0?l(T):p!==void 0?typeof g=="string"?l(T).fill(p,g):l(T).fill(p):l(T)}c.alloc=function(T,p,g){return y(T,p,g)};function m(T){return h(T),l(T<0?0:_(T)|0)}c.allocUnsafe=function(T){return m(T)},c.allocUnsafeSlow=function(T){return m(T)};function v(T,p){if((typeof p!="string"||p==="")&&(p="utf8"),!c.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const g=E(T,p)|0;let B=l(g);const F=B.write(T,p);return F!==g&&(B=B.slice(0,F)),B}function S(T){const p=T.length<0?0:_(T.length)|0,g=l(p);for(let B=0;B<p;B+=1)g[B]=T[B]&255;return g}function x(T){if(it(T,Uint8Array)){const p=new Uint8Array(T);return R(p.buffer,p.byteOffset,p.byteLength)}return S(T)}function R(T,p,g){if(p<0||T.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<p+(g||0))throw new RangeError('"length" is outside of buffer bounds');let B;return p===void 0&&g===void 0?B=new Uint8Array(T):g===void 0?B=new Uint8Array(T,p):B=new Uint8Array(T,p,g),Object.setPrototypeOf(B,c.prototype),B}function O(T){if(c.isBuffer(T)){const p=_(T.length)|0,g=l(p);return g.length===0||T.copy(g,0,0,p),g}if(T.length!==void 0)return typeof T.length!="number"||ye(T.length)?l(0):S(T);if(T.type==="Buffer"&&Array.isArray(T.data))return S(T.data)}function _(T){if(T>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return T|0}function I(T){return+T!=T&&(T=0),c.alloc(+T)}c.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==c.prototype},c.compare=function(p,g){if(it(p,Uint8Array)&&(p=c.from(p,p.offset,p.byteLength)),it(g,Uint8Array)&&(g=c.from(g,g.offset,g.byteLength)),!c.isBuffer(p)||!c.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===g)return 0;let B=p.length,F=g.length;for(let G=0,Y=Math.min(B,F);G<Y;++G)if(p[G]!==g[G]){B=p[G],F=g[G];break}return B<F?-1:F<B?1:0},c.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}},c.concat=function(p,g){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return c.alloc(0);let B;if(g===void 0)for(g=0,B=0;B<p.length;++B)g+=p[B].length;const F=c.allocUnsafe(g);let G=0;for(B=0;B<p.length;++B){let Y=p[B];if(it(Y,Uint8Array))G+Y.length>F.length?(c.isBuffer(Y)||(Y=c.from(Y)),Y.copy(F,G)):Uint8Array.prototype.set.call(F,Y,G);else if(c.isBuffer(Y))Y.copy(F,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=Y.length}return F};function E(T,p){if(c.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||it(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const g=T.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let F=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return De(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return tt(T).length;default:if(F)return B?-1:De(T).length;p=(""+p).toLowerCase(),F=!0}}c.byteLength=E;function P(T,p,g){let B=!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(T||(T="utf8");;)switch(T){case"hex":return _e(this,p,g);case"utf8":case"utf-8":return X(this,p,g);case"ascii":return fe(this,p,g);case"latin1":case"binary":return pe(this,p,g);case"base64":return ee(this,p,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,p,g);default:if(B)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),B=!0}}c.prototype._isBuffer=!0;function M(T,p,g){const B=T[p];T[p]=T[g],T[g]=B}c.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},c.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},c.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},c.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?X(this,0,p):P.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(p){if(!c.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:c.compare(this,p)===0},c.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+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(p,g,B,F,G){if(it(p,Uint8Array)&&(p=c.from(p,p.offset,p.byteLength)),!c.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),B===void 0&&(B=p?p.length:0),F===void 0&&(F=0),G===void 0&&(G=this.length),g<0||B>p.length||F<0||G>this.length)throw new RangeError("out of range index");if(F>=G&&g>=B)return 0;if(F>=G)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,F>>>=0,G>>>=0,this===p)return 0;let Y=G-F,ce=B-g;const oe=Math.min(Y,ce),se=this.slice(F,G),Se=p.slice(g,B);for(let we=0;we<oe;++we)if(se[we]!==Se[we]){Y=se[we],ce=Se[we];break}return Y<ce?-1:ce<Y?1:0};function D(T,p,g,B,F){if(T.length===0)return-1;if(typeof g=="string"?(B=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ye(g)&&(g=F?0:T.length-1),g<0&&(g=T.length+g),g>=T.length){if(F)return-1;g=T.length-1}else if(g<0)if(F)g=0;else return-1;if(typeof p=="string"&&(p=c.from(p,B)),c.isBuffer(p))return p.length===0?-1:$(T,p,g,B,F);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?F?Uint8Array.prototype.indexOf.call(T,p,g):Uint8Array.prototype.lastIndexOf.call(T,p,g):$(T,[p],g,B,F);throw new TypeError("val must be string, number or Buffer")}function $(T,p,g,B,F){let G=1,Y=T.length,ce=p.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(T.length<2||p.length<2)return-1;G=2,Y/=2,ce/=2,g/=2}function oe(Se,we){return G===1?Se[we]:Se.readUInt16BE(we*G)}let se;if(F){let Se=-1;for(se=g;se<Y;se++)if(oe(T,se)===oe(p,Se===-1?0:se-Se)){if(Se===-1&&(Se=se),se-Se+1===ce)return Se*G}else Se!==-1&&(se-=se-Se),Se=-1}else for(g+ce>Y&&(g=Y-ce),se=g;se>=0;se--){let Se=!0;for(let we=0;we<ce;we++)if(oe(T,se+we)!==oe(p,we)){Se=!1;break}if(Se)return se}return-1}c.prototype.includes=function(p,g,B){return this.indexOf(p,g,B)!==-1},c.prototype.indexOf=function(p,g,B){return D(this,p,g,B,!0)},c.prototype.lastIndexOf=function(p,g,B){return D(this,p,g,B,!1)};function z(T,p,g,B){g=Number(g)||0;const F=T.length-g;B?(B=Number(B),B>F&&(B=F)):B=F;const G=p.length;B>G/2&&(B=G/2);let Y;for(Y=0;Y<B;++Y){const ce=parseInt(p.substr(Y*2,2),16);if(ye(ce))return Y;T[g+Y]=ce}return Y}function V(T,p,g,B){return $e(De(p,T.length-g),T,g,B)}function b(T,p,g,B){return $e(Re(p),T,g,B)}function H(T,p,g,B){return $e(tt(p),T,g,B)}function Q(T,p,g,B){return $e(Fe(p,T.length-g),T,g,B)}c.prototype.write=function(p,g,B,F){if(g===void 0)F="utf8",B=this.length,g=0;else if(B===void 0&&typeof g=="string")F=g,B=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(B)?(B=B>>>0,F===void 0&&(F="utf8")):(F=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const G=this.length-g;if((B===void 0||B>G)&&(B=G),p.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let Y=!1;for(;;)switch(F){case"hex":return z(this,p,g,B);case"utf8":case"utf-8":return V(this,p,g,B);case"ascii":case"latin1":case"binary":return b(this,p,g,B);case"base64":return H(this,p,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,p,g,B);default:if(Y)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),Y=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(T,p,g){return p===0&&g===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(p,g))}function X(T,p,g){g=Math.min(T.length,g);const B=[];let F=p;for(;F<g;){const G=T[F];let Y=null,ce=G>239?4:G>223?3:G>191?2:1;if(F+ce<=g){let oe,se,Se,we;switch(ce){case 1:G<128&&(Y=G);break;case 2:oe=T[F+1],(oe&192)===128&&(we=(G&31)<<6|oe&63,we>127&&(Y=we));break;case 3:oe=T[F+1],se=T[F+2],(oe&192)===128&&(se&192)===128&&(we=(G&15)<<12|(oe&63)<<6|se&63,we>2047&&(we<55296||we>57343)&&(Y=we));break;case 4:oe=T[F+1],se=T[F+2],Se=T[F+3],(oe&192)===128&&(se&192)===128&&(Se&192)===128&&(we=(G&15)<<18|(oe&63)<<12|(se&63)<<6|Se&63,we>65535&&we<1114112&&(Y=we))}}Y===null?(Y=65533,ce=1):Y>65535&&(Y-=65536,B.push(Y>>>10&1023|55296),Y=56320|Y&1023),B.push(Y),F+=ce}return le(B)}const te=4096;function le(T){const p=T.length;if(p<=te)return String.fromCharCode.apply(String,T);let g="",B=0;for(;B<p;)g+=String.fromCharCode.apply(String,T.slice(B,B+=te));return g}function fe(T,p,g){let B="";g=Math.min(T.length,g);for(let F=p;F<g;++F)B+=String.fromCharCode(T[F]&127);return B}function pe(T,p,g){let B="";g=Math.min(T.length,g);for(let F=p;F<g;++F)B+=String.fromCharCode(T[F]);return B}function _e(T,p,g){const B=T.length;(!p||p<0)&&(p=0),(!g||g<0||g>B)&&(g=B);let F="";for(let G=p;G<g;++G)F+=Ot[T[G]];return F}function We(T,p,g){const B=T.slice(p,g);let F="";for(let G=0;G<B.length-1;G+=2)F+=String.fromCharCode(B[G]+B[G+1]*256);return F}c.prototype.slice=function(p,g){const B=this.length;p=~~p,g=g===void 0?B:~~g,p<0?(p+=B,p<0&&(p=0)):p>B&&(p=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),g<p&&(g=p);const F=this.subarray(p,g);return Object.setPrototypeOf(F,c.prototype),F};function be(T,p,g){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+p>g)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p],G=1,Y=0;for(;++Y<g&&(G*=256);)F+=this[p+Y]*G;return F},c.prototype.readUintBE=c.prototype.readUIntBE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p+--g],G=1;for(;g>0&&(G*=256);)F+=this[p+--g]*G;return F},c.prototype.readUint8=c.prototype.readUInt8=function(p,g){return p=p>>>0,g||be(p,1,this.length),this[p]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(p,g){return p=p>>>0,g||be(p,2,this.length),this[p]|this[p+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(p,g){return p=p>>>0,g||be(p,2,this.length),this[p]<<8|this[p+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(p,g){return p=p>>>0,g||be(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},c.prototype.readBigUInt64LE=Ft(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,G=this[++p]+this[++p]*2**8+this[++p]*2**16+B*2**24;return BigInt(F)+(BigInt(G)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ft(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=g*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],G=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+B;return(BigInt(F)<<BigInt(32))+BigInt(G)}),c.prototype.readIntLE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p],G=1,Y=0;for(;++Y<g&&(G*=256);)F+=this[p+Y]*G;return G*=128,F>=G&&(F-=Math.pow(2,8*g)),F},c.prototype.readIntBE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=g,G=1,Y=this[p+--F];for(;F>0&&(G*=256);)Y+=this[p+--F]*G;return G*=128,Y>=G&&(Y-=Math.pow(2,8*g)),Y},c.prototype.readInt8=function(p,g){return p=p>>>0,g||be(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},c.prototype.readInt16LE=function(p,g){p=p>>>0,g||be(p,2,this.length);const B=this[p]|this[p+1]<<8;return B&32768?B|4294901760:B},c.prototype.readInt16BE=function(p,g){p=p>>>0,g||be(p,2,this.length);const B=this[p+1]|this[p]<<8;return B&32768?B|4294901760:B},c.prototype.readInt32LE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},c.prototype.readInt32BE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},c.prototype.readBigInt64LE=Ft(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(B<<24);return(BigInt(F)<<BigInt(32))+BigInt(g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),c.prototype.readBigInt64BE=Ft(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=(g<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(F)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+B)}),c.prototype.readFloatLE=function(p,g){return p=p>>>0,g||be(p,4,this.length),n.read(this,p,!0,23,4)},c.prototype.readFloatBE=function(p,g){return p=p>>>0,g||be(p,4,this.length),n.read(this,p,!1,23,4)},c.prototype.readDoubleLE=function(p,g){return p=p>>>0,g||be(p,8,this.length),n.read(this,p,!0,52,8)},c.prototype.readDoubleBE=function(p,g){return p=p>>>0,g||be(p,8,this.length),n.read(this,p,!1,52,8)};function Be(T,p,g,B,F,G){if(!c.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>F||p<G)throw new RangeError('"value" argument is out of bounds');if(g+B>T.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(p,g,B,F){if(p=+p,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,p,g,B,ce,0)}let G=1,Y=0;for(this[g]=p&255;++Y<B&&(G*=256);)this[g+Y]=p/G&255;return g+B},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(p,g,B,F){if(p=+p,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,p,g,B,ce,0)}let G=B-1,Y=1;for(this[g+G]=p&255;--G>=0&&(Y*=256);)this[g+G]=p/Y&255;return g+B},c.prototype.writeUint8=c.prototype.writeUInt8=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,1,255,0),this[g]=p&255,g+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,65535,0),this[g]=p&255,this[g+1]=p>>>8,g+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,65535,0),this[g]=p>>>8,this[g+1]=p&255,g+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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 Ne(T,p,g,B,F){de(p,B,F,T,g,7);let G=Number(p&BigInt(4294967295));T[g++]=G,G=G>>8,T[g++]=G,G=G>>8,T[g++]=G,G=G>>8,T[g++]=G;let Y=Number(p>>BigInt(32)&BigInt(4294967295));return T[g++]=Y,Y=Y>>8,T[g++]=Y,Y=Y>>8,T[g++]=Y,Y=Y>>8,T[g++]=Y,g}function Me(T,p,g,B,F){de(p,B,F,T,g,7);let G=Number(p&BigInt(4294967295));T[g+7]=G,G=G>>8,T[g+6]=G,G=G>>8,T[g+5]=G,G=G>>8,T[g+4]=G;let Y=Number(p>>BigInt(32)&BigInt(4294967295));return T[g+3]=Y,Y=Y>>8,T[g+2]=Y,Y=Y>>8,T[g+1]=Y,Y=Y>>8,T[g]=Y,g+8}c.prototype.writeBigUInt64LE=Ft(function(p,g=0){return Ne(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ft(function(p,g=0){return Me(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(p,g,B,F){if(p=+p,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,p,g,B,oe-1,-oe)}let G=0,Y=1,ce=0;for(this[g]=p&255;++G<B&&(Y*=256);)p<0&&ce===0&&this[g+G-1]!==0&&(ce=1),this[g+G]=(p/Y>>0)-ce&255;return g+B},c.prototype.writeIntBE=function(p,g,B,F){if(p=+p,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,p,g,B,oe-1,-oe)}let G=B-1,Y=1,ce=0;for(this[g+G]=p&255;--G>=0&&(Y*=256);)p<0&&ce===0&&this[g+G+1]!==0&&(ce=1),this[g+G]=(p/Y>>0)-ce&255;return g+B},c.prototype.writeInt8=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,1,127,-128),p<0&&(p=255+p+1),this[g]=p&255,g+1},c.prototype.writeInt16LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,32767,-32768),this[g]=p&255,this[g+1]=p>>>8,g+2},c.prototype.writeInt16BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,32767,-32768),this[g]=p>>>8,this[g+1]=p&255,g+2},c.prototype.writeInt32LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeInt32BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeBigInt64LE=Ft(function(p,g=0){return Ne(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ft(function(p,g=0){return Me(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xe(T,p,g,B,F,G){if(g+B>T.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ge(T,p,g,B,F){return p=+p,g=g>>>0,F||Xe(T,p,g,4),n.write(T,p,g,B,23,4),g+4}c.prototype.writeFloatLE=function(p,g,B){return Ge(this,p,g,!0,B)},c.prototype.writeFloatBE=function(p,g,B){return Ge(this,p,g,!1,B)};function ht(T,p,g,B,F){return p=+p,g=g>>>0,F||Xe(T,p,g,8),n.write(T,p,g,B,52,8),g+8}c.prototype.writeDoubleLE=function(p,g,B){return ht(this,p,g,!0,B)},c.prototype.writeDoubleBE=function(p,g,B){return ht(this,p,g,!1,B)},c.prototype.copy=function(p,g,B,F){if(!c.isBuffer(p))throw new TypeError("argument should be a Buffer");if(B||(B=0),!F&&F!==0&&(F=this.length),g>=p.length&&(g=p.length),g||(g=0),F>0&&F<B&&(F=B),F===B||p.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),p.length-g<F-B&&(F=p.length-g+B);const G=F-B;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,B,F):Uint8Array.prototype.set.call(p,this.subarray(B,F),g),G},c.prototype.fill=function(p,g,B,F){if(typeof p=="string"){if(typeof g=="string"?(F=g,g=0,B=this.length):typeof B=="string"&&(F=B,B=this.length),F!==void 0&&typeof F!="string")throw new TypeError("encoding must be a string");if(typeof F=="string"&&!c.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(p.length===1){const Y=p.charCodeAt(0);(F==="utf8"&&Y<128||F==="latin1")&&(p=Y)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(g<0||this.length<g||this.length<B)throw new RangeError("Out of range index");if(B<=g)return this;g=g>>>0,B=B===void 0?this.length:B>>>0,p||(p=0);let G;if(typeof p=="number")for(G=g;G<B;++G)this[G]=p;else{const Y=c.isBuffer(p)?p:c.from(p,F),ce=Y.length;if(ce===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(G=0;G<B-g;++G)this[G+g]=Y[G%ce]}return this};const ae={};function ue(T,p,g){ae[T]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(T,p){return`The "${T}" argument must be of type number. Received type ${typeof p}`},TypeError),ue("ERR_OUT_OF_RANGE",function(T,p,g){let B=`The value of "${T}" is out of range.`,F=g;return Number.isInteger(g)&&Math.abs(g)>2**32?F=he(String(g)):typeof g=="bigint"&&(F=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(F=he(F)),F+="n"),B+=` It must be ${p}. Received ${F}`,B},RangeError);function he(T){let p="",g=T.length;const B=T[0]==="-"?1:0;for(;g>=B+4;g-=3)p=`_${T.slice(g-3,g)}${p}`;return`${T.slice(0,g)}${p}`}function ge(T,p,g){Pe(p,"offset"),(T[p]===void 0||T[p+g]===void 0)&&ve(p,T.length-(g+1))}function de(T,p,g,B,F,G){if(T>g||T<p){const Y=typeof p=="bigint"?"n":"";let ce;throw p===0||p===BigInt(0)?ce=`>= 0${Y} and < 2${Y} ** ${(G+1)*8}${Y}`:ce=`>= -(2${Y} ** ${(G+1)*8-1}${Y}) and < 2 ** ${(G+1)*8-1}${Y}`,new ae.ERR_OUT_OF_RANGE("value",ce,T)}ge(B,F,G)}function Pe(T,p){if(typeof T!="number")throw new ae.ERR_INVALID_ARG_TYPE(p,"number",T)}function ve(T,p,g){throw Math.floor(T)!==T?(Pe(T,g),new ae.ERR_OUT_OF_RANGE("offset","an integer",T)):p<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,T)}const Ie=/[^+/0-9A-Za-z-_]/g;function qe(T){if(T=T.split("=")[0],T=T.trim().replace(Ie,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function De(T,p){p=p||1/0;let g;const B=T.length;let F=null;const G=[];for(let Y=0;Y<B;++Y){if(g=T.charCodeAt(Y),g>55295&&g<57344){if(!F){if(g>56319){(p-=3)>-1&&G.push(239,191,189);continue}else if(Y+1===B){(p-=3)>-1&&G.push(239,191,189);continue}F=g;continue}if(g<56320){(p-=3)>-1&&G.push(239,191,189),F=g;continue}g=(F-55296<<10|g-56320)+65536}else F&&(p-=3)>-1&&G.push(239,191,189);if(F=null,g<128){if((p-=1)<0)break;G.push(g)}else if(g<2048){if((p-=2)<0)break;G.push(g>>6|192,g&63|128)}else if(g<65536){if((p-=3)<0)break;G.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((p-=4)<0)break;G.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return G}function Re(T){const p=[];for(let g=0;g<T.length;++g)p.push(T.charCodeAt(g)&255);return p}function Fe(T,p){let g,B,F;const G=[];for(let Y=0;Y<T.length&&!((p-=2)<0);++Y)g=T.charCodeAt(Y),B=g>>8,F=g%256,G.push(F),G.push(B);return G}function tt(T){return t.toByteArray(qe(T))}function $e(T,p,g,B){let F;for(F=0;F<B&&!(F+g>=p.length||F>=T.length);++F)p[F+g]=T[F];return F}function it(T,p){return T instanceof p||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===p.name}function ye(T){return T!==T}const Ot=function(){const T="0123456789abcdef",p=new Array(256);for(let g=0;g<16;++g){const B=g*16;for(let F=0;F<16;++F)p[B+F]=T[g]+T[F]}return p}();function Ft(T){return typeof BigInt>"u"?mn:T}function mn(){throw new Error("BigInt not supported")}})(sh);function dw(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function fw(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:dw(e)}async function pw(e,t){const n=fw(e);for(;;){const{value:r,done:i}=await n.next();if(r&&await t(r),i)break}n.return&&n.return()}async function hw(e){let t=0;const n=[];await pw(e,a=>{n.push(a),t+=a.byteLength});const r=new Uint8Array(t);let i=0;for(const a of n)r.set(a,i),i+=a.byteLength;return r}function gw(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 mw({onProgress:e,url:t,method:n="GET",headers:r={},body:i}){i&&(i=await hw(i));const a=await fetch(t,{method:n,headers:r,body:i}),l=a.body&&a.body.getReader?gw(a.body):[new Uint8Array(await a.arrayBuffer())];r={};for(const[c,d]of a.headers.entries())r[c]=d;return{url:a.url,method:a.method,statusCode:a.status,statusMessage:a.statusText,body:l,headers:r}}var pu={request:mw};const yw=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},lh=async e=>await window.pfs.readdir(e),ch=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(r){console.debug("recursiveRm: Path does not exist",r);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const r=await t.readdir(e);for(const i of r)await ch(`${e}/${i}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},vw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r="makeinfinite_client",i="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:r}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:i})},bw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.clone({fs:r,http:pu,dir:i,corsProxy:n,url:t,ref:"main"}),await vw(e)},xw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.pull({fs:r,http:pu,dir:i,corsProxy:n,url:t,ref:"main"})},ww=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:r})},Sw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.fetch({fs:r,http:pu,dir:i,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Cw{constructor(t,n,r){this.targetRef=t,this.sourceRef=n,this.opType=r}}const hu=e=>{var l,c;const t=e.commit.message.trim().split(`
|
|
10
|
-
`),n=t.find(d=>d.startsWith("Git Ref: ")),r=t.find(d=>d.startsWith("Extra Metadata: "));if(!n||!r)return null;const i=(l=n.split("Git Ref: ")[1])==null?void 0:l.trim(),a=JSON.parse(((c=r.split("Extra Metadata: ")[1])==null?void 0:c.trim())||"{}");return!i||!a?null:new
|
|
9
|
+
*/(function(e){const t=ia,n=pu,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=a(),!c.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 a(){try{const T=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(T,p),T.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function l(T){if(T>i)throw new RangeError('The value "'+T+'" is invalid for option "size"');const p=new Uint8Array(T);return Object.setPrototypeOf(p,c.prototype),p}function c(T,p,g){if(typeof T=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(T)}return d(T,p,g)}c.poolSize=8192;function d(T,p,g){if(typeof T=="string")return v(T,p);if(ArrayBuffer.isView(T))return b(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(st(T,ArrayBuffer)||T&&st(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(T,SharedArrayBuffer)||T&&st(T.buffer,SharedArrayBuffer)))return E(T,p,g);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const B=T.valueOf&&T.valueOf();if(B!=null&&B!==T)return c.from(B,p,g);const F=k(T);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return c.from(T[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 T)}c.from=function(T,p,g){return d(T,p,g)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function h(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function y(T,p,g){return h(T),T<=0?l(T):p!==void 0?typeof g=="string"?l(T).fill(p,g):l(T).fill(p):l(T)}c.alloc=function(T,p,g){return y(T,p,g)};function m(T){return h(T),l(T<0?0:_(T)|0)}c.allocUnsafe=function(T){return m(T)},c.allocUnsafeSlow=function(T){return m(T)};function v(T,p){if((typeof p!="string"||p==="")&&(p="utf8"),!c.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const g=C(T,p)|0;let B=l(g);const F=B.write(T,p);return F!==g&&(B=B.slice(0,F)),B}function w(T){const p=T.length<0?0:_(T.length)|0,g=l(p);for(let B=0;B<p;B+=1)g[B]=T[B]&255;return g}function b(T){if(st(T,Uint8Array)){const p=new Uint8Array(T);return E(p.buffer,p.byteOffset,p.byteLength)}return w(T)}function E(T,p,g){if(p<0||T.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<p+(g||0))throw new RangeError('"length" is outside of buffer bounds');let B;return p===void 0&&g===void 0?B=new Uint8Array(T):g===void 0?B=new Uint8Array(T,p):B=new Uint8Array(T,p,g),Object.setPrototypeOf(B,c.prototype),B}function k(T){if(c.isBuffer(T)){const p=_(T.length)|0,g=l(p);return g.length===0||T.copy(g,0,0,p),g}if(T.length!==void 0)return typeof T.length!="number"||ye(T.length)?l(0):w(T);if(T.type==="Buffer"&&Array.isArray(T.data))return w(T.data)}function _(T){if(T>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return T|0}function O(T){return+T!=T&&(T=0),c.alloc(+T)}c.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==c.prototype},c.compare=function(p,g){if(st(p,Uint8Array)&&(p=c.from(p,p.offset,p.byteLength)),st(g,Uint8Array)&&(g=c.from(g,g.offset,g.byteLength)),!c.isBuffer(p)||!c.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===g)return 0;let B=p.length,F=g.length;for(let q=0,Z=Math.min(B,F);q<Z;++q)if(p[q]!==g[q]){B=p[q],F=g[q];break}return B<F?-1:F<B?1:0},c.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}},c.concat=function(p,g){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return c.alloc(0);let B;if(g===void 0)for(g=0,B=0;B<p.length;++B)g+=p[B].length;const F=c.allocUnsafe(g);let q=0;for(B=0;B<p.length;++B){let Z=p[B];if(st(Z,Uint8Array))q+Z.length>F.length?(c.isBuffer(Z)||(Z=c.from(Z)),Z.copy(F,q)):Uint8Array.prototype.set.call(F,Z,q);else if(c.isBuffer(Z))Z.copy(F,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=Z.length}return F};function C(T,p){if(c.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||st(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const g=T.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let F=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return De(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return tt(T).length;default:if(F)return B?-1:De(T).length;p=(""+p).toLowerCase(),F=!0}}c.byteLength=C;function P(T,p,g){let B=!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(T||(T="utf8");;)switch(T){case"hex":return _e(this,p,g);case"utf8":case"utf-8":return Y(this,p,g);case"ascii":return fe(this,p,g);case"latin1":case"binary":return pe(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(B)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),B=!0}}c.prototype._isBuffer=!0;function M(T,p,g){const B=T[p];T[p]=T[g],T[g]=B}c.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},c.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},c.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},c.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Y(this,0,p):P.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(p){if(!c.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:c.compare(this,p)===0},c.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+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(p,g,B,F,q){if(st(p,Uint8Array)&&(p=c.from(p,p.offset,p.byteLength)),!c.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),B===void 0&&(B=p?p.length:0),F===void 0&&(F=0),q===void 0&&(q=this.length),g<0||B>p.length||F<0||q>this.length)throw new RangeError("out of range index");if(F>=q&&g>=B)return 0;if(F>=q)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,F>>>=0,q>>>=0,this===p)return 0;let Z=q-F,ce=B-g;const oe=Math.min(Z,ce),se=this.slice(F,q),Se=p.slice(g,B);for(let we=0;we<oe;++we)if(se[we]!==Se[we]){Z=se[we],ce=Se[we];break}return Z<ce?-1:ce<Z?1:0};function D(T,p,g,B,F){if(T.length===0)return-1;if(typeof g=="string"?(B=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ye(g)&&(g=F?0:T.length-1),g<0&&(g=T.length+g),g>=T.length){if(F)return-1;g=T.length-1}else if(g<0)if(F)g=0;else return-1;if(typeof p=="string"&&(p=c.from(p,B)),c.isBuffer(p))return p.length===0?-1:$(T,p,g,B,F);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?F?Uint8Array.prototype.indexOf.call(T,p,g):Uint8Array.prototype.lastIndexOf.call(T,p,g):$(T,[p],g,B,F);throw new TypeError("val must be string, number or Buffer")}function $(T,p,g,B,F){let q=1,Z=T.length,ce=p.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(T.length<2||p.length<2)return-1;q=2,Z/=2,ce/=2,g/=2}function oe(Se,we){return q===1?Se[we]:Se.readUInt16BE(we*q)}let se;if(F){let Se=-1;for(se=g;se<Z;se++)if(oe(T,se)===oe(p,Se===-1?0:se-Se)){if(Se===-1&&(Se=se),se-Se+1===ce)return Se*q}else Se!==-1&&(se-=se-Se),Se=-1}else for(g+ce>Z&&(g=Z-ce),se=g;se>=0;se--){let Se=!0;for(let we=0;we<ce;we++)if(oe(T,se+we)!==oe(p,we)){Se=!1;break}if(Se)return se}return-1}c.prototype.includes=function(p,g,B){return this.indexOf(p,g,B)!==-1},c.prototype.indexOf=function(p,g,B){return D(this,p,g,B,!0)},c.prototype.lastIndexOf=function(p,g,B){return D(this,p,g,B,!1)};function z(T,p,g,B){g=Number(g)||0;const F=T.length-g;B?(B=Number(B),B>F&&(B=F)):B=F;const q=p.length;B>q/2&&(B=q/2);let Z;for(Z=0;Z<B;++Z){const ce=parseInt(p.substr(Z*2,2),16);if(ye(ce))return Z;T[g+Z]=ce}return Z}function V(T,p,g,B){return $e(De(p,T.length-g),T,g,B)}function R(T,p,g,B){return $e(Re(p),T,g,B)}function G(T,p,g,B){return $e(tt(p),T,g,B)}function te(T,p,g,B){return $e(Fe(p,T.length-g),T,g,B)}c.prototype.write=function(p,g,B,F){if(g===void 0)F="utf8",B=this.length,g=0;else if(B===void 0&&typeof g=="string")F=g,B=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(B)?(B=B>>>0,F===void 0&&(F="utf8")):(F=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-g;if((B===void 0||B>q)&&(B=q),p.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let Z=!1;for(;;)switch(F){case"hex":return z(this,p,g,B);case"utf8":case"utf-8":return V(this,p,g,B);case"ascii":case"latin1":case"binary":return R(this,p,g,B);case"base64":return G(this,p,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,p,g,B);default:if(Z)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),Z=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(T,p,g){return p===0&&g===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(p,g))}function Y(T,p,g){g=Math.min(T.length,g);const B=[];let F=p;for(;F<g;){const q=T[F];let Z=null,ce=q>239?4:q>223?3:q>191?2:1;if(F+ce<=g){let oe,se,Se,we;switch(ce){case 1:q<128&&(Z=q);break;case 2:oe=T[F+1],(oe&192)===128&&(we=(q&31)<<6|oe&63,we>127&&(Z=we));break;case 3:oe=T[F+1],se=T[F+2],(oe&192)===128&&(se&192)===128&&(we=(q&15)<<12|(oe&63)<<6|se&63,we>2047&&(we<55296||we>57343)&&(Z=we));break;case 4:oe=T[F+1],se=T[F+2],Se=T[F+3],(oe&192)===128&&(se&192)===128&&(Se&192)===128&&(we=(q&15)<<18|(oe&63)<<12|(se&63)<<6|Se&63,we>65535&&we<1114112&&(Z=we))}}Z===null?(Z=65533,ce=1):Z>65535&&(Z-=65536,B.push(Z>>>10&1023|55296),Z=56320|Z&1023),B.push(Z),F+=ce}return ae(B)}const ee=4096;function ae(T){const p=T.length;if(p<=ee)return String.fromCharCode.apply(String,T);let g="",B=0;for(;B<p;)g+=String.fromCharCode.apply(String,T.slice(B,B+=ee));return g}function fe(T,p,g){let B="";g=Math.min(T.length,g);for(let F=p;F<g;++F)B+=String.fromCharCode(T[F]&127);return B}function pe(T,p,g){let B="";g=Math.min(T.length,g);for(let F=p;F<g;++F)B+=String.fromCharCode(T[F]);return B}function _e(T,p,g){const B=T.length;(!p||p<0)&&(p=0),(!g||g<0||g>B)&&(g=B);let F="";for(let q=p;q<g;++q)F+=Ot[T[q]];return F}function We(T,p,g){const B=T.slice(p,g);let F="";for(let q=0;q<B.length-1;q+=2)F+=String.fromCharCode(B[q]+B[q+1]*256);return F}c.prototype.slice=function(p,g){const B=this.length;p=~~p,g=g===void 0?B:~~g,p<0?(p+=B,p<0&&(p=0)):p>B&&(p=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),g<p&&(g=p);const F=this.subarray(p,g);return Object.setPrototypeOf(F,c.prototype),F};function be(T,p,g){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+p>g)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p],q=1,Z=0;for(;++Z<g&&(q*=256);)F+=this[p+Z]*q;return F},c.prototype.readUintBE=c.prototype.readUIntBE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p+--g],q=1;for(;g>0&&(q*=256);)F+=this[p+--g]*q;return F},c.prototype.readUint8=c.prototype.readUInt8=function(p,g){return p=p>>>0,g||be(p,1,this.length),this[p]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(p,g){return p=p>>>0,g||be(p,2,this.length),this[p]|this[p+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(p,g){return p=p>>>0,g||be(p,2,this.length),this[p]<<8|this[p+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(p,g){return p=p>>>0,g||be(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},c.prototype.readBigUInt64LE=Ft(function(p){p=p>>>0,Te(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,q=this[++p]+this[++p]*2**8+this[++p]*2**16+B*2**24;return BigInt(F)+(BigInt(q)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ft(function(p){p=p>>>0,Te(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=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+B;return(BigInt(F)<<BigInt(32))+BigInt(q)}),c.prototype.readIntLE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=this[p],q=1,Z=0;for(;++Z<g&&(q*=256);)F+=this[p+Z]*q;return q*=128,F>=q&&(F-=Math.pow(2,8*g)),F},c.prototype.readIntBE=function(p,g,B){p=p>>>0,g=g>>>0,B||be(p,g,this.length);let F=g,q=1,Z=this[p+--F];for(;F>0&&(q*=256);)Z+=this[p+--F]*q;return q*=128,Z>=q&&(Z-=Math.pow(2,8*g)),Z},c.prototype.readInt8=function(p,g){return p=p>>>0,g||be(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},c.prototype.readInt16LE=function(p,g){p=p>>>0,g||be(p,2,this.length);const B=this[p]|this[p+1]<<8;return B&32768?B|4294901760:B},c.prototype.readInt16BE=function(p,g){p=p>>>0,g||be(p,2,this.length);const B=this[p+1]|this[p]<<8;return B&32768?B|4294901760:B},c.prototype.readInt32LE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},c.prototype.readInt32BE=function(p,g){return p=p>>>0,g||be(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},c.prototype.readBigInt64LE=Ft(function(p){p=p>>>0,Te(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(B<<24);return(BigInt(F)<<BigInt(32))+BigInt(g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),c.prototype.readBigInt64BE=Ft(function(p){p=p>>>0,Te(p,"offset");const g=this[p],B=this[p+7];(g===void 0||B===void 0)&&ve(p,this.length-8);const F=(g<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(F)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+B)}),c.prototype.readFloatLE=function(p,g){return p=p>>>0,g||be(p,4,this.length),n.read(this,p,!0,23,4)},c.prototype.readFloatBE=function(p,g){return p=p>>>0,g||be(p,4,this.length),n.read(this,p,!1,23,4)},c.prototype.readDoubleLE=function(p,g){return p=p>>>0,g||be(p,8,this.length),n.read(this,p,!0,52,8)},c.prototype.readDoubleBE=function(p,g){return p=p>>>0,g||be(p,8,this.length),n.read(this,p,!1,52,8)};function Be(T,p,g,B,F,q){if(!c.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>F||p<q)throw new RangeError('"value" argument is out of bounds');if(g+B>T.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(p,g,B,F){if(p=+p,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,p,g,B,ce,0)}let q=1,Z=0;for(this[g]=p&255;++Z<B&&(q*=256);)this[g+Z]=p/q&255;return g+B},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(p,g,B,F){if(p=+p,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,p,g,B,ce,0)}let q=B-1,Z=1;for(this[g+q]=p&255;--q>=0&&(Z*=256);)this[g+q]=p/Z&255;return g+B},c.prototype.writeUint8=c.prototype.writeUInt8=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,1,255,0),this[g]=p&255,g+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,65535,0),this[g]=p&255,this[g+1]=p>>>8,g+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,65535,0),this[g]=p>>>8,this[g+1]=p&255,g+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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 Ne(T,p,g,B,F){de(p,B,F,T,g,7);let q=Number(p&BigInt(4294967295));T[g++]=q,q=q>>8,T[g++]=q,q=q>>8,T[g++]=q,q=q>>8,T[g++]=q;let Z=Number(p>>BigInt(32)&BigInt(4294967295));return T[g++]=Z,Z=Z>>8,T[g++]=Z,Z=Z>>8,T[g++]=Z,Z=Z>>8,T[g++]=Z,g}function Me(T,p,g,B,F){de(p,B,F,T,g,7);let q=Number(p&BigInt(4294967295));T[g+7]=q,q=q>>8,T[g+6]=q,q=q>>8,T[g+5]=q,q=q>>8,T[g+4]=q;let Z=Number(p>>BigInt(32)&BigInt(4294967295));return T[g+3]=Z,Z=Z>>8,T[g+2]=Z,Z=Z>>8,T[g+1]=Z,Z=Z>>8,T[g]=Z,g+8}c.prototype.writeBigUInt64LE=Ft(function(p,g=0){return Ne(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ft(function(p,g=0){return Me(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(p,g,B,F){if(p=+p,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,p,g,B,oe-1,-oe)}let q=0,Z=1,ce=0;for(this[g]=p&255;++q<B&&(Z*=256);)p<0&&ce===0&&this[g+q-1]!==0&&(ce=1),this[g+q]=(p/Z>>0)-ce&255;return g+B},c.prototype.writeIntBE=function(p,g,B,F){if(p=+p,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,p,g,B,oe-1,-oe)}let q=B-1,Z=1,ce=0;for(this[g+q]=p&255;--q>=0&&(Z*=256);)p<0&&ce===0&&this[g+q+1]!==0&&(ce=1),this[g+q]=(p/Z>>0)-ce&255;return g+B},c.prototype.writeInt8=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,1,127,-128),p<0&&(p=255+p+1),this[g]=p&255,g+1},c.prototype.writeInt16LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,32767,-32768),this[g]=p&255,this[g+1]=p>>>8,g+2},c.prototype.writeInt16BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(this,p,g,2,32767,-32768),this[g]=p>>>8,this[g+1]=p&255,g+2},c.prototype.writeInt32LE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeInt32BE=function(p,g,B){return p=+p,g=g>>>0,B||Be(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},c.prototype.writeBigInt64LE=Ft(function(p,g=0){return Ne(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ft(function(p,g=0){return Me(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xe(T,p,g,B,F,q){if(g+B>T.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ge(T,p,g,B,F){return p=+p,g=g>>>0,F||Xe(T,p,g,4),n.write(T,p,g,B,23,4),g+4}c.prototype.writeFloatLE=function(p,g,B){return Ge(this,p,g,!0,B)},c.prototype.writeFloatBE=function(p,g,B){return Ge(this,p,g,!1,B)};function ht(T,p,g,B,F){return p=+p,g=g>>>0,F||Xe(T,p,g,8),n.write(T,p,g,B,52,8),g+8}c.prototype.writeDoubleLE=function(p,g,B){return ht(this,p,g,!0,B)},c.prototype.writeDoubleBE=function(p,g,B){return ht(this,p,g,!1,B)},c.prototype.copy=function(p,g,B,F){if(!c.isBuffer(p))throw new TypeError("argument should be a Buffer");if(B||(B=0),!F&&F!==0&&(F=this.length),g>=p.length&&(g=p.length),g||(g=0),F>0&&F<B&&(F=B),F===B||p.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),p.length-g<F-B&&(F=p.length-g+B);const q=F-B;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,B,F):Uint8Array.prototype.set.call(p,this.subarray(B,F),g),q},c.prototype.fill=function(p,g,B,F){if(typeof p=="string"){if(typeof g=="string"?(F=g,g=0,B=this.length):typeof B=="string"&&(F=B,B=this.length),F!==void 0&&typeof F!="string")throw new TypeError("encoding must be a string");if(typeof F=="string"&&!c.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(p.length===1){const Z=p.charCodeAt(0);(F==="utf8"&&Z<128||F==="latin1")&&(p=Z)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(g<0||this.length<g||this.length<B)throw new RangeError("Out of range index");if(B<=g)return this;g=g>>>0,B=B===void 0?this.length:B>>>0,p||(p=0);let q;if(typeof p=="number")for(q=g;q<B;++q)this[q]=p;else{const Z=c.isBuffer(p)?p:c.from(p,F),ce=Z.length;if(ce===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(q=0;q<B-g;++q)this[q+g]=Z[q%ce]}return this};const le={};function ue(T,p,g){le[T]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(T,p){return`The "${T}" argument must be of type number. Received type ${typeof p}`},TypeError),ue("ERR_OUT_OF_RANGE",function(T,p,g){let B=`The value of "${T}" is out of range.`,F=g;return Number.isInteger(g)&&Math.abs(g)>2**32?F=he(String(g)):typeof g=="bigint"&&(F=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(F=he(F)),F+="n"),B+=` It must be ${p}. Received ${F}`,B},RangeError);function he(T){let p="",g=T.length;const B=T[0]==="-"?1:0;for(;g>=B+4;g-=3)p=`_${T.slice(g-3,g)}${p}`;return`${T.slice(0,g)}${p}`}function ge(T,p,g){Te(p,"offset"),(T[p]===void 0||T[p+g]===void 0)&&ve(p,T.length-(g+1))}function de(T,p,g,B,F,q){if(T>g||T<p){const Z=typeof p=="bigint"?"n":"";let ce;throw p===0||p===BigInt(0)?ce=`>= 0${Z} and < 2${Z} ** ${(q+1)*8}${Z}`:ce=`>= -(2${Z} ** ${(q+1)*8-1}${Z}) and < 2 ** ${(q+1)*8-1}${Z}`,new le.ERR_OUT_OF_RANGE("value",ce,T)}ge(B,F,q)}function Te(T,p){if(typeof T!="number")throw new le.ERR_INVALID_ARG_TYPE(p,"number",T)}function ve(T,p,g){throw Math.floor(T)!==T?(Te(T,g),new le.ERR_OUT_OF_RANGE("offset","an integer",T)):p<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,T)}const ke=/[^+/0-9A-Za-z-_]/g;function qe(T){if(T=T.split("=")[0],T=T.trim().replace(ke,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function De(T,p){p=p||1/0;let g;const B=T.length;let F=null;const q=[];for(let Z=0;Z<B;++Z){if(g=T.charCodeAt(Z),g>55295&&g<57344){if(!F){if(g>56319){(p-=3)>-1&&q.push(239,191,189);continue}else if(Z+1===B){(p-=3)>-1&&q.push(239,191,189);continue}F=g;continue}if(g<56320){(p-=3)>-1&&q.push(239,191,189),F=g;continue}g=(F-55296<<10|g-56320)+65536}else F&&(p-=3)>-1&&q.push(239,191,189);if(F=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 Re(T){const p=[];for(let g=0;g<T.length;++g)p.push(T.charCodeAt(g)&255);return p}function Fe(T,p){let g,B,F;const q=[];for(let Z=0;Z<T.length&&!((p-=2)<0);++Z)g=T.charCodeAt(Z),B=g>>8,F=g%256,q.push(F),q.push(B);return q}function tt(T){return t.toByteArray(qe(T))}function $e(T,p,g,B){let F;for(F=0;F<B&&!(F+g>=p.length||F>=T.length);++F)p[F+g]=T[F];return F}function st(T,p){return T instanceof p||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===p.name}function ye(T){return T!==T}const Ot=function(){const T="0123456789abcdef",p=new Array(256);for(let g=0;g<16;++g){const B=g*16;for(let F=0;F<16;++F)p[B+F]=T[g]+T[F]}return p}();function Ft(T){return typeof BigInt>"u"?yn:T}function yn(){throw new Error("BigInt not supported")}})(ah);function mw(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function yw(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:mw(e)}async function vw(e,t){const n=yw(e);for(;;){const{value:r,done:i}=await n.next();if(r&&await t(r),i)break}n.return&&n.return()}async function bw(e){let t=0;const n=[];await vw(e,a=>{n.push(a),t+=a.byteLength});const r=new Uint8Array(t);let i=0;for(const a of n)r.set(a,i),i+=a.byteLength;return r}function xw(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 ww({onProgress:e,url:t,method:n="GET",headers:r={},body:i}){i&&(i=await bw(i));const a=await fetch(t,{method:n,headers:r,body:i}),l=a.body&&a.body.getReader?xw(a.body):[new Uint8Array(await a.arrayBuffer())];r={};for(const[c,d]of a.headers.entries())r[c]=d;return{url:a.url,method:a.method,statusCode:a.status,statusMessage:a.statusText,body:l,headers:r}}var hu={request:ww};const Sw=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},ch=async e=>await window.pfs.readdir(e),uh=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(r){console.debug("recursiveRm: Path does not exist",r);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const r=await t.readdir(e);for(const i of r)await uh(`${e}/${i}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},Cw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r="makeinfinite_client",i="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:r}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:i})},_w=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.clone({fs:r,http:hu,dir:i,corsProxy:n,url:t,ref:"main"}),await Cw(e)},Ew=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.pull({fs:r,http:hu,dir:i,corsProxy:n,url:t,ref:"main"})},Rw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:r})},Pw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.fetch({fs:r,http:hu,dir:i,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Tw{constructor(t,n,r){this.targetRef=t,this.sourceRef=n,this.opType=r}}const gu=e=>{var l,c;const t=e.commit.message.trim().split(`
|
|
10
|
+
`),n=t.find(d=>d.startsWith("Git Ref: ")),r=t.find(d=>d.startsWith("Extra Metadata: "));if(!n||!r)return null;const i=(l=n.split("Git Ref: ")[1])==null?void 0:l.trim(),a=JSON.parse(((c=r.split("Extra Metadata: ")[1])==null?void 0:c.trim())||"{}");return!i||!a?null:new Tw(i,a.sourceRef,a.opType)},Iw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`;return await _t.resolveRef({fs:t,dir:n,ref:"HEAD"})},dh=async(e,t)=>{const n=window.pfs,r=`${window.miDir}/${e}`,i={fs:n,dir:r,ref:"HEAD",depth:1,filepath:t},a=(await _t.log(i))[0];if(!a)throw new Error("No commit found");return a.oid},sa=async(e,t,n,r,i=new Set,a=1e3)=>{if(a<=0)throw new Error(`Maximum recursion depth reached while resolving commit: ${n}`);const l=window.pfs,c=`${window.miDir}/${e}`,d={fs:l,dir:c,ref:n,depth:1,filepath:t},h=(await _t.log(d))[0];if(!h)throw new Error("No commit found");if(i.has(h.oid))throw new Error(`Circular reference detected: ${h.oid} has already been seen`);i.add(h.oid);const y=gu(h);if(y&&y.opType==r)return sa(e,t,y.targetRef,r,i,a-1);if(h.commit.parent.length>1){const m=h.commit.parent[0];if(!m)throw new Error("No parent found");return sa(e,t,m,r,i,a-1)}return h},kw=async(e,t)=>{const n=window.pfs,r=`${window.miDir}/${e}`,i=await dh(e,t),a=await sa(e,t,i,"UNDO"),l=gu(a);if(l)return[i,l.sourceRef];{let c=a.oid;const d={fs:n,dir:r,ref:c,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[i,y]}},Ow=async(e,t)=>{const n=await dh(e,t),r=await sa(e,t,n,"REDO"),i=gu(r);if(!i)throw new Error("No undos to redo");return[n,i.sourceRef]},Aw=async(e,t,n)=>{await Sw(`${window.miDir}/${e}`)||await _w(e,t,n);try{await Ew(e,t,n)}catch(i){throw await uh(`${window.miDir}/${e}`).catch(a=>console.log(`recursiveRm error: ${a}`)),i}},aa=async(e,t,n)=>{let r=0;const i=5;for(;r<=i;)try{await Aw(e||"",t||"",n||"");break}catch(a){if(r++,console.log(`Retrying syncGitSource (Attempt ${r})`),r>i)throw console.error(`syncGitSource failed after ${r} attempts:`,a),a}},mu=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await Pw(e,t,n);const a=await _t.listTags({fs:r,dir:i});return await Promise.all(a.map(async c=>{const d=await _t.resolveRef({fs:r,dir:i,ref:`refs/tags/${c}`}),{commit:h}=await _t.readCommit({fs:r,dir:i,oid:d});return{tag:c,timestamp:h.committer.timestamp,ref:`refs/tags/${c}`}}))};var fh={exports:{}},Ki={};/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/var
|
|
14
|
+
*/var ph=Object.getOwnPropertySymbols,$w=Object.prototype.hasOwnProperty,Mw=Object.prototype.propertyIsEnumerable;function Bw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Dw(){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 r=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Dw();/** @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
|
|
21
|
+
*/var Lw=X,hh=60103;if(Ki.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var gh=Symbol.for;hh=gh("react.element"),Ki.Fragment=gh("react.fragment")}var jw=Lw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fw=Object.prototype.hasOwnProperty,Nw={key:!0,ref:!0,__self:!0,__source:!0};function mh(e,t,n){var r,i={},a=null,l=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Fw.call(t,r)&&!Nw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hh,type:e,key:a,ref:l,props:i,_owner:jw.current}}Ki.jsx=mh,Ki.jsxs=mh,fh.exports=Ki;var x=fh.exports;function xr(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 yh(e){if(!xr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yh(e[n])}),t}function ln(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return xr(e)&&xr(t)&&Object.keys(t).forEach(i=>{xr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xr(e[i])?r[i]=ln(e[i],t[i],n):n.clone?r[i]=xr(t[i])?yh(t[i]):t[i]:r[i]=t[i]}),r}var vh={exports:{}},zw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ww=zw,Uw=Ww;function bh(){}function xh(){}xh.resetWarningCache=bh;var Hw=function(){function e(r,i,a,l,c,d){if(d!==Uw){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:xh,resetWarningCache:bh};return n.PropTypes=n,n};vh.exports=Hw();var no=vh.exports;function jr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var xt={};/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
@@ -26,28 +26,28 @@ object-assign
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var mu=Symbol.for("react.element"),yu=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),aa=Symbol.for("react.strict_mode"),la=Symbol.for("react.profiler"),ca=Symbol.for("react.provider"),ua=Symbol.for("react.context"),Nw=Symbol.for("react.server_context"),da=Symbol.for("react.forward_ref"),fa=Symbol.for("react.suspense"),pa=Symbol.for("react.suspense_list"),ha=Symbol.for("react.memo"),ga=Symbol.for("react.lazy"),zw=Symbol.for("react.offscreen"),xh;xh=Symbol.for("react.module.reference");function Gn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mu:switch(e=e.type,e){case sa:case la:case aa:case fa:case pa:return e;default:switch(e=e&&e.$$typeof,e){case Nw:case ua:case da:case ga:case ha:case ca:return e;default:return t}}case yu:return t}}}xt.ContextConsumer=ua,xt.ContextProvider=ca,xt.Element=mu,xt.ForwardRef=da,xt.Fragment=sa,xt.Lazy=ga,xt.Memo=ha,xt.Portal=yu,xt.Profiler=la,xt.StrictMode=aa,xt.Suspense=fa,xt.SuspenseList=pa,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Gn(e)===ua},xt.isContextProvider=function(e){return Gn(e)===ca},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mu},xt.isForwardRef=function(e){return Gn(e)===da},xt.isFragment=function(e){return Gn(e)===sa},xt.isLazy=function(e){return Gn(e)===ga},xt.isMemo=function(e){return Gn(e)===ha},xt.isPortal=function(e){return Gn(e)===yu},xt.isProfiler=function(e){return Gn(e)===la},xt.isStrictMode=function(e){return Gn(e)===aa},xt.isSuspense=function(e){return Gn(e)===fa},xt.isSuspenseList=function(e){return Gn(e)===pa},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sa||e===la||e===aa||e===fa||e===pa||e===zw||typeof e=="object"&&e!==null&&(e.$$typeof===ga||e.$$typeof===ha||e.$$typeof===ca||e.$$typeof===ua||e.$$typeof===da||e.$$typeof===xh||e.getModuleId!==void 0)},xt.typeOf=Gn;function Le(e){if(typeof e!="string")throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wh(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function ma(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function vu(e,t){var n,r,i;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}function qn(e){return e&&e.ownerDocument||document}function ur(e){return qn(e).defaultView||window}function bu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const wr=typeof window<"u"?j.useLayoutEffect:j.useEffect;let Sh=0;function Ww(e){const[t,n]=j.useState(e),r=e||t;return j.useEffect(()=>{t==null&&(Sh+=1,n(`mui-${Sh}`))},[t]),r}const Ch={...j}.useId;function _h(e){if(Ch!==void 0){const t=Ch();return e??t}return Ww(e)}function Eh({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=j.useRef(e!==void 0),[a,l]=j.useState(t),c=i?e:a,d=j.useCallback(h=>{i||l(h)},[]);return[c,d]}function Fr(e){const t=j.useRef(e);return wr(()=>{t.current=e}),j.useRef((...n)=>(0,t.current)(...n)).current}function Jt(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{bu(n,t)})},e)}const Rh={};function Th(e,t){const n=j.useRef(Rh);return n.current===Rh&&(n.current=e(t)),n}const Uw=[];function Hw(e){j.useEffect(e,Uw)}class xu{constructor(){ea(this,"currentId",null);ea(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ea(this,"disposeEffect",()=>this.clear)}static create(){return new xu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ph(){const e=Th(xu.create).current;return Hw(e.disposeEffect),e}function kh(e){try{return e.matches(":focus-visible")}catch{}return!1}function Ih(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yi(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;n[i][d]=Yi(a[d],l[d])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function dt(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let l="",c=!0;for(let d=0;d<a.length;d+=1){const h=a[d];h&&(l+=(c===!0?"":" ")+t(h),c=!1,n&&n[h]&&(l+=" "+n[h]))}r[i]=l}return r}const Oh=e=>e,Ah=(()=>{let e=Oh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Oh}}})(),Gw={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 st(e,t,n="Mui"){const r=Gw[t];return r?`${n}-${r}`:`${Ah.generate(e)}-${t}`}function ot(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=st(e,i,n)}),r}function qw(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Vw(e){return typeof e=="string"}function $h(e,t,n){return e===void 0||Vw(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Mh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Mh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Te(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Mh(e))&&(r&&(r+=" "),r+=t);return r}const Kw=Object.freeze(Object.defineProperty({__proto__:null,clsx:Te,default:Te},Symbol.toStringTag,{value:"Module"}));function Bh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Dh(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 Lh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const S=Te(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),x={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},R={...n,...i,...r};return S.length>0&&(R.className=S),Object.keys(x).length>0&&(R.style=x),{props:R,internalRef:void 0}}const l=Bh({...i,...r}),c=Dh(r),d=Dh(i),h=t(l),y=Te(h==null?void 0:h.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},v={...h,...n,...d,...c};return y.length>0&&(v.className=y),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:h.ref}}function jh(e,t,n){return typeof e=="function"?e(t,n):e}function Xo(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:jh(n,r),{props:c,internalRef:d}=Lh({...a,externalSlotProps:l}),h=Jt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return $h(t,{...c,ref:h},r)}function Xi(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}function Ji(e,t){return t?ln(e,t,{clone:!1}):e}function Yw(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function Xw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Zw(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),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 r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const ya={xs:0,sm:600,md:900,lg:1200,xl:1536},Fh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ya[e]}px)`},Qw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ya[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Nr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Fh;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||Fh;return Object.keys(t).reduce((l,c)=>{if(Xw(a.keys,c)){const d=Jw(r.containerQueries?r:Qw,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||ya).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function e1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function t1(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function va(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ba(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=va(e,n)||r,t&&(i=t(i,r,e)),i}function zt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,h=va(d,r)||{};return Nr(l,c,m=>{let v=ba(h,i,m);return m===v&&typeof m=="string"&&(v=ba(h,i,`${t}${m==="default"?"":Le(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function n1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const r1={m:"margin",p:"padding"},o1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},i1=n1(e=>{if(e.length>2)if(Nh[e])e=Nh[e];else return[e];const[t,n]=e.split(""),r=r1[t],i=o1[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),wu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Su=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wu,...Su];function Zi(e,t,n,r){const i=va(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function Cu(e){return Zi(e,"spacing",8)}function Qi(e,t){return typeof t=="string"||t==null?t:e(t)}function s1(e,t){return n=>e.reduce((r,i)=>(r[i]=Qi(t,n),r),{})}function a1(e,t,n,r){if(!t.includes(n))return null;const i=i1(n),a=s1(i,r),l=e[n];return Nr(e,l,a)}function zh(e,t){const n=Cu(e.theme);return Object.keys(e).map(r=>a1(e,t,r,n)).reduce(Ji,{})}function Mt(e){return zh(e,wu)}Mt.propTypes={},Mt.filterProps=wu;function Bt(e){return zh(e,Su)}Bt.propTypes={},Bt.filterProps=Su;function xa(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Ji(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Vn(e){return typeof e!="number"?e:`${e}px solid`}function Kn(e,t){return zt({prop:e,themeKey:"borders",transform:t})}const l1=Kn("border",Vn),c1=Kn("borderTop",Vn),u1=Kn("borderRight",Vn),d1=Kn("borderBottom",Vn),f1=Kn("borderLeft",Vn),p1=Kn("borderColor"),h1=Kn("borderTopColor"),g1=Kn("borderRightColor"),m1=Kn("borderBottomColor"),y1=Kn("borderLeftColor"),v1=Kn("outline",Vn),b1=Kn("outlineColor"),wa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qi(t,r)});return Nr(e,e.borderRadius,n)}return null};wa.propTypes={},wa.filterProps=["borderRadius"],xa(l1,c1,u1,d1,f1,p1,h1,g1,m1,y1,wa,v1,b1);const Sa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({gap:Qi(t,r)});return Nr(e,e.gap,n)}return null};Sa.propTypes={},Sa.filterProps=["gap"];const Ca=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({columnGap:Qi(t,r)});return Nr(e,e.columnGap,n)}return null};Ca.propTypes={},Ca.filterProps=["columnGap"];const _a=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({rowGap:Qi(t,r)});return Nr(e,e.rowGap,n)}return null};_a.propTypes={},_a.filterProps=["rowGap"];const x1=zt({prop:"gridColumn"}),w1=zt({prop:"gridRow"}),S1=zt({prop:"gridAutoFlow"}),C1=zt({prop:"gridAutoColumns"}),_1=zt({prop:"gridAutoRows"}),E1=zt({prop:"gridTemplateColumns"}),R1=zt({prop:"gridTemplateRows"}),T1=zt({prop:"gridTemplateAreas"}),P1=zt({prop:"gridArea"});xa(Sa,Ca,_a,x1,w1,S1,C1,_1,E1,R1,T1,P1);function Jo(e,t){return t==="grey"?t:e}const k1=zt({prop:"color",themeKey:"palette",transform:Jo}),I1=zt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jo}),O1=zt({prop:"backgroundColor",themeKey:"palette",transform:Jo});xa(k1,I1,O1);function On(e){return e<=1&&e!==0?`${e*100}%`:e}const A1=zt({prop:"width",transform:On}),_u=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||ya[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:On(n)}};return Nr(e,e.maxWidth,t)}return null};_u.filterProps=["maxWidth"];const $1=zt({prop:"minWidth",transform:On}),M1=zt({prop:"height",transform:On}),B1=zt({prop:"maxHeight",transform:On}),D1=zt({prop:"minHeight",transform:On});zt({prop:"size",cssProperty:"width",transform:On}),zt({prop:"size",cssProperty:"height",transform:On});const L1=zt({prop:"boxSizing"});xa(A1,_u,$1,M1,B1,D1,L1);const es={border:{themeKey:"borders",transform:Vn},borderTop:{themeKey:"borders",transform:Vn},borderRight:{themeKey:"borders",transform:Vn},borderBottom:{themeKey:"borders",transform:Vn},borderLeft:{themeKey:"borders",transform:Vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wa},color:{themeKey:"palette",transform:Jo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jo},backgroundColor:{themeKey:"palette",transform:Jo},p:{style:Bt},pt:{style:Bt},pr:{style:Bt},pb:{style:Bt},pl:{style:Bt},px:{style:Bt},py:{style:Bt},padding:{style:Bt},paddingTop:{style:Bt},paddingRight:{style:Bt},paddingBottom:{style:Bt},paddingLeft:{style:Bt},paddingX:{style:Bt},paddingY:{style:Bt},paddingInline:{style:Bt},paddingInlineStart:{style:Bt},paddingInlineEnd:{style:Bt},paddingBlock:{style:Bt},paddingBlockStart:{style:Bt},paddingBlockEnd:{style:Bt},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:Sa},rowGap:{style:_a},columnGap:{style:Ca},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:_u},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},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 j1(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function F1(e,t){return typeof e=="function"?e(t):e}function N1(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=c;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=va(i,h)||{};return m?m(l):Nr(l,r,x=>{let R=ba(v,y,x);return x===R&&typeof x=="string"&&(R=ba(v,y,`${n}${x==="default"?"":Le(x)}`,x)),d===!1?R:{[d]:R}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??es;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const h=e1(i.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(v=>{const S=F1(d[v],i);if(S!=null)if(typeof S=="object")if(a[v])m=Ji(m,e(v,S,i,a));else{const x=Nr({theme:i},S,R=>({[v]:R}));j1(x,S)?m[v]=t({sx:S,theme:i}):m=Ji(m,x)}else m=Ji(m,e(v,S,i,a))}),Yw(i,t1(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Co=N1();Co.filterProps=["sx"];const z1=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??es;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Wh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=z1(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const c=t(...l);return xr(c)?{...r,...c}:r}:a={...r,...t},{...i,sx:a}}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(null,arguments)}function Eu(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var W1=/^((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)-.*))$/,U1=Eu(function(e){return W1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),H1=!1;function G1(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 q1(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 V1=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!H1: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(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(q1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=G1(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),cn="-ms-",Ra="-moz-",at="-webkit-",Uh="comm",Ru="rule",Tu="decl",K1="@import",Hh="@keyframes",Y1="@layer",X1=Math.abs,Ta=String.fromCharCode,J1=Object.assign;function Z1(e,t){return tn(e,0)^45?(((t<<2^tn(e,0))<<2^tn(e,1))<<2^tn(e,2))<<2^tn(e,3):0}function Gh(e){return e.trim()}function Q1(e,t){return(e=t.exec(e))?e[0]:e}function lt(e,t,n){return e.replace(t,n)}function Pu(e,t){return e.indexOf(t)}function tn(e,t){return e.charCodeAt(t)|0}function ts(e,t,n){return e.slice(t,n)}function Sr(e){return e.length}function ku(e){return e.length}function Pa(e,t){return t.push(e),e}function eS(e,t){return e.map(t).join("")}var ka=1,Zo=1,qh=0,wn=0,Gt=0,Qo="";function Ia(e,t,n,r,i,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ka,column:Zo,length:l,return:""}}function ns(e,t){return J1(Ia("",null,null,"",null,null,0),e,{length:-e.length},t)}function tS(){return Gt}function nS(){return Gt=wn>0?tn(Qo,--wn):0,Zo--,Gt===10&&(Zo=1,ka--),Gt}function An(){return Gt=wn<qh?tn(Qo,wn++):0,Zo++,Gt===10&&(Zo=1,ka++),Gt}function Cr(){return tn(Qo,wn)}function Oa(){return wn}function rs(e,t){return ts(Qo,e,t)}function os(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 Vh(e){return ka=Zo=1,qh=Sr(Qo=e),wn=0,[]}function Kh(e){return Qo="",e}function Aa(e){return Gh(rs(wn-1,Iu(e===91?e+2:e===40?e+1:e)))}function rS(e){for(;(Gt=Cr())&&Gt<33;)An();return os(e)>2||os(Gt)>3?"":" "}function oS(e,t){for(;--t&&An()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return rs(e,Oa()+(t<6&&Cr()==32&&An()==32))}function Iu(e){for(;An();)switch(Gt){case e:return wn;case 34:case 39:e!==34&&e!==39&&Iu(Gt);break;case 40:e===41&&Iu(e);break;case 92:An();break}return wn}function iS(e,t){for(;An()&&e+Gt!==57;)if(e+Gt===84&&Cr()===47)break;return"/*"+rs(t,wn-1)+"*"+Ta(e===47?e:An())}function sS(e){for(;!os(Cr());)An();return rs(e,wn)}function aS(e){return Kh($a("",null,null,null,[""],e=Vh(e),0,[0],e))}function $a(e,t,n,r,i,a,l,c,d){for(var h=0,y=0,m=l,v=0,S=0,x=0,R=1,O=1,_=1,I=0,E="",P=i,M=a,D=r,$=E;O;)switch(x=I,I=An()){case 40:if(x!=108&&tn($,m-1)==58){Pu($+=lt(Aa(I),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=Aa(I);break;case 9:case 10:case 13:case 32:$+=rS(x);break;case 92:$+=oS(Oa()-1,7);continue;case 47:switch(Cr()){case 42:case 47:Pa(lS(iS(An(),Oa()),t,n),d);break;default:$+="/"}break;case 123*R:c[h++]=Sr($)*_;case 125*R:case 59:case 0:switch(I){case 0:case 125:O=0;case 59+y:_==-1&&($=lt($,/\f/g,"")),S>0&&Sr($)-m&&Pa(S>32?Xh($+";",r,n,m-1):Xh(lt($," ","")+";",r,n,m-2),d);break;case 59:$+=";";default:if(Pa(D=Yh($,t,n,h,y,i,c,E,P=[],M=[],m),a),I===123)if(y===0)$a($,t,D,D,P,a,m,c,M);else switch(v===99&&tn($,3)===110?100:v){case 100:case 108:case 109:case 115:$a(e,D,D,r&&Pa(Yh(e,D,D,0,0,i,c,E,i,P=[],m),M),i,M,m,c,r?P:M);break;default:$a($,D,D,D,[""],M,0,c,M)}}h=y=S=0,R=_=1,E=$="",m=l;break;case 58:m=1+Sr($),S=x;default:if(R<1){if(I==123)--R;else if(I==125&&R++==0&&nS()==125)continue}switch($+=Ta(I),I*R){case 38:_=y>0?1:($+="\f",-1);break;case 44:c[h++]=(Sr($)-1)*_,_=1;break;case 64:Cr()===45&&($+=Aa(An())),v=Cr(),y=m=Sr(E=$+=sS(Oa())),I++;break;case 45:x===45&&Sr($)==2&&(R=0)}}return a}function Yh(e,t,n,r,i,a,l,c,d,h,y){for(var m=i-1,v=i===0?a:[""],S=ku(v),x=0,R=0,O=0;x<r;++x)for(var _=0,I=ts(e,m+1,m=X1(R=l[x])),E=e;_<S;++_)(E=Gh(R>0?v[_]+" "+I:lt(I,/&\f/g,v[_])))&&(d[O++]=E);return Ia(e,t,n,i===0?Ru:c,d,h,y)}function lS(e,t,n){return Ia(e,t,n,Uh,Ta(tS()),ts(e,2,-2),0)}function Xh(e,t,n,r){return Ia(e,t,n,Tu,ts(e,0,r),ts(e,r+1,-1),r)}function ei(e,t){for(var n="",r=ku(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function cS(e,t,n,r){switch(e.type){case Y1:if(e.children.length)break;case K1:case Tu:return e.return=e.return||e.value;case Uh:return"";case Hh:return e.return=e.value+"{"+ei(e.children,r)+"}";case Ru:e.value=e.props.join(",")}return Sr(n=ei(e.children,r))?e.return=e.value+"{"+n+"}":""}function uS(e){var t=ku(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function dS(e){return function(t){t.root||(t=t.return)&&e(t)}}var fS=function(t,n,r){for(var i=0,a=0;i=a,a=Cr(),i===38&&a===12&&(n[r]=1),!os(a);)An();return rs(t,wn)},pS=function(t,n){var r=-1,i=44;do switch(os(i)){case 0:i===38&&Cr()===12&&(n[r]=1),t[r]+=fS(wn-1,n,r);break;case 2:t[r]+=Aa(i);break;case 4:if(i===44){t[++r]=Cr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ta(i)}while(i=An());return t},hS=function(t,n){return Kh(pS(Vh(t),n))},Jh=new WeakMap,gS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Jh.get(r))&&!i){Jh.set(t,!0);for(var a=[],l=hS(n,a),c=r.props,d=0,h=0;d<l.length;d++)for(var y=0;y<c.length;y++,h++)t.props[h]=a[d]?l[d].replace(/&\f/g,c[y]):c[y]+" "+l[d]}}},mS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Zh(e,t){switch(Z1(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+Ra+e+cn+e+e;case 6828:case 4268:return at+e+cn+e+e;case 6165:return at+e+cn+"flex-"+e+e;case 5187:return at+e+lt(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return at+e+cn+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return at+e+cn+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+cn+lt(e,"shrink","negative")+e;case 5292:return at+e+cn+lt(e,"basis","preferred-size")+e;case 6060:return at+"box-"+lt(e,"-grow","")+at+e+cn+lt(e,"grow","positive")+e;case 4554:return at+lt(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return lt(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(Sr(e)-1-t>6)switch(tn(e,t+1)){case 109:if(tn(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+Ra+(tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pu(e,"stretch")?Zh(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tn(e,t+1)!==115)break;case 6444:switch(tn(e,Sr(e)-3-(~Pu(e,"!important")&&10))){case 107:return lt(e,":",":"+at)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(tn(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+cn+"$2box$3")+e}break;case 5936:switch(tn(e,t+11)){case 114:return at+e+cn+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+cn+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+cn+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+cn+e+e}return e}var yS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Tu:t.return=Zh(t.value,t.length);break;case Hh:return ei([ns(t,{value:lt(t.value,"@","@"+at)})],i);case Ru:if(t.length)return eS(t.props,function(a){switch(Q1(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ei([ns(t,{props:[lt(a,/:(read-\w+)/,":"+Ra+"$1")]})],i);case"::placeholder":return ei([ns(t,{props:[lt(a,/:(plac\w+)/,":"+at+"input-$1")]}),ns(t,{props:[lt(a,/:(plac\w+)/,":"+Ra+"$1")]}),ns(t,{props:[lt(a,/:(plac\w+)/,cn+"input-$1")]})],i)}return""})}},vS=[yS],bS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(R){var O=R.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var i=t.stylisPlugins||vS,a={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(R){for(var O=R.getAttribute("data-emotion").split(" "),_=1;_<O.length;_++)a[O[_]]=!0;c.push(R)});var d,h=[gS,mS];{var y,m=[cS,dS(function(R){y.insert(R)})],v=uS(h.concat(i,m)),S=function(O){return ei(aS(O),v)};d=function(O,_,I,E){y=I,S(O?O+"{"+_.styles+"}":_.styles),E&&(x.inserted[_.name]=!0)}}var x={key:n,sheet:new V1({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return x.sheet.hydrate(c),x},Qh={exports:{}},mt={};/** @license React v16.13.1
|
|
29
|
+
*/var yu=Symbol.for("react.element"),vu=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),ca=Symbol.for("react.strict_mode"),ua=Symbol.for("react.profiler"),da=Symbol.for("react.provider"),fa=Symbol.for("react.context"),Gw=Symbol.for("react.server_context"),pa=Symbol.for("react.forward_ref"),ha=Symbol.for("react.suspense"),ga=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),ya=Symbol.for("react.lazy"),qw=Symbol.for("react.offscreen"),wh;wh=Symbol.for("react.module.reference");function Gn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yu:switch(e=e.type,e){case la:case ua:case ca:case ha:case ga:return e;default:switch(e=e&&e.$$typeof,e){case Gw:case fa:case pa:case ya:case ma:case da:return e;default:return t}}case vu:return t}}}xt.ContextConsumer=fa,xt.ContextProvider=da,xt.Element=yu,xt.ForwardRef=pa,xt.Fragment=la,xt.Lazy=ya,xt.Memo=ma,xt.Portal=vu,xt.Profiler=ua,xt.StrictMode=ca,xt.Suspense=ha,xt.SuspenseList=ga,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Gn(e)===fa},xt.isContextProvider=function(e){return Gn(e)===da},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yu},xt.isForwardRef=function(e){return Gn(e)===pa},xt.isFragment=function(e){return Gn(e)===la},xt.isLazy=function(e){return Gn(e)===ya},xt.isMemo=function(e){return Gn(e)===ma},xt.isPortal=function(e){return Gn(e)===vu},xt.isProfiler=function(e){return Gn(e)===ua},xt.isStrictMode=function(e){return Gn(e)===ca},xt.isSuspense=function(e){return Gn(e)===ha},xt.isSuspenseList=function(e){return Gn(e)===ga},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===la||e===ua||e===ca||e===ha||e===ga||e===qw||typeof e=="object"&&e!==null&&(e.$$typeof===ya||e.$$typeof===ma||e.$$typeof===da||e.$$typeof===fa||e.$$typeof===pa||e.$$typeof===wh||e.getModuleId!==void 0)},xt.typeOf=Gn;function Le(e){if(typeof e!="string")throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sh(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function va(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function bu(e,t){var n,r,i;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}function qn(e){return e&&e.ownerDocument||document}function ur(e){return qn(e).defaultView||window}function xu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const wr=typeof window<"u"?j.useLayoutEffect:j.useEffect;let Ch=0;function Vw(e){const[t,n]=j.useState(e),r=e||t;return j.useEffect(()=>{t==null&&(Ch+=1,n(`mui-${Ch}`))},[t]),r}const _h={...j}.useId;function Eh(e){if(_h!==void 0){const t=_h();return e??t}return Vw(e)}function Rh({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=j.useRef(e!==void 0),[a,l]=j.useState(t),c=i?e:a,d=j.useCallback(h=>{i||l(h)},[]);return[c,d]}function Fr(e){const t=j.useRef(e);return wr(()=>{t.current=e}),j.useRef((...n)=>(0,t.current)(...n)).current}function Jt(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xu(n,t)})},e)}const Ph={};function Th(e,t){const n=j.useRef(Ph);return n.current===Ph&&(n.current=e(t)),n}const Kw=[];function Yw(e){j.useEffect(e,Kw)}class wu{constructor(){na(this,"currentId",null);na(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});na(this,"disposeEffect",()=>this.clear)}static create(){return new wu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ih(){const e=Th(wu.create).current;return Yw(e.disposeEffect),e}function kh(e){try{return e.matches(":focus-visible")}catch{}return!1}function Oh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yi(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;n[i][d]=Yi(a[d],l[d])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function ft(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let l="",c=!0;for(let d=0;d<a.length;d+=1){const h=a[d];h&&(l+=(c===!0?"":" ")+t(h),c=!1,n&&n[h]&&(l+=" "+n[h]))}r[i]=l}return r}const Ah=e=>e,$h=(()=>{let e=Ah;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ah}}})(),Xw={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 at(e,t,n="Mui"){const r=Xw[t];return r?`${n}-${r}`:`${$h.generate(e)}-${t}`}function ot(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=at(e,i,n)}),r}function Jw(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Zw(e){return typeof e=="string"}function Mh(e,t,n){return e===void 0||Zw(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Bh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Bh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Bh(e))&&(r&&(r+=" "),r+=t);return r}const Qw=Object.freeze(Object.defineProperty({__proto__:null,clsx:Pe,default:Pe},Symbol.toStringTag,{value:"Module"}));function Dh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Lh(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 jh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const w=Pe(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},E={...n,...i,...r};return w.length>0&&(E.className=w),Object.keys(b).length>0&&(E.style=b),{props:E,internalRef:void 0}}const l=Dh({...i,...r}),c=Lh(r),d=Lh(i),h=t(l),y=Pe(h==null?void 0:h.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},v={...h,...n,...d,...c};return y.length>0&&(v.className=y),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:h.ref}}function Fh(e,t,n){return typeof e=="function"?e(t,n):e}function Xo(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Fh(n,r),{props:c,internalRef:d}=jh({...a,externalSlotProps:l}),h=Jt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return Mh(t,{...c,ref:h},r)}function Xi(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}function Ji(e,t){return t?ln(e,t,{clone:!1}):e}function e1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function t1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function n1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function r1(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),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 r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const ba={xs:0,sm:600,md:900,lg:1200,xl:1536},Nh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ba[e]}px)`},o1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ba[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Nr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Nh;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||Nh;return Object.keys(t).reduce((l,c)=>{if(t1(a.keys,c)){const d=n1(r.containerQueries?r:o1,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||ba).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function i1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function s1(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function xa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function wa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=xa(e,n)||r,t&&(i=t(i,r,e)),i}function zt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,h=xa(d,r)||{};return Nr(l,c,m=>{let v=wa(h,i,m);return m===v&&typeof m=="string"&&(v=wa(h,i,`${t}${m==="default"?"":Le(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function a1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const l1={m:"margin",p:"padding"},c1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u1=a1(e=>{if(e.length>2)if(zh[e])e=zh[e];else return[e];const[t,n]=e.split(""),r=l1[t],i=c1[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),Su=["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"];[...Su,...Cu];function Zi(e,t,n,r){const i=xa(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function _u(e){return Zi(e,"spacing",8)}function Qi(e,t){return typeof t=="string"||t==null?t:e(t)}function d1(e,t){return n=>e.reduce((r,i)=>(r[i]=Qi(t,n),r),{})}function f1(e,t,n,r){if(!t.includes(n))return null;const i=u1(n),a=d1(i,r),l=e[n];return Nr(e,l,a)}function Wh(e,t){const n=_u(e.theme);return Object.keys(e).map(r=>f1(e,t,r,n)).reduce(Ji,{})}function Mt(e){return Wh(e,Su)}Mt.propTypes={},Mt.filterProps=Su;function Bt(e){return Wh(e,Cu)}Bt.propTypes={},Bt.filterProps=Cu;function Sa(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Ji(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Vn(e){return typeof e!="number"?e:`${e}px solid`}function Kn(e,t){return zt({prop:e,themeKey:"borders",transform:t})}const p1=Kn("border",Vn),h1=Kn("borderTop",Vn),g1=Kn("borderRight",Vn),m1=Kn("borderBottom",Vn),y1=Kn("borderLeft",Vn),v1=Kn("borderColor"),b1=Kn("borderTopColor"),x1=Kn("borderRightColor"),w1=Kn("borderBottomColor"),S1=Kn("borderLeftColor"),C1=Kn("outline",Vn),_1=Kn("outlineColor"),Ca=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qi(t,r)});return Nr(e,e.borderRadius,n)}return null};Ca.propTypes={},Ca.filterProps=["borderRadius"],Sa(p1,h1,g1,m1,y1,v1,b1,x1,w1,S1,Ca,C1,_1);const _a=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({gap:Qi(t,r)});return Nr(e,e.gap,n)}return null};_a.propTypes={},_a.filterProps=["gap"];const Ea=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({columnGap:Qi(t,r)});return Nr(e,e.columnGap,n)}return null};Ea.propTypes={},Ea.filterProps=["columnGap"];const Ra=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zi(e.theme,"spacing",8),n=r=>({rowGap:Qi(t,r)});return Nr(e,e.rowGap,n)}return null};Ra.propTypes={},Ra.filterProps=["rowGap"];const E1=zt({prop:"gridColumn"}),R1=zt({prop:"gridRow"}),P1=zt({prop:"gridAutoFlow"}),T1=zt({prop:"gridAutoColumns"}),I1=zt({prop:"gridAutoRows"}),k1=zt({prop:"gridTemplateColumns"}),O1=zt({prop:"gridTemplateRows"}),A1=zt({prop:"gridTemplateAreas"}),$1=zt({prop:"gridArea"});Sa(_a,Ea,Ra,E1,R1,P1,T1,I1,k1,O1,A1,$1);function Jo(e,t){return t==="grey"?t:e}const M1=zt({prop:"color",themeKey:"palette",transform:Jo}),B1=zt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jo}),D1=zt({prop:"backgroundColor",themeKey:"palette",transform:Jo});Sa(M1,B1,D1);function On(e){return e<=1&&e!==0?`${e*100}%`:e}const L1=zt({prop:"width",transform:On}),Eu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||ba[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:On(n)}};return Nr(e,e.maxWidth,t)}return null};Eu.filterProps=["maxWidth"];const j1=zt({prop:"minWidth",transform:On}),F1=zt({prop:"height",transform:On}),N1=zt({prop:"maxHeight",transform:On}),z1=zt({prop:"minHeight",transform:On});zt({prop:"size",cssProperty:"width",transform:On}),zt({prop:"size",cssProperty:"height",transform:On});const W1=zt({prop:"boxSizing"});Sa(L1,Eu,j1,F1,N1,z1,W1);const es={border:{themeKey:"borders",transform:Vn},borderTop:{themeKey:"borders",transform:Vn},borderRight:{themeKey:"borders",transform:Vn},borderBottom:{themeKey:"borders",transform:Vn},borderLeft:{themeKey:"borders",transform:Vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ca},color:{themeKey:"palette",transform:Jo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jo},backgroundColor:{themeKey:"palette",transform:Jo},p:{style:Bt},pt:{style:Bt},pr:{style:Bt},pb:{style:Bt},pl:{style:Bt},px:{style:Bt},py:{style:Bt},padding:{style:Bt},paddingTop:{style:Bt},paddingRight:{style:Bt},paddingBottom:{style:Bt},paddingLeft:{style:Bt},paddingX:{style:Bt},paddingY:{style:Bt},paddingInline:{style:Bt},paddingInlineStart:{style:Bt},paddingInlineEnd:{style:Bt},paddingBlock:{style:Bt},paddingBlockStart:{style:Bt},paddingBlockEnd:{style:Bt},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:_a},rowGap:{style:Ra},columnGap:{style:Ea},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:Eu},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},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 U1(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function H1(e,t){return typeof e=="function"?e(t):e}function G1(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=c;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=xa(i,h)||{};return m?m(l):Nr(l,r,b=>{let E=wa(v,y,b);return b===E&&typeof b=="string"&&(E=wa(v,y,`${n}${b==="default"?"":Le(b)}`,b)),d===!1?E:{[d]:E}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??es;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const h=i1(i.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(v=>{const w=H1(d[v],i);if(w!=null)if(typeof w=="object")if(a[v])m=Ji(m,e(v,w,i,a));else{const b=Nr({theme:i},w,E=>({[v]:E}));U1(b,w)?m[v]=t({sx:w,theme:i}):m=Ji(m,b)}else m=Ji(m,e(v,w,i,a))}),e1(i,s1(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Co=G1();Co.filterProps=["sx"];const q1=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??es;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Uh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=q1(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const c=t(...l);return xr(c)?{...r,...c}:r}:a={...r,...t},{...i,sx:a}}function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(null,arguments)}function Ru(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var V1=/^((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)-.*))$/,K1=Ru(function(e){return V1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Y1=!1;function X1(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 J1(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 Z1=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!Y1: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(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(J1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=X1(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),cn="-ms-",Ta="-moz-",lt="-webkit-",Hh="comm",Pu="rule",Tu="decl",Q1="@import",Gh="@keyframes",eS="@layer",tS=Math.abs,Ia=String.fromCharCode,nS=Object.assign;function rS(e,t){return tn(e,0)^45?(((t<<2^tn(e,0))<<2^tn(e,1))<<2^tn(e,2))<<2^tn(e,3):0}function qh(e){return e.trim()}function oS(e,t){return(e=t.exec(e))?e[0]:e}function ct(e,t,n){return e.replace(t,n)}function Iu(e,t){return e.indexOf(t)}function tn(e,t){return e.charCodeAt(t)|0}function ts(e,t,n){return e.slice(t,n)}function Sr(e){return e.length}function ku(e){return e.length}function ka(e,t){return t.push(e),e}function iS(e,t){return e.map(t).join("")}var Oa=1,Zo=1,Vh=0,Sn=0,Gt=0,Qo="";function Aa(e,t,n,r,i,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Oa,column:Zo,length:l,return:""}}function ns(e,t){return nS(Aa("",null,null,"",null,null,0),e,{length:-e.length},t)}function sS(){return Gt}function aS(){return Gt=Sn>0?tn(Qo,--Sn):0,Zo--,Gt===10&&(Zo=1,Oa--),Gt}function An(){return Gt=Sn<Vh?tn(Qo,Sn++):0,Zo++,Gt===10&&(Zo=1,Oa++),Gt}function Cr(){return tn(Qo,Sn)}function $a(){return Sn}function rs(e,t){return ts(Qo,e,t)}function os(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 Kh(e){return Oa=Zo=1,Vh=Sr(Qo=e),Sn=0,[]}function Yh(e){return Qo="",e}function Ma(e){return qh(rs(Sn-1,Ou(e===91?e+2:e===40?e+1:e)))}function lS(e){for(;(Gt=Cr())&&Gt<33;)An();return os(e)>2||os(Gt)>3?"":" "}function cS(e,t){for(;--t&&An()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return rs(e,$a()+(t<6&&Cr()==32&&An()==32))}function Ou(e){for(;An();)switch(Gt){case e:return Sn;case 34:case 39:e!==34&&e!==39&&Ou(Gt);break;case 40:e===41&&Ou(e);break;case 92:An();break}return Sn}function uS(e,t){for(;An()&&e+Gt!==57;)if(e+Gt===84&&Cr()===47)break;return"/*"+rs(t,Sn-1)+"*"+Ia(e===47?e:An())}function dS(e){for(;!os(Cr());)An();return rs(e,Sn)}function fS(e){return Yh(Ba("",null,null,null,[""],e=Kh(e),0,[0],e))}function Ba(e,t,n,r,i,a,l,c,d){for(var h=0,y=0,m=l,v=0,w=0,b=0,E=1,k=1,_=1,O=0,C="",P=i,M=a,D=r,$=C;k;)switch(b=O,O=An()){case 40:if(b!=108&&tn($,m-1)==58){Iu($+=ct(Ma(O),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=Ma(O);break;case 9:case 10:case 13:case 32:$+=lS(b);break;case 92:$+=cS($a()-1,7);continue;case 47:switch(Cr()){case 42:case 47:ka(pS(uS(An(),$a()),t,n),d);break;default:$+="/"}break;case 123*E:c[h++]=Sr($)*_;case 125*E:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+y:_==-1&&($=ct($,/\f/g,"")),w>0&&Sr($)-m&&ka(w>32?Jh($+";",r,n,m-1):Jh(ct($," ","")+";",r,n,m-2),d);break;case 59:$+=";";default:if(ka(D=Xh($,t,n,h,y,i,c,C,P=[],M=[],m),a),O===123)if(y===0)Ba($,t,D,D,P,a,m,c,M);else switch(v===99&&tn($,3)===110?100:v){case 100:case 108:case 109:case 115:Ba(e,D,D,r&&ka(Xh(e,D,D,0,0,i,c,C,i,P=[],m),M),i,M,m,c,r?P:M);break;default:Ba($,D,D,D,[""],M,0,c,M)}}h=y=w=0,E=_=1,C=$="",m=l;break;case 58:m=1+Sr($),w=b;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&aS()==125)continue}switch($+=Ia(O),O*E){case 38:_=y>0?1:($+="\f",-1);break;case 44:c[h++]=(Sr($)-1)*_,_=1;break;case 64:Cr()===45&&($+=Ma(An())),v=Cr(),y=m=Sr(C=$+=dS($a())),O++;break;case 45:b===45&&Sr($)==2&&(E=0)}}return a}function Xh(e,t,n,r,i,a,l,c,d,h,y){for(var m=i-1,v=i===0?a:[""],w=ku(v),b=0,E=0,k=0;b<r;++b)for(var _=0,O=ts(e,m+1,m=tS(E=l[b])),C=e;_<w;++_)(C=qh(E>0?v[_]+" "+O:ct(O,/&\f/g,v[_])))&&(d[k++]=C);return Aa(e,t,n,i===0?Pu:c,d,h,y)}function pS(e,t,n){return Aa(e,t,n,Hh,Ia(sS()),ts(e,2,-2),0)}function Jh(e,t,n,r){return Aa(e,t,n,Tu,ts(e,0,r),ts(e,r+1,-1),r)}function ei(e,t){for(var n="",r=ku(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function hS(e,t,n,r){switch(e.type){case eS:if(e.children.length)break;case Q1:case Tu:return e.return=e.return||e.value;case Hh:return"";case Gh:return e.return=e.value+"{"+ei(e.children,r)+"}";case Pu:e.value=e.props.join(",")}return Sr(n=ei(e.children,r))?e.return=e.value+"{"+n+"}":""}function gS(e){var t=ku(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function mS(e){return function(t){t.root||(t=t.return)&&e(t)}}var yS=function(t,n,r){for(var i=0,a=0;i=a,a=Cr(),i===38&&a===12&&(n[r]=1),!os(a);)An();return rs(t,Sn)},vS=function(t,n){var r=-1,i=44;do switch(os(i)){case 0:i===38&&Cr()===12&&(n[r]=1),t[r]+=yS(Sn-1,n,r);break;case 2:t[r]+=Ma(i);break;case 4:if(i===44){t[++r]=Cr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ia(i)}while(i=An());return t},bS=function(t,n){return Yh(vS(Kh(t),n))},Zh=new WeakMap,xS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Zh.get(r))&&!i){Zh.set(t,!0);for(var a=[],l=bS(n,a),c=r.props,d=0,h=0;d<l.length;d++)for(var y=0;y<c.length;y++,h++)t.props[h]=a[d]?l[d].replace(/&\f/g,c[y]):c[y]+" "+l[d]}}},wS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qh(e,t){switch(rS(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+Ta+e+cn+e+e;case 6828:case 4268:return lt+e+cn+e+e;case 6165:return lt+e+cn+"flex-"+e+e;case 5187:return lt+e+ct(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return lt+e+cn+"flex-item-"+ct(e,/flex-|-self/,"")+e;case 4675:return lt+e+cn+"flex-line-pack"+ct(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+cn+ct(e,"shrink","negative")+e;case 5292:return lt+e+cn+ct(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+ct(e,"-grow","")+lt+e+cn+ct(e,"grow","positive")+e;case 4554:return lt+ct(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return ct(ct(ct(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return ct(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return ct(ct(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return ct(e,/(.+)-inline(.+)/,lt+"$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(Sr(e)-1-t>6)switch(tn(e,t+1)){case 109:if(tn(e,t+4)!==45)break;case 102:return ct(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+Ta+(tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Iu(e,"stretch")?Qh(ct(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tn(e,t+1)!==115)break;case 6444:switch(tn(e,Sr(e)-3-(~Iu(e,"!important")&&10))){case 107:return ct(e,":",":"+lt)+e;case 101:return ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(tn(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+cn+"$2box$3")+e}break;case 5936:switch(tn(e,t+11)){case 114:return lt+e+cn+ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+cn+ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+cn+ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+cn+e+e}return e}var SS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Tu:t.return=Qh(t.value,t.length);break;case Gh:return ei([ns(t,{value:ct(t.value,"@","@"+lt)})],i);case Pu:if(t.length)return iS(t.props,function(a){switch(oS(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ei([ns(t,{props:[ct(a,/:(read-\w+)/,":"+Ta+"$1")]})],i);case"::placeholder":return ei([ns(t,{props:[ct(a,/:(plac\w+)/,":"+lt+"input-$1")]}),ns(t,{props:[ct(a,/:(plac\w+)/,":"+Ta+"$1")]}),ns(t,{props:[ct(a,/:(plac\w+)/,cn+"input-$1")]})],i)}return""})}},CS=[SS],_S=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var k=E.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=t.stylisPlugins||CS,a={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var k=E.getAttribute("data-emotion").split(" "),_=1;_<k.length;_++)a[k[_]]=!0;c.push(E)});var d,h=[xS,wS];{var y,m=[hS,mS(function(E){y.insert(E)})],v=gS(h.concat(i,m)),w=function(k){return ei(fS(k),v)};d=function(k,_,O,C){y=O,w(k?k+"{"+_.styles+"}":_.styles),C&&(b.inserted[_.name]=!0)}}var b={key:n,sheet:new Z1({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return b.sheet.hydrate(c),b},eg={exports:{}},mt={};/** @license React v16.13.1
|
|
30
30
|
* react-is.production.min.js
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var Zt=typeof Symbol=="function"&&Symbol.for,Ou=Zt?Symbol.for("react.element"):60103,Au=Zt?Symbol.for("react.portal"):60106,Ma=Zt?Symbol.for("react.fragment"):60107,Ba=Zt?Symbol.for("react.strict_mode"):60108,Da=Zt?Symbol.for("react.profiler"):60114,La=Zt?Symbol.for("react.provider"):60109,ja=Zt?Symbol.for("react.context"):60110,$u=Zt?Symbol.for("react.async_mode"):60111,Fa=Zt?Symbol.for("react.concurrent_mode"):60111,Na=Zt?Symbol.for("react.forward_ref"):60112,za=Zt?Symbol.for("react.suspense"):60113,xS=Zt?Symbol.for("react.suspense_list"):60120,Wa=Zt?Symbol.for("react.memo"):60115,Ua=Zt?Symbol.for("react.lazy"):60116,wS=Zt?Symbol.for("react.block"):60121,SS=Zt?Symbol.for("react.fundamental"):60117,CS=Zt?Symbol.for("react.responder"):60118,_S=Zt?Symbol.for("react.scope"):60119;function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ou:switch(e=e.type,e){case $u:case Fa:case Ma:case Da:case Ba:case za:return e;default:switch(e=e&&e.$$typeof,e){case ja:case Na:case Ua:case Wa:case La:return e;default:return t}}case Au:return t}}}function eg(e){return $n(e)===Fa}mt.AsyncMode=$u,mt.ConcurrentMode=Fa,mt.ContextConsumer=ja,mt.ContextProvider=La,mt.Element=Ou,mt.ForwardRef=Na,mt.Fragment=Ma,mt.Lazy=Ua,mt.Memo=Wa,mt.Portal=Au,mt.Profiler=Da,mt.StrictMode=Ba,mt.Suspense=za,mt.isAsyncMode=function(e){return eg(e)||$n(e)===$u},mt.isConcurrentMode=eg,mt.isContextConsumer=function(e){return $n(e)===ja},mt.isContextProvider=function(e){return $n(e)===La},mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ou},mt.isForwardRef=function(e){return $n(e)===Na},mt.isFragment=function(e){return $n(e)===Ma},mt.isLazy=function(e){return $n(e)===Ua},mt.isMemo=function(e){return $n(e)===Wa},mt.isPortal=function(e){return $n(e)===Au},mt.isProfiler=function(e){return $n(e)===Da},mt.isStrictMode=function(e){return $n(e)===Ba},mt.isSuspense=function(e){return $n(e)===za},mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ma||e===Fa||e===Da||e===Ba||e===za||e===xS||typeof e=="object"&&e!==null&&(e.$$typeof===Ua||e.$$typeof===Wa||e.$$typeof===La||e.$$typeof===ja||e.$$typeof===Na||e.$$typeof===SS||e.$$typeof===CS||e.$$typeof===_S||e.$$typeof===wS)},mt.typeOf=$n,Qh.exports=mt;var ES=Qh.exports,tg=ES,RS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ng={};ng[tg.ForwardRef]=RS,ng[tg.Memo]=TS;var PS=!0;function kS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var rg=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||PS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},og=function(t,n,r){rg(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function ig(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 sg={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},IS=!1,OS=/[A-Z]|^ms/g,AS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ag=function(t){return t.charCodeAt(1)===45},lg=function(t){return t!=null&&typeof t!="boolean"},Mu=Eu(function(e){return ag(e)?e:e.replace(OS,"-$&").toLowerCase()}),cg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(AS,function(r,i,a){return _r={name:i,styles:a,next:_r},i})}return sg[t]!==1&&!ag(t)&&typeof n=="number"&&n!==0?n+"px":n},$S="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function is(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return _r={name:i.name,styles:i.styles,next:_r},i.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=a.styles+";";return c}return MS(e,t,n)}case"function":{if(e!==void 0){var d=_r,h=n(e);return _r=d,is(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function MS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=is(e,t,n[i])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?r+=a+"{"+t[c]+"}":lg(c)&&(r+=Mu(a)+":"+cg(a,c)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&IS)throw new Error($S);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)lg(l[d])&&(r+=Mu(a)+":"+cg(a,l[d])+";");else{var h=is(e,t,l);switch(a){case"animation":case"animationName":{r+=Mu(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}}return r}var ug=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function Ha(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=is(n,t,a);else{var l=a;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=is(n,t,e[c]),r){var d=a;i+=d[c]}ug.lastIndex=0;for(var h="",y;(y=ug.exec(i))!==null;)h+="-"+y[1];var m=ig(i)+h;return{name:m,styles:i,next:_r}}var BS=function(t){return t()},dg=j.useInsertionEffect?j.useInsertionEffect:!1,DS=dg||BS,fg=dg||j.useLayoutEffect,pg=j.createContext(typeof HTMLElement<"u"?bS({key:"css"}):null);pg.Provider;var hg=function(t){return Z.forwardRef(function(n,r){var i=Z.useContext(pg);return t(n,i,r)})},Bu=j.createContext({}),LS=hg(function(e,t){var n=e.styles,r=Ha([n],void 0,j.useContext(Bu)),i=j.useRef();return fg(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",a),l.hydrate([d])),i.current=[l,c],function(){l.flush()}},[t]),fg(function(){var a=i.current,l=a[0],c=a[1];if(c){a[1]=!1;return}if(r.next!==void 0&&og(t,r.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Du(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ha(t)}var ss=function(){var t=Du.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},jS=U1,FS=function(t){return t!=="theme"},gg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jS:FS},mg=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},NS=!1,zS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return rg(n,r,i),DS(function(){return og(n,r,i)}),null},WS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var c=mg(t,n,r),d=c||gg(i),h=!d("as");return function(){var y=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{m.push(y[0][0]);for(var v=y.length,S=1;S<v;S++)m.push(y[S],y[0][S])}var x=hg(function(R,O,_){var I=h&&R.as||i,E="",P=[],M=R;if(R.theme==null){M={};for(var D in R)M[D]=R[D];M.theme=j.useContext(Bu)}typeof R.className=="string"?E=kS(O.registered,P,R.className):R.className!=null&&(E=R.className+" ");var $=Ha(m.concat(P),O.registered,M);E+=O.key+"-"+$.name,l!==void 0&&(E+=" "+l);var z=h&&c===void 0?gg(I):d,V={};for(var b in R)h&&b==="as"||z(b)&&(V[b]=R[b]);return V.className=E,_&&(V.ref=_),j.createElement(j.Fragment,null,j.createElement(zS,{cache:O,serialized:$,isStringTag:typeof I=="string"}),j.createElement(I,V))});return x.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=m,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&NS?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(R,O){return e(R,Ea({},n,O,{shouldForwardProp:mg(x,O,!0)})).apply(void 0,m)},x}},US=["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"],Ga=WS.bind();US.forEach(function(e){Ga[e]=Ga(e)});function HS(e){return e==null||Object.keys(e).length===0}function GS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(HS(i)?n:i):t;return C.jsx(LS,{styles:r})}/**
|
|
36
|
+
*/var Zt=typeof Symbol=="function"&&Symbol.for,Au=Zt?Symbol.for("react.element"):60103,$u=Zt?Symbol.for("react.portal"):60106,Da=Zt?Symbol.for("react.fragment"):60107,La=Zt?Symbol.for("react.strict_mode"):60108,ja=Zt?Symbol.for("react.profiler"):60114,Fa=Zt?Symbol.for("react.provider"):60109,Na=Zt?Symbol.for("react.context"):60110,Mu=Zt?Symbol.for("react.async_mode"):60111,za=Zt?Symbol.for("react.concurrent_mode"):60111,Wa=Zt?Symbol.for("react.forward_ref"):60112,Ua=Zt?Symbol.for("react.suspense"):60113,ES=Zt?Symbol.for("react.suspense_list"):60120,Ha=Zt?Symbol.for("react.memo"):60115,Ga=Zt?Symbol.for("react.lazy"):60116,RS=Zt?Symbol.for("react.block"):60121,PS=Zt?Symbol.for("react.fundamental"):60117,TS=Zt?Symbol.for("react.responder"):60118,IS=Zt?Symbol.for("react.scope"):60119;function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Au:switch(e=e.type,e){case Mu:case za:case Da:case ja:case La:case Ua:return e;default:switch(e=e&&e.$$typeof,e){case Na:case Wa:case Ga:case Ha:case Fa:return e;default:return t}}case $u:return t}}}function tg(e){return $n(e)===za}mt.AsyncMode=Mu,mt.ConcurrentMode=za,mt.ContextConsumer=Na,mt.ContextProvider=Fa,mt.Element=Au,mt.ForwardRef=Wa,mt.Fragment=Da,mt.Lazy=Ga,mt.Memo=Ha,mt.Portal=$u,mt.Profiler=ja,mt.StrictMode=La,mt.Suspense=Ua,mt.isAsyncMode=function(e){return tg(e)||$n(e)===Mu},mt.isConcurrentMode=tg,mt.isContextConsumer=function(e){return $n(e)===Na},mt.isContextProvider=function(e){return $n(e)===Fa},mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Au},mt.isForwardRef=function(e){return $n(e)===Wa},mt.isFragment=function(e){return $n(e)===Da},mt.isLazy=function(e){return $n(e)===Ga},mt.isMemo=function(e){return $n(e)===Ha},mt.isPortal=function(e){return $n(e)===$u},mt.isProfiler=function(e){return $n(e)===ja},mt.isStrictMode=function(e){return $n(e)===La},mt.isSuspense=function(e){return $n(e)===Ua},mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Da||e===za||e===ja||e===La||e===Ua||e===ES||typeof e=="object"&&e!==null&&(e.$$typeof===Ga||e.$$typeof===Ha||e.$$typeof===Fa||e.$$typeof===Na||e.$$typeof===Wa||e.$$typeof===PS||e.$$typeof===TS||e.$$typeof===IS||e.$$typeof===RS)},mt.typeOf=$n,eg.exports=mt;var kS=eg.exports,ng=kS,OS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rg={};rg[ng.ForwardRef]=OS,rg[ng.Memo]=AS;var $S=!0;function MS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var og=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||$S===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ig=function(t,n,r){og(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function sg(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 ag={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},BS=!1,DS=/[A-Z]|^ms/g,LS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lg=function(t){return t.charCodeAt(1)===45},cg=function(t){return t!=null&&typeof t!="boolean"},Bu=Ru(function(e){return lg(e)?e:e.replace(DS,"-$&").toLowerCase()}),ug=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(LS,function(r,i,a){return _r={name:i,styles:a,next:_r},i})}return ag[t]!==1&&!lg(t)&&typeof n=="number"&&n!==0?n+"px":n},jS="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function is(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return _r={name:i.name,styles:i.styles,next:_r},i.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=a.styles+";";return c}return FS(e,t,n)}case"function":{if(e!==void 0){var d=_r,h=n(e);return _r=d,is(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function FS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=is(e,t,n[i])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?r+=a+"{"+t[c]+"}":cg(c)&&(r+=Bu(a)+":"+ug(a,c)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&BS)throw new Error(jS);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)cg(l[d])&&(r+=Bu(a)+":"+ug(a,l[d])+";");else{var h=is(e,t,l);switch(a){case"animation":case"animationName":{r+=Bu(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}}return r}var dg=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function qa(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=is(n,t,a);else{var l=a;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=is(n,t,e[c]),r){var d=a;i+=d[c]}dg.lastIndex=0;for(var h="",y;(y=dg.exec(i))!==null;)h+="-"+y[1];var m=sg(i)+h;return{name:m,styles:i,next:_r}}var NS=function(t){return t()},fg=j.useInsertionEffect?j.useInsertionEffect:!1,zS=fg||NS,pg=fg||j.useLayoutEffect,hg=j.createContext(typeof HTMLElement<"u"?_S({key:"css"}):null);hg.Provider;var gg=function(t){return X.forwardRef(function(n,r){var i=X.useContext(hg);return t(n,i,r)})},Du=j.createContext({}),WS=gg(function(e,t){var n=e.styles,r=qa([n],void 0,j.useContext(Du)),i=j.useRef();return pg(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",a),l.hydrate([d])),i.current=[l,c],function(){l.flush()}},[t]),pg(function(){var a=i.current,l=a[0],c=a[1];if(c){a[1]=!1;return}if(r.next!==void 0&&ig(t,r.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qa(t)}var ss=function(){var t=Lu.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},US=K1,HS=function(t){return t!=="theme"},mg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?US:HS},yg=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},GS=!1,qS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return og(n,r,i),zS(function(){return ig(n,r,i)}),null},VS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var c=yg(t,n,r),d=c||mg(i),h=!d("as");return function(){var y=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{m.push(y[0][0]);for(var v=y.length,w=1;w<v;w++)m.push(y[w],y[0][w])}var b=gg(function(E,k,_){var O=h&&E.as||i,C="",P=[],M=E;if(E.theme==null){M={};for(var D in E)M[D]=E[D];M.theme=j.useContext(Du)}typeof E.className=="string"?C=MS(k.registered,P,E.className):E.className!=null&&(C=E.className+" ");var $=qa(m.concat(P),k.registered,M);C+=k.key+"-"+$.name,l!==void 0&&(C+=" "+l);var z=h&&c===void 0?mg(O):d,V={};for(var R in E)h&&R==="as"||z(R)&&(V[R]=E[R]);return V.className=C,_&&(V.ref=_),j.createElement(j.Fragment,null,j.createElement(qS,{cache:k,serialized:$,isStringTag:typeof O=="string"}),j.createElement(O,V))});return b.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=i,b.__emotion_styles=m,b.__emotion_forwardProp=c,Object.defineProperty(b,"toString",{value:function(){return l===void 0&&GS?"NO_COMPONENT_SELECTOR":"."+l}}),b.withComponent=function(E,k){return e(E,Pa({},n,k,{shouldForwardProp:yg(b,k,!0)})).apply(void 0,m)},b}},KS=["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"],Va=VS.bind();KS.forEach(function(e){Va[e]=Va(e)});function YS(e){return e==null||Object.keys(e).length===0}function XS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(YS(i)?n:i):t;return x.jsx(WS,{styles:r})}/**
|
|
37
37
|
* @mui/styled-engine v6.1.3
|
|
38
38
|
*
|
|
39
39
|
* @license MIT
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function yg(e,t){return Ga(e,t)}function qS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const vg=[];function bg(e){return vg[0]=e,Ha(vg)}const VS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function KS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=VS(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function h(v,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?h(v,l[l.indexOf(v)+1]):c(v)}function m(v){const S=l.indexOf(v);return S===0?c(l[1]):S===l.length-1?d(l[S]):h(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:h,only:y,not:m,unit:n,...i}}const YS={borderRadius:4};function xg(e=8,t=Cu({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function XS(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Lu(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=KS(n),d=xg(i);let h=ln({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...YS,...a}},l);return h=Zw(h),h.applyStyles=XS,h=t.reduce((y,m)=>ln(y,m),h),h.unstable_sxConfig={...es,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return Co({sx:m,theme:this})},h}function JS(e){return Object.keys(e).length===0}function ZS(e=null){const t=j.useContext(Bu);return!t||JS(t)?e:t}const QS=Lu();function qa(e=QS){return ZS(e)}function eC({styles:e,themeId:t,defaultTheme:n={}}){const r=qa(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(GS,{styles:i})}function tC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=yg("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Co);return j.forwardRef(function(d,h){const y=qa(n),{className:m,component:v="div",...S}=Wh(d);return C.jsx(a,{as:v,ref:h,className:Te(m,i?i(r):r),theme:t&&y[t]||y,...S})})}function wg(e){const{variants:t,...n}=e,r={variants:t,style:bg(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=bg(i.style))}),r}const nC=Lu();function ju(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rC(e){return e?(t,n)=>n[e]:null}function oC(e,t,n){e.theme=aC(e.theme)?n:e.theme[t]||e.theme}function Va(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Va(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return Sg(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Sg(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function iC(e={}){const{themeId:t,defaultTheme:n=nC,rootShouldForwardProp:r=ju,slotShouldForwardProp:i=ju}=e;function a(c){oC(c,t,n)}return(c,d={})=>{qS(c,M=>M.filter(D=>D!==Co));const{name:h,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:S=rC(cC(y)),...x}=d,R=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,O=v||!1;let _=ju;y==="Root"||y==="root"?_=r:y?_=i:lC(c)&&(_=void 0);const I=yg(c,{shouldForwardProp:_,label:sC(),...x}),E=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return Va($,M)};if(xr(M)){const D=wg(M);return D.variants?function(z){return Va(z,D)}:D.style}return M},P=(...M)=>{const D=[],$=M.map(E),z=[];if(D.push(a),h&&S&&z.push(function(Q){var le,fe;const X=(fe=(le=Q.theme.components)==null?void 0:le[h])==null?void 0:fe.styleOverrides;if(!X)return null;const te={};for(const pe in X)te[pe]=Va(Q,X[pe]);return S(Q,te)}),h&&!R&&z.push(function(Q){var te,le;const ee=Q.theme,X=(le=(te=ee==null?void 0:ee.components)==null?void 0:te[h])==null?void 0:le.variants;return X?Sg(Q,X):null}),O||z.push(Co),Array.isArray($[0])){const H=$.shift(),Q=new Array(D.length).fill(""),ee=new Array(z.length).fill("");let X;X=[...Q,...H,...ee],X.raw=[...Q,...H.raw,...ee],D.unshift(X)}const V=[...D,...$,...z],b=I(...V);return c.muiName&&(b.muiName=c.muiName),b};return I.withConfig&&(P.withConfig=I.withConfig),P}}function sC(e,t){return void 0}function aC(e){for(const t in e)return!1;return!0}function lC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function uC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Yi(t.components[n].defaultProps,r)}function dC({props:e,name:t,defaultTheme:n,themeId:r}){let i=qa(n);return r&&(i=i[r]||i),uC({theme:i,name:t,props:e})}function Fu(e,t=0,n=1){return qw(e,t,n)}function fC(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ro(e){if(e.type)return e;if(e.charAt(0)==="#")return ro(fC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(jr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(jr(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const pC=e=>{const t=ro(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},as=(e,t)=>{try{return pC(e)}catch{return e}};function Ka(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Cg(e){e=ro(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(h,y=(h+n/30)%12)=>i-a*Math.max(Math.min(y-3,9-y,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Ka({type:c,values:d})}function Nu(e){e=ro(e);let t=e.type==="hsl"||e.type==="hsla"?ro(Cg(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 hC(e,t){const n=Nu(e),r=Nu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Vt(e,t){return e=ro(e),t=Fu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ka(e)}function Ya(e,t,n){try{return Vt(e,t)}catch{return e}}function zu(e,t){if(e=ro(e),t=Fu(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 Ka(e)}function wt(e,t,n){try{return zu(e,t)}catch{return e}}function Wu(e,t){if(e=ro(e),t=Fu(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 Ka(e)}function St(e,t,n){try{return Wu(e,t)}catch{return e}}function gC(e,t=.15){return Nu(e)>.5?zu(e,t):Wu(e,t)}function Xa(e,t,n){try{return gC(e,t)}catch{return e}}const mC=j.createContext(),Uu=()=>j.useContext(mC)??!1,yC=j.createContext(void 0);function vC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Yi(i.defaultProps,r):!i.styleOverrides&&!i.variants?Yi(i,r):r}function bC({props:e,name:t}){const n=j.useContext(yC);return vC({props:e,name:t,theme:{components:n}})}const _g={theme:void 0};function xC(e){let t,n;return function(i){let a=t;return(a===void 0||i.theme!==n)&&(_g.theme=i.theme,a=wg(e(_g)),t=a,n=i.theme),a}}function wC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Eg=(e,t,n,r=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},SC=(e,t,n)=>{function r(i,a=[],l=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...a,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,c],Array.isArray(d)?[...l,c]:l):t([...a,c],d,l))})}r(e)},CC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Hu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},l={};return SC(e,(c,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const y=`--${n?`${n}-`:""}${c.join("-")}`,m=CC(c,d);Object.assign(i,{[y]:m}),Eg(a,c,`var(${y})`,h),Eg(l,c,`var(${y}, ${m})`,h)}},c=>c[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function _C(e,t={}){const{getSelector:n=O,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:h,css:y,varsWithDefaults:m}=Hu(d,t);let v=m;const S={},{[c]:x,...R}=a;if(Object.entries(R||{}).forEach(([E,P])=>{const{vars:M,css:D,varsWithDefaults:$}=Hu(P,t);v=ln(v,$),S[E]={css:D,vars:M}}),x){const{css:E,vars:P,varsWithDefaults:M}=Hu(x,t);v=ln(v,M),S[c]={css:E,vars:P}}function O(E,P){var D,$;let M=i;if(i==="class"&&(M=".%s"),i==="data"&&(M="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(M=`[${i}="%s"]`),E){if(M==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${(($=(D=a[E])==null?void 0:D.palette)==null?void 0:$.mode)||E})`]:{":root":P}};if(M)return e.defaultColorScheme===E?`:root, ${M.replace("%s",String(E))}`:M.replace("%s",String(E))}return":root"}return{vars:v,generateThemeVars:()=>{let E={...h};return Object.entries(S).forEach(([,{vars:P}])=>{E=ln(E,P)}),E},generateStyleSheets:()=>{var z,V;const E=[],P=e.defaultColorScheme||"light";function M(b,H){Object.keys(H).length&&E.push(typeof b=="string"?{[b]:{...H}}:b)}M(n(void 0,{...y}),y);const{[P]:D,...$}=S;if(D){const{css:b}=D,H=(V=(z=a[P])==null?void 0:z.palette)==null?void 0:V.mode,Q=!r&&H?{colorScheme:H,...b}:{...b};M(n(P,{...Q}),Q)}return Object.entries($).forEach(([b,{css:H}])=>{var X,te;const Q=(te=(X=a[b])==null?void 0:X.palette)==null?void 0:te.mode,ee=!r&&Q?{colorScheme:Q,...H}:{...H};M(n(b,{...ee}),ee)}),E}}}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 ls={black:"#000",white:"#fff"},RC={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"},ti={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"},ni={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"},cs={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"},ri={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"},oi={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"},ii={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"},Rg={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:ls.white,default:ls.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}},Gu={text:{primary:ls.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:ls.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Tg(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wu(e.main,i):t==="dark"&&(e.dark=zu(e.main,a)))}function TC(e="light"){return e==="dark"?{main:ri[200],light:ri[50],dark:ri[400]}:{main:ri[700],light:ri[400],dark:ri[800]}}function PC(e="light"){return e==="dark"?{main:ti[200],light:ti[50],dark:ti[400]}:{main:ti[500],light:ti[300],dark:ti[700]}}function kC(e="light"){return e==="dark"?{main:ni[500],light:ni[300],dark:ni[700]}:{main:ni[700],light:ni[400],dark:ni[800]}}function IC(e="light"){return e==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:oi[700],light:oi[500],dark:oi[900]}}function OC(e="light"){return e==="dark"?{main:ii[400],light:ii[300],dark:ii[700]}:{main:ii[800],light:ii[500],dark:ii[900]}}function AC(e="light"){return e==="dark"?{main:cs[400],light:cs[300],dark:cs[700]}:{main:"#ed6c02",light:cs[500],dark:cs[900]}}function qu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||TC(t),l=e.secondary||PC(t),c=e.error||kC(t),d=e.info||IC(t),h=e.success||OC(t),y=e.warning||AC(t);function m(R){return hC(R,Gu.text.primary)>=n?Gu.text.primary:Rg.text.primary}const v=({color:R,name:O,mainShade:_=500,lightShade:I=300,darkShade:E=700})=>{if(R={...R},!R.main&&R[_]&&(R.main=R[_]),!R.hasOwnProperty("main"))throw new Error(jr(11,O?` (${O})`:"",_));if(typeof R.main!="string")throw new Error(jr(12,O?` (${O})`:"",JSON.stringify(R.main)));return Tg(R,"light",I,r),Tg(R,"dark",E,r),R.contrastText||(R.contrastText=m(R.main)),R},S={dark:Gu,light:Rg};return ln({common:{...ls},mode:t,primary:v({color:a,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:h,name:"success"}),grey:RC,contrastThreshold:n,getContrastText:m,augmentColor:v,tonalOffset:r,...S[t]},i)}function $C(e){const t={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function MC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function BC(e){return Math.round(e*1e5)/1e5}const Pg={textTransform:"uppercase"},kg='"Roboto", "Helvetica", "Arial", sans-serif';function DC(e,t){const{fontFamily:n=kg,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:h,pxToRem:y,...m}=typeof t=="function"?t(e):t,v=r/14,S=y||(O=>`${O/d*v}rem`),x=(O,_,I,E,P)=>({fontFamily:n,fontWeight:O,fontSize:S(_),lineHeight:I,...n===kg?{letterSpacing:`${BC(E/_)}em`}:{},...P,...h}),R={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(l,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(l,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(l,14,1.75,.4,Pg),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,Pg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:d,pxToRem:S,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,...R},m,{clone:!1})}const LC=.2,jC=.14,FC=.12;function Pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${LC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${FC})`].join(",")}const NC=["none",Pt(0,2,1,-1,0,1,1,0,0,1,3,0),Pt(0,3,1,-2,0,2,2,0,0,1,5,0),Pt(0,3,3,-2,0,3,4,0,0,1,8,0),Pt(0,2,4,-1,0,4,5,0,0,1,10,0),Pt(0,3,5,-1,0,5,8,0,0,1,14,0),Pt(0,3,5,-1,0,6,10,0,0,1,18,0),Pt(0,4,5,-2,0,7,10,1,0,2,16,1),Pt(0,5,5,-3,0,8,10,1,0,3,14,2),Pt(0,5,6,-3,0,9,12,1,0,3,16,2),Pt(0,6,6,-3,0,10,14,1,0,4,18,3),Pt(0,6,7,-4,0,11,15,1,0,4,20,3),Pt(0,7,8,-4,0,12,17,2,0,5,22,4),Pt(0,7,8,-4,0,13,19,2,0,5,24,4),Pt(0,7,9,-4,0,14,21,2,0,5,26,4),Pt(0,8,9,-5,0,15,22,2,0,6,28,5),Pt(0,8,10,-5,0,16,24,2,0,6,30,5),Pt(0,8,11,-5,0,17,26,2,0,6,32,5),Pt(0,9,11,-5,0,18,28,2,0,7,34,6),Pt(0,9,12,-6,0,19,29,2,0,7,36,6),Pt(0,10,13,-6,0,20,31,3,0,8,38,7),Pt(0,10,13,-6,0,21,33,3,0,8,40,7),Pt(0,10,14,-6,0,22,35,3,0,8,42,7),Pt(0,11,14,-7,0,23,36,3,0,9,44,8),Pt(0,11,15,-7,0,24,38,3,0,9,46,8)],zC={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)"},WC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ig(e){return`${Math.round(e)}ms`}function UC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function HC(e){const t={...zC,...e.easing},n={...WC,...e.duration};return{getAutoHeightDuration:UC,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:c=t.easeInOut,delay:d=0,...h}=a;return(Array.isArray(i)?i:[i]).map(y=>`${y} ${typeof l=="string"?l:Ig(l)} ${c} ${typeof d=="string"?d:Ig(d)}`).join(",")},...e,easing:t,duration:n}}const GC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vu(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:l={},typography:c={},shape:d,...h}=e;if(e.vars)throw new Error(jr(20));const y=qu(a),m=Lu(e);let v=ln(m,{mixins:MC(m.breakpoints,r),palette:y,shadows:NC.slice(),typography:DC(y,c),transitions:HC(l),zIndex:{...GC}});return v=ln(v,h),v=t.reduce((S,x)=>ln(S,x),v),v.unstable_sxConfig={...es,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(x){return Co({sx:x,theme:this})},v}function Ku(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 qC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ku(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Og(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ag(e){return e==="dark"?qC:[]}function VC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,a=qu(t);return{palette:a,opacity:{...Og(a.mode),...n},overlays:r||Ag(a.mode),...i}}function KC(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 YC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],XC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return YC(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function JC(e){return xr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ZC(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[l,c]=i[a];!JC(c)||l.startsWith("unstable_")?delete r[l]:xr(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
42
|
+
*/function vg(e,t){return Va(e,t)}function JS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const bg=[];function xg(e){return bg[0]=e,qa(bg)}const ZS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function QS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=ZS(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function h(v,w){const b=l.indexOf(w);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:w)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?h(v,l[l.indexOf(v)+1]):c(v)}function m(v){const w=l.indexOf(v);return w===0?c(l[1]):w===l.length-1?d(l[w]):h(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:h,only:y,not:m,unit:n,...i}}const eC={borderRadius:4};function wg(e=8,t=_u({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function tC(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function ju(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=QS(n),d=wg(i);let h=ln({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...eC,...a}},l);return h=r1(h),h.applyStyles=tC,h=t.reduce((y,m)=>ln(y,m),h),h.unstable_sxConfig={...es,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return Co({sx:m,theme:this})},h}function nC(e){return Object.keys(e).length===0}function rC(e=null){const t=j.useContext(Du);return!t||nC(t)?e:t}const oC=ju();function Ka(e=oC){return rC(e)}function iC({styles:e,themeId:t,defaultTheme:n={}}){const r=Ka(n),i=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(XS,{styles:i})}function sC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=vg("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Co);return j.forwardRef(function(d,h){const y=Ka(n),{className:m,component:v="div",...w}=Uh(d);return x.jsx(a,{as:v,ref:h,className:Pe(m,i?i(r):r),theme:t&&y[t]||y,...w})})}function Sg(e){const{variants:t,...n}=e,r={variants:t,style:xg(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=xg(i.style))}),r}const aC=ju();function Fu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lC(e){return e?(t,n)=>n[e]:null}function cC(e,t,n){e.theme=fC(e.theme)?n:e.theme[t]||e.theme}function Ya(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Ya(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return Cg(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Cg(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function uC(e={}){const{themeId:t,defaultTheme:n=aC,rootShouldForwardProp:r=Fu,slotShouldForwardProp:i=Fu}=e;function a(c){cC(c,t,n)}return(c,d={})=>{JS(c,M=>M.filter(D=>D!==Co));const{name:h,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:w=lC(hC(y)),...b}=d,E=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,k=v||!1;let _=Fu;y==="Root"||y==="root"?_=r:y?_=i:pC(c)&&(_=void 0);const O=vg(c,{shouldForwardProp:_,label:dC(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return Ya($,M)};if(xr(M)){const D=Sg(M);return D.variants?function(z){return Ya(z,D)}:D.style}return M},P=(...M)=>{const D=[],$=M.map(C),z=[];if(D.push(a),h&&w&&z.push(function(te){var ae,fe;const Y=(fe=(ae=te.theme.components)==null?void 0:ae[h])==null?void 0:fe.styleOverrides;if(!Y)return null;const ee={};for(const pe in Y)ee[pe]=Ya(te,Y[pe]);return w(te,ee)}),h&&!E&&z.push(function(te){var ee,ae;const H=te.theme,Y=(ae=(ee=H==null?void 0:H.components)==null?void 0:ee[h])==null?void 0:ae.variants;return Y?Cg(te,Y):null}),k||z.push(Co),Array.isArray($[0])){const G=$.shift(),te=new Array(D.length).fill(""),H=new Array(z.length).fill("");let Y;Y=[...te,...G,...H],Y.raw=[...te,...G.raw,...H],D.unshift(Y)}const V=[...D,...$,...z],R=O(...V);return c.muiName&&(R.muiName=c.muiName),R};return O.withConfig&&(P.withConfig=O.withConfig),P}}function dC(e,t){return void 0}function fC(e){for(const t in e)return!1;return!0}function pC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Yi(t.components[n].defaultProps,r)}function mC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ka(n);return r&&(i=i[r]||i),gC({theme:i,name:t,props:e})}function Nu(e,t=0,n=1){return Jw(e,t,n)}function yC(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ro(e){if(e.type)return e;if(e.charAt(0)==="#")return ro(yC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(jr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(jr(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const vC=e=>{const t=ro(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},as=(e,t)=>{try{return vC(e)}catch{return e}};function Xa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function _g(e){e=ro(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(h,y=(h+n/30)%12)=>i-a*Math.max(Math.min(y-3,9-y,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Xa({type:c,values:d})}function zu(e){e=ro(e);let t=e.type==="hsl"||e.type==="hsla"?ro(_g(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 bC(e,t){const n=zu(e),r=zu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Vt(e,t){return e=ro(e),t=Nu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xa(e)}function Ja(e,t,n){try{return Vt(e,t)}catch{return e}}function Wu(e,t){if(e=ro(e),t=Nu(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 Xa(e)}function wt(e,t,n){try{return Wu(e,t)}catch{return e}}function Uu(e,t){if(e=ro(e),t=Nu(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 Xa(e)}function St(e,t,n){try{return Uu(e,t)}catch{return e}}function xC(e,t=.15){return zu(e)>.5?Wu(e,t):Uu(e,t)}function Za(e,t,n){try{return xC(e,t)}catch{return e}}const wC=j.createContext(),Hu=()=>j.useContext(wC)??!1,SC=j.createContext(void 0);function CC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Yi(i.defaultProps,r):!i.styleOverrides&&!i.variants?Yi(i,r):r}function _C({props:e,name:t}){const n=j.useContext(SC);return CC({props:e,name:t,theme:{components:n}})}const Eg={theme:void 0};function EC(e){let t,n;return function(i){let a=t;return(a===void 0||i.theme!==n)&&(Eg.theme=i.theme,a=Sg(e(Eg)),t=a,n=i.theme),a}}function RC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Rg=(e,t,n,r=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},PC=(e,t,n)=>{function r(i,a=[],l=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...a,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,c],Array.isArray(d)?[...l,c]:l):t([...a,c],d,l))})}r(e)},TC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Gu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},l={};return PC(e,(c,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const y=`--${n?`${n}-`:""}${c.join("-")}`,m=TC(c,d);Object.assign(i,{[y]:m}),Rg(a,c,`var(${y})`,h),Rg(l,c,`var(${y}, ${m})`,h)}},c=>c[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function IC(e,t={}){const{getSelector:n=k,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:h,css:y,varsWithDefaults:m}=Gu(d,t);let v=m;const w={},{[c]:b,...E}=a;if(Object.entries(E||{}).forEach(([C,P])=>{const{vars:M,css:D,varsWithDefaults:$}=Gu(P,t);v=ln(v,$),w[C]={css:D,vars:M}}),b){const{css:C,vars:P,varsWithDefaults:M}=Gu(b,t);v=ln(v,M),w[c]={css:C,vars:P}}function k(C,P){var D,$;let M=i;if(i==="class"&&(M=".%s"),i==="data"&&(M="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(M=`[${i}="%s"]`),C){if(M==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${(($=(D=a[C])==null?void 0:D.palette)==null?void 0:$.mode)||C})`]:{":root":P}};if(M)return e.defaultColorScheme===C?`:root, ${M.replace("%s",String(C))}`:M.replace("%s",String(C))}return":root"}return{vars:v,generateThemeVars:()=>{let C={...h};return Object.entries(w).forEach(([,{vars:P}])=>{C=ln(C,P)}),C},generateStyleSheets:()=>{var z,V;const C=[],P=e.defaultColorScheme||"light";function M(R,G){Object.keys(G).length&&C.push(typeof R=="string"?{[R]:{...G}}:R)}M(n(void 0,{...y}),y);const{[P]:D,...$}=w;if(D){const{css:R}=D,G=(V=(z=a[P])==null?void 0:z.palette)==null?void 0:V.mode,te=!r&&G?{colorScheme:G,...R}:{...R};M(n(P,{...te}),te)}return Object.entries($).forEach(([R,{css:G}])=>{var Y,ee;const te=(ee=(Y=a[R])==null?void 0:Y.palette)==null?void 0:ee.mode,H=!r&&te?{colorScheme:te,...G}:{...G};M(n(R,{...H}),H)}),C}}}function kC(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 ls={black:"#000",white:"#fff"},OC={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"},ti={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"},ni={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"},cs={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"},ri={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"},oi={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"},ii={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"},Pg={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:ls.white,default:ls.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}},qu={text:{primary:ls.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:ls.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Tg(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Uu(e.main,i):t==="dark"&&(e.dark=Wu(e.main,a)))}function AC(e="light"){return e==="dark"?{main:ri[200],light:ri[50],dark:ri[400]}:{main:ri[700],light:ri[400],dark:ri[800]}}function $C(e="light"){return e==="dark"?{main:ti[200],light:ti[50],dark:ti[400]}:{main:ti[500],light:ti[300],dark:ti[700]}}function MC(e="light"){return e==="dark"?{main:ni[500],light:ni[300],dark:ni[700]}:{main:ni[700],light:ni[400],dark:ni[800]}}function BC(e="light"){return e==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:oi[700],light:oi[500],dark:oi[900]}}function DC(e="light"){return e==="dark"?{main:ii[400],light:ii[300],dark:ii[700]}:{main:ii[800],light:ii[500],dark:ii[900]}}function LC(e="light"){return e==="dark"?{main:cs[400],light:cs[300],dark:cs[700]}:{main:"#ed6c02",light:cs[500],dark:cs[900]}}function Vu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||AC(t),l=e.secondary||$C(t),c=e.error||MC(t),d=e.info||BC(t),h=e.success||DC(t),y=e.warning||LC(t);function m(E){return bC(E,qu.text.primary)>=n?qu.text.primary:Pg.text.primary}const v=({color:E,name:k,mainShade:_=500,lightShade:O=300,darkShade:C=700})=>{if(E={...E},!E.main&&E[_]&&(E.main=E[_]),!E.hasOwnProperty("main"))throw new Error(jr(11,k?` (${k})`:"",_));if(typeof E.main!="string")throw new Error(jr(12,k?` (${k})`:"",JSON.stringify(E.main)));return Tg(E,"light",O,r),Tg(E,"dark",C,r),E.contrastText||(E.contrastText=m(E.main)),E},w={dark:qu,light:Pg};return ln({common:{...ls},mode:t,primary:v({color:a,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:h,name:"success"}),grey:OC,contrastThreshold:n,getContrastText:m,augmentColor:v,tonalOffset:r,...w[t]},i)}function jC(e){const t={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function FC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function NC(e){return Math.round(e*1e5)/1e5}const Ig={textTransform:"uppercase"},kg='"Roboto", "Helvetica", "Arial", sans-serif';function zC(e,t){const{fontFamily:n=kg,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:h,pxToRem:y,...m}=typeof t=="function"?t(e):t,v=r/14,w=y||(k=>`${k/d*v}rem`),b=(k,_,O,C,P)=>({fontFamily:n,fontWeight:k,fontSize:w(_),lineHeight:O,...n===kg?{letterSpacing:`${NC(C/_)}em`}:{},...P,...h}),E={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(l,14,1.75,.4,Ig),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Ig),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,...E},m,{clone:!1})}const WC=.2,UC=.14,HC=.12;function Tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${WC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${UC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${HC})`].join(",")}const GC=["none",Tt(0,2,1,-1,0,1,1,0,0,1,3,0),Tt(0,3,1,-2,0,2,2,0,0,1,5,0),Tt(0,3,3,-2,0,3,4,0,0,1,8,0),Tt(0,2,4,-1,0,4,5,0,0,1,10,0),Tt(0,3,5,-1,0,5,8,0,0,1,14,0),Tt(0,3,5,-1,0,6,10,0,0,1,18,0),Tt(0,4,5,-2,0,7,10,1,0,2,16,1),Tt(0,5,5,-3,0,8,10,1,0,3,14,2),Tt(0,5,6,-3,0,9,12,1,0,3,16,2),Tt(0,6,6,-3,0,10,14,1,0,4,18,3),Tt(0,6,7,-4,0,11,15,1,0,4,20,3),Tt(0,7,8,-4,0,12,17,2,0,5,22,4),Tt(0,7,8,-4,0,13,19,2,0,5,24,4),Tt(0,7,9,-4,0,14,21,2,0,5,26,4),Tt(0,8,9,-5,0,15,22,2,0,6,28,5),Tt(0,8,10,-5,0,16,24,2,0,6,30,5),Tt(0,8,11,-5,0,17,26,2,0,6,32,5),Tt(0,9,11,-5,0,18,28,2,0,7,34,6),Tt(0,9,12,-6,0,19,29,2,0,7,36,6),Tt(0,10,13,-6,0,20,31,3,0,8,38,7),Tt(0,10,13,-6,0,21,33,3,0,8,40,7),Tt(0,10,14,-6,0,22,35,3,0,8,42,7),Tt(0,11,14,-7,0,23,36,3,0,9,44,8),Tt(0,11,15,-7,0,24,38,3,0,9,46,8)],qC={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 Og(e){return`${Math.round(e)}ms`}function KC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function YC(e){const t={...qC,...e.easing},n={...VC,...e.duration};return{getAutoHeightDuration:KC,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:c=t.easeInOut,delay:d=0,...h}=a;return(Array.isArray(i)?i:[i]).map(y=>`${y} ${typeof l=="string"?l:Og(l)} ${c} ${typeof d=="string"?d:Og(d)}`).join(",")},...e,easing:t,duration:n}}const XC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ku(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:l={},typography:c={},shape:d,...h}=e;if(e.vars)throw new Error(jr(20));const y=Vu(a),m=ju(e);let v=ln(m,{mixins:FC(m.breakpoints,r),palette:y,shadows:GC.slice(),typography:zC(y,c),transitions:YC(l),zIndex:{...XC}});return v=ln(v,h),v=t.reduce((w,b)=>ln(w,b),v),v.unstable_sxConfig={...es,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(b){return Co({sx:b,theme:this})},v}function Yu(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 JC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ag(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $g(e){return e==="dark"?JC:[]}function ZC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,a=Vu(t);return{palette:a,opacity:{...Ag(a.mode),...n},overlays:r||$g(a.mode),...i}}function QC(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 e_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],t_=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return e_(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function n_(e){return xr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function r_(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[l,c]=i[a];!n_(c)||l.startsWith("unstable_")?delete r[l]:xr(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
43
43
|
|
|
44
44
|
const theme = ${JSON.stringify(t,null,2)};
|
|
45
45
|
|
|
46
46
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
47
47
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
48
48
|
|
|
49
|
-
export default theme;`}function
|
|
50
|
-
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 e_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Er=e=>{try{return e()}catch{}},t_=(e="mui")=>wC(e);function Yu(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=VC({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=Vu({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...Og(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Ag(i)},l}function n_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=KC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=r||(n.light&&y!=="light"?"light":y),v=t_(a),{[m]:S,light:x,dark:R,...O}=n,_={...O};let I=S;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(I=!0),!I)throw new Error(jr(21,m));const E=Yu(_,I,h,m);x&&!_.light&&Yu(_,x,void 0,"light"),R&&!_.dark&&Yu(_,R,void 0,"dark");let P={defaultColorScheme:m,...E,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:v,colorSchemes:_,font:{...$C(E.typography),...E.font},spacing:e_(h.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const b=P.colorSchemes[V].palette,H=Q=>{const ee=Q.split("-"),X=ee[1],te=ee[2];return v(Q,b[X][te])};if(b.mode==="light"&&(K(b.common,"background","#fff"),K(b.common,"onBackground","#000")),b.mode==="dark"&&(K(b.common,"background","#000"),K(b.common,"onBackground","#fff")),QC(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){K(b.Alert,"errorColor",wt(b.error.light,.6)),K(b.Alert,"infoColor",wt(b.info.light,.6)),K(b.Alert,"successColor",wt(b.success.light,.6)),K(b.Alert,"warningColor",wt(b.warning.light,.6)),K(b.Alert,"errorFilledBg",H("palette-error-main")),K(b.Alert,"infoFilledBg",H("palette-info-main")),K(b.Alert,"successFilledBg",H("palette-success-main")),K(b.Alert,"warningFilledBg",H("palette-warning-main")),K(b.Alert,"errorFilledColor",Er(()=>b.getContrastText(b.error.main))),K(b.Alert,"infoFilledColor",Er(()=>b.getContrastText(b.info.main))),K(b.Alert,"successFilledColor",Er(()=>b.getContrastText(b.success.main))),K(b.Alert,"warningFilledColor",Er(()=>b.getContrastText(b.warning.main))),K(b.Alert,"errorStandardBg",St(b.error.light,.9)),K(b.Alert,"infoStandardBg",St(b.info.light,.9)),K(b.Alert,"successStandardBg",St(b.success.light,.9)),K(b.Alert,"warningStandardBg",St(b.warning.light,.9)),K(b.Alert,"errorIconColor",H("palette-error-main")),K(b.Alert,"infoIconColor",H("palette-info-main")),K(b.Alert,"successIconColor",H("palette-success-main")),K(b.Alert,"warningIconColor",H("palette-warning-main")),K(b.AppBar,"defaultBg",H("palette-grey-100")),K(b.Avatar,"defaultBg",H("palette-grey-400")),K(b.Button,"inheritContainedBg",H("palette-grey-300")),K(b.Button,"inheritContainedHoverBg",H("palette-grey-A100")),K(b.Chip,"defaultBorder",H("palette-grey-400")),K(b.Chip,"defaultAvatarColor",H("palette-grey-700")),K(b.Chip,"defaultIconColor",H("palette-grey-700")),K(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(b.LinearProgress,"primaryBg",St(b.primary.main,.62)),K(b.LinearProgress,"secondaryBg",St(b.secondary.main,.62)),K(b.LinearProgress,"errorBg",St(b.error.main,.62)),K(b.LinearProgress,"infoBg",St(b.info.main,.62)),K(b.LinearProgress,"successBg",St(b.success.main,.62)),K(b.LinearProgress,"warningBg",St(b.warning.main,.62)),K(b.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),K(b.Slider,"primaryTrack",St(b.primary.main,.62)),K(b.Slider,"secondaryTrack",St(b.secondary.main,.62)),K(b.Slider,"errorTrack",St(b.error.main,.62)),K(b.Slider,"infoTrack",St(b.info.main,.62)),K(b.Slider,"successTrack",St(b.success.main,.62)),K(b.Slider,"warningTrack",St(b.warning.main,.62));const Q=Xa(b.background.default,.8);K(b.SnackbarContent,"bg",Q),K(b.SnackbarContent,"color",Er(()=>b.getContrastText(Q))),K(b.SpeedDialAction,"fabHoverBg",Xa(b.background.paper,.15)),K(b.StepConnector,"border",H("palette-grey-400")),K(b.StepContent,"border",H("palette-grey-400")),K(b.Switch,"defaultColor",H("palette-common-white")),K(b.Switch,"defaultDisabledColor",H("palette-grey-100")),K(b.Switch,"primaryDisabledColor",St(b.primary.main,.62)),K(b.Switch,"secondaryDisabledColor",St(b.secondary.main,.62)),K(b.Switch,"errorDisabledColor",St(b.error.main,.62)),K(b.Switch,"infoDisabledColor",St(b.info.main,.62)),K(b.Switch,"successDisabledColor",St(b.success.main,.62)),K(b.Switch,"warningDisabledColor",St(b.warning.main,.62)),K(b.TableCell,"border",St(Ya(b.divider,1),.88)),K(b.Tooltip,"bg",Ya(b.grey[700],.92))}if(b.mode==="dark"){K(b.Alert,"errorColor",St(b.error.light,.6)),K(b.Alert,"infoColor",St(b.info.light,.6)),K(b.Alert,"successColor",St(b.success.light,.6)),K(b.Alert,"warningColor",St(b.warning.light,.6)),K(b.Alert,"errorFilledBg",H("palette-error-dark")),K(b.Alert,"infoFilledBg",H("palette-info-dark")),K(b.Alert,"successFilledBg",H("palette-success-dark")),K(b.Alert,"warningFilledBg",H("palette-warning-dark")),K(b.Alert,"errorFilledColor",Er(()=>b.getContrastText(b.error.dark))),K(b.Alert,"infoFilledColor",Er(()=>b.getContrastText(b.info.dark))),K(b.Alert,"successFilledColor",Er(()=>b.getContrastText(b.success.dark))),K(b.Alert,"warningFilledColor",Er(()=>b.getContrastText(b.warning.dark))),K(b.Alert,"errorStandardBg",wt(b.error.light,.9)),K(b.Alert,"infoStandardBg",wt(b.info.light,.9)),K(b.Alert,"successStandardBg",wt(b.success.light,.9)),K(b.Alert,"warningStandardBg",wt(b.warning.light,.9)),K(b.Alert,"errorIconColor",H("palette-error-main")),K(b.Alert,"infoIconColor",H("palette-info-main")),K(b.Alert,"successIconColor",H("palette-success-main")),K(b.Alert,"warningIconColor",H("palette-warning-main")),K(b.AppBar,"defaultBg",H("palette-grey-900")),K(b.AppBar,"darkBg",H("palette-background-paper")),K(b.AppBar,"darkColor",H("palette-text-primary")),K(b.Avatar,"defaultBg",H("palette-grey-600")),K(b.Button,"inheritContainedBg",H("palette-grey-800")),K(b.Button,"inheritContainedHoverBg",H("palette-grey-700")),K(b.Chip,"defaultBorder",H("palette-grey-700")),K(b.Chip,"defaultAvatarColor",H("palette-grey-300")),K(b.Chip,"defaultIconColor",H("palette-grey-300")),K(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(b.LinearProgress,"primaryBg",wt(b.primary.main,.5)),K(b.LinearProgress,"secondaryBg",wt(b.secondary.main,.5)),K(b.LinearProgress,"errorBg",wt(b.error.main,.5)),K(b.LinearProgress,"infoBg",wt(b.info.main,.5)),K(b.LinearProgress,"successBg",wt(b.success.main,.5)),K(b.LinearProgress,"warningBg",wt(b.warning.main,.5)),K(b.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),K(b.Slider,"primaryTrack",wt(b.primary.main,.5)),K(b.Slider,"secondaryTrack",wt(b.secondary.main,.5)),K(b.Slider,"errorTrack",wt(b.error.main,.5)),K(b.Slider,"infoTrack",wt(b.info.main,.5)),K(b.Slider,"successTrack",wt(b.success.main,.5)),K(b.Slider,"warningTrack",wt(b.warning.main,.5));const Q=Xa(b.background.default,.98);K(b.SnackbarContent,"bg",Q),K(b.SnackbarContent,"color",Er(()=>b.getContrastText(Q))),K(b.SpeedDialAction,"fabHoverBg",Xa(b.background.paper,.15)),K(b.StepConnector,"border",H("palette-grey-600")),K(b.StepContent,"border",H("palette-grey-600")),K(b.Switch,"defaultColor",H("palette-grey-300")),K(b.Switch,"defaultDisabledColor",H("palette-grey-600")),K(b.Switch,"primaryDisabledColor",wt(b.primary.main,.55)),K(b.Switch,"secondaryDisabledColor",wt(b.secondary.main,.55)),K(b.Switch,"errorDisabledColor",wt(b.error.main,.55)),K(b.Switch,"infoDisabledColor",wt(b.info.main,.55)),K(b.Switch,"successDisabledColor",wt(b.success.main,.55)),K(b.Switch,"warningDisabledColor",wt(b.warning.main,.55)),K(b.TableCell,"border",wt(Ya(b.divider,1),.68)),K(b.Tooltip,"bg",Ya(b.grey[700],.92))}zr(b.background,"default"),zr(b.background,"paper"),zr(b.common,"background"),zr(b.common,"onBackground"),zr(b,"divider"),Object.keys(b).forEach(Q=>{const ee=b[Q];ee&&typeof ee=="object"&&(ee.main&&K(b[Q],"mainChannel",as(us(ee.main))),ee.light&&K(b[Q],"lightChannel",as(us(ee.light))),ee.dark&&K(b[Q],"darkChannel",as(us(ee.dark))),ee.contrastText&&K(b[Q],"contrastTextChannel",as(us(ee.contrastText))),Q==="text"&&(zr(b[Q],"primary"),zr(b[Q],"secondary")),Q==="action"&&(ee.active&&zr(b[Q],"active"),ee.selected&&zr(b[Q],"selected")))})}),P=t.reduce((V,b)=>ln(V,b),P);const M={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:XC(P)},{vars:D,generateThemeVars:$,generateStyleSheets:z}=_C(P,M);return P.vars=D,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,b])=>{P[V]=b}),P.generateThemeVars=$,P.generateStyleSheets=z,P.generateSpacing=function(){return xg(h.spacing,Cu(this))},P.getColorSchemeSelector=EC(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...es,...h==null?void 0:h.unstable_sxConfig},P.unstable_sx=function(b){return Co({sx:b,theme:this})},P.toRuntimeSource=ZC,P}function $g(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qu({...n===!0?{}:n.palette,mode:t})})}function Mg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,c=a||"light",d=i==null?void 0:i[c],h={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Vu(e,...t);let y=n;"palette"in e||h[c]&&(h[c]!==!0?y=h[c].palette:c==="dark"&&(y={mode:"dark"}));const m=Vu({...e,palette:y},...t);return m.defaultColorScheme=c,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},$g(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},$g(m,"light",h.light)),m}return!n&&!("light"in h)&&c==="light"&&(h.light=!0),n_({...l,colorSchemes:h,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Ja=Mg(),ds="$$material";function Za(){const e=qa(Ja);return e[ds]||e}function r_(e){return C.jsx(eC,{...e,defaultTheme:Ja,themeId:ds})}function Bg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mn=e=>Bg(e)&&e!=="classes",Ce=iC({themeId:ds,defaultTheme:Ja,rootShouldForwardProp:Mn});function o_(e){return function(n){return C.jsx(r_,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function i_(){return Wh}const yt=xC;function vt(e){return bC(e)}function s_(e){return st("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const a_=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(n)}`]};return dt(i,s_,r)},l_=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Le(n.color)}`],t[`fontSize${Le(n.fontSize)}`]]}})(yt(({theme:e})=>{var t,n,r,i,a,l,c,d,h,y,m,v,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:R=>!R.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,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(([,R])=>R&&R.main).map(([R])=>{var O,_;return{props:{color:R},style:{color:(_=(O=(e.vars??e).palette)==null?void 0:O[R])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(v=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(x=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Qa=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:v="0 0 24 24",...S}=r,x=j.isValidElement(i)&&i.type==="svg",R={...r,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:x},O={};y||(O.viewBox=v);const _=a_(R);return C.jsxs(l_,{as:c,className:Te(_.root,a),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...O,...S,...x&&i.props,ownerState:R,children:[x?i.props.children:i,m?C.jsx("title",{children:m}):null]})});Qa&&(Qa.muiName="SvgIcon");function Sn(e,t){function n(r,i){return C.jsx(Qa,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=Qa.muiName,j.memo(j.forwardRef(n))}const Dg=Sn(C.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"),Lg=Sn(C.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"),c_=Sn(C.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"),u_=Sn(C.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"),d_=Sn(C.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),f_=Sn(C.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"),p_=Sn(C.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");function h_({props:e,name:t}){return dC({props:e,name:t,defaultTheme:Ja,themeId:ds})}function jg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xu(e,t)}function Fg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xu(e,t)}const Ng={disabled:!1},el=Z.createContext(null);var g_=function(t){return t.scrollTop},fs="unmounted",_o="exited",Eo="entering",si="entered",Ju="exiting",Rr=function(e){Fg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=i,c=l&&!l.isMounting?r.enter:r.appear,d;return a.appearStatus=null,r.in?c?(d=_o,a.appearStatus=Eo):d=si:r.unmountOnExit||r.mountOnEnter?d=fs:d=_o,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===fs?{status:_o}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Eo&&l!==si&&(a=Eo):(l===Eo||l===si)&&(a=Ju)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,c;return a=l=c=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,c=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:c}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Eo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);l&&g_(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_o&&this.setState({status:fs})},n.performEnter=function(i){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[wo.findDOMNode(this),c],h=d[0],y=d[1],m=this.getTimeouts(),v=c?m.appear:m.enter;if(!i&&!l||Ng.disabled){this.safeSetState({status:si},function(){a.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:Eo},function(){a.props.onEntering(h,y),a.onTransitionEnd(v,function(){a.safeSetState({status:si},function(){a.props.onEntered(h,y)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:wo.findDOMNode(this);if(!a||Ng.disabled){this.safeSetState({status:_o},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Ju},function(){i.props.onExiting(c),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:_o},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,i(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!l||c){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)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===fs)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=jg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(el.Provider,{value:null},typeof l=="function"?l(i,c):Z.cloneElement(Z.Children.only(l),c))},t}(Z.Component);Rr.contextType=el,Rr.propTypes={};function ai(){}Rr.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},Rr.UNMOUNTED=fs,Rr.EXITED=_o,Rr.ENTERING=Eo,Rr.ENTERED=si,Rr.EXITING=Ju;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(a){return t&&Z.isValidElement(a)?t(a):a},r=Object.create(null);return e&&Z.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function y_(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var h=r[d][l];c[r[d][l]]=n(h)}c[d]=n(d)}for(l=0;l<i.length;l++)c[i[l]]=n(i[l]);return c}function Ro(e,t,n){return n[t]!=null?n[t]:e.props[t]}function v_(e,t){return Zu(e.children,function(n){return Z.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ro(n,"appear",e),enter:Ro(n,"enter",e),exit:Ro(n,"exit",e)})})}function b_(e,t,n){var r=Zu(e.children),i=y_(t,r);return Object.keys(i).forEach(function(a){var l=i[a];if(Z.isValidElement(l)){var c=a in t,d=a in r,h=t[a],y=Z.isValidElement(h)&&!h.props.in;d&&(!c||y)?i[a]=Z.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Ro(l,"exit",e),enter:Ro(l,"enter",e)}):!d&&c&&!y?i[a]=Z.cloneElement(l,{in:!1}):d&&c&&Z.isValidElement(h)&&(i[a]=Z.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:Ro(l,"exit",e),enter:Ro(l,"enter",e)}))}}),i}var x_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},w_={component:"div",childFactory:function(t){return t}},Qu=function(e){Fg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=a.handleExited.bind(m_(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}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(i,a){var l=a.children,c=a.handleExited,d=a.firstRender;return{children:d?v_(i,c):b_(i,l,c),firstRender:!1}},n.handleExited=function(i,a){var l=Zu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(c){var d=Ea({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,c=jg(i,["component","childFactory"]),d=this.state.contextValue,h=x_(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,a===null?Z.createElement(el.Provider,{value:d},h):Z.createElement(el.Provider,{value:d},Z.createElement(a,c,h))},t}(Z.Component);Qu.propTypes={},Qu.defaultProps=w_;const zg=e=>e.scrollTop;function tl(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function S_(e){return st("MuiPaper",e)}ot("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 C_=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return dt(a,S_,i)},__=Ce("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}`]]}})(yt(({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)"}}]}))),E_=j.forwardRef(function(t,n){var S;const r=vt({props:t,name:"MuiPaper"}),i=Za(),{className:a,component:l="div",elevation:c=1,square:d=!1,variant:h="elevation",...y}=r,m={...r,component:l,elevation:c,square:d,variant:h},v=C_(m);return C.jsx(__,{as:l,ownerState:m,className:Te(v.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":(S=i.vars.overlays)==null?void 0:S[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Vt("#fff",Ku(c))}, ${Vt("#fff",Ku(c))})`}},...y.style}})});function dr(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:l,internalForwardedProps:c,...d}=t,{component:h,slots:y={[e]:void 0},slotProps:m={[e]:void 0},...v}=a,S=y[e]||r,x=jh(m[e],i),{props:{component:R,...O},internalRef:_}=Lh({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:x}),I=Jt(_,x==null?void 0:x.ref,t.ref),E=l?l(O):{},P={...i,...E},M=e==="root"?R||h:R,D=$h(S,{...e==="root"&&!h&&!y[e]&&c,...e!=="root"&&!y[e]&&c,...O,...M&&{as:M},ref:I},P);return Object.keys(E).forEach($=>{delete D[$]}),[S,D]}class nl{constructor(){ea(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 nl}static use(){const t=Th(nl.create).current,[n,r]=j.useState(!1);return t.shouldMount=n,t.setShouldMount=r,j.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=T_(),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 R_(){return nl.use()}function T_(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function P_(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:c,onExited:d,timeout:h}=e,[y,m]=j.useState(!1),v=Te(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},x=Te(n.child,y&&n.childLeaving,r&&n.childPulsate);return!c&&!y&&m(!0),j.useEffect(()=>{if(!c&&d!=null){const R=setTimeout(d,h);return()=>{clearTimeout(R)}}},[d,c,h]),C.jsx("span",{className:v,style:S,children:C.jsx("span",{className:x})})}const Yn=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ed=550,k_=80,I_=ss`
|
|
49
|
+
export default theme;`}function o_(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function J(e,t,n){!e[t]&&n&&(e[t]=n)}function us(e){return!e||!e.startsWith("hsl")?e:_g(e)}function zr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=as(us(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().
|
|
50
|
+
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 i_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Er=e=>{try{return e()}catch{}},s_=(e="mui")=>RC(e);function Xu(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=ZC({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=Ku({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...Ag(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||$g(i)},l}function a_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=QC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=r||(n.light&&y!=="light"?"light":y),v=s_(a),{[m]:w,light:b,dark:E,...k}=n,_={...k};let O=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(jr(21,m));const C=Xu(_,O,h,m);b&&!_.light&&Xu(_,b,void 0,"light"),E&&!_.dark&&Xu(_,E,void 0,"dark");let P={defaultColorScheme:m,...C,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:v,colorSchemes:_,font:{...jC(C.typography),...C.font},spacing:i_(h.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const R=P.colorSchemes[V].palette,G=te=>{const H=te.split("-"),Y=H[1],ee=H[2];return v(te,R[Y][ee])};if(R.mode==="light"&&(J(R.common,"background","#fff"),J(R.common,"onBackground","#000")),R.mode==="dark"&&(J(R.common,"background","#000"),J(R.common,"onBackground","#fff")),o_(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){J(R.Alert,"errorColor",wt(R.error.light,.6)),J(R.Alert,"infoColor",wt(R.info.light,.6)),J(R.Alert,"successColor",wt(R.success.light,.6)),J(R.Alert,"warningColor",wt(R.warning.light,.6)),J(R.Alert,"errorFilledBg",G("palette-error-main")),J(R.Alert,"infoFilledBg",G("palette-info-main")),J(R.Alert,"successFilledBg",G("palette-success-main")),J(R.Alert,"warningFilledBg",G("palette-warning-main")),J(R.Alert,"errorFilledColor",Er(()=>R.getContrastText(R.error.main))),J(R.Alert,"infoFilledColor",Er(()=>R.getContrastText(R.info.main))),J(R.Alert,"successFilledColor",Er(()=>R.getContrastText(R.success.main))),J(R.Alert,"warningFilledColor",Er(()=>R.getContrastText(R.warning.main))),J(R.Alert,"errorStandardBg",St(R.error.light,.9)),J(R.Alert,"infoStandardBg",St(R.info.light,.9)),J(R.Alert,"successStandardBg",St(R.success.light,.9)),J(R.Alert,"warningStandardBg",St(R.warning.light,.9)),J(R.Alert,"errorIconColor",G("palette-error-main")),J(R.Alert,"infoIconColor",G("palette-info-main")),J(R.Alert,"successIconColor",G("palette-success-main")),J(R.Alert,"warningIconColor",G("palette-warning-main")),J(R.AppBar,"defaultBg",G("palette-grey-100")),J(R.Avatar,"defaultBg",G("palette-grey-400")),J(R.Button,"inheritContainedBg",G("palette-grey-300")),J(R.Button,"inheritContainedHoverBg",G("palette-grey-A100")),J(R.Chip,"defaultBorder",G("palette-grey-400")),J(R.Chip,"defaultAvatarColor",G("palette-grey-700")),J(R.Chip,"defaultIconColor",G("palette-grey-700")),J(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),J(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),J(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),J(R.LinearProgress,"primaryBg",St(R.primary.main,.62)),J(R.LinearProgress,"secondaryBg",St(R.secondary.main,.62)),J(R.LinearProgress,"errorBg",St(R.error.main,.62)),J(R.LinearProgress,"infoBg",St(R.info.main,.62)),J(R.LinearProgress,"successBg",St(R.success.main,.62)),J(R.LinearProgress,"warningBg",St(R.warning.main,.62)),J(R.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),J(R.Slider,"primaryTrack",St(R.primary.main,.62)),J(R.Slider,"secondaryTrack",St(R.secondary.main,.62)),J(R.Slider,"errorTrack",St(R.error.main,.62)),J(R.Slider,"infoTrack",St(R.info.main,.62)),J(R.Slider,"successTrack",St(R.success.main,.62)),J(R.Slider,"warningTrack",St(R.warning.main,.62));const te=Za(R.background.default,.8);J(R.SnackbarContent,"bg",te),J(R.SnackbarContent,"color",Er(()=>R.getContrastText(te))),J(R.SpeedDialAction,"fabHoverBg",Za(R.background.paper,.15)),J(R.StepConnector,"border",G("palette-grey-400")),J(R.StepContent,"border",G("palette-grey-400")),J(R.Switch,"defaultColor",G("palette-common-white")),J(R.Switch,"defaultDisabledColor",G("palette-grey-100")),J(R.Switch,"primaryDisabledColor",St(R.primary.main,.62)),J(R.Switch,"secondaryDisabledColor",St(R.secondary.main,.62)),J(R.Switch,"errorDisabledColor",St(R.error.main,.62)),J(R.Switch,"infoDisabledColor",St(R.info.main,.62)),J(R.Switch,"successDisabledColor",St(R.success.main,.62)),J(R.Switch,"warningDisabledColor",St(R.warning.main,.62)),J(R.TableCell,"border",St(Ja(R.divider,1),.88)),J(R.Tooltip,"bg",Ja(R.grey[700],.92))}if(R.mode==="dark"){J(R.Alert,"errorColor",St(R.error.light,.6)),J(R.Alert,"infoColor",St(R.info.light,.6)),J(R.Alert,"successColor",St(R.success.light,.6)),J(R.Alert,"warningColor",St(R.warning.light,.6)),J(R.Alert,"errorFilledBg",G("palette-error-dark")),J(R.Alert,"infoFilledBg",G("palette-info-dark")),J(R.Alert,"successFilledBg",G("palette-success-dark")),J(R.Alert,"warningFilledBg",G("palette-warning-dark")),J(R.Alert,"errorFilledColor",Er(()=>R.getContrastText(R.error.dark))),J(R.Alert,"infoFilledColor",Er(()=>R.getContrastText(R.info.dark))),J(R.Alert,"successFilledColor",Er(()=>R.getContrastText(R.success.dark))),J(R.Alert,"warningFilledColor",Er(()=>R.getContrastText(R.warning.dark))),J(R.Alert,"errorStandardBg",wt(R.error.light,.9)),J(R.Alert,"infoStandardBg",wt(R.info.light,.9)),J(R.Alert,"successStandardBg",wt(R.success.light,.9)),J(R.Alert,"warningStandardBg",wt(R.warning.light,.9)),J(R.Alert,"errorIconColor",G("palette-error-main")),J(R.Alert,"infoIconColor",G("palette-info-main")),J(R.Alert,"successIconColor",G("palette-success-main")),J(R.Alert,"warningIconColor",G("palette-warning-main")),J(R.AppBar,"defaultBg",G("palette-grey-900")),J(R.AppBar,"darkBg",G("palette-background-paper")),J(R.AppBar,"darkColor",G("palette-text-primary")),J(R.Avatar,"defaultBg",G("palette-grey-600")),J(R.Button,"inheritContainedBg",G("palette-grey-800")),J(R.Button,"inheritContainedHoverBg",G("palette-grey-700")),J(R.Chip,"defaultBorder",G("palette-grey-700")),J(R.Chip,"defaultAvatarColor",G("palette-grey-300")),J(R.Chip,"defaultIconColor",G("palette-grey-300")),J(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),J(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),J(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),J(R.LinearProgress,"primaryBg",wt(R.primary.main,.5)),J(R.LinearProgress,"secondaryBg",wt(R.secondary.main,.5)),J(R.LinearProgress,"errorBg",wt(R.error.main,.5)),J(R.LinearProgress,"infoBg",wt(R.info.main,.5)),J(R.LinearProgress,"successBg",wt(R.success.main,.5)),J(R.LinearProgress,"warningBg",wt(R.warning.main,.5)),J(R.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),J(R.Slider,"primaryTrack",wt(R.primary.main,.5)),J(R.Slider,"secondaryTrack",wt(R.secondary.main,.5)),J(R.Slider,"errorTrack",wt(R.error.main,.5)),J(R.Slider,"infoTrack",wt(R.info.main,.5)),J(R.Slider,"successTrack",wt(R.success.main,.5)),J(R.Slider,"warningTrack",wt(R.warning.main,.5));const te=Za(R.background.default,.98);J(R.SnackbarContent,"bg",te),J(R.SnackbarContent,"color",Er(()=>R.getContrastText(te))),J(R.SpeedDialAction,"fabHoverBg",Za(R.background.paper,.15)),J(R.StepConnector,"border",G("palette-grey-600")),J(R.StepContent,"border",G("palette-grey-600")),J(R.Switch,"defaultColor",G("palette-grey-300")),J(R.Switch,"defaultDisabledColor",G("palette-grey-600")),J(R.Switch,"primaryDisabledColor",wt(R.primary.main,.55)),J(R.Switch,"secondaryDisabledColor",wt(R.secondary.main,.55)),J(R.Switch,"errorDisabledColor",wt(R.error.main,.55)),J(R.Switch,"infoDisabledColor",wt(R.info.main,.55)),J(R.Switch,"successDisabledColor",wt(R.success.main,.55)),J(R.Switch,"warningDisabledColor",wt(R.warning.main,.55)),J(R.TableCell,"border",wt(Ja(R.divider,1),.68)),J(R.Tooltip,"bg",Ja(R.grey[700],.92))}zr(R.background,"default"),zr(R.background,"paper"),zr(R.common,"background"),zr(R.common,"onBackground"),zr(R,"divider"),Object.keys(R).forEach(te=>{const H=R[te];H&&typeof H=="object"&&(H.main&&J(R[te],"mainChannel",as(us(H.main))),H.light&&J(R[te],"lightChannel",as(us(H.light))),H.dark&&J(R[te],"darkChannel",as(us(H.dark))),H.contrastText&&J(R[te],"contrastTextChannel",as(us(H.contrastText))),te==="text"&&(zr(R[te],"primary"),zr(R[te],"secondary")),te==="action"&&(H.active&&zr(R[te],"active"),H.selected&&zr(R[te],"selected")))})}),P=t.reduce((V,R)=>ln(V,R),P);const M={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:t_(P)},{vars:D,generateThemeVars:$,generateStyleSheets:z}=IC(P,M);return P.vars=D,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,R])=>{P[V]=R}),P.generateThemeVars=$,P.generateStyleSheets=z,P.generateSpacing=function(){return wg(h.spacing,_u(this))},P.getColorSchemeSelector=kC(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...es,...h==null?void 0:h.unstable_sxConfig},P.unstable_sx=function(R){return Co({sx:R,theme:this})},P.toRuntimeSource=r_,P}function Mg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Vu({...n===!0?{}:n.palette,mode:t})})}function Bg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,c=a||"light",d=i==null?void 0:i[c],h={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ku(e,...t);let y=n;"palette"in e||h[c]&&(h[c]!==!0?y=h[c].palette:c==="dark"&&(y={mode:"dark"}));const m=Ku({...e,palette:y},...t);return m.defaultColorScheme=c,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},Mg(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},Mg(m,"light",h.light)),m}return!n&&!("light"in h)&&c==="light"&&(h.light=!0),a_({...l,colorSchemes:h,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Qa=Bg(),ds="$$material";function el(){const e=Ka(Qa);return e[ds]||e}function l_(e){return x.jsx(iC,{...e,defaultTheme:Qa,themeId:ds})}function Dg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mn=e=>Dg(e)&&e!=="classes",Ce=uC({themeId:ds,defaultTheme:Qa,rootShouldForwardProp:Mn});function c_(e){return function(n){return x.jsx(l_,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function u_(){return Uh}const yt=EC;function vt(e){return _C(e)}function d_(e){return at("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const f_=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(n)}`]};return ft(i,d_,r)},p_=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Le(n.color)}`],t[`fontSize${Le(n.fontSize)}`]]}})(yt(({theme:e})=>{var t,n,r,i,a,l,c,d,h,y,m,v,w,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,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 k,_;return{props:{color:E},style:{color:(_=(k=(e.vars??e).palette)==null?void 0:k[E])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(v=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(b=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),tl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:v="0 0 24 24",...w}=r,b=j.isValidElement(i)&&i.type==="svg",E={...r,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:b},k={};y||(k.viewBox=v);const _=f_(E);return x.jsxs(p_,{as:c,className:Pe(_.root,a),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...k,...w,...b&&i.props,ownerState:E,children:[b?i.props.children:i,m?x.jsx("title",{children:m}):null]})});tl&&(tl.muiName="SvgIcon");function Cn(e,t){function n(r,i){return x.jsx(tl,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=tl.muiName,j.memo(j.forwardRef(n))}const Lg=Cn(x.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"),jg=Cn(x.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"),Fg=Cn(x.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"),Ng=Cn(x.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"),h_=Cn(x.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),g_=Cn(x.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"),m_=Cn(x.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");function y_({props:e,name:t}){return mC({props:e,name:t,defaultTheme:Qa,themeId:ds})}function zg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ju(e,t)}function Wg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ju(e,t)}const Ug={disabled:!1},nl=X.createContext(null);var v_=function(t){return t.scrollTop},fs="unmounted",_o="exited",Eo="entering",si="entered",Zu="exiting",Rr=function(e){Wg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=i,c=l&&!l.isMounting?r.enter:r.appear,d;return a.appearStatus=null,r.in?c?(d=_o,a.appearStatus=Eo):d=si:r.unmountOnExit||r.mountOnEnter?d=fs:d=_o,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===fs?{status:_o}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Eo&&l!==si&&(a=Eo):(l===Eo||l===si)&&(a=Zu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,c;return a=l=c=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,c=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:c}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Eo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);l&&v_(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_o&&this.setState({status:fs})},n.performEnter=function(i){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[wo.findDOMNode(this),c],h=d[0],y=d[1],m=this.getTimeouts(),v=c?m.appear:m.enter;if(!i&&!l||Ug.disabled){this.safeSetState({status:si},function(){a.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:Eo},function(){a.props.onEntering(h,y),a.onTransitionEnd(v,function(){a.safeSetState({status:si},function(){a.props.onEntered(h,y)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:wo.findDOMNode(this);if(!a||Ug.disabled){this.safeSetState({status:_o},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Zu},function(){i.props.onExiting(c),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:_o},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,i(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!l||c){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)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===fs)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=zg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(nl.Provider,{value:null},typeof l=="function"?l(i,c):X.cloneElement(X.Children.only(l),c))},t}(X.Component);Rr.contextType=nl,Rr.propTypes={};function ai(){}Rr.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},Rr.UNMOUNTED=fs,Rr.EXITED=_o,Rr.ENTERING=Eo,Rr.ENTERED=si,Rr.EXITING=Zu;function b_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e,t){var n=function(a){return t&&X.isValidElement(a)?t(a):a},r=Object.create(null);return e&&X.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function x_(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var h=r[d][l];c[r[d][l]]=n(h)}c[d]=n(d)}for(l=0;l<i.length;l++)c[i[l]]=n(i[l]);return c}function Ro(e,t,n){return n[t]!=null?n[t]:e.props[t]}function w_(e,t){return Qu(e.children,function(n){return X.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ro(n,"appear",e),enter:Ro(n,"enter",e),exit:Ro(n,"exit",e)})})}function S_(e,t,n){var r=Qu(e.children),i=x_(t,r);return Object.keys(i).forEach(function(a){var l=i[a];if(X.isValidElement(l)){var c=a in t,d=a in r,h=t[a],y=X.isValidElement(h)&&!h.props.in;d&&(!c||y)?i[a]=X.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Ro(l,"exit",e),enter:Ro(l,"enter",e)}):!d&&c&&!y?i[a]=X.cloneElement(l,{in:!1}):d&&c&&X.isValidElement(h)&&(i[a]=X.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:Ro(l,"exit",e),enter:Ro(l,"enter",e)}))}}),i}var C_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},__={component:"div",childFactory:function(t){return t}},ed=function(e){Wg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=a.handleExited.bind(b_(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}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(i,a){var l=a.children,c=a.handleExited,d=a.firstRender;return{children:d?w_(i,c):S_(i,l,c),firstRender:!1}},n.handleExited=function(i,a){var l=Qu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(c){var d=Pa({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,c=zg(i,["component","childFactory"]),d=this.state.contextValue,h=C_(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,a===null?X.createElement(nl.Provider,{value:d},h):X.createElement(nl.Provider,{value:d},X.createElement(a,c,h))},t}(X.Component);ed.propTypes={},ed.defaultProps=__;const Hg=e=>e.scrollTop;function rl(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function E_(e){return at("MuiPaper",e)}ot("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 R_=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ft(a,E_,i)},P_=Ce("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}`]]}})(yt(({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)"}}]}))),T_=j.forwardRef(function(t,n){var w;const r=vt({props:t,name:"MuiPaper"}),i=el(),{className:a,component:l="div",elevation:c=1,square:d=!1,variant:h="elevation",...y}=r,m={...r,component:l,elevation:c,square:d,variant:h},v=R_(m);return x.jsx(P_,{as:l,ownerState:m,className:Pe(v.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":(w=i.vars.overlays)==null?void 0:w[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Vt("#fff",Yu(c))}, ${Vt("#fff",Yu(c))})`}},...y.style}})});function dr(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:l,internalForwardedProps:c,...d}=t,{component:h,slots:y={[e]:void 0},slotProps:m={[e]:void 0},...v}=a,w=y[e]||r,b=Fh(m[e],i),{props:{component:E,...k},internalRef:_}=jh({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:b}),O=Jt(_,b==null?void 0:b.ref,t.ref),C=l?l(k):{},P={...i,...C},M=e==="root"?E||h:E,D=Mh(w,{...e==="root"&&!h&&!y[e]&&c,...e!=="root"&&!y[e]&&c,...k,...M&&{as:M},ref:O},P);return Object.keys(C).forEach($=>{delete D[$]}),[w,D]}class ol{constructor(){na(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 ol}static use(){const t=Th(ol.create).current,[n,r]=j.useState(!1);return t.shouldMount=n,t.setShouldMount=r,j.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=k_(),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 I_(){return ol.use()}function k_(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function O_(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:c,onExited:d,timeout:h}=e,[y,m]=j.useState(!1),v=Pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},b=Pe(n.child,y&&n.childLeaving,r&&n.childPulsate);return!c&&!y&&m(!0),j.useEffect(()=>{if(!c&&d!=null){const E=setTimeout(d,h);return()=>{clearTimeout(E)}}},[d,c,h]),x.jsx("span",{className:v,style:w,children:x.jsx("span",{className:b})})}const Yn=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),td=550,A_=80,$_=ss`
|
|
51
51
|
0% {
|
|
52
52
|
transform: scale(0);
|
|
53
53
|
opacity: 0.1;
|
|
@@ -57,7 +57,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
57
57
|
transform: scale(1);
|
|
58
58
|
opacity: 0.3;
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`,M_=ss`
|
|
61
61
|
0% {
|
|
62
62
|
opacity: 1;
|
|
63
63
|
}
|
|
@@ -65,7 +65,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
65
65
|
100% {
|
|
66
66
|
opacity: 0;
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,B_=ss`
|
|
69
69
|
0% {
|
|
70
70
|
transform: scale(1);
|
|
71
71
|
}
|
|
@@ -77,15 +77,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
77
77
|
100% {
|
|
78
78
|
transform: scale(1);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
`,D_=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L_=Ce(O_,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
81
81
|
opacity: 0;
|
|
82
82
|
position: absolute;
|
|
83
83
|
|
|
84
84
|
&.${Yn.rippleVisible} {
|
|
85
85
|
opacity: 0.3;
|
|
86
86
|
transform: scale(1);
|
|
87
|
-
animation-name: ${
|
|
88
|
-
animation-duration: ${
|
|
87
|
+
animation-name: ${$_};
|
|
88
|
+
animation-duration: ${td}ms;
|
|
89
89
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -104,8 +104,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
104
104
|
|
|
105
105
|
& .${Yn.childLeaving} {
|
|
106
106
|
opacity: 0;
|
|
107
|
-
animation-name: ${
|
|
108
|
-
animation-duration: ${
|
|
107
|
+
animation-name: ${M_};
|
|
108
|
+
animation-duration: ${td}ms;
|
|
109
109
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -114,14 +114,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
114
114
|
/* @noflip */
|
|
115
115
|
left: 0px;
|
|
116
116
|
top: 0;
|
|
117
|
-
animation-name: ${
|
|
117
|
+
animation-name: ${B_};
|
|
118
118
|
animation-duration: 2500ms;
|
|
119
119
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
120
120
|
animation-iteration-count: infinite;
|
|
121
121
|
animation-delay: 200ms;
|
|
122
122
|
}
|
|
123
|
-
`,B_=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...c}=r,[d,h]=j.useState([]),y=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const v=j.useRef(!1),S=Ph(),x=j.useRef(null),R=j.useRef(null),O=j.useCallback(P=>{const{pulsate:M,rippleX:D,rippleY:$,rippleSize:z,cb:V}=P;h(b=>[...b,C.jsx(M_,{classes:{ripple:Te(a.ripple,Yn.ripple),rippleVisible:Te(a.rippleVisible,Yn.rippleVisible),ripplePulsate:Te(a.ripplePulsate,Yn.ripplePulsate),child:Te(a.child,Yn.child),childLeaving:Te(a.childLeaving,Yn.childLeaving),childPulsate:Te(a.childPulsate,Yn.childPulsate)},timeout:ed,pulsate:M,rippleX:D,rippleY:$,rippleSize:z},y.current)]),y.current+=1,m.current=V},[a]),_=j.useCallback((P={},M={},D=()=>{})=>{const{pulsate:$=!1,center:z=i||M.pulsate,fakeElement:V=!1}=M;if((P==null?void 0:P.type)==="mousedown"&&v.current){v.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(v.current=!0);const b=V?null:R.current,H=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Q,ee,X;if(z||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)Q=Math.round(H.width/2),ee=Math.round(H.height/2);else{const{clientX:te,clientY:le}=P.touches&&P.touches.length>0?P.touches[0]:P;Q=Math.round(te-H.left),ee=Math.round(le-H.top)}if(z)X=Math.sqrt((2*H.width**2+H.height**2)/3),X%2===0&&(X+=1);else{const te=Math.max(Math.abs((b?b.clientWidth:0)-Q),Q)*2+2,le=Math.max(Math.abs((b?b.clientHeight:0)-ee),ee)*2+2;X=Math.sqrt(te**2+le**2)}P!=null&&P.touches?x.current===null&&(x.current=()=>{O({pulsate:$,rippleX:Q,rippleY:ee,rippleSize:X,cb:D})},S.start(k_,()=>{x.current&&(x.current(),x.current=null)})):O({pulsate:$,rippleX:Q,rippleY:ee,rippleSize:X,cb:D})},[i,O,S]),I=j.useCallback(()=>{_({},{pulsate:!0})},[_]),E=j.useCallback((P,M)=>{if(S.clear(),(P==null?void 0:P.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{E(P,M)});return}x.current=null,h(D=>D.length>0?D.slice(1):D),m.current=M},[S]);return j.useImperativeHandle(n,()=>({pulsate:I,start:_,stop:E}),[I,_,E]),C.jsx($_,{className:Te(Yn.root,a.root,l),ref:R,...c,children:C.jsx(Qu,{component:null,exit:!0,children:d})})});function D_(e){return st("MuiButtonBase",e)}const L_=ot("MuiButtonBase",["root","disabled","focusVisible"]),j_=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=dt({root:["root",t&&"disabled",n&&"focusVisible"]},D_,i);return n&&r&&(l.root+=` ${r}`),l},F_=Ce("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"},[`&.${L_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),li=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:c,component:d="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:v=!1,focusVisibleClassName:S,LinkComponent:x="a",onBlur:R,onClick:O,onContextMenu:_,onDragLeave:I,onFocus:E,onFocusVisible:P,onKeyDown:M,onKeyUp:D,onMouseDown:$,onMouseLeave:z,onMouseUp:V,onTouchEnd:b,onTouchMove:H,onTouchStart:Q,tabIndex:ee=0,TouchRippleProps:X,touchRippleRef:te,type:le,...fe}=r,pe=j.useRef(null),_e=R_(),We=Jt(_e.ref,te),[be,Be]=j.useState(!1);h&&be&&Be(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{Be(!0),pe.current.focus()}}),[]);const Ne=_e.shouldMount&&!y&&!h;j.useEffect(()=>{be&&v&&!y&&_e.pulsate()},[y,v,be,_e]);function Me(ye,Ot,Ft=m){return Fr(mn=>(Ot&&Ot(mn),Ft||_e[ye](mn),!0))}const Xe=Me("start",$),Ge=Me("stop",_),ht=Me("stop",I),ae=Me("stop",V),ue=Me("stop",ye=>{be&&ye.preventDefault(),z&&z(ye)}),he=Me("start",Q),ge=Me("stop",b),de=Me("stop",H),Pe=Me("stop",ye=>{kh(ye.target)||Be(!1),R&&R(ye)},!1),ve=Fr(ye=>{pe.current||(pe.current=ye.currentTarget),kh(ye.target)&&(Be(!0),P&&P(ye)),E&&E(ye)}),Ie=()=>{const ye=pe.current;return d&&d!=="button"&&!(ye.tagName==="A"&&ye.href)},qe=Fr(ye=>{v&&!ye.repeat&&be&&ye.key===" "&&_e.stop(ye,()=>{_e.start(ye)}),ye.target===ye.currentTarget&&Ie()&&ye.key===" "&&ye.preventDefault(),M&&M(ye),ye.target===ye.currentTarget&&Ie()&&ye.key==="Enter"&&!h&&(ye.preventDefault(),O&&O(ye))}),De=Fr(ye=>{v&&ye.key===" "&&be&&!ye.defaultPrevented&&_e.stop(ye,()=>{_e.pulsate(ye)}),D&&D(ye),O&&ye.target===ye.currentTarget&&Ie()&&ye.key===" "&&!ye.defaultPrevented&&O(ye)});let Re=d;Re==="button"&&(fe.href||fe.to)&&(Re=x);const Fe={};Re==="button"?(Fe.type=le===void 0?"button":le,Fe.disabled=h):(!fe.href&&!fe.to&&(Fe.role="button"),h&&(Fe["aria-disabled"]=h));const tt=Jt(n,pe),$e={...r,centerRipple:a,component:d,disabled:h,disableRipple:y,disableTouchRipple:m,focusRipple:v,tabIndex:ee,focusVisible:be},it=j_($e);return C.jsxs(F_,{as:Re,className:Te(it.root,c),ownerState:$e,onBlur:Pe,onClick:O,onContextMenu:Ge,onFocus:ve,onKeyDown:qe,onKeyUp:De,onMouseDown:Xe,onMouseLeave:ue,onMouseUp:ae,onDragLeave:ht,onTouchEnd:ge,onTouchMove:de,onTouchStart:he,ref:tt,tabIndex:h?-1:ee,type:le,...Fe,...fe,children:[l,Ne?C.jsx(B_,{ref:We,center:a,...X}):null]})});function N_(e){return typeof e.main=="string"}function z_(e,t=[]){if(!N_(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wr(e=[]){return([,t])=>t&&z_(t,e)}function W_(e){return st("MuiIconButton",e)}const U_=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),H_=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${Le(r)}`,i&&`edge${Le(i)}`,`size${Le(a)}`]};return dt(l,W_,t)},G_=Ce(li,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(yt(({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:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette.action.active,e.palette.action.hoverOpacity),"@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}}]})),yt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${U_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Cn=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:c="default",disabled:d=!1,disableFocusRipple:h=!1,disableRipple:y=!1,size:m="medium",...v}=r,S={...r,edge:i,color:c,disabled:d,disableFocusRipple:h,disableRipple:y,size:m},x=H_(S);return C.jsx(G_,{className:Te(x.root,l),centerRipple:!0,focusRipple:!h,disabled:d,disableRipple:y,ref:n,...v,ownerState:S,children:a})});function q_(e){return st("MuiTypography",e)}const Wg=ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),V_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},K_=i_(),Y_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=e,c={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return dt(c,q_,l)},X_=Ce("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${Le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(yt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Wr()).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${Le(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}}]}})),Ug={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rl=j.forwardRef(function(t,n){const{color:r,...i}=vt({props:t,name:"MuiTypography"}),a=!V_[r],l=K_({...i,...a&&{color:r}}),{align:c="inherit",className:d,component:h,gutterBottom:y=!1,noWrap:m=!1,paragraph:v=!1,variant:S="body1",variantMapping:x=Ug,...R}=l,O={...l,align:c,color:r,className:d,component:h,gutterBottom:y,noWrap:m,paragraph:v,variant:S,variantMapping:x},_=h||(v?"p":x[S]||Ug[S])||"span",I=Y_(O);return C.jsx(X_,{as:_,ref:n,className:Te(I.root,d),...R,ownerState:O,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...R.style}})});function J_(e){return typeof e=="function"?e():e}const Z_=j.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[l,c]=j.useState(null),d=Jt(j.isValidElement(r)?Xi(r):null,n);if(wr(()=>{a||c(J_(i)||document.body)},[i,a]),wr(()=>{if(l&&!a)return bu(n,l),()=>{bu(n,null)}},[n,l,a]),a){if(j.isValidElement(r)){const h={ref:d};return j.cloneElement(r,h)}return C.jsx(j.Fragment,{children:r})}return C.jsx(j.Fragment,{children:l&&lx.createPortal(r,l)})});function ol(e){return parseInt(e,10)||0}const Q_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const tE=j.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:l,value:c,...d}=t,{current:h}=j.useRef(c!=null),y=j.useRef(null),m=Jt(n,y),v=j.useRef(null),S=j.useRef(null),x=j.useCallback(()=>{const _=y.current,E=ur(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=S.current;P.style.width=E.width,P.value=_.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
124
|
-
`&&(P.value+=" ");const M=E.boxSizing,D=ol(E.paddingBottom)+ol(E.paddingTop),$=ol(E.borderBottomWidth)+ol(E.borderTopWidth),z=P.scrollHeight;P.value="x";const V=P.scrollHeight;let b=z;a&&(b=Math.max(Number(a)*V,b)),i&&(b=Math.min(Number(i)*V,b)),b=Math.max(b,V);const H=b+(M==="border-box"?D+$:0),Q=Math.abs(b-z)<=1;return{outerHeightStyle:H,overflowing:Q}},[i,a,t.placeholder]),R=j.useCallback(()=>{const _=x();if(eE(_))return;const I=_.outerHeightStyle,E=y.current;v.current!==I&&(v.current=I,E.style.height=`${I}px`),E.style.overflow=_.overflowing?"hidden":""},[x]);wr(()=>{const _=()=>{R()};let I;const E=ma(_),P=y.current,M=ur(P);M.addEventListener("resize",E);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(_),D.observe(P)),()=>{E.clear(),cancelAnimationFrame(I),M.removeEventListener("resize",E),D&&D.disconnect()}},[x,R]),wr(()=>{R()});const O=_=>{h||R(),r&&r(_)};return C.jsxs(j.Fragment,{children:[C.jsx("textarea",{value:c,onChange:O,ref:m,rows:a,style:l,...d}),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Q_.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function td(e){return typeof e=="string"}function ci({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const nd=j.createContext(void 0);function ui(){return j.useContext(nd)}function Hg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function il(e,t=!1){return e&&(Hg(e.value)&&e.value!==""||t&&Hg(e.defaultValue)&&e.defaultValue!=="")}function nE(e){return e.startAdornment}function rE(e){return st("MuiInputBase",e)}const di=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Gg;const sl=(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${Le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},al=(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]},oE=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:l,formControl:c,fullWidth:d,hiddenLabel:h,multiline:y,readOnly:m,size:v,startAdornment:S,type:x}=e,R={root:["root",`color${Le(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",v&&v!=="medium"&&`size${Le(v)}`,y&&"multiline",S&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return dt(R,rE,t)},ll=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sl})(yt(({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",[`&.${di.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%"}}]}))),cl=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:al})(yt(({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})},r={opacity:"0 !important"},i=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] + .${di.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${di.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),qg=o_({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),rd=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:c,color:d,components:h={},componentsProps:y={},defaultValue:m,disabled:v,disableInjectingGlobalStyles:S,endAdornment:x,error:R,fullWidth:O=!1,id:_,inputComponent:I="input",inputProps:E={},inputRef:P,margin:M,maxRows:D,minRows:$,multiline:z=!1,name:V,onBlur:b,onChange:H,onClick:Q,onFocus:ee,onKeyDown:X,onKeyUp:te,placeholder:le,readOnly:fe,renderSuffix:pe,rows:_e,size:We,slotProps:be={},slots:Be={},startAdornment:Ne,type:Me="text",value:Xe,...Ge}=r,ht=E.value!=null?E.value:Xe,{current:ae}=j.useRef(ht!=null),ue=j.useRef(),he=j.useCallback(F=>{},[]),ge=Jt(ue,P,E.ref,he),[de,Pe]=j.useState(!1),ve=ui(),Ie=ci({props:r,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=ve?ve.focused:de,j.useEffect(()=>{!ve&&v&&de&&(Pe(!1),b&&b())},[ve,v,de,b]);const qe=ve&&ve.onFilled,De=ve&&ve.onEmpty,Re=j.useCallback(F=>{il(F)?qe&&qe():De&&De()},[qe,De]);wr(()=>{ae&&Re({value:ht})},[ht,Re,ae]);const Fe=F=>{ee&&ee(F),E.onFocus&&E.onFocus(F),ve&&ve.onFocus?ve.onFocus(F):Pe(!0)},tt=F=>{b&&b(F),E.onBlur&&E.onBlur(F),ve&&ve.onBlur?ve.onBlur(F):Pe(!1)},$e=(F,...G)=>{if(!ae){const Y=F.target||ue.current;if(Y==null)throw new Error(jr(1));Re({value:Y.value})}E.onChange&&E.onChange(F,...G),H&&H(F,...G)};j.useEffect(()=>{Re(ue.current)},[]);const it=F=>{ue.current&&F.currentTarget===F.target&&ue.current.focus(),Q&&Q(F)};let ye=I,Ot=E;z&&ye==="input"&&(_e?Ot={type:void 0,minRows:_e,maxRows:_e,...Ot}:Ot={type:void 0,maxRows:D,minRows:$,...Ot},ye=tE);const Ft=F=>{Re(F.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};j.useEffect(()=>{ve&&ve.setAdornedStart(!!Ne)},[ve,Ne]);const mn={...r,color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:x,error:Ie.error,focused:Ie.focused,formControl:ve,fullWidth:O,hiddenLabel:Ie.hiddenLabel,multiline:z,size:Ie.size,startAdornment:Ne,type:Me},T=oE(mn),p=Be.root||h.Root||ll,g=be.root||y.root||{},B=Be.input||h.Input||cl;return Ot={...Ot,...be.input??y.input},C.jsxs(j.Fragment,{children:[!S&&typeof qg=="function"&&(Gg||(Gg=C.jsx(qg,{}))),C.jsxs(p,{...g,ref:n,onClick:it,...Ge,...!td(p)&&{ownerState:{...mn,...g.ownerState}},className:Te(T.root,g.className,c,fe&&"MuiInputBase-readOnly"),children:[Ne,C.jsx(nd.Provider,{value:null,children:C.jsx(B,{"aria-invalid":Ie.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:Ie.disabled,id:_,onAnimationStart:Ft,name:V,placeholder:le,readOnly:fe,required:Ie.required,rows:_e,value:ht,onKeyDown:X,onKeyUp:te,type:Me,...Ot,...!td(B)&&{as:ye,ownerState:{...mn,...Ot.ownerState}},ref:ge,className:Te(T.input,Ot.className,fe&&"MuiInputBase-readOnly"),onBlur:tt,onChange:$e,onFocus:Fe})}),x,pe?pe({...Ie,startAdornment:Ne}):null]})]})});function iE(e){return st("MuiInput",e)}const ps={...di,...ot("MuiInput",["root","underline","input"])};function sE(e){return st("MuiOutlinedInput",e)}const Tr={...di,...ot("MuiOutlinedInput",["root","notchedOutline","input"])};function aE(e){return st("MuiFilledInput",e)}const To={...di,...ot("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lE=Sn(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cE={entering:{opacity:1},entered:{opacity:1}},uE=j.forwardRef(function(t,n){const r=Za(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:d,in:h,onEnter:y,onEntered:m,onEntering:v,onExit:S,onExited:x,onExiting:R,style:O,timeout:_=i,TransitionComponent:I=Rr,...E}=t,P=j.useRef(null),M=Jt(P,Xi(c),n),D=X=>te=>{if(X){const le=P.current;te===void 0?X(le):X(le,te)}},$=D(v),z=D((X,te)=>{zg(X);const le=tl({style:O,timeout:_,easing:d},{mode:"enter"});X.style.webkitTransition=r.transitions.create("opacity",le),X.style.transition=r.transitions.create("opacity",le),y&&y(X,te)}),V=D(m),b=D(R),H=D(X=>{const te=tl({style:O,timeout:_,easing:d},{mode:"exit"});X.style.webkitTransition=r.transitions.create("opacity",te),X.style.transition=r.transitions.create("opacity",te),S&&S(X)}),Q=D(x),ee=X=>{a&&a(P.current,X)};return C.jsx(I,{appear:l,in:h,nodeRef:P,onEnter:z,onEntered:V,onEntering:$,onExit:H,onExited:Q,onExiting:b,addEndListener:ee,timeout:_,...E,children:(X,te)=>j.cloneElement(c,{style:{opacity:0,visibility:X==="exited"&&!h?"hidden":void 0,...cE[X],...O,...c.props.style},ref:M,...te})})});function dE(e){return st("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const fE=e=>{const{ownerState:t,...n}=e;return n},pE=e=>{const{classes:t,invisible:n}=e;return dt({root:["root",n&&"invisible"]},dE,t)},hE=Ce("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"}}]}),gE=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:c=!1,open:d,components:h={},componentsProps:y={},slotProps:m={},slots:v={},TransitionComponent:S,transitionDuration:x,...R}=r,O={...r,component:l,invisible:c},_=pE(O),I={transition:S,root:h.Root,...v},E={...y,...m},P={slots:I,slotProps:E},[M,D]=dr("root",{elementType:hE,externalForwardedProps:P,className:Te(_.root,a),ownerState:O}),[$,z]=dr("transition",{elementType:uE,externalForwardedProps:P,ownerState:O}),V=fE(z);return C.jsx($,{in:d,timeout:x,...R,...V,children:C.jsx(M,{"aria-hidden":!0,...D,classes:_,ref:n,children:i})})}),mE=ot("MuiBox",["root"]),yE=Mg(),Kt=tC({themeId:ds,defaultTheme:yE,defaultClassName:mE.root,generateClassName:Ah.generate});function vE(e){return st("MuiButton",e)}const fi=ot("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"]),bE=j.createContext({}),xE=j.createContext(void 0),wE=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:l}=e,c={root:["root",a,`${a}${Le(t)}`,`size${Le(i)}`,`${a}Size${Le(i)}`,`color${Le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Le(i)}`],endIcon:["icon","endIcon",`iconSize${Le(i)}`]},d=dt(c,vE,l);return{...l,...d}},Vg=[{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}}}],SE=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(yt(({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"},[`&.${fi.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]},[`&.${fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fi.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)",[`&.${fi.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(Wr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Vt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[r].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})`:Vt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(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"},[`&.${fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),CE=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Vg]}),_E=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Vg]}),pi=j.forwardRef(function(t,n){const r=j.useContext(bE),i=j.useContext(xE),a=Yi(r,t),l=vt({props:a,name:"MuiButton"}),{children:c,color:d="primary",component:h="button",className:y,disabled:m=!1,disableElevation:v=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:R,fullWidth:O=!1,size:_="medium",startIcon:I,type:E,variant:P="text",...M}=l,D={...l,color:d,component:h,disabled:m,disableElevation:v,disableFocusRipple:S,fullWidth:O,size:_,type:E,variant:P},$=wE(D),z=I&&C.jsx(CE,{className:$.startIcon,ownerState:D,children:I}),V=x&&C.jsx(_E,{className:$.endIcon,ownerState:D,children:x}),b=i||"";return C.jsxs(SE,{ownerState:D,className:Te(r.className,$.root,y,b),component:h,disabled:m,focusRipple:!S,focusVisibleClassName:Te($.focusVisible,R),ref:n,type:E,...M,classes:$,children:[z,c,V]})});function EE(e){return st("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oo=44,od=ss`
|
|
123
|
+
`,j_=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...c}=r,[d,h]=j.useState([]),y=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const v=j.useRef(!1),w=Ih(),b=j.useRef(null),E=j.useRef(null),k=j.useCallback(P=>{const{pulsate:M,rippleX:D,rippleY:$,rippleSize:z,cb:V}=P;h(R=>[...R,x.jsx(L_,{classes:{ripple:Pe(a.ripple,Yn.ripple),rippleVisible:Pe(a.rippleVisible,Yn.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,Yn.ripplePulsate),child:Pe(a.child,Yn.child),childLeaving:Pe(a.childLeaving,Yn.childLeaving),childPulsate:Pe(a.childPulsate,Yn.childPulsate)},timeout:td,pulsate:M,rippleX:D,rippleY:$,rippleSize:z},y.current)]),y.current+=1,m.current=V},[a]),_=j.useCallback((P={},M={},D=()=>{})=>{const{pulsate:$=!1,center:z=i||M.pulsate,fakeElement:V=!1}=M;if((P==null?void 0:P.type)==="mousedown"&&v.current){v.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(v.current=!0);const R=V?null:E.current,G=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let te,H,Y;if(z||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)te=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:ee,clientY:ae}=P.touches&&P.touches.length>0?P.touches[0]:P;te=Math.round(ee-G.left),H=Math.round(ae-G.top)}if(z)Y=Math.sqrt((2*G.width**2+G.height**2)/3),Y%2===0&&(Y+=1);else{const ee=Math.max(Math.abs((R?R.clientWidth:0)-te),te)*2+2,ae=Math.max(Math.abs((R?R.clientHeight:0)-H),H)*2+2;Y=Math.sqrt(ee**2+ae**2)}P!=null&&P.touches?b.current===null&&(b.current=()=>{k({pulsate:$,rippleX:te,rippleY:H,rippleSize:Y,cb:D})},w.start(A_,()=>{b.current&&(b.current(),b.current=null)})):k({pulsate:$,rippleX:te,rippleY:H,rippleSize:Y,cb:D})},[i,k,w]),O=j.useCallback(()=>{_({},{pulsate:!0})},[_]),C=j.useCallback((P,M)=>{if(w.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,w.start(0,()=>{C(P,M)});return}b.current=null,h(D=>D.length>0?D.slice(1):D),m.current=M},[w]);return j.useImperativeHandle(n,()=>({pulsate:O,start:_,stop:C}),[O,_,C]),x.jsx(D_,{className:Pe(Yn.root,a.root,l),ref:E,...c,children:x.jsx(ed,{component:null,exit:!0,children:d})})});function F_(e){return at("MuiButtonBase",e)}const N_=ot("MuiButtonBase",["root","disabled","focusVisible"]),z_=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=ft({root:["root",t&&"disabled",n&&"focusVisible"]},F_,i);return n&&r&&(l.root+=` ${r}`),l},W_=Ce("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"},[`&.${N_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),li=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:c,component:d="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:v=!1,focusVisibleClassName:w,LinkComponent:b="a",onBlur:E,onClick:k,onContextMenu:_,onDragLeave:O,onFocus:C,onFocusVisible:P,onKeyDown:M,onKeyUp:D,onMouseDown:$,onMouseLeave:z,onMouseUp:V,onTouchEnd:R,onTouchMove:G,onTouchStart:te,tabIndex:H=0,TouchRippleProps:Y,touchRippleRef:ee,type:ae,...fe}=r,pe=j.useRef(null),_e=I_(),We=Jt(_e.ref,ee),[be,Be]=j.useState(!1);h&&be&&Be(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{Be(!0),pe.current.focus()}}),[]);const Ne=_e.shouldMount&&!y&&!h;j.useEffect(()=>{be&&v&&!y&&_e.pulsate()},[y,v,be,_e]);function Me(ye,Ot,Ft=m){return Fr(yn=>(Ot&&Ot(yn),Ft||_e[ye](yn),!0))}const Xe=Me("start",$),Ge=Me("stop",_),ht=Me("stop",O),le=Me("stop",V),ue=Me("stop",ye=>{be&&ye.preventDefault(),z&&z(ye)}),he=Me("start",te),ge=Me("stop",R),de=Me("stop",G),Te=Me("stop",ye=>{kh(ye.target)||Be(!1),E&&E(ye)},!1),ve=Fr(ye=>{pe.current||(pe.current=ye.currentTarget),kh(ye.target)&&(Be(!0),P&&P(ye)),C&&C(ye)}),ke=()=>{const ye=pe.current;return d&&d!=="button"&&!(ye.tagName==="A"&&ye.href)},qe=Fr(ye=>{v&&!ye.repeat&&be&&ye.key===" "&&_e.stop(ye,()=>{_e.start(ye)}),ye.target===ye.currentTarget&&ke()&&ye.key===" "&&ye.preventDefault(),M&&M(ye),ye.target===ye.currentTarget&&ke()&&ye.key==="Enter"&&!h&&(ye.preventDefault(),k&&k(ye))}),De=Fr(ye=>{v&&ye.key===" "&&be&&!ye.defaultPrevented&&_e.stop(ye,()=>{_e.pulsate(ye)}),D&&D(ye),k&&ye.target===ye.currentTarget&&ke()&&ye.key===" "&&!ye.defaultPrevented&&k(ye)});let Re=d;Re==="button"&&(fe.href||fe.to)&&(Re=b);const Fe={};Re==="button"?(Fe.type=ae===void 0?"button":ae,Fe.disabled=h):(!fe.href&&!fe.to&&(Fe.role="button"),h&&(Fe["aria-disabled"]=h));const tt=Jt(n,pe),$e={...r,centerRipple:a,component:d,disabled:h,disableRipple:y,disableTouchRipple:m,focusRipple:v,tabIndex:H,focusVisible:be},st=z_($e);return x.jsxs(W_,{as:Re,className:Pe(st.root,c),ownerState:$e,onBlur:Te,onClick:k,onContextMenu:Ge,onFocus:ve,onKeyDown:qe,onKeyUp:De,onMouseDown:Xe,onMouseLeave:ue,onMouseUp:le,onDragLeave:ht,onTouchEnd:ge,onTouchMove:de,onTouchStart:he,ref:tt,tabIndex:h?-1:H,type:ae,...Fe,...fe,children:[l,Ne?x.jsx(j_,{ref:We,center:a,...Y}):null]})});function U_(e){return typeof e.main=="string"}function H_(e,t=[]){if(!U_(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wr(e=[]){return([,t])=>t&&H_(t,e)}function G_(e){return at("MuiIconButton",e)}const q_=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),V_=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${Le(r)}`,i&&`edge${Le(i)}`,`size${Le(a)}`]};return ft(l,G_,t)},K_=Ce(li,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(yt(({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:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette.action.active,e.palette.action.hoverOpacity),"@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}}]})),yt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${q_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),un=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:c="default",disabled:d=!1,disableFocusRipple:h=!1,disableRipple:y=!1,size:m="medium",...v}=r,w={...r,edge:i,color:c,disabled:d,disableFocusRipple:h,disableRipple:y,size:m},b=V_(w);return x.jsx(K_,{className:Pe(b.root,l),centerRipple:!0,focusRipple:!h,disabled:d,disableRipple:y,ref:n,...v,ownerState:w,children:a})});function Y_(e){return at("MuiTypography",e)}const Gg=ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),X_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},J_=u_(),Z_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=e,c={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ft(c,Y_,l)},Q_=Ce("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${Le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(yt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Wr()).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${Le(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"},il=j.forwardRef(function(t,n){const{color:r,...i}=vt({props:t,name:"MuiTypography"}),a=!X_[r],l=J_({...i,...a&&{color:r}}),{align:c="inherit",className:d,component:h,gutterBottom:y=!1,noWrap:m=!1,paragraph:v=!1,variant:w="body1",variantMapping:b=qg,...E}=l,k={...l,align:c,color:r,className:d,component:h,gutterBottom:y,noWrap:m,paragraph:v,variant:w,variantMapping:b},_=h||(v?"p":b[w]||qg[w])||"span",O=Z_(k);return x.jsx(Q_,{as:_,ref:n,className:Pe(O.root,d),...E,ownerState:k,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...E.style}})});function eE(e){return typeof e=="function"?e():e}const tE=j.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[l,c]=j.useState(null),d=Jt(j.isValidElement(r)?Xi(r):null,n);if(wr(()=>{a||c(eE(i)||document.body)},[i,a]),wr(()=>{if(l&&!a)return xu(n,l),()=>{xu(n,null)}},[n,l,a]),a){if(j.isValidElement(r)){const h={ref:d};return j.cloneElement(r,h)}return x.jsx(j.Fragment,{children:r})}return x.jsx(j.Fragment,{children:l&&px.createPortal(r,l)})});function sl(e){return parseInt(e,10)||0}const nE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const oE=j.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:l,value:c,...d}=t,{current:h}=j.useRef(c!=null),y=j.useRef(null),m=Jt(n,y),v=j.useRef(null),w=j.useRef(null),b=j.useCallback(()=>{const _=y.current,C=ur(_).getComputedStyle(_);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=w.current;P.style.width=C.width,P.value=_.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
124
|
+
`&&(P.value+=" ");const M=C.boxSizing,D=sl(C.paddingBottom)+sl(C.paddingTop),$=sl(C.borderBottomWidth)+sl(C.borderTopWidth),z=P.scrollHeight;P.value="x";const V=P.scrollHeight;let R=z;a&&(R=Math.max(Number(a)*V,R)),i&&(R=Math.min(Number(i)*V,R)),R=Math.max(R,V);const G=R+(M==="border-box"?D+$:0),te=Math.abs(R-z)<=1;return{outerHeightStyle:G,overflowing:te}},[i,a,t.placeholder]),E=j.useCallback(()=>{const _=b();if(rE(_))return;const O=_.outerHeightStyle,C=y.current;v.current!==O&&(v.current=O,C.style.height=`${O}px`),C.style.overflow=_.overflowing?"hidden":""},[b]);wr(()=>{const _=()=>{E()};let O;const C=va(_),P=y.current,M=ur(P);M.addEventListener("resize",C);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(_),D.observe(P)),()=>{C.clear(),cancelAnimationFrame(O),M.removeEventListener("resize",C),D&&D.disconnect()}},[b,E]),wr(()=>{E()});const k=_=>{h||E(),r&&r(_)};return x.jsxs(j.Fragment,{children:[x.jsx("textarea",{value:c,onChange:k,ref:m,rows:a,style:l,...d}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...nE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function nd(e){return typeof e=="string"}function ci({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const rd=j.createContext(void 0);function ui(){return j.useContext(rd)}function Vg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function al(e,t=!1){return e&&(Vg(e.value)&&e.value!==""||t&&Vg(e.defaultValue)&&e.defaultValue!=="")}function iE(e){return e.startAdornment}function sE(e){return at("MuiInputBase",e)}const di=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Kg;const ll=(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${Le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},cl=(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]},aE=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:l,formControl:c,fullWidth:d,hiddenLabel:h,multiline:y,readOnly:m,size:v,startAdornment:w,type:b}=e,E={root:["root",`color${Le(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",v&&v!=="medium"&&`size${Le(v)}`,y&&"multiline",w&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",w&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return ft(E,sE,t)},ul=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ll})(yt(({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",[`&.${di.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%"}}]}))),dl=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cl})(yt(({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})},r={opacity:"0 !important"},i=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] + .${di.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${di.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Yg=c_({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),od=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:c,color:d,components:h={},componentsProps:y={},defaultValue:m,disabled:v,disableInjectingGlobalStyles:w,endAdornment:b,error:E,fullWidth:k=!1,id:_,inputComponent:O="input",inputProps:C={},inputRef:P,margin:M,maxRows:D,minRows:$,multiline:z=!1,name:V,onBlur:R,onChange:G,onClick:te,onFocus:H,onKeyDown:Y,onKeyUp:ee,placeholder:ae,readOnly:fe,renderSuffix:pe,rows:_e,size:We,slotProps:be={},slots:Be={},startAdornment:Ne,type:Me="text",value:Xe,...Ge}=r,ht=C.value!=null?C.value:Xe,{current:le}=j.useRef(ht!=null),ue=j.useRef(),he=j.useCallback(F=>{},[]),ge=Jt(ue,P,C.ref,he),[de,Te]=j.useState(!1),ve=ui(),ke=ci({props:r,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=ve?ve.focused:de,j.useEffect(()=>{!ve&&v&&de&&(Te(!1),R&&R())},[ve,v,de,R]);const qe=ve&&ve.onFilled,De=ve&&ve.onEmpty,Re=j.useCallback(F=>{al(F)?qe&&qe():De&&De()},[qe,De]);wr(()=>{le&&Re({value:ht})},[ht,Re,le]);const Fe=F=>{H&&H(F),C.onFocus&&C.onFocus(F),ve&&ve.onFocus?ve.onFocus(F):Te(!0)},tt=F=>{R&&R(F),C.onBlur&&C.onBlur(F),ve&&ve.onBlur?ve.onBlur(F):Te(!1)},$e=(F,...q)=>{if(!le){const Z=F.target||ue.current;if(Z==null)throw new Error(jr(1));Re({value:Z.value})}C.onChange&&C.onChange(F,...q),G&&G(F,...q)};j.useEffect(()=>{Re(ue.current)},[]);const st=F=>{ue.current&&F.currentTarget===F.target&&ue.current.focus(),te&&te(F)};let ye=O,Ot=C;z&&ye==="input"&&(_e?Ot={type:void 0,minRows:_e,maxRows:_e,...Ot}:Ot={type:void 0,maxRows:D,minRows:$,...Ot},ye=oE);const Ft=F=>{Re(F.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};j.useEffect(()=>{ve&&ve.setAdornedStart(!!Ne)},[ve,Ne]);const yn={...r,color:ke.color||"primary",disabled:ke.disabled,endAdornment:b,error:ke.error,focused:ke.focused,formControl:ve,fullWidth:k,hiddenLabel:ke.hiddenLabel,multiline:z,size:ke.size,startAdornment:Ne,type:Me},T=aE(yn),p=Be.root||h.Root||ul,g=be.root||y.root||{},B=Be.input||h.Input||dl;return Ot={...Ot,...be.input??y.input},x.jsxs(j.Fragment,{children:[!w&&typeof Yg=="function"&&(Kg||(Kg=x.jsx(Yg,{}))),x.jsxs(p,{...g,ref:n,onClick:st,...Ge,...!nd(p)&&{ownerState:{...yn,...g.ownerState}},className:Pe(T.root,g.className,c,fe&&"MuiInputBase-readOnly"),children:[Ne,x.jsx(rd.Provider,{value:null,children:x.jsx(B,{"aria-invalid":ke.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:ke.disabled,id:_,onAnimationStart:Ft,name:V,placeholder:ae,readOnly:fe,required:ke.required,rows:_e,value:ht,onKeyDown:Y,onKeyUp:ee,type:Me,...Ot,...!nd(B)&&{as:ye,ownerState:{...yn,...Ot.ownerState}},ref:ge,className:Pe(T.input,Ot.className,fe&&"MuiInputBase-readOnly"),onBlur:tt,onChange:$e,onFocus:Fe})}),b,pe?pe({...ke,startAdornment:Ne}):null]})]})});function lE(e){return at("MuiInput",e)}const ps={...di,...ot("MuiInput",["root","underline","input"])};function cE(e){return at("MuiOutlinedInput",e)}const Pr={...di,...ot("MuiOutlinedInput",["root","notchedOutline","input"])};function uE(e){return at("MuiFilledInput",e)}const Po={...di,...ot("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},dE=Cn(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fE={entering:{opacity:1},entered:{opacity:1}},pE=j.forwardRef(function(t,n){const r=el(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:d,in:h,onEnter:y,onEntered:m,onEntering:v,onExit:w,onExited:b,onExiting:E,style:k,timeout:_=i,TransitionComponent:O=Rr,...C}=t,P=j.useRef(null),M=Jt(P,Xi(c),n),D=Y=>ee=>{if(Y){const ae=P.current;ee===void 0?Y(ae):Y(ae,ee)}},$=D(v),z=D((Y,ee)=>{Hg(Y);const ae=rl({style:k,timeout:_,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("opacity",ae),Y.style.transition=r.transitions.create("opacity",ae),y&&y(Y,ee)}),V=D(m),R=D(E),G=D(Y=>{const ee=rl({style:k,timeout:_,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("opacity",ee),Y.style.transition=r.transitions.create("opacity",ee),w&&w(Y)}),te=D(b),H=Y=>{a&&a(P.current,Y)};return x.jsx(O,{appear:l,in:h,nodeRef:P,onEnter:z,onEntered:V,onEntering:$,onExit:G,onExited:te,onExiting:R,addEndListener:H,timeout:_,...C,children:(Y,ee)=>j.cloneElement(c,{style:{opacity:0,visibility:Y==="exited"&&!h?"hidden":void 0,...fE[Y],...k,...c.props.style},ref:M,...ee})})});function hE(e){return at("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const gE=e=>{const{ownerState:t,...n}=e;return n},mE=e=>{const{classes:t,invisible:n}=e;return ft({root:["root",n&&"invisible"]},hE,t)},yE=Ce("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"}}]}),vE=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:c=!1,open:d,components:h={},componentsProps:y={},slotProps:m={},slots:v={},TransitionComponent:w,transitionDuration:b,...E}=r,k={...r,component:l,invisible:c},_=mE(k),O={transition:w,root:h.Root,...v},C={...y,...m},P={slots:O,slotProps:C},[M,D]=dr("root",{elementType:yE,externalForwardedProps:P,className:Pe(_.root,a),ownerState:k}),[$,z]=dr("transition",{elementType:pE,externalForwardedProps:P,ownerState:k}),V=gE(z);return x.jsx($,{in:d,timeout:b,...E,...V,children:x.jsx(M,{"aria-hidden":!0,...D,classes:_,ref:n,children:i})})}),bE=ot("MuiBox",["root"]),xE=Bg(),Kt=sC({themeId:ds,defaultTheme:xE,defaultClassName:bE.root,generateClassName:$h.generate});function wE(e){return at("MuiButton",e)}const fi=ot("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"]),SE=j.createContext({}),CE=j.createContext(void 0),_E=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:l}=e,c={root:["root",a,`${a}${Le(t)}`,`size${Le(i)}`,`${a}Size${Le(i)}`,`color${Le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Le(i)}`],endIcon:["icon","endIcon",`iconSize${Le(i)}`]},d=ft(c,wE,l);return{...l,...d}},Xg=[{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}}}],EE=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(yt(({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"},[`&.${fi.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]},[`&.${fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fi.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)",[`&.${fi.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(Wr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Vt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[r].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})`:Vt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(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"},[`&.${fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),RE=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Xg]}),PE=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Xg]}),pi=j.forwardRef(function(t,n){const r=j.useContext(SE),i=j.useContext(CE),a=Yi(r,t),l=vt({props:a,name:"MuiButton"}),{children:c,color:d="primary",component:h="button",className:y,disabled:m=!1,disableElevation:v=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:E,fullWidth:k=!1,size:_="medium",startIcon:O,type:C,variant:P="text",...M}=l,D={...l,color:d,component:h,disabled:m,disableElevation:v,disableFocusRipple:w,fullWidth:k,size:_,type:C,variant:P},$=_E(D),z=O&&x.jsx(RE,{className:$.startIcon,ownerState:D,children:O}),V=b&&x.jsx(PE,{className:$.endIcon,ownerState:D,children:b}),R=i||"";return x.jsxs(EE,{ownerState:D,className:Pe(r.className,$.root,y,R),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Pe($.focusVisible,E),ref:n,type:C,...M,classes:$,children:[z,c,V]})});function TE(e){return at("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oo=44,id=ss`
|
|
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
|
+
`,sd=ss`
|
|
133
133
|
0% {
|
|
134
134
|
stroke-dasharray: 1px, 200px;
|
|
135
135
|
stroke-dashoffset: 0;
|
|
@@ -144,40 +144,40 @@ 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,PE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,i&&"circleDisableShrink"]};return dt(a,EE,t)},kE=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(yt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RE||{animation:`${od} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),IE=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OE=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(yt(({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:TE||{animation:`${id} 1.4s ease-in-out infinite`}}]}))),AE=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:h=3.6,value:y=0,variant:m="indeterminate",...v}=r,S={...r,color:a,disableShrink:l,size:c,thickness:h,value:y,variant:m},x=PE(S),R={},O={},_={};if(m==="determinate"){const I=2*Math.PI*((oo-h)/2);R.strokeDasharray=I.toFixed(3),_["aria-valuenow"]=Math.round(y),R.strokeDashoffset=`${((100-y)/100*I).toFixed(3)}px`,O.transform="rotate(-90deg)"}return C.jsx(kE,{className:Te(x.root,i),style:{width:c,height:c,...O,...d},ownerState:S,ref:n,role:"progressbar",..._,...v,children:C.jsx(IE,{className:x.svg,ownerState:S,viewBox:`${oo/2} ${oo/2} ${oo} ${oo}`,children:C.jsx(OE,{className:x.circle,style:R,ownerState:S,cx:oo,cy:oo,r:(oo-h)/2,fill:"none",strokeWidth:h})})})});function $E(e){const t=qn(e);return t.body===e?ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Kg(e){return parseInt(ur(e).getComputedStyle(e).paddingRight,10)||0}function ME(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Yg(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,l=>{const c=!a.includes(l),d=!ME(l);c&&d&&hs(l,i)})}function sd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function BE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if($E(r)){const l=Ih(ur(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Kg(r)+l}px`;const c=qn(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Kg(d)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=qn(r).body;else{const l=r.parentElement,c=ur(r);a=(l==null?void 0:l.nodeName)==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function DE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class LE{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&hs(t.modalRef,!1);const i=DE(n);Yg(n,t.mount,t.modalRef,i,!0);const a=sd(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=sd(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=BE(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=sd(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&hs(t.modalRef,n),Yg(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&hs(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const jE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FE(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 NE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function zE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||NE(e))}function WE(e){const t=[],n=[];return Array.from(e.querySelectorAll(jE)).forEach((r,i)=>{const a=FE(r);a===-1||!zE(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function UE(){return!0}function HE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=WE,isEnabled:l=UE,open:c}=e,d=j.useRef(!1),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),v=j.useRef(null),S=j.useRef(!1),x=j.useRef(null),R=Jt(Xi(t),x),O=j.useRef(null);j.useEffect(()=>{!c||!x.current||(S.current=!n)},[n,c]),j.useEffect(()=>{if(!c||!x.current)return;const E=qn(x.current);return x.current.contains(E.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{i||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[c]),j.useEffect(()=>{if(!c||!x.current)return;const E=qn(x.current),P=$=>{O.current=$,!(r||!l()||$.key!=="Tab")&&E.activeElement===x.current&&$.shiftKey&&(d.current=!0,y.current&&y.current.focus())},M=()=>{var V,b;const $=x.current;if($===null)return;if(!E.hasFocus()||!l()||d.current){d.current=!1;return}if($.contains(E.activeElement)||r&&E.activeElement!==h.current&&E.activeElement!==y.current)return;if(E.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!S.current)return;let z=[];if((E.activeElement===h.current||E.activeElement===y.current)&&(z=a(x.current)),z.length>0){const H=!!((V=O.current)!=null&&V.shiftKey&&((b=O.current)==null?void 0:b.key)==="Tab"),Q=z[0],ee=z[z.length-1];typeof Q!="string"&&typeof ee!="string"&&(H?ee.focus():Q.focus())}else $.focus()};E.addEventListener("focusin",M),E.addEventListener("keydown",P,!0);const D=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(D),E.removeEventListener("focusin",M),E.removeEventListener("keydown",P,!0)}},[n,r,i,l,c,a]);const _=E=>{m.current===null&&(m.current=E.relatedTarget),S.current=!0,v.current=E.target;const P=t.props.onFocus;P&&P(E)},I=E=>{m.current===null&&(m.current=E.relatedTarget),S.current=!0};return C.jsxs(j.Fragment,{children:[C.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:h,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:R,onFocus:_}),C.jsx("div",{tabIndex:c?0:-1,onFocus:I,ref:y,"data-testid":"sentinelEnd"})]})}function GE(e){return typeof e=="function"?e():e}function qE(e){return e?e.props.hasOwnProperty("in"):!1}const ul=new LE;function VE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:y}=e,m=j.useRef({}),v=j.useRef(null),S=j.useRef(null),x=Jt(S,y),[R,O]=j.useState(!h),_=qE(c);let I=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(I=!1);const E=()=>qn(v.current),P=()=>(m.current.modalRef=S.current,m.current.mount=v.current,m.current),M=()=>{ul.mount(P(),{disableScrollLock:r}),S.current&&(S.current.scrollTop=0)},D=Fr(()=>{const te=GE(t)||E().body;ul.add(P(),te),S.current&&M()}),$=()=>ul.isTopModal(P()),z=Fr(te=>{v.current=te,te&&(h&&$()?M():S.current&&hs(S.current,I))}),V=j.useCallback(()=>{ul.remove(P(),I)},[I]);j.useEffect(()=>()=>{V()},[V]),j.useEffect(()=>{h?D():(!_||!i)&&V()},[h,V,_,i,D]);const b=te=>le=>{var fe;(fe=te.onKeyDown)==null||fe.call(te,le),!(le.key!=="Escape"||le.which===229||!$())&&(n||(le.stopPropagation(),d&&d(le,"escapeKeyDown")))},H=te=>le=>{var fe;(fe=te.onClick)==null||fe.call(te,le),le.target===le.currentTarget&&d&&d(le,"backdropClick")};return{getRootProps:(te={})=>{const le=Bh(e);delete le.onTransitionEnter,delete le.onTransitionExited;const fe={...le,...te};return{role:"presentation",...fe,onKeyDown:b(fe),ref:x}},getBackdropProps:(te={})=>{const le=te;return{"aria-hidden":!0,...le,onClick:H(le),open:h}},getTransitionProps:()=>{const te=()=>{O(!1),a&&a()},le=()=>{O(!0),l&&l(),i&&V()};return{onEnter:wh(te,c==null?void 0:c.props.onEnter),onExited:wh(le,c==null?void 0:c.props.onExited)}},rootRef:x,portalRef:z,isTopModal:$,exited:R,hasTransition:_}}function KE(e){return st("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const YE=e=>{const{open:t,exited:n,classes:r}=e;return dt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},KE,r)},XE=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(yt(({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"}}]}))),JE=Ce(gE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ZE=j.forwardRef(function(t,n){const r=vt({name:"MuiModal",props:t}),{BackdropComponent:i=JE,BackdropProps:a,classes:l,className:c,closeAfterTransition:d=!1,children:h,container:y,component:m,components:v={},componentsProps:S={},disableAutoFocus:x=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:O=!1,disablePortal:_=!1,disableRestoreFocus:I=!1,disableScrollLock:E=!1,hideBackdrop:P=!1,keepMounted:M=!1,onBackdropClick:D,onClose:$,onTransitionEnter:z,onTransitionExited:V,open:b,slotProps:H={},slots:Q={},theme:ee,...X}=r,te={...r,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:R,disableEscapeKeyDown:O,disablePortal:_,disableRestoreFocus:I,disableScrollLock:E,hideBackdrop:P,keepMounted:M},{getRootProps:le,getBackdropProps:fe,getTransitionProps:pe,portalRef:_e,isTopModal:We,exited:be,hasTransition:Be}=VE({...te,rootRef:n}),Ne={...te,exited:be},Me=YE(Ne),Xe={};if(h.props.tabIndex===void 0&&(Xe.tabIndex="-1"),Be){const{onEnter:de,onExited:Pe}=pe();Xe.onEnter=de,Xe.onExited=Pe}const Ge={...X,slots:{root:v.Root,backdrop:v.Backdrop,...Q},slotProps:{...S,...H}},[ht,ae]=dr("root",{elementType:XE,externalForwardedProps:Ge,getSlotProps:le,additionalProps:{ref:n,as:m},ownerState:Ne,className:Te(c,Me==null?void 0:Me.root,!Ne.open&&Ne.exited&&(Me==null?void 0:Me.hidden))}),[ue,he]=dr("backdrop",{elementType:i,externalForwardedProps:Ge,additionalProps:a,getSlotProps:de=>fe({...de,onClick:Pe=>{D&&D(Pe),de!=null&&de.onClick&&de.onClick(Pe)}}),className:Te(a==null?void 0:a.className,Me==null?void 0:Me.backdrop),ownerState:Ne}),ge=Jt(a==null?void 0:a.ref,he.ref);return!M&&!b&&(!Be||be)?null:C.jsx(Z_,{ref:_e,container:y,disablePortal:_,children:C.jsxs(ht,{...ae,children:[!P&&i?C.jsx(ue,{...he,ref:ge}):null,C.jsx(HE,{disableEnforceFocus:R,disableAutoFocus:x,disableRestoreFocus:I,isEnabled:We,open:b,children:j.cloneElement(h,Xe)})]})})});function QE(e){return st("MuiDivider",e)}const Xg=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),eR=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:l,textAlign:c,variant:d}=e;return dt({root:["root",t&&"absolute",d,a&&"light",l==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},QE,r)},tR=Ce("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]}})(yt(({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)`:Vt(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",whiteSpace:"nowrap",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%"}}}]}))),nR=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(yt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),dl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:l,orientation:c="horizontal",component:d=a||c==="vertical"?"div":"hr",flexItem:h=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:v="center",variant:S="fullWidth",...x}=r,R={...r,absolute:i,component:d,flexItem:h,light:y,orientation:c,role:m,textAlign:v,variant:S},O=eR(R);return C.jsx(tR,{as:d,className:Te(O.root,l),role:m,ref:n,ownerState:R,"aria-orientation":m==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...x,children:a?C.jsx(nR,{className:O.wrapper,ownerState:R,children:a}):null})});dl&&(dl.muiSkipListHighlight=!0);const rR=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:l,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Le(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},h=dt(d,aE,t);return{...t,...h}},oR=Ce(ll,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sl(e,t),!n.disableUnderline&&t.underline]}})(yt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${To.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${To.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},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"},[`&.${To.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${To.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(.${To.disabled}, .${To.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${To.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([l])=>{var c;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(c=(e.vars||e).palette[l])==null?void 0:c.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:c})=>l.multiline&&c==="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}}]}})),iR=Ce(cl,{name:"MuiFilledInput",slot:"Input",overridesResolver:al})(yt(({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}}]}))),fl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:h="input",multiline:y=!1,slotProps:m,slots:v={},type:S="text",...x}=r,R={...r,disableUnderline:i,fullWidth:c,inputComponent:h,multiline:y,type:S},O=rR(r),_={root:{ownerState:R},input:{ownerState:R}},I=m??l?ln(_,m??l):_,E=v.root??a.Root??oR,P=v.input??a.Input??iR;return C.jsx(rd,{slots:{root:E,input:P},componentsProps:I,fullWidth:c,inputComponent:h,multiline:y,ref:n,type:S,...x,classes:O})});fl&&(fl.muiName="Input");function sR(e){return st("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const aR=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Le(n)}`,r&&"fullWidth"]};return dt(i,sR,t)},lR=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Le(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%"}}]}),Jg=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:c="div",disabled:d=!1,error:h=!1,focused:y,fullWidth:m=!1,hiddenLabel:v=!1,margin:S="none",required:x=!1,size:R="medium",variant:O="outlined",..._}=r,I={...r,color:l,component:c,disabled:d,error:h,fullWidth:m,hiddenLabel:v,margin:S,required:x,size:R,variant:O},E=aR(I),[P,M]=j.useState(()=>{let ee=!1;return i&&j.Children.forEach(i,X=>{if(!vu(X,["Input","Select"]))return;const te=vu(X,["Select"])?X.props.input:X;te&&nE(te.props)&&(ee=!0)}),ee}),[D,$]=j.useState(()=>{let ee=!1;return i&&j.Children.forEach(i,X=>{vu(X,["Input","Select"])&&(il(X.props,!0)||il(X.props.inputProps,!0))&&(ee=!0)}),ee}),[z,V]=j.useState(!1);d&&z&&V(!1);const b=y!==void 0&&!d?y:z;let H;j.useRef(!1);const Q=j.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:l,disabled:d,error:h,filled:D,focused:b,fullWidth:m,hiddenLabel:v,size:R,onBlur:()=>{V(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{V(!0)},registerEffect:H,required:x,variant:O}),[P,l,d,h,D,b,m,v,H,x,R,O]);return C.jsx(nd.Provider,{value:Q,children:C.jsx(lR,{as:c,ownerState:I,className:Te(E.root,a),ref:n,..._,children:i})})});function cR(e){return st("MuiFormHelperText",e)}const Zg=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Qg;const uR=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:l,focused:c,required:d}=e,h={root:["root",i&&"disabled",a&&"error",r&&`size${Le(r)}`,n&&"contained",c&&"focused",l&&"filled",d&&"required"]};return dt(h,cR,t)},dR=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(yt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Zg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Zg.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}}]}))),fR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:c,error:d,filled:h,focused:y,margin:m,required:v,variant:S,...x}=r,R=ui(),O=ci({props:r,muiFormControl:R,states:["variant","size","disabled","error","filled","focused","required"]}),_={...r,component:l,contained:O.variant==="filled"||O.variant==="outlined",variant:O.variant,size:O.size,disabled:O.disabled,error:O.error,filled:O.filled,focused:O.focused,required:O.required};delete _.ownerState;const I=uR(_);return C.jsx(dR,{as:l,className:Te(I.root,a),ref:n,...x,ownerState:_,children:i===" "?Qg||(Qg=C.jsx("span",{className:"notranslate",children:""})):i})});function pR(e){return st("MuiFormLabel",e)}const gs=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hR=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:l,required:c}=e,d={root:["root",`color${Le(n)}`,i&&"disabled",a&&"error",l&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return dt(d,pR,t)},gR=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(yt(({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(Wr()).map(([t])=>({props:{color:t},style:{[`&.${gs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),mR=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(yt(({theme:e})=>({[`&.${gs.error}`]:{color:(e.vars||e).palette.error.main}}))),yR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:c="label",disabled:d,error:h,filled:y,focused:m,required:v,...S}=r,x=ui(),R=ci({props:r,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),O={...r,color:R.color||"primary",component:c,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required},_=hR(O);return C.jsxs(gR,{as:c,ownerState:O,className:Te(_.root,a),ref:n,...S,children:[i,R.required&&C.jsxs(mR,{ownerState:O,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})});function ad(e){return`scale(${e}, ${e**2})`}const vR={entering:{opacity:1,transform:ad(1)},entered:{opacity:1,transform:"none"}},ld=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cd=j.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:y,onExit:m,onExited:v,onExiting:S,style:x,timeout:R="auto",TransitionComponent:O=Rr,..._}=t,I=Ph(),E=j.useRef(),P=Za(),M=j.useRef(null),D=Jt(M,Xi(a),n),$=te=>le=>{if(te){const fe=M.current;le===void 0?te(fe):te(fe,le)}},z=$(y),V=$((te,le)=>{zg(te);const{duration:fe,delay:pe,easing:_e}=tl({style:x,timeout:R,easing:l},{mode:"enter"});let We;R==="auto"?(We=P.transitions.getAutoHeightDuration(te.clientHeight),E.current=We):We=fe,te.style.transition=[P.transitions.create("opacity",{duration:We,delay:pe}),P.transitions.create("transform",{duration:ld?We:We*.666,delay:pe,easing:_e})].join(","),d&&d(te,le)}),b=$(h),H=$(S),Q=$(te=>{const{duration:le,delay:fe,easing:pe}=tl({style:x,timeout:R,easing:l},{mode:"exit"});let _e;R==="auto"?(_e=P.transitions.getAutoHeightDuration(te.clientHeight),E.current=_e):_e=le,te.style.transition=[P.transitions.create("opacity",{duration:_e,delay:fe}),P.transitions.create("transform",{duration:ld?_e:_e*.666,delay:ld?fe:fe||_e*.333,easing:pe})].join(","),te.style.opacity=0,te.style.transform=ad(.75),m&&m(te)}),ee=$(v),X=te=>{R==="auto"&&I.start(E.current||0,te),r&&r(M.current,te)};return C.jsx(O,{appear:i,in:c,nodeRef:M,onEnter:V,onEntered:b,onEntering:z,onExit:Q,onExited:ee,onExiting:H,addEndListener:X,timeout:R==="auto"?null:R,..._,children:(te,le)=>j.cloneElement(a,{style:{opacity:0,transform:ad(.75),visibility:te==="exited"&&!c?"hidden":void 0,...vR[te],...x,...a.props.style},ref:D,...le})})});cd&&(cd.muiSupportAuto=!0);const bR=e=>{const{classes:t,disableUnderline:n}=e,i=dt({root:["root",!n&&"underline"],input:["input"]},iE,t);return{...t,...i}},xR=Ce(ll,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sl(e,t),!n.disableUnderline&&t.underline]}})(yt(({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:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${ps.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ps.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(.${ps.disabled}, .${ps.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ps.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),wR=Ce(cl,{name:"MuiInput",slot:"Input",overridesResolver:al})({}),pl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:y,slots:m={},type:v="text",...S}=r,x=bR(r),O={root:{ownerState:{disableUnderline:i}}},_=y??l?ln(y??l,O):O,I=m.root??a.Root??xR,E=m.input??a.Input??wR;return C.jsx(rd,{slots:{root:I,input:E},slotProps:_,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:v,...S,classes:x})});pl&&(pl.muiName="Input");function SR(e){return st("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CR=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:l,required:c}=e,d={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Le(r)}`,l],asterisk:[c&&"asterisk"]},h=dt(d,SR,t);return{...t,...h}},_R=Ce(yR,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gs.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]]}})(yt(({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:r})=>t==="filled"&&n.shrink&&r==="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)"}}]}))),em=j.forwardRef(function(t,n){const r=vt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:c,className:d,...h}=r,y=ui();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const v=ci({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),S={...r,disableAnimation:i,formControl:y,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused},x=CR(S);return C.jsx(_R,{"data-shrink":m,ref:n,className:Te(x.root,d),...h,ownerState:S,classes:x})}),hi=j.createContext({});function ER(e){return st("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const RR=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return dt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},ER,t)},TR=Ce("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}}]}),ud=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:h,...y}=r,m=j.useMemo(()=>({dense:c}),[c]),v={...r,component:l,dense:c,disablePadding:d},S=RR(v);return C.jsx(hi.Provider,{value:m,children:C.jsxs(TR,{as:l,className:Te(S.root,a),ref:n,ownerState:v,...y,children:[h,i]})})});function PR(e){return st("MuiListItemButton",e)}const ms=ot("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),kR=(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]},IR=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:l,selected:c}=e,h=dt({root:["root",r&&"dense",!a&&"gutters",l&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},PR,n);return{...n,...h}},OR=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:kR})(yt(({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"}},[`&.${ms.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ms.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ms.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(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})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ms.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ms.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}}]}))),tm=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:l="div",children:c,dense:d=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:m,selected:v=!1,className:S,...x}=r,R=j.useContext(hi),O=j.useMemo(()=>({dense:d||R.dense||!1,alignItems:i,disableGutters:h}),[i,R.dense,d,h]),_=j.useRef(null);wr(()=>{a&&_.current&&_.current.focus()},[a]);const I={...r,alignItems:i,dense:O.dense,disableGutters:h,divider:y,selected:v},E=IR(I),P=Jt(_,n);return C.jsx(hi.Provider,{value:O,children:C.jsx(OR,{ref:P,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:Te(E.focusVisible,m),ownerState:I,className:Te(E.root,S),...x,classes:E,children:c})})}),nm=ot("MuiListItemIcon",["root","alignItemsFlexStart"]);function AR(e){return st("MuiListItemText",e)}const gi=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$R=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return dt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},AR,t)},MR=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gi.primary}`]:t.primary},{[`& .${gi.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,[`.${Wg.root}:where(& .${gi.primary})`]:{display:"block"},[`.${Wg.root}:where(& .${gi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),rm=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:h,secondary:y,secondaryTypographyProps:m,...v}=r,{dense:S}=j.useContext(hi);let x=d??i,R=y;const O={...r,disableTypography:l,inset:c,primary:!!x,secondary:!!R,dense:S},_=$R(O);return x!=null&&x.type!==rl&&!l&&(x=C.jsx(rl,{variant:S?"body2":"body1",className:_.primary,component:h!=null&&h.variant?void 0:"span",...h,children:x})),R!=null&&R.type!==rl&&!l&&(R=C.jsx(rl,{variant:"body2",className:_.secondary,color:"textSecondary",...m,children:R})),C.jsxs(MR,{className:Te(_.root,a),ownerState:O,ref:n,...v,children:[x,R]})});function dd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function om(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function im(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 ys(e,t,n,r,i,a){let l=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!im(c,a)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const BR=j.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:y,variant:m="selectedMenu",...v}=t,S=j.useRef(null),x=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wr(()=>{i&&S.current.focus()},[i]),j.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:P})=>{const M=!S.current.style.width;if(E.clientHeight<S.current.clientHeight&&M){const D=`${Ih(ur(E))}px`;S.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=D,S.current.style.width=`calc(100% + ${D})`}return S.current}}),[]);const R=E=>{const P=S.current,M=E.key;if(E.ctrlKey||E.metaKey||E.altKey){y&&y(E);return}const $=qn(P).activeElement;if(M==="ArrowDown")E.preventDefault(),ys(P,$,h,d,dd);else if(M==="ArrowUp")E.preventDefault(),ys(P,$,h,d,om);else if(M==="Home")E.preventDefault(),ys(P,null,h,d,dd);else if(M==="End")E.preventDefault(),ys(P,null,h,d,om);else if(M.length===1){const z=x.current,V=M.toLowerCase(),b=performance.now();z.keys.length>0&&(b-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=b,z.keys.push(V);const H=$&&!z.repeating&&im($,z);z.previousKeyMatched&&(H||ys(P,$,!1,d,dd,z))?E.preventDefault():z.previousKeyMatched=!1}y&&y(E)},O=Jt(S,n);let _=-1;j.Children.forEach(l,(E,P)=>{if(!j.isValidElement(E)){_===P&&(_+=1,_>=l.length&&(_=-1));return}E.props.disabled||(m==="selectedMenu"&&E.props.selected||_===-1)&&(_=P),_===P&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(_+=1,_>=l.length&&(_=-1))});const I=j.Children.map(l,(E,P)=>{if(P===_){const M={};return a&&(M.autoFocus=!0),E.props.tabIndex===void 0&&m==="selectedMenu"&&(M.tabIndex=0),j.cloneElement(E,M)}return E});return C.jsx(ud,{role:"menu",ref:O,className:c,onKeyDown:R,tabIndex:i?0:-1,...v,children:I})});function DR(e){return st("MuiPopover",e)}ot("MuiPopover",["root","paper"]);function sm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function am(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function lm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fd(e){return typeof e=="function"?e():e}const LR=e=>{const{classes:t}=e;return dt({root:["root"],paper:["paper"]},DR,t)},jR=Ce(ZE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cm=Ce(E_,{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}),FR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:y,container:m,elevation:v=8,marginThreshold:S=16,open:x,PaperProps:R={},slots:O={},slotProps:_={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:E=cd,transitionDuration:P="auto",TransitionProps:{onEntering:M,...D}={},disableScrollLock:$=!1,...z}=r,V=(_==null?void 0:_.paper)??R,b=j.useRef(),H={...r,anchorOrigin:l,anchorReference:d,elevation:v,marginThreshold:S,externalPaperSlotProps:V,transformOrigin:I,TransitionComponent:E,transitionDuration:P,TransitionProps:D},Q=LR(H),ee=j.useCallback(()=>{if(d==="anchorPosition")return c;const he=fd(a),de=(he&&he.nodeType===1?he:qn(b.current).body).getBoundingClientRect();return{top:de.top+sm(de,l.vertical),left:de.left+am(de,l.horizontal)}},[a,l.horizontal,l.vertical,c,d]),X=j.useCallback(he=>({vertical:sm(he,I.vertical),horizontal:am(he,I.horizontal)}),[I.horizontal,I.vertical]),te=j.useCallback(he=>{const ge={width:he.offsetWidth,height:he.offsetHeight},de=X(ge);if(d==="none")return{top:null,left:null,transformOrigin:lm(de)};const Pe=ee();let ve=Pe.top-de.vertical,Ie=Pe.left-de.horizontal;const qe=ve+ge.height,De=Ie+ge.width,Re=ur(fd(a)),Fe=Re.innerHeight-S,tt=Re.innerWidth-S;if(S!==null&&ve<S){const $e=ve-S;ve-=$e,de.vertical+=$e}else if(S!==null&&qe>Fe){const $e=qe-Fe;ve-=$e,de.vertical+=$e}if(S!==null&&Ie<S){const $e=Ie-S;Ie-=$e,de.horizontal+=$e}else if(De>tt){const $e=De-tt;Ie-=$e,de.horizontal+=$e}return{top:`${Math.round(ve)}px`,left:`${Math.round(Ie)}px`,transformOrigin:lm(de)}},[a,d,ee,X,S]),[le,fe]=j.useState(x),pe=j.useCallback(()=>{const he=b.current;if(!he)return;const ge=te(he);ge.top!==null&&he.style.setProperty("top",ge.top),ge.left!==null&&(he.style.left=ge.left),he.style.transformOrigin=ge.transformOrigin,fe(!0)},[te]);j.useEffect(()=>($&&window.addEventListener("scroll",pe),()=>window.removeEventListener("scroll",pe)),[a,$,pe]);const _e=(he,ge)=>{M&&M(he,ge),pe()},We=()=>{fe(!1)};j.useEffect(()=>{x&&pe()}),j.useImperativeHandle(i,()=>x?{updatePosition:()=>{pe()}}:null,[x,pe]),j.useEffect(()=>{if(!x)return;const he=ma(()=>{pe()}),ge=ur(a);return ge.addEventListener("resize",he),()=>{he.clear(),ge.removeEventListener("resize",he)}},[a,x,pe]);let be=P;P==="auto"&&!E.muiSupportAuto&&(be=void 0);const Be=m||(a?qn(fd(a)).body:void 0),Ne={slots:O,slotProps:{..._,paper:V}},[Me,Xe]=dr("paper",{elementType:cm,externalForwardedProps:Ne,additionalProps:{elevation:v,className:Te(Q.paper,V==null?void 0:V.className),style:le?V.style:{...V.style,opacity:0}},ownerState:H}),[Ge,{slotProps:ht,...ae}]=dr("root",{elementType:jR,externalForwardedProps:Ne,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Be,open:x},ownerState:H,className:Te(Q.root,y)}),ue=Jt(b,Xe.ref);return C.jsx(Ge,{...ae,...!td(Ge)&&{slotProps:ht,disableScrollLock:$},...z,ref:n,children:C.jsx(E,{appear:!0,in:x,onEntering:_e,onExited:We,timeout:be,...D,children:C.jsx(Me,{...Xe,ref:ue,children:h})})})});function NR(e){return st("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const zR={vertical:"top",horizontal:"right"},WR={vertical:"top",horizontal:"left"},UR=e=>{const{classes:t}=e;return dt({root:["root"],paper:["paper"],list:["list"]},NR,t)},HR=Ce(FR,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GR=Ce(cm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qR=Ce(BR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),VR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:y,PaperProps:m={},PopoverClasses:v,transitionDuration:S="auto",TransitionProps:{onEntering:x,...R}={},variant:O="selectedMenu",slots:_={},slotProps:I={},...E}=r,P=Uu(),M={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:m,transitionDuration:S,TransitionProps:R,variant:O},D=UR(M),$=i&&!c&&y,z=j.useRef(null),V=(le,fe)=>{z.current&&z.current.adjustStyleForScrollbar(le,{direction:P?"rtl":"ltr"}),x&&x(le,fe)},b=le=>{le.key==="Tab"&&(le.preventDefault(),h&&h(le,"tabKeyDown"))};let H=-1;j.Children.map(a,(le,fe)=>{j.isValidElement(le)&&(le.props.disabled||(O==="selectedMenu"&&le.props.selected||H===-1)&&(H=fe))});const Q=_.paper??GR,ee=I.paper??m,X=Xo({elementType:_.root,externalSlotProps:I.root,ownerState:M,className:[D.root,l]}),te=Xo({elementType:Q,externalSlotProps:ee,ownerState:M,className:D.paper});return C.jsx(HR,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?zR:WR,slots:{paper:Q,root:_.root},slotProps:{root:X,paper:te},open:y,ref:n,transitionDuration:S,TransitionProps:{onEntering:V,...R},ownerState:M,...E,classes:v,children:C.jsx(qR,{onKeyDown:b,actions:z,autoFocus:i&&(H===-1||c),autoFocusItem:$,variant:O,...d,className:Te(D.list,d.className),children:a})})});function KR(e){return st("MuiMenuItem",e)}const vs=ot("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:r,disableGutters:i,selected:a,classes:l}=e,d=dt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},KR,l);return{...l,...d}},JR=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YR})(yt(({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"}},[`&.${vs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(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})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Xg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Xg.inset}`]:{marginLeft:52},[`& .${gi.root}`]:{marginTop:0,marginBottom:0},[`& .${gi.inset}`]:{paddingLeft:36},[`& .${nm.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,[`& .${nm.root} svg`]:{fontSize:"1.25rem"}}}]}))),ZR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:h,role:y="menuitem",tabIndex:m,className:v,...S}=r,x=j.useContext(hi),R=j.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),O=j.useRef(null);wr(()=>{i&&O.current&&O.current.focus()},[i]);const _={...r,dense:R.dense,divider:c,disableGutters:d},I=XR(r),E=Jt(O,n);let P;return r.disabled||(P=m!==void 0?m:-1),C.jsx(hi.Provider,{value:R,children:C.jsx(JR,{ref:E,role:y,tabIndex:P,component:a,focusVisibleClassName:Te(I.focusVisible,h),className:Te(I.root,v),...S,ownerState:_,classes:I})})});function QR(e){return st("MuiNativeSelect",e)}const pd=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eT=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Le(n)}`,a&&"iconOpen",r&&"disabled"]};return dt(c,QR,t)},um=Ce("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${pd.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}}}]})),tT=Ce(um,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${pd.multiple}`]:t.multiple}]}})({}),dm=Ce("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${pd.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}}]})),nT=Ce(dm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})({}),rT=j.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:l,inputRef:c,variant:d="standard",...h}=t,y={...t,disabled:i,variant:d,error:a},m=eT(y);return C.jsxs(j.Fragment,{children:[C.jsx(tT,{ownerState:y,className:Te(m.select,r),disabled:i,ref:c||n,...h}),t.multiple?null:C.jsx(nT,{as:l,ownerState:y,className:m.icon})]})});var fm;const oT=Ce("fieldset",{shouldForwardProp:Mn})({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%"}),iT=Ce("legend",{shouldForwardProp:Mn})(yt(({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 sT(e){const{children:t,classes:n,className:r,label:i,notched:a,...l}=e,c=i!=null&&i!=="",d={...e,notched:a,withLabel:c};return C.jsx(oT,{"aria-hidden":!0,className:r,ownerState:d,...l,children:C.jsx(iT,{ownerState:d,children:c?C.jsx("span",{children:i}):fm||(fm=C.jsx("span",{className:"notranslate",children:""}))})})}const aT=e=>{const{classes:t}=e,r=dt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sE,t);return{...t,...r}},lT=Ce(ll,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:sl})(yt(({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 .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Tr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Tr.focused} .${Tr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wr()).map(([n])=>({props:{color:n},style:{[`&.${Tr.focused} .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Tr.error} .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Tr.disabled} .${Tr.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),cT=Ce(sT,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(yt(({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}})),uT=Ce(cl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:al})(yt(({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}}]}))),hl=j.forwardRef(function(t,n){var r;const i=vt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:c="input",label:d,multiline:h=!1,notched:y,slots:m={},type:v="text",...S}=i,x=aT(i),R=ui(),O=ci({props:i,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...i,color:O.color||"primary",disabled:O.disabled,error:O.error,focused:O.focused,formControl:R,fullWidth:l,hiddenLabel:O.hiddenLabel,multiline:h,size:O.size,type:v},I=m.root??a.Root??lT,E=m.input??a.Input??uT;return C.jsx(rd,{slots:{root:I,input:E},renderSuffix:P=>C.jsx(cT,{ownerState:_,className:x.notchedOutline,label:d!=null&&d!==""&&O.required?r||(r=C.jsxs(j.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:l,inputComponent:c,multiline:h,ref:n,type:v,...S,classes:{...x,notchedOutline:null}})});hl&&(hl.muiName="Input");function dT(e){return st("MuiSelect",e)}const bs=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var pm;const fT=Ce(um,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${bs.select}`]:t.select},{[`&.${bs.select}`]:t[n.variant]},{[`&.${bs.error}`]:t.error},{[`&.${bs.multiple}`]:t.multiple}]}})({[`&.${bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pT=Ce(dm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})({}),hT=Ce("input",{shouldForwardProp:e=>Bg(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 hm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gT(e){return e==null||typeof e=="string"&&!e.trim()}const mT=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Le(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return dt(c,dT,t)},yT=j.forwardRef(function(t,n){var Y;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:l,children:c,className:d,defaultOpen:h,defaultValue:y,disabled:m,displayEmpty:v,error:S=!1,IconComponent:x,inputRef:R,labelId:O,MenuProps:_={},multiple:I,name:E,onBlur:P,onChange:M,onClose:D,onFocus:$,onOpen:z,open:V,readOnly:b,renderValue:H,SelectDisplayProps:Q={},tabIndex:ee,type:X,value:te,variant:le="standard",...fe}=t,[pe,_e]=Eh({controlled:te,default:y,name:"Select"}),[We,be]=Eh({controlled:V,default:h,name:"Select"}),Be=j.useRef(null),Ne=j.useRef(null),[Me,Xe]=j.useState(null),{current:Ge}=j.useRef(V!=null),[ht,ae]=j.useState(),ue=Jt(n,R),he=j.useCallback(ce=>{Ne.current=ce,ce&&Xe(ce)},[]),ge=Me==null?void 0:Me.parentNode;j.useImperativeHandle(ue,()=>({focus:()=>{Ne.current.focus()},node:Be.current,value:pe}),[pe]),j.useEffect(()=>{h&&We&&Me&&!Ge&&(ae(l?null:ge.clientWidth),Ne.current.focus())},[Me,l]),j.useEffect(()=>{a&&Ne.current.focus()},[a]),j.useEffect(()=>{if(!O)return;const ce=qn(Ne.current).getElementById(O);if(ce){const oe=()=>{getSelection().isCollapsed&&Ne.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[O]);const de=(ce,oe)=>{ce?z&&z(oe):D&&D(oe),Ge||(ae(l?null:ge.clientWidth),be(ce))},Pe=ce=>{ce.button===0&&(ce.preventDefault(),Ne.current.focus(),de(!0,ce))},ve=ce=>{de(!1,ce)},Ie=j.Children.toArray(c),qe=ce=>{const oe=Ie.find(se=>se.props.value===ce.target.value);oe!==void 0&&(_e(oe.props.value),M&&M(ce,oe))},De=ce=>oe=>{let se;if(oe.currentTarget.hasAttribute("tabindex")){if(I){se=Array.isArray(pe)?pe.slice():[];const Se=pe.indexOf(ce.props.value);Se===-1?se.push(ce.props.value):se.splice(Se,1)}else se=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),pe!==se&&(_e(se),M)){const Se=oe.nativeEvent||oe,we=new Se.constructor(Se.type,Se);Object.defineProperty(we,"target",{writable:!0,value:{value:se,name:E}}),M(we,ce)}I||de(!1,oe)}},Re=ce=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),de(!0,ce))},Fe=Me!==null&&We,tt=ce=>{!Fe&&P&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:pe,name:E}}),P(ce))};delete fe["aria-invalid"];let $e,it;const ye=[];let Ot=!1;(il({value:pe})||v)&&(H?$e=H(pe):Ot=!0);const Ft=Ie.map(ce=>{if(!j.isValidElement(ce))return null;let oe;if(I){if(!Array.isArray(pe))throw new Error(jr(2));oe=pe.some(se=>hm(se,ce.props.value)),oe&&Ot&&ye.push(ce.props.children)}else oe=hm(pe,ce.props.value),oe&&Ot&&(it=ce.props.children);return j.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:De(ce),onKeyUp:se=>{se.key===" "&&se.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(se)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});Ot&&(I?ye.length===0?$e=null:$e=ye.reduce((ce,oe,se)=>(ce.push(oe),se<ye.length-1&&ce.push(", "),ce),[]):$e=it);let mn=ht;!l&&Ge&&Me&&(mn=ge.clientWidth);let T;typeof ee<"u"?T=ee:T=m?null:0;const p=Q.id||(E?`mui-component-select-${E}`:void 0),g={...t,variant:le,value:pe,open:Fe,error:S},B=mT(g),F={..._.PaperProps,...(Y=_.slotProps)==null?void 0:Y.paper},G=_h();return C.jsxs(j.Fragment,{children:[C.jsx(fT,{as:"div",ref:he,tabIndex:T,role:"combobox","aria-controls":G,"aria-disabled":m?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[O,p].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:m||b?null:Pe,onBlur:tt,onFocus:$,...Q,ownerState:g,className:Te(Q.className,B.select,d),id:p,children:gT($e)?pm||(pm=C.jsx("span",{className:"notranslate",children:""})):$e}),C.jsx(hT,{"aria-invalid":S,value:Array.isArray(pe)?pe.join(","):pe,name:E,ref:Be,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:m,className:B.nativeInput,autoFocus:a,...fe,ownerState:g}),C.jsx(pT,{as:x,className:B.icon,ownerState:g}),C.jsx(VR,{id:`menu-${E||""}`,anchorEl:ge,open:Fe,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,MenuListProps:{"aria-labelledby":O,role:"listbox","aria-multiselectable":I?"true":void 0,disableListWrap:!0,id:G,..._.MenuListProps},slotProps:{..._.slotProps,paper:{...F,style:{minWidth:mn,...F!=null?F.style:null}}},children:Ft})]})}),vT=e=>{const{classes:t}=e;return t},hd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mn(e)&&e!=="variant",slot:"Root"},bT=Ce(pl,hd)(""),xT=Ce(hl,hd)(""),wT=Ce(fl,hd)(""),gd=j.forwardRef(function(t,n){const r=h_({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:y=lE,id:m,input:v,inputProps:S,label:x,labelId:R,MenuProps:O,multiple:_=!1,native:I=!1,onClose:E,onOpen:P,open:M,renderValue:D,SelectDisplayProps:$,variant:z="outlined",...V}=r,b=I?rT:yT,H=ui(),Q=ci({props:r,muiFormControl:H,states:["variant","error"]}),ee=Q.variant||z,X={...r,variant:ee,classes:l},te=vT(X),{root:le,...fe}=te,pe=v||{standard:C.jsx(bT,{ownerState:X}),outlined:C.jsx(xT,{label:x,ownerState:X}),filled:C.jsx(wT,{ownerState:X})}[ee],_e=Jt(n,Xi(pe));return C.jsx(j.Fragment,{children:j.cloneElement(pe,{inputComponent:b,inputProps:{children:a,error:Q.error,IconComponent:y,variant:ee,type:void 0,multiple:_,...I?{id:m}:{autoWidth:i,defaultOpen:d,displayEmpty:h,labelId:R,MenuProps:O,onClose:E,onOpen:P,open:M,renderValue:D,SelectDisplayProps:{id:m,...$}},...S,classes:S?ln(fe,S.classes):fe,...v?v.props.inputProps:{}},...(_&&I||h)&&ee==="outlined"?{notched:!0}:{},ref:_e,className:Te(pe.props.className,c,te.root),...!v&&{variant:ee},...V})})});gd.muiName="Select";function ST(e){return st("MuiTab",e)}const Xn=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),CT=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:l,selected:c,disabled:d}=e,h={root:["root",a&&l&&"labelIcon",`textColor${Le(n)}`,r&&"fullWidth",i&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return dt(h,ST,t)},_T=Ce(li,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Xn.iconWrapper}`]:t.iconWrapper},{[`& .${Xn.icon}`]:t.icon}]}})(yt(({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:{[`& > .${Xn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Xn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Xn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Xn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Xn.selected}`]:{opacity:1},[`&.${Xn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Xn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Xn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Xn.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)}}]}))),ET=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:h="top",indicator:y,label:m,onChange:v,onClick:S,onFocus:x,selected:R,selectionFollowsFocus:O,textColor:_="inherit",value:I,wrapped:E=!1,...P}=r,M={...r,disabled:a,disableFocusRipple:l,selected:R,icon:!!d,iconPosition:h,label:!!m,fullWidth:c,textColor:_,wrapped:E},D=CT(M),$=d&&m&&j.isValidElement(d)?j.cloneElement(d,{className:Te(D.icon,d.props.className)}):d,z=b=>{!R&&v&&v(b,I),S&&S(b)},V=b=>{O&&!R&&v&&v(b,I),x&&x(b)};return C.jsxs(_T,{focusRipple:!l,className:Te(D.root,i),ref:n,role:"tab","aria-selected":R,disabled:a,onClick:z,onFocus:V,ownerState:M,tabIndex:R?0:-1,...P,children:[h==="top"||h==="start"?C.jsxs(j.Fragment,{children:[$,m]}):C.jsxs(j.Fragment,{children:[m,$]}),y]})}),RT=Sn(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),TT=Sn(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function PT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function kT(e,t,n,r={},i=()=>{}){const{ease:a=PT,duration:l=300}=r;let c=null;const d=t[e];let h=!1;const y=()=>{h=!0},m=v=>{if(h){i(new Error("Animation cancelled"));return}c===null&&(c=v);const S=Math.min(1,(v-c)/l);if(t[e]=a(S)*(n-d)+d,S>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return d===n?(i(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const IT={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function OT(e){const{onChange:t,...n}=e,r=j.useRef(),i=j.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wr(()=>{const l=ma(()=>{const d=r.current;a(),d!==r.current&&t(r.current)}),c=ur(i.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[t]),j.useEffect(()=>{a(),t(r.current)},[t]),C.jsx("div",{style:IT,ref:i,...n})}function AT(e){return st("MuiTabScrollButton",e)}const $T=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),MT=e=>{const{classes:t,orientation:n,disabled:r}=e;return dt({root:["root",n,r&&"disabled"]},AT,t)},BT=Ce(li,{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,[`&.${$T.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),DT=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:c,orientation:d,disabled:h,...y}=r,m=Uu(),v={isRtl:m,...r},S=MT(v),x=a.StartScrollButtonIcon??RT,R=a.EndScrollButtonIcon??TT,O=Xo({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),_=Xo({elementType:R,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return C.jsx(BT,{component:"div",className:Te(S.root,i),ref:n,role:null,ownerState:v,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:c==="left"?C.jsx(x,{...O}):C.jsx(R,{..._})})});function LT(e){return st("MuiTabs",e)}const md=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,mm=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gl=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},jT=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:d}=e;return dt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},LT,d)},FT=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${md.scrollButtons}`]:t.scrollButtons},{[`& .${md.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(yt(({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:{[`& .${md.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),NT=Ce("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"}}]}),zT=Ce("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"}}]}),WT=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(yt(({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}}]}))),UT=Ce(OT)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ym={},HT=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTabs"}),i=Za(),a=Uu(),{"aria-label":l,"aria-labelledby":c,action:d,centered:h=!1,children:y,className:m,component:v="div",allowScrollButtonsMobile:S=!1,indicatorColor:x="primary",onChange:R,orientation:O="horizontal",ScrollButtonComponent:_=DT,scrollButtons:I="auto",selectionFollowsFocus:E,slots:P={},slotProps:M={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:z="primary",value:V,variant:b="standard",visibleScrollbar:H=!1,...Q}=r,ee=b==="scrollable",X=O==="vertical",te=X?"scrollTop":"scrollLeft",le=X?"top":"left",fe=X?"bottom":"right",pe=X?"clientHeight":"clientWidth",_e=X?"height":"width",We={...r,component:v,allowScrollButtonsMobile:S,indicatorColor:x,orientation:O,vertical:X,scrollButtons:I,textColor:z,variant:b,visibleScrollbar:H,fixed:!ee,hideScrollbar:ee&&!H,scrollableX:ee&&!X,scrollableY:ee&&X,centered:h&&!ee,scrollButtonsHideMobile:!S},be=jT(We),Be=Xo({elementType:P.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:We}),Ne=Xo({elementType:P.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:We}),[Me,Xe]=j.useState(!1),[Ge,ht]=j.useState(ym),[ae,ue]=j.useState(!1),[he,ge]=j.useState(!1),[de,Pe]=j.useState(!1),[ve,Ie]=j.useState({overflow:"hidden",scrollbarWidth:0}),qe=new Map,De=j.useRef(null),Re=j.useRef(null),Fe=()=>{const oe=De.current;let se;if(oe){const we=oe.getBoundingClientRect();se={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let Se;if(oe&&V!==!1){const we=Re.current.children;if(we.length>0){const kt=we[qe.get(V)];Se=kt?kt.getBoundingClientRect():null}}return{tabsMeta:se,tabMeta:Se}},tt=Fr(()=>{const{tabsMeta:oe,tabMeta:se}=Fe();let Se=0,we;X?(we="top",se&&oe&&(Se=se.top-oe.top+oe.scrollTop)):(we=a?"right":"left",se&&oe&&(Se=(a?-1:1)*(se[we]-oe[we]+oe.scrollLeft)));const kt={[we]:Se,[_e]:se?se[_e]:0};if(typeof Ge[we]!="number"||typeof Ge[_e]!="number")ht(kt);else{const tr=Math.abs(Ge[we]-kt[we]),$r=Math.abs(Ge[_e]-kt[_e]);(tr>=1||$r>=1)&&ht(kt)}}),$e=(oe,{animation:se=!0}={})=>{se?kT(te,De.current,oe,{duration:i.transitions.duration.standard}):De.current[te]=oe},it=oe=>{let se=De.current[te];X?se+=oe:se+=oe*(a?-1:1),$e(se)},ye=()=>{const oe=De.current[pe];let se=0;const Se=Array.from(Re.current.children);for(let we=0;we<Se.length;we+=1){const kt=Se[we];if(se+kt[pe]>oe){we===0&&(se=oe);break}se+=kt[pe]}return se},Ot=()=>{it(-1*ye())},Ft=()=>{it(ye())},mn=j.useCallback(oe=>{Ie({overflow:null,scrollbarWidth:oe})},[]),T=()=>{const oe={};oe.scrollbarSizeListener=ee?C.jsx(UT,{onChange:mn,className:Te(be.scrollableX,be.hideScrollbar)}):null;const Se=ee&&(I==="auto"&&(ae||he)||I===!0);return oe.scrollButtonStart=Se?C.jsx(_,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Be},orientation:O,direction:a?"right":"left",onClick:Ot,disabled:!ae,...$,className:Te(be.scrollButtons,$.className)}):null,oe.scrollButtonEnd=Se?C.jsx(_,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ne},orientation:O,direction:a?"left":"right",onClick:Ft,disabled:!he,...$,className:Te(be.scrollButtons,$.className)}):null,oe},p=Fr(oe=>{const{tabsMeta:se,tabMeta:Se}=Fe();if(!(!Se||!se)){if(Se[le]<se[le]){const we=se[te]+(Se[le]-se[le]);$e(we,{animation:oe})}else if(Se[fe]>se[fe]){const we=se[te]+(Se[fe]-se[fe]);$e(we,{animation:oe})}}}),g=Fr(()=>{ee&&I!==!1&&Pe(!de)});j.useEffect(()=>{const oe=ma(()=>{De.current&&tt()});let se;const Se=tr=>{tr.forEach($r=>{$r.removedNodes.forEach(uo=>{se==null||se.unobserve(uo)}),$r.addedNodes.forEach(uo=>{se==null||se.observe(uo)})}),oe(),g()},we=ur(De.current);we.addEventListener("resize",oe);let kt;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(oe),Array.from(Re.current.children).forEach(tr=>{se.observe(tr)})),typeof MutationObserver<"u"&&(kt=new MutationObserver(Se),kt.observe(Re.current,{childList:!0})),()=>{oe.clear(),we.removeEventListener("resize",oe),kt==null||kt.disconnect(),se==null||se.disconnect()}},[tt,g]),j.useEffect(()=>{const oe=Array.from(Re.current.children),se=oe.length;if(typeof IntersectionObserver<"u"&&se>0&&ee&&I!==!1){const Se=oe[0],we=oe[se-1],kt={root:De.current,threshold:.99},tr=js=>{ue(!js[0].isIntersecting)},$r=new IntersectionObserver(tr,kt);$r.observe(Se);const uo=js=>{ge(!js[0].isIntersecting)},vc=new IntersectionObserver(uo,kt);return vc.observe(we),()=>{$r.disconnect(),vc.disconnect()}}},[ee,I,de,y==null?void 0:y.length]),j.useEffect(()=>{Xe(!0)},[]),j.useEffect(()=>{tt()}),j.useEffect(()=>{p(ym!==Ge)},[p,Ge]),j.useImperativeHandle(d,()=>({updateIndicator:tt,updateScrollButtons:g}),[tt,g]);const B=C.jsx(WT,{...D,className:Te(be.indicator,D.className),ownerState:We,style:{...Ge,...D.style}});let F=0;const G=j.Children.map(y,oe=>{if(!j.isValidElement(oe))return null;const se=oe.props.value===void 0?F:oe.props.value;qe.set(se,F);const Se=se===V;return F+=1,j.cloneElement(oe,{fullWidth:b==="fullWidth",indicator:Se&&!Me&&B,selected:Se,selectionFollowsFocus:E,onChange:R,textColor:z,value:se,...F===1&&V===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),Y=oe=>{const se=Re.current,Se=qn(se).activeElement;if(Se.getAttribute("role")!=="tab")return;let kt=O==="horizontal"?"ArrowLeft":"ArrowUp",tr=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&a&&(kt="ArrowRight",tr="ArrowLeft"),oe.key){case kt:oe.preventDefault(),gl(se,Se,mm);break;case tr:oe.preventDefault(),gl(se,Se,gm);break;case"Home":oe.preventDefault(),gl(se,null,gm);break;case"End":oe.preventDefault(),gl(se,null,mm);break}},ce=T();return C.jsxs(FT,{className:Te(be.root,m),ownerState:We,ref:n,as:v,...Q,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,C.jsxs(NT,{className:be.scroller,ownerState:We,style:{overflow:ve.overflow,[X?`margin${a?"Left":"Right"}`:"marginBottom"]:H?void 0:-ve.scrollbarWidth},ref:De,children:[C.jsx(zT,{"aria-label":l,"aria-labelledby":c,"aria-orientation":O==="vertical"?"vertical":null,className:be.flexContainer,ownerState:We,onKeyDown:Y,ref:Re,role:"tablist",children:G}),Me&&B]}),ce.scrollButtonEnd]})});function GT(e){return st("MuiTextField",e)}ot("MuiTextField",["root"]);const qT={standard:pl,filled:fl,outlined:hl},VT=e=>{const{classes:t}=e;return dt({root:["root"]},GT,t)},KT=Ce(Jg,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ml=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:c,color:d="primary",defaultValue:h,disabled:y=!1,error:m=!1,FormHelperTextProps:v,fullWidth:S=!1,helperText:x,id:R,InputLabelProps:O,inputProps:_,InputProps:I,inputRef:E,label:P,maxRows:M,minRows:D,multiline:$=!1,name:z,onBlur:V,onChange:b,onFocus:H,placeholder:Q,required:ee=!1,rows:X,select:te=!1,SelectProps:le,slots:fe={},slotProps:pe={},type:_e,value:We,variant:be="outlined",...Be}=r,Ne={...r,autoFocus:a,color:d,disabled:y,error:m,fullWidth:S,multiline:$,required:ee,select:te,variant:be},Me=VT(Ne),Xe=_h(R),Ge=x&&Xe?`${Xe}-helper-text`:void 0,ht=P&&Xe?`${Xe}-label`:void 0,ae=qT[be],ue={slots:fe,slotProps:{input:I,inputLabel:O,htmlInput:_,formHelperText:v,select:le,...pe}},he={},ge=ue.slotProps.inputLabel;be==="outlined"&&(ge&&typeof ge.shrink<"u"&&(he.notched=ge.shrink),he.label=P),te&&((!le||!le.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const[de,Pe]=dr("input",{elementType:ae,externalForwardedProps:ue,additionalProps:he,ownerState:Ne}),[ve,Ie]=dr("inputLabel",{elementType:em,externalForwardedProps:ue,ownerState:Ne}),[qe,De]=dr("htmlInput",{elementType:"input",externalForwardedProps:ue,ownerState:Ne}),[Re,Fe]=dr("formHelperText",{elementType:fR,externalForwardedProps:ue,ownerState:Ne}),[tt,$e]=dr("select",{elementType:gd,externalForwardedProps:ue,ownerState:Ne}),it=C.jsx(de,{"aria-describedby":Ge,autoComplete:i,autoFocus:a,defaultValue:h,fullWidth:S,multiline:$,name:z,rows:X,maxRows:M,minRows:D,type:_e,value:We,id:Xe,inputRef:E,onBlur:V,onChange:b,onFocus:H,placeholder:Q,inputProps:De,slots:{input:fe.htmlInput?qe:void 0},...Pe});return C.jsxs(KT,{className:Te(Me.root,c),disabled:y,error:m,fullWidth:S,ref:n,required:ee,color:d,variant:be,ownerState:Ne,...Be,children:[P!=null&&P!==""&&C.jsx(ve,{htmlFor:Xe,id:ht,...Ie,children:P}),te?C.jsx(tt,{"aria-describedby":Ge,id:Xe,labelId:ht,value:We,input:it,...$e,children:l}):it,x&&C.jsx(Re,{id:Ge,...Fe,children:x})]})});var yl={exports:{}};/**
|
|
147
|
+
`,IE=typeof id!="string"?Lu`
|
|
148
|
+
animation: ${id} 1.4s linear infinite;
|
|
149
|
+
`:null,kE=typeof sd!="string"?Lu`
|
|
150
|
+
animation: ${sd} 1.4s ease-in-out infinite;
|
|
151
|
+
`:null,OE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,i&&"circleDisableShrink"]};return ft(a,TE,t)},AE=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(yt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:IE||{animation:`${id} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),$E=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ME=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(yt(({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:kE||{animation:`${sd} 1.4s ease-in-out infinite`}}]}))),BE=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:h=3.6,value:y=0,variant:m="indeterminate",...v}=r,w={...r,color:a,disableShrink:l,size:c,thickness:h,value:y,variant:m},b=OE(w),E={},k={},_={};if(m==="determinate"){const O=2*Math.PI*((oo-h)/2);E.strokeDasharray=O.toFixed(3),_["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*O).toFixed(3)}px`,k.transform="rotate(-90deg)"}return x.jsx(AE,{className:Pe(b.root,i),style:{width:c,height:c,...k,...d},ownerState:w,ref:n,role:"progressbar",..._,...v,children:x.jsx($E,{className:b.svg,ownerState:w,viewBox:`${oo/2} ${oo/2} ${oo} ${oo}`,children:x.jsx(ME,{className:b.circle,style:E,ownerState:w,cx:oo,cy:oo,r:(oo-h)/2,fill:"none",strokeWidth:h})})})});function DE(e){const t=qn(e);return t.body===e?ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jg(e){return parseInt(ur(e).getComputedStyle(e).paddingRight,10)||0}function LE(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Zg(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,l=>{const c=!a.includes(l),d=!LE(l);c&&d&&hs(l,i)})}function ad(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function jE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(DE(r)){const l=Oh(ur(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Jg(r)+l}px`;const c=qn(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Jg(d)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=qn(r).body;else{const l=r.parentElement,c=ur(r);a=(l==null?void 0:l.nodeName)==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function FE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class NE{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&hs(t.modalRef,!1);const i=FE(n);Zg(n,t.mount,t.modalRef,i,!0);const a=ad(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=ad(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=jE(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=ad(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&hs(t.modalRef,n),Zg(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&hs(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const zE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function WE(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 UE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function HE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||UE(e))}function GE(e){const t=[],n=[];return Array.from(e.querySelectorAll(zE)).forEach((r,i)=>{const a=WE(r);a===-1||!HE(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function qE(){return!0}function VE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=GE,isEnabled:l=qE,open:c}=e,d=j.useRef(!1),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),v=j.useRef(null),w=j.useRef(!1),b=j.useRef(null),E=Jt(Xi(t),b),k=j.useRef(null);j.useEffect(()=>{!c||!b.current||(w.current=!n)},[n,c]),j.useEffect(()=>{if(!c||!b.current)return;const C=qn(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),w.current&&b.current.focus()),()=>{i||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[c]),j.useEffect(()=>{if(!c||!b.current)return;const C=qn(b.current),P=$=>{k.current=$,!(r||!l()||$.key!=="Tab")&&C.activeElement===b.current&&$.shiftKey&&(d.current=!0,y.current&&y.current.focus())},M=()=>{var V,R;const $=b.current;if($===null)return;if(!C.hasFocus()||!l()||d.current){d.current=!1;return}if($.contains(C.activeElement)||r&&C.activeElement!==h.current&&C.activeElement!==y.current)return;if(C.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!w.current)return;let z=[];if((C.activeElement===h.current||C.activeElement===y.current)&&(z=a(b.current)),z.length>0){const G=!!((V=k.current)!=null&&V.shiftKey&&((R=k.current)==null?void 0:R.key)==="Tab"),te=z[0],H=z[z.length-1];typeof te!="string"&&typeof H!="string"&&(G?H.focus():te.focus())}else $.focus()};C.addEventListener("focusin",M),C.addEventListener("keydown",P,!0);const D=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(D),C.removeEventListener("focusin",M),C.removeEventListener("keydown",P,!0)}},[n,r,i,l,c,a]);const _=C=>{m.current===null&&(m.current=C.relatedTarget),w.current=!0,v.current=C.target;const P=t.props.onFocus;P&&P(C)},O=C=>{m.current===null&&(m.current=C.relatedTarget),w.current=!0};return x.jsxs(j.Fragment,{children:[x.jsx("div",{tabIndex:c?0:-1,onFocus:O,ref:h,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:E,onFocus:_}),x.jsx("div",{tabIndex:c?0:-1,onFocus:O,ref:y,"data-testid":"sentinelEnd"})]})}function KE(e){return typeof e=="function"?e():e}function YE(e){return e?e.props.hasOwnProperty("in"):!1}const fl=new NE;function XE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:h,rootRef:y}=e,m=j.useRef({}),v=j.useRef(null),w=j.useRef(null),b=Jt(w,y),[E,k]=j.useState(!h),_=YE(c);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const C=()=>qn(v.current),P=()=>(m.current.modalRef=w.current,m.current.mount=v.current,m.current),M=()=>{fl.mount(P(),{disableScrollLock:r}),w.current&&(w.current.scrollTop=0)},D=Fr(()=>{const ee=KE(t)||C().body;fl.add(P(),ee),w.current&&M()}),$=()=>fl.isTopModal(P()),z=Fr(ee=>{v.current=ee,ee&&(h&&$()?M():w.current&&hs(w.current,O))}),V=j.useCallback(()=>{fl.remove(P(),O)},[O]);j.useEffect(()=>()=>{V()},[V]),j.useEffect(()=>{h?D():(!_||!i)&&V()},[h,V,_,i,D]);const R=ee=>ae=>{var fe;(fe=ee.onKeyDown)==null||fe.call(ee,ae),!(ae.key!=="Escape"||ae.which===229||!$())&&(n||(ae.stopPropagation(),d&&d(ae,"escapeKeyDown")))},G=ee=>ae=>{var fe;(fe=ee.onClick)==null||fe.call(ee,ae),ae.target===ae.currentTarget&&d&&d(ae,"backdropClick")};return{getRootProps:(ee={})=>{const ae=Dh(e);delete ae.onTransitionEnter,delete ae.onTransitionExited;const fe={...ae,...ee};return{role:"presentation",...fe,onKeyDown:R(fe),ref:b}},getBackdropProps:(ee={})=>{const ae=ee;return{"aria-hidden":!0,...ae,onClick:G(ae),open:h}},getTransitionProps:()=>{const ee=()=>{k(!1),a&&a()},ae=()=>{k(!0),l&&l(),i&&V()};return{onEnter:Sh(ee,c==null?void 0:c.props.onEnter),onExited:Sh(ae,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:z,isTopModal:$,exited:E,hasTransition:_}}function JE(e){return at("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const ZE=e=>{const{open:t,exited:n,classes:r}=e;return ft({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},JE,r)},QE=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(yt(({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"}}]}))),eR=Ce(vE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tR=j.forwardRef(function(t,n){const r=vt({name:"MuiModal",props:t}),{BackdropComponent:i=eR,BackdropProps:a,classes:l,className:c,closeAfterTransition:d=!1,children:h,container:y,component:m,components:v={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:k=!1,disablePortal:_=!1,disableRestoreFocus:O=!1,disableScrollLock:C=!1,hideBackdrop:P=!1,keepMounted:M=!1,onBackdropClick:D,onClose:$,onTransitionEnter:z,onTransitionExited:V,open:R,slotProps:G={},slots:te={},theme:H,...Y}=r,ee={...r,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:k,disablePortal:_,disableRestoreFocus:O,disableScrollLock:C,hideBackdrop:P,keepMounted:M},{getRootProps:ae,getBackdropProps:fe,getTransitionProps:pe,portalRef:_e,isTopModal:We,exited:be,hasTransition:Be}=XE({...ee,rootRef:n}),Ne={...ee,exited:be},Me=ZE(Ne),Xe={};if(h.props.tabIndex===void 0&&(Xe.tabIndex="-1"),Be){const{onEnter:de,onExited:Te}=pe();Xe.onEnter=de,Xe.onExited=Te}const Ge={...Y,slots:{root:v.Root,backdrop:v.Backdrop,...te},slotProps:{...w,...G}},[ht,le]=dr("root",{elementType:QE,externalForwardedProps:Ge,getSlotProps:ae,additionalProps:{ref:n,as:m},ownerState:Ne,className:Pe(c,Me==null?void 0:Me.root,!Ne.open&&Ne.exited&&(Me==null?void 0:Me.hidden))}),[ue,he]=dr("backdrop",{elementType:i,externalForwardedProps:Ge,additionalProps:a,getSlotProps:de=>fe({...de,onClick:Te=>{D&&D(Te),de!=null&&de.onClick&&de.onClick(Te)}}),className:Pe(a==null?void 0:a.className,Me==null?void 0:Me.backdrop),ownerState:Ne}),ge=Jt(a==null?void 0:a.ref,he.ref);return!M&&!R&&(!Be||be)?null:x.jsx(tE,{ref:_e,container:y,disablePortal:_,children:x.jsxs(ht,{...le,children:[!P&&i?x.jsx(ue,{...he,ref:ge}):null,x.jsx(VE,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:O,isEnabled:We,open:R,children:j.cloneElement(h,Xe)})]})})});function nR(e){return at("MuiDivider",e)}const Qg=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rR=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:l,textAlign:c,variant:d}=e;return ft({root:["root",t&&"absolute",d,a&&"light",l==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},nR,r)},oR=Ce("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]}})(yt(({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)`:Vt(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",whiteSpace:"nowrap",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%"}}}]}))),iR=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(yt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),pl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:l,orientation:c="horizontal",component:d=a||c==="vertical"?"div":"hr",flexItem:h=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:v="center",variant:w="fullWidth",...b}=r,E={...r,absolute:i,component:d,flexItem:h,light:y,orientation:c,role:m,textAlign:v,variant:w},k=rR(E);return x.jsx(oR,{as:d,className:Pe(k.root,l),role:m,ref:n,ownerState:E,"aria-orientation":m==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...b,children:a?x.jsx(iR,{className:k.wrapper,ownerState:E,children:a}):null})});pl&&(pl.muiSkipListHighlight=!0);const sR=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:l,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Le(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},h=ft(d,uE,t);return{...t,...h}},aR=Ce(ul,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ll(e,t),!n.disableUnderline&&t.underline]}})(yt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Po.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},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"},[`&.${Po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Po.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(.${Po.disabled}, .${Po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([l])=>{var c;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(c=(e.vars||e).palette[l])==null?void 0:c.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:c})=>l.multiline&&c==="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}}]}})),lR=Ce(dl,{name:"MuiFilledInput",slot:"Input",overridesResolver:cl})(yt(({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}}]}))),hl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:h="input",multiline:y=!1,slotProps:m,slots:v={},type:w="text",...b}=r,E={...r,disableUnderline:i,fullWidth:c,inputComponent:h,multiline:y,type:w},k=sR(r),_={root:{ownerState:E},input:{ownerState:E}},O=m??l?ln(_,m??l):_,C=v.root??a.Root??aR,P=v.input??a.Input??lR;return x.jsx(od,{slots:{root:C,input:P},componentsProps:O,fullWidth:c,inputComponent:h,multiline:y,ref:n,type:w,...b,classes:k})});hl&&(hl.muiName="Input");function cR(e){return at("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const uR=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Le(n)}`,r&&"fullWidth"]};return ft(i,cR,t)},dR=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Le(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%"}}]}),em=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:c="div",disabled:d=!1,error:h=!1,focused:y,fullWidth:m=!1,hiddenLabel:v=!1,margin:w="none",required:b=!1,size:E="medium",variant:k="outlined",..._}=r,O={...r,color:l,component:c,disabled:d,error:h,fullWidth:m,hiddenLabel:v,margin:w,required:b,size:E,variant:k},C=uR(O),[P,M]=j.useState(()=>{let H=!1;return i&&j.Children.forEach(i,Y=>{if(!bu(Y,["Input","Select"]))return;const ee=bu(Y,["Select"])?Y.props.input:Y;ee&&iE(ee.props)&&(H=!0)}),H}),[D,$]=j.useState(()=>{let H=!1;return i&&j.Children.forEach(i,Y=>{bu(Y,["Input","Select"])&&(al(Y.props,!0)||al(Y.props.inputProps,!0))&&(H=!0)}),H}),[z,V]=j.useState(!1);d&&z&&V(!1);const R=y!==void 0&&!d?y:z;let G;j.useRef(!1);const te=j.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:l,disabled:d,error:h,filled:D,focused:R,fullWidth:m,hiddenLabel:v,size:E,onBlur:()=>{V(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{V(!0)},registerEffect:G,required:b,variant:k}),[P,l,d,h,D,R,m,v,G,b,E,k]);return x.jsx(rd.Provider,{value:te,children:x.jsx(dR,{as:c,ownerState:O,className:Pe(C.root,a),ref:n,..._,children:i})})});function fR(e){return at("MuiFormHelperText",e)}const tm=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var nm;const pR=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:l,focused:c,required:d}=e,h={root:["root",i&&"disabled",a&&"error",r&&`size${Le(r)}`,n&&"contained",c&&"focused",l&&"filled",d&&"required"]};return ft(h,fR,t)},hR=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(yt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tm.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}}]}))),gR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:c,error:d,filled:h,focused:y,margin:m,required:v,variant:w,...b}=r,E=ui(),k=ci({props:r,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),_={...r,component:l,contained:k.variant==="filled"||k.variant==="outlined",variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required};delete _.ownerState;const O=pR(_);return x.jsx(hR,{as:l,className:Pe(O.root,a),ref:n,...b,ownerState:_,children:i===" "?nm||(nm=x.jsx("span",{className:"notranslate",children:""})):i})});function mR(e){return at("MuiFormLabel",e)}const gs=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yR=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:l,required:c}=e,d={root:["root",`color${Le(n)}`,i&&"disabled",a&&"error",l&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return ft(d,mR,t)},vR=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(yt(({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(Wr()).map(([t])=>({props:{color:t},style:{[`&.${gs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),bR=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(yt(({theme:e})=>({[`&.${gs.error}`]:{color:(e.vars||e).palette.error.main}}))),xR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:c="label",disabled:d,error:h,filled:y,focused:m,required:v,...w}=r,b=ui(),E=ci({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),k={...r,color:E.color||"primary",component:c,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},_=yR(k);return x.jsxs(vR,{as:c,ownerState:k,className:Pe(_.root,a),ref:n,...w,children:[i,E.required&&x.jsxs(bR,{ownerState:k,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})});function ld(e){return`scale(${e}, ${e**2})`}const wR={entering:{opacity:1,transform:ld(1)},entered:{opacity:1,transform:"none"}},cd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ud=j.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:y,onExit:m,onExited:v,onExiting:w,style:b,timeout:E="auto",TransitionComponent:k=Rr,..._}=t,O=Ih(),C=j.useRef(),P=el(),M=j.useRef(null),D=Jt(M,Xi(a),n),$=ee=>ae=>{if(ee){const fe=M.current;ae===void 0?ee(fe):ee(fe,ae)}},z=$(y),V=$((ee,ae)=>{Hg(ee);const{duration:fe,delay:pe,easing:_e}=rl({style:b,timeout:E,easing:l},{mode:"enter"});let We;E==="auto"?(We=P.transitions.getAutoHeightDuration(ee.clientHeight),C.current=We):We=fe,ee.style.transition=[P.transitions.create("opacity",{duration:We,delay:pe}),P.transitions.create("transform",{duration:cd?We:We*.666,delay:pe,easing:_e})].join(","),d&&d(ee,ae)}),R=$(h),G=$(w),te=$(ee=>{const{duration:ae,delay:fe,easing:pe}=rl({style:b,timeout:E,easing:l},{mode:"exit"});let _e;E==="auto"?(_e=P.transitions.getAutoHeightDuration(ee.clientHeight),C.current=_e):_e=ae,ee.style.transition=[P.transitions.create("opacity",{duration:_e,delay:fe}),P.transitions.create("transform",{duration:cd?_e:_e*.666,delay:cd?fe:fe||_e*.333,easing:pe})].join(","),ee.style.opacity=0,ee.style.transform=ld(.75),m&&m(ee)}),H=$(v),Y=ee=>{E==="auto"&&O.start(C.current||0,ee),r&&r(M.current,ee)};return x.jsx(k,{appear:i,in:c,nodeRef:M,onEnter:V,onEntered:R,onEntering:z,onExit:te,onExited:H,onExiting:G,addEndListener:Y,timeout:E==="auto"?null:E,..._,children:(ee,ae)=>j.cloneElement(a,{style:{opacity:0,transform:ld(.75),visibility:ee==="exited"&&!c?"hidden":void 0,...wR[ee],...b,...a.props.style},ref:D,...ae})})});ud&&(ud.muiSupportAuto=!0);const SR=e=>{const{classes:t,disableUnderline:n}=e,i=ft({root:["root",!n&&"underline"],input:["input"]},lE,t);return{...t,...i}},CR=Ce(ul,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ll(e,t),!n.disableUnderline&&t.underline]}})(yt(({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:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${ps.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ps.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(.${ps.disabled}, .${ps.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ps.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),_R=Ce(dl,{name:"MuiInput",slot:"Input",overridesResolver:cl})({}),gl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:y,slots:m={},type:v="text",...w}=r,b=SR(r),k={root:{ownerState:{disableUnderline:i}}},_=y??l?ln(y??l,k):k,O=m.root??a.Root??CR,C=m.input??a.Input??_R;return x.jsx(od,{slots:{root:O,input:C},slotProps:_,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:v,...w,classes:b})});gl&&(gl.muiName="Input");function ER(e){return at("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const RR=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:l,required:c}=e,d={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Le(r)}`,l],asterisk:[c&&"asterisk"]},h=ft(d,ER,t);return{...t,...h}},PR=Ce(xR,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gs.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]]}})(yt(({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:r})=>t==="filled"&&n.shrink&&r==="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)"}}]}))),rm=j.forwardRef(function(t,n){const r=vt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:c,className:d,...h}=r,y=ui();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const v=ci({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),w={...r,disableAnimation:i,formControl:y,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused},b=RR(w);return x.jsx(PR,{"data-shrink":m,ref:n,className:Pe(b.root,d),...h,ownerState:w,classes:b})}),hi=j.createContext({});function TR(e){return at("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const IR=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ft({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},TR,t)},kR=Ce("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}}]}),dd=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:h,...y}=r,m=j.useMemo(()=>({dense:c}),[c]),v={...r,component:l,dense:c,disablePadding:d},w=IR(v);return x.jsx(hi.Provider,{value:m,children:x.jsxs(kR,{as:l,className:Pe(w.root,a),ref:n,ownerState:v,...y,children:[h,i]})})});function OR(e){return at("MuiListItemButton",e)}const ms=ot("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),AR=(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:r,disabled:i,disableGutters:a,divider:l,selected:c}=e,h=ft({root:["root",r&&"dense",!a&&"gutters",l&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},OR,n);return{...n,...h}},MR=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:AR})(yt(({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"}},[`&.${ms.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ms.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ms.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(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})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ms.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ms.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}}]}))),om=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:l="div",children:c,dense:d=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:m,selected:v=!1,className:w,...b}=r,E=j.useContext(hi),k=j.useMemo(()=>({dense:d||E.dense||!1,alignItems:i,disableGutters:h}),[i,E.dense,d,h]),_=j.useRef(null);wr(()=>{a&&_.current&&_.current.focus()},[a]);const O={...r,alignItems:i,dense:k.dense,disableGutters:h,divider:y,selected:v},C=$R(O),P=Jt(_,n);return x.jsx(hi.Provider,{value:k,children:x.jsx(MR,{ref:P,href:b.href||b.to,component:(b.href||b.to)&&l==="div"?"button":l,focusVisibleClassName:Pe(C.focusVisible,m),ownerState:O,className:Pe(C.root,w),...b,classes:C,children:c})})}),im=ot("MuiListItemIcon",["root","alignItemsFlexStart"]);function BR(e){return at("MuiListItemText",e)}const gi=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),DR=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return ft({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},BR,t)},LR=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gi.primary}`]:t.primary},{[`& .${gi.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(& .${gi.primary})`]:{display:"block"},[`.${Gg.root}:where(& .${gi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),sm=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:h,secondary:y,secondaryTypographyProps:m,...v}=r,{dense:w}=j.useContext(hi);let b=d??i,E=y;const k={...r,disableTypography:l,inset:c,primary:!!b,secondary:!!E,dense:w},_=DR(k);return b!=null&&b.type!==il&&!l&&(b=x.jsx(il,{variant:w?"body2":"body1",className:_.primary,component:h!=null&&h.variant?void 0:"span",...h,children:b})),E!=null&&E.type!==il&&!l&&(E=x.jsx(il,{variant:"body2",className:_.secondary,color:"textSecondary",...m,children:E})),x.jsxs(LR,{className:Pe(_.root,a),ownerState:k,ref:n,...v,children:[b,E]})});function fd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function am(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lm(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 ys(e,t,n,r,i,a){let l=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!lm(c,a)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const jR=j.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:y,variant:m="selectedMenu",...v}=t,w=j.useRef(null),b=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wr(()=>{i&&w.current.focus()},[i]),j.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:P})=>{const M=!w.current.style.width;if(C.clientHeight<w.current.clientHeight&&M){const D=`${Oh(ur(C))}px`;w.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=D,w.current.style.width=`calc(100% + ${D})`}return w.current}}),[]);const E=C=>{const P=w.current,M=C.key;if(C.ctrlKey||C.metaKey||C.altKey){y&&y(C);return}const $=qn(P).activeElement;if(M==="ArrowDown")C.preventDefault(),ys(P,$,h,d,fd);else if(M==="ArrowUp")C.preventDefault(),ys(P,$,h,d,am);else if(M==="Home")C.preventDefault(),ys(P,null,h,d,fd);else if(M==="End")C.preventDefault(),ys(P,null,h,d,am);else if(M.length===1){const z=b.current,V=M.toLowerCase(),R=performance.now();z.keys.length>0&&(R-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=R,z.keys.push(V);const G=$&&!z.repeating&&lm($,z);z.previousKeyMatched&&(G||ys(P,$,!1,d,fd,z))?C.preventDefault():z.previousKeyMatched=!1}y&&y(C)},k=Jt(w,n);let _=-1;j.Children.forEach(l,(C,P)=>{if(!j.isValidElement(C)){_===P&&(_+=1,_>=l.length&&(_=-1));return}C.props.disabled||(m==="selectedMenu"&&C.props.selected||_===-1)&&(_=P),_===P&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(_+=1,_>=l.length&&(_=-1))});const O=j.Children.map(l,(C,P)=>{if(P===_){const M={};return a&&(M.autoFocus=!0),C.props.tabIndex===void 0&&m==="selectedMenu"&&(M.tabIndex=0),j.cloneElement(C,M)}return C});return x.jsx(dd,{role:"menu",ref:k,className:c,onKeyDown:E,tabIndex:i?0:-1,...v,children:O})});function FR(e){return at("MuiPopover",e)}ot("MuiPopover",["root","paper"]);function cm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function um(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function dm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pd(e){return typeof e=="function"?e():e}const NR=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"]},FR,t)},zR=Ce(tR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fm=Ce(T_,{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}),WR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:y,container:m,elevation:v=8,marginThreshold:w=16,open:b,PaperProps:E={},slots:k={},slotProps:_={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:C=ud,transitionDuration:P="auto",TransitionProps:{onEntering:M,...D}={},disableScrollLock:$=!1,...z}=r,V=(_==null?void 0:_.paper)??E,R=j.useRef(),G={...r,anchorOrigin:l,anchorReference:d,elevation:v,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:O,TransitionComponent:C,transitionDuration:P,TransitionProps:D},te=NR(G),H=j.useCallback(()=>{if(d==="anchorPosition")return c;const he=pd(a),de=(he&&he.nodeType===1?he:qn(R.current).body).getBoundingClientRect();return{top:de.top+cm(de,l.vertical),left:de.left+um(de,l.horizontal)}},[a,l.horizontal,l.vertical,c,d]),Y=j.useCallback(he=>({vertical:cm(he,O.vertical),horizontal:um(he,O.horizontal)}),[O.horizontal,O.vertical]),ee=j.useCallback(he=>{const ge={width:he.offsetWidth,height:he.offsetHeight},de=Y(ge);if(d==="none")return{top:null,left:null,transformOrigin:dm(de)};const Te=H();let ve=Te.top-de.vertical,ke=Te.left-de.horizontal;const qe=ve+ge.height,De=ke+ge.width,Re=ur(pd(a)),Fe=Re.innerHeight-w,tt=Re.innerWidth-w;if(w!==null&&ve<w){const $e=ve-w;ve-=$e,de.vertical+=$e}else if(w!==null&&qe>Fe){const $e=qe-Fe;ve-=$e,de.vertical+=$e}if(w!==null&&ke<w){const $e=ke-w;ke-=$e,de.horizontal+=$e}else if(De>tt){const $e=De-tt;ke-=$e,de.horizontal+=$e}return{top:`${Math.round(ve)}px`,left:`${Math.round(ke)}px`,transformOrigin:dm(de)}},[a,d,H,Y,w]),[ae,fe]=j.useState(b),pe=j.useCallback(()=>{const he=R.current;if(!he)return;const ge=ee(he);ge.top!==null&&he.style.setProperty("top",ge.top),ge.left!==null&&(he.style.left=ge.left),he.style.transformOrigin=ge.transformOrigin,fe(!0)},[ee]);j.useEffect(()=>($&&window.addEventListener("scroll",pe),()=>window.removeEventListener("scroll",pe)),[a,$,pe]);const _e=(he,ge)=>{M&&M(he,ge),pe()},We=()=>{fe(!1)};j.useEffect(()=>{b&&pe()}),j.useImperativeHandle(i,()=>b?{updatePosition:()=>{pe()}}:null,[b,pe]),j.useEffect(()=>{if(!b)return;const he=va(()=>{pe()}),ge=ur(a);return ge.addEventListener("resize",he),()=>{he.clear(),ge.removeEventListener("resize",he)}},[a,b,pe]);let be=P;P==="auto"&&!C.muiSupportAuto&&(be=void 0);const Be=m||(a?qn(pd(a)).body:void 0),Ne={slots:k,slotProps:{..._,paper:V}},[Me,Xe]=dr("paper",{elementType:fm,externalForwardedProps:Ne,additionalProps:{elevation:v,className:Pe(te.paper,V==null?void 0:V.className),style:ae?V.style:{...V.style,opacity:0}},ownerState:G}),[Ge,{slotProps:ht,...le}]=dr("root",{elementType:zR,externalForwardedProps:Ne,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Be,open:b},ownerState:G,className:Pe(te.root,y)}),ue=Jt(R,Xe.ref);return x.jsx(Ge,{...le,...!nd(Ge)&&{slotProps:ht,disableScrollLock:$},...z,ref:n,children:x.jsx(C,{appear:!0,in:b,onEntering:_e,onExited:We,timeout:be,...D,children:x.jsx(Me,{...Xe,ref:ue,children:h})})})});function UR(e){return at("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const HR={vertical:"top",horizontal:"right"},GR={vertical:"top",horizontal:"left"},qR=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"],list:["list"]},UR,t)},VR=Ce(WR,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KR=Ce(fm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),YR=Ce(jR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),XR=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:h,open:y,PaperProps:m={},PopoverClasses:v,transitionDuration:w="auto",TransitionProps:{onEntering:b,...E}={},variant:k="selectedMenu",slots:_={},slotProps:O={},...C}=r,P=Hu(),M={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:b,PaperProps:m,transitionDuration:w,TransitionProps:E,variant:k},D=qR(M),$=i&&!c&&y,z=j.useRef(null),V=(ae,fe)=>{z.current&&z.current.adjustStyleForScrollbar(ae,{direction:P?"rtl":"ltr"}),b&&b(ae,fe)},R=ae=>{ae.key==="Tab"&&(ae.preventDefault(),h&&h(ae,"tabKeyDown"))};let G=-1;j.Children.map(a,(ae,fe)=>{j.isValidElement(ae)&&(ae.props.disabled||(k==="selectedMenu"&&ae.props.selected||G===-1)&&(G=fe))});const te=_.paper??KR,H=O.paper??m,Y=Xo({elementType:_.root,externalSlotProps:O.root,ownerState:M,className:[D.root,l]}),ee=Xo({elementType:te,externalSlotProps:H,ownerState:M,className:D.paper});return x.jsx(VR,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?HR:GR,slots:{paper:te,root:_.root},slotProps:{root:Y,paper:ee},open:y,ref:n,transitionDuration:w,TransitionProps:{onEntering:V,...E},ownerState:M,...C,classes:v,children:x.jsx(YR,{onKeyDown:R,actions:z,autoFocus:i&&(G===-1||c),autoFocusItem:$,variant:k,...d,className:Pe(D.list,d.className),children:a})})});function JR(e){return at("MuiMenuItem",e)}const vs=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ZR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},QR=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:l}=e,d=ft({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},JR,l);return{...l,...d}},eP=Ce(li,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ZR})(yt(({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"}},[`&.${vs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(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})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qg.inset}`]:{marginLeft:52},[`& .${gi.root}`]:{marginTop:0,marginBottom:0},[`& .${gi.inset}`]:{paddingLeft:36},[`& .${im.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,[`& .${im.root} svg`]:{fontSize:"1.25rem"}}}]}))),tP=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:h,role:y="menuitem",tabIndex:m,className:v,...w}=r,b=j.useContext(hi),E=j.useMemo(()=>({dense:l||b.dense||!1,disableGutters:d}),[b.dense,l,d]),k=j.useRef(null);wr(()=>{i&&k.current&&k.current.focus()},[i]);const _={...r,dense:E.dense,divider:c,disableGutters:d},O=QR(r),C=Jt(k,n);let P;return r.disabled||(P=m!==void 0?m:-1),x.jsx(hi.Provider,{value:E,children:x.jsx(eP,{ref:C,role:y,tabIndex:P,component:a,focusVisibleClassName:Pe(O.focusVisible,h),className:Pe(O.root,v),...w,ownerState:_,classes:O})})});function nP(e){return at("MuiNativeSelect",e)}const hd=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),rP=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Le(n)}`,a&&"iconOpen",r&&"disabled"]};return ft(c,nP,t)},pm=Ce("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hd.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}}}]})),oP=Ce(pm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hd.multiple}`]:t.multiple}]}})({}),hm=Ce("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hd.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}}]})),iP=Ce(hm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})({}),sP=j.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:l,inputRef:c,variant:d="standard",...h}=t,y={...t,disabled:i,variant:d,error:a},m=rP(y);return x.jsxs(j.Fragment,{children:[x.jsx(oP,{ownerState:y,className:Pe(m.select,r),disabled:i,ref:c||n,...h}),t.multiple?null:x.jsx(iP,{as:l,ownerState:y,className:m.icon})]})});var gm;const aP=Ce("fieldset",{shouldForwardProp:Mn})({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%"}),lP=Ce("legend",{shouldForwardProp:Mn})(yt(({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 cP(e){const{children:t,classes:n,className:r,label:i,notched:a,...l}=e,c=i!=null&&i!=="",d={...e,notched:a,withLabel:c};return x.jsx(aP,{"aria-hidden":!0,className:r,ownerState:d,...l,children:x.jsx(lP,{ownerState:d,children:c?x.jsx("span",{children:i}):gm||(gm=x.jsx("span",{className:"notranslate",children:""}))})})}const uP=e=>{const{classes:t}=e,r=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cE,t);return{...t,...r}},dP=Ce(ul,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ll})(yt(({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 .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wr()).map(([n])=>({props:{color:n},style:{[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Pr.error} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pr.disabled} .${Pr.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),fP=Ce(cP,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(yt(({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}})),pP=Ce(dl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cl})(yt(({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}}]}))),ml=j.forwardRef(function(t,n){var r;const i=vt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:c="input",label:d,multiline:h=!1,notched:y,slots:m={},type:v="text",...w}=i,b=uP(i),E=ui(),k=ci({props:i,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...i,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:E,fullWidth:l,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:v},O=m.root??a.Root??dP,C=m.input??a.Input??pP;return x.jsx(od,{slots:{root:O,input:C},renderSuffix:P=>x.jsx(fP,{ownerState:_,className:b.notchedOutline,label:d!=null&&d!==""&&k.required?r||(r=x.jsxs(j.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:l,inputComponent:c,multiline:h,ref:n,type:v,...w,classes:{...b,notchedOutline:null}})});ml&&(ml.muiName="Input");function hP(e){return at("MuiSelect",e)}const bs=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var mm;const gP=Ce(pm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${bs.select}`]:t.select},{[`&.${bs.select}`]:t[n.variant]},{[`&.${bs.error}`]:t.error},{[`&.${bs.multiple}`]:t.multiple}]}})({[`&.${bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mP=Ce(hm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})({}),yP=Ce("input",{shouldForwardProp:e=>Dg(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 ym(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vP(e){return e==null||typeof e=="string"&&!e.trim()}const bP=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Le(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ft(c,hP,t)},xP=j.forwardRef(function(t,n){var Z;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:l,children:c,className:d,defaultOpen:h,defaultValue:y,disabled:m,displayEmpty:v,error:w=!1,IconComponent:b,inputRef:E,labelId:k,MenuProps:_={},multiple:O,name:C,onBlur:P,onChange:M,onClose:D,onFocus:$,onOpen:z,open:V,readOnly:R,renderValue:G,SelectDisplayProps:te={},tabIndex:H,type:Y,value:ee,variant:ae="standard",...fe}=t,[pe,_e]=Rh({controlled:ee,default:y,name:"Select"}),[We,be]=Rh({controlled:V,default:h,name:"Select"}),Be=j.useRef(null),Ne=j.useRef(null),[Me,Xe]=j.useState(null),{current:Ge}=j.useRef(V!=null),[ht,le]=j.useState(),ue=Jt(n,E),he=j.useCallback(ce=>{Ne.current=ce,ce&&Xe(ce)},[]),ge=Me==null?void 0:Me.parentNode;j.useImperativeHandle(ue,()=>({focus:()=>{Ne.current.focus()},node:Be.current,value:pe}),[pe]),j.useEffect(()=>{h&&We&&Me&&!Ge&&(le(l?null:ge.clientWidth),Ne.current.focus())},[Me,l]),j.useEffect(()=>{a&&Ne.current.focus()},[a]),j.useEffect(()=>{if(!k)return;const ce=qn(Ne.current).getElementById(k);if(ce){const oe=()=>{getSelection().isCollapsed&&Ne.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[k]);const de=(ce,oe)=>{ce?z&&z(oe):D&&D(oe),Ge||(le(l?null:ge.clientWidth),be(ce))},Te=ce=>{ce.button===0&&(ce.preventDefault(),Ne.current.focus(),de(!0,ce))},ve=ce=>{de(!1,ce)},ke=j.Children.toArray(c),qe=ce=>{const oe=ke.find(se=>se.props.value===ce.target.value);oe!==void 0&&(_e(oe.props.value),M&&M(ce,oe))},De=ce=>oe=>{let se;if(oe.currentTarget.hasAttribute("tabindex")){if(O){se=Array.isArray(pe)?pe.slice():[];const Se=pe.indexOf(ce.props.value);Se===-1?se.push(ce.props.value):se.splice(Se,1)}else se=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),pe!==se&&(_e(se),M)){const Se=oe.nativeEvent||oe,we=new Se.constructor(Se.type,Se);Object.defineProperty(we,"target",{writable:!0,value:{value:se,name:C}}),M(we,ce)}O||de(!1,oe)}},Re=ce=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),de(!0,ce))},Fe=Me!==null&&We,tt=ce=>{!Fe&&P&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:pe,name:C}}),P(ce))};delete fe["aria-invalid"];let $e,st;const ye=[];let Ot=!1;(al({value:pe})||v)&&(G?$e=G(pe):Ot=!0);const Ft=ke.map(ce=>{if(!j.isValidElement(ce))return null;let oe;if(O){if(!Array.isArray(pe))throw new Error(jr(2));oe=pe.some(se=>ym(se,ce.props.value)),oe&&Ot&&ye.push(ce.props.children)}else oe=ym(pe,ce.props.value),oe&&Ot&&(st=ce.props.children);return j.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:De(ce),onKeyUp:se=>{se.key===" "&&se.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(se)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});Ot&&(O?ye.length===0?$e=null:$e=ye.reduce((ce,oe,se)=>(ce.push(oe),se<ye.length-1&&ce.push(", "),ce),[]):$e=st);let yn=ht;!l&&Ge&&Me&&(yn=ge.clientWidth);let T;typeof H<"u"?T=H:T=m?null:0;const p=te.id||(C?`mui-component-select-${C}`:void 0),g={...t,variant:ae,value:pe,open:Fe,error:w},B=bP(g),F={..._.PaperProps,...(Z=_.slotProps)==null?void 0:Z.paper},q=Eh();return x.jsxs(j.Fragment,{children:[x.jsx(gP,{as:"div",ref:he,tabIndex:T,role:"combobox","aria-controls":q,"aria-disabled":m?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[k,p].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:m||R?null:Te,onBlur:tt,onFocus:$,...te,ownerState:g,className:Pe(te.className,B.select,d),id:p,children:vP($e)?mm||(mm=x.jsx("span",{className:"notranslate",children:""})):$e}),x.jsx(yP,{"aria-invalid":w,value:Array.isArray(pe)?pe.join(","):pe,name:C,ref:Be,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:m,className:B.nativeInput,autoFocus:a,...fe,ownerState:g}),x.jsx(mP,{as:b,className:B.icon,ownerState:g}),x.jsx(XR,{id:`menu-${C||""}`,anchorEl:ge,open:Fe,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,MenuListProps:{"aria-labelledby":k,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:q,..._.MenuListProps},slotProps:{..._.slotProps,paper:{...F,style:{minWidth:yn,...F!=null?F.style:null}}},children:Ft})]})}),wP=e=>{const{classes:t}=e;return t},gd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mn(e)&&e!=="variant",slot:"Root"},SP=Ce(gl,gd)(""),CP=Ce(ml,gd)(""),_P=Ce(hl,gd)(""),md=j.forwardRef(function(t,n){const r=y_({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:y=dE,id:m,input:v,inputProps:w,label:b,labelId:E,MenuProps:k,multiple:_=!1,native:O=!1,onClose:C,onOpen:P,open:M,renderValue:D,SelectDisplayProps:$,variant:z="outlined",...V}=r,R=O?sP:xP,G=ui(),te=ci({props:r,muiFormControl:G,states:["variant","error"]}),H=te.variant||z,Y={...r,variant:H,classes:l},ee=wP(Y),{root:ae,...fe}=ee,pe=v||{standard:x.jsx(SP,{ownerState:Y}),outlined:x.jsx(CP,{label:b,ownerState:Y}),filled:x.jsx(_P,{ownerState:Y})}[H],_e=Jt(n,Xi(pe));return x.jsx(j.Fragment,{children:j.cloneElement(pe,{inputComponent:R,inputProps:{children:a,error:te.error,IconComponent:y,variant:H,type:void 0,multiple:_,...O?{id:m}:{autoWidth:i,defaultOpen:d,displayEmpty:h,labelId:E,MenuProps:k,onClose:C,onOpen:P,open:M,renderValue:D,SelectDisplayProps:{id:m,...$}},...w,classes:w?ln(fe,w.classes):fe,...v?v.props.inputProps:{}},...(_&&O||h)&&H==="outlined"?{notched:!0}:{},ref:_e,className:Pe(pe.props.className,c,ee.root),...!v&&{variant:H},...V})})});md.muiName="Select";function EP(e){return at("MuiTab",e)}const Xn=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),RP=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:l,selected:c,disabled:d}=e,h={root:["root",a&&l&&"labelIcon",`textColor${Le(n)}`,r&&"fullWidth",i&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return ft(h,EP,t)},PP=Ce(li,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Xn.iconWrapper}`]:t.iconWrapper},{[`& .${Xn.icon}`]:t.icon}]}})(yt(({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:{[`& > .${Xn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Xn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Xn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Xn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Xn.selected}`]:{opacity:1},[`&.${Xn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Xn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Xn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Xn.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)}}]}))),TP=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:h="top",indicator:y,label:m,onChange:v,onClick:w,onFocus:b,selected:E,selectionFollowsFocus:k,textColor:_="inherit",value:O,wrapped:C=!1,...P}=r,M={...r,disabled:a,disableFocusRipple:l,selected:E,icon:!!d,iconPosition:h,label:!!m,fullWidth:c,textColor:_,wrapped:C},D=RP(M),$=d&&m&&j.isValidElement(d)?j.cloneElement(d,{className:Pe(D.icon,d.props.className)}):d,z=R=>{!E&&v&&v(R,O),w&&w(R)},V=R=>{k&&!E&&v&&v(R,O),b&&b(R)};return x.jsxs(PP,{focusRipple:!l,className:Pe(D.root,i),ref:n,role:"tab","aria-selected":E,disabled:a,onClick:z,onFocus:V,ownerState:M,tabIndex:E?0:-1,...P,children:[h==="top"||h==="start"?x.jsxs(j.Fragment,{children:[$,m]}):x.jsxs(j.Fragment,{children:[m,$]}),y]})}),IP=Cn(x.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),kP=Cn(x.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function OP(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function AP(e,t,n,r={},i=()=>{}){const{ease:a=OP,duration:l=300}=r;let c=null;const d=t[e];let h=!1;const y=()=>{h=!0},m=v=>{if(h){i(new Error("Animation cancelled"));return}c===null&&(c=v);const w=Math.min(1,(v-c)/l);if(t[e]=a(w)*(n-d)+d,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return d===n?(i(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const $P={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function MP(e){const{onChange:t,...n}=e,r=j.useRef(),i=j.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wr(()=>{const l=va(()=>{const d=r.current;a(),d!==r.current&&t(r.current)}),c=ur(i.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[t]),j.useEffect(()=>{a(),t(r.current)},[t]),x.jsx("div",{style:$P,ref:i,...n})}function BP(e){return at("MuiTabScrollButton",e)}const DP=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),LP=e=>{const{classes:t,orientation:n,disabled:r}=e;return ft({root:["root",n,r&&"disabled"]},BP,t)},jP=Ce(li,{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,[`&.${DP.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),FP=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:c,orientation:d,disabled:h,...y}=r,m=Hu(),v={isRtl:m,...r},w=LP(v),b=a.StartScrollButtonIcon??IP,E=a.EndScrollButtonIcon??kP,k=Xo({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),_=Xo({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return x.jsx(jP,{component:"div",className:Pe(w.root,i),ref:n,role:null,ownerState:v,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:c==="left"?x.jsx(b,{...k}):x.jsx(E,{..._})})});function NP(e){return at("MuiTabs",e)}const yd=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,bm=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,yl=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},zP=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:d}=e;return ft({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},NP,d)},WP=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yd.scrollButtons}`]:t.scrollButtons},{[`& .${yd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(yt(({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:{[`& .${yd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),UP=Ce("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"}}]}),HP=Ce("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"}}]}),GP=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(yt(({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}}]}))),qP=Ce(MP)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),xm={},VP=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTabs"}),i=el(),a=Hu(),{"aria-label":l,"aria-labelledby":c,action:d,centered:h=!1,children:y,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:b="primary",onChange:E,orientation:k="horizontal",ScrollButtonComponent:_=FP,scrollButtons:O="auto",selectionFollowsFocus:C,slots:P={},slotProps:M={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:z="primary",value:V,variant:R="standard",visibleScrollbar:G=!1,...te}=r,H=R==="scrollable",Y=k==="vertical",ee=Y?"scrollTop":"scrollLeft",ae=Y?"top":"left",fe=Y?"bottom":"right",pe=Y?"clientHeight":"clientWidth",_e=Y?"height":"width",We={...r,component:v,allowScrollButtonsMobile:w,indicatorColor:b,orientation:k,vertical:Y,scrollButtons:O,textColor:z,variant:R,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!Y,scrollableY:H&&Y,centered:h&&!H,scrollButtonsHideMobile:!w},be=zP(We),Be=Xo({elementType:P.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:We}),Ne=Xo({elementType:P.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:We}),[Me,Xe]=j.useState(!1),[Ge,ht]=j.useState(xm),[le,ue]=j.useState(!1),[he,ge]=j.useState(!1),[de,Te]=j.useState(!1),[ve,ke]=j.useState({overflow:"hidden",scrollbarWidth:0}),qe=new Map,De=j.useRef(null),Re=j.useRef(null),Fe=()=>{const oe=De.current;let se;if(oe){const we=oe.getBoundingClientRect();se={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let Se;if(oe&&V!==!1){const we=Re.current.children;if(we.length>0){const It=we[qe.get(V)];Se=It?It.getBoundingClientRect():null}}return{tabsMeta:se,tabMeta:Se}},tt=Fr(()=>{const{tabsMeta:oe,tabMeta:se}=Fe();let Se=0,we;Y?(we="top",se&&oe&&(Se=se.top-oe.top+oe.scrollTop)):(we=a?"right":"left",se&&oe&&(Se=(a?-1:1)*(se[we]-oe[we]+oe.scrollLeft)));const It={[we]:Se,[_e]:se?se[_e]:0};if(typeof Ge[we]!="number"||typeof Ge[_e]!="number")ht(It);else{const tr=Math.abs(Ge[we]-It[we]),$r=Math.abs(Ge[_e]-It[_e]);(tr>=1||$r>=1)&&ht(It)}}),$e=(oe,{animation:se=!0}={})=>{se?AP(ee,De.current,oe,{duration:i.transitions.duration.standard}):De.current[ee]=oe},st=oe=>{let se=De.current[ee];Y?se+=oe:se+=oe*(a?-1:1),$e(se)},ye=()=>{const oe=De.current[pe];let se=0;const Se=Array.from(Re.current.children);for(let we=0;we<Se.length;we+=1){const It=Se[we];if(se+It[pe]>oe){we===0&&(se=oe);break}se+=It[pe]}return se},Ot=()=>{st(-1*ye())},Ft=()=>{st(ye())},yn=j.useCallback(oe=>{ke({overflow:null,scrollbarWidth:oe})},[]),T=()=>{const oe={};oe.scrollbarSizeListener=H?x.jsx(qP,{onChange:yn,className:Pe(be.scrollableX,be.hideScrollbar)}):null;const Se=H&&(O==="auto"&&(le||he)||O===!0);return oe.scrollButtonStart=Se?x.jsx(_,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Be},orientation:k,direction:a?"right":"left",onClick:Ot,disabled:!le,...$,className:Pe(be.scrollButtons,$.className)}):null,oe.scrollButtonEnd=Se?x.jsx(_,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ne},orientation:k,direction:a?"left":"right",onClick:Ft,disabled:!he,...$,className:Pe(be.scrollButtons,$.className)}):null,oe},p=Fr(oe=>{const{tabsMeta:se,tabMeta:Se}=Fe();if(!(!Se||!se)){if(Se[ae]<se[ae]){const we=se[ee]+(Se[ae]-se[ae]);$e(we,{animation:oe})}else if(Se[fe]>se[fe]){const we=se[ee]+(Se[fe]-se[fe]);$e(we,{animation:oe})}}}),g=Fr(()=>{H&&O!==!1&&Te(!de)});j.useEffect(()=>{const oe=va(()=>{De.current&&tt()});let se;const Se=tr=>{tr.forEach($r=>{$r.removedNodes.forEach(uo=>{se==null||se.unobserve(uo)}),$r.addedNodes.forEach(uo=>{se==null||se.observe(uo)})}),oe(),g()},we=ur(De.current);we.addEventListener("resize",oe);let It;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(oe),Array.from(Re.current.children).forEach(tr=>{se.observe(tr)})),typeof MutationObserver<"u"&&(It=new MutationObserver(Se),It.observe(Re.current,{childList:!0})),()=>{oe.clear(),we.removeEventListener("resize",oe),It==null||It.disconnect(),se==null||se.disconnect()}},[tt,g]),j.useEffect(()=>{const oe=Array.from(Re.current.children),se=oe.length;if(typeof IntersectionObserver<"u"&&se>0&&H&&O!==!1){const Se=oe[0],we=oe[se-1],It={root:De.current,threshold:.99},tr=Ns=>{ue(!Ns[0].isIntersecting)},$r=new IntersectionObserver(tr,It);$r.observe(Se);const uo=Ns=>{ge(!Ns[0].isIntersecting)},bc=new IntersectionObserver(uo,It);return bc.observe(we),()=>{$r.disconnect(),bc.disconnect()}}},[H,O,de,y==null?void 0:y.length]),j.useEffect(()=>{Xe(!0)},[]),j.useEffect(()=>{tt()}),j.useEffect(()=>{p(xm!==Ge)},[p,Ge]),j.useImperativeHandle(d,()=>({updateIndicator:tt,updateScrollButtons:g}),[tt,g]);const B=x.jsx(GP,{...D,className:Pe(be.indicator,D.className),ownerState:We,style:{...Ge,...D.style}});let F=0;const q=j.Children.map(y,oe=>{if(!j.isValidElement(oe))return null;const se=oe.props.value===void 0?F:oe.props.value;qe.set(se,F);const Se=se===V;return F+=1,j.cloneElement(oe,{fullWidth:R==="fullWidth",indicator:Se&&!Me&&B,selected:Se,selectionFollowsFocus:C,onChange:E,textColor:z,value:se,...F===1&&V===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),Z=oe=>{const se=Re.current,Se=qn(se).activeElement;if(Se.getAttribute("role")!=="tab")return;let It=k==="horizontal"?"ArrowLeft":"ArrowUp",tr=k==="horizontal"?"ArrowRight":"ArrowDown";switch(k==="horizontal"&&a&&(It="ArrowRight",tr="ArrowLeft"),oe.key){case It:oe.preventDefault(),yl(se,Se,bm);break;case tr:oe.preventDefault(),yl(se,Se,vm);break;case"Home":oe.preventDefault(),yl(se,null,vm);break;case"End":oe.preventDefault(),yl(se,null,bm);break}},ce=T();return x.jsxs(WP,{className:Pe(be.root,m),ownerState:We,ref:n,as:v,...te,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,x.jsxs(UP,{className:be.scroller,ownerState:We,style:{overflow:ve.overflow,[Y?`margin${a?"Left":"Right"}`:"marginBottom"]:G?void 0:-ve.scrollbarWidth},ref:De,children:[x.jsx(HP,{"aria-label":l,"aria-labelledby":c,"aria-orientation":k==="vertical"?"vertical":null,className:be.flexContainer,ownerState:We,onKeyDown:Z,ref:Re,role:"tablist",children:q}),Me&&B]}),ce.scrollButtonEnd]})});function KP(e){return at("MuiTextField",e)}ot("MuiTextField",["root"]);const YP={standard:gl,filled:hl,outlined:ml},XP=e=>{const{classes:t}=e;return ft({root:["root"]},KP,t)},JP=Ce(em,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vl=j.forwardRef(function(t,n){const r=vt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:c,color:d="primary",defaultValue:h,disabled:y=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:b,id:E,InputLabelProps:k,inputProps:_,InputProps:O,inputRef:C,label:P,maxRows:M,minRows:D,multiline:$=!1,name:z,onBlur:V,onChange:R,onFocus:G,placeholder:te,required:H=!1,rows:Y,select:ee=!1,SelectProps:ae,slots:fe={},slotProps:pe={},type:_e,value:We,variant:be="outlined",...Be}=r,Ne={...r,autoFocus:a,color:d,disabled:y,error:m,fullWidth:w,multiline:$,required:H,select:ee,variant:be},Me=XP(Ne),Xe=Eh(E),Ge=b&&Xe?`${Xe}-helper-text`:void 0,ht=P&&Xe?`${Xe}-label`:void 0,le=YP[be],ue={slots:fe,slotProps:{input:O,inputLabel:k,htmlInput:_,formHelperText:v,select:ae,...pe}},he={},ge=ue.slotProps.inputLabel;be==="outlined"&&(ge&&typeof ge.shrink<"u"&&(he.notched=ge.shrink),he.label=P),ee&&((!ae||!ae.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const[de,Te]=dr("input",{elementType:le,externalForwardedProps:ue,additionalProps:he,ownerState:Ne}),[ve,ke]=dr("inputLabel",{elementType:rm,externalForwardedProps:ue,ownerState:Ne}),[qe,De]=dr("htmlInput",{elementType:"input",externalForwardedProps:ue,ownerState:Ne}),[Re,Fe]=dr("formHelperText",{elementType:gR,externalForwardedProps:ue,ownerState:Ne}),[tt,$e]=dr("select",{elementType:md,externalForwardedProps:ue,ownerState:Ne}),st=x.jsx(de,{"aria-describedby":Ge,autoComplete:i,autoFocus:a,defaultValue:h,fullWidth:w,multiline:$,name:z,rows:Y,maxRows:M,minRows:D,type:_e,value:We,id:Xe,inputRef:C,onBlur:V,onChange:R,onFocus:G,placeholder:te,inputProps:De,slots:{input:fe.htmlInput?qe:void 0},...Te});return x.jsxs(JP,{className:Pe(Me.root,c),disabled:y,error:m,fullWidth:w,ref:n,required:H,color:d,variant:be,ownerState:Ne,...Be,children:[P!=null&&P!==""&&x.jsx(ve,{htmlFor:Xe,id:ht,...ke,children:P}),ee?x.jsx(tt,{"aria-describedby":Ge,id:Xe,labelId:ht,value:We,input:st,...$e,children:l}):st,b&&x.jsx(Re,{id:Ge,...Fe,children:b})]})});var bl={exports:{}};/**
|
|
152
152
|
* @license
|
|
153
153
|
* Lodash <https://lodash.com/>
|
|
154
154
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
155
155
|
* Released under MIT license <https://lodash.com/license>
|
|
156
156
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
157
157
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
158
|
-
*/yl.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,v=2,S=4,x=1,R=2,O=1,_=2,I=4,E=8,P=16,M=32,D=64,$=128,z=256,V=512,b=30,H="...",Q=800,ee=16,X=1,te=2,le=3,fe=1/0,pe=9007199254740991,_e=17976931348623157e292,We=NaN,be=4294967295,Be=be-1,Ne=be>>>1,Me=[["ary",$],["bind",O],["bindKey",_],["curry",E],["curryRight",P],["flip",V],["partial",M],["partialRight",D],["rearg",z]],Xe="[object Arguments]",Ge="[object Array]",ht="[object AsyncFunction]",ae="[object Boolean]",ue="[object Date]",he="[object DOMException]",ge="[object Error]",de="[object Function]",Pe="[object GeneratorFunction]",ve="[object Map]",Ie="[object Number]",qe="[object Null]",De="[object Object]",Re="[object Promise]",Fe="[object Proxy]",tt="[object RegExp]",$e="[object Set]",it="[object String]",ye="[object Symbol]",Ot="[object Undefined]",Ft="[object WeakMap]",mn="[object WeakSet]",T="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",se="[object Uint16Array]",Se="[object Uint32Array]",we=/\b__p \+= '';/g,kt=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$r=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,vc=RegExp($r.source),js=RegExp(uo.source),JA=/<%-([\s\S]+?)%>/g,ZA=/<%([\s\S]+?)%>/g,$0=/<%=([\s\S]+?)%>/g,QA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e$=/^\w*$/,t$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/[\\^$.*+?()[\]{}|]/g,n$=RegExp(Df.source),Lf=/^\s+/,r$=/\s/,o$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i$=/\{\n\/\* \[wrapped with (.+)\] \*/,s$=/,? & /,a$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l$=/[()=,{}\[\]\/\s]/,c$=/\\(\\)?/g,u$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,M0=/\w*$/,d$=/^[-+]0x[0-9a-f]+$/i,f$=/^0b[01]+$/i,p$=/^\[object .+?Constructor\]$/,h$=/^0o[0-7]+$/i,g$=/^(?:0|[1-9]\d*)$/,m$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bc=/($^)/,y$=/['\n\r\u2028\u2029\\]/g,xc="\\ud800-\\udfff",v$="\\u0300-\\u036f",b$="\\ufe20-\\ufe2f",x$="\\u20d0-\\u20ff",B0=v$+b$+x$,D0="\\u2700-\\u27bf",L0="a-z\\xdf-\\xf6\\xf8-\\xff",w$="\\xac\\xb1\\xd7\\xf7",S$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",C$="\\u2000-\\u206f",_$=" \\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",j0="A-Z\\xc0-\\xd6\\xd8-\\xde",F0="\\ufe0e\\ufe0f",N0=w$+S$+C$+_$,jf="['’]",E$="["+xc+"]",z0="["+N0+"]",wc="["+B0+"]",W0="\\d+",R$="["+D0+"]",U0="["+L0+"]",H0="[^"+xc+N0+W0+D0+L0+j0+"]",Ff="\\ud83c[\\udffb-\\udfff]",T$="(?:"+wc+"|"+Ff+")",G0="[^"+xc+"]",Nf="(?:\\ud83c[\\udde6-\\uddff]){2}",zf="[\\ud800-\\udbff][\\udc00-\\udfff]",Oi="["+j0+"]",q0="\\u200d",V0="(?:"+U0+"|"+H0+")",P$="(?:"+Oi+"|"+H0+")",K0="(?:"+jf+"(?:d|ll|m|re|s|t|ve))?",Y0="(?:"+jf+"(?:D|LL|M|RE|S|T|VE))?",X0=T$+"?",J0="["+F0+"]?",k$="(?:"+q0+"(?:"+[G0,Nf,zf].join("|")+")"+J0+X0+")*",I$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",O$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Z0=J0+X0+k$,A$="(?:"+[R$,Nf,zf].join("|")+")"+Z0,$$="(?:"+[G0+wc+"?",wc,Nf,zf,E$].join("|")+")",M$=RegExp(jf,"g"),B$=RegExp(wc,"g"),Wf=RegExp(Ff+"(?="+Ff+")|"+$$+Z0,"g"),D$=RegExp([Oi+"?"+U0+"+"+K0+"(?="+[z0,Oi,"$"].join("|")+")",P$+"+"+Y0+"(?="+[z0,Oi+V0,"$"].join("|")+")",Oi+"?"+V0+"+"+K0,Oi+"+"+Y0,O$,I$,W0,A$].join("|"),"g"),L$=RegExp("["+q0+xc+B0+F0+"]"),j$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,F$=["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"],N$=-1,Tt={};Tt[g]=Tt[B]=Tt[F]=Tt[G]=Tt[Y]=Tt[ce]=Tt[oe]=Tt[se]=Tt[Se]=!0,Tt[Xe]=Tt[Ge]=Tt[T]=Tt[ae]=Tt[p]=Tt[ue]=Tt[ge]=Tt[de]=Tt[ve]=Tt[Ie]=Tt[De]=Tt[tt]=Tt[$e]=Tt[it]=Tt[Ft]=!1;var Et={};Et[Xe]=Et[Ge]=Et[T]=Et[p]=Et[ae]=Et[ue]=Et[g]=Et[B]=Et[F]=Et[G]=Et[Y]=Et[ve]=Et[Ie]=Et[De]=Et[tt]=Et[$e]=Et[it]=Et[ye]=Et[ce]=Et[oe]=Et[se]=Et[Se]=!0,Et[ge]=Et[de]=Et[Ft]=!1;var z$={À:"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"},W$={"&":"&","<":"<",">":">",'"':""","'":"'"},U$={"&":"&","<":"<",">":">",""":'"',"'":"'"},H$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},G$=parseFloat,q$=parseInt,Q0=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,V$=typeof self=="object"&&self&&self.Object===Object&&self,on=Q0||V$||Function("return this")(),Uf=t&&!t.nodeType&&t,No=Uf&&!0&&e&&!e.nodeType&&e,ev=No&&No.exports===Uf,Hf=ev&&Q0.process,nr=function(){try{var W=No&&No.require&&No.require("util").types;return W||Hf&&Hf.binding&&Hf.binding("util")}catch{}}(),tv=nr&&nr.isArrayBuffer,nv=nr&&nr.isDate,rv=nr&&nr.isMap,ov=nr&&nr.isRegExp,iv=nr&&nr.isSet,sv=nr&&nr.isTypedArray;function jn(W,J,q){switch(q.length){case 0:return W.call(J);case 1:return W.call(J,q[0]);case 2:return W.call(J,q[0],q[1]);case 3:return W.call(J,q[0],q[1],q[2])}return W.apply(J,q)}function K$(W,J,q,xe){for(var ze=-1,ut=W==null?0:W.length;++ze<ut;){var Yt=W[ze];J(xe,Yt,q(Yt),W)}return xe}function rr(W,J){for(var q=-1,xe=W==null?0:W.length;++q<xe&&J(W[q],q,W)!==!1;);return W}function Y$(W,J){for(var q=W==null?0:W.length;q--&&J(W[q],q,W)!==!1;);return W}function av(W,J){for(var q=-1,xe=W==null?0:W.length;++q<xe;)if(!J(W[q],q,W))return!1;return!0}function fo(W,J){for(var q=-1,xe=W==null?0:W.length,ze=0,ut=[];++q<xe;){var Yt=W[q];J(Yt,q,W)&&(ut[ze++]=Yt)}return ut}function Sc(W,J){var q=W==null?0:W.length;return!!q&&Ai(W,J,0)>-1}function Gf(W,J,q){for(var xe=-1,ze=W==null?0:W.length;++xe<ze;)if(q(J,W[xe]))return!0;return!1}function It(W,J){for(var q=-1,xe=W==null?0:W.length,ze=Array(xe);++q<xe;)ze[q]=J(W[q],q,W);return ze}function po(W,J){for(var q=-1,xe=J.length,ze=W.length;++q<xe;)W[ze+q]=J[q];return W}function qf(W,J,q,xe){var ze=-1,ut=W==null?0:W.length;for(xe&&ut&&(q=W[++ze]);++ze<ut;)q=J(q,W[ze],ze,W);return q}function X$(W,J,q,xe){var ze=W==null?0:W.length;for(xe&&ze&&(q=W[--ze]);ze--;)q=J(q,W[ze],ze,W);return q}function Vf(W,J){for(var q=-1,xe=W==null?0:W.length;++q<xe;)if(J(W[q],q,W))return!0;return!1}var J$=Kf("length");function Z$(W){return W.split("")}function Q$(W){return W.match(a$)||[]}function lv(W,J,q){var xe;return q(W,function(ze,ut,Yt){if(J(ze,ut,Yt))return xe=ut,!1}),xe}function Cc(W,J,q,xe){for(var ze=W.length,ut=q+(xe?1:-1);xe?ut--:++ut<ze;)if(J(W[ut],ut,W))return ut;return-1}function Ai(W,J,q){return J===J?dM(W,J,q):Cc(W,cv,q)}function eM(W,J,q,xe){for(var ze=q-1,ut=W.length;++ze<ut;)if(xe(W[ze],J))return ze;return-1}function cv(W){return W!==W}function uv(W,J){var q=W==null?0:W.length;return q?Xf(W,J)/q:We}function Kf(W){return function(J){return J==null?n:J[W]}}function Yf(W){return function(J){return W==null?n:W[J]}}function dv(W,J,q,xe,ze){return ze(W,function(ut,Yt,Ct){q=xe?(xe=!1,ut):J(q,ut,Yt,Ct)}),q}function tM(W,J){var q=W.length;for(W.sort(J);q--;)W[q]=W[q].value;return W}function Xf(W,J){for(var q,xe=-1,ze=W.length;++xe<ze;){var ut=J(W[xe]);ut!==n&&(q=q===n?ut:q+ut)}return q}function Jf(W,J){for(var q=-1,xe=Array(W);++q<W;)xe[q]=J(q);return xe}function nM(W,J){return It(J,function(q){return[q,W[q]]})}function fv(W){return W&&W.slice(0,mv(W)+1).replace(Lf,"")}function Fn(W){return function(J){return W(J)}}function Zf(W,J){return It(J,function(q){return W[q]})}function Fs(W,J){return W.has(J)}function pv(W,J){for(var q=-1,xe=W.length;++q<xe&&Ai(J,W[q],0)>-1;);return q}function hv(W,J){for(var q=W.length;q--&&Ai(J,W[q],0)>-1;);return q}function rM(W,J){for(var q=W.length,xe=0;q--;)W[q]===J&&++xe;return xe}var oM=Yf(z$),iM=Yf(W$);function sM(W){return"\\"+H$[W]}function aM(W,J){return W==null?n:W[J]}function $i(W){return L$.test(W)}function lM(W){return j$.test(W)}function cM(W){for(var J,q=[];!(J=W.next()).done;)q.push(J.value);return q}function Qf(W){var J=-1,q=Array(W.size);return W.forEach(function(xe,ze){q[++J]=[ze,xe]}),q}function gv(W,J){return function(q){return W(J(q))}}function ho(W,J){for(var q=-1,xe=W.length,ze=0,ut=[];++q<xe;){var Yt=W[q];(Yt===J||Yt===y)&&(W[q]=y,ut[ze++]=q)}return ut}function _c(W){var J=-1,q=Array(W.size);return W.forEach(function(xe){q[++J]=xe}),q}function uM(W){var J=-1,q=Array(W.size);return W.forEach(function(xe){q[++J]=[xe,xe]}),q}function dM(W,J,q){for(var xe=q-1,ze=W.length;++xe<ze;)if(W[xe]===J)return xe;return-1}function fM(W,J,q){for(var xe=q+1;xe--;)if(W[xe]===J)return xe;return xe}function Mi(W){return $i(W)?hM(W):J$(W)}function hr(W){return $i(W)?gM(W):Z$(W)}function mv(W){for(var J=W.length;J--&&r$.test(W.charAt(J)););return J}var pM=Yf(U$);function hM(W){for(var J=Wf.lastIndex=0;Wf.test(W);)++J;return J}function gM(W){return W.match(Wf)||[]}function mM(W){return W.match(D$)||[]}var yM=function W(J){J=J==null?on:Bi.defaults(on.Object(),J,Bi.pick(on,F$));var q=J.Array,xe=J.Date,ze=J.Error,ut=J.Function,Yt=J.Math,Ct=J.Object,ep=J.RegExp,vM=J.String,or=J.TypeError,Ec=q.prototype,bM=ut.prototype,Di=Ct.prototype,Rc=J["__core-js_shared__"],Tc=bM.toString,bt=Di.hasOwnProperty,xM=0,yv=function(){var o=/[^.]+$/.exec(Rc&&Rc.keys&&Rc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Pc=Di.toString,wM=Tc.call(Ct),SM=on._,CM=ep("^"+Tc.call(bt).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kc=ev?J.Buffer:n,go=J.Symbol,Ic=J.Uint8Array,vv=kc?kc.allocUnsafe:n,Oc=gv(Ct.getPrototypeOf,Ct),bv=Ct.create,xv=Di.propertyIsEnumerable,Ac=Ec.splice,wv=go?go.isConcatSpreadable:n,Ns=go?go.iterator:n,zo=go?go.toStringTag:n,$c=function(){try{var o=qo(Ct,"defineProperty");return o({},"",{}),o}catch{}}(),_M=J.clearTimeout!==on.clearTimeout&&J.clearTimeout,EM=xe&&xe.now!==on.Date.now&&xe.now,RM=J.setTimeout!==on.setTimeout&&J.setTimeout,Mc=Yt.ceil,Bc=Yt.floor,tp=Ct.getOwnPropertySymbols,TM=kc?kc.isBuffer:n,Sv=J.isFinite,PM=Ec.join,kM=gv(Ct.keys,Ct),Xt=Yt.max,fn=Yt.min,IM=xe.now,OM=J.parseInt,Cv=Yt.random,AM=Ec.reverse,np=qo(J,"DataView"),zs=qo(J,"Map"),rp=qo(J,"Promise"),Li=qo(J,"Set"),Ws=qo(J,"WeakMap"),Us=qo(Ct,"create"),Dc=Ws&&new Ws,ji={},$M=Vo(np),MM=Vo(zs),BM=Vo(rp),DM=Vo(Li),LM=Vo(Ws),Lc=go?go.prototype:n,Hs=Lc?Lc.valueOf:n,_v=Lc?Lc.toString:n;function k(o){if(Nt(o)&&!Ue(o)&&!(o instanceof nt)){if(o instanceof ir)return o;if(bt.call(o,"__wrapped__"))return Eb(o)}return new ir(o)}var Fi=function(){function o(){}return function(s){if(!At(s))return{};if(bv)return bv(s);o.prototype=s;var u=new o;return o.prototype=n,u}}();function jc(){}function ir(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}k.templateSettings={escape:JA,evaluate:ZA,interpolate:$0,variable:"",imports:{_:k}},k.prototype=jc.prototype,k.prototype.constructor=k,ir.prototype=Fi(jc.prototype),ir.prototype.constructor=ir;function nt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=be,this.__views__=[]}function jM(){var o=new nt(this.__wrapped__);return o.__actions__=Tn(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Tn(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Tn(this.__views__),o}function FM(){if(this.__filtered__){var o=new nt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function NM(){var o=this.__wrapped__.value(),s=this.__dir__,u=Ue(o),f=s<0,w=u?o.length:0,A=ZB(0,w,this.__views__),L=A.start,N=A.end,U=N-L,ne=f?N:L-1,re=this.__iteratees__,ie=re.length,me=0,Ee=fn(U,this.__takeCount__);if(!u||!f&&w==U&&Ee==U)return Kv(o,this.__actions__);var Oe=[];e:for(;U--&&me<Ee;){ne+=s;for(var Je=-1,Ae=o[ne];++Je<ie;){var et=re[Je],rt=et.iteratee,Wn=et.type,bn=rt(Ae);if(Wn==te)Ae=bn;else if(!bn){if(Wn==X)continue e;break e}}Oe[me++]=Ae}return Oe}nt.prototype=Fi(jc.prototype),nt.prototype.constructor=nt;function Wo(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function zM(){this.__data__=Us?Us(null):{},this.size=0}function WM(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function UM(o){var s=this.__data__;if(Us){var u=s[o];return u===d?n:u}return bt.call(s,o)?s[o]:n}function HM(o){var s=this.__data__;return Us?s[o]!==n:bt.call(s,o)}function GM(o,s){var u=this.__data__;return this.size+=this.has(o)?0:1,u[o]=Us&&s===n?d:s,this}Wo.prototype.clear=zM,Wo.prototype.delete=WM,Wo.prototype.get=UM,Wo.prototype.has=HM,Wo.prototype.set=GM;function qr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function qM(){this.__data__=[],this.size=0}function VM(o){var s=this.__data__,u=Fc(s,o);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():Ac.call(s,u,1),--this.size,!0}function KM(o){var s=this.__data__,u=Fc(s,o);return u<0?n:s[u][1]}function YM(o){return Fc(this.__data__,o)>-1}function XM(o,s){var u=this.__data__,f=Fc(u,o);return f<0?(++this.size,u.push([o,s])):u[f][1]=s,this}qr.prototype.clear=qM,qr.prototype.delete=VM,qr.prototype.get=KM,qr.prototype.has=YM,qr.prototype.set=XM;function Vr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function JM(){this.size=0,this.__data__={hash:new Wo,map:new(zs||qr),string:new Wo}}function ZM(o){var s=Jc(this,o).delete(o);return this.size-=s?1:0,s}function QM(o){return Jc(this,o).get(o)}function eB(o){return Jc(this,o).has(o)}function tB(o,s){var u=Jc(this,o),f=u.size;return u.set(o,s),this.size+=u.size==f?0:1,this}Vr.prototype.clear=JM,Vr.prototype.delete=ZM,Vr.prototype.get=QM,Vr.prototype.has=eB,Vr.prototype.set=tB;function Uo(o){var s=-1,u=o==null?0:o.length;for(this.__data__=new Vr;++s<u;)this.add(o[s])}function nB(o){return this.__data__.set(o,d),this}function rB(o){return this.__data__.has(o)}Uo.prototype.add=Uo.prototype.push=nB,Uo.prototype.has=rB;function gr(o){var s=this.__data__=new qr(o);this.size=s.size}function oB(){this.__data__=new qr,this.size=0}function iB(o){var s=this.__data__,u=s.delete(o);return this.size=s.size,u}function sB(o){return this.__data__.get(o)}function aB(o){return this.__data__.has(o)}function lB(o,s){var u=this.__data__;if(u instanceof qr){var f=u.__data__;if(!zs||f.length<i-1)return f.push([o,s]),this.size=++u.size,this;u=this.__data__=new Vr(f)}return u.set(o,s),this.size=u.size,this}gr.prototype.clear=oB,gr.prototype.delete=iB,gr.prototype.get=sB,gr.prototype.has=aB,gr.prototype.set=lB;function Ev(o,s){var u=Ue(o),f=!u&&Ko(o),w=!u&&!f&&xo(o),A=!u&&!f&&!w&&Ui(o),L=u||f||w||A,N=L?Jf(o.length,vM):[],U=N.length;for(var ne in o)(s||bt.call(o,ne))&&!(L&&(ne=="length"||w&&(ne=="offset"||ne=="parent")||A&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Jr(ne,U)))&&N.push(ne);return N}function Rv(o){var s=o.length;return s?o[hp(0,s-1)]:n}function cB(o,s){return Zc(Tn(o),Ho(s,0,o.length))}function uB(o){return Zc(Tn(o))}function op(o,s,u){(u!==n&&!mr(o[s],u)||u===n&&!(s in o))&&Kr(o,s,u)}function Gs(o,s,u){var f=o[s];(!(bt.call(o,s)&&mr(f,u))||u===n&&!(s in o))&&Kr(o,s,u)}function Fc(o,s){for(var u=o.length;u--;)if(mr(o[u][0],s))return u;return-1}function dB(o,s,u,f){return mo(o,function(w,A,L){s(f,w,u(w),L)}),f}function Tv(o,s){return o&&Br(s,en(s),o)}function fB(o,s){return o&&Br(s,kn(s),o)}function Kr(o,s,u){s=="__proto__"&&$c?$c(o,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):o[s]=u}function ip(o,s){for(var u=-1,f=s.length,w=q(f),A=o==null;++u<f;)w[u]=A?n:Fp(o,s[u]);return w}function Ho(o,s,u){return o===o&&(u!==n&&(o=o<=u?o:u),s!==n&&(o=o>=s?o:s)),o}function sr(o,s,u,f,w,A){var L,N=s&m,U=s&v,ne=s&S;if(u&&(L=w?u(o,f,w,A):u(o)),L!==n)return L;if(!At(o))return o;var re=Ue(o);if(re){if(L=eD(o),!N)return Tn(o,L)}else{var ie=pn(o),me=ie==de||ie==Pe;if(xo(o))return Jv(o,N);if(ie==De||ie==Xe||me&&!w){if(L=U||me?{}:mb(o),!N)return U?UB(o,fB(L,o)):WB(o,Tv(L,o))}else{if(!Et[ie])return w?o:{};L=tD(o,ie,N)}}A||(A=new gr);var Ee=A.get(o);if(Ee)return Ee;A.set(o,L),Gb(o)?o.forEach(function(Ae){L.add(sr(Ae,s,u,Ae,o,A))}):Ub(o)&&o.forEach(function(Ae,et){L.set(et,sr(Ae,s,u,et,o,A))});var Oe=ne?U?Ep:_p:U?kn:en,Je=re?n:Oe(o);return rr(Je||o,function(Ae,et){Je&&(et=Ae,Ae=o[et]),Gs(L,et,sr(Ae,s,u,et,o,A))}),L}function pB(o){var s=en(o);return function(u){return Pv(u,o,s)}}function Pv(o,s,u){var f=u.length;if(o==null)return!f;for(o=Ct(o);f--;){var w=u[f],A=s[w],L=o[w];if(L===n&&!(w in o)||!A(L))return!1}return!0}function kv(o,s,u){if(typeof o!="function")throw new or(l);return Zs(function(){o.apply(n,u)},s)}function qs(o,s,u,f){var w=-1,A=Sc,L=!0,N=o.length,U=[],ne=s.length;if(!N)return U;u&&(s=It(s,Fn(u))),f?(A=Gf,L=!1):s.length>=i&&(A=Fs,L=!1,s=new Uo(s));e:for(;++w<N;){var re=o[w],ie=u==null?re:u(re);if(re=f||re!==0?re:0,L&&ie===ie){for(var me=ne;me--;)if(s[me]===ie)continue e;U.push(re)}else A(s,ie,f)||U.push(re)}return U}var mo=nb(Mr),Iv=nb(ap,!0);function hB(o,s){var u=!0;return mo(o,function(f,w,A){return u=!!s(f,w,A),u}),u}function Nc(o,s,u){for(var f=-1,w=o.length;++f<w;){var A=o[f],L=s(A);if(L!=null&&(N===n?L===L&&!zn(L):u(L,N)))var N=L,U=A}return U}function gB(o,s,u,f){var w=o.length;for(u=Ve(u),u<0&&(u=-u>w?0:w+u),f=f===n||f>w?w:Ve(f),f<0&&(f+=w),f=u>f?0:Vb(f);u<f;)o[u++]=s;return o}function Ov(o,s){var u=[];return mo(o,function(f,w,A){s(f,w,A)&&u.push(f)}),u}function sn(o,s,u,f,w){var A=-1,L=o.length;for(u||(u=rD),w||(w=[]);++A<L;){var N=o[A];s>0&&u(N)?s>1?sn(N,s-1,u,f,w):po(w,N):f||(w[w.length]=N)}return w}var sp=rb(),Av=rb(!0);function Mr(o,s){return o&&sp(o,s,en)}function ap(o,s){return o&&Av(o,s,en)}function zc(o,s){return fo(s,function(u){return Zr(o[u])})}function Go(o,s){s=vo(s,o);for(var u=0,f=s.length;o!=null&&u<f;)o=o[Dr(s[u++])];return u&&u==f?o:n}function $v(o,s,u){var f=s(o);return Ue(o)?f:po(f,u(o))}function yn(o){return o==null?o===n?Ot:qe:zo&&zo in Ct(o)?JB(o):uD(o)}function lp(o,s){return o>s}function mB(o,s){return o!=null&&bt.call(o,s)}function yB(o,s){return o!=null&&s in Ct(o)}function vB(o,s,u){return o>=fn(s,u)&&o<Xt(s,u)}function cp(o,s,u){for(var f=u?Gf:Sc,w=o[0].length,A=o.length,L=A,N=q(A),U=1/0,ne=[];L--;){var re=o[L];L&&s&&(re=It(re,Fn(s))),U=fn(re.length,U),N[L]=!u&&(s||w>=120&&re.length>=120)?new Uo(L&&re):n}re=o[0];var ie=-1,me=N[0];e:for(;++ie<w&&ne.length<U;){var Ee=re[ie],Oe=s?s(Ee):Ee;if(Ee=u||Ee!==0?Ee:0,!(me?Fs(me,Oe):f(ne,Oe,u))){for(L=A;--L;){var Je=N[L];if(!(Je?Fs(Je,Oe):f(o[L],Oe,u)))continue e}me&&me.push(Oe),ne.push(Ee)}}return ne}function bB(o,s,u,f){return Mr(o,function(w,A,L){s(f,u(w),A,L)}),f}function Vs(o,s,u){s=vo(s,o),o=xb(o,s);var f=o==null?o:o[Dr(lr(s))];return f==null?n:jn(f,o,u)}function Mv(o){return Nt(o)&&yn(o)==Xe}function xB(o){return Nt(o)&&yn(o)==T}function wB(o){return Nt(o)&&yn(o)==ue}function Ks(o,s,u,f,w){return o===s?!0:o==null||s==null||!Nt(o)&&!Nt(s)?o!==o&&s!==s:SB(o,s,u,f,Ks,w)}function SB(o,s,u,f,w,A){var L=Ue(o),N=Ue(s),U=L?Ge:pn(o),ne=N?Ge:pn(s);U=U==Xe?De:U,ne=ne==Xe?De:ne;var re=U==De,ie=ne==De,me=U==ne;if(me&&xo(o)){if(!xo(s))return!1;L=!0,re=!1}if(me&&!re)return A||(A=new gr),L||Ui(o)?pb(o,s,u,f,w,A):YB(o,s,U,u,f,w,A);if(!(u&x)){var Ee=re&&bt.call(o,"__wrapped__"),Oe=ie&&bt.call(s,"__wrapped__");if(Ee||Oe){var Je=Ee?o.value():o,Ae=Oe?s.value():s;return A||(A=new gr),w(Je,Ae,u,f,A)}}return me?(A||(A=new gr),XB(o,s,u,f,w,A)):!1}function CB(o){return Nt(o)&&pn(o)==ve}function up(o,s,u,f){var w=u.length,A=w,L=!f;if(o==null)return!A;for(o=Ct(o);w--;){var N=u[w];if(L&&N[2]?N[1]!==o[N[0]]:!(N[0]in o))return!1}for(;++w<A;){N=u[w];var U=N[0],ne=o[U],re=N[1];if(L&&N[2]){if(ne===n&&!(U in o))return!1}else{var ie=new gr;if(f)var me=f(ne,re,U,o,s,ie);if(!(me===n?Ks(re,ne,x|R,f,ie):me))return!1}}return!0}function Bv(o){if(!At(o)||iD(o))return!1;var s=Zr(o)?CM:p$;return s.test(Vo(o))}function _B(o){return Nt(o)&&yn(o)==tt}function EB(o){return Nt(o)&&pn(o)==$e}function RB(o){return Nt(o)&&ou(o.length)&&!!Tt[yn(o)]}function Dv(o){return typeof o=="function"?o:o==null?In:typeof o=="object"?Ue(o)?Fv(o[0],o[1]):jv(o):ox(o)}function dp(o){if(!Js(o))return kM(o);var s=[];for(var u in Ct(o))bt.call(o,u)&&u!="constructor"&&s.push(u);return s}function TB(o){if(!At(o))return cD(o);var s=Js(o),u=[];for(var f in o)f=="constructor"&&(s||!bt.call(o,f))||u.push(f);return u}function fp(o,s){return o<s}function Lv(o,s){var u=-1,f=Pn(o)?q(o.length):[];return mo(o,function(w,A,L){f[++u]=s(w,A,L)}),f}function jv(o){var s=Tp(o);return s.length==1&&s[0][2]?vb(s[0][0],s[0][1]):function(u){return u===o||up(u,o,s)}}function Fv(o,s){return kp(o)&&yb(s)?vb(Dr(o),s):function(u){var f=Fp(u,o);return f===n&&f===s?Np(u,o):Ks(s,f,x|R)}}function Wc(o,s,u,f,w){o!==s&&sp(s,function(A,L){if(w||(w=new gr),At(A))PB(o,s,L,u,Wc,f,w);else{var N=f?f(Op(o,L),A,L+"",o,s,w):n;N===n&&(N=A),op(o,L,N)}},kn)}function PB(o,s,u,f,w,A,L){var N=Op(o,u),U=Op(s,u),ne=L.get(U);if(ne){op(o,u,ne);return}var re=A?A(N,U,u+"",o,s,L):n,ie=re===n;if(ie){var me=Ue(U),Ee=!me&&xo(U),Oe=!me&&!Ee&&Ui(U);re=U,me||Ee||Oe?Ue(N)?re=N:Ut(N)?re=Tn(N):Ee?(ie=!1,re=Jv(U,!0)):Oe?(ie=!1,re=Zv(U,!0)):re=[]:Qs(U)||Ko(U)?(re=N,Ko(N)?re=Kb(N):(!At(N)||Zr(N))&&(re=mb(U))):ie=!1}ie&&(L.set(U,re),w(re,U,f,A,L),L.delete(U)),op(o,u,re)}function Nv(o,s){var u=o.length;if(u)return s+=s<0?u:0,Jr(s,u)?o[s]:n}function zv(o,s,u){s.length?s=It(s,function(A){return Ue(A)?function(L){return Go(L,A.length===1?A[0]:A)}:A}):s=[In];var f=-1;s=It(s,Fn(ke()));var w=Lv(o,function(A,L,N){var U=It(s,function(ne){return ne(A)});return{criteria:U,index:++f,value:A}});return tM(w,function(A,L){return zB(A,L,u)})}function kB(o,s){return Wv(o,s,function(u,f){return Np(o,f)})}function Wv(o,s,u){for(var f=-1,w=s.length,A={};++f<w;){var L=s[f],N=Go(o,L);u(N,L)&&Ys(A,vo(L,o),N)}return A}function IB(o){return function(s){return Go(s,o)}}function pp(o,s,u,f){var w=f?eM:Ai,A=-1,L=s.length,N=o;for(o===s&&(s=Tn(s)),u&&(N=It(o,Fn(u)));++A<L;)for(var U=0,ne=s[A],re=u?u(ne):ne;(U=w(N,re,U,f))>-1;)N!==o&&Ac.call(N,U,1),Ac.call(o,U,1);return o}function Uv(o,s){for(var u=o?s.length:0,f=u-1;u--;){var w=s[u];if(u==f||w!==A){var A=w;Jr(w)?Ac.call(o,w,1):yp(o,w)}}return o}function hp(o,s){return o+Bc(Cv()*(s-o+1))}function OB(o,s,u,f){for(var w=-1,A=Xt(Mc((s-o)/(u||1)),0),L=q(A);A--;)L[f?A:++w]=o,o+=u;return L}function gp(o,s){var u="";if(!o||s<1||s>pe)return u;do s%2&&(u+=o),s=Bc(s/2),s&&(o+=o);while(s);return u}function Ze(o,s){return Ap(bb(o,s,In),o+"")}function AB(o){return Rv(Hi(o))}function $B(o,s){var u=Hi(o);return Zc(u,Ho(s,0,u.length))}function Ys(o,s,u,f){if(!At(o))return o;s=vo(s,o);for(var w=-1,A=s.length,L=A-1,N=o;N!=null&&++w<A;){var U=Dr(s[w]),ne=u;if(U==="__proto__"||U==="constructor"||U==="prototype")return o;if(w!=L){var re=N[U];ne=f?f(re,U,N):n,ne===n&&(ne=At(re)?re:Jr(s[w+1])?[]:{})}Gs(N,U,ne),N=N[U]}return o}var Hv=Dc?function(o,s){return Dc.set(o,s),o}:In,MB=$c?function(o,s){return $c(o,"toString",{configurable:!0,enumerable:!1,value:Wp(s),writable:!0})}:In;function BB(o){return Zc(Hi(o))}function ar(o,s,u){var f=-1,w=o.length;s<0&&(s=-s>w?0:w+s),u=u>w?w:u,u<0&&(u+=w),w=s>u?0:u-s>>>0,s>>>=0;for(var A=q(w);++f<w;)A[f]=o[f+s];return A}function DB(o,s){var u;return mo(o,function(f,w,A){return u=s(f,w,A),!u}),!!u}function Uc(o,s,u){var f=0,w=o==null?f:o.length;if(typeof s=="number"&&s===s&&w<=Ne){for(;f<w;){var A=f+w>>>1,L=o[A];L!==null&&!zn(L)&&(u?L<=s:L<s)?f=A+1:w=A}return w}return mp(o,s,In,u)}function mp(o,s,u,f){var w=0,A=o==null?0:o.length;if(A===0)return 0;s=u(s);for(var L=s!==s,N=s===null,U=zn(s),ne=s===n;w<A;){var re=Bc((w+A)/2),ie=u(o[re]),me=ie!==n,Ee=ie===null,Oe=ie===ie,Je=zn(ie);if(L)var Ae=f||Oe;else ne?Ae=Oe&&(f||me):N?Ae=Oe&&me&&(f||!Ee):U?Ae=Oe&&me&&!Ee&&(f||!Je):Ee||Je?Ae=!1:Ae=f?ie<=s:ie<s;Ae?w=re+1:A=re}return fn(A,Be)}function Gv(o,s){for(var u=-1,f=o.length,w=0,A=[];++u<f;){var L=o[u],N=s?s(L):L;if(!u||!mr(N,U)){var U=N;A[w++]=L===0?0:L}}return A}function qv(o){return typeof o=="number"?o:zn(o)?We:+o}function Nn(o){if(typeof o=="string")return o;if(Ue(o))return It(o,Nn)+"";if(zn(o))return _v?_v.call(o):"";var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function yo(o,s,u){var f=-1,w=Sc,A=o.length,L=!0,N=[],U=N;if(u)L=!1,w=Gf;else if(A>=i){var ne=s?null:VB(o);if(ne)return _c(ne);L=!1,w=Fs,U=new Uo}else U=s?[]:N;e:for(;++f<A;){var re=o[f],ie=s?s(re):re;if(re=u||re!==0?re:0,L&&ie===ie){for(var me=U.length;me--;)if(U[me]===ie)continue e;s&&U.push(ie),N.push(re)}else w(U,ie,u)||(U!==N&&U.push(ie),N.push(re))}return N}function yp(o,s){return s=vo(s,o),o=xb(o,s),o==null||delete o[Dr(lr(s))]}function Vv(o,s,u,f){return Ys(o,s,u(Go(o,s)),f)}function Hc(o,s,u,f){for(var w=o.length,A=f?w:-1;(f?A--:++A<w)&&s(o[A],A,o););return u?ar(o,f?0:A,f?A+1:w):ar(o,f?A+1:0,f?w:A)}function Kv(o,s){var u=o;return u instanceof nt&&(u=u.value()),qf(s,function(f,w){return w.func.apply(w.thisArg,po([f],w.args))},u)}function vp(o,s,u){var f=o.length;if(f<2)return f?yo(o[0]):[];for(var w=-1,A=q(f);++w<f;)for(var L=o[w],N=-1;++N<f;)N!=w&&(A[w]=qs(A[w]||L,o[N],s,u));return yo(sn(A,1),s,u)}function Yv(o,s,u){for(var f=-1,w=o.length,A=s.length,L={};++f<w;){var N=f<A?s[f]:n;u(L,o[f],N)}return L}function bp(o){return Ut(o)?o:[]}function xp(o){return typeof o=="function"?o:In}function vo(o,s){return Ue(o)?o:kp(o,s)?[o]:_b(gt(o))}var LB=Ze;function bo(o,s,u){var f=o.length;return u=u===n?f:u,!s&&u>=f?o:ar(o,s,u)}var Xv=_M||function(o){return on.clearTimeout(o)};function Jv(o,s){if(s)return o.slice();var u=o.length,f=vv?vv(u):new o.constructor(u);return o.copy(f),f}function wp(o){var s=new o.constructor(o.byteLength);return new Ic(s).set(new Ic(o)),s}function jB(o,s){var u=s?wp(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.byteLength)}function FB(o){var s=new o.constructor(o.source,M0.exec(o));return s.lastIndex=o.lastIndex,s}function NB(o){return Hs?Ct(Hs.call(o)):{}}function Zv(o,s){var u=s?wp(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.length)}function Qv(o,s){if(o!==s){var u=o!==n,f=o===null,w=o===o,A=zn(o),L=s!==n,N=s===null,U=s===s,ne=zn(s);if(!N&&!ne&&!A&&o>s||A&&L&&U&&!N&&!ne||f&&L&&U||!u&&U||!w)return 1;if(!f&&!A&&!ne&&o<s||ne&&u&&w&&!f&&!A||N&&u&&w||!L&&w||!U)return-1}return 0}function zB(o,s,u){for(var f=-1,w=o.criteria,A=s.criteria,L=w.length,N=u.length;++f<L;){var U=Qv(w[f],A[f]);if(U){if(f>=N)return U;var ne=u[f];return U*(ne=="desc"?-1:1)}}return o.index-s.index}function eb(o,s,u,f){for(var w=-1,A=o.length,L=u.length,N=-1,U=s.length,ne=Xt(A-L,0),re=q(U+ne),ie=!f;++N<U;)re[N]=s[N];for(;++w<L;)(ie||w<A)&&(re[u[w]]=o[w]);for(;ne--;)re[N++]=o[w++];return re}function tb(o,s,u,f){for(var w=-1,A=o.length,L=-1,N=u.length,U=-1,ne=s.length,re=Xt(A-N,0),ie=q(re+ne),me=!f;++w<re;)ie[w]=o[w];for(var Ee=w;++U<ne;)ie[Ee+U]=s[U];for(;++L<N;)(me||w<A)&&(ie[Ee+u[L]]=o[w++]);return ie}function Tn(o,s){var u=-1,f=o.length;for(s||(s=q(f));++u<f;)s[u]=o[u];return s}function Br(o,s,u,f){var w=!u;u||(u={});for(var A=-1,L=s.length;++A<L;){var N=s[A],U=f?f(u[N],o[N],N,u,o):n;U===n&&(U=o[N]),w?Kr(u,N,U):Gs(u,N,U)}return u}function WB(o,s){return Br(o,Pp(o),s)}function UB(o,s){return Br(o,hb(o),s)}function Gc(o,s){return function(u,f){var w=Ue(u)?K$:dB,A=s?s():{};return w(u,o,ke(f,2),A)}}function Ni(o){return Ze(function(s,u){var f=-1,w=u.length,A=w>1?u[w-1]:n,L=w>2?u[2]:n;for(A=o.length>3&&typeof A=="function"?(w--,A):n,L&&vn(u[0],u[1],L)&&(A=w<3?n:A,w=1),s=Ct(s);++f<w;){var N=u[f];N&&o(s,N,f,A)}return s})}function nb(o,s){return function(u,f){if(u==null)return u;if(!Pn(u))return o(u,f);for(var w=u.length,A=s?w:-1,L=Ct(u);(s?A--:++A<w)&&f(L[A],A,L)!==!1;);return u}}function rb(o){return function(s,u,f){for(var w=-1,A=Ct(s),L=f(s),N=L.length;N--;){var U=L[o?N:++w];if(u(A[U],U,A)===!1)break}return s}}function HB(o,s,u){var f=s&O,w=Xs(o);function A(){var L=this&&this!==on&&this instanceof A?w:o;return L.apply(f?u:this,arguments)}return A}function ob(o){return function(s){s=gt(s);var u=$i(s)?hr(s):n,f=u?u[0]:s.charAt(0),w=u?bo(u,1).join(""):s.slice(1);return f[o]()+w}}function zi(o){return function(s){return qf(nx(tx(s).replace(M$,"")),o,"")}}function Xs(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var u=Fi(o.prototype),f=o.apply(u,s);return At(f)?f:u}}function GB(o,s,u){var f=Xs(o);function w(){for(var A=arguments.length,L=q(A),N=A,U=Wi(w);N--;)L[N]=arguments[N];var ne=A<3&&L[0]!==U&&L[A-1]!==U?[]:ho(L,U);if(A-=ne.length,A<u)return cb(o,s,qc,w.placeholder,n,L,ne,n,n,u-A);var re=this&&this!==on&&this instanceof w?f:o;return jn(re,this,L)}return w}function ib(o){return function(s,u,f){var w=Ct(s);if(!Pn(s)){var A=ke(u,3);s=en(s),u=function(N){return A(w[N],N,w)}}var L=o(s,u,f);return L>-1?w[A?s[L]:L]:n}}function sb(o){return Xr(function(s){var u=s.length,f=u,w=ir.prototype.thru;for(o&&s.reverse();f--;){var A=s[f];if(typeof A!="function")throw new or(l);if(w&&!L&&Xc(A)=="wrapper")var L=new ir([],!0)}for(f=L?f:u;++f<u;){A=s[f];var N=Xc(A),U=N=="wrapper"?Rp(A):n;U&&Ip(U[0])&&U[1]==($|E|M|z)&&!U[4].length&&U[9]==1?L=L[Xc(U[0])].apply(L,U[3]):L=A.length==1&&Ip(A)?L[N]():L.thru(A)}return function(){var ne=arguments,re=ne[0];if(L&&ne.length==1&&Ue(re))return L.plant(re).value();for(var ie=0,me=u?s[ie].apply(this,ne):re;++ie<u;)me=s[ie].call(this,me);return me}})}function qc(o,s,u,f,w,A,L,N,U,ne){var re=s&$,ie=s&O,me=s&_,Ee=s&(E|P),Oe=s&V,Je=me?n:Xs(o);function Ae(){for(var et=arguments.length,rt=q(et),Wn=et;Wn--;)rt[Wn]=arguments[Wn];if(Ee)var bn=Wi(Ae),Un=rM(rt,bn);if(f&&(rt=eb(rt,f,w,Ee)),A&&(rt=tb(rt,A,L,Ee)),et-=Un,Ee&&et<ne){var Ht=ho(rt,bn);return cb(o,s,qc,Ae.placeholder,u,rt,Ht,N,U,ne-et)}var yr=ie?u:this,eo=me?yr[o]:o;return et=rt.length,N?rt=dD(rt,N):Oe&&et>1&&rt.reverse(),re&&U<et&&(rt.length=U),this&&this!==on&&this instanceof Ae&&(eo=Je||Xs(eo)),eo.apply(yr,rt)}return Ae}function ab(o,s){return function(u,f){return bB(u,o,s(f),{})}}function Vc(o,s){return function(u,f){var w;if(u===n&&f===n)return s;if(u!==n&&(w=u),f!==n){if(w===n)return f;typeof u=="string"||typeof f=="string"?(u=Nn(u),f=Nn(f)):(u=qv(u),f=qv(f)),w=o(u,f)}return w}}function Sp(o){return Xr(function(s){return s=It(s,Fn(ke())),Ze(function(u){var f=this;return o(s,function(w){return jn(w,f,u)})})})}function Kc(o,s){s=s===n?" ":Nn(s);var u=s.length;if(u<2)return u?gp(s,o):s;var f=gp(s,Mc(o/Mi(s)));return $i(s)?bo(hr(f),0,o).join(""):f.slice(0,o)}function qB(o,s,u,f){var w=s&O,A=Xs(o);function L(){for(var N=-1,U=arguments.length,ne=-1,re=f.length,ie=q(re+U),me=this&&this!==on&&this instanceof L?A:o;++ne<re;)ie[ne]=f[ne];for(;U--;)ie[ne++]=arguments[++N];return jn(me,w?u:this,ie)}return L}function lb(o){return function(s,u,f){return f&&typeof f!="number"&&vn(s,u,f)&&(u=f=n),s=Qr(s),u===n?(u=s,s=0):u=Qr(u),f=f===n?s<u?1:-1:Qr(f),OB(s,u,f,o)}}function Yc(o){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=cr(s),u=cr(u)),o(s,u)}}function cb(o,s,u,f,w,A,L,N,U,ne){var re=s&E,ie=re?L:n,me=re?n:L,Ee=re?A:n,Oe=re?n:A;s|=re?M:D,s&=~(re?D:M),s&I||(s&=~(O|_));var Je=[o,s,w,Ee,ie,Oe,me,N,U,ne],Ae=u.apply(n,Je);return Ip(o)&&wb(Ae,Je),Ae.placeholder=f,Sb(Ae,o,s)}function Cp(o){var s=Yt[o];return function(u,f){if(u=cr(u),f=f==null?0:fn(Ve(f),292),f&&Sv(u)){var w=(gt(u)+"e").split("e"),A=s(w[0]+"e"+(+w[1]+f));return w=(gt(A)+"e").split("e"),+(w[0]+"e"+(+w[1]-f))}return s(u)}}var VB=Li&&1/_c(new Li([,-0]))[1]==fe?function(o){return new Li(o)}:Gp;function ub(o){return function(s){var u=pn(s);return u==ve?Qf(s):u==$e?uM(s):nM(s,o(s))}}function Yr(o,s,u,f,w,A,L,N){var U=s&_;if(!U&&typeof o!="function")throw new or(l);var ne=f?f.length:0;if(ne||(s&=~(M|D),f=w=n),L=L===n?L:Xt(Ve(L),0),N=N===n?N:Ve(N),ne-=w?w.length:0,s&D){var re=f,ie=w;f=w=n}var me=U?n:Rp(o),Ee=[o,s,u,f,w,re,ie,A,L,N];if(me&&lD(Ee,me),o=Ee[0],s=Ee[1],u=Ee[2],f=Ee[3],w=Ee[4],N=Ee[9]=Ee[9]===n?U?0:o.length:Xt(Ee[9]-ne,0),!N&&s&(E|P)&&(s&=~(E|P)),!s||s==O)var Oe=HB(o,s,u);else s==E||s==P?Oe=GB(o,s,N):(s==M||s==(O|M))&&!w.length?Oe=qB(o,s,u,f):Oe=qc.apply(n,Ee);var Je=me?Hv:wb;return Sb(Je(Oe,Ee),o,s)}function db(o,s,u,f){return o===n||mr(o,Di[u])&&!bt.call(f,u)?s:o}function fb(o,s,u,f,w,A){return At(o)&&At(s)&&(A.set(s,o),Wc(o,s,n,fb,A),A.delete(s)),o}function KB(o){return Qs(o)?n:o}function pb(o,s,u,f,w,A){var L=u&x,N=o.length,U=s.length;if(N!=U&&!(L&&U>N))return!1;var ne=A.get(o),re=A.get(s);if(ne&&re)return ne==s&&re==o;var ie=-1,me=!0,Ee=u&R?new Uo:n;for(A.set(o,s),A.set(s,o);++ie<N;){var Oe=o[ie],Je=s[ie];if(f)var Ae=L?f(Je,Oe,ie,s,o,A):f(Oe,Je,ie,o,s,A);if(Ae!==n){if(Ae)continue;me=!1;break}if(Ee){if(!Vf(s,function(et,rt){if(!Fs(Ee,rt)&&(Oe===et||w(Oe,et,u,f,A)))return Ee.push(rt)})){me=!1;break}}else if(!(Oe===Je||w(Oe,Je,u,f,A))){me=!1;break}}return A.delete(o),A.delete(s),me}function YB(o,s,u,f,w,A,L){switch(u){case p:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case T:return!(o.byteLength!=s.byteLength||!A(new Ic(o),new Ic(s)));case ae:case ue:case Ie:return mr(+o,+s);case ge:return o.name==s.name&&o.message==s.message;case tt:case it:return o==s+"";case ve:var N=Qf;case $e:var U=f&x;if(N||(N=_c),o.size!=s.size&&!U)return!1;var ne=L.get(o);if(ne)return ne==s;f|=R,L.set(o,s);var re=pb(N(o),N(s),f,w,A,L);return L.delete(o),re;case ye:if(Hs)return Hs.call(o)==Hs.call(s)}return!1}function XB(o,s,u,f,w,A){var L=u&x,N=_p(o),U=N.length,ne=_p(s),re=ne.length;if(U!=re&&!L)return!1;for(var ie=U;ie--;){var me=N[ie];if(!(L?me in s:bt.call(s,me)))return!1}var Ee=A.get(o),Oe=A.get(s);if(Ee&&Oe)return Ee==s&&Oe==o;var Je=!0;A.set(o,s),A.set(s,o);for(var Ae=L;++ie<U;){me=N[ie];var et=o[me],rt=s[me];if(f)var Wn=L?f(rt,et,me,s,o,A):f(et,rt,me,o,s,A);if(!(Wn===n?et===rt||w(et,rt,u,f,A):Wn)){Je=!1;break}Ae||(Ae=me=="constructor")}if(Je&&!Ae){var bn=o.constructor,Un=s.constructor;bn!=Un&&"constructor"in o&&"constructor"in s&&!(typeof bn=="function"&&bn instanceof bn&&typeof Un=="function"&&Un instanceof Un)&&(Je=!1)}return A.delete(o),A.delete(s),Je}function Xr(o){return Ap(bb(o,n,Pb),o+"")}function _p(o){return $v(o,en,Pp)}function Ep(o){return $v(o,kn,hb)}var Rp=Dc?function(o){return Dc.get(o)}:Gp;function Xc(o){for(var s=o.name+"",u=ji[s],f=bt.call(ji,s)?u.length:0;f--;){var w=u[f],A=w.func;if(A==null||A==o)return w.name}return s}function Wi(o){var s=bt.call(k,"placeholder")?k:o;return s.placeholder}function ke(){var o=k.iteratee||Up;return o=o===Up?Dv:o,arguments.length?o(arguments[0],arguments[1]):o}function Jc(o,s){var u=o.__data__;return oD(s)?u[typeof s=="string"?"string":"hash"]:u.map}function Tp(o){for(var s=en(o),u=s.length;u--;){var f=s[u],w=o[f];s[u]=[f,w,yb(w)]}return s}function qo(o,s){var u=aM(o,s);return Bv(u)?u:n}function JB(o){var s=bt.call(o,zo),u=o[zo];try{o[zo]=n;var f=!0}catch{}var w=Pc.call(o);return f&&(s?o[zo]=u:delete o[zo]),w}var Pp=tp?function(o){return o==null?[]:(o=Ct(o),fo(tp(o),function(s){return xv.call(o,s)}))}:qp,hb=tp?function(o){for(var s=[];o;)po(s,Pp(o)),o=Oc(o);return s}:qp,pn=yn;(np&&pn(new np(new ArrayBuffer(1)))!=p||zs&&pn(new zs)!=ve||rp&&pn(rp.resolve())!=Re||Li&&pn(new Li)!=$e||Ws&&pn(new Ws)!=Ft)&&(pn=function(o){var s=yn(o),u=s==De?o.constructor:n,f=u?Vo(u):"";if(f)switch(f){case $M:return p;case MM:return ve;case BM:return Re;case DM:return $e;case LM:return Ft}return s});function ZB(o,s,u){for(var f=-1,w=u.length;++f<w;){var A=u[f],L=A.size;switch(A.type){case"drop":o+=L;break;case"dropRight":s-=L;break;case"take":s=fn(s,o+L);break;case"takeRight":o=Xt(o,s-L);break}}return{start:o,end:s}}function QB(o){var s=o.match(i$);return s?s[1].split(s$):[]}function gb(o,s,u){s=vo(s,o);for(var f=-1,w=s.length,A=!1;++f<w;){var L=Dr(s[f]);if(!(A=o!=null&&u(o,L)))break;o=o[L]}return A||++f!=w?A:(w=o==null?0:o.length,!!w&&ou(w)&&Jr(L,w)&&(Ue(o)||Ko(o)))}function eD(o){var s=o.length,u=new o.constructor(s);return s&&typeof o[0]=="string"&&bt.call(o,"index")&&(u.index=o.index,u.input=o.input),u}function mb(o){return typeof o.constructor=="function"&&!Js(o)?Fi(Oc(o)):{}}function tD(o,s,u){var f=o.constructor;switch(s){case T:return wp(o);case ae:case ue:return new f(+o);case p:return jB(o,u);case g:case B:case F:case G:case Y:case ce:case oe:case se:case Se:return Zv(o,u);case ve:return new f;case Ie:case it:return new f(o);case tt:return FB(o);case $e:return new f;case ye:return NB(o)}}function nD(o,s){var u=s.length;if(!u)return o;var f=u-1;return s[f]=(u>1?"& ":"")+s[f],s=s.join(u>2?", ":" "),o.replace(o$,`{
|
|
158
|
+
*/bl.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,v=2,w=4,b=1,E=2,k=1,_=2,O=4,C=8,P=16,M=32,D=64,$=128,z=256,V=512,R=30,G="...",te=800,H=16,Y=1,ee=2,ae=3,fe=1/0,pe=9007199254740991,_e=17976931348623157e292,We=NaN,be=4294967295,Be=be-1,Ne=be>>>1,Me=[["ary",$],["bind",k],["bindKey",_],["curry",C],["curryRight",P],["flip",V],["partial",M],["partialRight",D],["rearg",z]],Xe="[object Arguments]",Ge="[object Array]",ht="[object AsyncFunction]",le="[object Boolean]",ue="[object Date]",he="[object DOMException]",ge="[object Error]",de="[object Function]",Te="[object GeneratorFunction]",ve="[object Map]",ke="[object Number]",qe="[object Null]",De="[object Object]",Re="[object Promise]",Fe="[object Proxy]",tt="[object RegExp]",$e="[object Set]",st="[object String]",ye="[object Symbol]",Ot="[object Undefined]",Ft="[object WeakMap]",yn="[object WeakSet]",T="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",q="[object Int16Array]",Z="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",se="[object Uint16Array]",Se="[object Uint32Array]",we=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$r=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,bc=RegExp($r.source),Ns=RegExp(uo.source),a$=/<%-([\s\S]+?)%>/g,l$=/<%([\s\S]+?)%>/g,j0=/<%=([\s\S]+?)%>/g,c$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u$=/^\w*$/,d$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lf=/[\\^$.*+?()[\]{}|]/g,f$=RegExp(Lf.source),jf=/^\s+/,p$=/\s/,h$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,g$=/\{\n\/\* \[wrapped with (.+)\] \*/,m$=/,? & /,y$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,v$=/[()=,{}\[\]\/\s]/,b$=/\\(\\)?/g,x$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,F0=/\w*$/,w$=/^[-+]0x[0-9a-f]+$/i,S$=/^0b[01]+$/i,C$=/^\[object .+?Constructor\]$/,_$=/^0o[0-7]+$/i,E$=/^(?:0|[1-9]\d*)$/,R$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xc=/($^)/,P$=/['\n\r\u2028\u2029\\]/g,wc="\\ud800-\\udfff",T$="\\u0300-\\u036f",I$="\\ufe20-\\ufe2f",k$="\\u20d0-\\u20ff",N0=T$+I$+k$,z0="\\u2700-\\u27bf",W0="a-z\\xdf-\\xf6\\xf8-\\xff",O$="\\xac\\xb1\\xd7\\xf7",A$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$$="\\u2000-\\u206f",M$=" \\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",U0="A-Z\\xc0-\\xd6\\xd8-\\xde",H0="\\ufe0e\\ufe0f",G0=O$+A$+$$+M$,Ff="['’]",B$="["+wc+"]",q0="["+G0+"]",Sc="["+N0+"]",V0="\\d+",D$="["+z0+"]",K0="["+W0+"]",Y0="[^"+wc+G0+V0+z0+W0+U0+"]",Nf="\\ud83c[\\udffb-\\udfff]",L$="(?:"+Sc+"|"+Nf+")",X0="[^"+wc+"]",zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Wf="[\\ud800-\\udbff][\\udc00-\\udfff]",Oi="["+U0+"]",J0="\\u200d",Z0="(?:"+K0+"|"+Y0+")",j$="(?:"+Oi+"|"+Y0+")",Q0="(?:"+Ff+"(?:d|ll|m|re|s|t|ve))?",ev="(?:"+Ff+"(?:D|LL|M|RE|S|T|VE))?",tv=L$+"?",nv="["+H0+"]?",F$="(?:"+J0+"(?:"+[X0,zf,Wf].join("|")+")"+nv+tv+")*",N$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",z$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rv=nv+tv+F$,W$="(?:"+[D$,zf,Wf].join("|")+")"+rv,U$="(?:"+[X0+Sc+"?",Sc,zf,Wf,B$].join("|")+")",H$=RegExp(Ff,"g"),G$=RegExp(Sc,"g"),Uf=RegExp(Nf+"(?="+Nf+")|"+U$+rv,"g"),q$=RegExp([Oi+"?"+K0+"+"+Q0+"(?="+[q0,Oi,"$"].join("|")+")",j$+"+"+ev+"(?="+[q0,Oi+Z0,"$"].join("|")+")",Oi+"?"+Z0+"+"+Q0,Oi+"+"+ev,z$,N$,V0,W$].join("|"),"g"),V$=RegExp("["+J0+wc+N0+H0+"]"),K$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Y$=["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"],X$=-1,Pt={};Pt[g]=Pt[B]=Pt[F]=Pt[q]=Pt[Z]=Pt[ce]=Pt[oe]=Pt[se]=Pt[Se]=!0,Pt[Xe]=Pt[Ge]=Pt[T]=Pt[le]=Pt[p]=Pt[ue]=Pt[ge]=Pt[de]=Pt[ve]=Pt[ke]=Pt[De]=Pt[tt]=Pt[$e]=Pt[st]=Pt[Ft]=!1;var Et={};Et[Xe]=Et[Ge]=Et[T]=Et[p]=Et[le]=Et[ue]=Et[g]=Et[B]=Et[F]=Et[q]=Et[Z]=Et[ve]=Et[ke]=Et[De]=Et[tt]=Et[$e]=Et[st]=Et[ye]=Et[ce]=Et[oe]=Et[se]=Et[Se]=!0,Et[ge]=Et[de]=Et[Ft]=!1;var J$={À:"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"},Z$={"&":"&","<":"<",">":">",'"':""","'":"'"},Q$={"&":"&","<":"<",">":">",""":'"',"'":"'"},eM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tM=parseFloat,nM=parseInt,ov=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,rM=typeof self=="object"&&self&&self.Object===Object&&self,on=ov||rM||Function("return this")(),Hf=t&&!t.nodeType&&t,No=Hf&&!0&&e&&!e.nodeType&&e,iv=No&&No.exports===Hf,Gf=iv&&ov.process,nr=function(){try{var W=No&&No.require&&No.require("util").types;return W||Gf&&Gf.binding&&Gf.binding("util")}catch{}}(),sv=nr&&nr.isArrayBuffer,av=nr&&nr.isDate,lv=nr&&nr.isMap,cv=nr&&nr.isRegExp,uv=nr&&nr.isSet,dv=nr&&nr.isTypedArray;function jn(W,Q,K){switch(K.length){case 0:return W.call(Q);case 1:return W.call(Q,K[0]);case 2:return W.call(Q,K[0],K[1]);case 3:return W.call(Q,K[0],K[1],K[2])}return W.apply(Q,K)}function oM(W,Q,K,xe){for(var ze=-1,dt=W==null?0:W.length;++ze<dt;){var Yt=W[ze];Q(xe,Yt,K(Yt),W)}return xe}function rr(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe&&Q(W[K],K,W)!==!1;);return W}function iM(W,Q){for(var K=W==null?0:W.length;K--&&Q(W[K],K,W)!==!1;);return W}function fv(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe;)if(!Q(W[K],K,W))return!1;return!0}function fo(W,Q){for(var K=-1,xe=W==null?0:W.length,ze=0,dt=[];++K<xe;){var Yt=W[K];Q(Yt,K,W)&&(dt[ze++]=Yt)}return dt}function Cc(W,Q){var K=W==null?0:W.length;return!!K&&Ai(W,Q,0)>-1}function qf(W,Q,K){for(var xe=-1,ze=W==null?0:W.length;++xe<ze;)if(K(Q,W[xe]))return!0;return!1}function kt(W,Q){for(var K=-1,xe=W==null?0:W.length,ze=Array(xe);++K<xe;)ze[K]=Q(W[K],K,W);return ze}function po(W,Q){for(var K=-1,xe=Q.length,ze=W.length;++K<xe;)W[ze+K]=Q[K];return W}function Vf(W,Q,K,xe){var ze=-1,dt=W==null?0:W.length;for(xe&&dt&&(K=W[++ze]);++ze<dt;)K=Q(K,W[ze],ze,W);return K}function sM(W,Q,K,xe){var ze=W==null?0:W.length;for(xe&&ze&&(K=W[--ze]);ze--;)K=Q(K,W[ze],ze,W);return K}function Kf(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe;)if(Q(W[K],K,W))return!0;return!1}var aM=Yf("length");function lM(W){return W.split("")}function cM(W){return W.match(y$)||[]}function pv(W,Q,K){var xe;return K(W,function(ze,dt,Yt){if(Q(ze,dt,Yt))return xe=dt,!1}),xe}function _c(W,Q,K,xe){for(var ze=W.length,dt=K+(xe?1:-1);xe?dt--:++dt<ze;)if(Q(W[dt],dt,W))return dt;return-1}function Ai(W,Q,K){return Q===Q?wM(W,Q,K):_c(W,hv,K)}function uM(W,Q,K,xe){for(var ze=K-1,dt=W.length;++ze<dt;)if(xe(W[ze],Q))return ze;return-1}function hv(W){return W!==W}function gv(W,Q){var K=W==null?0:W.length;return K?Jf(W,Q)/K:We}function Yf(W){return function(Q){return Q==null?n:Q[W]}}function Xf(W){return function(Q){return W==null?n:W[Q]}}function mv(W,Q,K,xe,ze){return ze(W,function(dt,Yt,Ct){K=xe?(xe=!1,dt):Q(K,dt,Yt,Ct)}),K}function dM(W,Q){var K=W.length;for(W.sort(Q);K--;)W[K]=W[K].value;return W}function Jf(W,Q){for(var K,xe=-1,ze=W.length;++xe<ze;){var dt=Q(W[xe]);dt!==n&&(K=K===n?dt:K+dt)}return K}function Zf(W,Q){for(var K=-1,xe=Array(W);++K<W;)xe[K]=Q(K);return xe}function fM(W,Q){return kt(Q,function(K){return[K,W[K]]})}function yv(W){return W&&W.slice(0,wv(W)+1).replace(jf,"")}function Fn(W){return function(Q){return W(Q)}}function Qf(W,Q){return kt(Q,function(K){return W[K]})}function zs(W,Q){return W.has(Q)}function vv(W,Q){for(var K=-1,xe=W.length;++K<xe&&Ai(Q,W[K],0)>-1;);return K}function bv(W,Q){for(var K=W.length;K--&&Ai(Q,W[K],0)>-1;);return K}function pM(W,Q){for(var K=W.length,xe=0;K--;)W[K]===Q&&++xe;return xe}var hM=Xf(J$),gM=Xf(Z$);function mM(W){return"\\"+eM[W]}function yM(W,Q){return W==null?n:W[Q]}function $i(W){return V$.test(W)}function vM(W){return K$.test(W)}function bM(W){for(var Q,K=[];!(Q=W.next()).done;)K.push(Q.value);return K}function ep(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe,ze){K[++Q]=[ze,xe]}),K}function xv(W,Q){return function(K){return W(Q(K))}}function ho(W,Q){for(var K=-1,xe=W.length,ze=0,dt=[];++K<xe;){var Yt=W[K];(Yt===Q||Yt===y)&&(W[K]=y,dt[ze++]=K)}return dt}function Ec(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe){K[++Q]=xe}),K}function xM(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe){K[++Q]=[xe,xe]}),K}function wM(W,Q,K){for(var xe=K-1,ze=W.length;++xe<ze;)if(W[xe]===Q)return xe;return-1}function SM(W,Q,K){for(var xe=K+1;xe--;)if(W[xe]===Q)return xe;return xe}function Mi(W){return $i(W)?_M(W):aM(W)}function hr(W){return $i(W)?EM(W):lM(W)}function wv(W){for(var Q=W.length;Q--&&p$.test(W.charAt(Q)););return Q}var CM=Xf(Q$);function _M(W){for(var Q=Uf.lastIndex=0;Uf.test(W);)++Q;return Q}function EM(W){return W.match(Uf)||[]}function RM(W){return W.match(q$)||[]}var PM=function W(Q){Q=Q==null?on:Bi.defaults(on.Object(),Q,Bi.pick(on,Y$));var K=Q.Array,xe=Q.Date,ze=Q.Error,dt=Q.Function,Yt=Q.Math,Ct=Q.Object,tp=Q.RegExp,TM=Q.String,or=Q.TypeError,Rc=K.prototype,IM=dt.prototype,Di=Ct.prototype,Pc=Q["__core-js_shared__"],Tc=IM.toString,bt=Di.hasOwnProperty,kM=0,Sv=function(){var o=/[^.]+$/.exec(Pc&&Pc.keys&&Pc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Ic=Di.toString,OM=Tc.call(Ct),AM=on._,$M=tp("^"+Tc.call(bt).replace(Lf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kc=iv?Q.Buffer:n,go=Q.Symbol,Oc=Q.Uint8Array,Cv=kc?kc.allocUnsafe:n,Ac=xv(Ct.getPrototypeOf,Ct),_v=Ct.create,Ev=Di.propertyIsEnumerable,$c=Rc.splice,Rv=go?go.isConcatSpreadable:n,Ws=go?go.iterator:n,zo=go?go.toStringTag:n,Mc=function(){try{var o=qo(Ct,"defineProperty");return o({},"",{}),o}catch{}}(),MM=Q.clearTimeout!==on.clearTimeout&&Q.clearTimeout,BM=xe&&xe.now!==on.Date.now&&xe.now,DM=Q.setTimeout!==on.setTimeout&&Q.setTimeout,Bc=Yt.ceil,Dc=Yt.floor,np=Ct.getOwnPropertySymbols,LM=kc?kc.isBuffer:n,Pv=Q.isFinite,jM=Rc.join,FM=xv(Ct.keys,Ct),Xt=Yt.max,pn=Yt.min,NM=xe.now,zM=Q.parseInt,Tv=Yt.random,WM=Rc.reverse,rp=qo(Q,"DataView"),Us=qo(Q,"Map"),op=qo(Q,"Promise"),Li=qo(Q,"Set"),Hs=qo(Q,"WeakMap"),Gs=qo(Ct,"create"),Lc=Hs&&new Hs,ji={},UM=Vo(rp),HM=Vo(Us),GM=Vo(op),qM=Vo(Li),VM=Vo(Hs),jc=go?go.prototype:n,qs=jc?jc.valueOf:n,Iv=jc?jc.toString:n;function I(o){if(Nt(o)&&!Ue(o)&&!(o instanceof nt)){if(o instanceof ir)return o;if(bt.call(o,"__wrapped__"))return kb(o)}return new ir(o)}var Fi=function(){function o(){}return function(s){if(!At(s))return{};if(_v)return _v(s);o.prototype=s;var u=new o;return o.prototype=n,u}}();function Fc(){}function ir(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}I.templateSettings={escape:a$,evaluate:l$,interpolate:j0,variable:"",imports:{_:I}},I.prototype=Fc.prototype,I.prototype.constructor=I,ir.prototype=Fi(Fc.prototype),ir.prototype.constructor=ir;function nt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=be,this.__views__=[]}function KM(){var o=new nt(this.__wrapped__);return o.__actions__=Pn(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Pn(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Pn(this.__views__),o}function YM(){if(this.__filtered__){var o=new nt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function XM(){var o=this.__wrapped__.value(),s=this.__dir__,u=Ue(o),f=s<0,S=u?o.length:0,A=lD(0,S,this.__views__),L=A.start,N=A.end,U=N-L,ne=f?N:L-1,re=this.__iteratees__,ie=re.length,me=0,Ee=pn(U,this.__takeCount__);if(!u||!f&&S==U&&Ee==U)return Qv(o,this.__actions__);var Oe=[];e:for(;U--&&me<Ee;){ne+=s;for(var Je=-1,Ae=o[ne];++Je<ie;){var et=re[Je],rt=et.iteratee,Wn=et.type,xn=rt(Ae);if(Wn==ee)Ae=xn;else if(!xn){if(Wn==Y)continue e;break e}}Oe[me++]=Ae}return Oe}nt.prototype=Fi(Fc.prototype),nt.prototype.constructor=nt;function Wo(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function JM(){this.__data__=Gs?Gs(null):{},this.size=0}function ZM(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function QM(o){var s=this.__data__;if(Gs){var u=s[o];return u===d?n:u}return bt.call(s,o)?s[o]:n}function eB(o){var s=this.__data__;return Gs?s[o]!==n:bt.call(s,o)}function tB(o,s){var u=this.__data__;return this.size+=this.has(o)?0:1,u[o]=Gs&&s===n?d:s,this}Wo.prototype.clear=JM,Wo.prototype.delete=ZM,Wo.prototype.get=QM,Wo.prototype.has=eB,Wo.prototype.set=tB;function qr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function nB(){this.__data__=[],this.size=0}function rB(o){var s=this.__data__,u=Nc(s,o);if(u<0)return!1;var f=s.length-1;return u==f?s.pop():$c.call(s,u,1),--this.size,!0}function oB(o){var s=this.__data__,u=Nc(s,o);return u<0?n:s[u][1]}function iB(o){return Nc(this.__data__,o)>-1}function sB(o,s){var u=this.__data__,f=Nc(u,o);return f<0?(++this.size,u.push([o,s])):u[f][1]=s,this}qr.prototype.clear=nB,qr.prototype.delete=rB,qr.prototype.get=oB,qr.prototype.has=iB,qr.prototype.set=sB;function Vr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}function aB(){this.size=0,this.__data__={hash:new Wo,map:new(Us||qr),string:new Wo}}function lB(o){var s=Zc(this,o).delete(o);return this.size-=s?1:0,s}function cB(o){return Zc(this,o).get(o)}function uB(o){return Zc(this,o).has(o)}function dB(o,s){var u=Zc(this,o),f=u.size;return u.set(o,s),this.size+=u.size==f?0:1,this}Vr.prototype.clear=aB,Vr.prototype.delete=lB,Vr.prototype.get=cB,Vr.prototype.has=uB,Vr.prototype.set=dB;function Uo(o){var s=-1,u=o==null?0:o.length;for(this.__data__=new Vr;++s<u;)this.add(o[s])}function fB(o){return this.__data__.set(o,d),this}function pB(o){return this.__data__.has(o)}Uo.prototype.add=Uo.prototype.push=fB,Uo.prototype.has=pB;function gr(o){var s=this.__data__=new qr(o);this.size=s.size}function hB(){this.__data__=new qr,this.size=0}function gB(o){var s=this.__data__,u=s.delete(o);return this.size=s.size,u}function mB(o){return this.__data__.get(o)}function yB(o){return this.__data__.has(o)}function vB(o,s){var u=this.__data__;if(u instanceof qr){var f=u.__data__;if(!Us||f.length<i-1)return f.push([o,s]),this.size=++u.size,this;u=this.__data__=new Vr(f)}return u.set(o,s),this.size=u.size,this}gr.prototype.clear=hB,gr.prototype.delete=gB,gr.prototype.get=mB,gr.prototype.has=yB,gr.prototype.set=vB;function kv(o,s){var u=Ue(o),f=!u&&Ko(o),S=!u&&!f&&xo(o),A=!u&&!f&&!S&&Ui(o),L=u||f||S||A,N=L?Zf(o.length,TM):[],U=N.length;for(var ne in o)(s||bt.call(o,ne))&&!(L&&(ne=="length"||S&&(ne=="offset"||ne=="parent")||A&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Jr(ne,U)))&&N.push(ne);return N}function Ov(o){var s=o.length;return s?o[gp(0,s-1)]:n}function bB(o,s){return Qc(Pn(o),Ho(s,0,o.length))}function xB(o){return Qc(Pn(o))}function ip(o,s,u){(u!==n&&!mr(o[s],u)||u===n&&!(s in o))&&Kr(o,s,u)}function Vs(o,s,u){var f=o[s];(!(bt.call(o,s)&&mr(f,u))||u===n&&!(s in o))&&Kr(o,s,u)}function Nc(o,s){for(var u=o.length;u--;)if(mr(o[u][0],s))return u;return-1}function wB(o,s,u,f){return mo(o,function(S,A,L){s(f,S,u(S),L)}),f}function Av(o,s){return o&&Br(s,en(s),o)}function SB(o,s){return o&&Br(s,In(s),o)}function Kr(o,s,u){s=="__proto__"&&Mc?Mc(o,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):o[s]=u}function sp(o,s){for(var u=-1,f=s.length,S=K(f),A=o==null;++u<f;)S[u]=A?n:Np(o,s[u]);return S}function Ho(o,s,u){return o===o&&(u!==n&&(o=o<=u?o:u),s!==n&&(o=o>=s?o:s)),o}function sr(o,s,u,f,S,A){var L,N=s&m,U=s&v,ne=s&w;if(u&&(L=S?u(o,f,S,A):u(o)),L!==n)return L;if(!At(o))return o;var re=Ue(o);if(re){if(L=uD(o),!N)return Pn(o,L)}else{var ie=hn(o),me=ie==de||ie==Te;if(xo(o))return nb(o,N);if(ie==De||ie==Xe||me&&!S){if(L=U||me?{}:wb(o),!N)return U?QB(o,SB(L,o)):ZB(o,Av(L,o))}else{if(!Et[ie])return S?o:{};L=dD(o,ie,N)}}A||(A=new gr);var Ee=A.get(o);if(Ee)return Ee;A.set(o,L),Xb(o)?o.forEach(function(Ae){L.add(sr(Ae,s,u,Ae,o,A))}):Kb(o)&&o.forEach(function(Ae,et){L.set(et,sr(Ae,s,u,et,o,A))});var Oe=ne?U?Rp:Ep:U?In:en,Je=re?n:Oe(o);return rr(Je||o,function(Ae,et){Je&&(et=Ae,Ae=o[et]),Vs(L,et,sr(Ae,s,u,et,o,A))}),L}function CB(o){var s=en(o);return function(u){return $v(u,o,s)}}function $v(o,s,u){var f=u.length;if(o==null)return!f;for(o=Ct(o);f--;){var S=u[f],A=s[S],L=o[S];if(L===n&&!(S in o)||!A(L))return!1}return!0}function Mv(o,s,u){if(typeof o!="function")throw new or(l);return ea(function(){o.apply(n,u)},s)}function Ks(o,s,u,f){var S=-1,A=Cc,L=!0,N=o.length,U=[],ne=s.length;if(!N)return U;u&&(s=kt(s,Fn(u))),f?(A=qf,L=!1):s.length>=i&&(A=zs,L=!1,s=new Uo(s));e:for(;++S<N;){var re=o[S],ie=u==null?re:u(re);if(re=f||re!==0?re:0,L&&ie===ie){for(var me=ne;me--;)if(s[me]===ie)continue e;U.push(re)}else A(s,ie,f)||U.push(re)}return U}var mo=ab(Mr),Bv=ab(lp,!0);function _B(o,s){var u=!0;return mo(o,function(f,S,A){return u=!!s(f,S,A),u}),u}function zc(o,s,u){for(var f=-1,S=o.length;++f<S;){var A=o[f],L=s(A);if(L!=null&&(N===n?L===L&&!zn(L):u(L,N)))var N=L,U=A}return U}function EB(o,s,u,f){var S=o.length;for(u=Ve(u),u<0&&(u=-u>S?0:S+u),f=f===n||f>S?S:Ve(f),f<0&&(f+=S),f=u>f?0:Zb(f);u<f;)o[u++]=s;return o}function Dv(o,s){var u=[];return mo(o,function(f,S,A){s(f,S,A)&&u.push(f)}),u}function sn(o,s,u,f,S){var A=-1,L=o.length;for(u||(u=pD),S||(S=[]);++A<L;){var N=o[A];s>0&&u(N)?s>1?sn(N,s-1,u,f,S):po(S,N):f||(S[S.length]=N)}return S}var ap=lb(),Lv=lb(!0);function Mr(o,s){return o&&ap(o,s,en)}function lp(o,s){return o&&Lv(o,s,en)}function Wc(o,s){return fo(s,function(u){return Zr(o[u])})}function Go(o,s){s=vo(s,o);for(var u=0,f=s.length;o!=null&&u<f;)o=o[Dr(s[u++])];return u&&u==f?o:n}function jv(o,s,u){var f=s(o);return Ue(o)?f:po(f,u(o))}function vn(o){return o==null?o===n?Ot:qe:zo&&zo in Ct(o)?aD(o):xD(o)}function cp(o,s){return o>s}function RB(o,s){return o!=null&&bt.call(o,s)}function PB(o,s){return o!=null&&s in Ct(o)}function TB(o,s,u){return o>=pn(s,u)&&o<Xt(s,u)}function up(o,s,u){for(var f=u?qf:Cc,S=o[0].length,A=o.length,L=A,N=K(A),U=1/0,ne=[];L--;){var re=o[L];L&&s&&(re=kt(re,Fn(s))),U=pn(re.length,U),N[L]=!u&&(s||S>=120&&re.length>=120)?new Uo(L&&re):n}re=o[0];var ie=-1,me=N[0];e:for(;++ie<S&&ne.length<U;){var Ee=re[ie],Oe=s?s(Ee):Ee;if(Ee=u||Ee!==0?Ee:0,!(me?zs(me,Oe):f(ne,Oe,u))){for(L=A;--L;){var Je=N[L];if(!(Je?zs(Je,Oe):f(o[L],Oe,u)))continue e}me&&me.push(Oe),ne.push(Ee)}}return ne}function IB(o,s,u,f){return Mr(o,function(S,A,L){s(f,u(S),A,L)}),f}function Ys(o,s,u){s=vo(s,o),o=Eb(o,s);var f=o==null?o:o[Dr(lr(s))];return f==null?n:jn(f,o,u)}function Fv(o){return Nt(o)&&vn(o)==Xe}function kB(o){return Nt(o)&&vn(o)==T}function OB(o){return Nt(o)&&vn(o)==ue}function Xs(o,s,u,f,S){return o===s?!0:o==null||s==null||!Nt(o)&&!Nt(s)?o!==o&&s!==s:AB(o,s,u,f,Xs,S)}function AB(o,s,u,f,S,A){var L=Ue(o),N=Ue(s),U=L?Ge:hn(o),ne=N?Ge:hn(s);U=U==Xe?De:U,ne=ne==Xe?De:ne;var re=U==De,ie=ne==De,me=U==ne;if(me&&xo(o)){if(!xo(s))return!1;L=!0,re=!1}if(me&&!re)return A||(A=new gr),L||Ui(o)?vb(o,s,u,f,S,A):iD(o,s,U,u,f,S,A);if(!(u&b)){var Ee=re&&bt.call(o,"__wrapped__"),Oe=ie&&bt.call(s,"__wrapped__");if(Ee||Oe){var Je=Ee?o.value():o,Ae=Oe?s.value():s;return A||(A=new gr),S(Je,Ae,u,f,A)}}return me?(A||(A=new gr),sD(o,s,u,f,S,A)):!1}function $B(o){return Nt(o)&&hn(o)==ve}function dp(o,s,u,f){var S=u.length,A=S,L=!f;if(o==null)return!A;for(o=Ct(o);S--;){var N=u[S];if(L&&N[2]?N[1]!==o[N[0]]:!(N[0]in o))return!1}for(;++S<A;){N=u[S];var U=N[0],ne=o[U],re=N[1];if(L&&N[2]){if(ne===n&&!(U in o))return!1}else{var ie=new gr;if(f)var me=f(ne,re,U,o,s,ie);if(!(me===n?Xs(re,ne,b|E,f,ie):me))return!1}}return!0}function Nv(o){if(!At(o)||gD(o))return!1;var s=Zr(o)?$M:C$;return s.test(Vo(o))}function MB(o){return Nt(o)&&vn(o)==tt}function BB(o){return Nt(o)&&hn(o)==$e}function DB(o){return Nt(o)&&iu(o.length)&&!!Pt[vn(o)]}function zv(o){return typeof o=="function"?o:o==null?kn:typeof o=="object"?Ue(o)?Hv(o[0],o[1]):Uv(o):cx(o)}function fp(o){if(!Qs(o))return FM(o);var s=[];for(var u in Ct(o))bt.call(o,u)&&u!="constructor"&&s.push(u);return s}function LB(o){if(!At(o))return bD(o);var s=Qs(o),u=[];for(var f in o)f=="constructor"&&(s||!bt.call(o,f))||u.push(f);return u}function pp(o,s){return o<s}function Wv(o,s){var u=-1,f=Tn(o)?K(o.length):[];return mo(o,function(S,A,L){f[++u]=s(S,A,L)}),f}function Uv(o){var s=Tp(o);return s.length==1&&s[0][2]?Cb(s[0][0],s[0][1]):function(u){return u===o||dp(u,o,s)}}function Hv(o,s){return kp(o)&&Sb(s)?Cb(Dr(o),s):function(u){var f=Np(u,o);return f===n&&f===s?zp(u,o):Xs(s,f,b|E)}}function Uc(o,s,u,f,S){o!==s&&ap(s,function(A,L){if(S||(S=new gr),At(A))jB(o,s,L,u,Uc,f,S);else{var N=f?f(Ap(o,L),A,L+"",o,s,S):n;N===n&&(N=A),ip(o,L,N)}},In)}function jB(o,s,u,f,S,A,L){var N=Ap(o,u),U=Ap(s,u),ne=L.get(U);if(ne){ip(o,u,ne);return}var re=A?A(N,U,u+"",o,s,L):n,ie=re===n;if(ie){var me=Ue(U),Ee=!me&&xo(U),Oe=!me&&!Ee&&Ui(U);re=U,me||Ee||Oe?Ue(N)?re=N:Ut(N)?re=Pn(N):Ee?(ie=!1,re=nb(U,!0)):Oe?(ie=!1,re=rb(U,!0)):re=[]:ta(U)||Ko(U)?(re=N,Ko(N)?re=Qb(N):(!At(N)||Zr(N))&&(re=wb(U))):ie=!1}ie&&(L.set(U,re),S(re,U,f,A,L),L.delete(U)),ip(o,u,re)}function Gv(o,s){var u=o.length;if(u)return s+=s<0?u:0,Jr(s,u)?o[s]:n}function qv(o,s,u){s.length?s=kt(s,function(A){return Ue(A)?function(L){return Go(L,A.length===1?A[0]:A)}:A}):s=[kn];var f=-1;s=kt(s,Fn(Ie()));var S=Wv(o,function(A,L,N){var U=kt(s,function(ne){return ne(A)});return{criteria:U,index:++f,value:A}});return dM(S,function(A,L){return JB(A,L,u)})}function FB(o,s){return Vv(o,s,function(u,f){return zp(o,f)})}function Vv(o,s,u){for(var f=-1,S=s.length,A={};++f<S;){var L=s[f],N=Go(o,L);u(N,L)&&Js(A,vo(L,o),N)}return A}function NB(o){return function(s){return Go(s,o)}}function hp(o,s,u,f){var S=f?uM:Ai,A=-1,L=s.length,N=o;for(o===s&&(s=Pn(s)),u&&(N=kt(o,Fn(u)));++A<L;)for(var U=0,ne=s[A],re=u?u(ne):ne;(U=S(N,re,U,f))>-1;)N!==o&&$c.call(N,U,1),$c.call(o,U,1);return o}function Kv(o,s){for(var u=o?s.length:0,f=u-1;u--;){var S=s[u];if(u==f||S!==A){var A=S;Jr(S)?$c.call(o,S,1):vp(o,S)}}return o}function gp(o,s){return o+Dc(Tv()*(s-o+1))}function zB(o,s,u,f){for(var S=-1,A=Xt(Bc((s-o)/(u||1)),0),L=K(A);A--;)L[f?A:++S]=o,o+=u;return L}function mp(o,s){var u="";if(!o||s<1||s>pe)return u;do s%2&&(u+=o),s=Dc(s/2),s&&(o+=o);while(s);return u}function Ze(o,s){return $p(_b(o,s,kn),o+"")}function WB(o){return Ov(Hi(o))}function UB(o,s){var u=Hi(o);return Qc(u,Ho(s,0,u.length))}function Js(o,s,u,f){if(!At(o))return o;s=vo(s,o);for(var S=-1,A=s.length,L=A-1,N=o;N!=null&&++S<A;){var U=Dr(s[S]),ne=u;if(U==="__proto__"||U==="constructor"||U==="prototype")return o;if(S!=L){var re=N[U];ne=f?f(re,U,N):n,ne===n&&(ne=At(re)?re:Jr(s[S+1])?[]:{})}Vs(N,U,ne),N=N[U]}return o}var Yv=Lc?function(o,s){return Lc.set(o,s),o}:kn,HB=Mc?function(o,s){return Mc(o,"toString",{configurable:!0,enumerable:!1,value:Up(s),writable:!0})}:kn;function GB(o){return Qc(Hi(o))}function ar(o,s,u){var f=-1,S=o.length;s<0&&(s=-s>S?0:S+s),u=u>S?S:u,u<0&&(u+=S),S=s>u?0:u-s>>>0,s>>>=0;for(var A=K(S);++f<S;)A[f]=o[f+s];return A}function qB(o,s){var u;return mo(o,function(f,S,A){return u=s(f,S,A),!u}),!!u}function Hc(o,s,u){var f=0,S=o==null?f:o.length;if(typeof s=="number"&&s===s&&S<=Ne){for(;f<S;){var A=f+S>>>1,L=o[A];L!==null&&!zn(L)&&(u?L<=s:L<s)?f=A+1:S=A}return S}return yp(o,s,kn,u)}function yp(o,s,u,f){var S=0,A=o==null?0:o.length;if(A===0)return 0;s=u(s);for(var L=s!==s,N=s===null,U=zn(s),ne=s===n;S<A;){var re=Dc((S+A)/2),ie=u(o[re]),me=ie!==n,Ee=ie===null,Oe=ie===ie,Je=zn(ie);if(L)var Ae=f||Oe;else ne?Ae=Oe&&(f||me):N?Ae=Oe&&me&&(f||!Ee):U?Ae=Oe&&me&&!Ee&&(f||!Je):Ee||Je?Ae=!1:Ae=f?ie<=s:ie<s;Ae?S=re+1:A=re}return pn(A,Be)}function Xv(o,s){for(var u=-1,f=o.length,S=0,A=[];++u<f;){var L=o[u],N=s?s(L):L;if(!u||!mr(N,U)){var U=N;A[S++]=L===0?0:L}}return A}function Jv(o){return typeof o=="number"?o:zn(o)?We:+o}function Nn(o){if(typeof o=="string")return o;if(Ue(o))return kt(o,Nn)+"";if(zn(o))return Iv?Iv.call(o):"";var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function yo(o,s,u){var f=-1,S=Cc,A=o.length,L=!0,N=[],U=N;if(u)L=!1,S=qf;else if(A>=i){var ne=s?null:rD(o);if(ne)return Ec(ne);L=!1,S=zs,U=new Uo}else U=s?[]:N;e:for(;++f<A;){var re=o[f],ie=s?s(re):re;if(re=u||re!==0?re:0,L&&ie===ie){for(var me=U.length;me--;)if(U[me]===ie)continue e;s&&U.push(ie),N.push(re)}else S(U,ie,u)||(U!==N&&U.push(ie),N.push(re))}return N}function vp(o,s){return s=vo(s,o),o=Eb(o,s),o==null||delete o[Dr(lr(s))]}function Zv(o,s,u,f){return Js(o,s,u(Go(o,s)),f)}function Gc(o,s,u,f){for(var S=o.length,A=f?S:-1;(f?A--:++A<S)&&s(o[A],A,o););return u?ar(o,f?0:A,f?A+1:S):ar(o,f?A+1:0,f?S:A)}function Qv(o,s){var u=o;return u instanceof nt&&(u=u.value()),Vf(s,function(f,S){return S.func.apply(S.thisArg,po([f],S.args))},u)}function bp(o,s,u){var f=o.length;if(f<2)return f?yo(o[0]):[];for(var S=-1,A=K(f);++S<f;)for(var L=o[S],N=-1;++N<f;)N!=S&&(A[S]=Ks(A[S]||L,o[N],s,u));return yo(sn(A,1),s,u)}function eb(o,s,u){for(var f=-1,S=o.length,A=s.length,L={};++f<S;){var N=f<A?s[f]:n;u(L,o[f],N)}return L}function xp(o){return Ut(o)?o:[]}function wp(o){return typeof o=="function"?o:kn}function vo(o,s){return Ue(o)?o:kp(o,s)?[o]:Ib(gt(o))}var VB=Ze;function bo(o,s,u){var f=o.length;return u=u===n?f:u,!s&&u>=f?o:ar(o,s,u)}var tb=MM||function(o){return on.clearTimeout(o)};function nb(o,s){if(s)return o.slice();var u=o.length,f=Cv?Cv(u):new o.constructor(u);return o.copy(f),f}function Sp(o){var s=new o.constructor(o.byteLength);return new Oc(s).set(new Oc(o)),s}function KB(o,s){var u=s?Sp(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.byteLength)}function YB(o){var s=new o.constructor(o.source,F0.exec(o));return s.lastIndex=o.lastIndex,s}function XB(o){return qs?Ct(qs.call(o)):{}}function rb(o,s){var u=s?Sp(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.length)}function ob(o,s){if(o!==s){var u=o!==n,f=o===null,S=o===o,A=zn(o),L=s!==n,N=s===null,U=s===s,ne=zn(s);if(!N&&!ne&&!A&&o>s||A&&L&&U&&!N&&!ne||f&&L&&U||!u&&U||!S)return 1;if(!f&&!A&&!ne&&o<s||ne&&u&&S&&!f&&!A||N&&u&&S||!L&&S||!U)return-1}return 0}function JB(o,s,u){for(var f=-1,S=o.criteria,A=s.criteria,L=S.length,N=u.length;++f<L;){var U=ob(S[f],A[f]);if(U){if(f>=N)return U;var ne=u[f];return U*(ne=="desc"?-1:1)}}return o.index-s.index}function ib(o,s,u,f){for(var S=-1,A=o.length,L=u.length,N=-1,U=s.length,ne=Xt(A-L,0),re=K(U+ne),ie=!f;++N<U;)re[N]=s[N];for(;++S<L;)(ie||S<A)&&(re[u[S]]=o[S]);for(;ne--;)re[N++]=o[S++];return re}function sb(o,s,u,f){for(var S=-1,A=o.length,L=-1,N=u.length,U=-1,ne=s.length,re=Xt(A-N,0),ie=K(re+ne),me=!f;++S<re;)ie[S]=o[S];for(var Ee=S;++U<ne;)ie[Ee+U]=s[U];for(;++L<N;)(me||S<A)&&(ie[Ee+u[L]]=o[S++]);return ie}function Pn(o,s){var u=-1,f=o.length;for(s||(s=K(f));++u<f;)s[u]=o[u];return s}function Br(o,s,u,f){var S=!u;u||(u={});for(var A=-1,L=s.length;++A<L;){var N=s[A],U=f?f(u[N],o[N],N,u,o):n;U===n&&(U=o[N]),S?Kr(u,N,U):Vs(u,N,U)}return u}function ZB(o,s){return Br(o,Ip(o),s)}function QB(o,s){return Br(o,bb(o),s)}function qc(o,s){return function(u,f){var S=Ue(u)?oM:wB,A=s?s():{};return S(u,o,Ie(f,2),A)}}function Ni(o){return Ze(function(s,u){var f=-1,S=u.length,A=S>1?u[S-1]:n,L=S>2?u[2]:n;for(A=o.length>3&&typeof A=="function"?(S--,A):n,L&&bn(u[0],u[1],L)&&(A=S<3?n:A,S=1),s=Ct(s);++f<S;){var N=u[f];N&&o(s,N,f,A)}return s})}function ab(o,s){return function(u,f){if(u==null)return u;if(!Tn(u))return o(u,f);for(var S=u.length,A=s?S:-1,L=Ct(u);(s?A--:++A<S)&&f(L[A],A,L)!==!1;);return u}}function lb(o){return function(s,u,f){for(var S=-1,A=Ct(s),L=f(s),N=L.length;N--;){var U=L[o?N:++S];if(u(A[U],U,A)===!1)break}return s}}function eD(o,s,u){var f=s&k,S=Zs(o);function A(){var L=this&&this!==on&&this instanceof A?S:o;return L.apply(f?u:this,arguments)}return A}function cb(o){return function(s){s=gt(s);var u=$i(s)?hr(s):n,f=u?u[0]:s.charAt(0),S=u?bo(u,1).join(""):s.slice(1);return f[o]()+S}}function zi(o){return function(s){return Vf(ax(sx(s).replace(H$,"")),o,"")}}function Zs(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var u=Fi(o.prototype),f=o.apply(u,s);return At(f)?f:u}}function tD(o,s,u){var f=Zs(o);function S(){for(var A=arguments.length,L=K(A),N=A,U=Wi(S);N--;)L[N]=arguments[N];var ne=A<3&&L[0]!==U&&L[A-1]!==U?[]:ho(L,U);if(A-=ne.length,A<u)return hb(o,s,Vc,S.placeholder,n,L,ne,n,n,u-A);var re=this&&this!==on&&this instanceof S?f:o;return jn(re,this,L)}return S}function ub(o){return function(s,u,f){var S=Ct(s);if(!Tn(s)){var A=Ie(u,3);s=en(s),u=function(N){return A(S[N],N,S)}}var L=o(s,u,f);return L>-1?S[A?s[L]:L]:n}}function db(o){return Xr(function(s){var u=s.length,f=u,S=ir.prototype.thru;for(o&&s.reverse();f--;){var A=s[f];if(typeof A!="function")throw new or(l);if(S&&!L&&Jc(A)=="wrapper")var L=new ir([],!0)}for(f=L?f:u;++f<u;){A=s[f];var N=Jc(A),U=N=="wrapper"?Pp(A):n;U&&Op(U[0])&&U[1]==($|C|M|z)&&!U[4].length&&U[9]==1?L=L[Jc(U[0])].apply(L,U[3]):L=A.length==1&&Op(A)?L[N]():L.thru(A)}return function(){var ne=arguments,re=ne[0];if(L&&ne.length==1&&Ue(re))return L.plant(re).value();for(var ie=0,me=u?s[ie].apply(this,ne):re;++ie<u;)me=s[ie].call(this,me);return me}})}function Vc(o,s,u,f,S,A,L,N,U,ne){var re=s&$,ie=s&k,me=s&_,Ee=s&(C|P),Oe=s&V,Je=me?n:Zs(o);function Ae(){for(var et=arguments.length,rt=K(et),Wn=et;Wn--;)rt[Wn]=arguments[Wn];if(Ee)var xn=Wi(Ae),Un=pM(rt,xn);if(f&&(rt=ib(rt,f,S,Ee)),A&&(rt=sb(rt,A,L,Ee)),et-=Un,Ee&&et<ne){var Ht=ho(rt,xn);return hb(o,s,Vc,Ae.placeholder,u,rt,Ht,N,U,ne-et)}var yr=ie?u:this,eo=me?yr[o]:o;return et=rt.length,N?rt=wD(rt,N):Oe&&et>1&&rt.reverse(),re&&U<et&&(rt.length=U),this&&this!==on&&this instanceof Ae&&(eo=Je||Zs(eo)),eo.apply(yr,rt)}return Ae}function fb(o,s){return function(u,f){return IB(u,o,s(f),{})}}function Kc(o,s){return function(u,f){var S;if(u===n&&f===n)return s;if(u!==n&&(S=u),f!==n){if(S===n)return f;typeof u=="string"||typeof f=="string"?(u=Nn(u),f=Nn(f)):(u=Jv(u),f=Jv(f)),S=o(u,f)}return S}}function Cp(o){return Xr(function(s){return s=kt(s,Fn(Ie())),Ze(function(u){var f=this;return o(s,function(S){return jn(S,f,u)})})})}function Yc(o,s){s=s===n?" ":Nn(s);var u=s.length;if(u<2)return u?mp(s,o):s;var f=mp(s,Bc(o/Mi(s)));return $i(s)?bo(hr(f),0,o).join(""):f.slice(0,o)}function nD(o,s,u,f){var S=s&k,A=Zs(o);function L(){for(var N=-1,U=arguments.length,ne=-1,re=f.length,ie=K(re+U),me=this&&this!==on&&this instanceof L?A:o;++ne<re;)ie[ne]=f[ne];for(;U--;)ie[ne++]=arguments[++N];return jn(me,S?u:this,ie)}return L}function pb(o){return function(s,u,f){return f&&typeof f!="number"&&bn(s,u,f)&&(u=f=n),s=Qr(s),u===n?(u=s,s=0):u=Qr(u),f=f===n?s<u?1:-1:Qr(f),zB(s,u,f,o)}}function Xc(o){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=cr(s),u=cr(u)),o(s,u)}}function hb(o,s,u,f,S,A,L,N,U,ne){var re=s&C,ie=re?L:n,me=re?n:L,Ee=re?A:n,Oe=re?n:A;s|=re?M:D,s&=~(re?D:M),s&O||(s&=~(k|_));var Je=[o,s,S,Ee,ie,Oe,me,N,U,ne],Ae=u.apply(n,Je);return Op(o)&&Rb(Ae,Je),Ae.placeholder=f,Pb(Ae,o,s)}function _p(o){var s=Yt[o];return function(u,f){if(u=cr(u),f=f==null?0:pn(Ve(f),292),f&&Pv(u)){var S=(gt(u)+"e").split("e"),A=s(S[0]+"e"+(+S[1]+f));return S=(gt(A)+"e").split("e"),+(S[0]+"e"+(+S[1]-f))}return s(u)}}var rD=Li&&1/Ec(new Li([,-0]))[1]==fe?function(o){return new Li(o)}:qp;function gb(o){return function(s){var u=hn(s);return u==ve?ep(s):u==$e?xM(s):fM(s,o(s))}}function Yr(o,s,u,f,S,A,L,N){var U=s&_;if(!U&&typeof o!="function")throw new or(l);var ne=f?f.length:0;if(ne||(s&=~(M|D),f=S=n),L=L===n?L:Xt(Ve(L),0),N=N===n?N:Ve(N),ne-=S?S.length:0,s&D){var re=f,ie=S;f=S=n}var me=U?n:Pp(o),Ee=[o,s,u,f,S,re,ie,A,L,N];if(me&&vD(Ee,me),o=Ee[0],s=Ee[1],u=Ee[2],f=Ee[3],S=Ee[4],N=Ee[9]=Ee[9]===n?U?0:o.length:Xt(Ee[9]-ne,0),!N&&s&(C|P)&&(s&=~(C|P)),!s||s==k)var Oe=eD(o,s,u);else s==C||s==P?Oe=tD(o,s,N):(s==M||s==(k|M))&&!S.length?Oe=nD(o,s,u,f):Oe=Vc.apply(n,Ee);var Je=me?Yv:Rb;return Pb(Je(Oe,Ee),o,s)}function mb(o,s,u,f){return o===n||mr(o,Di[u])&&!bt.call(f,u)?s:o}function yb(o,s,u,f,S,A){return At(o)&&At(s)&&(A.set(s,o),Uc(o,s,n,yb,A),A.delete(s)),o}function oD(o){return ta(o)?n:o}function vb(o,s,u,f,S,A){var L=u&b,N=o.length,U=s.length;if(N!=U&&!(L&&U>N))return!1;var ne=A.get(o),re=A.get(s);if(ne&&re)return ne==s&&re==o;var ie=-1,me=!0,Ee=u&E?new Uo:n;for(A.set(o,s),A.set(s,o);++ie<N;){var Oe=o[ie],Je=s[ie];if(f)var Ae=L?f(Je,Oe,ie,s,o,A):f(Oe,Je,ie,o,s,A);if(Ae!==n){if(Ae)continue;me=!1;break}if(Ee){if(!Kf(s,function(et,rt){if(!zs(Ee,rt)&&(Oe===et||S(Oe,et,u,f,A)))return Ee.push(rt)})){me=!1;break}}else if(!(Oe===Je||S(Oe,Je,u,f,A))){me=!1;break}}return A.delete(o),A.delete(s),me}function iD(o,s,u,f,S,A,L){switch(u){case p:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case T:return!(o.byteLength!=s.byteLength||!A(new Oc(o),new Oc(s)));case le:case ue:case ke:return mr(+o,+s);case ge:return o.name==s.name&&o.message==s.message;case tt:case st:return o==s+"";case ve:var N=ep;case $e:var U=f&b;if(N||(N=Ec),o.size!=s.size&&!U)return!1;var ne=L.get(o);if(ne)return ne==s;f|=E,L.set(o,s);var re=vb(N(o),N(s),f,S,A,L);return L.delete(o),re;case ye:if(qs)return qs.call(o)==qs.call(s)}return!1}function sD(o,s,u,f,S,A){var L=u&b,N=Ep(o),U=N.length,ne=Ep(s),re=ne.length;if(U!=re&&!L)return!1;for(var ie=U;ie--;){var me=N[ie];if(!(L?me in s:bt.call(s,me)))return!1}var Ee=A.get(o),Oe=A.get(s);if(Ee&&Oe)return Ee==s&&Oe==o;var Je=!0;A.set(o,s),A.set(s,o);for(var Ae=L;++ie<U;){me=N[ie];var et=o[me],rt=s[me];if(f)var Wn=L?f(rt,et,me,s,o,A):f(et,rt,me,o,s,A);if(!(Wn===n?et===rt||S(et,rt,u,f,A):Wn)){Je=!1;break}Ae||(Ae=me=="constructor")}if(Je&&!Ae){var xn=o.constructor,Un=s.constructor;xn!=Un&&"constructor"in o&&"constructor"in s&&!(typeof xn=="function"&&xn instanceof xn&&typeof Un=="function"&&Un instanceof Un)&&(Je=!1)}return A.delete(o),A.delete(s),Je}function Xr(o){return $p(_b(o,n,$b),o+"")}function Ep(o){return jv(o,en,Ip)}function Rp(o){return jv(o,In,bb)}var Pp=Lc?function(o){return Lc.get(o)}:qp;function Jc(o){for(var s=o.name+"",u=ji[s],f=bt.call(ji,s)?u.length:0;f--;){var S=u[f],A=S.func;if(A==null||A==o)return S.name}return s}function Wi(o){var s=bt.call(I,"placeholder")?I:o;return s.placeholder}function Ie(){var o=I.iteratee||Hp;return o=o===Hp?zv:o,arguments.length?o(arguments[0],arguments[1]):o}function Zc(o,s){var u=o.__data__;return hD(s)?u[typeof s=="string"?"string":"hash"]:u.map}function Tp(o){for(var s=en(o),u=s.length;u--;){var f=s[u],S=o[f];s[u]=[f,S,Sb(S)]}return s}function qo(o,s){var u=yM(o,s);return Nv(u)?u:n}function aD(o){var s=bt.call(o,zo),u=o[zo];try{o[zo]=n;var f=!0}catch{}var S=Ic.call(o);return f&&(s?o[zo]=u:delete o[zo]),S}var Ip=np?function(o){return o==null?[]:(o=Ct(o),fo(np(o),function(s){return Ev.call(o,s)}))}:Vp,bb=np?function(o){for(var s=[];o;)po(s,Ip(o)),o=Ac(o);return s}:Vp,hn=vn;(rp&&hn(new rp(new ArrayBuffer(1)))!=p||Us&&hn(new Us)!=ve||op&&hn(op.resolve())!=Re||Li&&hn(new Li)!=$e||Hs&&hn(new Hs)!=Ft)&&(hn=function(o){var s=vn(o),u=s==De?o.constructor:n,f=u?Vo(u):"";if(f)switch(f){case UM:return p;case HM:return ve;case GM:return Re;case qM:return $e;case VM:return Ft}return s});function lD(o,s,u){for(var f=-1,S=u.length;++f<S;){var A=u[f],L=A.size;switch(A.type){case"drop":o+=L;break;case"dropRight":s-=L;break;case"take":s=pn(s,o+L);break;case"takeRight":o=Xt(o,s-L);break}}return{start:o,end:s}}function cD(o){var s=o.match(g$);return s?s[1].split(m$):[]}function xb(o,s,u){s=vo(s,o);for(var f=-1,S=s.length,A=!1;++f<S;){var L=Dr(s[f]);if(!(A=o!=null&&u(o,L)))break;o=o[L]}return A||++f!=S?A:(S=o==null?0:o.length,!!S&&iu(S)&&Jr(L,S)&&(Ue(o)||Ko(o)))}function uD(o){var s=o.length,u=new o.constructor(s);return s&&typeof o[0]=="string"&&bt.call(o,"index")&&(u.index=o.index,u.input=o.input),u}function wb(o){return typeof o.constructor=="function"&&!Qs(o)?Fi(Ac(o)):{}}function dD(o,s,u){var f=o.constructor;switch(s){case T:return Sp(o);case le:case ue:return new f(+o);case p:return KB(o,u);case g:case B:case F:case q:case Z:case ce:case oe:case se:case Se:return rb(o,u);case ve:return new f;case ke:case st:return new f(o);case tt:return YB(o);case $e:return new f;case ye:return XB(o)}}function fD(o,s){var u=s.length;if(!u)return o;var f=u-1;return s[f]=(u>1?"& ":"")+s[f],s=s.join(u>2?", ":" "),o.replace(h$,`{
|
|
159
159
|
/* [wrapped with `+s+`] */
|
|
160
|
-
`)}function rD(o){return Ue(o)||Ko(o)||!!(wv&&o&&o[wv])}function Jr(o,s){var u=typeof o;return s=s??pe,!!s&&(u=="number"||u!="symbol"&&g$.test(o))&&o>-1&&o%1==0&&o<s}function vn(o,s,u){if(!At(u))return!1;var f=typeof s;return(f=="number"?Pn(u)&&Jr(s,u.length):f=="string"&&s in u)?mr(u[s],o):!1}function kp(o,s){if(Ue(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||zn(o)?!0:e$.test(o)||!QA.test(o)||s!=null&&o in Ct(s)}function oD(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Ip(o){var s=Xc(o),u=k[s];if(typeof u!="function"||!(s in nt.prototype))return!1;if(o===u)return!0;var f=Rp(u);return!!f&&o===f[0]}function iD(o){return!!yv&&yv in o}var sD=Rc?Zr:Vp;function Js(o){var s=o&&o.constructor,u=typeof s=="function"&&s.prototype||Di;return o===u}function yb(o){return o===o&&!At(o)}function vb(o,s){return function(u){return u==null?!1:u[o]===s&&(s!==n||o in Ct(u))}}function aD(o){var s=nu(o,function(f){return u.size===h&&u.clear(),f}),u=s.cache;return s}function lD(o,s){var u=o[1],f=s[1],w=u|f,A=w<(O|_|$),L=f==$&&u==E||f==$&&u==z&&o[7].length<=s[8]||f==($|z)&&s[7].length<=s[8]&&u==E;if(!(A||L))return o;f&O&&(o[2]=s[2],w|=u&O?0:I);var N=s[3];if(N){var U=o[3];o[3]=U?eb(U,N,s[4]):N,o[4]=U?ho(o[3],y):s[4]}return N=s[5],N&&(U=o[5],o[5]=U?tb(U,N,s[6]):N,o[6]=U?ho(o[5],y):s[6]),N=s[7],N&&(o[7]=N),f&$&&(o[8]=o[8]==null?s[8]:fn(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=w,o}function cD(o){var s=[];if(o!=null)for(var u in Ct(o))s.push(u);return s}function uD(o){return Pc.call(o)}function bb(o,s,u){return s=Xt(s===n?o.length-1:s,0),function(){for(var f=arguments,w=-1,A=Xt(f.length-s,0),L=q(A);++w<A;)L[w]=f[s+w];w=-1;for(var N=q(s+1);++w<s;)N[w]=f[w];return N[s]=u(L),jn(o,this,N)}}function xb(o,s){return s.length<2?o:Go(o,ar(s,0,-1))}function dD(o,s){for(var u=o.length,f=fn(s.length,u),w=Tn(o);f--;){var A=s[f];o[f]=Jr(A,u)?w[A]:n}return o}function Op(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var wb=Cb(Hv),Zs=RM||function(o,s){return on.setTimeout(o,s)},Ap=Cb(MB);function Sb(o,s,u){var f=s+"";return Ap(o,nD(f,fD(QB(f),u)))}function Cb(o){var s=0,u=0;return function(){var f=IM(),w=ee-(f-u);if(u=f,w>0){if(++s>=Q)return arguments[0]}else s=0;return o.apply(n,arguments)}}function Zc(o,s){var u=-1,f=o.length,w=f-1;for(s=s===n?f:s;++u<s;){var A=hp(u,w),L=o[A];o[A]=o[u],o[u]=L}return o.length=s,o}var _b=aD(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t$,function(u,f,w,A){s.push(w?A.replace(c$,"$1"):f||u)}),s});function Dr(o){if(typeof o=="string"||zn(o))return o;var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function Vo(o){if(o!=null){try{return Tc.call(o)}catch{}try{return o+""}catch{}}return""}function fD(o,s){return rr(Me,function(u){var f="_."+u[0];s&u[1]&&!Sc(o,f)&&o.push(f)}),o.sort()}function Eb(o){if(o instanceof nt)return o.clone();var s=new ir(o.__wrapped__,o.__chain__);return s.__actions__=Tn(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function pD(o,s,u){(u?vn(o,s,u):s===n)?s=1:s=Xt(Ve(s),0);var f=o==null?0:o.length;if(!f||s<1)return[];for(var w=0,A=0,L=q(Mc(f/s));w<f;)L[A++]=ar(o,w,w+=s);return L}function hD(o){for(var s=-1,u=o==null?0:o.length,f=0,w=[];++s<u;){var A=o[s];A&&(w[f++]=A)}return w}function gD(){var o=arguments.length;if(!o)return[];for(var s=q(o-1),u=arguments[0],f=o;f--;)s[f-1]=arguments[f];return po(Ue(u)?Tn(u):[u],sn(s,1))}var mD=Ze(function(o,s){return Ut(o)?qs(o,sn(s,1,Ut,!0)):[]}),yD=Ze(function(o,s){var u=lr(s);return Ut(u)&&(u=n),Ut(o)?qs(o,sn(s,1,Ut,!0),ke(u,2)):[]}),vD=Ze(function(o,s){var u=lr(s);return Ut(u)&&(u=n),Ut(o)?qs(o,sn(s,1,Ut,!0),n,u):[]});function bD(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),ar(o,s<0?0:s,f)):[]}function xD(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),s=f-s,ar(o,0,s<0?0:s)):[]}function wD(o,s){return o&&o.length?Hc(o,ke(s,3),!0,!0):[]}function SD(o,s){return o&&o.length?Hc(o,ke(s,3),!0):[]}function CD(o,s,u,f){var w=o==null?0:o.length;return w?(u&&typeof u!="number"&&vn(o,s,u)&&(u=0,f=w),gB(o,s,u,f)):[]}function Rb(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var w=u==null?0:Ve(u);return w<0&&(w=Xt(f+w,0)),Cc(o,ke(s,3),w)}function Tb(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var w=f-1;return u!==n&&(w=Ve(u),w=u<0?Xt(f+w,0):fn(w,f-1)),Cc(o,ke(s,3),w,!0)}function Pb(o){var s=o==null?0:o.length;return s?sn(o,1):[]}function _D(o){var s=o==null?0:o.length;return s?sn(o,fe):[]}function ED(o,s){var u=o==null?0:o.length;return u?(s=s===n?1:Ve(s),sn(o,s)):[]}function RD(o){for(var s=-1,u=o==null?0:o.length,f={};++s<u;){var w=o[s];f[w[0]]=w[1]}return f}function kb(o){return o&&o.length?o[0]:n}function TD(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var w=u==null?0:Ve(u);return w<0&&(w=Xt(f+w,0)),Ai(o,s,w)}function PD(o){var s=o==null?0:o.length;return s?ar(o,0,-1):[]}var kD=Ze(function(o){var s=It(o,bp);return s.length&&s[0]===o[0]?cp(s):[]}),ID=Ze(function(o){var s=lr(o),u=It(o,bp);return s===lr(u)?s=n:u.pop(),u.length&&u[0]===o[0]?cp(u,ke(s,2)):[]}),OD=Ze(function(o){var s=lr(o),u=It(o,bp);return s=typeof s=="function"?s:n,s&&u.pop(),u.length&&u[0]===o[0]?cp(u,n,s):[]});function AD(o,s){return o==null?"":PM.call(o,s)}function lr(o){var s=o==null?0:o.length;return s?o[s-1]:n}function $D(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var w=f;return u!==n&&(w=Ve(u),w=w<0?Xt(f+w,0):fn(w,f-1)),s===s?fM(o,s,w):Cc(o,cv,w,!0)}function MD(o,s){return o&&o.length?Nv(o,Ve(s)):n}var BD=Ze(Ib);function Ib(o,s){return o&&o.length&&s&&s.length?pp(o,s):o}function DD(o,s,u){return o&&o.length&&s&&s.length?pp(o,s,ke(u,2)):o}function LD(o,s,u){return o&&o.length&&s&&s.length?pp(o,s,n,u):o}var jD=Xr(function(o,s){var u=o==null?0:o.length,f=ip(o,s);return Uv(o,It(s,function(w){return Jr(w,u)?+w:w}).sort(Qv)),f});function FD(o,s){var u=[];if(!(o&&o.length))return u;var f=-1,w=[],A=o.length;for(s=ke(s,3);++f<A;){var L=o[f];s(L,f,o)&&(u.push(L),w.push(f))}return Uv(o,w),u}function $p(o){return o==null?o:AM.call(o)}function ND(o,s,u){var f=o==null?0:o.length;return f?(u&&typeof u!="number"&&vn(o,s,u)?(s=0,u=f):(s=s==null?0:Ve(s),u=u===n?f:Ve(u)),ar(o,s,u)):[]}function zD(o,s){return Uc(o,s)}function WD(o,s,u){return mp(o,s,ke(u,2))}function UD(o,s){var u=o==null?0:o.length;if(u){var f=Uc(o,s);if(f<u&&mr(o[f],s))return f}return-1}function HD(o,s){return Uc(o,s,!0)}function GD(o,s,u){return mp(o,s,ke(u,2),!0)}function qD(o,s){var u=o==null?0:o.length;if(u){var f=Uc(o,s,!0)-1;if(mr(o[f],s))return f}return-1}function VD(o){return o&&o.length?Gv(o):[]}function KD(o,s){return o&&o.length?Gv(o,ke(s,2)):[]}function YD(o){var s=o==null?0:o.length;return s?ar(o,1,s):[]}function XD(o,s,u){return o&&o.length?(s=u||s===n?1:Ve(s),ar(o,0,s<0?0:s)):[]}function JD(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),s=f-s,ar(o,s<0?0:s,f)):[]}function ZD(o,s){return o&&o.length?Hc(o,ke(s,3),!1,!0):[]}function QD(o,s){return o&&o.length?Hc(o,ke(s,3)):[]}var eL=Ze(function(o){return yo(sn(o,1,Ut,!0))}),tL=Ze(function(o){var s=lr(o);return Ut(s)&&(s=n),yo(sn(o,1,Ut,!0),ke(s,2))}),nL=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,yo(sn(o,1,Ut,!0),n,s)});function rL(o){return o&&o.length?yo(o):[]}function oL(o,s){return o&&o.length?yo(o,ke(s,2)):[]}function iL(o,s){return s=typeof s=="function"?s:n,o&&o.length?yo(o,n,s):[]}function Mp(o){if(!(o&&o.length))return[];var s=0;return o=fo(o,function(u){if(Ut(u))return s=Xt(u.length,s),!0}),Jf(s,function(u){return It(o,Kf(u))})}function Ob(o,s){if(!(o&&o.length))return[];var u=Mp(o);return s==null?u:It(u,function(f){return jn(s,n,f)})}var sL=Ze(function(o,s){return Ut(o)?qs(o,s):[]}),aL=Ze(function(o){return vp(fo(o,Ut))}),lL=Ze(function(o){var s=lr(o);return Ut(s)&&(s=n),vp(fo(o,Ut),ke(s,2))}),cL=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,vp(fo(o,Ut),n,s)}),uL=Ze(Mp);function dL(o,s){return Yv(o||[],s||[],Gs)}function fL(o,s){return Yv(o||[],s||[],Ys)}var pL=Ze(function(o){var s=o.length,u=s>1?o[s-1]:n;return u=typeof u=="function"?(o.pop(),u):n,Ob(o,u)});function Ab(o){var s=k(o);return s.__chain__=!0,s}function hL(o,s){return s(o),o}function Qc(o,s){return s(o)}var gL=Xr(function(o){var s=o.length,u=s?o[0]:0,f=this.__wrapped__,w=function(A){return ip(A,o)};return s>1||this.__actions__.length||!(f instanceof nt)||!Jr(u)?this.thru(w):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Qc,args:[w],thisArg:n}),new ir(f,this.__chain__).thru(function(A){return s&&!A.length&&A.push(n),A}))});function mL(){return Ab(this)}function yL(){return new ir(this.value(),this.__chain__)}function vL(){this.__values__===n&&(this.__values__=qb(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function bL(){return this}function xL(o){for(var s,u=this;u instanceof jc;){var f=Eb(u);f.__index__=0,f.__values__=n,s?w.__wrapped__=f:s=f;var w=f;u=u.__wrapped__}return w.__wrapped__=o,s}function wL(){var o=this.__wrapped__;if(o instanceof nt){var s=o;return this.__actions__.length&&(s=new nt(this)),s=s.reverse(),s.__actions__.push({func:Qc,args:[$p],thisArg:n}),new ir(s,this.__chain__)}return this.thru($p)}function SL(){return Kv(this.__wrapped__,this.__actions__)}var CL=Gc(function(o,s,u){bt.call(o,u)?++o[u]:Kr(o,u,1)});function _L(o,s,u){var f=Ue(o)?av:hB;return u&&vn(o,s,u)&&(s=n),f(o,ke(s,3))}function EL(o,s){var u=Ue(o)?fo:Ov;return u(o,ke(s,3))}var RL=ib(Rb),TL=ib(Tb);function PL(o,s){return sn(eu(o,s),1)}function kL(o,s){return sn(eu(o,s),fe)}function IL(o,s,u){return u=u===n?1:Ve(u),sn(eu(o,s),u)}function $b(o,s){var u=Ue(o)?rr:mo;return u(o,ke(s,3))}function Mb(o,s){var u=Ue(o)?Y$:Iv;return u(o,ke(s,3))}var OL=Gc(function(o,s,u){bt.call(o,u)?o[u].push(s):Kr(o,u,[s])});function AL(o,s,u,f){o=Pn(o)?o:Hi(o),u=u&&!f?Ve(u):0;var w=o.length;return u<0&&(u=Xt(w+u,0)),iu(o)?u<=w&&o.indexOf(s,u)>-1:!!w&&Ai(o,s,u)>-1}var $L=Ze(function(o,s,u){var f=-1,w=typeof s=="function",A=Pn(o)?q(o.length):[];return mo(o,function(L){A[++f]=w?jn(s,L,u):Vs(L,s,u)}),A}),ML=Gc(function(o,s,u){Kr(o,u,s)});function eu(o,s){var u=Ue(o)?It:Lv;return u(o,ke(s,3))}function BL(o,s,u,f){return o==null?[]:(Ue(s)||(s=s==null?[]:[s]),u=f?n:u,Ue(u)||(u=u==null?[]:[u]),zv(o,s,u))}var DL=Gc(function(o,s,u){o[u?0:1].push(s)},function(){return[[],[]]});function LL(o,s,u){var f=Ue(o)?qf:dv,w=arguments.length<3;return f(o,ke(s,4),u,w,mo)}function jL(o,s,u){var f=Ue(o)?X$:dv,w=arguments.length<3;return f(o,ke(s,4),u,w,Iv)}function FL(o,s){var u=Ue(o)?fo:Ov;return u(o,ru(ke(s,3)))}function NL(o){var s=Ue(o)?Rv:AB;return s(o)}function zL(o,s,u){(u?vn(o,s,u):s===n)?s=1:s=Ve(s);var f=Ue(o)?cB:$B;return f(o,s)}function WL(o){var s=Ue(o)?uB:BB;return s(o)}function UL(o){if(o==null)return 0;if(Pn(o))return iu(o)?Mi(o):o.length;var s=pn(o);return s==ve||s==$e?o.size:dp(o).length}function HL(o,s,u){var f=Ue(o)?Vf:DB;return u&&vn(o,s,u)&&(s=n),f(o,ke(s,3))}var GL=Ze(function(o,s){if(o==null)return[];var u=s.length;return u>1&&vn(o,s[0],s[1])?s=[]:u>2&&vn(s[0],s[1],s[2])&&(s=[s[0]]),zv(o,sn(s,1),[])}),tu=EM||function(){return on.Date.now()};function qL(o,s){if(typeof s!="function")throw new or(l);return o=Ve(o),function(){if(--o<1)return s.apply(this,arguments)}}function Bb(o,s,u){return s=u?n:s,s=o&&s==null?o.length:s,Yr(o,$,n,n,n,n,s)}function Db(o,s){var u;if(typeof s!="function")throw new or(l);return o=Ve(o),function(){return--o>0&&(u=s.apply(this,arguments)),o<=1&&(s=n),u}}var Bp=Ze(function(o,s,u){var f=O;if(u.length){var w=ho(u,Wi(Bp));f|=M}return Yr(o,f,s,u,w)}),Lb=Ze(function(o,s,u){var f=O|_;if(u.length){var w=ho(u,Wi(Lb));f|=M}return Yr(s,f,o,u,w)});function jb(o,s,u){s=u?n:s;var f=Yr(o,E,n,n,n,n,n,s);return f.placeholder=jb.placeholder,f}function Fb(o,s,u){s=u?n:s;var f=Yr(o,P,n,n,n,n,n,s);return f.placeholder=Fb.placeholder,f}function Nb(o,s,u){var f,w,A,L,N,U,ne=0,re=!1,ie=!1,me=!0;if(typeof o!="function")throw new or(l);s=cr(s)||0,At(u)&&(re=!!u.leading,ie="maxWait"in u,A=ie?Xt(cr(u.maxWait)||0,s):A,me="trailing"in u?!!u.trailing:me);function Ee(Ht){var yr=f,eo=w;return f=w=n,ne=Ht,L=o.apply(eo,yr),L}function Oe(Ht){return ne=Ht,N=Zs(et,s),re?Ee(Ht):L}function Je(Ht){var yr=Ht-U,eo=Ht-ne,ix=s-yr;return ie?fn(ix,A-eo):ix}function Ae(Ht){var yr=Ht-U,eo=Ht-ne;return U===n||yr>=s||yr<0||ie&&eo>=A}function et(){var Ht=tu();if(Ae(Ht))return rt(Ht);N=Zs(et,Je(Ht))}function rt(Ht){return N=n,me&&f?Ee(Ht):(f=w=n,L)}function Wn(){N!==n&&Xv(N),ne=0,f=U=w=N=n}function bn(){return N===n?L:rt(tu())}function Un(){var Ht=tu(),yr=Ae(Ht);if(f=arguments,w=this,U=Ht,yr){if(N===n)return Oe(U);if(ie)return Xv(N),N=Zs(et,s),Ee(U)}return N===n&&(N=Zs(et,s)),L}return Un.cancel=Wn,Un.flush=bn,Un}var VL=Ze(function(o,s){return kv(o,1,s)}),KL=Ze(function(o,s,u){return kv(o,cr(s)||0,u)});function YL(o){return Yr(o,V)}function nu(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new or(l);var u=function(){var f=arguments,w=s?s.apply(this,f):f[0],A=u.cache;if(A.has(w))return A.get(w);var L=o.apply(this,f);return u.cache=A.set(w,L)||A,L};return u.cache=new(nu.Cache||Vr),u}nu.Cache=Vr;function ru(o){if(typeof o!="function")throw new or(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function XL(o){return Db(2,o)}var JL=LB(function(o,s){s=s.length==1&&Ue(s[0])?It(s[0],Fn(ke())):It(sn(s,1),Fn(ke()));var u=s.length;return Ze(function(f){for(var w=-1,A=fn(f.length,u);++w<A;)f[w]=s[w].call(this,f[w]);return jn(o,this,f)})}),Dp=Ze(function(o,s){var u=ho(s,Wi(Dp));return Yr(o,M,n,s,u)}),zb=Ze(function(o,s){var u=ho(s,Wi(zb));return Yr(o,D,n,s,u)}),ZL=Xr(function(o,s){return Yr(o,z,n,n,n,s)});function QL(o,s){if(typeof o!="function")throw new or(l);return s=s===n?s:Ve(s),Ze(o,s)}function ej(o,s){if(typeof o!="function")throw new or(l);return s=s==null?0:Xt(Ve(s),0),Ze(function(u){var f=u[s],w=bo(u,0,s);return f&&po(w,f),jn(o,this,w)})}function tj(o,s,u){var f=!0,w=!0;if(typeof o!="function")throw new or(l);return At(u)&&(f="leading"in u?!!u.leading:f,w="trailing"in u?!!u.trailing:w),Nb(o,s,{leading:f,maxWait:s,trailing:w})}function nj(o){return Bb(o,1)}function rj(o,s){return Dp(xp(s),o)}function oj(){if(!arguments.length)return[];var o=arguments[0];return Ue(o)?o:[o]}function ij(o){return sr(o,S)}function sj(o,s){return s=typeof s=="function"?s:n,sr(o,S,s)}function aj(o){return sr(o,m|S)}function lj(o,s){return s=typeof s=="function"?s:n,sr(o,m|S,s)}function cj(o,s){return s==null||Pv(o,s,en(s))}function mr(o,s){return o===s||o!==o&&s!==s}var uj=Yc(lp),dj=Yc(function(o,s){return o>=s}),Ko=Mv(function(){return arguments}())?Mv:function(o){return Nt(o)&&bt.call(o,"callee")&&!xv.call(o,"callee")},Ue=q.isArray,fj=tv?Fn(tv):xB;function Pn(o){return o!=null&&ou(o.length)&&!Zr(o)}function Ut(o){return Nt(o)&&Pn(o)}function pj(o){return o===!0||o===!1||Nt(o)&&yn(o)==ae}var xo=TM||Vp,hj=nv?Fn(nv):wB;function gj(o){return Nt(o)&&o.nodeType===1&&!Qs(o)}function mj(o){if(o==null)return!0;if(Pn(o)&&(Ue(o)||typeof o=="string"||typeof o.splice=="function"||xo(o)||Ui(o)||Ko(o)))return!o.length;var s=pn(o);if(s==ve||s==$e)return!o.size;if(Js(o))return!dp(o).length;for(var u in o)if(bt.call(o,u))return!1;return!0}function yj(o,s){return Ks(o,s)}function vj(o,s,u){u=typeof u=="function"?u:n;var f=u?u(o,s):n;return f===n?Ks(o,s,n,u):!!f}function Lp(o){if(!Nt(o))return!1;var s=yn(o);return s==ge||s==he||typeof o.message=="string"&&typeof o.name=="string"&&!Qs(o)}function bj(o){return typeof o=="number"&&Sv(o)}function Zr(o){if(!At(o))return!1;var s=yn(o);return s==de||s==Pe||s==ht||s==Fe}function Wb(o){return typeof o=="number"&&o==Ve(o)}function ou(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=pe}function At(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Nt(o){return o!=null&&typeof o=="object"}var Ub=rv?Fn(rv):CB;function xj(o,s){return o===s||up(o,s,Tp(s))}function wj(o,s,u){return u=typeof u=="function"?u:n,up(o,s,Tp(s),u)}function Sj(o){return Hb(o)&&o!=+o}function Cj(o){if(sD(o))throw new ze(a);return Bv(o)}function _j(o){return o===null}function Ej(o){return o==null}function Hb(o){return typeof o=="number"||Nt(o)&&yn(o)==Ie}function Qs(o){if(!Nt(o)||yn(o)!=De)return!1;var s=Oc(o);if(s===null)return!0;var u=bt.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Tc.call(u)==wM}var jp=ov?Fn(ov):_B;function Rj(o){return Wb(o)&&o>=-pe&&o<=pe}var Gb=iv?Fn(iv):EB;function iu(o){return typeof o=="string"||!Ue(o)&&Nt(o)&&yn(o)==it}function zn(o){return typeof o=="symbol"||Nt(o)&&yn(o)==ye}var Ui=sv?Fn(sv):RB;function Tj(o){return o===n}function Pj(o){return Nt(o)&&pn(o)==Ft}function kj(o){return Nt(o)&&yn(o)==mn}var Ij=Yc(fp),Oj=Yc(function(o,s){return o<=s});function qb(o){if(!o)return[];if(Pn(o))return iu(o)?hr(o):Tn(o);if(Ns&&o[Ns])return cM(o[Ns]());var s=pn(o),u=s==ve?Qf:s==$e?_c:Hi;return u(o)}function Qr(o){if(!o)return o===0?o:0;if(o=cr(o),o===fe||o===-fe){var s=o<0?-1:1;return s*_e}return o===o?o:0}function Ve(o){var s=Qr(o),u=s%1;return s===s?u?s-u:s:0}function Vb(o){return o?Ho(Ve(o),0,be):0}function cr(o){if(typeof o=="number")return o;if(zn(o))return We;if(At(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=At(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=fv(o);var u=f$.test(o);return u||h$.test(o)?q$(o.slice(2),u?2:8):d$.test(o)?We:+o}function Kb(o){return Br(o,kn(o))}function Aj(o){return o?Ho(Ve(o),-pe,pe):o===0?o:0}function gt(o){return o==null?"":Nn(o)}var $j=Ni(function(o,s){if(Js(s)||Pn(s)){Br(s,en(s),o);return}for(var u in s)bt.call(s,u)&&Gs(o,u,s[u])}),Yb=Ni(function(o,s){Br(s,kn(s),o)}),su=Ni(function(o,s,u,f){Br(s,kn(s),o,f)}),Mj=Ni(function(o,s,u,f){Br(s,en(s),o,f)}),Bj=Xr(ip);function Dj(o,s){var u=Fi(o);return s==null?u:Tv(u,s)}var Lj=Ze(function(o,s){o=Ct(o);var u=-1,f=s.length,w=f>2?s[2]:n;for(w&&vn(s[0],s[1],w)&&(f=1);++u<f;)for(var A=s[u],L=kn(A),N=-1,U=L.length;++N<U;){var ne=L[N],re=o[ne];(re===n||mr(re,Di[ne])&&!bt.call(o,ne))&&(o[ne]=A[ne])}return o}),jj=Ze(function(o){return o.push(n,fb),jn(Xb,n,o)});function Fj(o,s){return lv(o,ke(s,3),Mr)}function Nj(o,s){return lv(o,ke(s,3),ap)}function zj(o,s){return o==null?o:sp(o,ke(s,3),kn)}function Wj(o,s){return o==null?o:Av(o,ke(s,3),kn)}function Uj(o,s){return o&&Mr(o,ke(s,3))}function Hj(o,s){return o&&ap(o,ke(s,3))}function Gj(o){return o==null?[]:zc(o,en(o))}function qj(o){return o==null?[]:zc(o,kn(o))}function Fp(o,s,u){var f=o==null?n:Go(o,s);return f===n?u:f}function Vj(o,s){return o!=null&&gb(o,s,mB)}function Np(o,s){return o!=null&&gb(o,s,yB)}var Kj=ab(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=Pc.call(s)),o[s]=u},Wp(In)),Yj=ab(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=Pc.call(s)),bt.call(o,s)?o[s].push(u):o[s]=[u]},ke),Xj=Ze(Vs);function en(o){return Pn(o)?Ev(o):dp(o)}function kn(o){return Pn(o)?Ev(o,!0):TB(o)}function Jj(o,s){var u={};return s=ke(s,3),Mr(o,function(f,w,A){Kr(u,s(f,w,A),f)}),u}function Zj(o,s){var u={};return s=ke(s,3),Mr(o,function(f,w,A){Kr(u,w,s(f,w,A))}),u}var Qj=Ni(function(o,s,u){Wc(o,s,u)}),Xb=Ni(function(o,s,u,f){Wc(o,s,u,f)}),eF=Xr(function(o,s){var u={};if(o==null)return u;var f=!1;s=It(s,function(A){return A=vo(A,o),f||(f=A.length>1),A}),Br(o,Ep(o),u),f&&(u=sr(u,m|v|S,KB));for(var w=s.length;w--;)yp(u,s[w]);return u});function tF(o,s){return Jb(o,ru(ke(s)))}var nF=Xr(function(o,s){return o==null?{}:kB(o,s)});function Jb(o,s){if(o==null)return{};var u=It(Ep(o),function(f){return[f]});return s=ke(s),Wv(o,u,function(f,w){return s(f,w[0])})}function rF(o,s,u){s=vo(s,o);var f=-1,w=s.length;for(w||(w=1,o=n);++f<w;){var A=o==null?n:o[Dr(s[f])];A===n&&(f=w,A=u),o=Zr(A)?A.call(o):A}return o}function oF(o,s,u){return o==null?o:Ys(o,s,u)}function iF(o,s,u,f){return f=typeof f=="function"?f:n,o==null?o:Ys(o,s,u,f)}var Zb=ub(en),Qb=ub(kn);function sF(o,s,u){var f=Ue(o),w=f||xo(o)||Ui(o);if(s=ke(s,4),u==null){var A=o&&o.constructor;w?u=f?new A:[]:At(o)?u=Zr(A)?Fi(Oc(o)):{}:u={}}return(w?rr:Mr)(o,function(L,N,U){return s(u,L,N,U)}),u}function aF(o,s){return o==null?!0:yp(o,s)}function lF(o,s,u){return o==null?o:Vv(o,s,xp(u))}function cF(o,s,u,f){return f=typeof f=="function"?f:n,o==null?o:Vv(o,s,xp(u),f)}function Hi(o){return o==null?[]:Zf(o,en(o))}function uF(o){return o==null?[]:Zf(o,kn(o))}function dF(o,s,u){return u===n&&(u=s,s=n),u!==n&&(u=cr(u),u=u===u?u:0),s!==n&&(s=cr(s),s=s===s?s:0),Ho(cr(o),s,u)}function fF(o,s,u){return s=Qr(s),u===n?(u=s,s=0):u=Qr(u),o=cr(o),vB(o,s,u)}function pF(o,s,u){if(u&&typeof u!="boolean"&&vn(o,s,u)&&(s=u=n),u===n&&(typeof s=="boolean"?(u=s,s=n):typeof o=="boolean"&&(u=o,o=n)),o===n&&s===n?(o=0,s=1):(o=Qr(o),s===n?(s=o,o=0):s=Qr(s)),o>s){var f=o;o=s,s=f}if(u||o%1||s%1){var w=Cv();return fn(o+w*(s-o+G$("1e-"+((w+"").length-1))),s)}return hp(o,s)}var hF=zi(function(o,s,u){return s=s.toLowerCase(),o+(u?ex(s):s)});function ex(o){return zp(gt(o).toLowerCase())}function tx(o){return o=gt(o),o&&o.replace(m$,oM).replace(B$,"")}function gF(o,s,u){o=gt(o),s=Nn(s);var f=o.length;u=u===n?f:Ho(Ve(u),0,f);var w=u;return u-=s.length,u>=0&&o.slice(u,w)==s}function mF(o){return o=gt(o),o&&js.test(o)?o.replace(uo,iM):o}function yF(o){return o=gt(o),o&&n$.test(o)?o.replace(Df,"\\$&"):o}var vF=zi(function(o,s,u){return o+(u?"-":"")+s.toLowerCase()}),bF=zi(function(o,s,u){return o+(u?" ":"")+s.toLowerCase()}),xF=ob("toLowerCase");function wF(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;if(!s||f>=s)return o;var w=(s-f)/2;return Kc(Bc(w),u)+o+Kc(Mc(w),u)}function SF(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;return s&&f<s?o+Kc(s-f,u):o}function CF(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;return s&&f<s?Kc(s-f,u)+o:o}function _F(o,s,u){return u||s==null?s=0:s&&(s=+s),OM(gt(o).replace(Lf,""),s||0)}function EF(o,s,u){return(u?vn(o,s,u):s===n)?s=1:s=Ve(s),gp(gt(o),s)}function RF(){var o=arguments,s=gt(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var TF=zi(function(o,s,u){return o+(u?"_":"")+s.toLowerCase()});function PF(o,s,u){return u&&typeof u!="number"&&vn(o,s,u)&&(s=u=n),u=u===n?be:u>>>0,u?(o=gt(o),o&&(typeof s=="string"||s!=null&&!jp(s))&&(s=Nn(s),!s&&$i(o))?bo(hr(o),0,u):o.split(s,u)):[]}var kF=zi(function(o,s,u){return o+(u?" ":"")+zp(s)});function IF(o,s,u){return o=gt(o),u=u==null?0:Ho(Ve(u),0,o.length),s=Nn(s),o.slice(u,u+s.length)==s}function OF(o,s,u){var f=k.templateSettings;u&&vn(o,s,u)&&(s=n),o=gt(o),s=su({},s,f,db);var w=su({},s.imports,f.imports,db),A=en(w),L=Zf(w,A),N,U,ne=0,re=s.interpolate||bc,ie="__p += '",me=ep((s.escape||bc).source+"|"+re.source+"|"+(re===$0?u$:bc).source+"|"+(s.evaluate||bc).source+"|$","g"),Ee="//# sourceURL="+(bt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++N$+"]")+`
|
|
161
|
-
`;o.replace(me,function(Ae,et,rt,Wn,
|
|
160
|
+
`)}function pD(o){return Ue(o)||Ko(o)||!!(Rv&&o&&o[Rv])}function Jr(o,s){var u=typeof o;return s=s??pe,!!s&&(u=="number"||u!="symbol"&&E$.test(o))&&o>-1&&o%1==0&&o<s}function bn(o,s,u){if(!At(u))return!1;var f=typeof s;return(f=="number"?Tn(u)&&Jr(s,u.length):f=="string"&&s in u)?mr(u[s],o):!1}function kp(o,s){if(Ue(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||zn(o)?!0:u$.test(o)||!c$.test(o)||s!=null&&o in Ct(s)}function hD(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Op(o){var s=Jc(o),u=I[s];if(typeof u!="function"||!(s in nt.prototype))return!1;if(o===u)return!0;var f=Pp(u);return!!f&&o===f[0]}function gD(o){return!!Sv&&Sv in o}var mD=Pc?Zr:Kp;function Qs(o){var s=o&&o.constructor,u=typeof s=="function"&&s.prototype||Di;return o===u}function Sb(o){return o===o&&!At(o)}function Cb(o,s){return function(u){return u==null?!1:u[o]===s&&(s!==n||o in Ct(u))}}function yD(o){var s=ru(o,function(f){return u.size===h&&u.clear(),f}),u=s.cache;return s}function vD(o,s){var u=o[1],f=s[1],S=u|f,A=S<(k|_|$),L=f==$&&u==C||f==$&&u==z&&o[7].length<=s[8]||f==($|z)&&s[7].length<=s[8]&&u==C;if(!(A||L))return o;f&k&&(o[2]=s[2],S|=u&k?0:O);var N=s[3];if(N){var U=o[3];o[3]=U?ib(U,N,s[4]):N,o[4]=U?ho(o[3],y):s[4]}return N=s[5],N&&(U=o[5],o[5]=U?sb(U,N,s[6]):N,o[6]=U?ho(o[5],y):s[6]),N=s[7],N&&(o[7]=N),f&$&&(o[8]=o[8]==null?s[8]:pn(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=S,o}function bD(o){var s=[];if(o!=null)for(var u in Ct(o))s.push(u);return s}function xD(o){return Ic.call(o)}function _b(o,s,u){return s=Xt(s===n?o.length-1:s,0),function(){for(var f=arguments,S=-1,A=Xt(f.length-s,0),L=K(A);++S<A;)L[S]=f[s+S];S=-1;for(var N=K(s+1);++S<s;)N[S]=f[S];return N[s]=u(L),jn(o,this,N)}}function Eb(o,s){return s.length<2?o:Go(o,ar(s,0,-1))}function wD(o,s){for(var u=o.length,f=pn(s.length,u),S=Pn(o);f--;){var A=s[f];o[f]=Jr(A,u)?S[A]:n}return o}function Ap(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var Rb=Tb(Yv),ea=DM||function(o,s){return on.setTimeout(o,s)},$p=Tb(HB);function Pb(o,s,u){var f=s+"";return $p(o,fD(f,SD(cD(f),u)))}function Tb(o){var s=0,u=0;return function(){var f=NM(),S=H-(f-u);if(u=f,S>0){if(++s>=te)return arguments[0]}else s=0;return o.apply(n,arguments)}}function Qc(o,s){var u=-1,f=o.length,S=f-1;for(s=s===n?f:s;++u<s;){var A=gp(u,S),L=o[A];o[A]=o[u],o[u]=L}return o.length=s,o}var Ib=yD(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(d$,function(u,f,S,A){s.push(S?A.replace(b$,"$1"):f||u)}),s});function Dr(o){if(typeof o=="string"||zn(o))return o;var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function Vo(o){if(o!=null){try{return Tc.call(o)}catch{}try{return o+""}catch{}}return""}function SD(o,s){return rr(Me,function(u){var f="_."+u[0];s&u[1]&&!Cc(o,f)&&o.push(f)}),o.sort()}function kb(o){if(o instanceof nt)return o.clone();var s=new ir(o.__wrapped__,o.__chain__);return s.__actions__=Pn(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function CD(o,s,u){(u?bn(o,s,u):s===n)?s=1:s=Xt(Ve(s),0);var f=o==null?0:o.length;if(!f||s<1)return[];for(var S=0,A=0,L=K(Bc(f/s));S<f;)L[A++]=ar(o,S,S+=s);return L}function _D(o){for(var s=-1,u=o==null?0:o.length,f=0,S=[];++s<u;){var A=o[s];A&&(S[f++]=A)}return S}function ED(){var o=arguments.length;if(!o)return[];for(var s=K(o-1),u=arguments[0],f=o;f--;)s[f-1]=arguments[f];return po(Ue(u)?Pn(u):[u],sn(s,1))}var RD=Ze(function(o,s){return Ut(o)?Ks(o,sn(s,1,Ut,!0)):[]}),PD=Ze(function(o,s){var u=lr(s);return Ut(u)&&(u=n),Ut(o)?Ks(o,sn(s,1,Ut,!0),Ie(u,2)):[]}),TD=Ze(function(o,s){var u=lr(s);return Ut(u)&&(u=n),Ut(o)?Ks(o,sn(s,1,Ut,!0),n,u):[]});function ID(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),ar(o,s<0?0:s,f)):[]}function kD(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),s=f-s,ar(o,0,s<0?0:s)):[]}function OD(o,s){return o&&o.length?Gc(o,Ie(s,3),!0,!0):[]}function AD(o,s){return o&&o.length?Gc(o,Ie(s,3),!0):[]}function $D(o,s,u,f){var S=o==null?0:o.length;return S?(u&&typeof u!="number"&&bn(o,s,u)&&(u=0,f=S),EB(o,s,u,f)):[]}function Ob(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var S=u==null?0:Ve(u);return S<0&&(S=Xt(f+S,0)),_c(o,Ie(s,3),S)}function Ab(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var S=f-1;return u!==n&&(S=Ve(u),S=u<0?Xt(f+S,0):pn(S,f-1)),_c(o,Ie(s,3),S,!0)}function $b(o){var s=o==null?0:o.length;return s?sn(o,1):[]}function MD(o){var s=o==null?0:o.length;return s?sn(o,fe):[]}function BD(o,s){var u=o==null?0:o.length;return u?(s=s===n?1:Ve(s),sn(o,s)):[]}function DD(o){for(var s=-1,u=o==null?0:o.length,f={};++s<u;){var S=o[s];f[S[0]]=S[1]}return f}function Mb(o){return o&&o.length?o[0]:n}function LD(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var S=u==null?0:Ve(u);return S<0&&(S=Xt(f+S,0)),Ai(o,s,S)}function jD(o){var s=o==null?0:o.length;return s?ar(o,0,-1):[]}var FD=Ze(function(o){var s=kt(o,xp);return s.length&&s[0]===o[0]?up(s):[]}),ND=Ze(function(o){var s=lr(o),u=kt(o,xp);return s===lr(u)?s=n:u.pop(),u.length&&u[0]===o[0]?up(u,Ie(s,2)):[]}),zD=Ze(function(o){var s=lr(o),u=kt(o,xp);return s=typeof s=="function"?s:n,s&&u.pop(),u.length&&u[0]===o[0]?up(u,n,s):[]});function WD(o,s){return o==null?"":jM.call(o,s)}function lr(o){var s=o==null?0:o.length;return s?o[s-1]:n}function UD(o,s,u){var f=o==null?0:o.length;if(!f)return-1;var S=f;return u!==n&&(S=Ve(u),S=S<0?Xt(f+S,0):pn(S,f-1)),s===s?SM(o,s,S):_c(o,hv,S,!0)}function HD(o,s){return o&&o.length?Gv(o,Ve(s)):n}var GD=Ze(Bb);function Bb(o,s){return o&&o.length&&s&&s.length?hp(o,s):o}function qD(o,s,u){return o&&o.length&&s&&s.length?hp(o,s,Ie(u,2)):o}function VD(o,s,u){return o&&o.length&&s&&s.length?hp(o,s,n,u):o}var KD=Xr(function(o,s){var u=o==null?0:o.length,f=sp(o,s);return Kv(o,kt(s,function(S){return Jr(S,u)?+S:S}).sort(ob)),f});function YD(o,s){var u=[];if(!(o&&o.length))return u;var f=-1,S=[],A=o.length;for(s=Ie(s,3);++f<A;){var L=o[f];s(L,f,o)&&(u.push(L),S.push(f))}return Kv(o,S),u}function Mp(o){return o==null?o:WM.call(o)}function XD(o,s,u){var f=o==null?0:o.length;return f?(u&&typeof u!="number"&&bn(o,s,u)?(s=0,u=f):(s=s==null?0:Ve(s),u=u===n?f:Ve(u)),ar(o,s,u)):[]}function JD(o,s){return Hc(o,s)}function ZD(o,s,u){return yp(o,s,Ie(u,2))}function QD(o,s){var u=o==null?0:o.length;if(u){var f=Hc(o,s);if(f<u&&mr(o[f],s))return f}return-1}function eL(o,s){return Hc(o,s,!0)}function tL(o,s,u){return yp(o,s,Ie(u,2),!0)}function nL(o,s){var u=o==null?0:o.length;if(u){var f=Hc(o,s,!0)-1;if(mr(o[f],s))return f}return-1}function rL(o){return o&&o.length?Xv(o):[]}function oL(o,s){return o&&o.length?Xv(o,Ie(s,2)):[]}function iL(o){var s=o==null?0:o.length;return s?ar(o,1,s):[]}function sL(o,s,u){return o&&o.length?(s=u||s===n?1:Ve(s),ar(o,0,s<0?0:s)):[]}function aL(o,s,u){var f=o==null?0:o.length;return f?(s=u||s===n?1:Ve(s),s=f-s,ar(o,s<0?0:s,f)):[]}function lL(o,s){return o&&o.length?Gc(o,Ie(s,3),!1,!0):[]}function cL(o,s){return o&&o.length?Gc(o,Ie(s,3)):[]}var uL=Ze(function(o){return yo(sn(o,1,Ut,!0))}),dL=Ze(function(o){var s=lr(o);return Ut(s)&&(s=n),yo(sn(o,1,Ut,!0),Ie(s,2))}),fL=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,yo(sn(o,1,Ut,!0),n,s)});function pL(o){return o&&o.length?yo(o):[]}function hL(o,s){return o&&o.length?yo(o,Ie(s,2)):[]}function gL(o,s){return s=typeof s=="function"?s:n,o&&o.length?yo(o,n,s):[]}function Bp(o){if(!(o&&o.length))return[];var s=0;return o=fo(o,function(u){if(Ut(u))return s=Xt(u.length,s),!0}),Zf(s,function(u){return kt(o,Yf(u))})}function Db(o,s){if(!(o&&o.length))return[];var u=Bp(o);return s==null?u:kt(u,function(f){return jn(s,n,f)})}var mL=Ze(function(o,s){return Ut(o)?Ks(o,s):[]}),yL=Ze(function(o){return bp(fo(o,Ut))}),vL=Ze(function(o){var s=lr(o);return Ut(s)&&(s=n),bp(fo(o,Ut),Ie(s,2))}),bL=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,bp(fo(o,Ut),n,s)}),xL=Ze(Bp);function wL(o,s){return eb(o||[],s||[],Vs)}function SL(o,s){return eb(o||[],s||[],Js)}var CL=Ze(function(o){var s=o.length,u=s>1?o[s-1]:n;return u=typeof u=="function"?(o.pop(),u):n,Db(o,u)});function Lb(o){var s=I(o);return s.__chain__=!0,s}function _L(o,s){return s(o),o}function eu(o,s){return s(o)}var EL=Xr(function(o){var s=o.length,u=s?o[0]:0,f=this.__wrapped__,S=function(A){return sp(A,o)};return s>1||this.__actions__.length||!(f instanceof nt)||!Jr(u)?this.thru(S):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:eu,args:[S],thisArg:n}),new ir(f,this.__chain__).thru(function(A){return s&&!A.length&&A.push(n),A}))});function RL(){return Lb(this)}function PL(){return new ir(this.value(),this.__chain__)}function TL(){this.__values__===n&&(this.__values__=Jb(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function IL(){return this}function kL(o){for(var s,u=this;u instanceof Fc;){var f=kb(u);f.__index__=0,f.__values__=n,s?S.__wrapped__=f:s=f;var S=f;u=u.__wrapped__}return S.__wrapped__=o,s}function OL(){var o=this.__wrapped__;if(o instanceof nt){var s=o;return this.__actions__.length&&(s=new nt(this)),s=s.reverse(),s.__actions__.push({func:eu,args:[Mp],thisArg:n}),new ir(s,this.__chain__)}return this.thru(Mp)}function AL(){return Qv(this.__wrapped__,this.__actions__)}var $L=qc(function(o,s,u){bt.call(o,u)?++o[u]:Kr(o,u,1)});function ML(o,s,u){var f=Ue(o)?fv:_B;return u&&bn(o,s,u)&&(s=n),f(o,Ie(s,3))}function BL(o,s){var u=Ue(o)?fo:Dv;return u(o,Ie(s,3))}var DL=ub(Ob),LL=ub(Ab);function jL(o,s){return sn(tu(o,s),1)}function FL(o,s){return sn(tu(o,s),fe)}function NL(o,s,u){return u=u===n?1:Ve(u),sn(tu(o,s),u)}function jb(o,s){var u=Ue(o)?rr:mo;return u(o,Ie(s,3))}function Fb(o,s){var u=Ue(o)?iM:Bv;return u(o,Ie(s,3))}var zL=qc(function(o,s,u){bt.call(o,u)?o[u].push(s):Kr(o,u,[s])});function WL(o,s,u,f){o=Tn(o)?o:Hi(o),u=u&&!f?Ve(u):0;var S=o.length;return u<0&&(u=Xt(S+u,0)),su(o)?u<=S&&o.indexOf(s,u)>-1:!!S&&Ai(o,s,u)>-1}var UL=Ze(function(o,s,u){var f=-1,S=typeof s=="function",A=Tn(o)?K(o.length):[];return mo(o,function(L){A[++f]=S?jn(s,L,u):Ys(L,s,u)}),A}),HL=qc(function(o,s,u){Kr(o,u,s)});function tu(o,s){var u=Ue(o)?kt:Wv;return u(o,Ie(s,3))}function GL(o,s,u,f){return o==null?[]:(Ue(s)||(s=s==null?[]:[s]),u=f?n:u,Ue(u)||(u=u==null?[]:[u]),qv(o,s,u))}var qL=qc(function(o,s,u){o[u?0:1].push(s)},function(){return[[],[]]});function VL(o,s,u){var f=Ue(o)?Vf:mv,S=arguments.length<3;return f(o,Ie(s,4),u,S,mo)}function KL(o,s,u){var f=Ue(o)?sM:mv,S=arguments.length<3;return f(o,Ie(s,4),u,S,Bv)}function YL(o,s){var u=Ue(o)?fo:Dv;return u(o,ou(Ie(s,3)))}function XL(o){var s=Ue(o)?Ov:WB;return s(o)}function JL(o,s,u){(u?bn(o,s,u):s===n)?s=1:s=Ve(s);var f=Ue(o)?bB:UB;return f(o,s)}function ZL(o){var s=Ue(o)?xB:GB;return s(o)}function QL(o){if(o==null)return 0;if(Tn(o))return su(o)?Mi(o):o.length;var s=hn(o);return s==ve||s==$e?o.size:fp(o).length}function ej(o,s,u){var f=Ue(o)?Kf:qB;return u&&bn(o,s,u)&&(s=n),f(o,Ie(s,3))}var tj=Ze(function(o,s){if(o==null)return[];var u=s.length;return u>1&&bn(o,s[0],s[1])?s=[]:u>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),qv(o,sn(s,1),[])}),nu=BM||function(){return on.Date.now()};function nj(o,s){if(typeof s!="function")throw new or(l);return o=Ve(o),function(){if(--o<1)return s.apply(this,arguments)}}function Nb(o,s,u){return s=u?n:s,s=o&&s==null?o.length:s,Yr(o,$,n,n,n,n,s)}function zb(o,s){var u;if(typeof s!="function")throw new or(l);return o=Ve(o),function(){return--o>0&&(u=s.apply(this,arguments)),o<=1&&(s=n),u}}var Dp=Ze(function(o,s,u){var f=k;if(u.length){var S=ho(u,Wi(Dp));f|=M}return Yr(o,f,s,u,S)}),Wb=Ze(function(o,s,u){var f=k|_;if(u.length){var S=ho(u,Wi(Wb));f|=M}return Yr(s,f,o,u,S)});function Ub(o,s,u){s=u?n:s;var f=Yr(o,C,n,n,n,n,n,s);return f.placeholder=Ub.placeholder,f}function Hb(o,s,u){s=u?n:s;var f=Yr(o,P,n,n,n,n,n,s);return f.placeholder=Hb.placeholder,f}function Gb(o,s,u){var f,S,A,L,N,U,ne=0,re=!1,ie=!1,me=!0;if(typeof o!="function")throw new or(l);s=cr(s)||0,At(u)&&(re=!!u.leading,ie="maxWait"in u,A=ie?Xt(cr(u.maxWait)||0,s):A,me="trailing"in u?!!u.trailing:me);function Ee(Ht){var yr=f,eo=S;return f=S=n,ne=Ht,L=o.apply(eo,yr),L}function Oe(Ht){return ne=Ht,N=ea(et,s),re?Ee(Ht):L}function Je(Ht){var yr=Ht-U,eo=Ht-ne,ux=s-yr;return ie?pn(ux,A-eo):ux}function Ae(Ht){var yr=Ht-U,eo=Ht-ne;return U===n||yr>=s||yr<0||ie&&eo>=A}function et(){var Ht=nu();if(Ae(Ht))return rt(Ht);N=ea(et,Je(Ht))}function rt(Ht){return N=n,me&&f?Ee(Ht):(f=S=n,L)}function Wn(){N!==n&&tb(N),ne=0,f=U=S=N=n}function xn(){return N===n?L:rt(nu())}function Un(){var Ht=nu(),yr=Ae(Ht);if(f=arguments,S=this,U=Ht,yr){if(N===n)return Oe(U);if(ie)return tb(N),N=ea(et,s),Ee(U)}return N===n&&(N=ea(et,s)),L}return Un.cancel=Wn,Un.flush=xn,Un}var rj=Ze(function(o,s){return Mv(o,1,s)}),oj=Ze(function(o,s,u){return Mv(o,cr(s)||0,u)});function ij(o){return Yr(o,V)}function ru(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new or(l);var u=function(){var f=arguments,S=s?s.apply(this,f):f[0],A=u.cache;if(A.has(S))return A.get(S);var L=o.apply(this,f);return u.cache=A.set(S,L)||A,L};return u.cache=new(ru.Cache||Vr),u}ru.Cache=Vr;function ou(o){if(typeof o!="function")throw new or(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function sj(o){return zb(2,o)}var aj=VB(function(o,s){s=s.length==1&&Ue(s[0])?kt(s[0],Fn(Ie())):kt(sn(s,1),Fn(Ie()));var u=s.length;return Ze(function(f){for(var S=-1,A=pn(f.length,u);++S<A;)f[S]=s[S].call(this,f[S]);return jn(o,this,f)})}),Lp=Ze(function(o,s){var u=ho(s,Wi(Lp));return Yr(o,M,n,s,u)}),qb=Ze(function(o,s){var u=ho(s,Wi(qb));return Yr(o,D,n,s,u)}),lj=Xr(function(o,s){return Yr(o,z,n,n,n,s)});function cj(o,s){if(typeof o!="function")throw new or(l);return s=s===n?s:Ve(s),Ze(o,s)}function uj(o,s){if(typeof o!="function")throw new or(l);return s=s==null?0:Xt(Ve(s),0),Ze(function(u){var f=u[s],S=bo(u,0,s);return f&&po(S,f),jn(o,this,S)})}function dj(o,s,u){var f=!0,S=!0;if(typeof o!="function")throw new or(l);return At(u)&&(f="leading"in u?!!u.leading:f,S="trailing"in u?!!u.trailing:S),Gb(o,s,{leading:f,maxWait:s,trailing:S})}function fj(o){return Nb(o,1)}function pj(o,s){return Lp(wp(s),o)}function hj(){if(!arguments.length)return[];var o=arguments[0];return Ue(o)?o:[o]}function gj(o){return sr(o,w)}function mj(o,s){return s=typeof s=="function"?s:n,sr(o,w,s)}function yj(o){return sr(o,m|w)}function vj(o,s){return s=typeof s=="function"?s:n,sr(o,m|w,s)}function bj(o,s){return s==null||$v(o,s,en(s))}function mr(o,s){return o===s||o!==o&&s!==s}var xj=Xc(cp),wj=Xc(function(o,s){return o>=s}),Ko=Fv(function(){return arguments}())?Fv:function(o){return Nt(o)&&bt.call(o,"callee")&&!Ev.call(o,"callee")},Ue=K.isArray,Sj=sv?Fn(sv):kB;function Tn(o){return o!=null&&iu(o.length)&&!Zr(o)}function Ut(o){return Nt(o)&&Tn(o)}function Cj(o){return o===!0||o===!1||Nt(o)&&vn(o)==le}var xo=LM||Kp,_j=av?Fn(av):OB;function Ej(o){return Nt(o)&&o.nodeType===1&&!ta(o)}function Rj(o){if(o==null)return!0;if(Tn(o)&&(Ue(o)||typeof o=="string"||typeof o.splice=="function"||xo(o)||Ui(o)||Ko(o)))return!o.length;var s=hn(o);if(s==ve||s==$e)return!o.size;if(Qs(o))return!fp(o).length;for(var u in o)if(bt.call(o,u))return!1;return!0}function Pj(o,s){return Xs(o,s)}function Tj(o,s,u){u=typeof u=="function"?u:n;var f=u?u(o,s):n;return f===n?Xs(o,s,n,u):!!f}function jp(o){if(!Nt(o))return!1;var s=vn(o);return s==ge||s==he||typeof o.message=="string"&&typeof o.name=="string"&&!ta(o)}function Ij(o){return typeof o=="number"&&Pv(o)}function Zr(o){if(!At(o))return!1;var s=vn(o);return s==de||s==Te||s==ht||s==Fe}function Vb(o){return typeof o=="number"&&o==Ve(o)}function iu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=pe}function At(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Nt(o){return o!=null&&typeof o=="object"}var Kb=lv?Fn(lv):$B;function kj(o,s){return o===s||dp(o,s,Tp(s))}function Oj(o,s,u){return u=typeof u=="function"?u:n,dp(o,s,Tp(s),u)}function Aj(o){return Yb(o)&&o!=+o}function $j(o){if(mD(o))throw new ze(a);return Nv(o)}function Mj(o){return o===null}function Bj(o){return o==null}function Yb(o){return typeof o=="number"||Nt(o)&&vn(o)==ke}function ta(o){if(!Nt(o)||vn(o)!=De)return!1;var s=Ac(o);if(s===null)return!0;var u=bt.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Tc.call(u)==OM}var Fp=cv?Fn(cv):MB;function Dj(o){return Vb(o)&&o>=-pe&&o<=pe}var Xb=uv?Fn(uv):BB;function su(o){return typeof o=="string"||!Ue(o)&&Nt(o)&&vn(o)==st}function zn(o){return typeof o=="symbol"||Nt(o)&&vn(o)==ye}var Ui=dv?Fn(dv):DB;function Lj(o){return o===n}function jj(o){return Nt(o)&&hn(o)==Ft}function Fj(o){return Nt(o)&&vn(o)==yn}var Nj=Xc(pp),zj=Xc(function(o,s){return o<=s});function Jb(o){if(!o)return[];if(Tn(o))return su(o)?hr(o):Pn(o);if(Ws&&o[Ws])return bM(o[Ws]());var s=hn(o),u=s==ve?ep:s==$e?Ec:Hi;return u(o)}function Qr(o){if(!o)return o===0?o:0;if(o=cr(o),o===fe||o===-fe){var s=o<0?-1:1;return s*_e}return o===o?o:0}function Ve(o){var s=Qr(o),u=s%1;return s===s?u?s-u:s:0}function Zb(o){return o?Ho(Ve(o),0,be):0}function cr(o){if(typeof o=="number")return o;if(zn(o))return We;if(At(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=At(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=yv(o);var u=S$.test(o);return u||_$.test(o)?nM(o.slice(2),u?2:8):w$.test(o)?We:+o}function Qb(o){return Br(o,In(o))}function Wj(o){return o?Ho(Ve(o),-pe,pe):o===0?o:0}function gt(o){return o==null?"":Nn(o)}var Uj=Ni(function(o,s){if(Qs(s)||Tn(s)){Br(s,en(s),o);return}for(var u in s)bt.call(s,u)&&Vs(o,u,s[u])}),ex=Ni(function(o,s){Br(s,In(s),o)}),au=Ni(function(o,s,u,f){Br(s,In(s),o,f)}),Hj=Ni(function(o,s,u,f){Br(s,en(s),o,f)}),Gj=Xr(sp);function qj(o,s){var u=Fi(o);return s==null?u:Av(u,s)}var Vj=Ze(function(o,s){o=Ct(o);var u=-1,f=s.length,S=f>2?s[2]:n;for(S&&bn(s[0],s[1],S)&&(f=1);++u<f;)for(var A=s[u],L=In(A),N=-1,U=L.length;++N<U;){var ne=L[N],re=o[ne];(re===n||mr(re,Di[ne])&&!bt.call(o,ne))&&(o[ne]=A[ne])}return o}),Kj=Ze(function(o){return o.push(n,yb),jn(tx,n,o)});function Yj(o,s){return pv(o,Ie(s,3),Mr)}function Xj(o,s){return pv(o,Ie(s,3),lp)}function Jj(o,s){return o==null?o:ap(o,Ie(s,3),In)}function Zj(o,s){return o==null?o:Lv(o,Ie(s,3),In)}function Qj(o,s){return o&&Mr(o,Ie(s,3))}function eF(o,s){return o&&lp(o,Ie(s,3))}function tF(o){return o==null?[]:Wc(o,en(o))}function nF(o){return o==null?[]:Wc(o,In(o))}function Np(o,s,u){var f=o==null?n:Go(o,s);return f===n?u:f}function rF(o,s){return o!=null&&xb(o,s,RB)}function zp(o,s){return o!=null&&xb(o,s,PB)}var oF=fb(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=Ic.call(s)),o[s]=u},Up(kn)),iF=fb(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=Ic.call(s)),bt.call(o,s)?o[s].push(u):o[s]=[u]},Ie),sF=Ze(Ys);function en(o){return Tn(o)?kv(o):fp(o)}function In(o){return Tn(o)?kv(o,!0):LB(o)}function aF(o,s){var u={};return s=Ie(s,3),Mr(o,function(f,S,A){Kr(u,s(f,S,A),f)}),u}function lF(o,s){var u={};return s=Ie(s,3),Mr(o,function(f,S,A){Kr(u,S,s(f,S,A))}),u}var cF=Ni(function(o,s,u){Uc(o,s,u)}),tx=Ni(function(o,s,u,f){Uc(o,s,u,f)}),uF=Xr(function(o,s){var u={};if(o==null)return u;var f=!1;s=kt(s,function(A){return A=vo(A,o),f||(f=A.length>1),A}),Br(o,Rp(o),u),f&&(u=sr(u,m|v|w,oD));for(var S=s.length;S--;)vp(u,s[S]);return u});function dF(o,s){return nx(o,ou(Ie(s)))}var fF=Xr(function(o,s){return o==null?{}:FB(o,s)});function nx(o,s){if(o==null)return{};var u=kt(Rp(o),function(f){return[f]});return s=Ie(s),Vv(o,u,function(f,S){return s(f,S[0])})}function pF(o,s,u){s=vo(s,o);var f=-1,S=s.length;for(S||(S=1,o=n);++f<S;){var A=o==null?n:o[Dr(s[f])];A===n&&(f=S,A=u),o=Zr(A)?A.call(o):A}return o}function hF(o,s,u){return o==null?o:Js(o,s,u)}function gF(o,s,u,f){return f=typeof f=="function"?f:n,o==null?o:Js(o,s,u,f)}var rx=gb(en),ox=gb(In);function mF(o,s,u){var f=Ue(o),S=f||xo(o)||Ui(o);if(s=Ie(s,4),u==null){var A=o&&o.constructor;S?u=f?new A:[]:At(o)?u=Zr(A)?Fi(Ac(o)):{}:u={}}return(S?rr:Mr)(o,function(L,N,U){return s(u,L,N,U)}),u}function yF(o,s){return o==null?!0:vp(o,s)}function vF(o,s,u){return o==null?o:Zv(o,s,wp(u))}function bF(o,s,u,f){return f=typeof f=="function"?f:n,o==null?o:Zv(o,s,wp(u),f)}function Hi(o){return o==null?[]:Qf(o,en(o))}function xF(o){return o==null?[]:Qf(o,In(o))}function wF(o,s,u){return u===n&&(u=s,s=n),u!==n&&(u=cr(u),u=u===u?u:0),s!==n&&(s=cr(s),s=s===s?s:0),Ho(cr(o),s,u)}function SF(o,s,u){return s=Qr(s),u===n?(u=s,s=0):u=Qr(u),o=cr(o),TB(o,s,u)}function CF(o,s,u){if(u&&typeof u!="boolean"&&bn(o,s,u)&&(s=u=n),u===n&&(typeof s=="boolean"?(u=s,s=n):typeof o=="boolean"&&(u=o,o=n)),o===n&&s===n?(o=0,s=1):(o=Qr(o),s===n?(s=o,o=0):s=Qr(s)),o>s){var f=o;o=s,s=f}if(u||o%1||s%1){var S=Tv();return pn(o+S*(s-o+tM("1e-"+((S+"").length-1))),s)}return gp(o,s)}var _F=zi(function(o,s,u){return s=s.toLowerCase(),o+(u?ix(s):s)});function ix(o){return Wp(gt(o).toLowerCase())}function sx(o){return o=gt(o),o&&o.replace(R$,hM).replace(G$,"")}function EF(o,s,u){o=gt(o),s=Nn(s);var f=o.length;u=u===n?f:Ho(Ve(u),0,f);var S=u;return u-=s.length,u>=0&&o.slice(u,S)==s}function RF(o){return o=gt(o),o&&Ns.test(o)?o.replace(uo,gM):o}function PF(o){return o=gt(o),o&&f$.test(o)?o.replace(Lf,"\\$&"):o}var TF=zi(function(o,s,u){return o+(u?"-":"")+s.toLowerCase()}),IF=zi(function(o,s,u){return o+(u?" ":"")+s.toLowerCase()}),kF=cb("toLowerCase");function OF(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;if(!s||f>=s)return o;var S=(s-f)/2;return Yc(Dc(S),u)+o+Yc(Bc(S),u)}function AF(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;return s&&f<s?o+Yc(s-f,u):o}function $F(o,s,u){o=gt(o),s=Ve(s);var f=s?Mi(o):0;return s&&f<s?Yc(s-f,u)+o:o}function MF(o,s,u){return u||s==null?s=0:s&&(s=+s),zM(gt(o).replace(jf,""),s||0)}function BF(o,s,u){return(u?bn(o,s,u):s===n)?s=1:s=Ve(s),mp(gt(o),s)}function DF(){var o=arguments,s=gt(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var LF=zi(function(o,s,u){return o+(u?"_":"")+s.toLowerCase()});function jF(o,s,u){return u&&typeof u!="number"&&bn(o,s,u)&&(s=u=n),u=u===n?be:u>>>0,u?(o=gt(o),o&&(typeof s=="string"||s!=null&&!Fp(s))&&(s=Nn(s),!s&&$i(o))?bo(hr(o),0,u):o.split(s,u)):[]}var FF=zi(function(o,s,u){return o+(u?" ":"")+Wp(s)});function NF(o,s,u){return o=gt(o),u=u==null?0:Ho(Ve(u),0,o.length),s=Nn(s),o.slice(u,u+s.length)==s}function zF(o,s,u){var f=I.templateSettings;u&&bn(o,s,u)&&(s=n),o=gt(o),s=au({},s,f,mb);var S=au({},s.imports,f.imports,mb),A=en(S),L=Qf(S,A),N,U,ne=0,re=s.interpolate||xc,ie="__p += '",me=tp((s.escape||xc).source+"|"+re.source+"|"+(re===j0?x$:xc).source+"|"+(s.evaluate||xc).source+"|$","g"),Ee="//# sourceURL="+(bt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++X$+"]")+`
|
|
161
|
+
`;o.replace(me,function(Ae,et,rt,Wn,xn,Un){return rt||(rt=Wn),ie+=o.slice(ne,Un).replace(P$,mM),et&&(N=!0,ie+=`' +
|
|
162
162
|
__e(`+et+`) +
|
|
163
|
-
'`),
|
|
164
|
-
`+
|
|
163
|
+
'`),xn&&(U=!0,ie+=`';
|
|
164
|
+
`+xn+`;
|
|
165
165
|
__p += '`),rt&&(ie+=`' +
|
|
166
166
|
((__t = (`+rt+`)) == null ? '' : __t) +
|
|
167
167
|
'`),ne=Un+Ae.length,Ae}),ie+=`';
|
|
168
168
|
`;var Oe=bt.call(s,"variable")&&s.variable;if(!Oe)ie=`with (obj) {
|
|
169
169
|
`+ie+`
|
|
170
170
|
}
|
|
171
|
-
`;else if(
|
|
171
|
+
`;else if(v$.test(Oe))throw new ze(c);ie=(U?ie.replace(we,""):ie).replace(It,"$1").replace(tr,"$1;"),ie="function("+(Oe||"obj")+`) {
|
|
172
172
|
`+(Oe?"":`obj || (obj = {});
|
|
173
173
|
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
|
|
174
174
|
function print() { __p += __j.call(arguments, '') }
|
|
175
175
|
`:`;
|
|
176
176
|
`)+ie+`return __p
|
|
177
|
-
}`;var Je=rx(function(){return ut(A,Ee+"return "+ie).apply(n,L)});if(Je.source=ie,Lp(Je))throw Je;return Je}function AF(o){return gt(o).toLowerCase()}function $F(o){return gt(o).toUpperCase()}function MF(o,s,u){if(o=gt(o),o&&(u||s===n))return fv(o);if(!o||!(s=Nn(s)))return o;var f=hr(o),w=hr(s),A=pv(f,w),L=hv(f,w)+1;return bo(f,A,L).join("")}function BF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.slice(0,mv(o)+1);if(!o||!(s=Nn(s)))return o;var f=hr(o),w=hv(f,hr(s))+1;return bo(f,0,w).join("")}function DF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.replace(Lf,"");if(!o||!(s=Nn(s)))return o;var f=hr(o),w=pv(f,hr(s));return bo(f,w).join("")}function LF(o,s){var u=b,f=H;if(At(s)){var w="separator"in s?s.separator:w;u="length"in s?Ve(s.length):u,f="omission"in s?Nn(s.omission):f}o=gt(o);var A=o.length;if($i(o)){var L=hr(o);A=L.length}if(u>=A)return o;var N=u-Mi(f);if(N<1)return f;var U=L?bo(L,0,N).join(""):o.slice(0,N);if(w===n)return U+f;if(L&&(N+=U.length-N),jp(w)){if(o.slice(N).search(w)){var ne,re=U;for(w.global||(w=ep(w.source,gt(M0.exec(w))+"g")),w.lastIndex=0;ne=w.exec(re);)var ie=ne.index;U=U.slice(0,ie===n?N:ie)}}else if(o.indexOf(Nn(w),N)!=N){var me=U.lastIndexOf(w);me>-1&&(U=U.slice(0,me))}return U+f}function jF(o){return o=gt(o),o&&vc.test(o)?o.replace($r,pM):o}var FF=zi(function(o,s,u){return o+(u?" ":"")+s.toUpperCase()}),zp=ob("toUpperCase");function nx(o,s,u){return o=gt(o),s=u?n:s,s===n?lM(o)?mM(o):Q$(o):o.match(s)||[]}var rx=Ze(function(o,s){try{return jn(o,n,s)}catch(u){return Lp(u)?u:new ze(u)}}),NF=Xr(function(o,s){return rr(s,function(u){u=Dr(u),Kr(o,u,Bp(o[u],o))}),o});function zF(o){var s=o==null?0:o.length,u=ke();return o=s?It(o,function(f){if(typeof f[1]!="function")throw new or(l);return[u(f[0]),f[1]]}):[],Ze(function(f){for(var w=-1;++w<s;){var A=o[w];if(jn(A[0],this,f))return jn(A[1],this,f)}})}function WF(o){return pB(sr(o,m))}function Wp(o){return function(){return o}}function UF(o,s){return o==null||o!==o?s:o}var HF=sb(),GF=sb(!0);function In(o){return o}function Up(o){return Dv(typeof o=="function"?o:sr(o,m))}function qF(o){return jv(sr(o,m))}function VF(o,s){return Fv(o,sr(s,m))}var KF=Ze(function(o,s){return function(u){return Vs(u,o,s)}}),YF=Ze(function(o,s){return function(u){return Vs(o,u,s)}});function Hp(o,s,u){var f=en(s),w=zc(s,f);u==null&&!(At(s)&&(w.length||!f.length))&&(u=s,s=o,o=this,w=zc(s,en(s)));var A=!(At(u)&&"chain"in u)||!!u.chain,L=Zr(o);return rr(w,function(N){var U=s[N];o[N]=U,L&&(o.prototype[N]=function(){var ne=this.__chain__;if(A||ne){var re=o(this.__wrapped__),ie=re.__actions__=Tn(this.__actions__);return ie.push({func:U,args:arguments,thisArg:o}),re.__chain__=ne,re}return U.apply(o,po([this.value()],arguments))})}),o}function XF(){return on._===this&&(on._=SM),this}function Gp(){}function JF(o){return o=Ve(o),Ze(function(s){return Nv(s,o)})}var ZF=Sp(It),QF=Sp(av),e5=Sp(Vf);function ox(o){return kp(o)?Kf(Dr(o)):IB(o)}function t5(o){return function(s){return o==null?n:Go(o,s)}}var n5=lb(),r5=lb(!0);function qp(){return[]}function Vp(){return!1}function o5(){return{}}function i5(){return""}function s5(){return!0}function a5(o,s){if(o=Ve(o),o<1||o>pe)return[];var u=be,f=fn(o,be);s=ke(s),o-=be;for(var w=Jf(f,s);++u<o;)s(u);return w}function l5(o){return Ue(o)?It(o,Dr):zn(o)?[o]:Tn(_b(gt(o)))}function c5(o){var s=++xM;return gt(o)+s}var u5=Vc(function(o,s){return o+s},0),d5=Cp("ceil"),f5=Vc(function(o,s){return o/s},1),p5=Cp("floor");function h5(o){return o&&o.length?Nc(o,In,lp):n}function g5(o,s){return o&&o.length?Nc(o,ke(s,2),lp):n}function m5(o){return uv(o,In)}function y5(o,s){return uv(o,ke(s,2))}function v5(o){return o&&o.length?Nc(o,In,fp):n}function b5(o,s){return o&&o.length?Nc(o,ke(s,2),fp):n}var x5=Vc(function(o,s){return o*s},1),w5=Cp("round"),S5=Vc(function(o,s){return o-s},0);function C5(o){return o&&o.length?Xf(o,In):0}function _5(o,s){return o&&o.length?Xf(o,ke(s,2)):0}return k.after=qL,k.ary=Bb,k.assign=$j,k.assignIn=Yb,k.assignInWith=su,k.assignWith=Mj,k.at=Bj,k.before=Db,k.bind=Bp,k.bindAll=NF,k.bindKey=Lb,k.castArray=oj,k.chain=Ab,k.chunk=pD,k.compact=hD,k.concat=gD,k.cond=zF,k.conforms=WF,k.constant=Wp,k.countBy=CL,k.create=Dj,k.curry=jb,k.curryRight=Fb,k.debounce=Nb,k.defaults=Lj,k.defaultsDeep=jj,k.defer=VL,k.delay=KL,k.difference=mD,k.differenceBy=yD,k.differenceWith=vD,k.drop=bD,k.dropRight=xD,k.dropRightWhile=wD,k.dropWhile=SD,k.fill=CD,k.filter=EL,k.flatMap=PL,k.flatMapDeep=kL,k.flatMapDepth=IL,k.flatten=Pb,k.flattenDeep=_D,k.flattenDepth=ED,k.flip=YL,k.flow=HF,k.flowRight=GF,k.fromPairs=RD,k.functions=Gj,k.functionsIn=qj,k.groupBy=OL,k.initial=PD,k.intersection=kD,k.intersectionBy=ID,k.intersectionWith=OD,k.invert=Kj,k.invertBy=Yj,k.invokeMap=$L,k.iteratee=Up,k.keyBy=ML,k.keys=en,k.keysIn=kn,k.map=eu,k.mapKeys=Jj,k.mapValues=Zj,k.matches=qF,k.matchesProperty=VF,k.memoize=nu,k.merge=Qj,k.mergeWith=Xb,k.method=KF,k.methodOf=YF,k.mixin=Hp,k.negate=ru,k.nthArg=JF,k.omit=eF,k.omitBy=tF,k.once=XL,k.orderBy=BL,k.over=ZF,k.overArgs=JL,k.overEvery=QF,k.overSome=e5,k.partial=Dp,k.partialRight=zb,k.partition=DL,k.pick=nF,k.pickBy=Jb,k.property=ox,k.propertyOf=t5,k.pull=BD,k.pullAll=Ib,k.pullAllBy=DD,k.pullAllWith=LD,k.pullAt=jD,k.range=n5,k.rangeRight=r5,k.rearg=ZL,k.reject=FL,k.remove=FD,k.rest=QL,k.reverse=$p,k.sampleSize=zL,k.set=oF,k.setWith=iF,k.shuffle=WL,k.slice=ND,k.sortBy=GL,k.sortedUniq=VD,k.sortedUniqBy=KD,k.split=PF,k.spread=ej,k.tail=YD,k.take=XD,k.takeRight=JD,k.takeRightWhile=ZD,k.takeWhile=QD,k.tap=hL,k.throttle=tj,k.thru=Qc,k.toArray=qb,k.toPairs=Zb,k.toPairsIn=Qb,k.toPath=l5,k.toPlainObject=Kb,k.transform=sF,k.unary=nj,k.union=eL,k.unionBy=tL,k.unionWith=nL,k.uniq=rL,k.uniqBy=oL,k.uniqWith=iL,k.unset=aF,k.unzip=Mp,k.unzipWith=Ob,k.update=lF,k.updateWith=cF,k.values=Hi,k.valuesIn=uF,k.without=sL,k.words=nx,k.wrap=rj,k.xor=aL,k.xorBy=lL,k.xorWith=cL,k.zip=uL,k.zipObject=dL,k.zipObjectDeep=fL,k.zipWith=pL,k.entries=Zb,k.entriesIn=Qb,k.extend=Yb,k.extendWith=su,Hp(k,k),k.add=u5,k.attempt=rx,k.camelCase=hF,k.capitalize=ex,k.ceil=d5,k.clamp=dF,k.clone=ij,k.cloneDeep=aj,k.cloneDeepWith=lj,k.cloneWith=sj,k.conformsTo=cj,k.deburr=tx,k.defaultTo=UF,k.divide=f5,k.endsWith=gF,k.eq=mr,k.escape=mF,k.escapeRegExp=yF,k.every=_L,k.find=RL,k.findIndex=Rb,k.findKey=Fj,k.findLast=TL,k.findLastIndex=Tb,k.findLastKey=Nj,k.floor=p5,k.forEach=$b,k.forEachRight=Mb,k.forIn=zj,k.forInRight=Wj,k.forOwn=Uj,k.forOwnRight=Hj,k.get=Fp,k.gt=uj,k.gte=dj,k.has=Vj,k.hasIn=Np,k.head=kb,k.identity=In,k.includes=AL,k.indexOf=TD,k.inRange=fF,k.invoke=Xj,k.isArguments=Ko,k.isArray=Ue,k.isArrayBuffer=fj,k.isArrayLike=Pn,k.isArrayLikeObject=Ut,k.isBoolean=pj,k.isBuffer=xo,k.isDate=hj,k.isElement=gj,k.isEmpty=mj,k.isEqual=yj,k.isEqualWith=vj,k.isError=Lp,k.isFinite=bj,k.isFunction=Zr,k.isInteger=Wb,k.isLength=ou,k.isMap=Ub,k.isMatch=xj,k.isMatchWith=wj,k.isNaN=Sj,k.isNative=Cj,k.isNil=Ej,k.isNull=_j,k.isNumber=Hb,k.isObject=At,k.isObjectLike=Nt,k.isPlainObject=Qs,k.isRegExp=jp,k.isSafeInteger=Rj,k.isSet=Gb,k.isString=iu,k.isSymbol=zn,k.isTypedArray=Ui,k.isUndefined=Tj,k.isWeakMap=Pj,k.isWeakSet=kj,k.join=AD,k.kebabCase=vF,k.last=lr,k.lastIndexOf=$D,k.lowerCase=bF,k.lowerFirst=xF,k.lt=Ij,k.lte=Oj,k.max=h5,k.maxBy=g5,k.mean=m5,k.meanBy=y5,k.min=v5,k.minBy=b5,k.stubArray=qp,k.stubFalse=Vp,k.stubObject=o5,k.stubString=i5,k.stubTrue=s5,k.multiply=x5,k.nth=MD,k.noConflict=XF,k.noop=Gp,k.now=tu,k.pad=wF,k.padEnd=SF,k.padStart=CF,k.parseInt=_F,k.random=pF,k.reduce=LL,k.reduceRight=jL,k.repeat=EF,k.replace=RF,k.result=rF,k.round=w5,k.runInContext=W,k.sample=NL,k.size=UL,k.snakeCase=TF,k.some=HL,k.sortedIndex=zD,k.sortedIndexBy=WD,k.sortedIndexOf=UD,k.sortedLastIndex=HD,k.sortedLastIndexBy=GD,k.sortedLastIndexOf=qD,k.startCase=kF,k.startsWith=IF,k.subtract=S5,k.sum=C5,k.sumBy=_5,k.template=OF,k.times=a5,k.toFinite=Qr,k.toInteger=Ve,k.toLength=Vb,k.toLower=AF,k.toNumber=cr,k.toSafeInteger=Aj,k.toString=gt,k.toUpper=$F,k.trim=MF,k.trimEnd=BF,k.trimStart=DF,k.truncate=LF,k.unescape=jF,k.uniqueId=c5,k.upperCase=FF,k.upperFirst=zp,k.each=$b,k.eachRight=Mb,k.first=kb,Hp(k,function(){var o={};return Mr(k,function(s,u){bt.call(k.prototype,u)||(o[u]=s)}),o}(),{chain:!1}),k.VERSION=r,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){k[o].placeholder=k}),rr(["drop","take"],function(o,s){nt.prototype[o]=function(u){u=u===n?1:Xt(Ve(u),0);var f=this.__filtered__&&!s?new nt(this):this.clone();return f.__filtered__?f.__takeCount__=fn(u,f.__takeCount__):f.__views__.push({size:fn(u,be),type:o+(f.__dir__<0?"Right":"")}),f},nt.prototype[o+"Right"]=function(u){return this.reverse()[o](u).reverse()}}),rr(["filter","map","takeWhile"],function(o,s){var u=s+1,f=u==X||u==le;nt.prototype[o]=function(w){var A=this.clone();return A.__iteratees__.push({iteratee:ke(w,3),type:u}),A.__filtered__=A.__filtered__||f,A}}),rr(["head","last"],function(o,s){var u="take"+(s?"Right":"");nt.prototype[o]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(o,s){var u="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[u](1)}}),nt.prototype.compact=function(){return this.filter(In)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=Ze(function(o,s){return typeof o=="function"?new nt(this):this.map(function(u){return Vs(u,o,s)})}),nt.prototype.reject=function(o){return this.filter(ru(ke(o)))},nt.prototype.slice=function(o,s){o=Ve(o);var u=this;return u.__filtered__&&(o>0||s<0)?new nt(u):(o<0?u=u.takeRight(-o):o&&(u=u.drop(o)),s!==n&&(s=Ve(s),u=s<0?u.dropRight(-s):u.take(s-o)),u)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(be)},Mr(nt.prototype,function(o,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),w=k[f?"take"+(s=="last"?"Right":""):s],A=f||/^find/.test(s);w&&(k.prototype[s]=function(){var L=this.__wrapped__,N=f?[1]:arguments,U=L instanceof nt,ne=N[0],re=U||Ue(L),ie=function(et){var rt=w.apply(k,po([et],N));return f&&me?rt[0]:rt};re&&u&&typeof ne=="function"&&ne.length!=1&&(U=re=!1);var me=this.__chain__,Ee=!!this.__actions__.length,Oe=A&&!me,Je=U&&!Ee;if(!A&&re){L=Je?L:new nt(this);var Ae=o.apply(L,N);return Ae.__actions__.push({func:Qc,args:[ie],thisArg:n}),new ir(Ae,me)}return Oe&&Je?o.apply(this,N):(Ae=this.thru(ie),Oe?f?Ae.value()[0]:Ae.value():Ae)})}),rr(["pop","push","shift","sort","splice","unshift"],function(o){var s=Ec[o],u=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",f=/^(?:pop|shift)$/.test(o);k.prototype[o]=function(){var w=arguments;if(f&&!this.__chain__){var A=this.value();return s.apply(Ue(A)?A:[],w)}return this[u](function(L){return s.apply(Ue(L)?L:[],w)})}}),Mr(nt.prototype,function(o,s){var u=k[s];if(u){var f=u.name+"";bt.call(ji,f)||(ji[f]=[]),ji[f].push({name:s,func:u})}}),ji[qc(n,_).name]=[{name:"wrapper",func:n}],nt.prototype.clone=jM,nt.prototype.reverse=FM,nt.prototype.value=NM,k.prototype.at=gL,k.prototype.chain=mL,k.prototype.commit=yL,k.prototype.next=vL,k.prototype.plant=xL,k.prototype.reverse=wL,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=SL,k.prototype.first=k.prototype.head,Ns&&(k.prototype[Ns]=bL),k},Bi=yM();No?((No.exports=Bi)._=Bi,Uf._=Bi):on._=Bi}).call(Lr)}(yl,yl.exports);var xs=yl.exports,vm={exports:{}},ws={},yd={exports:{}};(function(e,t){(function(n,r){r(t)})(Lr,function(n){function r(ae){return function(he,ge,de,Pe,ve,Ie,qe){return ae(he,ge,qe)}}function i(ae){return function(he,ge,de,Pe){if(!he||!ge||typeof he!="object"||typeof ge!="object")return ae(he,ge,de,Pe);var ve=Pe.get(he),Ie=Pe.get(ge);if(ve&&Ie)return ve===ge&&Ie===he;Pe.set(he,ge),Pe.set(ge,he);var qe=ae(he,ge,de,Pe);return Pe.delete(he),Pe.delete(ge),qe}}function a(ae,ue){var he={};for(var ge in ae)he[ge]=ae[ge];for(var ge in ue)he[ge]=ue[ge];return he}function l(ae){return ae.constructor===Object||ae.constructor==null}function c(ae){return typeof ae.then=="function"}function d(ae,ue){return ae===ue||ae!==ae&&ue!==ue}var h="[object Arguments]",y="[object Boolean]",m="[object Date]",v="[object RegExp]",S="[object Map]",x="[object Number]",R="[object Object]",O="[object Set]",_="[object String]",I=Object.prototype.toString;function E(ae){var ue=ae.areArraysEqual,he=ae.areDatesEqual,ge=ae.areMapsEqual,de=ae.areObjectsEqual,Pe=ae.areRegExpsEqual,ve=ae.areSetsEqual,Ie=ae.createIsNestedEqual,qe=Ie(De);function De(Re,Fe,tt){if(Re===Fe)return!0;if(!Re||!Fe||typeof Re!="object"||typeof Fe!="object")return Re!==Re&&Fe!==Fe;if(l(Re)&&l(Fe))return de(Re,Fe,qe,tt);var $e=Array.isArray(Re),it=Array.isArray(Fe);if($e||it)return $e===it&&ue(Re,Fe,qe,tt);var ye=I.call(Re);return ye!==I.call(Fe)?!1:ye===m?he(Re,Fe,qe,tt):ye===v?Pe(Re,Fe,qe,tt):ye===S?ge(Re,Fe,qe,tt):ye===O?ve(Re,Fe,qe,tt):ye===R||ye===h?c(Re)||c(Fe)?!1:de(Re,Fe,qe,tt):ye===y||ye===x||ye===_?d(Re.valueOf(),Fe.valueOf()):!1}return De}function P(ae,ue,he,ge){var de=ae.length;if(ue.length!==de)return!1;for(;de-- >0;)if(!he(ae[de],ue[de],de,de,ae,ue,ge))return!1;return!0}var M=i(P);function D(ae,ue){return d(ae.valueOf(),ue.valueOf())}function $(ae,ue,he,ge){var de=ae.size===ue.size;if(!de)return!1;if(!ae.size)return!0;var Pe={},ve=0;return ae.forEach(function(Ie,qe){if(de){var De=!1,Re=0;ue.forEach(function(Fe,tt){!De&&!Pe[Re]&&(De=he(qe,tt,ve,Re,ae,ue,ge)&&he(Ie,Fe,qe,tt,ae,ue,ge))&&(Pe[Re]=!0),Re++}),ve++,de=De}}),de}var z=i($),V="_owner",b=Object.prototype.hasOwnProperty;function H(ae,ue,he,ge){var de=Object.keys(ae),Pe=de.length;if(Object.keys(ue).length!==Pe)return!1;for(var ve;Pe-- >0;){if(ve=de[Pe],ve===V){var Ie=!!ae.$$typeof,qe=!!ue.$$typeof;if((Ie||qe)&&Ie!==qe)return!1}if(!b.call(ue,ve)||!he(ae[ve],ue[ve],ve,ve,ae,ue,ge))return!1}return!0}var Q=i(H);function ee(ae,ue){return ae.source===ue.source&&ae.flags===ue.flags}function X(ae,ue,he,ge){var de=ae.size===ue.size;if(!de)return!1;if(!ae.size)return!0;var Pe={};return ae.forEach(function(ve,Ie){if(de){var qe=!1,De=0;ue.forEach(function(Re,Fe){!qe&&!Pe[De]&&(qe=he(ve,Re,Ie,Fe,ae,ue,ge))&&(Pe[De]=!0),De++}),de=qe}}),de}var te=i(X),le=Object.freeze({areArraysEqual:P,areDatesEqual:D,areMapsEqual:$,areObjectsEqual:H,areRegExpsEqual:ee,areSetsEqual:X,createIsNestedEqual:r}),fe=Object.freeze({areArraysEqual:M,areDatesEqual:D,areMapsEqual:z,areObjectsEqual:Q,areRegExpsEqual:ee,areSetsEqual:te,createIsNestedEqual:r}),pe=E(le);function _e(ae,ue){return pe(ae,ue,void 0)}var We=E(a(le,{createIsNestedEqual:function(){return d}}));function be(ae,ue){return We(ae,ue,void 0)}var Be=E(fe);function Ne(ae,ue){return Be(ae,ue,new WeakMap)}var Me=E(a(fe,{createIsNestedEqual:function(){return d}}));function Xe(ae,ue){return Me(ae,ue,new WeakMap)}function Ge(ae){return E(a(le,ae(le)))}function ht(ae){var ue=E(a(fe,ae(fe)));return function(he,ge,de){return de===void 0&&(de=new WeakMap),ue(he,ge,de)}}n.circularDeepEqual=Ne,n.circularShallowEqual=Xe,n.createCustomCircularEqual=ht,n.createCustomEqual=Ge,n.deepEqual=_e,n.sameValueZeroEqual=d,n.shallowEqual=be,Object.defineProperty(n,"__esModule",{value:!0})})})(yd,yd.exports);var vd=yd.exports;const bd=ta(Kw);var Qe={},YT=function(t,n,r){return t===n?!0:t.className===n.className&&r(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&r(t.verticalCompact,n.verticalCompact)&&r(t.compactType,n.compactType)&&r(t.layout,n.layout)&&r(t.margin,n.margin)&&r(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&&r(t.resizeHandles,n.resizeHandles)&&r(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&&r(t.droppingItem,n.droppingItem)&&r(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=xd,Qe.childrenEqual=ZT,Qe.cloneLayout=xm,Qe.cloneLayoutItem=Po,Qe.collides=vl,Qe.compact=Sm,Qe.compactItem=Cm,Qe.compactType=lP,Qe.correctBounds=_m,Qe.fastPositionEqual=QT,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=Em,Qe.getFirstCollision=ko,Qe.getLayoutItem=Sd,Qe.getStatics=Cd,Qe.modifyLayout=wm,Qe.moveElement=Cs,Qe.moveElementAwayFromCollision=_d,Qe.noop=void 0,Qe.perc=tP,Qe.resizeItemInDirection=rP,Qe.setTopLeft=iP,Qe.setTransform=oP,Qe.sortLayoutItems=Id,Qe.sortLayoutItemsByColRow=Im,Qe.sortLayoutItemsByRowCol=km,Qe.synchronizeLayoutWithChildren=sP,Qe.validateLayout=aP,Qe.withLayoutItem=JT;var bm=vd,Ss=XT(Z);function XT(e){return e&&e.__esModule?e:{default:e}}function xd(e){let t=0,n;for(let r=0,i=e.length;r<i;r++)n=e[r].y+e[r].h,n>t&&(t=n);return t}function xm(e){const t=Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=Po(e[n]);return t}function wm(e,t){const n=Array(e.length);for(let r=0,i=e.length;r<i;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function JT(e,t,n){let r=Sd(e,t);return r?(r=n(Po(r)),e=wm(e,r),[e,r]):[e,null]}function Po(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 ZT(e,t){return(0,bm.deepEqual)(Ss.default.Children.map(e,n=>n==null?void 0:n.key),Ss.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,bm.deepEqual)(Ss.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Ss.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=YT;function QT(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function vl(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 Sm(e,t,n,r){const i=Cd(e),a=Id(e,t),l=Array(e.length);for(let c=0,d=a.length;c<d;c++){let h=Po(a[c]);h.static||(h=Cm(i,h,t,n,a,r),i.push(h)),l[e.indexOf(a[c])]=h,h.moved=!1}return l}const eP={x:"w",y:"h"};function wd(e,t,n,r){const i=eP[r];t[r]+=1;const a=e.map(l=>l.i).indexOf(t.i);for(let l=a+1;l<e.length;l++){const c=e[l];if(!c.static){if(c.y>t.y+t.h)break;vl(t,c)&&wd(e,c,n+t[i],r)}}t[r]=n}function Cm(e,t,n,r,i,a){const l=n==="vertical",c=n==="horizontal";if(l)for(t.y=Math.min(xd(e),t.y);t.y>0&&!ko(e,t);)t.y--;else if(c)for(;t.x>0&&!ko(e,t);)t.x--;let d;for(;(d=ko(e,t))&&!(n===null&&a);)if(c?wd(i,t,d.x+d.w,"x"):wd(i,t,d.y+d.h,"y"),c&&t.x+t.w>r)for(t.x=r-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 _m(e,t){const n=Cd(e);for(let r=0,i=e.length;r<i;r++){const a=e[r];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)n.push(a);else for(;ko(n,a);)a.y++}return e}function Sd(e,t){for(let n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function ko(e,t){for(let n=0,r=e.length;n<r;n++)if(vl(e[n],t))return e[n]}function Em(e,t){return e.filter(n=>vl(n,t))}function Cd(e){return e.filter(t=>t.static)}function Cs(e,t,n,r,i,a,l,c,d){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return e;`${t.i}${String(n)}${String(r)}${t.x}${t.y}`;const h=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof r=="number"&&(t.y=r),t.moved=!0;let m=Id(e,l);(l==="vertical"&&typeof r=="number"?y>=r:l==="horizontal"&&typeof n=="number"?h>=n:!1)&&(m=m.reverse());const S=Em(m,t),x=S.length>0;if(x&&d)return xm(e);if(x&&a)return`${t.i}`,t.x=h,t.y=y,t.moved=!1,e;for(let R=0,O=S.length;R<O;R++){const _=S[R];`${t.i}${t.x}${t.y}${_.i}${_.x}${_.y}`,!_.moved&&(_.static?e=_d(e,_,t,i,l):e=_d(e,t,_,i,l))}return e}function _d(e,t,n,r,i,a){const l=i==="horizontal",c=i==="vertical",d=t.static;if(r){r=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:c?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},v=ko(e,m),S=v&&v.y+v.h>t.y,x=v&&t.x+t.w>v.x;if(v){if(S&&c)return Cs(e,n,void 0,t.y+1,r,d,i);if(S&&i==null)return t.y=n.y,n.y=n.y+n.h,e;if(x&&l)return Cs(e,t,n.x,void 0,r,d,i)}else return`${n.i}${m.x}${m.y}`,Cs(e,n,l?m.x:void 0,c?m.y:void 0,r,d,i)}const h=l?n.x+1:void 0,y=c?n.y+1:void 0;return h==null&&y==null?e:Cs(e,n,l?n.x+1:void 0,c?n.y+1:void 0,r,d,i)}function tP(e){return e*100+"%"}const Rm=(e,t,n,r)=>e+n>r?t:n,Tm=(e,t,n)=>e<0?t:n,Pm=e=>Math.max(0,e),Ed=e=>Math.max(0,e),Rd=(e,t,n)=>{let{left:r,height:i,width:a}=t;const l=e.top-(i-e.height);return{left:r,width:a,height:Tm(l,e.height,i),top:Ed(l)}},Td=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{top:r,height:a,width:Rm(e.left,e.width,l,n),left:Pm(i)}},Pd=(e,t,n)=>{let{top:r,height:i,width:a}=t;const l=e.left-(a-e.width);return{height:i,width:l<0?e.width:Rm(e.left,e.width,a,n),top:Ed(r),left:Pm(l)}},kd=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{width:l,left:i,height:Tm(r,e.height,a),top:Ed(r)}},nP={n:Rd,ne:function(){return Rd(arguments.length<=0?void 0:arguments[0],Td(...arguments))},e:Td,se:function(){return kd(arguments.length<=0?void 0:arguments[0],Td(...arguments))},s:kd,sw:function(){return kd(arguments.length<=0?void 0:arguments[0],Pd(...arguments))},w:Pd,nw:function(){return Rd(arguments.length<=0?void 0:arguments[0],Pd(...arguments))}};function rP(e,t,n,r){const i=nP[e];return i?i(t,{...t,...n},r):n}function oP(e){let{top:t,left:n,width:r,height:i}=e;const a=`translate(${n}px,${t}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${r}px`,height:`${i}px`,position:"absolute"}}function iP(e){let{top:t,left:n,width:r,height:i}=e;return{top:`${t}px`,left:`${n}px`,width:`${r}px`,height:`${i}px`,position:"absolute"}}function Id(e,t){return t==="horizontal"?Im(e):t==="vertical"?km(e):e}function km(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 Im(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 sP(e,t,n,r,i){e=e||[];const a=[];Ss.default.Children.forEach(t,c=>{if((c==null?void 0:c.key)==null)return;const d=Sd(e,String(c.key)),h=c.props["data-grid"];d&&h==null?a.push(Po(d)):h?a.push(Po({...h,i:c.key})):a.push(Po({w:1,h:1,x:0,y:xd(a),i:String(c.key)}))});const l=_m(a,{cols:n});return i?l:Sm(l,r,n)}function aP(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 r=0,i=e.length;r<i;r++){const a=e[r];for(let l=0;l<n.length;l++){const c=n[l],d=a[c];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${r}].${c} must be a number! Received: ${d} (${typeof d})`)}if(typeof a.i<"u"&&typeof a.i!="string")throw new Error(`ReactGridLayout: ${t}[${r}].i must be a string! Received: ${a.i} (${typeof a.i})`)}}function lP(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function M5(){}const cP=()=>{};Qe.noop=cP;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.calcGridColWidth=bl,Pr.calcGridItemPosition=uP,Pr.calcGridItemWHPx=Od,Pr.calcWH=fP,Pr.calcXY=dP,Pr.clamp=Io;function bl(e){const{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function Od(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function uP(e,t,n,r,i,a){const{margin:l,containerPadding:c,rowHeight:d}=e,h=bl(e),y={};return a&&a.resizing?(y.width=Math.round(a.resizing.width),y.height=Math.round(a.resizing.height)):(y.width=Od(r,h,l[0]),y.height=Od(i,d,l[1])),a&&a.dragging?(y.top=Math.round(a.dragging.top),y.left=Math.round(a.dragging.left)):a&&a.resizing&&typeof a.resizing.top=="number"&&typeof a.resizing.left=="number"?(y.top=Math.round(a.resizing.top),y.left=Math.round(a.resizing.left)):(y.top=Math.round((d+l[1])*n+c[1]),y.left=Math.round((h+l[0])*t+c[0])),y}function dP(e,t,n,r,i){const{margin:a,containerPadding:l,cols:c,rowHeight:d,maxRows:h}=e,y=bl(e);let m=Math.round((n-l[0])/(y+a[0])),v=Math.round((t-l[1])/(d+a[1]));return m=Io(m,0,c-r),v=Io(v,0,h-i),{x:m,y:v}}function fP(e,t,n,r,i,a){const{margin:l,maxRows:c,cols:d,rowHeight:h}=e,y=bl(e);let m=Math.round((t+l[0])/(y+l[0])),v=Math.round((n+l[1])/(h+l[1])),S=Io(m,0,d-r),x=Io(v,0,c-i);return["sw","w","nw"].indexOf(a)!==-1&&(S=Io(m,0,d)),["nw","n","ne"].indexOf(a)!==-1&&(x=Io(v,0,c)),{w:S,h:x}}function Io(e,t,n){return Math.max(Math.min(e,n),t)}var xl={},wl={exports:{}},Om={};function Am(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Am(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $m(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Am(e))&&(r&&(r+=" "),r+=t);return r}const pP=ta(Object.freeze(Object.defineProperty({__proto__:null,clsx:$m,default:$m},Symbol.toStringTag,{value:"Module"})));var Dt={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.dontSetMe=vP,kr.findInArray=hP,kr.int=yP,kr.isFunction=gP,kr.isNum=mP;function hP(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function gP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function mP(e){return typeof e=="number"&&!isNaN(e)}function yP(e){return parseInt(e,10)}function vP(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 Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.browserPrefixToKey=Bm,Oo.browserPrefixToStyle=bP,Oo.default=void 0,Oo.getPrefix=Mm;const Ad=["Moz","Webkit","O","ms"];function Mm(){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 r=0;r<Ad.length;r++)if(Bm(t,Ad[r])in n)return Ad[r];return""}function Bm(e,t){return t?"".concat(t).concat(xP(e)):e}function bP(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function xP(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Oo.default=Mm(),Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.addClassName=Fm,Dt.addEvent=CP,Dt.addUserSelectStyles=MP,Dt.createCSSTransform=IP,Dt.createSVGTransform=OP,Dt.getTouch=AP,Dt.getTouchIdentifier=$P,Dt.getTranslation=$d,Dt.innerHeight=TP,Dt.innerWidth=PP,Dt.matchesSelector=jm,Dt.matchesSelectorAndParentsTo=SP,Dt.offsetXYFromParent=kP,Dt.outerHeight=EP,Dt.outerWidth=RP,Dt.removeClassName=Nm,Dt.removeEvent=_P,Dt.removeUserSelectStyles=BP;var Bn=kr,Dm=wP(Oo);function Lm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Lm=function(r){return r?n:t})(e)}function wP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Lm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}let Sl="";function jm(e,t){return Sl||(Sl=(0,Bn.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Bn.isFunction)(e[n])})),(0,Bn.isFunction)(e[Sl])?e[Sl](t):!1}function SP(e,t,n){let r=e;do{if(jm(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function CP(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function _P(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function EP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Bn.int)(n.borderTopWidth),t+=(0,Bn.int)(n.borderBottomWidth),t}function RP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Bn.int)(n.borderLeftWidth),t+=(0,Bn.int)(n.borderRightWidth),t}function TP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Bn.int)(n.paddingTop),t-=(0,Bn.int)(n.paddingBottom),t}function PP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Bn.int)(n.paddingLeft),t-=(0,Bn.int)(n.paddingRight),t}function kP(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-i.left)/n,l=(e.clientY+t.scrollTop-i.top)/n;return{x:a,y:l}}function IP(e,t){const n=$d(e,t,"px");return{[(0,Dm.browserPrefixToKey)("transform",Dm.default)]:n}}function OP(e,t){return $d(e,t,"")}function $d(e,t,n){let{x:r,y:i}=e,a="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),c="".concat(typeof t.y=="string"?t.y:t.y+n);a="translate(".concat(l,", ").concat(c,")")+a}return a}function AP(e,t){return e.targetTouches&&(0,Bn.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Bn.findInArray)(e.changedTouches,n=>t===n.identifier)}function $P(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function MP(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;}
|
|
177
|
+
}`;var Je=lx(function(){return dt(A,Ee+"return "+ie).apply(n,L)});if(Je.source=ie,jp(Je))throw Je;return Je}function WF(o){return gt(o).toLowerCase()}function UF(o){return gt(o).toUpperCase()}function HF(o,s,u){if(o=gt(o),o&&(u||s===n))return yv(o);if(!o||!(s=Nn(s)))return o;var f=hr(o),S=hr(s),A=vv(f,S),L=bv(f,S)+1;return bo(f,A,L).join("")}function GF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.slice(0,wv(o)+1);if(!o||!(s=Nn(s)))return o;var f=hr(o),S=bv(f,hr(s))+1;return bo(f,0,S).join("")}function qF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.replace(jf,"");if(!o||!(s=Nn(s)))return o;var f=hr(o),S=vv(f,hr(s));return bo(f,S).join("")}function VF(o,s){var u=R,f=G;if(At(s)){var S="separator"in s?s.separator:S;u="length"in s?Ve(s.length):u,f="omission"in s?Nn(s.omission):f}o=gt(o);var A=o.length;if($i(o)){var L=hr(o);A=L.length}if(u>=A)return o;var N=u-Mi(f);if(N<1)return f;var U=L?bo(L,0,N).join(""):o.slice(0,N);if(S===n)return U+f;if(L&&(N+=U.length-N),Fp(S)){if(o.slice(N).search(S)){var ne,re=U;for(S.global||(S=tp(S.source,gt(F0.exec(S))+"g")),S.lastIndex=0;ne=S.exec(re);)var ie=ne.index;U=U.slice(0,ie===n?N:ie)}}else if(o.indexOf(Nn(S),N)!=N){var me=U.lastIndexOf(S);me>-1&&(U=U.slice(0,me))}return U+f}function KF(o){return o=gt(o),o&&bc.test(o)?o.replace($r,CM):o}var YF=zi(function(o,s,u){return o+(u?" ":"")+s.toUpperCase()}),Wp=cb("toUpperCase");function ax(o,s,u){return o=gt(o),s=u?n:s,s===n?vM(o)?RM(o):cM(o):o.match(s)||[]}var lx=Ze(function(o,s){try{return jn(o,n,s)}catch(u){return jp(u)?u:new ze(u)}}),XF=Xr(function(o,s){return rr(s,function(u){u=Dr(u),Kr(o,u,Dp(o[u],o))}),o});function JF(o){var s=o==null?0:o.length,u=Ie();return o=s?kt(o,function(f){if(typeof f[1]!="function")throw new or(l);return[u(f[0]),f[1]]}):[],Ze(function(f){for(var S=-1;++S<s;){var A=o[S];if(jn(A[0],this,f))return jn(A[1],this,f)}})}function ZF(o){return CB(sr(o,m))}function Up(o){return function(){return o}}function QF(o,s){return o==null||o!==o?s:o}var e5=db(),t5=db(!0);function kn(o){return o}function Hp(o){return zv(typeof o=="function"?o:sr(o,m))}function n5(o){return Uv(sr(o,m))}function r5(o,s){return Hv(o,sr(s,m))}var o5=Ze(function(o,s){return function(u){return Ys(u,o,s)}}),i5=Ze(function(o,s){return function(u){return Ys(o,u,s)}});function Gp(o,s,u){var f=en(s),S=Wc(s,f);u==null&&!(At(s)&&(S.length||!f.length))&&(u=s,s=o,o=this,S=Wc(s,en(s)));var A=!(At(u)&&"chain"in u)||!!u.chain,L=Zr(o);return rr(S,function(N){var U=s[N];o[N]=U,L&&(o.prototype[N]=function(){var ne=this.__chain__;if(A||ne){var re=o(this.__wrapped__),ie=re.__actions__=Pn(this.__actions__);return ie.push({func:U,args:arguments,thisArg:o}),re.__chain__=ne,re}return U.apply(o,po([this.value()],arguments))})}),o}function s5(){return on._===this&&(on._=AM),this}function qp(){}function a5(o){return o=Ve(o),Ze(function(s){return Gv(s,o)})}var l5=Cp(kt),c5=Cp(fv),u5=Cp(Kf);function cx(o){return kp(o)?Yf(Dr(o)):NB(o)}function d5(o){return function(s){return o==null?n:Go(o,s)}}var f5=pb(),p5=pb(!0);function Vp(){return[]}function Kp(){return!1}function h5(){return{}}function g5(){return""}function m5(){return!0}function y5(o,s){if(o=Ve(o),o<1||o>pe)return[];var u=be,f=pn(o,be);s=Ie(s),o-=be;for(var S=Zf(f,s);++u<o;)s(u);return S}function v5(o){return Ue(o)?kt(o,Dr):zn(o)?[o]:Pn(Ib(gt(o)))}function b5(o){var s=++kM;return gt(o)+s}var x5=Kc(function(o,s){return o+s},0),w5=_p("ceil"),S5=Kc(function(o,s){return o/s},1),C5=_p("floor");function _5(o){return o&&o.length?zc(o,kn,cp):n}function E5(o,s){return o&&o.length?zc(o,Ie(s,2),cp):n}function R5(o){return gv(o,kn)}function P5(o,s){return gv(o,Ie(s,2))}function T5(o){return o&&o.length?zc(o,kn,pp):n}function I5(o,s){return o&&o.length?zc(o,Ie(s,2),pp):n}var k5=Kc(function(o,s){return o*s},1),O5=_p("round"),A5=Kc(function(o,s){return o-s},0);function $5(o){return o&&o.length?Jf(o,kn):0}function M5(o,s){return o&&o.length?Jf(o,Ie(s,2)):0}return I.after=nj,I.ary=Nb,I.assign=Uj,I.assignIn=ex,I.assignInWith=au,I.assignWith=Hj,I.at=Gj,I.before=zb,I.bind=Dp,I.bindAll=XF,I.bindKey=Wb,I.castArray=hj,I.chain=Lb,I.chunk=CD,I.compact=_D,I.concat=ED,I.cond=JF,I.conforms=ZF,I.constant=Up,I.countBy=$L,I.create=qj,I.curry=Ub,I.curryRight=Hb,I.debounce=Gb,I.defaults=Vj,I.defaultsDeep=Kj,I.defer=rj,I.delay=oj,I.difference=RD,I.differenceBy=PD,I.differenceWith=TD,I.drop=ID,I.dropRight=kD,I.dropRightWhile=OD,I.dropWhile=AD,I.fill=$D,I.filter=BL,I.flatMap=jL,I.flatMapDeep=FL,I.flatMapDepth=NL,I.flatten=$b,I.flattenDeep=MD,I.flattenDepth=BD,I.flip=ij,I.flow=e5,I.flowRight=t5,I.fromPairs=DD,I.functions=tF,I.functionsIn=nF,I.groupBy=zL,I.initial=jD,I.intersection=FD,I.intersectionBy=ND,I.intersectionWith=zD,I.invert=oF,I.invertBy=iF,I.invokeMap=UL,I.iteratee=Hp,I.keyBy=HL,I.keys=en,I.keysIn=In,I.map=tu,I.mapKeys=aF,I.mapValues=lF,I.matches=n5,I.matchesProperty=r5,I.memoize=ru,I.merge=cF,I.mergeWith=tx,I.method=o5,I.methodOf=i5,I.mixin=Gp,I.negate=ou,I.nthArg=a5,I.omit=uF,I.omitBy=dF,I.once=sj,I.orderBy=GL,I.over=l5,I.overArgs=aj,I.overEvery=c5,I.overSome=u5,I.partial=Lp,I.partialRight=qb,I.partition=qL,I.pick=fF,I.pickBy=nx,I.property=cx,I.propertyOf=d5,I.pull=GD,I.pullAll=Bb,I.pullAllBy=qD,I.pullAllWith=VD,I.pullAt=KD,I.range=f5,I.rangeRight=p5,I.rearg=lj,I.reject=YL,I.remove=YD,I.rest=cj,I.reverse=Mp,I.sampleSize=JL,I.set=hF,I.setWith=gF,I.shuffle=ZL,I.slice=XD,I.sortBy=tj,I.sortedUniq=rL,I.sortedUniqBy=oL,I.split=jF,I.spread=uj,I.tail=iL,I.take=sL,I.takeRight=aL,I.takeRightWhile=lL,I.takeWhile=cL,I.tap=_L,I.throttle=dj,I.thru=eu,I.toArray=Jb,I.toPairs=rx,I.toPairsIn=ox,I.toPath=v5,I.toPlainObject=Qb,I.transform=mF,I.unary=fj,I.union=uL,I.unionBy=dL,I.unionWith=fL,I.uniq=pL,I.uniqBy=hL,I.uniqWith=gL,I.unset=yF,I.unzip=Bp,I.unzipWith=Db,I.update=vF,I.updateWith=bF,I.values=Hi,I.valuesIn=xF,I.without=mL,I.words=ax,I.wrap=pj,I.xor=yL,I.xorBy=vL,I.xorWith=bL,I.zip=xL,I.zipObject=wL,I.zipObjectDeep=SL,I.zipWith=CL,I.entries=rx,I.entriesIn=ox,I.extend=ex,I.extendWith=au,Gp(I,I),I.add=x5,I.attempt=lx,I.camelCase=_F,I.capitalize=ix,I.ceil=w5,I.clamp=wF,I.clone=gj,I.cloneDeep=yj,I.cloneDeepWith=vj,I.cloneWith=mj,I.conformsTo=bj,I.deburr=sx,I.defaultTo=QF,I.divide=S5,I.endsWith=EF,I.eq=mr,I.escape=RF,I.escapeRegExp=PF,I.every=ML,I.find=DL,I.findIndex=Ob,I.findKey=Yj,I.findLast=LL,I.findLastIndex=Ab,I.findLastKey=Xj,I.floor=C5,I.forEach=jb,I.forEachRight=Fb,I.forIn=Jj,I.forInRight=Zj,I.forOwn=Qj,I.forOwnRight=eF,I.get=Np,I.gt=xj,I.gte=wj,I.has=rF,I.hasIn=zp,I.head=Mb,I.identity=kn,I.includes=WL,I.indexOf=LD,I.inRange=SF,I.invoke=sF,I.isArguments=Ko,I.isArray=Ue,I.isArrayBuffer=Sj,I.isArrayLike=Tn,I.isArrayLikeObject=Ut,I.isBoolean=Cj,I.isBuffer=xo,I.isDate=_j,I.isElement=Ej,I.isEmpty=Rj,I.isEqual=Pj,I.isEqualWith=Tj,I.isError=jp,I.isFinite=Ij,I.isFunction=Zr,I.isInteger=Vb,I.isLength=iu,I.isMap=Kb,I.isMatch=kj,I.isMatchWith=Oj,I.isNaN=Aj,I.isNative=$j,I.isNil=Bj,I.isNull=Mj,I.isNumber=Yb,I.isObject=At,I.isObjectLike=Nt,I.isPlainObject=ta,I.isRegExp=Fp,I.isSafeInteger=Dj,I.isSet=Xb,I.isString=su,I.isSymbol=zn,I.isTypedArray=Ui,I.isUndefined=Lj,I.isWeakMap=jj,I.isWeakSet=Fj,I.join=WD,I.kebabCase=TF,I.last=lr,I.lastIndexOf=UD,I.lowerCase=IF,I.lowerFirst=kF,I.lt=Nj,I.lte=zj,I.max=_5,I.maxBy=E5,I.mean=R5,I.meanBy=P5,I.min=T5,I.minBy=I5,I.stubArray=Vp,I.stubFalse=Kp,I.stubObject=h5,I.stubString=g5,I.stubTrue=m5,I.multiply=k5,I.nth=HD,I.noConflict=s5,I.noop=qp,I.now=nu,I.pad=OF,I.padEnd=AF,I.padStart=$F,I.parseInt=MF,I.random=CF,I.reduce=VL,I.reduceRight=KL,I.repeat=BF,I.replace=DF,I.result=pF,I.round=O5,I.runInContext=W,I.sample=XL,I.size=QL,I.snakeCase=LF,I.some=ej,I.sortedIndex=JD,I.sortedIndexBy=ZD,I.sortedIndexOf=QD,I.sortedLastIndex=eL,I.sortedLastIndexBy=tL,I.sortedLastIndexOf=nL,I.startCase=FF,I.startsWith=NF,I.subtract=A5,I.sum=$5,I.sumBy=M5,I.template=zF,I.times=y5,I.toFinite=Qr,I.toInteger=Ve,I.toLength=Zb,I.toLower=WF,I.toNumber=cr,I.toSafeInteger=Wj,I.toString=gt,I.toUpper=UF,I.trim=HF,I.trimEnd=GF,I.trimStart=qF,I.truncate=VF,I.unescape=KF,I.uniqueId=b5,I.upperCase=YF,I.upperFirst=Wp,I.each=jb,I.eachRight=Fb,I.first=Mb,Gp(I,function(){var o={};return Mr(I,function(s,u){bt.call(I.prototype,u)||(o[u]=s)}),o}(),{chain:!1}),I.VERSION=r,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),rr(["drop","take"],function(o,s){nt.prototype[o]=function(u){u=u===n?1:Xt(Ve(u),0);var f=this.__filtered__&&!s?new nt(this):this.clone();return f.__filtered__?f.__takeCount__=pn(u,f.__takeCount__):f.__views__.push({size:pn(u,be),type:o+(f.__dir__<0?"Right":"")}),f},nt.prototype[o+"Right"]=function(u){return this.reverse()[o](u).reverse()}}),rr(["filter","map","takeWhile"],function(o,s){var u=s+1,f=u==Y||u==ae;nt.prototype[o]=function(S){var A=this.clone();return A.__iteratees__.push({iteratee:Ie(S,3),type:u}),A.__filtered__=A.__filtered__||f,A}}),rr(["head","last"],function(o,s){var u="take"+(s?"Right":"");nt.prototype[o]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(o,s){var u="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[u](1)}}),nt.prototype.compact=function(){return this.filter(kn)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=Ze(function(o,s){return typeof o=="function"?new nt(this):this.map(function(u){return Ys(u,o,s)})}),nt.prototype.reject=function(o){return this.filter(ou(Ie(o)))},nt.prototype.slice=function(o,s){o=Ve(o);var u=this;return u.__filtered__&&(o>0||s<0)?new nt(u):(o<0?u=u.takeRight(-o):o&&(u=u.drop(o)),s!==n&&(s=Ve(s),u=s<0?u.dropRight(-s):u.take(s-o)),u)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(be)},Mr(nt.prototype,function(o,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),S=I[f?"take"+(s=="last"?"Right":""):s],A=f||/^find/.test(s);S&&(I.prototype[s]=function(){var L=this.__wrapped__,N=f?[1]:arguments,U=L instanceof nt,ne=N[0],re=U||Ue(L),ie=function(et){var rt=S.apply(I,po([et],N));return f&&me?rt[0]:rt};re&&u&&typeof ne=="function"&&ne.length!=1&&(U=re=!1);var me=this.__chain__,Ee=!!this.__actions__.length,Oe=A&&!me,Je=U&&!Ee;if(!A&&re){L=Je?L:new nt(this);var Ae=o.apply(L,N);return Ae.__actions__.push({func:eu,args:[ie],thisArg:n}),new ir(Ae,me)}return Oe&&Je?o.apply(this,N):(Ae=this.thru(ie),Oe?f?Ae.value()[0]:Ae.value():Ae)})}),rr(["pop","push","shift","sort","splice","unshift"],function(o){var s=Rc[o],u=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",f=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var S=arguments;if(f&&!this.__chain__){var A=this.value();return s.apply(Ue(A)?A:[],S)}return this[u](function(L){return s.apply(Ue(L)?L:[],S)})}}),Mr(nt.prototype,function(o,s){var u=I[s];if(u){var f=u.name+"";bt.call(ji,f)||(ji[f]=[]),ji[f].push({name:s,func:u})}}),ji[Vc(n,_).name]=[{name:"wrapper",func:n}],nt.prototype.clone=KM,nt.prototype.reverse=YM,nt.prototype.value=XM,I.prototype.at=EL,I.prototype.chain=RL,I.prototype.commit=PL,I.prototype.next=TL,I.prototype.plant=kL,I.prototype.reverse=OL,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=AL,I.prototype.first=I.prototype.head,Ws&&(I.prototype[Ws]=IL),I},Bi=PM();No?((No.exports=Bi)._=Bi,Hf._=Bi):on._=Bi}).call(Lr)}(bl,bl.exports);var xs=bl.exports,wm={exports:{}},ws={},vd={exports:{}};(function(e,t){(function(n,r){r(t)})(Lr,function(n){function r(le){return function(he,ge,de,Te,ve,ke,qe){return le(he,ge,qe)}}function i(le){return function(he,ge,de,Te){if(!he||!ge||typeof he!="object"||typeof ge!="object")return le(he,ge,de,Te);var ve=Te.get(he),ke=Te.get(ge);if(ve&&ke)return ve===ge&&ke===he;Te.set(he,ge),Te.set(ge,he);var qe=le(he,ge,de,Te);return Te.delete(he),Te.delete(ge),qe}}function a(le,ue){var he={};for(var ge in le)he[ge]=le[ge];for(var ge in ue)he[ge]=ue[ge];return he}function l(le){return le.constructor===Object||le.constructor==null}function c(le){return typeof le.then=="function"}function d(le,ue){return le===ue||le!==le&&ue!==ue}var h="[object Arguments]",y="[object Boolean]",m="[object Date]",v="[object RegExp]",w="[object Map]",b="[object Number]",E="[object Object]",k="[object Set]",_="[object String]",O=Object.prototype.toString;function C(le){var ue=le.areArraysEqual,he=le.areDatesEqual,ge=le.areMapsEqual,de=le.areObjectsEqual,Te=le.areRegExpsEqual,ve=le.areSetsEqual,ke=le.createIsNestedEqual,qe=ke(De);function De(Re,Fe,tt){if(Re===Fe)return!0;if(!Re||!Fe||typeof Re!="object"||typeof Fe!="object")return Re!==Re&&Fe!==Fe;if(l(Re)&&l(Fe))return de(Re,Fe,qe,tt);var $e=Array.isArray(Re),st=Array.isArray(Fe);if($e||st)return $e===st&&ue(Re,Fe,qe,tt);var ye=O.call(Re);return ye!==O.call(Fe)?!1:ye===m?he(Re,Fe,qe,tt):ye===v?Te(Re,Fe,qe,tt):ye===w?ge(Re,Fe,qe,tt):ye===k?ve(Re,Fe,qe,tt):ye===E||ye===h?c(Re)||c(Fe)?!1:de(Re,Fe,qe,tt):ye===y||ye===b||ye===_?d(Re.valueOf(),Fe.valueOf()):!1}return De}function P(le,ue,he,ge){var de=le.length;if(ue.length!==de)return!1;for(;de-- >0;)if(!he(le[de],ue[de],de,de,le,ue,ge))return!1;return!0}var M=i(P);function D(le,ue){return d(le.valueOf(),ue.valueOf())}function $(le,ue,he,ge){var de=le.size===ue.size;if(!de)return!1;if(!le.size)return!0;var Te={},ve=0;return le.forEach(function(ke,qe){if(de){var De=!1,Re=0;ue.forEach(function(Fe,tt){!De&&!Te[Re]&&(De=he(qe,tt,ve,Re,le,ue,ge)&&he(ke,Fe,qe,tt,le,ue,ge))&&(Te[Re]=!0),Re++}),ve++,de=De}}),de}var z=i($),V="_owner",R=Object.prototype.hasOwnProperty;function G(le,ue,he,ge){var de=Object.keys(le),Te=de.length;if(Object.keys(ue).length!==Te)return!1;for(var ve;Te-- >0;){if(ve=de[Te],ve===V){var ke=!!le.$$typeof,qe=!!ue.$$typeof;if((ke||qe)&&ke!==qe)return!1}if(!R.call(ue,ve)||!he(le[ve],ue[ve],ve,ve,le,ue,ge))return!1}return!0}var te=i(G);function H(le,ue){return le.source===ue.source&&le.flags===ue.flags}function Y(le,ue,he,ge){var de=le.size===ue.size;if(!de)return!1;if(!le.size)return!0;var Te={};return le.forEach(function(ve,ke){if(de){var qe=!1,De=0;ue.forEach(function(Re,Fe){!qe&&!Te[De]&&(qe=he(ve,Re,ke,Fe,le,ue,ge))&&(Te[De]=!0),De++}),de=qe}}),de}var ee=i(Y),ae=Object.freeze({areArraysEqual:P,areDatesEqual:D,areMapsEqual:$,areObjectsEqual:G,areRegExpsEqual:H,areSetsEqual:Y,createIsNestedEqual:r}),fe=Object.freeze({areArraysEqual:M,areDatesEqual:D,areMapsEqual:z,areObjectsEqual:te,areRegExpsEqual:H,areSetsEqual:ee,createIsNestedEqual:r}),pe=C(ae);function _e(le,ue){return pe(le,ue,void 0)}var We=C(a(ae,{createIsNestedEqual:function(){return d}}));function be(le,ue){return We(le,ue,void 0)}var Be=C(fe);function Ne(le,ue){return Be(le,ue,new WeakMap)}var Me=C(a(fe,{createIsNestedEqual:function(){return d}}));function Xe(le,ue){return Me(le,ue,new WeakMap)}function Ge(le){return C(a(ae,le(ae)))}function ht(le){var ue=C(a(fe,le(fe)));return function(he,ge,de){return de===void 0&&(de=new WeakMap),ue(he,ge,de)}}n.circularDeepEqual=Ne,n.circularShallowEqual=Xe,n.createCustomCircularEqual=ht,n.createCustomEqual=Ge,n.deepEqual=_e,n.sameValueZeroEqual=d,n.shallowEqual=be,Object.defineProperty(n,"__esModule",{value:!0})})})(vd,vd.exports);var bd=vd.exports;const xd=ra(Qw);var Qe={},ZP=function(t,n,r){return t===n?!0:t.className===n.className&&r(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&r(t.verticalCompact,n.verticalCompact)&&r(t.compactType,n.compactType)&&r(t.layout,n.layout)&&r(t.margin,n.margin)&&r(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&&r(t.resizeHandles,n.resizeHandles)&&r(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&&r(t.droppingItem,n.droppingItem)&&r(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=wd,Qe.childrenEqual=tT,Qe.cloneLayout=Cm,Qe.cloneLayoutItem=To,Qe.collides=xl,Qe.compact=Em,Qe.compactItem=Rm,Qe.compactType=dT,Qe.correctBounds=Pm,Qe.fastPositionEqual=nT,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=Tm,Qe.getFirstCollision=Io,Qe.getLayoutItem=Cd,Qe.getStatics=_d,Qe.modifyLayout=_m,Qe.moveElement=Cs,Qe.moveElementAwayFromCollision=Ed,Qe.noop=void 0,Qe.perc=oT,Qe.resizeItemInDirection=sT,Qe.setTopLeft=lT,Qe.setTransform=aT,Qe.sortLayoutItems=Od,Qe.sortLayoutItemsByColRow=$m,Qe.sortLayoutItemsByRowCol=Am,Qe.synchronizeLayoutWithChildren=cT,Qe.validateLayout=uT,Qe.withLayoutItem=eT;var Sm=bd,Ss=QP(X);function QP(e){return e&&e.__esModule?e:{default:e}}function wd(e){let t=0,n;for(let r=0,i=e.length;r<i;r++)n=e[r].y+e[r].h,n>t&&(t=n);return t}function Cm(e){const t=Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=To(e[n]);return t}function _m(e,t){const n=Array(e.length);for(let r=0,i=e.length;r<i;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function eT(e,t,n){let r=Cd(e,t);return r?(r=n(To(r)),e=_m(e,r),[e,r]):[e,null]}function To(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 tT(e,t){return(0,Sm.deepEqual)(Ss.default.Children.map(e,n=>n==null?void 0:n.key),Ss.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,Sm.deepEqual)(Ss.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Ss.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=ZP;function nT(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function xl(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 Em(e,t,n,r){const i=_d(e),a=Od(e,t),l=Array(e.length);for(let c=0,d=a.length;c<d;c++){let h=To(a[c]);h.static||(h=Rm(i,h,t,n,a,r),i.push(h)),l[e.indexOf(a[c])]=h,h.moved=!1}return l}const rT={x:"w",y:"h"};function Sd(e,t,n,r){const i=rT[r];t[r]+=1;const a=e.map(l=>l.i).indexOf(t.i);for(let l=a+1;l<e.length;l++){const c=e[l];if(!c.static){if(c.y>t.y+t.h)break;xl(t,c)&&Sd(e,c,n+t[i],r)}}t[r]=n}function Rm(e,t,n,r,i,a){const l=n==="vertical",c=n==="horizontal";if(l)for(t.y=Math.min(wd(e),t.y);t.y>0&&!Io(e,t);)t.y--;else if(c)for(;t.x>0&&!Io(e,t);)t.x--;let d;for(;(d=Io(e,t))&&!(n===null&&a);)if(c?Sd(i,t,d.x+d.w,"x"):Sd(i,t,d.y+d.h,"y"),c&&t.x+t.w>r)for(t.x=r-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 Pm(e,t){const n=_d(e);for(let r=0,i=e.length;r<i;r++){const a=e[r];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)n.push(a);else for(;Io(n,a);)a.y++}return e}function Cd(e,t){for(let n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function Io(e,t){for(let n=0,r=e.length;n<r;n++)if(xl(e[n],t))return e[n]}function Tm(e,t){return e.filter(n=>xl(n,t))}function _d(e){return e.filter(t=>t.static)}function Cs(e,t,n,r,i,a,l,c,d){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return e;`${t.i}${String(n)}${String(r)}${t.x}${t.y}`;const h=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof r=="number"&&(t.y=r),t.moved=!0;let m=Od(e,l);(l==="vertical"&&typeof r=="number"?y>=r:l==="horizontal"&&typeof n=="number"?h>=n:!1)&&(m=m.reverse());const w=Tm(m,t),b=w.length>0;if(b&&d)return Cm(e);if(b&&a)return`${t.i}`,t.x=h,t.y=y,t.moved=!1,e;for(let E=0,k=w.length;E<k;E++){const _=w[E];`${t.i}${t.x}${t.y}${_.i}${_.x}${_.y}`,!_.moved&&(_.static?e=Ed(e,_,t,i,l):e=Ed(e,t,_,i,l))}return e}function Ed(e,t,n,r,i,a){const l=i==="horizontal",c=i==="vertical",d=t.static;if(r){r=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:c?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},v=Io(e,m),w=v&&v.y+v.h>t.y,b=v&&t.x+t.w>v.x;if(v){if(w&&c)return Cs(e,n,void 0,t.y+1,r,d,i);if(w&&i==null)return t.y=n.y,n.y=n.y+n.h,e;if(b&&l)return Cs(e,t,n.x,void 0,r,d,i)}else return`${n.i}${m.x}${m.y}`,Cs(e,n,l?m.x:void 0,c?m.y:void 0,r,d,i)}const h=l?n.x+1:void 0,y=c?n.y+1:void 0;return h==null&&y==null?e:Cs(e,n,l?n.x+1:void 0,c?n.y+1:void 0,r,d,i)}function oT(e){return e*100+"%"}const Im=(e,t,n,r)=>e+n>r?t:n,km=(e,t,n)=>e<0?t:n,Om=e=>Math.max(0,e),Rd=e=>Math.max(0,e),Pd=(e,t,n)=>{let{left:r,height:i,width:a}=t;const l=e.top-(i-e.height);return{left:r,width:a,height:km(l,e.height,i),top:Rd(l)}},Td=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{top:r,height:a,width:Im(e.left,e.width,l,n),left:Om(i)}},Id=(e,t,n)=>{let{top:r,height:i,width:a}=t;const l=e.left-(a-e.width);return{height:i,width:l<0?e.width:Im(e.left,e.width,a,n),top:Rd(r),left:Om(l)}},kd=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{width:l,left:i,height:km(r,e.height,a),top:Rd(r)}},iT={n:Pd,ne:function(){return Pd(arguments.length<=0?void 0:arguments[0],Td(...arguments))},e:Td,se:function(){return kd(arguments.length<=0?void 0:arguments[0],Td(...arguments))},s:kd,sw:function(){return kd(arguments.length<=0?void 0:arguments[0],Id(...arguments))},w:Id,nw:function(){return Pd(arguments.length<=0?void 0:arguments[0],Id(...arguments))}};function sT(e,t,n,r){const i=iT[e];return i?i(t,{...t,...n},r):n}function aT(e){let{top:t,left:n,width:r,height:i}=e;const a=`translate(${n}px,${t}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${r}px`,height:`${i}px`,position:"absolute"}}function lT(e){let{top:t,left:n,width:r,height:i}=e;return{top:`${t}px`,left:`${n}px`,width:`${r}px`,height:`${i}px`,position:"absolute"}}function Od(e,t){return t==="horizontal"?$m(e):t==="vertical"?Am(e):e}function Am(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 $m(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 cT(e,t,n,r,i){e=e||[];const a=[];Ss.default.Children.forEach(t,c=>{if((c==null?void 0:c.key)==null)return;const d=Cd(e,String(c.key)),h=c.props["data-grid"];d&&h==null?a.push(To(d)):h?a.push(To({...h,i:c.key})):a.push(To({w:1,h:1,x:0,y:wd(a),i:String(c.key)}))});const l=Pm(a,{cols:n});return i?l:Em(l,r,n)}function uT(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 r=0,i=e.length;r<i;r++){const a=e[r];for(let l=0;l<n.length;l++){const c=n[l],d=a[c];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${r}].${c} must be a number! Received: ${d} (${typeof d})`)}if(typeof a.i<"u"&&typeof a.i!="string")throw new Error(`ReactGridLayout: ${t}[${r}].i must be a string! Received: ${a.i} (${typeof a.i})`)}}function dT(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function H5(){}const fT=()=>{};Qe.noop=fT;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.calcGridColWidth=wl,Tr.calcGridItemPosition=pT,Tr.calcGridItemWHPx=Ad,Tr.calcWH=gT,Tr.calcXY=hT,Tr.clamp=ko;function wl(e){const{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function Ad(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function pT(e,t,n,r,i,a){const{margin:l,containerPadding:c,rowHeight:d}=e,h=wl(e),y={};return a&&a.resizing?(y.width=Math.round(a.resizing.width),y.height=Math.round(a.resizing.height)):(y.width=Ad(r,h,l[0]),y.height=Ad(i,d,l[1])),a&&a.dragging?(y.top=Math.round(a.dragging.top),y.left=Math.round(a.dragging.left)):a&&a.resizing&&typeof a.resizing.top=="number"&&typeof a.resizing.left=="number"?(y.top=Math.round(a.resizing.top),y.left=Math.round(a.resizing.left)):(y.top=Math.round((d+l[1])*n+c[1]),y.left=Math.round((h+l[0])*t+c[0])),y}function hT(e,t,n,r,i){const{margin:a,containerPadding:l,cols:c,rowHeight:d,maxRows:h}=e,y=wl(e);let m=Math.round((n-l[0])/(y+a[0])),v=Math.round((t-l[1])/(d+a[1]));return m=ko(m,0,c-r),v=ko(v,0,h-i),{x:m,y:v}}function gT(e,t,n,r,i,a){const{margin:l,maxRows:c,cols:d,rowHeight:h}=e,y=wl(e);let m=Math.round((t+l[0])/(y+l[0])),v=Math.round((n+l[1])/(h+l[1])),w=ko(m,0,d-r),b=ko(v,0,c-i);return["sw","w","nw"].indexOf(a)!==-1&&(w=ko(m,0,d)),["nw","n","ne"].indexOf(a)!==-1&&(b=ko(v,0,c)),{w,h:b}}function ko(e,t,n){return Math.max(Math.min(e,n),t)}var Sl={},Cl={exports:{}},Mm={};function Bm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Bm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Dm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Bm(e))&&(r&&(r+=" "),r+=t);return r}const mT=ra(Object.freeze(Object.defineProperty({__proto__:null,clsx:Dm,default:Dm},Symbol.toStringTag,{value:"Module"})));var Dt={},Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.dontSetMe=wT,Ir.findInArray=yT,Ir.int=xT,Ir.isFunction=vT,Ir.isNum=bT;function yT(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function vT(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function bT(e){return typeof e=="number"&&!isNaN(e)}function xT(e){return parseInt(e,10)}function wT(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 Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.browserPrefixToKey=jm,Oo.browserPrefixToStyle=ST,Oo.default=void 0,Oo.getPrefix=Lm;const $d=["Moz","Webkit","O","ms"];function Lm(){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 r=0;r<$d.length;r++)if(jm(t,$d[r])in n)return $d[r];return""}function jm(e,t){return t?"".concat(t).concat(CT(e)):e}function ST(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function CT(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Oo.default=Lm(),Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.addClassName=Wm,Dt.addEvent=RT,Dt.addUserSelectStyles=LT,Dt.createCSSTransform=$T,Dt.createSVGTransform=MT,Dt.getTouch=BT,Dt.getTouchIdentifier=DT,Dt.getTranslation=Md,Dt.innerHeight=kT,Dt.innerWidth=OT,Dt.matchesSelector=zm,Dt.matchesSelectorAndParentsTo=ET,Dt.offsetXYFromParent=AT,Dt.outerHeight=TT,Dt.outerWidth=IT,Dt.removeClassName=Um,Dt.removeEvent=PT,Dt.removeUserSelectStyles=jT;var Bn=Ir,Fm=_T(Oo);function Nm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nm=function(r){return r?n:t})(e)}function _T(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}let _l="";function zm(e,t){return _l||(_l=(0,Bn.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Bn.isFunction)(e[n])})),(0,Bn.isFunction)(e[_l])?e[_l](t):!1}function ET(e,t,n){let r=e;do{if(zm(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function RT(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function PT(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function TT(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Bn.int)(n.borderTopWidth),t+=(0,Bn.int)(n.borderBottomWidth),t}function IT(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Bn.int)(n.borderLeftWidth),t+=(0,Bn.int)(n.borderRightWidth),t}function kT(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Bn.int)(n.paddingTop),t-=(0,Bn.int)(n.paddingBottom),t}function OT(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Bn.int)(n.paddingLeft),t-=(0,Bn.int)(n.paddingRight),t}function AT(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-i.left)/n,l=(e.clientY+t.scrollTop-i.top)/n;return{x:a,y:l}}function $T(e,t){const n=Md(e,t,"px");return{[(0,Fm.browserPrefixToKey)("transform",Fm.default)]:n}}function MT(e,t){return Md(e,t,"")}function Md(e,t,n){let{x:r,y:i}=e,a="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),c="".concat(typeof t.y=="string"?t.y:t.y+n);a="translate(".concat(l,", ").concat(c,")")+a}return a}function BT(e,t){return e.targetTouches&&(0,Bn.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,Bn.findInArray)(e.changedTouches,n=>t===n.identifier)}function DT(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function LT(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;}
|
|
178
178
|
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
179
|
-
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&Fm(e.body,"react-draggable-transparent-selection")}function BP(e){if(e)try{if(e.body&&Nm(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 Fm(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function Nm(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.canDragX=jP,Ir.canDragY=FP,Ir.createCoreData=zP,Ir.createDraggableData=WP,Ir.getBoundPosition=DP,Ir.getControlPosition=NP,Ir.snapToGrid=LP;var Dn=kr,mi=Dt;function DP(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:UP(r);const i=Md(e);if(typeof r=="string"){const{ownerDocument:a}=i,l=a.defaultView;let c;if(r==="parent"?c=i.parentNode:c=a.querySelector(r),!(c instanceof l.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const d=c,h=l.getComputedStyle(i),y=l.getComputedStyle(d);r={left:-i.offsetLeft+(0,Dn.int)(y.paddingLeft)+(0,Dn.int)(h.marginLeft),top:-i.offsetTop+(0,Dn.int)(y.paddingTop)+(0,Dn.int)(h.marginTop),right:(0,mi.innerWidth)(d)-(0,mi.outerWidth)(i)-i.offsetLeft+(0,Dn.int)(y.paddingRight)-(0,Dn.int)(h.marginRight),bottom:(0,mi.innerHeight)(d)-(0,mi.outerHeight)(i)-i.offsetTop+(0,Dn.int)(y.paddingBottom)-(0,Dn.int)(h.marginBottom)}}return(0,Dn.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Dn.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Dn.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Dn.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function LP(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function jP(e){return e.props.axis==="both"||e.props.axis==="x"}function FP(e){return e.props.axis==="both"||e.props.axis==="y"}function NP(e,t,n){const r=typeof t=="number"?(0,mi.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=Md(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,mi.offsetXYFromParent)(r||e,a,n.props.scale)}function zP(e,t,n){const r=!(0,Dn.isNum)(e.lastX),i=Md(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function WP(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 UP(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Md(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Cl={},_l={};Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=HP;function HP(){}Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var Bd=qP(Z),_n=Ld(no),GP=Ld(wo),un=Dt,io=Ir,Dd=kr,_s=Ld(_l);function Ld(e){return e&&e.__esModule?e:{default:e}}function zm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(zm=function(r){return r?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=zm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function gn(e,t,n){return t=VP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e){var t=KP(e,"string");return typeof t=="symbol"?t:String(t)}function KP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const fr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let so=fr.mouse,El=class extends Bd.Component{constructor(){super(...arguments),gn(this,"dragging",!1),gn(this,"lastX",NaN),gn(this,"lastY",NaN),gn(this,"touchIdentifier",null),gn(this,"mounted",!1),gn(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:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,un.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,un.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,un.getTouchIdentifier)(t);this.touchIdentifier=i;const a=(0,io.getControlPosition)(t,i,this);if(a==null)return;const{x:l,y:c}=a,d=(0,io.createCoreData)(this,l,c);(0,_s.default)("DraggableCore: handleDragStart: %j",d),(0,_s.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,un.addUserSelectStyles)(r),this.dragging=!0,this.lastX=l,this.lastY=c,(0,un.addEvent)(r,so.move,this.handleDrag),(0,un.addEvent)(r,so.stop,this.handleDragStop))}),gn(this,"handleDrag",t=>{const n=(0,io.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let c=r-this.lastX,d=i-this.lastY;if([c,d]=(0,io.snapToGrid)(this.props.grid,c,d),!c&&!d)return;r=this.lastX+c,i=this.lastY+d}const a=(0,io.createCoreData)(this,r,i);if((0,_s.default)("DraggableCore: handleDrag: %j",a),this.props.onDrag(t,a)===!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=r,this.lastY=i}),gn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,io.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let d=r-this.lastX||0,h=i-this.lastY||0;[d,h]=(0,io.snapToGrid)(this.props.grid,d,h),r=this.lastX+d,i=this.lastY+h}const a=(0,io.createCoreData)(this,r,i);if(this.props.onStop(t,a)===!1||this.mounted===!1)return!1;const c=this.findDOMNode();c&&this.props.enableUserSelectHack&&(0,un.removeUserSelectStyles)(c.ownerDocument),(0,_s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,c&&((0,_s.default)("DraggableCore: Removing handlers"),(0,un.removeEvent)(c.ownerDocument,so.move,this.handleDrag),(0,un.removeEvent)(c.ownerDocument,so.stop,this.handleDragStop))}),gn(this,"onMouseDown",t=>(so=fr.mouse,this.handleDragStart(t))),gn(this,"onMouseUp",t=>(so=fr.mouse,this.handleDragStop(t))),gn(this,"onTouchStart",t=>(so=fr.touch,this.handleDragStart(t))),gn(this,"onTouchEnd",t=>(so=fr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,un.addEvent)(t,fr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,un.removeEvent)(n,fr.mouse.move,this.handleDrag),(0,un.removeEvent)(n,fr.touch.move,this.handleDrag),(0,un.removeEvent)(n,fr.mouse.stop,this.handleDragStop),(0,un.removeEvent)(n,fr.touch.stop,this.handleDragStop),(0,un.removeEvent)(t,fr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,un.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:GP.default.findDOMNode(this)}render(){return Bd.cloneElement(Bd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Cl.default=El,gn(El,"displayName","DraggableCore"),gn(El,"propTypes",{allowAnyClick:_n.default.bool,children:_n.default.node.isRequired,disabled:_n.default.bool,enableUserSelectHack:_n.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:_n.default.arrayOf(_n.default.number),handle:_n.default.string,cancel:_n.default.string,nodeRef:_n.default.object,onStart:_n.default.func,onDrag:_n.default.func,onStop:_n.default.func,onMouseDown:_n.default.func,scale:_n.default.number,className:Dd.dontSetMe,style:Dd.dontSetMe,transform:Dd.dontSetMe}),gn(El,"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=v(Z),n=y(no),r=y(wo),i=y(pP),a=Dt,l=Ir,c=kr,d=y(Cl),h=y(_l);function y(I){return I&&I.__esModule?I:{default:I}}function m(I){if(typeof WeakMap!="function")return null;var E=new WeakMap,P=new WeakMap;return(m=function(M){return M?P:E})(I)}function v(I,E){if(I&&I.__esModule)return I;if(I===null||typeof I!="object"&&typeof I!="function")return{default:I};var P=m(E);if(P&&P.has(I))return P.get(I);var M={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in I)if($!=="default"&&Object.prototype.hasOwnProperty.call(I,$)){var z=D?Object.getOwnPropertyDescriptor(I,$):null;z&&(z.get||z.set)?Object.defineProperty(M,$,z):M[$]=I[$]}return M.default=I,P&&P.set(I,M),M}function S(){return S=Object.assign?Object.assign.bind():function(I){for(var E=1;E<arguments.length;E++){var P=arguments[E];for(var M in P)Object.prototype.hasOwnProperty.call(P,M)&&(I[M]=P[M])}return I},S.apply(this,arguments)}function x(I,E,P){return E=R(E),E in I?Object.defineProperty(I,E,{value:P,enumerable:!0,configurable:!0,writable:!0}):I[E]=P,I}function R(I){var E=O(I,"string");return typeof E=="symbol"?E:String(E)}function O(I,E){if(typeof I!="object"||I===null)return I;var P=I[Symbol.toPrimitive];if(P!==void 0){var M=P.call(I,E||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(I)}class _ extends t.Component{static getDerivedStateFromProps(E,P){let{position:M}=E,{prevPropsPosition:D}=P;return M&&(!D||M.x!==D.x||M.y!==D.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:M,prevPropsPosition:D}),{x:M.x,y:M.y,prevPropsPosition:{...M}}):null}constructor(E){super(E),x(this,"onDragStart",(P,M)=>{if((0,h.default)("Draggable: onDragStart: %j",M),this.props.onStart(P,(0,l.createDraggableData)(this,M))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(P,M)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",M);const D=(0,l.createDraggableData)(this,M),$={x:D.x,y:D.y,slackX:0,slackY:0};if(this.props.bounds){const{x:V,y:b}=$;$.x+=this.state.slackX,$.y+=this.state.slackY;const[H,Q]=(0,l.getBoundPosition)(this,$.x,$.y);$.x=H,$.y=Q,$.slackX=this.state.slackX+(V-$.x),$.slackY=this.state.slackY+(b-$.y),D.x=$.x,D.y=$.y,D.deltaX=$.x-this.state.x,D.deltaY=$.y-this.state.y}if(this.props.onDrag(P,D)===!1)return!1;this.setState($)}),x(this,"onDragStop",(P,M)=>{if(!this.state.dragging||this.props.onStop(P,(0,l.createDraggableData)(this,M))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",M);const $={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:V,y:b}=this.props.position;$.x=V,$.y=b}this.setState($)}),this.state={dragging:!1,dragged:!1,x:E.position?E.position.x:E.defaultPosition.x,y:E.position?E.position.y:E.defaultPosition.y,prevPropsPosition:{...E.position},slackX:0,slackY:0,isElementSVG:!1},E.position&&!(E.onDrag||E.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 E,P;return(E=(P=this.props)===null||P===void 0||(P=P.nodeRef)===null||P===void 0?void 0:P.current)!==null&&E!==void 0?E:r.default.findDOMNode(this)}render(){const{axis:E,bounds:P,children:M,defaultPosition:D,defaultClassName:$,defaultClassNameDragging:z,defaultClassNameDragged:V,position:b,positionOffset:H,scale:Q,...ee}=this.props;let X={},te=null;const fe=!!!b||this.state.dragging,pe=b||D,_e={x:(0,l.canDragX)(this)&&fe?this.state.x:pe.x,y:(0,l.canDragY)(this)&&fe?this.state.y:pe.y};this.state.isElementSVG?te=(0,a.createSVGTransform)(_e,H):X=(0,a.createCSSTransform)(_e,H);const We=(0,i.default)(M.props.className||"",$,{[z]:this.state.dragging,[V]:this.state.dragged});return t.createElement(d.default,S({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(M),{className:We,style:{...M.props.style,...X},transform:te}))}}e.default=_,x(_,"displayName","Draggable"),x(_,"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:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),x(_,"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})}(Om);const{default:Wm,DraggableCore:YP}=Om;wl.exports=Wm,wl.exports.default=Wm,wl.exports.DraggableCore=YP;var Um=wl.exports,Rl={exports:{}},Es={},jd={};jd.__esModule=!0,jd.cloneElement=tk;var XP=JP(Z);function JP(e){return e&&e.__esModule?e:{default:e}}function Hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(n),!0).forEach(function(r){ZP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZP(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=ek(e,"string");return typeof t=="symbol"?t:String(t)}function ek(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tk(e,t){return t.style&&e.props.style&&(t.style=Gm(Gm({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),XP.default.cloneElement(e,t)}var Rs={};Rs.__esModule=!0,Rs.resizableProps=void 0;var He=nk(no);function nk(e){return e&&e.__esModule?e:{default:e}}var rk={axis:He.default.oneOf(["both","x","y","none"]),className:He.default.string,children:He.default.element.isRequired,draggableOpts:He.default.shape({allowAnyClick:He.default.bool,cancel:He.default.string,children:He.default.node,disabled:He.default.bool,enableUserSelectHack:He.default.bool,offsetParent:He.default.node,grid:He.default.arrayOf(He.default.number),handle:He.default.string,nodeRef:He.default.object,onStart:He.default.func,onDrag:He.default.func,onStop:He.default.func,onMouseDown:He.default.func,scale:He.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="y"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)},handle:He.default.oneOfType([He.default.node,He.default.func]),handleSize:He.default.arrayOf(He.default.number),lockAspectRatio:He.default.bool,maxConstraints:He.default.arrayOf(He.default.number),minConstraints:He.default.arrayOf(He.default.number),onResizeStop:He.default.func,onResizeStart:He.default.func,onResize:He.default.func,resizeHandles:He.default.arrayOf(He.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:He.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="x"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)}};Rs.resizableProps=rk,Es.__esModule=!0,Es.default=void 0;var Ts=lk(Z),ok=Um,ik=jd,sk=Rs,ak=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function qm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(qm=function(i){return i?n:t})(e)}function lk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=qm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fd.apply(this,arguments)}function ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){uk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uk(e,t,n){return t=dk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dk(e){var t=fk(e,"string");return typeof t=="symbol"?t:String(t)}function fk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zd(e,t)}function zd(e,t){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zd(e,t)}var Wd=function(e){pk(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,a){var l=this.props,c=l.minConstraints,d=l.maxConstraints,h=l.lockAspectRatio;if(!c&&!d&&!h)return[i,a];if(h){var y=this.props.width/this.props.height,m=i-this.props.width,v=a-this.props.height;Math.abs(m)>Math.abs(v*y)?a=i/y:i=a*y}var S=i,x=a,R=this.slack||[0,0],O=R[0],_=R[1];return i+=O,a+=_,c&&(i=Math.max(c[0],i),a=Math.max(c[1],a)),d&&(i=Math.min(d[0],i),a=Math.min(d[1],a)),this.slack=[O+(S-i),_+(x-a)],[i,a]},n.resizeHandler=function(i,a){var l=this;return function(c,d){var h=d.node,y=d.deltaX,m=d.deltaY;i==="onResizeStart"&&l.resetData();var v=(l.props.axis==="both"||l.props.axis==="x")&&a!=="n"&&a!=="s",S=(l.props.axis==="both"||l.props.axis==="y")&&a!=="e"&&a!=="w";if(!(!v&&!S)){var x=a[0],R=a[a.length-1],O=h.getBoundingClientRect();if(l.lastHandleRect!=null){if(R==="w"){var _=O.left-l.lastHandleRect.left;y+=_}if(x==="n"){var I=O.top-l.lastHandleRect.top;m+=I}}l.lastHandleRect=O,R==="w"&&(y=-y),x==="n"&&(m=-m);var E=l.props.width+(v?y/l.props.transformScale:0),P=l.props.height+(S?m/l.props.transformScale:0),M=l.runConstraints(E,P);E=M[0],P=M[1];var D=E!==l.props.width||P!==l.props.height,$=typeof l.props[i]=="function"?l.props[i]:null,z=i==="onResize"&&!D;$&&!z&&(c.persist==null||c.persist(),$(c,{node:h,size:{width:E,height:P},handle:a})),i==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(i,a){var l=this.props.handle;if(!l)return Ts.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:a});if(typeof l=="function")return l(i,a);var c=typeof l.type=="string",d=Nd({ref:a},c?{}:{handleAxis:i});return Ts.cloneElement(l,d)},n.render=function(){var i=this,a=this.props,l=a.children,c=a.className,d=a.draggableOpts;a.width,a.height,a.handle,a.handleSize,a.lockAspectRatio,a.axis,a.minConstraints,a.maxConstraints,a.onResize,a.onResizeStop,a.onResizeStart;var h=a.resizeHandles;a.transformScale;var y=ck(a,ak);return(0,ik.cloneElement)(l,Nd(Nd({},y),{},{className:(c?c+" ":"")+"react-resizable",children:[].concat(l.props.children,h.map(function(m){var v,S=(v=i.handleRefs[m])!=null?v:i.handleRefs[m]=Ts.createRef();return Ts.createElement(ok.DraggableCore,Fd({},d,{nodeRef:S,key:"resizableHandle-"+m,onStop:i.resizeHandler("onResizeStop",m),onStart:i.resizeHandler("onResizeStart",m),onDrag:i.resizeHandler("onResize",m)}),i.renderResizeHandle(m,S))}))}))},t}(Ts.Component);Es.default=Wd,Wd.propTypes=sk.resizableProps,Wd.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Tl={};Tl.__esModule=!0,Tl.default=void 0;var Ud=vk(Z),hk=Km(no),gk=Km(Es),mk=Rs,yk=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function Km(e){return e&&e.__esModule?e:{default:e}}function Ym(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ym=function(i){return i?n:t})(e)}function vk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ym(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(n),!0).forEach(function(r){bk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bk(e,t,n){return t=xk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xk(e){var t=wk(e,"string");return typeof t=="symbol"?t:String(t)}function wk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ck(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gd(e,t)}function Gd(e,t){return Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gd(e,t)}var Jm=function(e){Ck(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(c,d){var h=d.size;r.props.onResize?(c.persist==null||c.persist(),r.setState(h,function(){return r.props.onResize&&r.props.onResize(c,d)})):r.setState(h)},r}t.getDerivedStateFromProps=function(i,a){return a.propsWidth!==i.width||a.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,a=i.handle,l=i.handleSize;i.onResize;var c=i.onResizeStart,d=i.onResizeStop,h=i.draggableOpts,y=i.minConstraints,m=i.maxConstraints,v=i.lockAspectRatio,S=i.axis;i.width,i.height;var x=i.resizeHandles,R=i.style,O=i.transformScale,_=Sk(i,yk);return Ud.createElement(gk.default,{axis:S,draggableOpts:h,handle:a,handleSize:l,height:this.state.height,lockAspectRatio:v,maxConstraints:m,minConstraints:y,onResizeStart:c,onResize:this.onResize,onResizeStop:d,resizeHandles:x,transformScale:O,width:this.state.width},Ud.createElement("div",Hd({},_,{style:Pl(Pl({},R),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Ud.Component);Tl.default=Jm,Jm.propTypes=Pl(Pl({},mk.resizableProps),{},{children:hk.default.element}),Rl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Rl.exports.Resizable=Es.default,Rl.exports.ResizableBox=Tl.default;var _k=Rl.exports,Ur={};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.resizeHandleType=Ur.resizeHandleAxesType=Ur.default=void 0;var Ke=Zm(no),Ek=Zm(Z);function Zm(e){return e&&e.__esModule?e:{default:e}}const Rk=Ur.resizeHandleAxesType=Ke.default.arrayOf(Ke.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),Tk=Ur.resizeHandleType=Ke.default.oneOfType([Ke.default.node,Ke.default.func]);Ur.default={className:Ke.default.string,style:Ke.default.object,width:Ke.default.number,autoSize:Ke.default.bool,cols:Ke.default.number,draggableCancel:Ke.default.string,draggableHandle:Ke.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ke.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ke.default.arrayOf(Ke.default.number),containerPadding:Ke.default.arrayOf(Ke.default.number),rowHeight:Ke.default.number,maxRows:Ke.default.number,isBounded:Ke.default.bool,isDraggable:Ke.default.bool,isResizable:Ke.default.bool,allowOverlap:Ke.default.bool,preventCollision:Ke.default.bool,useCSSTransforms:Ke.default.bool,transformScale:Ke.default.number,isDroppable:Ke.default.bool,resizeHandles:Rk,resizeHandle:Tk,onLayoutChange:Ke.default.func,onDragStart:Ke.default.func,onDrag:Ke.default.func,onDragStop:Ke.default.func,onResizeStart:Ke.default.func,onResize:Ke.default.func,onResizeStop:Ke.default.func,onDrop:Ke.default.func,droppingItem:Ke.default.shape({i:Ke.default.string.isRequired,w:Ke.default.number.isRequired,h:Ke.default.number.isRequired}),children:function(e,t){const n=e[t],r={};Ek.default.Children.forEach(n,function(i){if((i==null?void 0:i.key)!=null){if(r[i.key])throw new Error('Duplicate child key "'+i.key+'" found! This will cause problems in ReactGridLayout.');r[i.key]=!0}})},innerRef:Ke.default.any},Object.defineProperty(xl,"__esModule",{value:!0}),xl.default=void 0;var yi=qd(Z),ct=qd(no),Pk=Um,kk=_k,vi=Qe,nn=Pr,Qm=Ur,Ik=qd(bd);function qd(e){return e&&e.__esModule?e:{default:e}}function Or(e,t,n){return t=Ok(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ok(e){var t=Ak(e,"string");return typeof t=="symbol"?t:String(t)}function Ak(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Vd extends yi.default.Component{constructor(){super(...arguments),Or(this,"state",{resizing:null,dragging:null,className:""}),Or(this,"elementRef",yi.default.createRef()),Or(this,"onDragStart",(t,n)=>{let{node:r}=n;const{onDragStart:i,transformScale:a}=this.props;if(!i)return;const l={top:0,left:0},{offsetParent:c}=r;if(!c)return;const d=c.getBoundingClientRect(),h=r.getBoundingClientRect(),y=h.left/a,m=d.left/a,v=h.top/a,S=d.top/a;l.left=y-m+c.scrollLeft,l.top=v-S+c.scrollTop,this.setState({dragging:l});const{x,y:R}=(0,nn.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return i.call(this,this.props.i,x,R,{e:t,node:r,newPosition:l})}),Or(this,"onDrag",(t,n)=>{let{node:r,deltaX:i,deltaY:a}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let c=this.state.dragging.top+a,d=this.state.dragging.left+i;const{isBounded:h,i:y,w:m,h:v,containerWidth:S}=this.props,x=this.getPositionParams();if(h){const{offsetParent:I}=r;if(I){const{margin:E,rowHeight:P,containerPadding:M}=this.props,D=I.clientHeight-(0,nn.calcGridItemWHPx)(v,P,E[1]);c=(0,nn.clamp)(c-M[1],0,D);const $=(0,nn.calcGridColWidth)(x),z=S-(0,nn.calcGridItemWHPx)(m,$,E[0]);d=(0,nn.clamp)(d-M[0],0,z)}}const R={top:c,left:d};this.setState({dragging:R});const{x:O,y:_}=(0,nn.calcXY)(x,c,d,m,v);return l.call(this,y,O,_,{e:t,node:r,newPosition:R})}),Or(this,"onDragStop",(t,n)=>{let{node:r}=n;const{onDragStop:i}=this.props;if(!i)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:l,i:c}=this.props,{left:d,top:h}=this.state.dragging,y={top:h,left:d};this.setState({dragging:null});const{x:m,y:v}=(0,nn.calcXY)(this.getPositionParams(),h,d,a,l);return i.call(this,c,m,v,{e:t,node:r,newPosition:y})}),Or(this,"onResizeStop",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStop")),Or(this,"onResizeStart",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStart")),Or(this,"onResize",(t,n,r)=>this.onResizeHandler(t,n,r,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const r=(0,nn.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),i=(0,nn.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,vi.fastPositionEqual)(r,i)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const r=this.elementRef.current;if(!r)return;const i=t.droppingPosition||{left:0,top:0},{dragging:a}=this.state,l=a&&n.left!==i.left||n.top!==i.top;if(!a)this.onDragStart(n.e,{node:r,deltaX:n.left,deltaY:n.top});else if(l){const c=n.left-a.left,d=n.top-a.top;this.onDrag(n.e,{node:r,deltaX:c,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:r,useCSSTransforms:i}=this.props;let a;return i?a=(0,vi.setTransform)(t):(a=(0,vi.setTopLeft)(t),n&&(a.left=(0,vi.perc)(t.left/r),a.width=(0,vi.perc)(t.width/r))),a}mixinDraggable(t,n){return yi.default.createElement(Pk.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(r,i)=>n(r,i,t)}mixinResizable(t,n,r){const{cols:i,minW:a,minH:l,maxW:c,maxH:d,transformScale:h,resizeHandles:y,resizeHandle:m}=this.props,v=this.getPositionParams(),S=(0,nn.calcGridItemPosition)(v,0,0,i,0).width,x=(0,nn.calcGridItemPosition)(v,0,0,a,l),R=(0,nn.calcGridItemPosition)(v,0,0,c,d),O=[x.width,x.height],_=[Math.min(R.width,S),Math.min(R.height,1/0)];return yi.default.createElement(kk.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:O,maxConstraints:_,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,r,i){let{node:a,size:l,handle:c}=n;const d=this.props[i];if(!d)return;const{x:h,y,i:m,maxH:v,minH:S,containerWidth:x}=this.props,{minW:R,maxW:O}=this.props;let _=l;a&&(_=(0,vi.resizeItemInDirection)(c,r,l,x),this.setState({resizing:i==="onResizeStop"?null:_}));let{w:I,h:E}=(0,nn.calcWH)(this.getPositionParams(),_.width,_.height,h,y,c);I=(0,nn.clamp)(I,Math.max(R,1),O),E=(0,nn.clamp)(E,S,v),d.call(this,m,I,E,{e:t,node:a,size:_,handle:c})}render(){const{x:t,y:n,w:r,h:i,isDraggable:a,isResizable:l,droppingPosition:c,useCSSTransforms:d}=this.props,h=(0,nn.calcGridItemPosition)(this.getPositionParams(),t,n,r,i,this.state),y=yi.default.Children.only(this.props.children);let m=yi.default.cloneElement(y,{ref:this.elementRef,className:(0,Ik.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!c,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(h)}});return m=this.mixinResizable(m,h,l),m=this.mixinDraggable(m,a),m}}xl.default=Vd,Or(Vd,"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:Qm.resizeHandleAxesType,resizeHandle:Qm.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})}),Or(Vd,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var Ao=Dk(Z),Kd=vd,$k=Yd(bd),je=Qe,Mk=Pr,ey=Yd(xl),Bk=Yd(Ur);function Yd(e){return e&&e.__esModule?e:{default:e}}function ty(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ty=function(r){return r?n:t})(e)}function Dk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ty(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function dn(e,t,n){return t=Lk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lk(e){var t=jk(e,"string");return typeof t=="symbol"?t:String(t)}function jk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const ny="react-grid-layout";let ry=!1;try{ry=/firefox/i.test(navigator.userAgent)}catch{}class kl extends Ao.Component{constructor(){super(...arguments),dn(this,"state",{activeDrag:null,layout:(0,je.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,je.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),dn(this,"dragEnterCounter",0),dn(this,"onDragStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,je.getLayoutItem)(c,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,je.cloneLayoutItem)(d),oldLayout:c,activeDrag:h}),this.props.onDragStart(c,d,d,null,a,l)}),dn(this,"onDrag",(t,n,r,i)=>{let{e:a,node:l}=i;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:h,allowOverlap:y,preventCollision:m}=this.props,v=(0,je.getLayoutItem)(d,t);if(!v)return;const S={w:v.w,h:v.h,x:v.x,y:v.y,placeholder:!0,i:t};d=(0,je.moveElement)(d,v,n,r,!0,m,(0,je.compactType)(this.props),h,y),this.props.onDrag(d,c,v,S,a,l),this.setState({layout:y?d:(0,je.compact)(d,(0,je.compactType)(this.props),h),activeDrag:S})}),dn(this,"onDragStop",(t,n,r,i)=>{let{e:a,node:l}=i;if(!this.state.activeDrag)return;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:h,preventCollision:y,allowOverlap:m}=this.props,v=(0,je.getLayoutItem)(d,t);if(!v)return;d=(0,je.moveElement)(d,v,n,r,!0,y,(0,je.compactType)(this.props),h,m);const x=m?d:(0,je.compact)(d,(0,je.compactType)(this.props),h);this.props.onDragStop(x,c,v,null,a,l);const{oldLayout:R}=this.state;this.setState({activeDrag:null,layout:x,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(x,R)}),dn(this,"onResizeStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,je.getLayoutItem)(c,t);d&&(this.setState({oldResizeItem:(0,je.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(c,d,d,null,a,l))}),dn(this,"onResize",(t,n,r,i)=>{let{e:a,node:l,size:c,handle:d}=i;const{oldResizeItem:h}=this.state,{layout:y}=this.state,{cols:m,preventCollision:v,allowOverlap:S}=this.props;let x=!1,R,O,_;const[I,E]=(0,je.withLayoutItem)(y,t,M=>{let D;return O=M.x,_=M.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(O=M.x+(M.w-n),n=M.x!==O&&O<0?M.w:n,O=O<0?0:O),["ne","n","nw"].indexOf(d)!==-1&&(_=M.y+(M.h-r),r=M.y!==_&&_<0?M.h:r,_=_<0?0:_),x=!0),v&&!S&&(D=(0,je.getAllCollisions)(y,{...M,w:n,h:r,x:O,y:_}).filter(z=>z.i!==M.i).length>0,D&&(_=M.y,r=M.h,O=M.x,n=M.w,x=!1)),M.w=n,M.h=r,M});if(!E)return;R=I,x&&(R=(0,je.moveElement)(I,E,O,_,!0,this.props.preventCollision,(0,je.compactType)(this.props),m,S));const P={w:E.w,h:E.h,x:E.x,y:E.y,static:!0,i:t};this.props.onResize(R,h,E,P,a,l),this.setState({layout:S?R:(0,je.compact)(R,(0,je.compactType)(this.props),m),activeDrag:P})}),dn(this,"onResizeStop",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c,oldResizeItem:d}=this.state,{cols:h,allowOverlap:y}=this.props,m=(0,je.getLayoutItem)(c,t),v=y?c:(0,je.compact)(c,(0,je.compactType)(this.props),h);this.props.onResizeStop(v,d,m,null,a,l);const{oldLayout:S}=this.state;this.setState({activeDrag:null,layout:v,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(v,S)}),dn(this,"onDragOver",t=>{var I;if(t.preventDefault(),t.stopPropagation(),ry&&!((I=t.nativeEvent.target)!=null&&I.classList.contains(ny)))return!1;const{droppingItem:n,onDropDragOver:r,margin:i,cols:a,rowHeight:l,maxRows:c,width:d,containerPadding:h,transformScale:y}=this.props,m=r==null?void 0:r(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const v={...n,...m},{layout:S}=this.state,x=t.currentTarget.getBoundingClientRect(),R=t.clientX-x.left,O=t.clientY-x.top,_={left:R/y,top:O/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:E,top:P}=this.state.droppingPosition;(E!=R||P!=O)&&this.setState({droppingPosition:_})}}else{const E={cols:a,margin:i,maxRows:c,rowHeight:l,containerWidth:d,containerPadding:h||i},P=(0,Mk.calcXY)(E,O,R,v.w,v.h);this.setState({droppingDOMNode:Ao.createElement("div",{key:v.i}),droppingPosition:_,layout:[...S,{...v,x:P.x,y:P.y,static:!1,isDraggable:!0}]})}}),dn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:r}=this.state,i=(0,je.compact)(r.filter(a=>a.i!==t.i),(0,je.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),dn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),dn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),dn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:r}=this.state,i=r.find(a=>a.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(r,i,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let r;return n.activeDrag?null:(!(0,Kd.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?r=t.layout:(0,je.childrenEqual)(t.children,n.children)||(r=n.layout),r?{layout:(0,je.synchronizeLayoutWithChildren)(r,t.children,t.cols,(0,je.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,je.fastRGLPropsEqual)(this.props,t,Kd.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const r=this.state.layout,i=n.layout;this.onLayoutMaybeChanged(r,i)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,je.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,Kd.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:r,margin:i,containerPadding:a,rowHeight:l,maxRows:c,useCSSTransforms:d,transformScale:h}=this.props;return Ao.createElement(ey.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:r,margin:i,containerPadding:a||i,maxRows:c,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:h},Ao.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const r=(0,je.getLayoutItem)(this.state.layout,String(t.key));if(!r)return null;const{width:i,cols:a,margin:l,containerPadding:c,rowHeight:d,maxRows:h,isDraggable:y,isResizable:m,isBounded:v,useCSSTransforms:S,transformScale:x,draggableCancel:R,draggableHandle:O,resizeHandles:_,resizeHandle:I}=this.props,{mounted:E,droppingPosition:P}=this.state,M=typeof r.isDraggable=="boolean"?r.isDraggable:!r.static&&y,D=typeof r.isResizable=="boolean"?r.isResizable:!r.static&&m,$=r.resizeHandles||_,z=M&&v&&r.isBounded!==!1;return Ao.createElement(ey.default,{containerWidth:i,cols:a,margin:l,containerPadding:c||l,maxRows:h,rowHeight:d,cancel:R,handle:O,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:M,isResizable:D,isBounded:z,useCSSTransforms:S&&E,usePercentages:!E,transformScale:x,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:n?P:void 0,resizeHandles:$,resizeHandle:I},t)}render(){const{className:t,style:n,isDroppable:r,innerRef:i}=this.props,a=(0,$k.default)(ny,t),l={height:this.containerHeight(),...n};return Ao.createElement("div",{ref:i,className:a,style:l,onDrop:r?this.onDrop:je.noop,onDragLeave:r?this.onDragLeave:je.noop,onDragEnter:r?this.onDragEnter:je.noop,onDragOver:r?this.onDragOver:je.noop},Ao.Children.map(this.props.children,c=>this.processGridItem(c)),r&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}ws.default=kl,dn(kl,"displayName","ReactGridLayout"),dn(kl,"propTypes",Bk.default),dn(kl,"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:je.noop,onDragStart:je.noop,onDrag:je.noop,onDragStop:je.noop,onResizeStart:je.noop,onResize:je.noop,onResizeStop:je.noop,onDrop:je.noop,onDropDragOver:je.noop});var Il={},$o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.findOrGenerateResponsiveLayout=zk,$o.getBreakpointFromWidth=Fk,$o.getColsFromBreakpoint=Nk,$o.sortBreakpoints=Xd;var Ol=Qe;function Fk(e,t){const n=Xd(e);let r=n[0];for(let i=1,a=n.length;i<a;i++){const l=n[i];t>e[l]&&(r=l)}return r}function Nk(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function zk(e,t,n,r,i,a){if(e[n])return(0,Ol.cloneLayout)(e[n]);let l=e[r];const c=Xd(t),d=c.slice(c.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,Ol.cloneLayout)(l||[]),(0,Ol.compact)((0,Ol.correctBounds)(l,{cols:i}),a,i)}function Xd(e){return Object.keys(e).sort(function(n,r){return e[n]-e[r]})}Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=void 0;var oy=Uk(Z),En=iy(no),Jd=vd,bi=Qe,Mo=$o,Wk=iy(ws);function iy(e){return e&&e.__esModule?e:{default:e}}function sy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(sy=function(r){return r?n:t})(e)}function Uk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=sy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zd.apply(this,arguments)}function Al(e,t,n){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hk(e){var t=Gk(e,"string");return typeof t=="symbol"?t:String(t)}function Gk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const ay=e=>Object.prototype.toString.call(e);function $l(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class Qd extends oy.Component{constructor(){super(...arguments),Al(this,"state",this.generateInitialState()),Al(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:r,cols:i}=this.props,a=(0,Mo.getBreakpointFromWidth)(n,t),l=(0,Mo.getColsFromBreakpoint)(a,i),c=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(r,n,a,a,l,c),breakpoint:a,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,Jd.deepEqual)(t.layouts,n.layouts)){const{breakpoint:r,cols:i}=n;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,i,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,Jd.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,Jd.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:r,layouts:i,compactType:a}=this.props,l=this.props.breakpoint||(0,Mo.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),c=this.state.breakpoint,d=(0,Mo.getColsFromBreakpoint)(l,r),h={...i};if(c!==l||t.breakpoints!==n||t.cols!==r){c in h||(h[c]=(0,bi.cloneLayout)(this.state.layout));let v=(0,Mo.findOrGenerateResponsiveLayout)(h,n,l,c,d,a);v=(0,bi.synchronizeLayoutWithChildren)(v,this.props.children,d,a,this.props.allowOverlap),h[l]=v,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(v,h),this.setState({breakpoint:l,layout:v,cols:d})}const y=$l(this.props.margin,l),m=$l(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:r,layouts:i,margin:a,containerPadding:l,onBreakpointChange:c,onLayoutChange:d,onWidthChange:h,...y}=this.props;return oy.createElement(Wk.default,Zd({},y,{margin:$l(a,this.state.breakpoint),containerPadding:$l(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}Il.default=Qd,Al(Qd,"propTypes",{breakpoint:En.default.string,breakpoints:En.default.object,allowOverlap:En.default.bool,cols:En.default.object,margin:En.default.oneOfType([En.default.array,En.default.object]),containerPadding:En.default.oneOfType([En.default.array,En.default.object]),layouts(e,t){if(ay(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+ay(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,bi.validateLayout)(e.layouts[n],"layouts."+n)})},width:En.default.number.isRequired,onBreakpointChange:En.default.func,onLayoutChange:En.default.func,onWidthChange:En.default.func}),Al(Qd,"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:bi.noop,onLayoutChange:bi.noop,onWidthChange:bi.noop});var ef={},ly=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}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 r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},t}()}(),tf=typeof window<"u"&&typeof document<"u"&&window.document===document,Ml=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")()}(),qk=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ml):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Vk=2;function Kk(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function l(){qk(a)}function c(){var d=Date.now();if(n){if(d-i<Vk)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=d}return c}var Yk=20,Xk=["top","right","bottom","left","width","height","size","weight"],Jk=typeof MutationObserver<"u",Zk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Kk(this.refresh.bind(this),Yk)}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_,r=n.indexOf(t);~r&&n.splice(r,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(){!tf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jk?(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(){!tf||!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,r=n===void 0?"":n,i=Xk.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),cy=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},xi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ml},uy=Dl(0,0,0,0);function Bl(e){return parseFloat(e)||0}function dy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Bl(a)},0)}function Qk(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],l=e["padding-"+a];n[a]=Bl(l)}return n}function eI(e){var t=e.getBBox();return Dl(0,0,t.width,t.height)}function tI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return uy;var r=xi(e).getComputedStyle(e),i=Qk(r),a=i.left+i.right,l=i.top+i.bottom,c=Bl(r.width),d=Bl(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=dy(r,"left","right")+a),Math.round(d+l)!==n&&(d-=dy(r,"top","bottom")+l)),!rI(e)){var h=Math.round(c+a)-t,y=Math.round(d+l)-n;Math.abs(h)!==1&&(c-=h),Math.abs(y)!==1&&(d-=y)}return Dl(i.left,i.top,c,d)}var nI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof xi(e).SVGGraphicsElement}:function(e){return e instanceof xi(e).SVGElement&&typeof e.getBBox=="function"}}();function rI(e){return e===xi(e).document.documentElement}function oI(e){return tf?nI(e)?eI(e):tI(e):uy}function iI(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return cy(l,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),l}function Dl(e,t,n,r){return{x:e,y:t,width:n,height:r}}var sI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Dl(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=oI(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}(),aI=function(){function e(t,n){var r=iI(n);cy(this,{target:t,contentRect:r})}return e}(),lI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new ly,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 xi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new sI(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 xi(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(r){return new aI(r.target,r.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}(),fy=typeof WeakMap<"u"?new WeakMap:new ly,py=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=Zk.getInstance(),r=new lI(t,n,this);fy.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){py.prototype[e]=function(){var t;return(t=fy.get(this))[e].apply(t,arguments)}});var cI=function(){return typeof Ml.ResizeObserver<"u"?Ml.ResizeObserver:py}();const uI=ta(Object.freeze(Object.defineProperty({__proto__:null,default:cI},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(ef,"__esModule",{value:!0}),ef.default=vI;var Ll=hI(Z),dI=nf(no),fI=nf(uI),pI=nf(bd);function nf(e){return e&&e.__esModule?e:{default:e}}function hy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hy=function(r){return r?n:t})(e)}function hI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rf.apply(this,arguments)}function wi(e,t,n){return t=gI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gI(e){var t=mI(e,"string");return typeof t=="symbol"?t:String(t)}function mI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const yI="react-grid-layout";function vI(e){var t;return t=class extends Ll.Component{constructor(){super(...arguments),wi(this,"state",{width:1280}),wi(this,"elementRef",Ll.createRef()),wi(this,"mounted",!1),wi(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new fI.default(i=>{if(this.elementRef.current instanceof HTMLElement){const l=i[0].contentRect.width;this.setState({width:l})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:r,...i}=this.props;return r&&!this.mounted?Ll.createElement("div",{className:(0,pI.default)(this.props.className,yI),style:this.props.style,ref:this.elementRef}):Ll.createElement(e,rf({innerRef:this.elementRef},i,this.state))}},wi(t,"defaultProps",{measureBeforeMount:!1}),wi(t,"propTypes",{measureBeforeMount:dI.default.bool}),t}(function(e){e.exports=ws.default,e.exports.utils=Qe,e.exports.calculateUtils=Pr,e.exports.Responsive=Il.default,e.exports.Responsive.utils=$o,e.exports.WidthProvider=ef.default})(vm);var gy=vm.exports;const bI=Yp(gy);var Rn=function(){return Rn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Rn.apply(this,arguments)};function Ps(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",ks="-moz-",ft="-webkit-",my="comm",jl="rule",of="decl",xI="@import",yy="@keyframes",wI="@layer",vy=Math.abs,sf=String.fromCharCode,af=Object.assign;function SI(e,t){return Qt(e,0)^45?(((t<<2^Qt(e,0))<<2^Qt(e,1))<<2^Qt(e,2))<<2^Qt(e,3):0}function by(e){return e.trim()}function Hr(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,n){return e.replace(t,n)}function Fl(e,t,n){return e.indexOf(t,n)}function Qt(e,t){return e.charCodeAt(t)|0}function Si(e,t,n){return e.slice(t,n)}function Ar(e){return e.length}function xy(e){return e.length}function Is(e,t){return t.push(e),e}function CI(e,t){return e.map(t).join("")}function wy(e,t){return e.filter(function(n){return!Hr(n,t)})}var Nl=1,Ci=1,Sy=0,Jn=0,qt=0,_i="";function zl(e,t,n,r,i,a,l,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Nl,column:Ci,length:l,return:"",siblings:c}}function ao(e,t){return af(zl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=ao(e.root,{children:[e]});Is(e,e.siblings)}function _I(){return qt}function EI(){return qt=Jn>0?Qt(_i,--Jn):0,Ci--,qt===10&&(Ci=1,Nl--),qt}function pr(){return qt=Jn<Sy?Qt(_i,Jn++):0,Ci++,qt===10&&(Ci=1,Nl++),qt}function Bo(){return Qt(_i,Jn)}function Wl(){return Jn}function Ul(e,t){return Si(_i,e,t)}function lf(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 Nl=Ci=1,Sy=Ar(_i=e),Jn=0,[]}function TI(e){return _i="",e}function cf(e){return by(Ul(Jn-1,uf(e===91?e+2:e===40?e+1:e)))}function PI(e){for(;(qt=Bo())&&qt<33;)pr();return lf(e)>2||lf(qt)>3?"":" "}function kI(e,t){for(;--t&&pr()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Ul(e,Wl()+(t<6&&Bo()==32&&pr()==32))}function uf(e){for(;pr();)switch(qt){case e:return Jn;case 34:case 39:e!==34&&e!==39&&uf(qt);break;case 40:e===41&&uf(e);break;case 92:pr();break}return Jn}function II(e,t){for(;pr()&&e+qt!==57;)if(e+qt===84&&Bo()===47)break;return"/*"+Ul(t,Jn-1)+"*"+sf(e===47?e:pr())}function OI(e){for(;!lf(Bo());)pr();return Ul(e,Jn)}function AI(e){return TI(Hl("",null,null,null,[""],e=RI(e),0,[0],e))}function Hl(e,t,n,r,i,a,l,c,d){for(var h=0,y=0,m=l,v=0,S=0,x=0,R=1,O=1,_=1,I=0,E="",P=i,M=a,D=r,$=E;O;)switch(x=I,I=pr()){case 40:if(x!=108&&Qt($,m-1)==58){Fl($+=Ye(cf(I),"&","&\f"),"&\f",vy(h?c[h-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:$+=cf(I);break;case 9:case 10:case 13:case 32:$+=PI(x);break;case 92:$+=kI(Wl()-1,7);continue;case 47:switch(Bo()){case 42:case 47:Is($I(II(pr(),Wl()),t,n,d),d);break;default:$+="/"}break;case 123*R:c[h++]=Ar($)*_;case 125*R:case 59:case 0:switch(I){case 0:case 125:O=0;case 59+y:_==-1&&($=Ye($,/\f/g,"")),S>0&&Ar($)-m&&Is(S>32?_y($+";",r,n,m-1,d):_y(Ye($," ","")+";",r,n,m-2,d),d);break;case 59:$+=";";default:if(Is(D=Cy($,t,n,h,y,i,c,E,P=[],M=[],m,a),a),I===123)if(y===0)Hl($,t,D,D,P,a,m,c,M);else switch(v===99&&Qt($,3)===110?100:v){case 100:case 108:case 109:case 115:Hl(e,D,D,r&&Is(Cy(e,D,D,0,0,i,c,E,i,P=[],m,M),M),i,M,m,c,r?P:M);break;default:Hl($,D,D,D,[""],M,0,c,M)}}h=y=S=0,R=_=1,E=$="",m=l;break;case 58:m=1+Ar($),S=x;default:if(R<1){if(I==123)--R;else if(I==125&&R++==0&&EI()==125)continue}switch($+=sf(I),I*R){case 38:_=y>0?1:($+="\f",-1);break;case 44:c[h++]=(Ar($)-1)*_,_=1;break;case 64:Bo()===45&&($+=cf(pr())),v=Bo(),y=m=Ar(E=$+=OI(Wl())),I++;break;case 45:x===45&&Ar($)==2&&(R=0)}}return a}function Cy(e,t,n,r,i,a,l,c,d,h,y,m){for(var v=i-1,S=i===0?a:[""],x=xy(S),R=0,O=0,_=0;R<r;++R)for(var I=0,E=Si(e,v+1,v=vy(O=l[R])),P=e;I<x;++I)(P=by(O>0?S[I]+" "+E:Ye(E,/&\f/g,S[I])))&&(d[_++]=P);return zl(e,t,n,i===0?jl:c,d,h,y,m)}function $I(e,t,n,r){return zl(e,t,n,my,sf(_I()),Si(e,2,-2),0,r)}function _y(e,t,n,r,i){return zl(e,t,n,of,Si(e,0,r),Si(e,r+1,-1),r,i)}function Ey(e,t,n){switch(SI(e,t)){case 5103:return ft+"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 ft+e+e;case 4789:return ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ft+e+ks+e+Rt+e+e;case 5936:switch(Qt(e,t+11)){case 114:return ft+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ft+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ft+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ft+e+Rt+e+e;case 6165:return ft+e+Rt+"flex-"+e+e;case 5187:return ft+e+Ye(e,/(\w+).+(:[^]+)/,ft+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return ft+e+Rt+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Hr(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return ft+e+Rt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return ft+e+Rt+Ye(e,"shrink","negative")+e;case 5292:return ft+e+Rt+Ye(e,"basis","preferred-size")+e;case 6060:return ft+"box-"+Ye(e,"-grow","")+ft+e+Rt+Ye(e,"grow","positive")+e;case 4554:return ft+Ye(e,/([^-])(transform)/g,"$1"+ft+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,ft+"$1"),/(image-set)/,ft+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,ft+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,ft+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ft+e+e;case 4200:if(!Hr(e,/flex-|baseline/))return Rt+"grid-column-align"+Si(e,t)+e;break;case 2592:case 3360:return Rt+Ye(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Hr(r.props,/grid-\w+-end/)})?~Fl(e+(n=n[t].value),"span",0)?e:Rt+Ye(e,"-start","")+e+Rt+"grid-row-span:"+(~Fl(n,"span",0)?Hr(n,/\d+/):+Hr(n,/\d+/)-+Hr(e,/\d+/))+";":Rt+Ye(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Hr(r.props,/grid-\w+-start/)})?e:Rt+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,ft+"$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(Ar(e)-1-t>6)switch(Qt(e,t+1)){case 109:if(Qt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+ft+"$2-$3$1"+ks+(Qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fl(e,"stretch",0)?Ey(Ye(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,l,c,d,h){return Rt+i+":"+a+h+(l?Rt+i+"-span:"+(c?d:+d-+a)+h:"")+e});case 4949:if(Qt(e,t+6)===121)return Ye(e,":",":"+ft)+e;break;case 6444:switch(Qt(e,Qt(e,14)===45?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ft+(Qt(e,14)===45?"inline-":"")+"box$3$1"+ft+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ye(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function Gl(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function MI(e,t,n,r){switch(e.type){case wI:if(e.children.length)break;case xI:case of:return e.return=e.return||e.value;case my:return"";case yy:return e.return=e.value+"{"+Gl(e.children,r)+"}";case jl:if(!Ar(e.value=e.props.join(",")))return""}return Ar(n=Gl(e.children,r))?e.return=e.value+"{"+n+"}":""}function BI(e){var t=xy(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function DI(e){return function(t){t.root||(t=t.return)&&e(t)}}function LI(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case of:e.return=Ey(e.value,e.length,n);return;case yy:return Gl([ao(e,{value:Ye(e.value,"@","@"+ft)})],r);case jl:if(e.length)return CI(n=e.props,function(i){switch(Hr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(ao(e,{props:[Ye(i,/:(read-\w+)/,":"+ks+"$1")]})),Ei(ao(e,{props:[i]})),af(e,{props:wy(n,r)});break;case"::placeholder":Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,":"+ft+"input-$1")]})),Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,":"+ks+"$1")]})),Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,Rt+"input-$1")]})),Ei(ao(e,{props:[i]})),af(e,{props:wy(n,r)});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},Ri=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ry="active",Ty="data-styled-version",ql="6.1.13",df=`/*!sc*/
|
|
180
|
-
`,Vl=typeof window<"u"&&"HTMLElement"in window,FI=!!(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),Kl=Object.freeze([]),Ti=Object.freeze({});function NI(e,t,n){return n===void 0&&(n=Ti),e.theme!==n.theme&&e.theme||t||n.theme}var Py=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 ky(e){return e.replace(zI,"-").replace(WI,"")}var UI=/(a)(d)/gi,Yl=52,Iy=function(e){return String.fromCharCode(e+(e>25?39:97))};function ff(e){var t,n="";for(t=Math.abs(e);t>Yl;t=t/Yl|0)n=Iy(t%Yl)+n;return(Iy(t%Yl)+n).replace(UI,"$1-$2")}var pf,Oy=5381,Pi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ay=function(e){return Pi(Oy,e)};function $y(e){return ff(Ay(e)>>>0)}function HI(e){return e.displayName||e.name||"Component"}function hf(e){return typeof e=="string"&&!0}var My=typeof Symbol=="function"&&Symbol.for,By=My?Symbol.for("react.memo"):60115,GI=My?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},Dy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},KI=((pf={})[GI]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pf[By]=Dy,pf);function Ly(e){return("type"in(t=e)&&t.type.$$typeof)===By?Dy:"$$typeof"in e?KI[e.$$typeof]:qI;var t}var YI=Object.defineProperty,XI=Object.getOwnPropertyNames,jy=Object.getOwnPropertySymbols,JI=Object.getOwnPropertyDescriptor,ZI=Object.getPrototypeOf,Fy=Object.prototype;function Ny(e,t,n){if(typeof t!="string"){if(Fy){var r=ZI(t);r&&r!==Fy&&Ny(e,r,n)}var i=XI(t);jy&&(i=i.concat(jy(t)));for(var a=Ly(e),l=Ly(t),c=0;c<i.length;++c){var d=i[c];if(!(d in VI||n&&n[d]||l&&d in l||a&&d in a)){var h=JI(t,d);try{YI(e,d,h)}catch{}}}}return e}function ki(e){return typeof e=="function"}function gf(e){return typeof e=="object"&&"styledComponentId"in e}function Do(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function mf(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Os(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yf(e,t,n){if(n===void 0&&(n=!1),!n&&!Os(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yf(e[r],t[r]);else if(Os(t))for(var r in t)e[r]=yf(e[r],t[r]);return e}function vf(e,t){Object.defineProperty(e,"toString",{value:t})}function As(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,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw As(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=i;l<a;l++)this.groupSizes[l]=0}for(var c=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var a=r;a<i;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,l=i;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(df);return n},e}(),Xl=new Map,Jl=new Map,Zl=1,Ql=function(e){if(Xl.has(e))return Xl.get(e);for(;Jl.has(Zl);)Zl++;var t=Zl++;return Xl.set(e,t),Jl.set(t,e),t},eO=function(e,t){Zl=t+1,Xl.set(e,t),Jl.set(t,e)},tO="style[".concat(Ri,"][").concat(Ty,'="').concat(ql,'"]'),nO=new RegExp("^".concat(Ri,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),rO=function(e,t,n){for(var r,i=n.split(","),a=0,l=i.length;a<l;a++)(r=i[a])&&e.registerName(t,r)},oO=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(df),i=[],a=0,l=r.length;a<l;a++){var c=r[a].trim();if(c){var d=c.match(nO);if(d){var h=0|parseInt(d[1],10),y=d[2];h!==0&&(eO(y,h),rO(e,y,d[3]),e.getTag().insertRules(h,i)),i.length=0}else i.push(c)}}},zy=function(e){for(var t=document.querySelectorAll(tO),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Ri)!==Ry&&(oO(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function iO(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Wy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(c){var d=Array.from(c.querySelectorAll("style[".concat(Ri,"]")));return d[d.length-1]}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(Ri,Ry),r.setAttribute(Ty,ql);var l=iO();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},sO=function(){function e(t){this.element=Wy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,a=r.length;i<a;i++){var l=r[i];if(l.ownerNode===n)return l}throw As(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}(),aO=function(){function e(t){this.element=Wy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,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}(),lO=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}(),Uy=Vl,cO={isServer:!Vl,useCSSOMInjection:!FI},Hy=function(){function e(t,n,r){t===void 0&&(t=Ti),n===void 0&&(n={});var i=this;this.options=Rn(Rn({},cO),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Vl&&Uy&&(Uy=!1,zy(this)),vf(this,function(){return function(a){for(var l=a.getTag(),c=l.length,d="",h=function(m){var v=function(_){return Jl.get(_)}(m);if(v===void 0)return"continue";var S=a.names.get(v),x=l.getGroup(m);if(S===void 0||!S.size||x.length===0)return"continue";var R="".concat(Ri,".g").concat(m,'[id="').concat(v,'"]'),O="";S!==void 0&&S.forEach(function(_){_.length>0&&(O+="".concat(_,","))}),d+="".concat(x).concat(R,'{content:"').concat(O,'"}').concat(df)},y=0;y<c;y++)h(y);return d}(i)})}return e.registerId=function(t){return Ql(t)},e.prototype.rehydrate=function(){!this.server&&Vl&&zy(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Rn(Rn({},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 r=n.useCSSOMInjection,i=n.target;return n.isServer?new lO(i):r?new sO(i):new aO(i)}(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(Ql(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ql(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ql(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),uO=/&/g,dO=/^\s*\/\/.*$/gm;function Gy(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(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Gy(n.children,t)),n})}function fO(e){var t,n,r,i=Ti,a=i.options,l=a===void 0?Ti:a,c=i.plugins,d=c===void 0?Kl:c,h=function(v,S,x){return x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):v},y=d.slice();y.push(function(v){v.type===jl&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(uO,n).replace(r,h))}),l.prefix&&y.push(LI),y.push(MI);var m=function(v,S,x,R){S===void 0&&(S=""),x===void 0&&(x=""),R===void 0&&(R="&"),t=R,n=S,r=new RegExp("\\".concat(n,"\\b"),"g");var O=v.replace(dO,""),_=AI(x||S?"".concat(x," ").concat(S," { ").concat(O," }"):O);l.namespace&&(_=Gy(_,l.namespace));var I=[];return Gl(_,BI(y.concat(DI(function(E){return I.push(E)})))),I};return m.hash=d.length?d.reduce(function(v,S){return S.name||As(15),Pi(v,S.name)},Oy).toString():"",m}var pO=new Hy,bf=fO(),qy=Z.createContext({shouldForwardProp:void 0,styleSheet:pO,stylis:bf});qy.Consumer,Z.createContext(void 0);function Vy(){return Z.useContext(qy)}var Ky=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=bf);var l=r.name+a.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,vf(this,function(){throw As(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=bf),this.name+t.hash},e}(),hO=function(e){return e>="A"&&e<="Z"};function Yy(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;hO(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Xy=function(e){return e==null||e===!1||e===""},Jy=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Xy(a)&&(Array.isArray(a)&&a.isCss||ki(a)?r.push("".concat(Yy(i),":"),a,";"):Os(a)?r.push.apply(r,Ps(Ps(["".concat(i," {")],Jy(a),!1),["}"],!1)):r.push("".concat(Yy(i),": ").concat((t=i,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in jI||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Lo(e,t,n,r){if(Xy(e))return[];if(gf(e))return[".".concat(e.styledComponentId)];if(ki(e)){if(!ki(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return Lo(i,t,n,r)}var a;return e instanceof Ky?n?(e.inject(n,r),[e.getName(r)]):[e]:Os(e)?Jy(e):Array.isArray(e)?Array.prototype.concat.apply(Kl,e.map(function(l){return Lo(l,t,n,r)})):[e.toString()]}function gO(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ki(n)&&!gf(n))return!1}return!0}var mO=Ay(ql),yO=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&gO(t),this.componentId=n,this.baseHash=Pi(mO,n),this.baseStyle=r,Hy.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Do(i,this.staticRulesId);else{var a=mf(Lo(this.rules,t,n,r)),l=ff(Pi(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var c=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,c)}i=Do(i,l),this.staticRulesId=l}else{for(var d=Pi(this.baseHash,r.hash),h="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")h+=m;else if(m){var v=mf(Lo(m,t,n,r));d=Pi(d,v+y),h+=v}}if(h){var S=ff(d>>>0);n.hasNameForId(this.componentId,S)||n.insertRules(this.componentId,S,r(h,".".concat(S),void 0,this.componentId)),i=Do(i,S)}}return i},e}(),Zy=Z.createContext(void 0);Zy.Consumer;var xf={};function vO(e,t,n){var r=gf(e),i=e,a=!hf(e),l=t.attrs,c=l===void 0?Kl:l,d=t.componentId,h=d===void 0?function(P,M){var D=typeof P!="string"?"sc":ky(P);xf[D]=(xf[D]||0)+1;var $="".concat(D,"-").concat($y(ql+D+xf[D]));return M?"".concat(M,"-").concat($):$}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(P){return hf(P)?"styled.".concat(P):"Styled(".concat(HI(P),")")}(e):y,v=t.displayName&&t.componentId?"".concat(ky(t.displayName),"-").concat(t.componentId):t.componentId||h,S=r&&i.attrs?i.attrs.concat(c).filter(Boolean):c,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var R=i.shouldForwardProp;if(t.shouldForwardProp){var O=t.shouldForwardProp;x=function(P,M){return R(P,M)&&O(P,M)}}else x=R}var _=new yO(n,v,r?i.componentStyle:void 0);function I(P,M){return function(D,$,z){var V=D.attrs,b=D.componentStyle,H=D.defaultProps,Q=D.foldedComponentIds,ee=D.styledComponentId,X=D.target,te=Z.useContext(Zy),le=Vy(),fe=D.shouldForwardProp||le.shouldForwardProp,pe=NI($,te,H)||Ti,_e=function(Xe,Ge,ht){for(var ae,ue=Rn(Rn({},Ge),{className:void 0,theme:ht}),he=0;he<Xe.length;he+=1){var ge=ki(ae=Xe[he])?ae(ue):ae;for(var de in ge)ue[de]=de==="className"?Do(ue[de],ge[de]):de==="style"?Rn(Rn({},ue[de]),ge[de]):ge[de]}return Ge.className&&(ue.className=Do(ue.className,Ge.className)),ue}(V,$,pe),We=_e.as||X,be={};for(var Be in _e)_e[Be]===void 0||Be[0]==="$"||Be==="as"||Be==="theme"&&_e.theme===pe||(Be==="forwardedAs"?be.as=_e.forwardedAs:fe&&!fe(Be,We)||(be[Be]=_e[Be]));var Ne=function(Xe,Ge){var ht=Vy(),ae=Xe.generateAndInjectStyles(Ge,ht.styleSheet,ht.stylis);return ae}(b,_e),Me=Do(Q,ee);return Ne&&(Me+=" "+Ne),_e.className&&(Me+=" "+_e.className),be[hf(We)&&!Py.has(We)?"class":"className"]=Me,be.ref=z,Z.createElement(We,be)}(E,P,M)}I.displayName=m;var E=Z.forwardRef(I);return E.attrs=S,E.componentStyle=_,E.displayName=m,E.shouldForwardProp=x,E.foldedComponentIds=r?Do(i.foldedComponentIds,i.styledComponentId):"",E.styledComponentId=v,E.target=r?i.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(M){for(var D=[],$=1;$<arguments.length;$++)D[$-1]=arguments[$];for(var z=0,V=D;z<V.length;z++)yf(M,V[z],!0);return M}({},i.defaultProps,P):P}}),vf(E,function(){return".".concat(E.styledComponentId)}),a&&Ny(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Qy(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var e0=function(e){return Object.assign(e,{isCss:!0})};function t0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ki(e)||Os(e))return e0(Lo(Qy(Kl,Ps([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Lo(r):e0(Lo(Qy(r,t)))}function wf(e,t,n){if(n===void 0&&(n=Ti),!t)throw As(1,t);var r=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,t0.apply(void 0,Ps([i],a,!1)))};return r.attrs=function(i){return wf(e,t,Rn(Rn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return wf(e,t,Rn(Rn({},n),i))},r}var n0=function(e){return wf(vO,e)},pt=n0;Py.forEach(function(e){pt[e]=n0(e)});function bO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=mf(t0.apply(void 0,Ps([e],t,!1))),i=$y(r);return new Ky(i,r)}for(var rn=[],Sf=0;Sf<256;++Sf)rn.push((Sf+256).toString(16).slice(1));function xO(e,t=0){return(rn[e[t+0]]+rn[e[t+1]]+rn[e[t+2]]+rn[e[t+3]]+"-"+rn[e[t+4]]+rn[e[t+5]]+"-"+rn[e[t+6]]+rn[e[t+7]]+"-"+rn[e[t+8]]+rn[e[t+9]]+"-"+rn[e[t+10]]+rn[e[t+11]]+rn[e[t+12]]+rn[e[t+13]]+rn[e[t+14]]+rn[e[t+15]]).toLowerCase()}var ec,wO=new Uint8Array(16);function SO(){if(!ec&&(ec=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ec))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ec(wO)}var CO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const r0={randomUUID:CO};function tc(e,t,n){if(r0.randomUUID&&!t&&!e)return r0.randomUUID();e=e||{};var r=e.random||(e.rng||SO)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xO(r)}const o0=Sn(C.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"),i0=Sn(C.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"),_O=pt.div``,EO=pt.div`
|
|
179
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&Wm(e.body,"react-draggable-transparent-selection")}function jT(e){if(e)try{if(e.body&&Um(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 Wm(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function Um(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.canDragX=zT,kr.canDragY=WT,kr.createCoreData=HT,kr.createDraggableData=GT,kr.getBoundPosition=FT,kr.getControlPosition=UT,kr.snapToGrid=NT;var Dn=Ir,mi=Dt;function FT(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:qT(r);const i=Bd(e);if(typeof r=="string"){const{ownerDocument:a}=i,l=a.defaultView;let c;if(r==="parent"?c=i.parentNode:c=a.querySelector(r),!(c instanceof l.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const d=c,h=l.getComputedStyle(i),y=l.getComputedStyle(d);r={left:-i.offsetLeft+(0,Dn.int)(y.paddingLeft)+(0,Dn.int)(h.marginLeft),top:-i.offsetTop+(0,Dn.int)(y.paddingTop)+(0,Dn.int)(h.marginTop),right:(0,mi.innerWidth)(d)-(0,mi.outerWidth)(i)-i.offsetLeft+(0,Dn.int)(y.paddingRight)-(0,Dn.int)(h.marginRight),bottom:(0,mi.innerHeight)(d)-(0,mi.outerHeight)(i)-i.offsetTop+(0,Dn.int)(y.paddingBottom)-(0,Dn.int)(h.marginBottom)}}return(0,Dn.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Dn.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Dn.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Dn.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function NT(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function zT(e){return e.props.axis==="both"||e.props.axis==="x"}function WT(e){return e.props.axis==="both"||e.props.axis==="y"}function UT(e,t,n){const r=typeof t=="number"?(0,mi.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=Bd(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,mi.offsetXYFromParent)(r||e,a,n.props.scale)}function HT(e,t,n){const r=!(0,Dn.isNum)(e.lastX),i=Bd(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function GT(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 qT(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Bd(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var El={},Rl={};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=VT;function VT(){}Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var Dd=YT(X),_n=jd(no),KT=jd(wo),dn=Dt,io=kr,Ld=Ir,_s=jd(Rl);function jd(e){return e&&e.__esModule?e:{default:e}}function Hm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Hm=function(r){return r?n:t})(e)}function YT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Hm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function mn(e,t,n){return t=XT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XT(e){var t=JT(e,"string");return typeof t=="symbol"?t:String(t)}function JT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const fr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let so=fr.mouse,Pl=class extends Dd.Component{constructor(){super(...arguments),mn(this,"dragging",!1),mn(this,"lastX",NaN),mn(this,"lastY",NaN),mn(this,"touchIdentifier",null),mn(this,"mounted",!1),mn(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:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,dn.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,dn.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,dn.getTouchIdentifier)(t);this.touchIdentifier=i;const a=(0,io.getControlPosition)(t,i,this);if(a==null)return;const{x:l,y:c}=a,d=(0,io.createCoreData)(this,l,c);(0,_s.default)("DraggableCore: handleDragStart: %j",d),(0,_s.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,dn.addUserSelectStyles)(r),this.dragging=!0,this.lastX=l,this.lastY=c,(0,dn.addEvent)(r,so.move,this.handleDrag),(0,dn.addEvent)(r,so.stop,this.handleDragStop))}),mn(this,"handleDrag",t=>{const n=(0,io.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let c=r-this.lastX,d=i-this.lastY;if([c,d]=(0,io.snapToGrid)(this.props.grid,c,d),!c&&!d)return;r=this.lastX+c,i=this.lastY+d}const a=(0,io.createCoreData)(this,r,i);if((0,_s.default)("DraggableCore: handleDrag: %j",a),this.props.onDrag(t,a)===!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=r,this.lastY=i}),mn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,io.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let d=r-this.lastX||0,h=i-this.lastY||0;[d,h]=(0,io.snapToGrid)(this.props.grid,d,h),r=this.lastX+d,i=this.lastY+h}const a=(0,io.createCoreData)(this,r,i);if(this.props.onStop(t,a)===!1||this.mounted===!1)return!1;const c=this.findDOMNode();c&&this.props.enableUserSelectHack&&(0,dn.removeUserSelectStyles)(c.ownerDocument),(0,_s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,c&&((0,_s.default)("DraggableCore: Removing handlers"),(0,dn.removeEvent)(c.ownerDocument,so.move,this.handleDrag),(0,dn.removeEvent)(c.ownerDocument,so.stop,this.handleDragStop))}),mn(this,"onMouseDown",t=>(so=fr.mouse,this.handleDragStart(t))),mn(this,"onMouseUp",t=>(so=fr.mouse,this.handleDragStop(t))),mn(this,"onTouchStart",t=>(so=fr.touch,this.handleDragStart(t))),mn(this,"onTouchEnd",t=>(so=fr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,dn.addEvent)(t,fr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,dn.removeEvent)(n,fr.mouse.move,this.handleDrag),(0,dn.removeEvent)(n,fr.touch.move,this.handleDrag),(0,dn.removeEvent)(n,fr.mouse.stop,this.handleDragStop),(0,dn.removeEvent)(n,fr.touch.stop,this.handleDragStop),(0,dn.removeEvent)(t,fr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,dn.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:KT.default.findDOMNode(this)}render(){return Dd.cloneElement(Dd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};El.default=Pl,mn(Pl,"displayName","DraggableCore"),mn(Pl,"propTypes",{allowAnyClick:_n.default.bool,children:_n.default.node.isRequired,disabled:_n.default.bool,enableUserSelectHack:_n.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:_n.default.arrayOf(_n.default.number),handle:_n.default.string,cancel:_n.default.string,nodeRef:_n.default.object,onStart:_n.default.func,onDrag:_n.default.func,onStop:_n.default.func,onMouseDown:_n.default.func,scale:_n.default.number,className:Ld.dontSetMe,style:Ld.dontSetMe,transform:Ld.dontSetMe}),mn(Pl,"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=v(X),n=y(no),r=y(wo),i=y(mT),a=Dt,l=kr,c=Ir,d=y(El),h=y(Rl);function y(O){return O&&O.__esModule?O:{default:O}}function m(O){if(typeof WeakMap!="function")return null;var C=new WeakMap,P=new WeakMap;return(m=function(M){return M?P:C})(O)}function v(O,C){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var P=m(C);if(P&&P.has(O))return P.get(O);var M={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in O)if($!=="default"&&Object.prototype.hasOwnProperty.call(O,$)){var z=D?Object.getOwnPropertyDescriptor(O,$):null;z&&(z.get||z.set)?Object.defineProperty(M,$,z):M[$]=O[$]}return M.default=O,P&&P.set(O,M),M}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var C=1;C<arguments.length;C++){var P=arguments[C];for(var M in P)Object.prototype.hasOwnProperty.call(P,M)&&(O[M]=P[M])}return O},w.apply(this,arguments)}function b(O,C,P){return C=E(C),C in O?Object.defineProperty(O,C,{value:P,enumerable:!0,configurable:!0,writable:!0}):O[C]=P,O}function E(O){var C=k(O,"string");return typeof C=="symbol"?C:String(C)}function k(O,C){if(typeof O!="object"||O===null)return O;var P=O[Symbol.toPrimitive];if(P!==void 0){var M=P.call(O,C||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}class _ extends t.Component{static getDerivedStateFromProps(C,P){let{position:M}=C,{prevPropsPosition:D}=P;return M&&(!D||M.x!==D.x||M.y!==D.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:M,prevPropsPosition:D}),{x:M.x,y:M.y,prevPropsPosition:{...M}}):null}constructor(C){super(C),b(this,"onDragStart",(P,M)=>{if((0,h.default)("Draggable: onDragStart: %j",M),this.props.onStart(P,(0,l.createDraggableData)(this,M))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),b(this,"onDrag",(P,M)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",M);const D=(0,l.createDraggableData)(this,M),$={x:D.x,y:D.y,slackX:0,slackY:0};if(this.props.bounds){const{x:V,y:R}=$;$.x+=this.state.slackX,$.y+=this.state.slackY;const[G,te]=(0,l.getBoundPosition)(this,$.x,$.y);$.x=G,$.y=te,$.slackX=this.state.slackX+(V-$.x),$.slackY=this.state.slackY+(R-$.y),D.x=$.x,D.y=$.y,D.deltaX=$.x-this.state.x,D.deltaY=$.y-this.state.y}if(this.props.onDrag(P,D)===!1)return!1;this.setState($)}),b(this,"onDragStop",(P,M)=>{if(!this.state.dragging||this.props.onStop(P,(0,l.createDraggableData)(this,M))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",M);const $={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:V,y:R}=this.props.position;$.x=V,$.y=R}this.setState($)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.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 C,P;return(C=(P=this.props)===null||P===void 0||(P=P.nodeRef)===null||P===void 0?void 0:P.current)!==null&&C!==void 0?C:r.default.findDOMNode(this)}render(){const{axis:C,bounds:P,children:M,defaultPosition:D,defaultClassName:$,defaultClassNameDragging:z,defaultClassNameDragged:V,position:R,positionOffset:G,scale:te,...H}=this.props;let Y={},ee=null;const fe=!!!R||this.state.dragging,pe=R||D,_e={x:(0,l.canDragX)(this)&&fe?this.state.x:pe.x,y:(0,l.canDragY)(this)&&fe?this.state.y:pe.y};this.state.isElementSVG?ee=(0,a.createSVGTransform)(_e,G):Y=(0,a.createCSSTransform)(_e,G);const We=(0,i.default)(M.props.className||"",$,{[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(M),{className:We,style:{...M.props.style,...Y},transform:ee}))}}e.default=_,b(_,"displayName","Draggable"),b(_,"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:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),b(_,"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})}(Mm);const{default:Gm,DraggableCore:ZT}=Mm;Cl.exports=Gm,Cl.exports.default=Gm,Cl.exports.DraggableCore=ZT;var qm=Cl.exports,Tl={exports:{}},Es={},Fd={};Fd.__esModule=!0,Fd.cloneElement=oI;var QT=eI(X);function eI(e){return e&&e.__esModule?e:{default:e}}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Km(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){tI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tI(e,t,n){return t=nI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nI(e){var t=rI(e,"string");return typeof t=="symbol"?t:String(t)}function rI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oI(e,t){return t.style&&e.props.style&&(t.style=Km(Km({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),QT.default.cloneElement(e,t)}var Rs={};Rs.__esModule=!0,Rs.resizableProps=void 0;var He=iI(no);function iI(e){return e&&e.__esModule?e:{default:e}}var sI={axis:He.default.oneOf(["both","x","y","none"]),className:He.default.string,children:He.default.element.isRequired,draggableOpts:He.default.shape({allowAnyClick:He.default.bool,cancel:He.default.string,children:He.default.node,disabled:He.default.bool,enableUserSelectHack:He.default.bool,offsetParent:He.default.node,grid:He.default.arrayOf(He.default.number),handle:He.default.string,nodeRef:He.default.object,onStart:He.default.func,onDrag:He.default.func,onStop:He.default.func,onMouseDown:He.default.func,scale:He.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="y"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)},handle:He.default.oneOfType([He.default.node,He.default.func]),handleSize:He.default.arrayOf(He.default.number),lockAspectRatio:He.default.bool,maxConstraints:He.default.arrayOf(He.default.number),minConstraints:He.default.arrayOf(He.default.number),onResizeStop:He.default.func,onResizeStart:He.default.func,onResize:He.default.func,resizeHandles:He.default.arrayOf(He.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:He.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="x"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)}};Rs.resizableProps=sI,Es.__esModule=!0,Es.default=void 0;var Ps=dI(X),aI=qm,lI=Fd,cI=Rs,uI=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function Ym(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ym=function(i){return i?n:t})(e)}function dI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ym(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}function fI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(n),!0).forEach(function(r){pI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pI(e,t,n){return t=hI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(e){var t=gI(e,"string");return typeof t=="symbol"?t:String(t)}function gI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wd(e,t)}function Wd(e,t){return Wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wd(e,t)}var Ud=function(e){mI(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,a){var l=this.props,c=l.minConstraints,d=l.maxConstraints,h=l.lockAspectRatio;if(!c&&!d&&!h)return[i,a];if(h){var y=this.props.width/this.props.height,m=i-this.props.width,v=a-this.props.height;Math.abs(m)>Math.abs(v*y)?a=i/y:i=a*y}var w=i,b=a,E=this.slack||[0,0],k=E[0],_=E[1];return i+=k,a+=_,c&&(i=Math.max(c[0],i),a=Math.max(c[1],a)),d&&(i=Math.min(d[0],i),a=Math.min(d[1],a)),this.slack=[k+(w-i),_+(b-a)],[i,a]},n.resizeHandler=function(i,a){var l=this;return function(c,d){var h=d.node,y=d.deltaX,m=d.deltaY;i==="onResizeStart"&&l.resetData();var v=(l.props.axis==="both"||l.props.axis==="x")&&a!=="n"&&a!=="s",w=(l.props.axis==="both"||l.props.axis==="y")&&a!=="e"&&a!=="w";if(!(!v&&!w)){var b=a[0],E=a[a.length-1],k=h.getBoundingClientRect();if(l.lastHandleRect!=null){if(E==="w"){var _=k.left-l.lastHandleRect.left;y+=_}if(b==="n"){var O=k.top-l.lastHandleRect.top;m+=O}}l.lastHandleRect=k,E==="w"&&(y=-y),b==="n"&&(m=-m);var C=l.props.width+(v?y/l.props.transformScale:0),P=l.props.height+(w?m/l.props.transformScale:0),M=l.runConstraints(C,P);C=M[0],P=M[1];var D=C!==l.props.width||P!==l.props.height,$=typeof l.props[i]=="function"?l.props[i]:null,z=i==="onResize"&&!D;$&&!z&&(c.persist==null||c.persist(),$(c,{node:h,size:{width:C,height:P},handle:a})),i==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(i,a){var l=this.props.handle;if(!l)return Ps.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:a});if(typeof l=="function")return l(i,a);var c=typeof l.type=="string",d=zd({ref:a},c?{}:{handleAxis:i});return Ps.cloneElement(l,d)},n.render=function(){var i=this,a=this.props,l=a.children,c=a.className,d=a.draggableOpts;a.width,a.height,a.handle,a.handleSize,a.lockAspectRatio,a.axis,a.minConstraints,a.maxConstraints,a.onResize,a.onResizeStop,a.onResizeStart;var h=a.resizeHandles;a.transformScale;var y=fI(a,uI);return(0,lI.cloneElement)(l,zd(zd({},y),{},{className:(c?c+" ":"")+"react-resizable",children:[].concat(l.props.children,h.map(function(m){var v,w=(v=i.handleRefs[m])!=null?v:i.handleRefs[m]=Ps.createRef();return Ps.createElement(aI.DraggableCore,Nd({},d,{nodeRef:w,key:"resizableHandle-"+m,onStop:i.resizeHandler("onResizeStop",m),onStart:i.resizeHandler("onResizeStart",m),onDrag:i.resizeHandler("onResize",m)}),i.renderResizeHandle(m,w))}))}))},t}(Ps.Component);Es.default=Ud,Ud.propTypes=cI.resizableProps,Ud.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Il={};Il.__esModule=!0,Il.default=void 0;var Hd=wI(X),yI=Jm(no),vI=Jm(Es),bI=Rs,xI=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function Jm(e){return e&&e.__esModule?e:{default:e}}function Zm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Zm=function(i){return i?n:t})(e)}function wI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Zm(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gd.apply(this,arguments)}function Qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(r){SI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SI(e,t,n){return t=CI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CI(e){var t=_I(e,"string");return typeof t=="symbol"?t:String(t)}function _I(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RI(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(r,i){return r.__proto__=i,r},qd(e,t)}var ey=function(e){RI(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(c,d){var h=d.size;r.props.onResize?(c.persist==null||c.persist(),r.setState(h,function(){return r.props.onResize&&r.props.onResize(c,d)})):r.setState(h)},r}t.getDerivedStateFromProps=function(i,a){return a.propsWidth!==i.width||a.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,a=i.handle,l=i.handleSize;i.onResize;var c=i.onResizeStart,d=i.onResizeStop,h=i.draggableOpts,y=i.minConstraints,m=i.maxConstraints,v=i.lockAspectRatio,w=i.axis;i.width,i.height;var b=i.resizeHandles,E=i.style,k=i.transformScale,_=EI(i,xI);return Hd.createElement(vI.default,{axis:w,draggableOpts:h,handle:a,handleSize:l,height:this.state.height,lockAspectRatio:v,maxConstraints:m,minConstraints:y,onResizeStart:c,onResize:this.onResize,onResizeStop:d,resizeHandles:b,transformScale:k,width:this.state.width},Hd.createElement("div",Gd({},_,{style:kl(kl({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Hd.Component);Il.default=ey,ey.propTypes=kl(kl({},bI.resizableProps),{},{children:yI.default.element}),Tl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Tl.exports.Resizable=Es.default,Tl.exports.ResizableBox=Il.default;var PI=Tl.exports,Ur={};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.resizeHandleType=Ur.resizeHandleAxesType=Ur.default=void 0;var Ke=ty(no),TI=ty(X);function ty(e){return e&&e.__esModule?e:{default:e}}const II=Ur.resizeHandleAxesType=Ke.default.arrayOf(Ke.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),kI=Ur.resizeHandleType=Ke.default.oneOfType([Ke.default.node,Ke.default.func]);Ur.default={className:Ke.default.string,style:Ke.default.object,width:Ke.default.number,autoSize:Ke.default.bool,cols:Ke.default.number,draggableCancel:Ke.default.string,draggableHandle:Ke.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ke.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ke.default.arrayOf(Ke.default.number),containerPadding:Ke.default.arrayOf(Ke.default.number),rowHeight:Ke.default.number,maxRows:Ke.default.number,isBounded:Ke.default.bool,isDraggable:Ke.default.bool,isResizable:Ke.default.bool,allowOverlap:Ke.default.bool,preventCollision:Ke.default.bool,useCSSTransforms:Ke.default.bool,transformScale:Ke.default.number,isDroppable:Ke.default.bool,resizeHandles:II,resizeHandle:kI,onLayoutChange:Ke.default.func,onDragStart:Ke.default.func,onDrag:Ke.default.func,onDragStop:Ke.default.func,onResizeStart:Ke.default.func,onResize:Ke.default.func,onResizeStop:Ke.default.func,onDrop:Ke.default.func,droppingItem:Ke.default.shape({i:Ke.default.string.isRequired,w:Ke.default.number.isRequired,h:Ke.default.number.isRequired}),children:function(e,t){const n=e[t],r={};TI.default.Children.forEach(n,function(i){if((i==null?void 0:i.key)!=null){if(r[i.key])throw new Error('Duplicate child key "'+i.key+'" found! This will cause problems in ReactGridLayout.');r[i.key]=!0}})},innerRef:Ke.default.any},Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;var yi=Vd(X),ut=Vd(no),OI=qm,AI=PI,vi=Qe,nn=Tr,ny=Ur,$I=Vd(xd);function Vd(e){return e&&e.__esModule?e:{default:e}}function Or(e,t,n){return t=MI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MI(e){var t=BI(e,"string");return typeof t=="symbol"?t:String(t)}function BI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Kd extends yi.default.Component{constructor(){super(...arguments),Or(this,"state",{resizing:null,dragging:null,className:""}),Or(this,"elementRef",yi.default.createRef()),Or(this,"onDragStart",(t,n)=>{let{node:r}=n;const{onDragStart:i,transformScale:a}=this.props;if(!i)return;const l={top:0,left:0},{offsetParent:c}=r;if(!c)return;const d=c.getBoundingClientRect(),h=r.getBoundingClientRect(),y=h.left/a,m=d.left/a,v=h.top/a,w=d.top/a;l.left=y-m+c.scrollLeft,l.top=v-w+c.scrollTop,this.setState({dragging:l});const{x:b,y:E}=(0,nn.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return i.call(this,this.props.i,b,E,{e:t,node:r,newPosition:l})}),Or(this,"onDrag",(t,n)=>{let{node:r,deltaX:i,deltaY:a}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let c=this.state.dragging.top+a,d=this.state.dragging.left+i;const{isBounded:h,i:y,w:m,h:v,containerWidth:w}=this.props,b=this.getPositionParams();if(h){const{offsetParent:O}=r;if(O){const{margin:C,rowHeight:P,containerPadding:M}=this.props,D=O.clientHeight-(0,nn.calcGridItemWHPx)(v,P,C[1]);c=(0,nn.clamp)(c-M[1],0,D);const $=(0,nn.calcGridColWidth)(b),z=w-(0,nn.calcGridItemWHPx)(m,$,C[0]);d=(0,nn.clamp)(d-M[0],0,z)}}const E={top:c,left:d};this.setState({dragging:E});const{x:k,y:_}=(0,nn.calcXY)(b,c,d,m,v);return l.call(this,y,k,_,{e:t,node:r,newPosition:E})}),Or(this,"onDragStop",(t,n)=>{let{node:r}=n;const{onDragStop:i}=this.props;if(!i)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:l,i:c}=this.props,{left:d,top:h}=this.state.dragging,y={top:h,left:d};this.setState({dragging:null});const{x:m,y:v}=(0,nn.calcXY)(this.getPositionParams(),h,d,a,l);return i.call(this,c,m,v,{e:t,node:r,newPosition:y})}),Or(this,"onResizeStop",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStop")),Or(this,"onResizeStart",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStart")),Or(this,"onResize",(t,n,r)=>this.onResizeHandler(t,n,r,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const r=(0,nn.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),i=(0,nn.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,vi.fastPositionEqual)(r,i)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const r=this.elementRef.current;if(!r)return;const i=t.droppingPosition||{left:0,top:0},{dragging:a}=this.state,l=a&&n.left!==i.left||n.top!==i.top;if(!a)this.onDragStart(n.e,{node:r,deltaX:n.left,deltaY:n.top});else if(l){const c=n.left-a.left,d=n.top-a.top;this.onDrag(n.e,{node:r,deltaX:c,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:r,useCSSTransforms:i}=this.props;let a;return i?a=(0,vi.setTransform)(t):(a=(0,vi.setTopLeft)(t),n&&(a.left=(0,vi.perc)(t.left/r),a.width=(0,vi.perc)(t.width/r))),a}mixinDraggable(t,n){return yi.default.createElement(OI.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(r,i)=>n(r,i,t)}mixinResizable(t,n,r){const{cols:i,minW:a,minH:l,maxW:c,maxH:d,transformScale:h,resizeHandles:y,resizeHandle:m}=this.props,v=this.getPositionParams(),w=(0,nn.calcGridItemPosition)(v,0,0,i,0).width,b=(0,nn.calcGridItemPosition)(v,0,0,a,l),E=(0,nn.calcGridItemPosition)(v,0,0,c,d),k=[b.width,b.height],_=[Math.min(E.width,w),Math.min(E.height,1/0)];return yi.default.createElement(AI.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:k,maxConstraints:_,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,r,i){let{node:a,size:l,handle:c}=n;const d=this.props[i];if(!d)return;const{x:h,y,i:m,maxH:v,minH:w,containerWidth:b}=this.props,{minW:E,maxW:k}=this.props;let _=l;a&&(_=(0,vi.resizeItemInDirection)(c,r,l,b),this.setState({resizing:i==="onResizeStop"?null:_}));let{w:O,h:C}=(0,nn.calcWH)(this.getPositionParams(),_.width,_.height,h,y,c);O=(0,nn.clamp)(O,Math.max(E,1),k),C=(0,nn.clamp)(C,w,v),d.call(this,m,O,C,{e:t,node:a,size:_,handle:c})}render(){const{x:t,y:n,w:r,h:i,isDraggable:a,isResizable:l,droppingPosition:c,useCSSTransforms:d}=this.props,h=(0,nn.calcGridItemPosition)(this.getPositionParams(),t,n,r,i,this.state),y=yi.default.Children.only(this.props.children);let m=yi.default.cloneElement(y,{ref:this.elementRef,className:(0,$I.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!c,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(h)}});return m=this.mixinResizable(m,h,l),m=this.mixinDraggable(m,a),m}}Sl.default=Kd,Or(Kd,"propTypes",{children:ut.default.element,cols:ut.default.number.isRequired,containerWidth:ut.default.number.isRequired,rowHeight:ut.default.number.isRequired,margin:ut.default.array.isRequired,maxRows:ut.default.number.isRequired,containerPadding:ut.default.array.isRequired,x:ut.default.number.isRequired,y:ut.default.number.isRequired,w:ut.default.number.isRequired,h:ut.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:ut.default.string.isRequired,resizeHandles:ny.resizeHandleAxesType,resizeHandle:ny.resizeHandleType,onDragStop:ut.default.func,onDragStart:ut.default.func,onDrag:ut.default.func,onResizeStop:ut.default.func,onResizeStart:ut.default.func,onResize:ut.default.func,isDraggable:ut.default.bool.isRequired,isResizable:ut.default.bool.isRequired,isBounded:ut.default.bool.isRequired,static:ut.default.bool,useCSSTransforms:ut.default.bool.isRequired,transformScale:ut.default.number,className:ut.default.string,handle:ut.default.string,cancel:ut.default.string,droppingPosition:ut.default.shape({e:ut.default.object.isRequired,left:ut.default.number.isRequired,top:ut.default.number.isRequired})}),Or(Kd,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var Ao=FI(X),Yd=bd,DI=Xd(xd),je=Qe,LI=Tr,ry=Xd(Sl),jI=Xd(Ur);function Xd(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(r){return r?n:t})(e)}function FI(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 r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function fn(e,t,n){return t=NI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NI(e){var t=zI(e,"string");return typeof t=="symbol"?t:String(t)}function zI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const iy="react-grid-layout";let sy=!1;try{sy=/firefox/i.test(navigator.userAgent)}catch{}class Ol extends Ao.Component{constructor(){super(...arguments),fn(this,"state",{activeDrag:null,layout:(0,je.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,je.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),fn(this,"dragEnterCounter",0),fn(this,"onDragStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,je.getLayoutItem)(c,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,je.cloneLayoutItem)(d),oldLayout:c,activeDrag:h}),this.props.onDragStart(c,d,d,null,a,l)}),fn(this,"onDrag",(t,n,r,i)=>{let{e:a,node:l}=i;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:h,allowOverlap:y,preventCollision:m}=this.props,v=(0,je.getLayoutItem)(d,t);if(!v)return;const w={w:v.w,h:v.h,x:v.x,y:v.y,placeholder:!0,i:t};d=(0,je.moveElement)(d,v,n,r,!0,m,(0,je.compactType)(this.props),h,y),this.props.onDrag(d,c,v,w,a,l),this.setState({layout:y?d:(0,je.compact)(d,(0,je.compactType)(this.props),h),activeDrag:w})}),fn(this,"onDragStop",(t,n,r,i)=>{let{e:a,node:l}=i;if(!this.state.activeDrag)return;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:h,preventCollision:y,allowOverlap:m}=this.props,v=(0,je.getLayoutItem)(d,t);if(!v)return;d=(0,je.moveElement)(d,v,n,r,!0,y,(0,je.compactType)(this.props),h,m);const b=m?d:(0,je.compact)(d,(0,je.compactType)(this.props),h);this.props.onDragStop(b,c,v,null,a,l);const{oldLayout:E}=this.state;this.setState({activeDrag:null,layout:b,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(b,E)}),fn(this,"onResizeStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,je.getLayoutItem)(c,t);d&&(this.setState({oldResizeItem:(0,je.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(c,d,d,null,a,l))}),fn(this,"onResize",(t,n,r,i)=>{let{e:a,node:l,size:c,handle:d}=i;const{oldResizeItem:h}=this.state,{layout:y}=this.state,{cols:m,preventCollision:v,allowOverlap:w}=this.props;let b=!1,E,k,_;const[O,C]=(0,je.withLayoutItem)(y,t,M=>{let D;return k=M.x,_=M.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(k=M.x+(M.w-n),n=M.x!==k&&k<0?M.w:n,k=k<0?0:k),["ne","n","nw"].indexOf(d)!==-1&&(_=M.y+(M.h-r),r=M.y!==_&&_<0?M.h:r,_=_<0?0:_),b=!0),v&&!w&&(D=(0,je.getAllCollisions)(y,{...M,w:n,h:r,x:k,y:_}).filter(z=>z.i!==M.i).length>0,D&&(_=M.y,r=M.h,k=M.x,n=M.w,b=!1)),M.w=n,M.h=r,M});if(!C)return;E=O,b&&(E=(0,je.moveElement)(O,C,k,_,!0,this.props.preventCollision,(0,je.compactType)(this.props),m,w));const P={w:C.w,h:C.h,x:C.x,y:C.y,static:!0,i:t};this.props.onResize(E,h,C,P,a,l),this.setState({layout:w?E:(0,je.compact)(E,(0,je.compactType)(this.props),m),activeDrag:P})}),fn(this,"onResizeStop",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c,oldResizeItem:d}=this.state,{cols:h,allowOverlap:y}=this.props,m=(0,je.getLayoutItem)(c,t),v=y?c:(0,je.compact)(c,(0,je.compactType)(this.props),h);this.props.onResizeStop(v,d,m,null,a,l);const{oldLayout:w}=this.state;this.setState({activeDrag:null,layout:v,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(v,w)}),fn(this,"onDragOver",t=>{var O;if(t.preventDefault(),t.stopPropagation(),sy&&!((O=t.nativeEvent.target)!=null&&O.classList.contains(iy)))return!1;const{droppingItem:n,onDropDragOver:r,margin:i,cols:a,rowHeight:l,maxRows:c,width:d,containerPadding:h,transformScale:y}=this.props,m=r==null?void 0:r(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const v={...n,...m},{layout:w}=this.state,b=t.currentTarget.getBoundingClientRect(),E=t.clientX-b.left,k=t.clientY-b.top,_={left:E/y,top:k/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:C,top:P}=this.state.droppingPosition;(C!=E||P!=k)&&this.setState({droppingPosition:_})}}else{const C={cols:a,margin:i,maxRows:c,rowHeight:l,containerWidth:d,containerPadding:h||i},P=(0,LI.calcXY)(C,k,E,v.w,v.h);this.setState({droppingDOMNode:Ao.createElement("div",{key:v.i}),droppingPosition:_,layout:[...w,{...v,x:P.x,y:P.y,static:!1,isDraggable:!0}]})}}),fn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:r}=this.state,i=(0,je.compact)(r.filter(a=>a.i!==t.i),(0,je.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),fn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),fn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),fn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:r}=this.state,i=r.find(a=>a.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(r,i,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let r;return n.activeDrag?null:(!(0,Yd.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?r=t.layout:(0,je.childrenEqual)(t.children,n.children)||(r=n.layout),r?{layout:(0,je.synchronizeLayoutWithChildren)(r,t.children,t.cols,(0,je.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,je.fastRGLPropsEqual)(this.props,t,Yd.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const r=this.state.layout,i=n.layout;this.onLayoutMaybeChanged(r,i)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,je.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,Yd.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:r,margin:i,containerPadding:a,rowHeight:l,maxRows:c,useCSSTransforms:d,transformScale:h}=this.props;return Ao.createElement(ry.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:r,margin:i,containerPadding:a||i,maxRows:c,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:h},Ao.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const r=(0,je.getLayoutItem)(this.state.layout,String(t.key));if(!r)return null;const{width:i,cols:a,margin:l,containerPadding:c,rowHeight:d,maxRows:h,isDraggable:y,isResizable:m,isBounded:v,useCSSTransforms:w,transformScale:b,draggableCancel:E,draggableHandle:k,resizeHandles:_,resizeHandle:O}=this.props,{mounted:C,droppingPosition:P}=this.state,M=typeof r.isDraggable=="boolean"?r.isDraggable:!r.static&&y,D=typeof r.isResizable=="boolean"?r.isResizable:!r.static&&m,$=r.resizeHandles||_,z=M&&v&&r.isBounded!==!1;return Ao.createElement(ry.default,{containerWidth:i,cols:a,margin:l,containerPadding:c||l,maxRows:h,rowHeight:d,cancel:E,handle:k,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:M,isResizable:D,isBounded:z,useCSSTransforms:w&&C,usePercentages:!C,transformScale:b,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:n?P:void 0,resizeHandles:$,resizeHandle:O},t)}render(){const{className:t,style:n,isDroppable:r,innerRef:i}=this.props,a=(0,DI.default)(iy,t),l={height:this.containerHeight(),...n};return Ao.createElement("div",{ref:i,className:a,style:l,onDrop:r?this.onDrop:je.noop,onDragLeave:r?this.onDragLeave:je.noop,onDragEnter:r?this.onDragEnter:je.noop,onDragOver:r?this.onDragOver:je.noop},Ao.Children.map(this.props.children,c=>this.processGridItem(c)),r&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}ws.default=Ol,fn(Ol,"displayName","ReactGridLayout"),fn(Ol,"propTypes",jI.default),fn(Ol,"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:je.noop,onDragStart:je.noop,onDrag:je.noop,onDragStop:je.noop,onResizeStart:je.noop,onResize:je.noop,onResizeStop:je.noop,onDrop:je.noop,onDropDragOver:je.noop});var Al={},$o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.findOrGenerateResponsiveLayout=HI,$o.getBreakpointFromWidth=WI,$o.getColsFromBreakpoint=UI,$o.sortBreakpoints=Jd;var $l=Qe;function WI(e,t){const n=Jd(e);let r=n[0];for(let i=1,a=n.length;i<a;i++){const l=n[i];t>e[l]&&(r=l)}return r}function UI(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function HI(e,t,n,r,i,a){if(e[n])return(0,$l.cloneLayout)(e[n]);let l=e[r];const c=Jd(t),d=c.slice(c.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,$l.cloneLayout)(l||[]),(0,$l.compact)((0,$l.correctBounds)(l,{cols:i}),a,i)}function Jd(e){return Object.keys(e).sort(function(n,r){return e[n]-e[r]})}Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=void 0;var ay=qI(X),En=ly(no),Zd=bd,bi=Qe,Mo=$o,GI=ly(ws);function ly(e){return e&&e.__esModule?e:{default:e}}function cy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cy=function(r){return r?n:t})(e)}function qI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qd.apply(this,arguments)}function Ml(e,t,n){return t=VI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VI(e){var t=KI(e,"string");return typeof t=="symbol"?t:String(t)}function KI(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const uy=e=>Object.prototype.toString.call(e);function Bl(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class ef extends ay.Component{constructor(){super(...arguments),Ml(this,"state",this.generateInitialState()),Ml(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:r,cols:i}=this.props,a=(0,Mo.getBreakpointFromWidth)(n,t),l=(0,Mo.getColsFromBreakpoint)(a,i),c=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(r,n,a,a,l,c),breakpoint:a,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,Zd.deepEqual)(t.layouts,n.layouts)){const{breakpoint:r,cols:i}=n;return{layout:(0,Mo.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,i,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,Zd.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,Zd.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:r,layouts:i,compactType:a}=this.props,l=this.props.breakpoint||(0,Mo.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),c=this.state.breakpoint,d=(0,Mo.getColsFromBreakpoint)(l,r),h={...i};if(c!==l||t.breakpoints!==n||t.cols!==r){c in h||(h[c]=(0,bi.cloneLayout)(this.state.layout));let v=(0,Mo.findOrGenerateResponsiveLayout)(h,n,l,c,d,a);v=(0,bi.synchronizeLayoutWithChildren)(v,this.props.children,d,a,this.props.allowOverlap),h[l]=v,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(v,h),this.setState({breakpoint:l,layout:v,cols:d})}const y=Bl(this.props.margin,l),m=Bl(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:r,layouts:i,margin:a,containerPadding:l,onBreakpointChange:c,onLayoutChange:d,onWidthChange:h,...y}=this.props;return ay.createElement(GI.default,Qd({},y,{margin:Bl(a,this.state.breakpoint),containerPadding:Bl(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}Al.default=ef,Ml(ef,"propTypes",{breakpoint:En.default.string,breakpoints:En.default.object,allowOverlap:En.default.bool,cols:En.default.object,margin:En.default.oneOfType([En.default.array,En.default.object]),containerPadding:En.default.oneOfType([En.default.array,En.default.object]),layouts(e,t){if(uy(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+uy(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,bi.validateLayout)(e.layouts[n],"layouts."+n)})},width:En.default.number.isRequired,onBreakpointChange:En.default.func,onLayoutChange:En.default.func,onWidthChange:En.default.func}),Ml(ef,"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:bi.noop,onLayoutChange:bi.noop,onWidthChange:bi.noop});var tf={},dy=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}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 r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},t}()}(),nf=typeof window<"u"&&typeof document<"u"&&window.document===document,Dl=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")()}(),YI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Dl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),XI=2;function JI(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function l(){YI(a)}function c(){var d=Date.now();if(n){if(d-i<XI)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=d}return c}var ZI=20,QI=["top","right","bottom","left","width","height","size","weight"],ek=typeof MutationObserver<"u",tk=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JI(this.refresh.bind(this),ZI)}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_,r=n.indexOf(t);~r&&n.splice(r,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(){!nf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ek?(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(){!nf||!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,r=n===void 0?"":n,i=QI.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),fy=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},xi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Dl},py=jl(0,0,0,0);function Ll(e){return parseFloat(e)||0}function hy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Ll(a)},0)}function nk(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],l=e["padding-"+a];n[a]=Ll(l)}return n}function rk(e){var t=e.getBBox();return jl(0,0,t.width,t.height)}function ok(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return py;var r=xi(e).getComputedStyle(e),i=nk(r),a=i.left+i.right,l=i.top+i.bottom,c=Ll(r.width),d=Ll(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=hy(r,"left","right")+a),Math.round(d+l)!==n&&(d-=hy(r,"top","bottom")+l)),!sk(e)){var h=Math.round(c+a)-t,y=Math.round(d+l)-n;Math.abs(h)!==1&&(c-=h),Math.abs(y)!==1&&(d-=y)}return jl(i.left,i.top,c,d)}var ik=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof xi(e).SVGGraphicsElement}:function(e){return e instanceof xi(e).SVGElement&&typeof e.getBBox=="function"}}();function sk(e){return e===xi(e).document.documentElement}function ak(e){return nf?ik(e)?rk(e):ok(e):py}function lk(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return fy(l,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),l}function jl(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ck=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=jl(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ak(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}(),uk=function(){function e(t,n){var r=lk(n);fy(this,{target:t,contentRect:r})}return e}(),dk=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new dy,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}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 xi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ck(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 xi(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(r){return new uk(r.target,r.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}(),gy=typeof WeakMap<"u"?new WeakMap:new dy,my=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=tk.getInstance(),r=new dk(t,n,this);gy.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){my.prototype[e]=function(){var t;return(t=gy.get(this))[e].apply(t,arguments)}});var fk=function(){return typeof Dl.ResizeObserver<"u"?Dl.ResizeObserver:my}();const pk=ra(Object.freeze(Object.defineProperty({__proto__:null,default:fk},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(tf,"__esModule",{value:!0}),tf.default=wk;var Fl=yk(X),hk=rf(no),gk=rf(pk),mk=rf(xd);function rf(e){return e&&e.__esModule?e:{default:e}}function yy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yy=function(r){return r?n:t})(e)}function yk(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},of.apply(this,arguments)}function wi(e,t,n){return t=vk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e){var t=bk(e,"string");return typeof t=="symbol"?t:String(t)}function bk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const xk="react-grid-layout";function wk(e){var t;return t=class extends Fl.Component{constructor(){super(...arguments),wi(this,"state",{width:1280}),wi(this,"elementRef",Fl.createRef()),wi(this,"mounted",!1),wi(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new gk.default(i=>{if(this.elementRef.current instanceof HTMLElement){const l=i[0].contentRect.width;this.setState({width:l})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:r,...i}=this.props;return r&&!this.mounted?Fl.createElement("div",{className:(0,mk.default)(this.props.className,xk),style:this.props.style,ref:this.elementRef}):Fl.createElement(e,of({innerRef:this.elementRef},i,this.state))}},wi(t,"defaultProps",{measureBeforeMount:!1}),wi(t,"propTypes",{measureBeforeMount:hk.default.bool}),t}(function(e){e.exports=ws.default,e.exports.utils=Qe,e.exports.calculateUtils=Tr,e.exports.Responsive=Al.default,e.exports.Responsive.utils=$o,e.exports.WidthProvider=tf.default})(wm);var vy=wm.exports;const Sk=Xp(vy);var Rn=function(){return Rn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Rn.apply(this,arguments)};function Ts(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",Is="-moz-",pt="-webkit-",by="comm",Nl="rule",sf="decl",Ck="@import",xy="@keyframes",_k="@layer",wy=Math.abs,af=String.fromCharCode,lf=Object.assign;function Ek(e,t){return Qt(e,0)^45?(((t<<2^Qt(e,0))<<2^Qt(e,1))<<2^Qt(e,2))<<2^Qt(e,3):0}function Sy(e){return e.trim()}function Hr(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,n){return e.replace(t,n)}function zl(e,t,n){return e.indexOf(t,n)}function Qt(e,t){return e.charCodeAt(t)|0}function Si(e,t,n){return e.slice(t,n)}function Ar(e){return e.length}function Cy(e){return e.length}function ks(e,t){return t.push(e),e}function Rk(e,t){return e.map(t).join("")}function _y(e,t){return e.filter(function(n){return!Hr(n,t)})}var Wl=1,Ci=1,Ey=0,Jn=0,qt=0,_i="";function Ul(e,t,n,r,i,a,l,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Wl,column:Ci,length:l,return:"",siblings:c}}function ao(e,t){return lf(Ul("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=ao(e.root,{children:[e]});ks(e,e.siblings)}function Pk(){return qt}function Tk(){return qt=Jn>0?Qt(_i,--Jn):0,Ci--,qt===10&&(Ci=1,Wl--),qt}function pr(){return qt=Jn<Ey?Qt(_i,Jn++):0,Ci++,qt===10&&(Ci=1,Wl++),qt}function Bo(){return Qt(_i,Jn)}function Hl(){return Jn}function Gl(e,t){return Si(_i,e,t)}function cf(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 Ik(e){return Wl=Ci=1,Ey=Ar(_i=e),Jn=0,[]}function kk(e){return _i="",e}function uf(e){return Sy(Gl(Jn-1,df(e===91?e+2:e===40?e+1:e)))}function Ok(e){for(;(qt=Bo())&&qt<33;)pr();return cf(e)>2||cf(qt)>3?"":" "}function Ak(e,t){for(;--t&&pr()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Gl(e,Hl()+(t<6&&Bo()==32&&pr()==32))}function df(e){for(;pr();)switch(qt){case e:return Jn;case 34:case 39:e!==34&&e!==39&&df(qt);break;case 40:e===41&&df(e);break;case 92:pr();break}return Jn}function $k(e,t){for(;pr()&&e+qt!==57;)if(e+qt===84&&Bo()===47)break;return"/*"+Gl(t,Jn-1)+"*"+af(e===47?e:pr())}function Mk(e){for(;!cf(Bo());)pr();return Gl(e,Jn)}function Bk(e){return kk(ql("",null,null,null,[""],e=Ik(e),0,[0],e))}function ql(e,t,n,r,i,a,l,c,d){for(var h=0,y=0,m=l,v=0,w=0,b=0,E=1,k=1,_=1,O=0,C="",P=i,M=a,D=r,$=C;k;)switch(b=O,O=pr()){case 40:if(b!=108&&Qt($,m-1)==58){zl($+=Ye(uf(O),"&","&\f"),"&\f",wy(h?c[h-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:$+=uf(O);break;case 9:case 10:case 13:case 32:$+=Ok(b);break;case 92:$+=Ak(Hl()-1,7);continue;case 47:switch(Bo()){case 42:case 47:ks(Dk($k(pr(),Hl()),t,n,d),d);break;default:$+="/"}break;case 123*E:c[h++]=Ar($)*_;case 125*E:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+y:_==-1&&($=Ye($,/\f/g,"")),w>0&&Ar($)-m&&ks(w>32?Py($+";",r,n,m-1,d):Py(Ye($," ","")+";",r,n,m-2,d),d);break;case 59:$+=";";default:if(ks(D=Ry($,t,n,h,y,i,c,C,P=[],M=[],m,a),a),O===123)if(y===0)ql($,t,D,D,P,a,m,c,M);else switch(v===99&&Qt($,3)===110?100:v){case 100:case 108:case 109:case 115:ql(e,D,D,r&&ks(Ry(e,D,D,0,0,i,c,C,i,P=[],m,M),M),i,M,m,c,r?P:M);break;default:ql($,D,D,D,[""],M,0,c,M)}}h=y=w=0,E=_=1,C=$="",m=l;break;case 58:m=1+Ar($),w=b;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&Tk()==125)continue}switch($+=af(O),O*E){case 38:_=y>0?1:($+="\f",-1);break;case 44:c[h++]=(Ar($)-1)*_,_=1;break;case 64:Bo()===45&&($+=uf(pr())),v=Bo(),y=m=Ar(C=$+=Mk(Hl())),O++;break;case 45:b===45&&Ar($)==2&&(E=0)}}return a}function Ry(e,t,n,r,i,a,l,c,d,h,y,m){for(var v=i-1,w=i===0?a:[""],b=Cy(w),E=0,k=0,_=0;E<r;++E)for(var O=0,C=Si(e,v+1,v=wy(k=l[E])),P=e;O<b;++O)(P=Sy(k>0?w[O]+" "+C:Ye(C,/&\f/g,w[O])))&&(d[_++]=P);return Ul(e,t,n,i===0?Nl:c,d,h,y,m)}function Dk(e,t,n,r){return Ul(e,t,n,by,af(Pk()),Si(e,2,-2),0,r)}function Py(e,t,n,r,i){return Ul(e,t,n,sf,Si(e,0,r),Si(e,r+1,-1),r,i)}function Ty(e,t,n){switch(Ek(e,t)){case 5103:return pt+"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 pt+e+e;case 4789:return Is+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+Is+e+Rt+e+e;case 5936:switch(Qt(e,t+11)){case 114:return pt+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+Rt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pt+e+Rt+e+e;case 6165:return pt+e+Rt+"flex-"+e+e;case 5187:return pt+e+Ye(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return pt+e+Rt+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Hr(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return pt+e+Rt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return pt+e+Rt+Ye(e,"shrink","negative")+e;case 5292:return pt+e+Rt+Ye(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+Ye(e,"-grow","")+pt+e+Rt+Ye(e,"grow","positive")+e;case 4554:return pt+Ye(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4200:if(!Hr(e,/flex-|baseline/))return Rt+"grid-column-align"+Si(e,t)+e;break;case 2592:case 3360:return Rt+Ye(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Hr(r.props,/grid-\w+-end/)})?~zl(e+(n=n[t].value),"span",0)?e:Rt+Ye(e,"-start","")+e+Rt+"grid-row-span:"+(~zl(n,"span",0)?Hr(n,/\d+/):+Hr(n,/\d+/)-+Hr(e,/\d+/))+";":Rt+Ye(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Hr(r.props,/grid-\w+-start/)})?e:Rt+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,pt+"$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(Ar(e)-1-t>6)switch(Qt(e,t+1)){case 109:if(Qt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Is+(Qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zl(e,"stretch",0)?Ty(Ye(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,l,c,d,h){return Rt+i+":"+a+h+(l?Rt+i+"-span:"+(c?d:+d-+a)+h:"")+e});case 4949:if(Qt(e,t+6)===121)return Ye(e,":",":"+pt)+e;break;case 6444:switch(Qt(e,Qt(e,14)===45?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pt+(Qt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ye(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function Vl(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lk(e,t,n,r){switch(e.type){case _k:if(e.children.length)break;case Ck:case sf:return e.return=e.return||e.value;case by:return"";case xy:return e.return=e.value+"{"+Vl(e.children,r)+"}";case Nl:if(!Ar(e.value=e.props.join(",")))return""}return Ar(n=Vl(e.children,r))?e.return=e.value+"{"+n+"}":""}function jk(e){var t=Cy(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function Fk(e){return function(t){t.root||(t=t.return)&&e(t)}}function Nk(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sf:e.return=Ty(e.value,e.length,n);return;case xy:return Vl([ao(e,{value:Ye(e.value,"@","@"+pt)})],r);case Nl:if(e.length)return Rk(n=e.props,function(i){switch(Hr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(ao(e,{props:[Ye(i,/:(read-\w+)/,":"+Is+"$1")]})),Ei(ao(e,{props:[i]})),lf(e,{props:_y(n,r)});break;case"::placeholder":Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,":"+pt+"input-$1")]})),Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,":"+Is+"$1")]})),Ei(ao(e,{props:[Ye(i,/:(plac\w+)/,Rt+"input-$1")]})),Ei(ao(e,{props:[i]})),lf(e,{props:_y(n,r)});break}return""})}}var zk={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},Ri=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Iy="active",ky="data-styled-version",Kl="6.1.13",ff=`/*!sc*/
|
|
180
|
+
`,Yl=typeof window<"u"&&"HTMLElement"in window,Wk=!!(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),Xl=Object.freeze([]),Pi=Object.freeze({});function Uk(e,t,n){return n===void 0&&(n=Pi),e.theme!==n.theme&&e.theme||t||n.theme}var Oy=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"]),Hk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Gk=/(^-|-$)/g;function Ay(e){return e.replace(Hk,"-").replace(Gk,"")}var qk=/(a)(d)/gi,Jl=52,$y=function(e){return String.fromCharCode(e+(e>25?39:97))};function pf(e){var t,n="";for(t=Math.abs(e);t>Jl;t=t/Jl|0)n=$y(t%Jl)+n;return($y(t%Jl)+n).replace(qk,"$1-$2")}var hf,My=5381,Ti=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},By=function(e){return Ti(My,e)};function Dy(e){return pf(By(e)>>>0)}function Vk(e){return e.displayName||e.name||"Component"}function gf(e){return typeof e=="string"&&!0}var Ly=typeof Symbol=="function"&&Symbol.for,jy=Ly?Symbol.for("react.memo"):60115,Kk=Ly?Symbol.for("react.forward_ref"):60112,Yk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xk={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jk=((hf={})[Kk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hf[jy]=Fy,hf);function Ny(e){return("type"in(t=e)&&t.type.$$typeof)===jy?Fy:"$$typeof"in e?Jk[e.$$typeof]:Yk;var t}var Zk=Object.defineProperty,Qk=Object.getOwnPropertyNames,zy=Object.getOwnPropertySymbols,eO=Object.getOwnPropertyDescriptor,tO=Object.getPrototypeOf,Wy=Object.prototype;function Uy(e,t,n){if(typeof t!="string"){if(Wy){var r=tO(t);r&&r!==Wy&&Uy(e,r,n)}var i=Qk(t);zy&&(i=i.concat(zy(t)));for(var a=Ny(e),l=Ny(t),c=0;c<i.length;++c){var d=i[c];if(!(d in Xk||n&&n[d]||l&&d in l||a&&d in a)){var h=eO(t,d);try{Zk(e,d,h)}catch{}}}}return e}function Ii(e){return typeof e=="function"}function mf(e){return typeof e=="object"&&"styledComponentId"in e}function Do(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yf(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Os(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function vf(e,t,n){if(n===void 0&&(n=!1),!n&&!Os(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=vf(e[r],t[r]);else if(Os(t))for(var r in t)e[r]=vf(e[r],t[r]);return e}function bf(e,t){Object.defineProperty(e,"toString",{value:t})}function As(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 nO=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,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw As(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=i;l<a;l++)this.groupSizes[l]=0}for(var c=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var a=r;a<i;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,l=i;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(ff);return n},e}(),Zl=new Map,Ql=new Map,ec=1,tc=function(e){if(Zl.has(e))return Zl.get(e);for(;Ql.has(ec);)ec++;var t=ec++;return Zl.set(e,t),Ql.set(t,e),t},rO=function(e,t){ec=t+1,Zl.set(e,t),Ql.set(t,e)},oO="style[".concat(Ri,"][").concat(ky,'="').concat(Kl,'"]'),iO=new RegExp("^".concat(Ri,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sO=function(e,t,n){for(var r,i=n.split(","),a=0,l=i.length;a<l;a++)(r=i[a])&&e.registerName(t,r)},aO=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ff),i=[],a=0,l=r.length;a<l;a++){var c=r[a].trim();if(c){var d=c.match(iO);if(d){var h=0|parseInt(d[1],10),y=d[2];h!==0&&(rO(y,h),sO(e,y,d[3]),e.getTag().insertRules(h,i)),i.length=0}else i.push(c)}}},Hy=function(e){for(var t=document.querySelectorAll(oO),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Ri)!==Iy&&(aO(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function lO(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Gy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(c){var d=Array.from(c.querySelectorAll("style[".concat(Ri,"]")));return d[d.length-1]}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(Ri,Iy),r.setAttribute(ky,Kl);var l=lO();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},cO=function(){function e(t){this.element=Gy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,a=r.length;i<a;i++){var l=r[i];if(l.ownerNode===n)return l}throw As(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}(),uO=function(){function e(t){this.element=Gy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,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}(),dO=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}(),qy=Yl,fO={isServer:!Yl,useCSSOMInjection:!Wk},Vy=function(){function e(t,n,r){t===void 0&&(t=Pi),n===void 0&&(n={});var i=this;this.options=Rn(Rn({},fO),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Yl&&qy&&(qy=!1,Hy(this)),bf(this,function(){return function(a){for(var l=a.getTag(),c=l.length,d="",h=function(m){var v=function(_){return Ql.get(_)}(m);if(v===void 0)return"continue";var w=a.names.get(v),b=l.getGroup(m);if(w===void 0||!w.size||b.length===0)return"continue";var E="".concat(Ri,".g").concat(m,'[id="').concat(v,'"]'),k="";w!==void 0&&w.forEach(function(_){_.length>0&&(k+="".concat(_,","))}),d+="".concat(b).concat(E,'{content:"').concat(k,'"}').concat(ff)},y=0;y<c;y++)h(y);return d}(i)})}return e.registerId=function(t){return tc(t)},e.prototype.rehydrate=function(){!this.server&&Yl&&Hy(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Rn(Rn({},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 r=n.useCSSOMInjection,i=n.target;return n.isServer?new dO(i):r?new cO(i):new uO(i)}(this.options),new nO(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(tc(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(tc(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(tc(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),pO=/&/g,hO=/^\s*\/\/.*$/gm;function Ky(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(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ky(n.children,t)),n})}function gO(e){var t,n,r,i=Pi,a=i.options,l=a===void 0?Pi:a,c=i.plugins,d=c===void 0?Xl:c,h=function(v,w,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(t):v},y=d.slice();y.push(function(v){v.type===Nl&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(pO,n).replace(r,h))}),l.prefix&&y.push(Nk),y.push(Lk);var m=function(v,w,b,E){w===void 0&&(w=""),b===void 0&&(b=""),E===void 0&&(E="&"),t=E,n=w,r=new RegExp("\\".concat(n,"\\b"),"g");var k=v.replace(hO,""),_=Bk(b||w?"".concat(b," ").concat(w," { ").concat(k," }"):k);l.namespace&&(_=Ky(_,l.namespace));var O=[];return Vl(_,jk(y.concat(Fk(function(C){return O.push(C)})))),O};return m.hash=d.length?d.reduce(function(v,w){return w.name||As(15),Ti(v,w.name)},My).toString():"",m}var mO=new Vy,xf=gO(),Yy=X.createContext({shouldForwardProp:void 0,styleSheet:mO,stylis:xf});Yy.Consumer,X.createContext(void 0);function Xy(){return X.useContext(Yy)}var Jy=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=xf);var l=r.name+a.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,bf(this,function(){throw As(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=xf),this.name+t.hash},e}(),yO=function(e){return e>="A"&&e<="Z"};function Zy(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;yO(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Qy=function(e){return e==null||e===!1||e===""},e0=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Qy(a)&&(Array.isArray(a)&&a.isCss||Ii(a)?r.push("".concat(Zy(i),":"),a,";"):Os(a)?r.push.apply(r,Ts(Ts(["".concat(i," {")],e0(a),!1),["}"],!1)):r.push("".concat(Zy(i),": ").concat((t=i,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in zk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Lo(e,t,n,r){if(Qy(e))return[];if(mf(e))return[".".concat(e.styledComponentId)];if(Ii(e)){if(!Ii(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return Lo(i,t,n,r)}var a;return e instanceof Jy?n?(e.inject(n,r),[e.getName(r)]):[e]:Os(e)?e0(e):Array.isArray(e)?Array.prototype.concat.apply(Xl,e.map(function(l){return Lo(l,t,n,r)})):[e.toString()]}function vO(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ii(n)&&!mf(n))return!1}return!0}var bO=By(Kl),xO=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&vO(t),this.componentId=n,this.baseHash=Ti(bO,n),this.baseStyle=r,Vy.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Do(i,this.staticRulesId);else{var a=yf(Lo(this.rules,t,n,r)),l=pf(Ti(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var c=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,c)}i=Do(i,l),this.staticRulesId=l}else{for(var d=Ti(this.baseHash,r.hash),h="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")h+=m;else if(m){var v=yf(Lo(m,t,n,r));d=Ti(d,v+y),h+=v}}if(h){var w=pf(d>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,r(h,".".concat(w),void 0,this.componentId)),i=Do(i,w)}}return i},e}(),t0=X.createContext(void 0);t0.Consumer;var wf={};function wO(e,t,n){var r=mf(e),i=e,a=!gf(e),l=t.attrs,c=l===void 0?Xl:l,d=t.componentId,h=d===void 0?function(P,M){var D=typeof P!="string"?"sc":Ay(P);wf[D]=(wf[D]||0)+1;var $="".concat(D,"-").concat(Dy(Kl+D+wf[D]));return M?"".concat(M,"-").concat($):$}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(P){return gf(P)?"styled.".concat(P):"Styled(".concat(Vk(P),")")}(e):y,v=t.displayName&&t.componentId?"".concat(Ay(t.displayName),"-").concat(t.componentId):t.componentId||h,w=r&&i.attrs?i.attrs.concat(c).filter(Boolean):c,b=t.shouldForwardProp;if(r&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;b=function(P,M){return E(P,M)&&k(P,M)}}else b=E}var _=new xO(n,v,r?i.componentStyle:void 0);function O(P,M){return function(D,$,z){var V=D.attrs,R=D.componentStyle,G=D.defaultProps,te=D.foldedComponentIds,H=D.styledComponentId,Y=D.target,ee=X.useContext(t0),ae=Xy(),fe=D.shouldForwardProp||ae.shouldForwardProp,pe=Uk($,ee,G)||Pi,_e=function(Xe,Ge,ht){for(var le,ue=Rn(Rn({},Ge),{className:void 0,theme:ht}),he=0;he<Xe.length;he+=1){var ge=Ii(le=Xe[he])?le(ue):le;for(var de in ge)ue[de]=de==="className"?Do(ue[de],ge[de]):de==="style"?Rn(Rn({},ue[de]),ge[de]):ge[de]}return Ge.className&&(ue.className=Do(ue.className,Ge.className)),ue}(V,$,pe),We=_e.as||Y,be={};for(var Be in _e)_e[Be]===void 0||Be[0]==="$"||Be==="as"||Be==="theme"&&_e.theme===pe||(Be==="forwardedAs"?be.as=_e.forwardedAs:fe&&!fe(Be,We)||(be[Be]=_e[Be]));var Ne=function(Xe,Ge){var ht=Xy(),le=Xe.generateAndInjectStyles(Ge,ht.styleSheet,ht.stylis);return le}(R,_e),Me=Do(te,H);return Ne&&(Me+=" "+Ne),_e.className&&(Me+=" "+_e.className),be[gf(We)&&!Oy.has(We)?"class":"className"]=Me,be.ref=z,X.createElement(We,be)}(C,P,M)}O.displayName=m;var C=X.forwardRef(O);return C.attrs=w,C.componentStyle=_,C.displayName=m,C.shouldForwardProp=b,C.foldedComponentIds=r?Do(i.foldedComponentIds,i.styledComponentId):"",C.styledComponentId=v,C.target=r?i.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(M){for(var D=[],$=1;$<arguments.length;$++)D[$-1]=arguments[$];for(var z=0,V=D;z<V.length;z++)vf(M,V[z],!0);return M}({},i.defaultProps,P):P}}),bf(C,function(){return".".concat(C.styledComponentId)}),a&&Uy(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function n0(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var r0=function(e){return Object.assign(e,{isCss:!0})};function o0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ii(e)||Os(e))return r0(Lo(n0(Xl,Ts([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Lo(r):r0(Lo(n0(r,t)))}function Sf(e,t,n){if(n===void 0&&(n=Pi),!t)throw As(1,t);var r=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,o0.apply(void 0,Ts([i],a,!1)))};return r.attrs=function(i){return Sf(e,t,Rn(Rn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Sf(e,t,Rn(Rn({},n),i))},r}var i0=function(e){return Sf(wO,e)},it=i0;Oy.forEach(function(e){it[e]=i0(e)});function SO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=yf(o0.apply(void 0,Ts([e],t,!1))),i=Dy(r);return new Jy(i,r)}for(var rn=[],Cf=0;Cf<256;++Cf)rn.push((Cf+256).toString(16).slice(1));function CO(e,t=0){return(rn[e[t+0]]+rn[e[t+1]]+rn[e[t+2]]+rn[e[t+3]]+"-"+rn[e[t+4]]+rn[e[t+5]]+"-"+rn[e[t+6]]+rn[e[t+7]]+"-"+rn[e[t+8]]+rn[e[t+9]]+"-"+rn[e[t+10]]+rn[e[t+11]]+rn[e[t+12]]+rn[e[t+13]]+rn[e[t+14]]+rn[e[t+15]]).toLowerCase()}var nc,_O=new Uint8Array(16);function EO(){if(!nc&&(nc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nc(_O)}var RO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const s0={randomUUID:RO};function rc(e,t,n){if(s0.randomUUID&&!t&&!e)return s0.randomUUID();e=e||{};var r=e.random||(e.rng||EO)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,CO(r)}const a0=Cn(x.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"),l0=Cn(x.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"),PO=it.div``,TO=it.div`
|
|
181
181
|
.controls {
|
|
182
182
|
position: absolute;
|
|
183
183
|
right: 5px;
|
|
@@ -198,11 +198,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
`,s0={color:"primary.main","&:hover":{color:"secondary.main"}},RO=e=>C.jsxs(C.Fragment,{children:[C.jsx(EO,{children:C.jsxs("div",{className:"controls cancel-drag",children:[C.jsx(Cn,{size:"large",onClick:e.onSave,children:C.jsx(o0,{fontSize:"medium",sx:s0})}),C.jsx(Cn,{size:"large",onClick:e.onClose,children:C.jsx(i0,{fontSize:"large",sx:s0})})]})}),C.jsx(_O,{children:C.jsx("p",{children:"Inline Editor!"})})]});var TO={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,r,i){var a=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,c=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|$)"},c.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};a.inherits(c,l),c.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},c.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},c.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},r.JsDocCommentHighlightRules=c}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,i){var a=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,c=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",h=function(v){var S={"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"},x=this.createKeywordMapper(S,"identifier"),R="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",O="\\\\(?: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]?|.)",_="(function)(\\s*)(\\*?)",I={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(S).join("|")+"\\b)"+d+")(\\s*)(\\()"};this.$rules={no_regex:[l.getStartRule("doc-start"),m("no_regex"),I,{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*)(\\()",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*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+_+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+R+")\\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:x,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*)(\\()",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:O},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:O},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!v||!v.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(E,P,M){if(this.next=E=="{"?this.nextState:"",E=="{"&&M.length)M.unshift("start",P);else if(E=="}"&&M.length&&(M.shift(),this.next=M.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return E=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:O},{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"}),(!v||v.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};a.inherits(h,c);function y(){var v=d.replace("\\d","\\d\\-"),S={onMatch:function(R,O,_){var I=R.charAt(1)=="/"?2:1;return I==1?(O!=this.nextState?_.unshift(this.next,this.nextState,0):_.unshift(this.next),_[2]++):I==2&&O==this.nextState&&(_[1]--,(!_[1]||_[1]<0)&&(_.shift(),_.shift())),[{type:"meta.tag.punctuation."+(I==1?"":"end-")+"tag-open.xml",value:R.slice(0,I)},{type:"meta.tag.tag-name.xml",value:R.substr(I)}]},regex:"</?(?:"+v+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(S);var x={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[x,S,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(R,O,_){return O==_[0]&&_.shift(),R.length==2&&(_[0]==this.nextState&&_[1]--,(!_[1]||_[1]<0)&&_.splice(0,2)),this.next=_[0]||"start",[{type:this.token,value:R}]},nextState:"jsx"},x,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:v},{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"}]},S],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function m(v){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,i){var a=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(c,d){return/^\s+$/.test(c)?/^\s*\}/.test(d):!1},this.autoOutdent=function(c,d){var h=c.getLine(d),y=h.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,v=c.findMatchingBracket({row:d,column:m});if(!v||v.row==d)return 0;var S=this.$getIndent(c.getLine(v.row));c.replace(new a(d,0,d,m-1),S)},this.$getIndent=function(c){return c.match(/^\s*/)[0]}}).call(l.prototype),r.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,r,i){var a=n("../../lib/oop"),l=n("../behaviour").Behaviour,c=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,v,S,x){if(x=='"'||x=="'"){var R=x,O=S.doc.getTextRange(v.getSelectionRange());if(O!==""&&O!=="'"&&O!='"'&&v.getWrapBehavioursEnabled())return{text:R+O+R,selection:!1};var _=v.getCursorPosition(),I=S.doc.getLine(_.row),E=I.substring(_.column,_.column+1),P=new c(S,_.row,_.column),M=P.getCurrentToken();if(E==R&&(d(M,"attribute-value")||d(M,"string")))return{text:"",selection:[1,1]};if(M||(M=P.stepBackward()),!M)return;for(;d(M,"tag-whitespace")||d(M,"whitespace");)M=P.stepBackward();var D=!E||E.match(/\s/);if(d(M,"attribute-equals")&&(D||E==">")||d(M,"decl-attribute-equals")&&(D||E=="?"))return{text:R+R,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,v,S,x){var R=S.doc.getTextRange(x);if(!x.isMultiLine()&&(R=='"'||R=="'")){var O=S.doc.getLine(x.start.row),_=O.substring(x.start.column+1,x.start.column+2);if(_==R)return x.end.column++,x}}),this.add("autoclosing","insertion",function(y,m,v,S,x){if(x==">"){var R=v.getSelectionRange().start,O=new c(S,R.row,R.column),_=O.getCurrentToken()||O.stepBackward();if(!_||!(d(_,"tag-name")||d(_,"tag-whitespace")||d(_,"attribute-name")||d(_,"attribute-equals")||d(_,"attribute-value"))||d(_,"reference.attribute-value"))return;if(d(_,"attribute-value")){var I=O.getCurrentTokenColumn()+_.value.length;if(R.column<I)return;if(R.column==I){var E=O.stepForward();if(E&&d(E,"attribute-value"))return;O.stepBackward()}}if(/^\s*>/.test(S.getLine(R.row).slice(R.column)))return;for(;!d(_,"tag-name");)if(_=O.stepBackward(),_.value=="<"){_=O.stepForward();break}var P=O.getCurrentTokenRow(),M=O.getCurrentTokenColumn();if(d(O.stepBackward(),"end-tag-open"))return;var D=_.value;return P==R.row&&(D=D.substring(0,R.column-M)),this.voidElements&&this.voidElements.hasOwnProperty(D.toLowerCase())?void 0:{text:"></"+D+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,v,S,x){if(x==`
|
|
202
|
-
`){var
|
|
201
|
+
`,c0={color:"primary.main","&:hover":{color:"secondary.main"}},IO=e=>x.jsxs(x.Fragment,{children:[x.jsx(TO,{children:x.jsxs("div",{className:"controls cancel-drag",children:[x.jsx(un,{size:"large",onClick:e.onSave,children:x.jsx(a0,{fontSize:"medium",sx:c0})}),x.jsx(un,{size:"large",onClick:e.onClose,children:x.jsx(l0,{fontSize:"large",sx:c0})})]})}),x.jsx(PO,{children:x.jsx("p",{children:"Inline Editor!"})})]});var kO={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,r,i){var a=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,c=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|$)"},c.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};a.inherits(c,l),c.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},c.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},c.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},r.JsDocCommentHighlightRules=c}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,i){var a=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,c=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",h=function(v){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"},b=this.createKeywordMapper(w,"identifier"),E="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",k="\\\\(?: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]?|.)",_="(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*)(\\()",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*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\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:b,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*)(\\()",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:k},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!v||!v.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(C,P,M){if(this.next=C=="{"?this.nextState:"",C=="{"&&M.length)M.unshift("start",P);else if(C=="}"&&M.length&&(M.shift(),this.next=M.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return C=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:k},{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"}),(!v||v.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};a.inherits(h,c);function y(){var v=d.replace("\\d","\\d\\-"),w={onMatch:function(E,k,_){var O=E.charAt(1)=="/"?2:1;return O==1?(k!=this.nextState?_.unshift(this.next,this.nextState,0):_.unshift(this.next),_[2]++):O==2&&k==this.nextState&&(_[1]--,(!_[1]||_[1]<0)&&(_.shift(),_.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:"</?(?:"+v+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(w);var b={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[b,w,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(E,k,_){return k==_[0]&&_.shift(),E.length==2&&(_[0]==this.nextState&&_[1]--,(!_[1]||_[1]<0)&&_.splice(0,2)),this.next=_[0]||"start",[{type:this.token,value:E}]},nextState:"jsx"},b,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:v},{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(v){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,i){var a=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(c,d){return/^\s+$/.test(c)?/^\s*\}/.test(d):!1},this.autoOutdent=function(c,d){var h=c.getLine(d),y=h.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,v=c.findMatchingBracket({row:d,column:m});if(!v||v.row==d)return 0;var w=this.$getIndent(c.getLine(v.row));c.replace(new a(d,0,d,m-1),w)},this.$getIndent=function(c){return c.match(/^\s*/)[0]}}).call(l.prototype),r.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,r,i){var a=n("../../lib/oop"),l=n("../behaviour").Behaviour,c=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,v,w,b){if(b=='"'||b=="'"){var E=b,k=w.doc.getTextRange(v.getSelectionRange());if(k!==""&&k!=="'"&&k!='"'&&v.getWrapBehavioursEnabled())return{text:E+k+E,selection:!1};var _=v.getCursorPosition(),O=w.doc.getLine(_.row),C=O.substring(_.column,_.column+1),P=new c(w,_.row,_.column),M=P.getCurrentToken();if(C==E&&(d(M,"attribute-value")||d(M,"string")))return{text:"",selection:[1,1]};if(M||(M=P.stepBackward()),!M)return;for(;d(M,"tag-whitespace")||d(M,"whitespace");)M=P.stepBackward();var D=!C||C.match(/\s/);if(d(M,"attribute-equals")&&(D||C==">")||d(M,"decl-attribute-equals")&&(D||C=="?"))return{text:E+E,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,v,w,b){var E=w.doc.getTextRange(b);if(!b.isMultiLine()&&(E=='"'||E=="'")){var k=w.doc.getLine(b.start.row),_=k.substring(b.start.column+1,b.start.column+2);if(_==E)return b.end.column++,b}}),this.add("autoclosing","insertion",function(y,m,v,w,b){if(b==">"){var E=v.getSelectionRange().start,k=new c(w,E.row,E.column),_=k.getCurrentToken()||k.stepBackward();if(!_||!(d(_,"tag-name")||d(_,"tag-whitespace")||d(_,"attribute-name")||d(_,"attribute-equals")||d(_,"attribute-value"))||d(_,"reference.attribute-value"))return;if(d(_,"attribute-value")){var O=k.getCurrentTokenColumn()+_.value.length;if(E.column<O)return;if(E.column==O){var C=k.stepForward();if(C&&d(C,"attribute-value"))return;k.stepBackward()}}if(/^\s*>/.test(w.getLine(E.row).slice(E.column)))return;for(;!d(_,"tag-name");)if(_=k.stepBackward(),_.value=="<"){_=k.stepForward();break}var P=k.getCurrentTokenRow(),M=k.getCurrentTokenColumn();if(d(k.stepBackward(),"end-tag-open"))return;var D=_.value;return P==E.row&&(D=D.substring(0,E.column-M)),this.voidElements&&this.voidElements.hasOwnProperty(D.toLowerCase())?void 0:{text:"></"+D+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,v,w,b){if(b==`
|
|
202
|
+
`){var E=v.getCursorPosition(),k=w.getLine(E.row),_=new c(w,E.row,E.column),O=_.getCurrentToken();if(d(O,"")&&O.type.indexOf("tag-close")!==-1){if(O.value=="/>")return;for(;O&&O.type.indexOf("tag-name")===-1;)O=_.stepBackward();if(!O)return;var C=O.value,P=_.getCurrentTokenRow();if(O=_.stepBackward(),!O||O.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[C]||!this.voidElements){var M=w.getTokenAt(E.row,E.column+1),k=w.getLine(P),D=this.$getIndent(k),$=D+w.getTabString();return M&&M.value==="</"?{text:`
|
|
203
203
|
`+$+`
|
|
204
204
|
`+D,selection:[1,$.length,1,$.length]}:{text:`
|
|
205
|
-
`+$}}}}})};a.inherits(h,l),r.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,r,i){var a=n("../../lib/oop"),l=n("../../token_iterator").TokenIterator,c=n("../behaviour/cstyle").CstyleBehaviour,d=n("../behaviour/xml").XmlBehaviour,h=function(){var y=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(y),this.inherit(c),this.add("autoclosing-fragment","insertion",function(m,v,
|
|
205
|
+
`+$}}}}})};a.inherits(h,l),r.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,r,i){var a=n("../../lib/oop"),l=n("../../token_iterator").TokenIterator,c=n("../behaviour/cstyle").CstyleBehaviour,d=n("../behaviour/xml").XmlBehaviour,h=function(){var y=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(y),this.inherit(c),this.add("autoclosing-fragment","insertion",function(m,v,w,b,E){if(E==">"){var k=w.getSelectionRange().start,_=new l(b,k.row,k.column),O=_.getCurrentToken()||_.stepBackward();if(!O)return;if(O.value=="<")return{text:"></>",selection:[1,1]}}})};a.inherits(h,c),r.JavaScriptBehaviour=h}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,i){var a=n("../../lib/oop"),l=n("../../range").Range,c=n("./fold_mode").FoldMode,d=r.FoldMode=function(m,v){c.call(this),this.voidElements=m||{},this.optionalEndTags=a.mixin({},this.voidElements),v&&a.mixin(this.optionalEndTags,v)};a.inherits(d,c);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,v){return m.type.lastIndexOf(v+".xml")>-1}(function(){this.getFoldWidget=function(m,v,w){var b=this._getFirstTagInLine(m,w);return b?b.closing||!b.tagName&&b.selfClosing?v==="markbeginend"?"end":"":!b.tagName||b.selfClosing||this.voidElements.hasOwnProperty(b.tagName.toLowerCase())||this._findEndTagInLine(m,w,b.tagName,b.end.column)?"":"start":this.getCommentFoldWidget(m,w)},this.getCommentFoldWidget=function(m,v){return/comment/.test(m.getState(v))&&/<!-/.test(m.getLine(v))?"start":""},this._getFirstTagInLine=function(m,v){for(var w=m.getTokens(v),b=new h,E=0;E<w.length;E++){var k=w[E];if(y(k,"tag-open")){if(b.end.column=b.start.column+k.value.length,b.closing=y(k,"end-tag-open"),k=w[++E],!k)return null;if(b.tagName=k.value,k.value===""){if(k=w[++E],!k)return null;b.tagName=k.value}for(b.end.column+=k.value.length,E++;E<w.length;E++)if(k=w[E],b.end.column+=k.value.length,y(k,"tag-close")){b.selfClosing=k.value=="/>";break}return b}else if(y(k,"tag-close"))return b.selfClosing=k.value=="/>",b;b.start.column+=k.value.length}return null},this._findEndTagInLine=function(m,v,w,b){for(var E=m.getTokens(v),k=0,_=0;_<E.length;_++){var O=E[_];if(k+=O.value.length,!(k<b-1)&&y(O,"end-tag-open")&&(O=E[_+1],y(O,"tag-name")&&O.value===""&&(O=E[_+2]),O&&O.value==w))return!0}return!1},this.getFoldWidgetRange=function(m,v,w){var b=this._getFirstTagInLine(m,w);if(!b)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,r,i){var a=n("../../lib/oop"),l=n("../../range").Range,c=n("./fold_mode").FoldMode,d=r.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};a.inherits(d,c),(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 v=h.getLine(m);if(this.singleLineBlockCommentRe.test(v)&&!this.startRegionRe.test(v)&&!this.tripleStarBlockCommentRe.test(v))return"";var w=this._getFoldWidgetBase(h,y,m);return!w&&this.startRegionRe.test(v)?"start":w},this.getFoldWidgetRange=function(h,y,m,v){var w=h.getLine(m);if(this.startRegionRe.test(w))return this.getCommentRegionBlock(h,w,m);var k=w.match(this.foldingStartMarker);if(k){var b=k.index;if(k[1])return this.openingBracketBlock(h,k[1],m,b);var E=h.getCommentFoldRange(m,b+k[0].length,1);return E&&!E.isMultiLine()&&(v?E=this.getSectionRange(h,m):y!="all"&&(E=null)),E}if(y!=="markbegin"){var k=w.match(this.foldingStopMarker);if(k){var b=k.index+k[0].length;return k[1]?this.closingBracketBlock(h,k[1],m,b):h.getCommentFoldRange(m,b,-1)}}},this.getSectionRange=function(h,y){var m=h.getLine(y),v=m.search(/\S/),w=y,b=m.length;y=y+1;for(var E=y,k=h.getLength();++y<k;){m=h.getLine(y);var _=m.search(/\S/);if(_!==-1){if(v>_)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(v==_)break}E=y}}return new l(w,b,E,h.getLine(E).length)},this.getCommentRegionBlock=function(h,y,m){for(var v=y.search(/\s*$/),w=h.getLength(),b=m,E=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,k=1;++m<w;){y=h.getLine(m);var _=E.exec(y);if(_&&(_[1]?k--:k++,!k))break}var O=m;if(O>b)return new l(b,v,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,r,i){var a=n("../../lib/oop"),l=n("./xml").FoldMode,c=n("./cstyle").FoldMode,d=r.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};a.inherits(d,c),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,y,m){var v=this.getFoldWidgetBase(h,y,m);return v||this.xmlFoldMode.getFoldWidget(h,y,m)},this.getFoldWidgetRange=function(h,y,m,v){var w=this.getFoldWidgetRangeBase(h,y,m,v);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,r,i){var a=n("../lib/oop"),l=n("./text").Mode,c=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,v=function(){this.HighlightRules=c,this.$outdent=new d,this.$behaviour=new y,this.foldingRules=new m};a.inherits(v,l),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(w,b,E){var k=this.$getIndent(b),_=this.getTokenizer().getLineTokens(b,w),O=_.tokens,C=_.state;if(O.length&&O[O.length-1].type=="comment")return k;if(w=="start"||w=="no_regex"){var P=b.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);P&&(k+=E)}else if(w=="doc-start"&&(C=="start"||C=="no_regex"))return"";return k},this.checkOutdent=function(w,b,E){return this.$outdent.checkOutdent(b,E)},this.autoOutdent=function(w,b,E){this.$outdent.autoOutdent(b,E)},this.createWorker=function(w){var b=new h(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return b.attachToDocument(w.getDocument()),b.on("annotate",function(E){w.setAnnotations(E.data)}),b.on("terminate",function(){w.clearAnnotations()}),b},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(v.prototype),r.Mode=v}),function(){ace.require(["ace/mode/javascript"],function(n){e&&(e.exports=n)})}()})(kO);var OO={exports:{}};(function(e,t){ace.define("ace/theme/monokai-css",["require","exports","module"],function(n,r,i){i.exports=`.ace-monokai .ace_gutter {
|
|
206
206
|
background: #2F3129;
|
|
207
207
|
color: #8F908A
|
|
208
208
|
}
|
|
@@ -327,12 +327,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327
327
|
.ace-monokai .ace_indent-guide-active {
|
|
328
328
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
329
329
|
}
|
|
330
|
-
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,r,i){r.isDark=!0,r.cssClass="ace-monokai",r.cssText=n("./monokai-css");var a=n("../lib/dom");a.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){e&&(e.exports=n)})}()})(
|
|
330
|
+
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,r,i){r.isDark=!0,r.cssClass="ace-monokai",r.cssText=n("./monokai-css");var a=n("../lib/dom");a.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){e&&(e.exports=n)})}()})(OO);const AO=it.div`
|
|
331
331
|
display: flex;
|
|
332
332
|
flex-direction: row;
|
|
333
333
|
height: 100%;
|
|
334
334
|
width: 100%;
|
|
335
|
-
|
|
335
|
+
`,$O=it.div`
|
|
336
336
|
.controls {
|
|
337
337
|
position: absolute;
|
|
338
338
|
right: 5px;
|
|
@@ -353,7 +353,34 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
`,
|
|
356
|
+
`,u0={color:"primary.main","&:hover":{color:"secondary.main"}},d0=e=>{const[t,n]=X.useState(e.source);return x.jsxs(x.Fragment,{children:[x.jsx($O,{children:x.jsxs("div",{className:"controls cancel-drag",children:[x.jsx(un,{size:"large",onClick:()=>e.onSave(t),children:x.jsx(a0,{fontSize:"medium",sx:u0})}),x.jsx(un,{size:"large",onClick:e.onClose,children:x.jsx(l0,{fontSize:"large",sx:u0})})]})}),x.jsx(AO,{children:x.jsx(dx,{mode:"javascript",theme:"monokai",name:"codeEditor",value:t,onChange:r=>n(r),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}})})]})},MO=Cn(x.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"),BO=Cn(x.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"),DO=it.div`
|
|
357
|
+
position: fixed;
|
|
358
|
+
top: 0;
|
|
359
|
+
left: 0;
|
|
360
|
+
width: 100%;
|
|
361
|
+
height: 100%;
|
|
362
|
+
background-color: rgba(0, 0, 0, 0.5); /* Darkened, transparent background */
|
|
363
|
+
display: flex;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
align-items: center;
|
|
366
|
+
z-index: 10000; /* Increased z-index to be higher than all other components (others use 9999) */
|
|
367
|
+
`,LO=it.div`
|
|
368
|
+
border: 4px solid rgba(255, 255, 255, 0.3);
|
|
369
|
+
border-top: 4px solid white;
|
|
370
|
+
border-radius: 50%;
|
|
371
|
+
width: 40px;
|
|
372
|
+
height: 40px;
|
|
373
|
+
animation: spin 1s linear infinite;
|
|
374
|
+
|
|
375
|
+
@keyframes spin {
|
|
376
|
+
0% {
|
|
377
|
+
transform: rotate(0deg);
|
|
378
|
+
}
|
|
379
|
+
100% {
|
|
380
|
+
transform: rotate(360deg);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
`,$s=({isVisible:e})=>e?x.jsx(DO,{children:x.jsx(LO,{})}):null,f0=X.createContext(null),p0=()=>{const e=X.useContext(f0);if(!e)throw new Error("useAPI must be used within an APIProvider");return e},jO=({children:e})=>{const[t,n]=X.useState(0),r=X.useCallback(async a=>{n(l=>l+1);try{return await a}finally{n(l=>Math.max(0,l-1))}},[]),i=X.useCallback(async(a,l)=>(n(c=>c+1),new Promise((c,d)=>{const h=a(),y=()=>{n(m=>Math.max(0,m-1))};h.addEventListener("load",()=>{if(y(),h.status>=200&&h.status<300)try{const m=l(h);c(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 x.jsxs(f0.Provider,{value:{isLoading:t>0,wrapAPICall:r,wrapXHRCall:i},children:[x.jsx($s,{isVisible:t>0}),e]})},h0=e=>{const t=e;return{createProject:async(C,P)=>{const M={description:C,component_namespace:P};return await fetch(`${t}/create_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},getProjects:async()=>await fetch(`${t}/fetch_projects`,{method:"GET",headers:{"Content-Type":"application/json"}}),getSubdomains:async C=>await fetch(`${t}/subdomains?project_name=${C}`,{method:"GET",headers:{"Content-Type":"application/json"}}),allocateSubdomain:async(C,P)=>{const M={project_name:C,subdomain:P};return await fetch(`${t}/allocate_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},releaseSubdomain:async(C,P)=>{const M={project_name:C,subdomain:P};return await fetch(`${t}/release_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},publishProject:async(C,P)=>{const M={project_name:C,git_ref:P};return await fetch(`${t}/publish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},unpublishProject:async C=>{const P={project_name:C};return await fetch(`${t}/unpublish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(P)})},tagCommit:async(C,P,M)=>{const D={project_name:C,commit_hash:P,tag_name:M};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(C,P,M,D)=>{const $={project_name:C,component_namespace:P,component_name:M,layout_metadata:D};return await fetch(`${t}/add_project_component`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},updateProjectComponentLayoutMetadata:async(C,P,M)=>{const D={project_name:C,component_id:P,layout_metadata:M};return await fetch(`${t}/update_project_component_layout_metadata`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},updateProjectComponentSourceCode:async(C,P,M)=>{const D={project_name:C,component_id:P,source_code:M};return await fetch(`${t}/update_project_component_source_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},deleteProjectFile:async(C,P)=>{const M={project_name:C,file_path:P};return await fetch(`${t}/delete_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},resetProjectFile:async(C,P,M,D,$)=>{let z={project_name:C,file_path:P,git_ref:M};return D&&(z.prune=D),$&&(z.extra_metadata=$),await fetch(`${t}/reset_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)})},deleteProject:async C=>{const P={projects:[C]};return await fetch(`${t}/delete_projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(P)})},requestErrorCorrection:async(C,P,M)=>{const D={project_name:C,component_id:P,error_message:M};return await fetch(`${t}/error_correction`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},addImage:async C=>await fetch(`${t}/add_image`,{method:"POST",body:C})}},g0=e=>{const t=e;return{getQueryContent:async r=>await fetch(`${t}/v1/public/sql/content-queries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({queryId:r,biscuits:[]})})}};function FO(e){return typeof e=="function"}const NO=e=>{const{wrapAPICall:t}=p0(),n=h0(e);return new Proxy(n,{get:(i,a)=>{const l=i[a];return FO(l)?(...c)=>t(l.apply(i,c)):l}})},_f=X.createContext(null);_f.Consumer;const zO=e=>{const[t,n]=X.useState({projectName:null,projectURL:null}),[r,i]=X.useState({API_BASE_URL:null,WS_BASE_URL:null,GW_BASE_URL:null,CORS_PROXY:null}),[a]=X.useState(()=>h0(e.config.API_BASE_URL)),c=(r.API_BASE_URL?NO(r.API_BASE_URL):null)||a,[d,h]=X.useState(g0(e.config.GW_BASE_URL)),[y,m]=X.useState(""),[v,w]=X.useState(rc()),b=()=>{w(rc())};return X.useEffect(()=>{i(e.config),h(g0(e.config.GW_BASE_URL)),e.metadata&&n(e.metadata)},[e.config]),x.jsx(_f.Provider,{value:{config:r,projectMetadata:t,setProjectMetadata:n,syncToken:v,setSyncToken:b,selectedComponentId:y,setSelectedComponentId:m,APIHandler:c,gwAPIHandler:d},children:e.children})},WO=e=>x.jsx(jO,{children:x.jsx(zO,{...e})}),Zn=()=>{const e=X.useContext(_f);if(e===null)throw new Error("Invalid project context.");return{...e}},UO=it.div`
|
|
357
384
|
.controls {
|
|
358
385
|
position: absolute;
|
|
359
386
|
right: 5px;
|
|
@@ -374,7 +401,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
374
401
|
}
|
|
375
402
|
}
|
|
376
403
|
}
|
|
377
|
-
`,
|
|
404
|
+
`,Ms={color:"primary.main","&:hover":{color:"secondary.main"}},HO={color:"#FFD700",backgroundColor:"black","&:hover":{color:"#FFB700"}},GO=async e=>{await navigator.clipboard.writeText(e)},Ef=e=>{const{projectMetadata:t,APIHandler:n,setSyncToken:r}=Zn(),i=async()=>{if((await n.requestErrorCorrection(t.projectName,e.componentId,e.message)).status!==200)throw new Error("Error requesting error correction.");r()};return x.jsxs(x.Fragment,{children:[x.jsx(UO,{children:x.jsxs("div",{className:"controls cancel-drag",children:[x.jsx(un,{size:"large",onClick:()=>i(),children:x.jsx(BO,{fontSize:"medium",sx:HO})}),x.jsx(un,{size:"large",onClick:e.onUndo,children:x.jsx(Ng,{fontSize:"medium",sx:Ms})}),x.jsx(un,{size:"large",onClick:e.onRedo,children:x.jsx(Fg,{fontSize:"medium",sx:Ms})}),x.jsx(un,{size:"large",onClick:()=>GO(e.message),children:x.jsx(MO,{fontSize:"medium",sx:Ms})}),x.jsx(un,{size:"large",onClick:e.onCodeEdit,children:x.jsx(Lg,{fontSize:"medium",sx:Ms})}),x.jsx(un,{onClick:e.onDelete,size:"large",children:x.jsx(jg,{fontSize:"medium",sx:Ms})})]})}),x.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:[x.jsx("strong",{style:{marginBottom:"10px"},children:"Error:"}),x.jsx("div",{style:{flex:1,overflowY:"auto",whiteSpace:"pre-wrap"},children:e.message})]})]})};class qO 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=x.jsx(Ef,{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 VO=X.forwardRef(({style:e,className:t,onMouseDown:n,onMouseUp:r,onTouchEnd:i,children:a,component:l,componentId:c,fallbackConfig:d,controls:h},y)=>{const{selectedComponentId:m}=Zn(),[v,w]=X.useState(!1),b=X.useMemo(()=>m===c,[m]);return x.jsxs("div",{style:{...e},className:t+(b?" selected":""),ref:y,onMouseDown:n,onMouseUp:r,onTouchEnd:i,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[x.jsx("div",{className:"grid-item "+(b?"selected":""),children:x.jsxs(qO,{componentId:c,fallbackConfig:d,children:[v&&h,l]})}),a]})}),Rf=vy.WidthProvider(Sk);var oc=(e=>(e[e.EditMode=0]="EditMode",e[e.PreviewMode=1]="PreviewMode",e))(oc||{});const KO=it.div`
|
|
378
405
|
.react-grid-layout {
|
|
379
406
|
position: relative;
|
|
380
407
|
// transition: height 200ms ease;
|
|
@@ -422,7 +449,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
422
449
|
box-sizing: border-box;
|
|
423
450
|
cursor: se-resize;
|
|
424
451
|
}
|
|
425
|
-
`,
|
|
452
|
+
`,m0=it.div`
|
|
426
453
|
.grid-container {
|
|
427
454
|
display: flex;
|
|
428
455
|
|
|
@@ -454,7 +481,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
454
481
|
.react-grid-drag-handle {
|
|
455
482
|
cursor: move;
|
|
456
483
|
}
|
|
457
|
-
`,
|
|
484
|
+
`,YO=e=>x.jsx(x.Fragment,{children:x.jsx(Rf,{className:"layout",rowHeight:50,cols:12,compactType:null,isResizable:!1,isDraggable:!1,preventCollision:!0,layout:e.layout,children:e.components})}),XO=e=>x.jsx(x.Fragment,{children:x.jsx(Rf,{className:"layout",rowHeight:50,cols:12,onLayoutChange:e.onLayoutChange,onResizeStop:e.onResize,onDrop:e.onDrop,compactType:null,preventCollision:!0,draggableCancel:".cancel-drag",layout:e.layout,isDroppable:!0,draggableHandle:".react-grid-drag-handle",onDragStop:e.onDrag,children:e.components})}),JO=it.div`
|
|
458
485
|
display: flex;
|
|
459
486
|
flex-direction: row;
|
|
460
487
|
align-items: center;
|
|
@@ -510,7 +537,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
510
537
|
height: 24px;
|
|
511
538
|
width: 24px;
|
|
512
539
|
}
|
|
513
|
-
`,jo={color:"primary.main","&:hover":{color:"secondary.main"}},
|
|
540
|
+
`,jo={color:"primary.main","&:hover":{color:"secondary.main"}},Pf=e=>{const{selectedComponentId:t,setSelectedComponentId:n}=Zn(),r=X.useMemo(()=>e.componentId===t,[t]),i=X.useCallback(()=>{n(r?"":e.componentId)},[r]);return x.jsx(x.Fragment,{children:x.jsxs(JO,{children:[x.jsx("div",{className:"control-section select-button-container",children:x.jsx(un,{size:"large",onClick:i,children:r?x.jsx(m_,{fontSize:"medium",sx:jo}):x.jsx(g_,{fontSize:"medium",sx:jo})})}),x.jsx("div",{className:"control-section drag-button-container",children:x.jsx(un,{size:"large",className:"react-grid-drag-handle",children:x.jsx(h_,{fontSize:"large",sx:jo})})}),x.jsxs("div",{className:"control-section edit-button-container",children:[x.jsx(un,{size:"large",onClick:e.onCodeEdit,children:x.jsx(Lg,{fontSize:"medium",sx:jo})}),x.jsx(un,{size:"large",onClick:e.onUndo,children:x.jsx(Ng,{fontSize:"medium",sx:jo})}),x.jsx(un,{size:"large",onClick:()=>e.onRedo(),children:x.jsx(Fg,{fontSize:"medium",sx:jo})}),x.jsx(un,{onClick:e.onDelete,size:"large",children:x.jsx(jg,{fontSize:"medium",sx:jo})})]})]})})},ZO=e=>x.jsx(x.Fragment,{children:x.jsx("div",{className:"droppable-element",draggable:!0,unselectable:"on",onDragStart:t=>{t.dataTransfer.setData("text/plain",""),t.dataTransfer.setData("application/reactgridlayout",JSON.stringify({class:e.nodeClass,layout:e.nodeLayout}))},children:e.node})}),lo=(e,t,n)=>x.jsx(VO,{component:e.component,componentId:e.id,controls:t,fallbackConfig:n},e.id),QO=()=>x.jsx(Kt,{sx:{display:"flex"},children:x.jsx(BE,{})}),e2=e=>{const{projectMetadata:t,setSyncToken:n,APIHandler:r}=Zn(),i=$=>()=>{let z=e.components.find(V=>V.id===$);P(V=>[...V.filter(R=>R.props.componentId!==$),lo(z,x.jsx(Pf,{componentId:$,onInlineEdit:a($),onCodeEdit:l($),onUndo:E($),onRedo:k($),onDelete:b($)}),{onDelete:b,onCodeEdit:d})])},a=$=>()=>{let z={id:$,component:x.jsx(IO,{onClose:i($),onSave:()=>console.log("saving")})};P(V=>[...V.filter(R=>R.props.componentId!==$),lo(z)])},l=$=>()=>{const z=`${t.projectName}/src/ProjectComponents/`,V=`${$}/component.tsx`,R=`${window.miDir}/${z}/${V}`;window.pfs.readFile(R,"utf8").then(G=>{let te=G,H={id:$,component:x.jsx(d0,{source:te,onClose:i($),onSave:h(t.projectName,$)})};P(Y=>[...Y.filter(ee=>ee.props.componentId!==$),lo(H)])})},c=($,z)=>()=>{let V={id:$,component:x.jsx(Ef,{componentId:$,message:z,onUndo:E($),onRedo:k($),onDelete:b($),onCodeEdit:d($,z)})};P(R=>[...R.filter(G=>G.props.componentId!==$),lo(V)])},d=($,z)=>()=>{const V=`${t.projectName}/src/ProjectComponents/`,R=`${$}/component.tsx`,G=`${window.miDir}/${V}/${R}`;window.pfs.readFile(G,"utf8").then(te=>{let H=te,Y={id:$,component:x.jsx(d0,{source:H,onClose:c($,z),onSave:h(t.projectName,$)})};P(ee=>[...ee.filter(ae=>ae.props.componentId!==$),lo(Y)])})},h=($,z)=>V=>{let R=$,G=z;r.updateProjectComponentSourceCode(R,G,V).then(te=>{te.status===200&&(n(),i(G)())})},y=$=>{O($)},m=(...$)=>{const z=$[2];r.updateProjectComponentLayoutMetadata(t.projectName,z.i,xs.pick(z,["w","h","x","y"])).then(V=>{V.status===200&&n()})},v=(...$)=>{const z=$[2];r.updateProjectComponentLayoutMetadata(t.projectName,z.i,xs.pick(z,["w","h","x","y"])).then(V=>{V.status===200&&n()})},w=($,z,V)=>{let R=JSON.parse(V.dataTransfer.getData("application/reactgridlayout")),G={id:`${R.class}-${rc()}`,component:x.jsx(QO,{})},te={...xs.pick(z,["x","y"]),...xs.pick(R.layout,["w","h"]),i:G.id};O(H=>[...H,te]),P(H=>[...H,lo(G,x.jsx(Pf,{componentId:G.id,onInlineEdit:a(G.id),onCodeEdit:l(G.id),onUndo:E(G.id),onRedo:k(G.id),onDelete:b(G.id)}),{onDelete:b,onCodeEdit:d})]),r.addProjectComponent(t.projectName,"example",R.class,xs.pick(te,["x","y","w","h"])).then(H=>{H.status===200&&n()})},b=$=>()=>{P(V=>V.filter(R=>R.props.componentId!==$)),O(V=>V.filter(R=>R.id!==$));const z=`src/ProjectComponents/${$}`;r.deleteProjectFile(t.projectName,z).then(V=>{V.status===200&&n()})},E=$=>async()=>{const z=`src/ProjectComponents/${$}/component.tsx`,[V,R]=await kw(t.projectName,z);if((await r.resetProjectFile(t.projectName,z,R,!1,JSON.stringify({sourceRef:V,opType:"UNDO"}))).status!==200)throw new Error("Failed to reset project file (undo)");n()},k=$=>async()=>{const z=`src/ProjectComponents/${$}/component.tsx`,[V,R]=await Ow(t.projectName,z);if((await r.resetProjectFile(t.projectName,z,R,!1,JSON.stringify({sourceRef:V,opType:"REDO"}))).status!==200)throw new Error("Failed to reset project file (redo)");n()},[_,O]=X.useState([]),[C,P]=X.useState([]),[M,D]=X.useState([]);return X.useEffect(()=>{O(e.layout)},[e.layout]),X.useEffect(()=>{let $=[];e.components.forEach(z=>{var V;if((V=z==null?void 0:z.overrides)!=null&&V.compileError){z.component=x.jsx(Ef,{componentId:z.id,message:z.overrides.compileError.message,onDelete:b(z.id),onUndo:E(z.id),onRedo:k(z.id),onCodeEdit:d(z.id,z.overrides.compileError.message)}),$.push(lo(z));return}$.push(lo(z,x.jsx(Pf,{componentId:z.id,onInlineEdit:a(z.id),onCodeEdit:l(z.id),onUndo:E(z.id),onRedo:k(z.id),onDelete:b(z.id)}),{onDelete:b,onCodeEdit:d}))}),P($)},[e.components]),X.useEffect(()=>{D(e.componentLibrary)},[e.componentLibrary]),x.jsx(x.Fragment,{children:x.jsx(KO,{children:x.jsxs(m0,{children:[e.renderMode===0&&x.jsx(XO,{layout:_,components:C,onLayoutChange:y,onResize:m,onDrop:w,onDrag:v}),e.renderMode===1&&x.jsx(YO,{layout:_,components:C})]})})})},t2=e=>x.jsx(x.Fragment,{children:x.jsx(m0,{children:x.jsx(Rf,{className:"layout",rowHeight:50,cols:12,compactType:null,isResizable:!1,isDraggable:!1,preventCollision:!0,layout:e.layout,children:e.components.map(t=>x.jsx("div",{className:"grid-item",children:t.component},t.id))})})}),n2=it.div`
|
|
514
541
|
.component-library .list-item {
|
|
515
542
|
display: flex;
|
|
516
543
|
justify-content: center;
|
|
@@ -519,7 +546,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
519
546
|
background-color: gray;
|
|
520
547
|
margin: 3px;
|
|
521
548
|
}
|
|
522
|
-
`,
|
|
549
|
+
`,r2=e=>{const t=i=>e.componentLibrary?i.map(a=>x.jsx("div",{className:"list-item",children:x.jsx(ZO,{nodeClass:a.class,nodeLayout:a.layout,node:x.jsx("div",{children:a.class})})},a.class)):[],[n,r]=X.useState(t(e.componentLibrary));return X.useEffect(()=>{r(t(e.componentLibrary))},[e.componentLibrary]),x.jsx(n2,{children:x.jsx("div",{className:"component-library",children:x.jsx("ul",{children:n})})})},o2=()=>{const{APIHandler:e,projectMetadata:t}=Zn(),n=X.useRef(""),[r,i]=X.useState(""),a=X.useMemo(()=>!t.projectName,[t.projectName]),l=X.useMemo(()=>n.current===r,[r]),c=async()=>{if((await e.allocateSubdomain(t.projectName,r)).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,i(y)}})},[t.projectName]),x.jsx(x.Fragment,{children:x.jsx(Kt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:x.jsxs(Kt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[x.jsx(Kt,{sx:{flex:3},children:x.jsx(vl,{label:"Subdomain",variant:"outlined",fullWidth:!0,value:r,disabled:a,onChange:d=>i(d.target.value),size:"small"})}),x.jsx(pi,{variant:"outlined",fullWidth:!0,disabled:l,onClick:c,sx:{flex:1},children:"Update"})]})})})},i2=e=>{const t=r=>r.filter(i=>i.tag!=="published"),n=r=>r.toSorted((i,a)=>i.timestamp-a.timestamp);return x.jsx(x.Fragment,{children:x.jsx(Kt,{children:x.jsx(dd,{dense:!0,sx:{width:"100%"},children:e.tags&&n(t(e.tags)).map(r=>x.jsx(om,{onClick:e.onSelect(r),children:x.jsx(sm,{primary:r.tag})},r.tag))})})})},s2=()=>{const{projectMetadata:e,APIHandler:t,config:n}=Zn(),[r,i]=X.useState([]),[a,l]=X.useState(""),c=X.useRef({}),[d,h]=X.useState({}),[y,m]=X.useState(""),v=X.useMemo(()=>!e.projectName,[e.projectName]),w=X.useMemo(()=>d.tag===c.current.tag,[d]),b=async()=>{const P=await mu(e.projectName,e.projectURL,n.CORS_PROXY);i(P)},E=async()=>{const P=await Iw(e.projectName);if((await t.tagCommit(e.projectName,P,a)).status!==200)throw new Error("Error tagging commit.");await b()},k=async()=>{if((await t.publishProject(e.projectName,d.ref)).status!==200)throw new Error("Error releasing project.")},_=async()=>{if((await t.unpublishProject(e.projectName)).status!==200)throw new Error("Error unpublishing project.")},O=P=>()=>{h(P),m(P.tag)},C=async()=>{if((await t.deleteProject(e.projectName)).status!==200)throw new Error("Error deleting project.");location.reload()};return X.useEffect(()=>{b()},[e.projectName]),x.jsx(x.Fragment,{children:x.jsxs(Kt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},overflow:"hidden",children:[x.jsx(Kt,{sx:{width:"100%"},children:x.jsx(pi,{variant:"outlined",color:"error",fullWidth:!0,onClick:_,children:"unpublish"})}),x.jsxs(Kt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[x.jsx(Kt,{sx:{flex:3},children:x.jsx(vl,{label:"Release to Publish",variant:"outlined",fullWidth:!0,value:y||"",disabled:!0,size:"small"})}),x.jsx(pi,{variant:"outlined",fullWidth:!0,disabled:w,onClick:k,sx:{flex:1},children:"Publish"})]}),x.jsxs(Kt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[x.jsx(Kt,{sx:{flex:3},children:x.jsx(vl,{label:"New Release Name",variant:"outlined",fullWidth:!0,value:a,disabled:v,onChange:P=>l(P.target.value),size:"small"})}),x.jsx(pi,{variant:"outlined",fullWidth:!0,disabled:!a,onClick:E,sx:{flex:1},children:"Create"})]}),x.jsx(Kt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{maxHeight:"300px",padding:"5px",width:"100%",overflow:"auto",background:"DarkGrey",borderRadius:"10px"},children:x.jsx(i2,{tags:r,onSelect:O})}),x.jsx(Kt,{sx:{padding:"50px 0px 0px 0px",width:"100%"},children:x.jsx(pi,{variant:"outlined",color:"error",fullWidth:!0,onClick:()=>C(),disabled:v,children:"Delete Project"})})]})})},a2=()=>x.jsxs(x.Fragment,{children:[x.jsx(o2,{}),x.jsx(pl,{sx:{borderBottomWidth:5}}),x.jsx(s2,{})]}),l2=it.div`
|
|
523
550
|
position: fixed;
|
|
524
551
|
top: 0;
|
|
525
552
|
left: 0;
|
|
@@ -530,7 +557,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
530
557
|
justify-content: center;
|
|
531
558
|
align-items: center;
|
|
532
559
|
z-index: 1000;
|
|
533
|
-
`,
|
|
560
|
+
`,c2=it.dialog`
|
|
534
561
|
background-color: white;
|
|
535
562
|
padding: 20px;
|
|
536
563
|
border-radius: 8px;
|
|
@@ -562,12 +589,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
562
589
|
margin: 0;
|
|
563
590
|
line-height: 1.4;
|
|
564
591
|
}
|
|
565
|
-
`,
|
|
592
|
+
`,u2=it.div`
|
|
566
593
|
display: flex;
|
|
567
594
|
gap: 10px;
|
|
568
595
|
justify-content: center;
|
|
569
596
|
margin-top: 10px;
|
|
570
|
-
`,
|
|
597
|
+
`,y0=it.button`
|
|
571
598
|
padding: 8px 16px;
|
|
572
599
|
border: none;
|
|
573
600
|
border-radius: 4px;
|
|
@@ -594,7 +621,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
594
621
|
${e=>e.variant==="primary"?"#cc0aac":"#5000bf"};
|
|
595
622
|
outline-offset: 2px;
|
|
596
623
|
}
|
|
597
|
-
`;class
|
|
624
|
+
`;class d2 extends X.Component{constructor(t){super(t),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.handleKeyDown=n=>{n.key==="Escape"&&this.props.onClose()},this.state={hasError:!1,error:null},this.dialogRef=X.createRef(),this.retryButtonRef=X.createRef(),this.lastFocusedElement=null}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ImageGallery Error:",t),console.error("Error Info:",n)}componentDidUpdate(t,n){var r,i;!n.hasError&&this.state.hasError?(this.lastFocusedElement=document.activeElement,(r=this.retryButtonRef.current)==null||r.focus()):n.hasError&&!this.state.hasError&&((i=this.lastFocusedElement)==null||i.focus())}componentWillUnmount(){var t;this.state.hasError&&((t=this.lastFocusedElement)==null||t.focus())}render(){var t;return this.state.hasError?x.jsx(l2,{role:"presentation",children:x.jsxs(c2,{ref:this.dialogRef,role:"dialog","aria-labelledby":"error-title","aria-describedby":"error-description",onKeyDown:this.handleKeyDown,"aria-modal":"true",children:[x.jsx("h2",{id:"error-title",children:"Something went wrong"}),x.jsxs("div",{id:"error-description",children:[x.jsx("p",{children:((t=this.state.error)==null?void 0:t.message)||"An error occurred while displaying the image gallery."}),x.jsx("p",{children:"You can try again or close the gallery."})]}),x.jsxs(u2,{children:[x.jsx(y0,{ref:this.retryButtonRef,variant:"primary",onClick:this.handleRetry,"aria-label":"Try loading the gallery again",children:"Try Again"}),x.jsx(y0,{onClick:this.props.onClose,"aria-label":"Close gallery and return to chat",children:"Close Gallery"})]})]})}):x.jsx(x.Fragment,{children:this.props.children})}}const Bs=["jpg","jpeg","png","gif","webp"],Tf={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"},v0=5*1024*1024,If=async(e,t,n)=>{if(e)try{n({status:"loading"});const r=`${window.miDir}/${t}/src/assets/images`;let i;try{i=await ch(r)}catch{n({status:"empty"});return}const a=i.filter(d=>{var y;const h=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"";return Bs.includes(h)}),c=(await Promise.all(a.map(async d=>{var y;const h=`${r}/${d}`;try{const m=await window.pfs.readFile(h),v=Buffer.from(m).toString("base64"),w=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"",b=Tf[w]||"image/jpeg";return{name:d,path:`./src/assets/images/${d}`,base64:`data:${b};base64,${v}`}}catch(m){return console.error(`Error loading image ${d}:`,m),null}}))).filter(d=>d!==null);c.length===0?n({status:"empty"}):n({status:"loaded",images:c})}catch(r){console.error("Error loading images:",r),n({status:"error",message:"Failed to load images. Please try again."})}},b0=e=>{var n;return((n=(e instanceof File?e.name:e).split(".").pop())==null?void 0:n.toLowerCase())||""},x0=e=>Bs.includes(e),f2=e=>{const t=b0(e);if(!x0(t))return!1;const n=Tf[t];return e.type===n},p2=e=>{const n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,r)).toFixed(2))} ${n[r]}`},h2=e=>{if(!e)return{isValid:!1,error:"No file selected"};if(e.size===0)return{isValid:!1,error:"File is empty"};if(e.size>v0)return{isValid:!1,error:`File size exceeds the ${p2(v0)} limit`};const t=b0(e);return x0(t)?f2(e)?{isValid:!0}:{isValid:!1,error:"Invalid file type. File extension does not match its content"}:{isValid:!1,error:`Unsupported file type. Supported types: ${Bs.join(", ").toUpperCase()}`}},g2=(e,t)=>{const n=new FormData;return n.append("project_name",e),n.append("upload_file",t),n},m2=()=>{const{wrapXHRCall:e}=p0();return X.useCallback((t,n,r)=>e(()=>{const i=new XMLHttpRequest;i.upload.addEventListener("progress",l=>{if(l.lengthComputable){const c=Math.round(l.loaded*100/l.total);r({percentage:c,status:`Uploading... ${c}%`})}}),i.open("POST",`${t}/add_image`);const a=localStorage.getItem("accessToken");return a?i.setRequestHeader("Authorization",`Bearer ${a}`):console.warn("No access token found in localStorage."),i.send(n),i},i=>{try{return JSON.parse(i.responseText)}catch{throw new Error("Invalid response format")}}),[e])},y2=it.div`
|
|
598
625
|
position: fixed;
|
|
599
626
|
top: 0;
|
|
600
627
|
left: 0;
|
|
@@ -606,7 +633,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
606
633
|
align-items: center;
|
|
607
634
|
z-index: 1000;
|
|
608
635
|
backdrop-filter: blur(2px);
|
|
609
|
-
`,
|
|
636
|
+
`,v2=it.dialog`
|
|
610
637
|
background-color: white;
|
|
611
638
|
padding: 20px;
|
|
612
639
|
border-radius: 8px;
|
|
@@ -630,7 +657,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
630
657
|
outline: 2px solid #5000bf;
|
|
631
658
|
outline-offset: 2px;
|
|
632
659
|
}
|
|
633
|
-
`,
|
|
660
|
+
`,b2=it.button`
|
|
634
661
|
position: absolute;
|
|
635
662
|
top: 10px;
|
|
636
663
|
right: 10px;
|
|
@@ -649,7 +676,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
649
676
|
outline: 2px solid #5000bf;
|
|
650
677
|
outline-offset: 2px;
|
|
651
678
|
}
|
|
652
|
-
`,kf=
|
|
679
|
+
`,kf=it.div`
|
|
653
680
|
display: grid;
|
|
654
681
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
655
682
|
gap: 20px;
|
|
@@ -662,7 +689,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
662
689
|
display: flex;
|
|
663
690
|
justify-content: center;
|
|
664
691
|
}
|
|
665
|
-
`,
|
|
692
|
+
`,Of=it.button`
|
|
666
693
|
border: 1px solid #ccc;
|
|
667
694
|
border-radius: 4px;
|
|
668
695
|
padding: 10px;
|
|
@@ -713,7 +740,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
713
740
|
white-space: nowrap;
|
|
714
741
|
border: 0;
|
|
715
742
|
}
|
|
716
|
-
`,
|
|
743
|
+
`,Ds=it.div`
|
|
717
744
|
text-align: center;
|
|
718
745
|
padding: 20px;
|
|
719
746
|
color: #666;
|
|
@@ -728,7 +755,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
728
755
|
max-width: 400px;
|
|
729
756
|
line-height: 1.4;
|
|
730
757
|
}
|
|
731
|
-
`;
|
|
758
|
+
`;it.button`
|
|
732
759
|
background: #5000bf;
|
|
733
760
|
color: white;
|
|
734
761
|
border: none;
|
|
@@ -745,7 +772,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
745
772
|
outline: 2px solid #cc0aac;
|
|
746
773
|
outline-offset: 2px;
|
|
747
774
|
}
|
|
748
|
-
`;const
|
|
775
|
+
`;const x2=it.div`
|
|
749
776
|
border: 2px dashed
|
|
750
777
|
${e=>e.isError?"#ff4444":e.isDragActive?"#5000bf":"#ccc"};
|
|
751
778
|
border-radius: 8px;
|
|
@@ -764,23 +791,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
764
791
|
input[type="file"] {
|
|
765
792
|
display: none;
|
|
766
793
|
}
|
|
767
|
-
`,
|
|
794
|
+
`,w2=SO`
|
|
768
795
|
0% { transform: rotate(0deg); }
|
|
769
796
|
100% { transform: rotate(360deg); }
|
|
770
|
-
`,
|
|
797
|
+
`,S2=it.div`
|
|
771
798
|
display: inline-block;
|
|
772
799
|
width: 20px;
|
|
773
800
|
height: 20px;
|
|
774
801
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
775
802
|
border-radius: 50%;
|
|
776
803
|
border-top-color: #fff;
|
|
777
|
-
animation: ${
|
|
804
|
+
animation: ${w2} 1s ease-in-out infinite;
|
|
778
805
|
margin-right: 8px;
|
|
779
|
-
`,
|
|
806
|
+
`,C2=it.p`
|
|
780
807
|
color: ${e=>e.isError?"#ff4444":"#666"};
|
|
781
808
|
margin: 5px 0;
|
|
782
809
|
font-size: 0.9em;
|
|
783
|
-
`,
|
|
810
|
+
`,_2=it.div`
|
|
784
811
|
font-size: 0.9em;
|
|
785
812
|
color: #666;
|
|
786
813
|
margin: 10px 0;
|
|
@@ -794,10 +821,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
794
821
|
li {
|
|
795
822
|
margin: 3px 0;
|
|
796
823
|
}
|
|
797
|
-
`,
|
|
824
|
+
`,E2=it.div`
|
|
798
825
|
width: 100%;
|
|
799
826
|
margin: 10px 0;
|
|
800
|
-
`,
|
|
827
|
+
`,R2=it.div`
|
|
801
828
|
width: 100%;
|
|
802
829
|
height: 4px;
|
|
803
830
|
background-color: #eee;
|
|
@@ -812,13 +839,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
812
839
|
background-color: #5000bf;
|
|
813
840
|
transition: width 0.3s ease;
|
|
814
841
|
}
|
|
815
|
-
`,
|
|
842
|
+
`,P2=({isOpen:e,onClose:t,onImageSelect:n,projectName:r})=>{const{config:i,projectMetadata:a,setSyncToken:l}=Zn(),c=m2(),[d,h]=X.useState({status:"loading"}),[y,m]=X.useState({isDragging:!1,hasError:!1}),[v,w]=X.useState(!1),b=X.useRef(null),E=X.useRef(null),k=X.useRef(null),_=X.useRef(null);if(X.useEffect(()=>{var H;e?(_.current=document.activeElement,(H=E.current)==null||H.focus()):_.current&&_.current.focus()},[e]),X.useEffect(()=>{const H=Y=>{Y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)):()=>{}},[e,t]),X.useEffect(()=>(If(e,r,h),()=>{}),[e,r]),!e)return null;const O=H=>{n(H),t()},C=H=>{const Y=d.status==="loaded"?d.images:[];h({status:"uploading",currentImages:Y,uploadProgress:H})},P=async H=>{if(H.length===0)return;const Y=H[0];if(!Y)return;const ee=h2(Y);if(!ee.isValid){m({isDragging:!1,hasError:!0,errorMessage:ee.error});return}const ae=d.status==="loaded"?d.images:[];try{h({status:"uploading",currentImages:ae,uploadProgress:{percentage:0,status:"Starting upload..."}});const fe=g2(r,Y);await c(i.API_BASE_URL,fe,C),l(),a.projectName&&a.projectURL&&(w(!0),await aa(a.projectName,a.projectURL,i.CORS_PROXY),w(!1),await If(e,r,h)),m({isDragging:!1,hasError:!1})}catch(fe){h({status:"upload_error",currentImages:ae,error:fe instanceof Error?fe.message:"Failed to upload image"})}},M=H=>{const Y=H.target.files;Y&&P(Array.from(Y)),H.target.value=""},D=()=>{var H;(H=k.current)==null||H.click()},$=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!0,hasError:!1})},z=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!1,hasError:!1})},V=H=>{H.preventDefault(),H.stopPropagation()},R=H=>{H.preventDefault(),H.stopPropagation();const Y=Array.from(H.dataTransfer.files);P(Y)},G=()=>x.jsxs(x2,{onDragEnter:$,onDragLeave:z,onDragOver:V,onDrop:R,onClick:D,isDragActive:y.isDragging,isError:y.hasError,role:"button","aria-label":"Upload image",tabIndex:0,children:[x.jsx("input",{ref:k,type:"file",accept:Object.values(Tf).join(","),onChange:M,"aria-label":"File input"}),x.jsxs(_2,{children:[x.jsx("div",{children:y.isDragging?"Drop image here":"Drag and drop an image here, or click to select"}),x.jsxs("div",{children:["Supported formats: ",Bs.join(", ").toUpperCase()]})]}),y.hasError&&x.jsx(C2,{isError:!0,children:y.errorMessage})]}),te=()=>{switch(d.status){case"loading":return x.jsx(Ds,{role:"status","aria-live":"polite",children:"Loading images..."});case"error":return x.jsxs(Ds,{role:"alert",children:[x.jsx("div",{children:d.message}),x.jsx("button",{onClick:()=>If(e,r,h),"aria-label":"Try loading images again",className:"retry-button",children:"Try Again"})]});case"empty":return x.jsxs(x.Fragment,{children:[G(),x.jsxs(Ds,{role:"status",children:[x.jsx("div",{children:"No images available"}),x.jsxs("div",{className:"help-text",children:["Upload an image using the area above, or:",x.jsxs("ol",{children:[x.jsx("li",{children:"Create an 'images' directory in your project's src/assets folder"}),x.jsx("li",{children:"Add your images to the directory"}),x.jsx("li",{children:"Commit and push your changes"}),x.jsx("li",{children:"Pull the changes to this workspace"})]}),"Supported formats:"," ",Bs.join(", ").toUpperCase()]})]})]});case"uploading":return x.jsxs(x.Fragment,{children:[x.jsxs(Ds,{role:"status","aria-live":"polite",children:[x.jsx(S2,{}),x.jsx("div",{children:"Uploading image..."}),x.jsx(E2,{children:x.jsx(R2,{progress:d.uploadProgress.percentage,"aria-valuenow":d.uploadProgress.percentage,"aria-valuemin":0,"aria-valuemax":100})}),x.jsx("div",{children:d.uploadProgress.status})]}),d.currentImages.length>0&&x.jsx(kf,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>x.jsx("div",{role:"gridcell",children:x.jsxs(Of,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[x.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),x.jsx("p",{children:H.name})]})},H.path))})]});case"upload_error":return x.jsxs(x.Fragment,{children:[G(),x.jsx(Ds,{role:"alert",children:x.jsxs("div",{children:["Upload failed: ",d.error]})}),d.currentImages.length>0&&x.jsx(kf,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>x.jsx("div",{role:"gridcell",children:x.jsxs(Of,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[x.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),x.jsx("p",{children:H.name})]})},H.path))})]});case"loaded":return x.jsxs(x.Fragment,{children:[G(),x.jsx(kf,{role:"grid","aria-label":"Project images",children:d.images.map(H=>x.jsx("div",{role:"gridcell",children:x.jsxs(Of,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[x.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),x.jsx("p",{children:H.name}),x.jsx("span",{className:"sr-only",children:"Press enter or space to select this image"})]})},H.path))})]})}};return x.jsxs(y2,{role:"presentation",onClick:H=>{H.target===H.currentTarget&&t()},children:[x.jsx($s,{isVisible:v}),x.jsxs(v2,{ref:b,role:"dialog","aria-label":"Image gallery","aria-modal":"true",children:[x.jsx(b2,{ref:E,onClick:t,"aria-label":"Close gallery",children:"Close"}),te()]})]})},w0=e=>e.isOpen?x.jsx(d2,{onClose:e.onClose,children:x.jsx(P2,{...e})}):null;function T2(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var I2=!1,k2=/[A-Z]|^ms/g,O2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,S0=function(t){return t.charCodeAt(1)===45},C0=function(t){return t!=null&&typeof t!="boolean"},Af=Ru(function(e){return S0(e)?e:e.replace(k2,"-$&").toLowerCase()}),_0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(O2,function(r,i,a){return co={name:i,styles:a,next:co},i})}return ag[t]!==1&&!S0(t)&&typeof n=="number"&&n!==0?n+"px":n},A2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ic(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return co={name:i.name,styles:i.styles,next:co},i.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)co={name:l.name,styles:l.styles,next:co},l=l.next;var c=a.styles+";";return c}return $2(e,t,n)}}var d=n;return d}function $2(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ic(e,t,n[i])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var c=l;C0(c)&&(r+=Af(a)+":"+_0(a,c)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&I2)throw new Error(A2);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)C0(l[d])&&(r+=Af(a)+":"+_0(a,l[d])+";");else{var h=ic(e,t,l);switch(a){case"animation":case"animationName":{r+=Af(a)+":"+h+";";break}default:r+=a+"{"+h+"}"}}}}return r}var E0=/label:\s*([^\s;{]+)\s*(;|$)/g,co;function M2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";co=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=ic(n,t,a);else{var l=a;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=ic(n,t,e[c]),r){var d=a;i+=d[c]}E0.lastIndex=0;for(var h="",y;(y=E0.exec(i))!==null;)h+="-"+y[1];var m=sg(i)+h;return{name:m,styles:i,next:co}}/**
|
|
816
843
|
* @mui/styled-engine v6.1.9
|
|
817
844
|
*
|
|
818
845
|
* @license MIT
|
|
819
846
|
* This source code is licensed under the MIT license found in the
|
|
820
847
|
* LICENSE file in the root directory of this source tree.
|
|
821
|
-
*/function E2(e,t){return Ga(e,t)}function R2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const w0=[];function S0(e){return w0[0]=e,_2(w0)}function Fo(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 C0(e){if(j.isValidElement(e)||!Fo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=C0(e[n])}),t}function ic(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fo(e)&&Fo(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?r[i]=t[i]:Fo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Fo(e[i])?r[i]=ic(e[i],t[i],n):n.clone?r[i]=Fo(t[i])?C0(t[i]):t[i]:r[i]=t[i]}),r}const T2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function P2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=T2(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function h(v,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?h(v,l[l.indexOf(v)+1]):c(v)}function m(v){const S=l.indexOf(v);return S===0?c(l[1]):S===l.length-1?d(l[S]):h(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:h,only:y,not:m,unit:n,...i}}function k2(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function I2(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function O2(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function A2(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),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 r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const $2={borderRadius:4};function Bs(e,t){return t?ic(e,t,{clone:!1}):e}const sc={xs:0,sm:600,md:900,lg:1200,xl:1536},_0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sc[e]}px)`},M2={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:sc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||_0;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||_0;return Object.keys(t).reduce((l,c)=>{if(I2(a.keys,c)){const d=O2(r.containerQueries?r:M2,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||sc).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function B2(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function D2(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function E0(e){if(typeof e!="string")throw new Error(v2(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ac(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function lc(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ac(e,n)||r,t&&(i=t(i,r,e)),i}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,h=ac(d,r)||{};return Gr(l,c,m=>{let v=lc(h,i,m);return m===v&&typeof m=="string"&&(v=lc(h,i,`${t}${m==="default"?"":E0(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function L2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const j2={m:"margin",p:"padding"},F2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},R0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},N2=L2(e=>{if(e.length>2)if(R0[e])e=R0[e];else return[e];const[t,n]=e.split(""),r=j2[t],i=F2[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),Af=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Af,...$f];function Ds(e,t,n,r){const i=ac(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function T0(e){return Ds(e,"spacing",8)}function Ls(e,t){return typeof t=="string"||t==null?t:e(t)}function z2(e,t){return n=>e.reduce((r,i)=>(r[i]=Ls(t,n),r),{})}function W2(e,t,n,r){if(!t.includes(n))return null;const i=N2(n),a=z2(i,r),l=e[n];return Gr(e,l,a)}function P0(e,t){const n=T0(e.theme);return Object.keys(e).map(r=>W2(e,t,r,n)).reduce(Bs,{})}function Lt(e){return P0(e,Af)}Lt.propTypes={},Lt.filterProps=Af;function jt(e){return P0(e,$f)}jt.propTypes={},jt.filterProps=$f;function U2(e=8,t=T0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function cc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Bs(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const H2=er("border",Qn),G2=er("borderTop",Qn),q2=er("borderRight",Qn),V2=er("borderBottom",Qn),K2=er("borderLeft",Qn),Y2=er("borderColor"),X2=er("borderTopColor"),J2=er("borderRightColor"),Z2=er("borderBottomColor"),Q2=er("borderLeftColor"),eA=er("outline",Qn),tA=er("outlineColor"),uc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ds(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ls(t,r)});return Gr(e,e.borderRadius,n)}return null};uc.propTypes={},uc.filterProps=["borderRadius"],cc(H2,G2,q2,V2,K2,Y2,X2,J2,Z2,Q2,uc,eA,tA);const dc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ds(e.theme,"spacing",8),n=r=>({gap:Ls(t,r)});return Gr(e,e.gap,n)}return null};dc.propTypes={},dc.filterProps=["gap"];const fc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ds(e.theme,"spacing",8),n=r=>({columnGap:Ls(t,r)});return Gr(e,e.columnGap,n)}return null};fc.propTypes={},fc.filterProps=["columnGap"];const pc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ds(e.theme,"spacing",8),n=r=>({rowGap:Ls(t,r)});return Gr(e,e.rowGap,n)}return null};pc.propTypes={},pc.filterProps=["rowGap"];const nA=Wt({prop:"gridColumn"}),rA=Wt({prop:"gridRow"}),oA=Wt({prop:"gridAutoFlow"}),iA=Wt({prop:"gridAutoColumns"}),sA=Wt({prop:"gridAutoRows"}),aA=Wt({prop:"gridTemplateColumns"}),lA=Wt({prop:"gridTemplateRows"}),cA=Wt({prop:"gridTemplateAreas"}),uA=Wt({prop:"gridArea"});cc(dc,fc,pc,nA,rA,oA,iA,sA,aA,lA,cA,uA);function Ii(e,t){return t==="grey"?t:e}const dA=Wt({prop:"color",themeKey:"palette",transform:Ii}),fA=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ii}),pA=Wt({prop:"backgroundColor",themeKey:"palette",transform:Ii});cc(dA,fA,pA);function Ln(e){return e<=1&&e!==0?`${e*100}%`:e}const hA=Wt({prop:"width",transform:Ln}),Mf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||sc[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ln(n)}};return Gr(e,e.maxWidth,t)}return null};Mf.filterProps=["maxWidth"];const gA=Wt({prop:"minWidth",transform:Ln}),mA=Wt({prop:"height",transform:Ln}),yA=Wt({prop:"maxHeight",transform:Ln}),vA=Wt({prop:"minHeight",transform:Ln});Wt({prop:"size",cssProperty:"width",transform:Ln}),Wt({prop:"size",cssProperty:"height",transform:Ln});const bA=Wt({prop:"boxSizing"});cc(hA,Mf,gA,mA,yA,vA,bA);const k0={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uc},color:{themeKey:"palette",transform:Ii},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ii},backgroundColor:{themeKey:"palette",transform:Ii},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:Lt},mt:{style:Lt},mr:{style:Lt},mb:{style:Lt},ml:{style:Lt},mx:{style:Lt},my:{style:Lt},margin:{style:Lt},marginTop:{style:Lt},marginRight:{style:Lt},marginBottom:{style:Lt},marginLeft:{style:Lt},marginX:{style:Lt},marginY:{style:Lt},marginInline:{style:Lt},marginInlineStart:{style:Lt},marginInlineEnd:{style:Lt},marginBlock:{style:Lt},marginBlockStart:{style:Lt},marginBlockEnd:{style:Lt},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:dc},rowGap:{style:pc},columnGap:{style:fc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ln},maxWidth:{style:Mf},minWidth:{transform:Ln},height:{transform:Ln},maxHeight:{transform:Ln},minHeight:{transform:Ln},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 xA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function wA(e,t){return typeof e=="function"?e(t):e}function SA(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=c;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=ac(i,h)||{};return m?m(l):Gr(l,r,x=>{let R=lc(v,y,x);return x===R&&typeof x=="string"&&(R=lc(v,y,`${n}${x==="default"?"":E0(x)}`,x)),d===!1?R:{[d]:R}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??k0;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const h=B2(i.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(v=>{const S=wA(d[v],i);if(S!=null)if(typeof S=="object")if(a[v])m=Bs(m,e(v,S,i,a));else{const x=Gr({theme:i},S,R=>({[v]:R}));xA(x,S)?m[v]=t({sx:S,theme:i}):m=Bs(m,x)}else m=Bs(m,e(v,S,i,a))}),k2(i,D2(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const hc=SA();hc.filterProps=["sx"];function CA(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function _A(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=P2(n),d=U2(i);let h=ic({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...$2,...a}},l);return h=A2(h),h.applyStyles=CA,h=t.reduce((y,m)=>ic(y,m),h),h.unstable_sxConfig={...k0,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return hc({sx:m,theme:this})},h}function EA(e){const{variants:t,...n}=e,r={variants:t,style:S0(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=S0(i.style))}),r}const RA=_A();function Bf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TA(e){return e?(t,n)=>n[e]:null}function PA(e,t,n){e.theme=OA(e.theme)?n:e.theme[t]||e.theme}function gc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>gc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return I0(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function I0(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function kA(e={}){const{themeId:t,defaultTheme:n=RA,rootShouldForwardProp:r=Bf,slotShouldForwardProp:i=Bf}=e;function a(c){PA(c,t,n)}return(c,d={})=>{R2(c,M=>M.filter(D=>D!==hc));const{name:h,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:S=TA($A(y)),...x}=d,R=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,O=v||!1;let _=Bf;y==="Root"||y==="root"?_=r:y?_=i:AA(c)&&(_=void 0);const I=E2(c,{shouldForwardProp:_,label:IA(),...x}),E=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return gc($,M)};if(Fo(M)){const D=EA(M);return D.variants?function(z){return gc(z,D)}:D.style}return M},P=(...M)=>{const D=[],$=M.map(E),z=[];if(D.push(a),h&&S&&z.push(function(Q){var le,fe;const X=(fe=(le=Q.theme.components)==null?void 0:le[h])==null?void 0:fe.styleOverrides;if(!X)return null;const te={};for(const pe in X)te[pe]=gc(Q,X[pe]);return S(Q,te)}),h&&!R&&z.push(function(Q){var te,le;const ee=Q.theme,X=(le=(te=ee==null?void 0:ee.components)==null?void 0:te[h])==null?void 0:le.variants;return X?I0(Q,X):null}),O||z.push(hc),Array.isArray($[0])){const H=$.shift(),Q=new Array(D.length).fill(""),ee=new Array(z.length).fill("");let X;X=[...Q,...H,...ee],X.raw=[...Q,...H.raw,...ee],D.unshift(X)}const V=[...D,...$,...z],b=I(...V);return c.muiName&&(b.muiName=c.muiName),b};return I.withConfig&&(P.withConfig=I.withConfig),P}}function IA(e,t){return void 0}function OA(e){for(const t in e)return!1;return!0}function AA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $A(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const MA=kA(),BA=e=>{const[t,n]=Z.useState([]),r=i=>i.toSorted((a,l)=>{let c=Number(a.project_name.split("_").pop());return Number(l.project_name.split("_").pop())-c});return Z.useEffect(()=>{n(e.projects)},[e.projects]),C.jsx(C.Fragment,{children:C.jsx(Kt,{children:C.jsx(ud,{dense:!0,children:t&&r(t).map(i=>C.jsx(tm,{onClick:e.onSelect(i.project_name,i.clone_url),children:C.jsx(rm,{primary:i.project_name})},i.project_name))})})})},DA=e=>{const[t,n]=Z.useState(""),[r,i]=Z.useState("");return C.jsx(C.Fragment,{children:C.jsxs(Kt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:[C.jsx(ml,{label:"Project Description",variant:"outlined",fullWidth:!0,value:t,onChange:a=>n(a.target.value),size:"small",sx:{padding:"2px"}}),C.jsxs(Kt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[C.jsx(Kt,{sx:{flex:3,padding:"2px"},children:C.jsxs(Jg,{fullWidth:!0,children:[C.jsx(em,{id:"template-select-label",children:"Template"}),C.jsx(gd,{labelId:"template-select-label",id:"template-select",label:"Template",value:r,onChange:a=>i(a.target.value),fullWidth:!0,size:"small",children:C.jsx(ZR,{value:"example",children:"example"})})]})}),C.jsx(pi,{variant:"outlined",onClick:()=>e.onCreate(t,r),fullWidth:!0,sx:{flex:1},size:"small",children:"Create"})]})]})})},LA=()=>{const[e,t]=Z.useState([]),{setProjectMetadata:n,APIHandler:r}=Zn(),i=()=>{r.getProjects().then(c=>{if(c.status!==200)throw new Error("Error fetching projects.");return c}).then(c=>c.json()).then(c=>{t(c.projects)})},a=(c,d)=>()=>{n({projectName:c,projectURL:d})},l=(c,d)=>{r.createProject(c,d).then(h=>{if(h.status!==200)throw new Error("Unable to create project");i()})};return Z.useEffect(()=>{i()},[]),C.jsxs(C.Fragment,{children:[C.jsx(DA,{onCreate:l}),C.jsx(dl,{}),C.jsx(BA,{projects:e,onSelect:a})]})},jA=pt.div`
|
|
848
|
+
*/function B2(e,t){return Va(e,t)}function D2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const R0=[];function P0(e){return R0[0]=e,M2(R0)}function Fo(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 T0(e){if(j.isValidElement(e)||!Fo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=T0(e[n])}),t}function sc(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fo(e)&&Fo(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?r[i]=t[i]:Fo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Fo(e[i])?r[i]=sc(e[i],t[i],n):n.clone?r[i]=Fo(t[i])?T0(t[i]):t[i]:r[i]=t[i]}),r}const L2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function j2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=L2(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function h(v,w){const b=l.indexOf(w);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:w)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?h(v,l[l.indexOf(v)+1]):c(v)}function m(v){const w=l.indexOf(v);return w===0?c(l[1]):w===l.length-1?d(l[w]):h(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:h,only:y,not:m,unit:n,...i}}function F2(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function N2(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function z2(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function W2(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),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 r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const U2={borderRadius:4};function Ls(e,t){return t?sc(e,t,{clone:!1}):e}const ac={xs:0,sm:600,md:900,lg:1200,xl:1536},I0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ac[e]}px)`},H2={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ac[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||I0;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||I0;return Object.keys(t).reduce((l,c)=>{if(N2(a.keys,c)){const d=z2(r.containerQueries?r:H2,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||ac).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function G2(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function q2(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function k0(e){if(typeof e!="string")throw new Error(T2(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function cc(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=lc(e,n)||r,t&&(i=t(i,r,e)),i}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,h=lc(d,r)||{};return Gr(l,c,m=>{let v=cc(h,i,m);return m===v&&typeof m=="string"&&(v=cc(h,i,`${t}${m==="default"?"":k0(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function V2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K2={m:"margin",p:"padding"},Y2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},O0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},X2=V2(e=>{if(e.length>2)if(O0[e])e=O0[e];else return[e];const[t,n]=e.split(""),r=K2[t],i=Y2[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),$f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$f,...Mf];function js(e,t,n,r){const i=lc(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function A0(e){return js(e,"spacing",8)}function Fs(e,t){return typeof t=="string"||t==null?t:e(t)}function J2(e,t){return n=>e.reduce((r,i)=>(r[i]=Fs(t,n),r),{})}function Z2(e,t,n,r){if(!t.includes(n))return null;const i=X2(n),a=J2(i,r),l=e[n];return Gr(e,l,a)}function $0(e,t){const n=A0(e.theme);return Object.keys(e).map(r=>Z2(e,t,r,n)).reduce(Ls,{})}function Lt(e){return $0(e,$f)}Lt.propTypes={},Lt.filterProps=$f;function jt(e){return $0(e,Mf)}jt.propTypes={},jt.filterProps=Mf;function Q2(e=8,t=A0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function uc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Ls(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const eA=er("border",Qn),tA=er("borderTop",Qn),nA=er("borderRight",Qn),rA=er("borderBottom",Qn),oA=er("borderLeft",Qn),iA=er("borderColor"),sA=er("borderTopColor"),aA=er("borderRightColor"),lA=er("borderBottomColor"),cA=er("borderLeftColor"),uA=er("outline",Qn),dA=er("outlineColor"),dc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=js(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Fs(t,r)});return Gr(e,e.borderRadius,n)}return null};dc.propTypes={},dc.filterProps=["borderRadius"],uc(eA,tA,nA,rA,oA,iA,sA,aA,lA,cA,dc,uA,dA);const fc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=js(e.theme,"spacing",8),n=r=>({gap:Fs(t,r)});return Gr(e,e.gap,n)}return null};fc.propTypes={},fc.filterProps=["gap"];const pc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=js(e.theme,"spacing",8),n=r=>({columnGap:Fs(t,r)});return Gr(e,e.columnGap,n)}return null};pc.propTypes={},pc.filterProps=["columnGap"];const hc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=js(e.theme,"spacing",8),n=r=>({rowGap:Fs(t,r)});return Gr(e,e.rowGap,n)}return null};hc.propTypes={},hc.filterProps=["rowGap"];const fA=Wt({prop:"gridColumn"}),pA=Wt({prop:"gridRow"}),hA=Wt({prop:"gridAutoFlow"}),gA=Wt({prop:"gridAutoColumns"}),mA=Wt({prop:"gridAutoRows"}),yA=Wt({prop:"gridTemplateColumns"}),vA=Wt({prop:"gridTemplateRows"}),bA=Wt({prop:"gridTemplateAreas"}),xA=Wt({prop:"gridArea"});uc(fc,pc,hc,fA,pA,hA,gA,mA,yA,vA,bA,xA);function ki(e,t){return t==="grey"?t:e}const wA=Wt({prop:"color",themeKey:"palette",transform:ki}),SA=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ki}),CA=Wt({prop:"backgroundColor",themeKey:"palette",transform:ki});uc(wA,SA,CA);function Ln(e){return e<=1&&e!==0?`${e*100}%`:e}const _A=Wt({prop:"width",transform:Ln}),Bf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||ac[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ln(n)}};return Gr(e,e.maxWidth,t)}return null};Bf.filterProps=["maxWidth"];const EA=Wt({prop:"minWidth",transform:Ln}),RA=Wt({prop:"height",transform:Ln}),PA=Wt({prop:"maxHeight",transform:Ln}),TA=Wt({prop:"minHeight",transform:Ln});Wt({prop:"size",cssProperty:"width",transform:Ln}),Wt({prop:"size",cssProperty:"height",transform:Ln});const IA=Wt({prop:"boxSizing"});uc(_A,Bf,EA,RA,PA,TA,IA);const M0={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dc},color:{themeKey:"palette",transform:ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ki},backgroundColor:{themeKey:"palette",transform:ki},p:{style:jt},pt:{style:jt},pr:{style:jt},pb:{style:jt},pl:{style:jt},px:{style:jt},py:{style:jt},padding:{style:jt},paddingTop:{style:jt},paddingRight:{style:jt},paddingBottom:{style:jt},paddingLeft:{style:jt},paddingX:{style:jt},paddingY:{style:jt},paddingInline:{style:jt},paddingInlineStart:{style:jt},paddingInlineEnd:{style:jt},paddingBlock:{style:jt},paddingBlockStart:{style:jt},paddingBlockEnd:{style:jt},m:{style:Lt},mt:{style:Lt},mr:{style:Lt},mb:{style:Lt},ml:{style:Lt},mx:{style:Lt},my:{style:Lt},margin:{style:Lt},marginTop:{style:Lt},marginRight:{style:Lt},marginBottom:{style:Lt},marginLeft:{style:Lt},marginX:{style:Lt},marginY:{style:Lt},marginInline:{style:Lt},marginInlineStart:{style:Lt},marginInlineEnd:{style:Lt},marginBlock:{style:Lt},marginBlockStart:{style:Lt},marginBlockEnd:{style:Lt},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:fc},rowGap:{style:hc},columnGap:{style:pc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ln},maxWidth:{style:Bf},minWidth:{transform:Ln},height:{transform:Ln},maxHeight:{transform:Ln},minHeight:{transform:Ln},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 kA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function OA(e,t){return typeof e=="function"?e(t):e}function AA(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=c;if(r==null)return null;if(h==="typography"&&r==="inherit")return{[n]:r};const v=lc(i,h)||{};return m?m(l):Gr(l,r,b=>{let E=cc(v,y,b);return b===E&&typeof b=="string"&&(E=cc(v,y,`${n}${b==="default"?"":k0(b)}`,b)),d===!1?E:{[d]:E}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??M0;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const h=G2(i.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(v=>{const w=OA(d[v],i);if(w!=null)if(typeof w=="object")if(a[v])m=Ls(m,e(v,w,i,a));else{const b=Gr({theme:i},w,E=>({[v]:E}));kA(b,w)?m[v]=t({sx:w,theme:i}):m=Ls(m,b)}else m=Ls(m,e(v,w,i,a))}),F2(i,q2(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const gc=AA();gc.filterProps=["sx"];function $A(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function MA(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=j2(n),d=Q2(i);let h=sc({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...U2,...a}},l);return h=W2(h),h.applyStyles=$A,h=t.reduce((y,m)=>sc(y,m),h),h.unstable_sxConfig={...M0,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return gc({sx:m,theme:this})},h}function BA(e){const{variants:t,...n}=e,r={variants:t,style:P0(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=P0(i.style))}),r}const DA=MA();function Df(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function LA(e){return e?(t,n)=>n[e]:null}function jA(e,t,n){e.theme=zA(e.theme)?n:e.theme[t]||e.theme}function mc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>mc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return B0(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function B0(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function FA(e={}){const{themeId:t,defaultTheme:n=DA,rootShouldForwardProp:r=Df,slotShouldForwardProp:i=Df}=e;function a(c){jA(c,t,n)}return(c,d={})=>{D2(c,M=>M.filter(D=>D!==gc));const{name:h,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:w=LA(UA(y)),...b}=d,E=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,k=v||!1;let _=Df;y==="Root"||y==="root"?_=r:y?_=i:WA(c)&&(_=void 0);const O=B2(c,{shouldForwardProp:_,label:NA(),...b}),C=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return mc($,M)};if(Fo(M)){const D=BA(M);return D.variants?function(z){return mc(z,D)}:D.style}return M},P=(...M)=>{const D=[],$=M.map(C),z=[];if(D.push(a),h&&w&&z.push(function(te){var ae,fe;const Y=(fe=(ae=te.theme.components)==null?void 0:ae[h])==null?void 0:fe.styleOverrides;if(!Y)return null;const ee={};for(const pe in Y)ee[pe]=mc(te,Y[pe]);return w(te,ee)}),h&&!E&&z.push(function(te){var ee,ae;const H=te.theme,Y=(ae=(ee=H==null?void 0:H.components)==null?void 0:ee[h])==null?void 0:ae.variants;return Y?B0(te,Y):null}),k||z.push(gc),Array.isArray($[0])){const G=$.shift(),te=new Array(D.length).fill(""),H=new Array(z.length).fill("");let Y;Y=[...te,...G,...H],Y.raw=[...te,...G.raw,...H],D.unshift(Y)}const V=[...D,...$,...z],R=O(...V);return c.muiName&&(R.muiName=c.muiName),R};return O.withConfig&&(P.withConfig=O.withConfig),P}}function NA(e,t){return void 0}function zA(e){for(const t in e)return!1;return!0}function WA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function UA(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const HA=FA(),GA=e=>{const[t,n]=X.useState([]),r=i=>i.toSorted((a,l)=>{let c=Number(a.project_name.split("_").pop());return Number(l.project_name.split("_").pop())-c});return X.useEffect(()=>{n(e.projects)},[e.projects]),x.jsx(x.Fragment,{children:x.jsx(Kt,{children:x.jsx(dd,{dense:!0,children:t&&r(t).map(i=>x.jsx(om,{onClick:e.onSelect(i.project_name,i.clone_url),children:x.jsx(sm,{primary:i.project_name})},i.project_name))})})})},qA=e=>{const[t,n]=X.useState(""),[r,i]=X.useState("");return x.jsx(x.Fragment,{children:x.jsxs(Kt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:[x.jsx(vl,{label:"Project Description",variant:"outlined",fullWidth:!0,value:t,onChange:a=>n(a.target.value),size:"small",sx:{padding:"2px"}}),x.jsxs(Kt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[x.jsx(Kt,{sx:{flex:3,padding:"2px"},children:x.jsxs(em,{fullWidth:!0,children:[x.jsx(rm,{id:"template-select-label",children:"Template"}),x.jsx(md,{labelId:"template-select-label",id:"template-select",label:"Template",value:r,onChange:a=>i(a.target.value),fullWidth:!0,size:"small",children:x.jsx(tP,{value:"example",children:"example"})})]})}),x.jsx(pi,{variant:"outlined",onClick:()=>e.onCreate(t,r),fullWidth:!0,sx:{flex:1},size:"small",children:"Create"})]})]})})},VA=()=>{const[e,t]=X.useState([]),{setProjectMetadata:n,APIHandler:r}=Zn(),i=()=>{r.getProjects().then(c=>{if(c.status!==200)throw new Error("Error fetching projects.");return c}).then(c=>c.json()).then(c=>{t(c.projects)})},a=(c,d)=>()=>{n({projectName:c,projectURL:d})},l=(c,d)=>{r.createProject(c,d).then(h=>{if(h.status!==200)throw new Error("Unable to create project");i()})};return X.useEffect(()=>{i()},[]),x.jsxs(x.Fragment,{children:[x.jsx(qA,{onCreate:l}),x.jsx(pl,{}),x.jsx(GA,{projects:e,onSelect:a})]})},KA=it.div`
|
|
822
849
|
.chat-container {
|
|
823
850
|
display: flex;
|
|
824
851
|
flex-direction: column;
|
|
@@ -909,7 +936,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
909
936
|
background-color: #5000bf;
|
|
910
937
|
color: white;
|
|
911
938
|
}
|
|
912
|
-
`,
|
|
939
|
+
`,YA=e=>{let t=null;switch(e.role){case"assistant":t="assistant";break;case"user":t="user";break;default:t=null;break}if(t===null)return;const n=`message ${t}-message`;return x.jsx("div",{className:n,children:e.content},e.id)},D0=e=>e.map(t=>YA(t)).filter(Boolean).reverse(),XA=()=>{const[e,t]=X.useState([]),[n,r]=X.useState(""),[i,a]=X.useState(!1),[l,c]=X.useState(!1),d=X.useRef(null),{projectMetadata:h,config:y,setSyncToken:m,selectedComponentId:v}=Zn(),w=X.useMemo(()=>!h.projectName,[h.projectName]),b=async C=>{const P=await D0(C);t(P)},E=async C=>{const P=await D0(C);t(M=>[...P,...M])},k=async()=>{const C=v;if(!C){alert("Please select a component");return}const P={type:"chat",content:{role:"user",source:"web_client",content:n.trim(),context:null,metadata:{component_id:C}}};d.current.send(JSON.stringify(P)),await E([{role:"user",content:n,id:rc()}]),r("")},_=C=>{r(P=>{const M=P.trim();return M?`${M} ${C}`:C})},O=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),k())};return X.useEffect(()=>{if(!(h.projectName&&h.projectURL))return;const C=new AbortController,P=C.signal,M=async()=>{c(!0),await aa(h.projectName,h.projectURL,y.CORS_PROXY),c(!1);const $=`${window.miDir}/${h.projectName}/chat.json`,z=await window.pfs.readFile($,"utf8"),V=JSON.parse(z);P.aborted||await b(V)},D=async()=>{d.current&&await d.current.close();const $=localStorage.getItem("accessToken")||"";d.current=new WebSocket(`${y.WS_BASE_URL}/ws/chat/${h.projectName}?token=${$}`),d.current.onmessage=function(z){const V=JSON.parse(z.data);if(V.type)switch(V.type){case"chat":E([V.content]);break;case"signal":V.content.type==="generation_ended"&&m();break}}};return M().then(D),()=>{C.abort()}},[h.projectName]),x.jsxs(x.Fragment,{children:[x.jsx($s,{isVisible:l}),x.jsx(KA,{children:x.jsxs("div",{className:"chat-container",children:[x.jsx("div",{className:"chat-messages",children:e}),x.jsxs("div",{className:"chat-input",children:[x.jsx("input",{type:"text",placeholder:"Type your message...",value:n,onChange:C=>r(C.target.value),onKeyPress:O,disabled:w}),x.jsx("button",{className:"gallery-button",onClick:()=>a(!0),disabled:w,children:"Images"}),x.jsx("button",{onClick:k,disabled:w,children:"Send"})]})]})}),h.projectName&&x.jsx(w0,{isOpen:i,onClose:()=>a(!1),onImageSelect:_,projectName:h.projectName})]})},yc=HA(TP)({fontSize:"12px",padding:"2px"}),vc=e=>x.jsx(x.Fragment,{children:x.jsx("div",{role:"tabpanel",hidden:e.activeIndex!=e.panelIndex,children:e.children})}),JA=e=>{const[t,n]=X.useState(0),[r,i]=X.useState(e.componentLibrary),a=(l,c)=>{n(c)};return X.useEffect(()=>{i(e.componentLibrary)},[e.componentLibrary]),x.jsxs(x.Fragment,{children:[x.jsx(Kt,{sx:{width:"100%",position:"sticky",top:0,zIndex:1e3,backgroundColor:"LightGray"},children:x.jsx(Kt,{sx:{borderBottom:3,borderColor:"divider"},children:x.jsxs(VP,{value:t,onChange:a,children:[x.jsx(yc,{label:"Components"}),x.jsx(yc,{label:"Chatbot"}),x.jsx(yc,{label:"Projects"}),x.jsx(yc,{label:"Manage"})]})})}),x.jsx(vc,{panelIndex:0,activeIndex:t,children:x.jsx(r2,{componentLibrary:r})}),x.jsx(vc,{panelIndex:1,activeIndex:t,children:x.jsx(XA,{})}),x.jsx(vc,{panelIndex:2,activeIndex:t,children:x.jsx(VA,{})}),x.jsx(vc,{panelIndex:3,activeIndex:t,children:x.jsx(a2,{})})]})},ZA=e=>x.jsx(x.Fragment,{children:x.jsx(JA,{componentLibrary:e.componentLibrary})}),QA=e=>{const[t,n]=X.useState(oc.EditMode),{setSyncToken:r}=Zn(),i=a=>{n(Number(a.target.value))};return x.jsxs(x.Fragment,{children:[x.jsxs("select",{value:t,onChange:i,children:[x.jsx("option",{value:oc.EditMode,children:"Edit Mode"}),x.jsx("option",{value:oc.PreviewMode,children:"Preview Mode"})]}),x.jsx("button",{style:{background:"gray",margin:"0px 5px 0px"},onClick:()=>r(),children:"refresh"}),x.jsx(e2,{renderMode:t,components:e.components,componentLibrary:e.componentLibrary,layout:e.layout})]})},e$=async e=>{let t=null,n=null;try{const r=e.replace(/import.*?;\n/g,""),i=Yp.transform(r,{presets:["react","typescript"],filename:"file.tsx"}).code,a=new Blob([i],{type:"text/javascript"}),d=(await import(URL.createObjectURL(a))).component;t=x.jsx(d,{})}catch(r){t=null,n=r.stack}return{compileError:n,compiledComponent:t}},t$=async e=>{let t=[];const n=await e.getComponentLibrary();if(n.status!==200)throw new Error("Could not load library components");let r=(await n.json()).components;for(const i in r)if(i==="example")for(const a of r[i]){let l=a.content["component.tsx"];l=l.replace(/import.*?;\n/g,"");let c=a.content["layout.json"];const d=Yp.transform(l,{presets:["react","typescript"],filename:"file.tsx"}).code,h=new Blob([d],{type:"text/javascript"}),v=(await import(URL.createObjectURL(h))).component;t.push({class:a.name,layout:JSON.parse(c),component:x.jsx(v,{})})}return t},L0=async e=>{let t=[],n=[];const r=`${window.miDir}/${e}`,i="src/ProjectComponents";let a=await ch(`${r}/${i}`);a=a.filter(l=>!(l.includes(".gitkeep")||l.includes("index.ts")));for(const l of a){let c=`${l.replace(i,"")}`,d=`${c}/component.tsx`,h=await window.pfs.readFile(`${r}/${i}/${d}`,"utf8");const{compileError:y,compiledComponent:m}=await e$(h);let v=`${c}/layout.json`;const w=await window.pfs.readFile(`${r}/${i}/${v}`,"utf8");let b={id:l,component:m};y&&(b={...b,overrides:{compileError:{message:y}}}),t.push(b),n.push({...JSON.parse(w),i:l})}return{components:t,layout:n}},n$=it.div`
|
|
913
940
|
.mi-container {
|
|
914
941
|
display: flex;
|
|
915
942
|
flex-direction: row;
|
|
@@ -927,7 +954,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
927
954
|
overflow: auto;
|
|
928
955
|
min-width: 350px;
|
|
929
956
|
}
|
|
930
|
-
`,
|
|
957
|
+
`,r$=()=>{const[e,t]=X.useState([]),[n,r]=X.useState([]),[i,a]=X.useState([]),[l,c]=X.useState(!1),{projectMetadata:d,config:h,syncToken:y,APIHandler:m}=Zn();return X.useEffect(()=>{t$(m).then(v=>{t(v)})},[]),X.useEffect(()=>{d.projectName&&d.projectURL&&(c(!0),aa(d.projectName,d.projectURL,h.CORS_PROXY).then(()=>{c(!1),L0(d.projectName).then(v=>{r(v.components),a(v.layout)})}))},[d,y]),x.jsx(x.Fragment,{children:x.jsxs(n$,{children:[x.jsx($s,{isVisible:l}),x.jsxs("div",{className:"mi-container",children:[x.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:x.jsx(QA,{componentLibrary:e,components:n,layout:i})}),x.jsx("div",{className:"mi-toolspace",style:{backgroundColor:"lightgray"},children:x.jsx(ZA,{componentLibrary:e})})]})]})})},o$=it.div`
|
|
931
958
|
.mi-container {
|
|
932
959
|
display: flex;
|
|
933
960
|
flex-direction: row;
|
|
@@ -946,4 +973,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
946
973
|
flex-grow: 1;
|
|
947
974
|
overflow: auto;
|
|
948
975
|
}
|
|
949
|
-
`,
|
|
976
|
+
`,i$=()=>{const[e,t]=X.useState([]),[n,r]=X.useState([]),[i,a]=X.useState(!1),{projectMetadata:l,config:c}=Zn(),d=async()=>{a(!0),await aa(l.projectName,l.projectURL,c.CORS_PROXY),a(!1),await mu(l.projectName,l.projectURL,c.CORS_PROXY),await Rw(l.projectName);const h=await L0(l.projectName);t(h.components),r(h.layout)};return X.useEffect(()=>{!l.projectName&&!l.projectURL||d()},[l.projectName,l.projectURL]),x.jsx(x.Fragment,{children:x.jsxs(o$,{children:[x.jsx($s,{isVisible:i}),x.jsx("div",{className:"mi-container",children:x.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:x.jsx(t2,{components:e,layout:n})})})]})})},s$=()=>{typeof window<"u"&&(window.Buffer=ah.Buffer,window.fs=new aw("fs"),window.pfs=window.fs.promises,window.miDir="/mi")};$t.ImageGallery=w0,$t.MakeInfinite=r$,$t.MiniApp=i$,$t.ProjectProvider=WO,$t.getTags=mu,$t.initializeMakeInfinite=s$,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})});
|