@dao42/d42paas-front 0.7.29 → 0.7.32

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.
@@ -32930,7 +32930,7 @@ const replay = async (passInData) => {
32930
32930
  setAppStatus("replay");
32931
32931
  let operation;
32932
32932
  const replayList = await getLocalCRDTs();
32933
- const filterReplayList = replayList.filter((replayItem) => replayItem.userInfo.uuid === passInData.userId);
32933
+ const filterReplayList = passInData.userId === void 0 ? replayList : replayList.filter((replayItem) => replayItem.userInfo.uuid === passInData.userId);
32934
32934
  const currentFilter = filterReplayList.filter((f2) => dayjs(passInData.timestamp).isSame(f2.timestamp) || dayjs(passInData.timestamp).isBefore(f2.timestamp));
32935
32935
  const filterReplaySource = currentFilter[0];
32936
32936
  const replayFile = await getLocalReplayFile(filterReplaySource.file.path);
@@ -44283,7 +44283,6 @@ const DrawerComponent = ({
44283
44283
  onClick: () => {
44284
44284
  setDrawerOpen(false);
44285
44285
  replay({
44286
- userId: item.userInfo.uuid,
44287
44286
  timestamp: item.timestamp
44288
44287
  });
44289
44288
  },
@@ -44499,7 +44498,6 @@ const GuiComponent = () => {
44499
44498
  File: {
44500
44499
  value: false,
44501
44500
  onChange: (v2) => {
44502
- console.log(v2);
44503
44501
  fobidComponent("file", v2);
44504
44502
  },
44505
44503
  transient: false
@@ -44718,10 +44716,7 @@ class DaoPaaS {
44718
44716
  callback && callback();
44719
44717
  }
44720
44718
  replay(arg) {
44721
- replay({
44722
- userId: arg.userInfo.uuid,
44723
- timestamp: arg.timestamp
44724
- });
44719
+ replay(arg);
44725
44720
  }
44726
44721
  setIgnoreReplayers(arg) {
44727
44722
  ignoreReplayerStore.getState().setIgnoreReplayer(arg);
@@ -320,7 +320,7 @@ function print() { __p += __j.call(arguments, '') }
320
320
  `))):ue=N.stylize("[Circular]","special")),x(X)){if(Oe&&Ce.match(/^\d+$/))return ue;X=JSON.stringify(""+Ce),X.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(X=X.substr(1,X.length-2),X=N.stylize(X,"name")):(X=X.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),X=N.stylize(X,"string"))}return X+": "+ue}function g(N,B,ne){var me=N.reduce(function(Ce,Oe){return Oe.indexOf(`
321
321
  `)>=0,Ce+Oe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return me>60?ne[0]+(B===""?"":B+`
322
322
  `)+" "+N.join(`,
323
- `)+" "+ne[1]:ne[0]+B+" "+N.join(", ")+" "+ne[1]}function p(N){return Array.isArray(N)}n.isArray=p;function m(N){return typeof N=="boolean"}n.isBoolean=m;function _(N){return N===null}n.isNull=_;function v(N){return N==null}n.isNullOrUndefined=v;function b(N){return typeof N=="number"}n.isNumber=b;function y(N){return typeof N=="string"}n.isString=y;function w(N){return typeof N=="symbol"}n.isSymbol=w;function x(N){return N===void 0}n.isUndefined=x;function S(N){return T(N)&&O(N)==="[object RegExp]"}n.isRegExp=S;function T(N){return typeof N=="object"&&N!==null}n.isObject=T;function L(N){return T(N)&&O(N)==="[object Date]"}n.isDate=L;function I(N){return T(N)&&(O(N)==="[object Error]"||N instanceof Error)}n.isError=I;function D(N){return typeof N=="function"}n.isFunction=D;function R(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}n.isPrimitive=R,n.isBuffer=Rat;function O(N){return Object.prototype.toString.call(N)}function U(N){return N<10?"0"+N.toString(10):N.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,B=[U(N.getHours()),U(N.getMinutes()),U(N.getSeconds())].join(":");return[N.getDate(),F[N.getMonth()],B].join(" ")}n.log=function(){console.log("%s - %s",Y(),n.format.apply(n,arguments))},n.inherits=iU.exports,n._extend=function(N,B){if(!B||!T(B))return N;for(var ne=Object.keys(B),me=ne.length;me--;)N[ne[me]]=B[ne[me]];return N};function z(N,B){return Object.prototype.hasOwnProperty.call(N,B)}var P=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;n.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(P&&B[P]){var ne=B[P];if(typeof ne!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ne,P,{value:ne,enumerable:!1,writable:!1,configurable:!0}),ne}function ne(){for(var me,Ce,Oe=new Promise(function(ce,He){me=ce,Ce=He}),X=[],ue=0;ue<arguments.length;ue++)X.push(arguments[ue]);X.push(function(ce,He){ce?Ce(ce):me(He)});try{B.apply(this,X)}catch(ce){Ce(ce)}return Oe}return Object.setPrototypeOf(ne,Object.getPrototypeOf(B)),P&&Object.defineProperty(ne,P,{value:ne,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ne,e(B))},n.promisify.custom=P;function V(N,B){if(!N){var ne=new Error("Promise was rejected with a falsy value");ne.reason=N,N=ne}return B(N)}function $(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');function B(){for(var ne=[],me=0;me<arguments.length;me++)ne.push(arguments[me]);var Ce=ne.pop();if(typeof Ce!="function")throw new TypeError("The last argument must be of type Function");var Oe=this,X=function(){return Ce.apply(Oe,arguments)};N.apply(this,ne).then(function(ue){process.nextTick(X,null,ue)},function(ue){process.nextTick(V,ue,X)})}return Object.setPrototypeOf(B,Object.getPrototypeOf(N)),Object.defineProperties(B,e(N)),B}n.callbackify=$}(Oge);var Mge=nU.exports.EventEmitter,Oat=O4.exports,Mat=Rge.exports,Pge=Cge.exports,Fge=wge.exports,Pat=Oge;function t0(n,e,t,i){Mge.call(this),Pge.call(this,n,e),this.users={},this.docId=t,this.mayWrite=i||function(r,o){o(!0)}}Pat.inherits(t0,Pge),Fat(t0.prototype,Mge.prototype);function Fat(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}t0.prototype.addClient=function(n){var e=this;n.join(this.docId).emit("doc",{str:this.document,revision:this.operations.length,clients:this.users}).on("operation",function(t,i,r){e.mayWrite(n,function(o){if(!o){console.log("User doesn't have the right to edit.");return}e.onOperation(n,t,i,r)})}).on("selection",function(t){e.mayWrite(n,function(i){if(!i){console.log("User doesn't have the right to edit.");return}e.updateSelection(n,t&&Fge.fromJSON(t))})}).on("disconnect",function(){console.log("Disconnect"),n.leave(e.docId),e.onDisconnect(n),n.manager.sockets.clients(e.docId).length===0&&e.emit("empty-room")})},t0.prototype.onOperation=function(n,e,t,i){var r;try{r=new Mat(Oat.fromJSON(t),i&&Fge.fromJSON(i))}catch(a){console.error("Invalid operation received: "+a);return}try{var o=n.id,s=this.receiveOperation(e,r);console.log("new operation: "+r),this.getClient(o).selection=s.meta,n.emit("ack"),n.broadcast.in(this.docId).emit("operation",o,s.wrapped.toJSON(),s.meta)}catch(a){console.error(a)}},t0.prototype.updateSelection=function(n,e){var t=n.id;e?this.getClient(t).selection=e:delete this.getClient(t).selection,n.broadcast.in(this.docId).emit("selection",t,e)},t0.prototype.setName=function(n,e){var t=n.id;this.getClient(t).name=e,n.broadcast.in(this.docId).emit("set_name",t,e)},t0.prototype.getClient=function(n){return this.users[n]||(this.users[n]={})},t0.prototype.onDisconnect=function(n){var e=n.id;delete this.users[e],n.broadcast.in(this.docId).emit("client_left",e)};var Kf=O4.exports;const{setAppStatus:Bat,switchDoc:rU,setCRDTInfo:$at,dockerInfo:xln,doc:Eln,CRDTInfo:Tln}=rn.getState(),oU=async n=>{var l,c,u;Bat("replay");let e;const i=(await cle()).filter(d=>d.userInfo.uuid===n.userId),o=i.filter(d=>SA(n.timestamp).isSame(d.timestamp)||SA(n.timestamp).isBefore(d.timestamp))[0],s=await lle(o.file.path),a=await ale(o.file.path);if(o.event==="editor"){const d=i.filter(f=>f.event==="editor").filter(f=>{var g;return((g=f.file)==null?void 0:g.path)===s.path}),h=o.editor.revision>s.revision?d.filter(f=>f.editor.revision<=o.editor.revision).filter(f=>f.editor.revision>s.revision):d.filter(f=>f.editor.revision>o.editor.revision).filter(f=>f.editor.revision<=s.revision);o.editor.revision>s.revision?e=h.reduce((f,g,p)=>{const m=Kf.fromJSON(g.editor.operation);return f.targetLength===m.baseLength?f.compose(m):m.compose(f)},new Kf().retain(s.revision===0?s.value.length:a.value.length)):e=h.length===1?Kf.fromJSON(h[0].editor.operation).invert(a.value):h.reduce((f,g,p)=>{const m=Kf.fromJSON(g.editor.operation);return f.editor?Kf.fromJSON(f.editor.operation).compose(m):f.compose(m)}).invert(a.value),o.editor.operation=e.toJSON()}if(o.file){if(!o.file)return;const d=e?s.revision===0?e==null?void 0:e.apply(s.value):e==null?void 0:e.apply(a.value):s.value;IH(o.file.path,mt(Fe({},a),{value:d})),rU==null||rU({value:s.value,path:o.file.path})}console.log(rn.getState().appStatus),d3((l=o==null?void 0:o.file)==null?void 0:l.path,mt(Fe({},s),{revision:(c=o==null?void 0:o.editor)==null?void 0:c.revision,path:(u=o==null?void 0:o.file)==null?void 0:u.path})),setTimeout(()=>{$at(Fe({},o))},0)};var kln="";const Gw=Mc(n=>({ignoreReplayers:[],setIgnoreReplayer:e=>n(()=>({ignoreReplayers:e}))}));function Bge(...n){return e=>n.forEach(t=>function(i,r){typeof i=="function"?i(r):i!=null&&(i.current=r)}(t,e))}function TA(...n){return M.exports.useCallback(Bge(...n),n)}const $ge=M.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=ao(r,["children"]);return M.exports.Children.toArray(t).some(Wge)?M.exports.createElement(M.exports.Fragment,null,M.exports.Children.map(t,o=>Wge(o)?M.exports.createElement(sU,Mt({},i,{ref:e}),o.props.children):o)):M.exports.createElement(sU,Mt({},i,{ref:e}),t)});$ge.displayName="Slot";const sU=M.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=ao(r,["children"]);return M.exports.isValidElement(t)?M.exports.cloneElement(t,mt(Fe({},Hat(i,t.props)),{ref:Bge(e,t.ref)})):M.exports.Children.count(t)>1?M.exports.Children.only(null):null});sU.displayName="SlotClone";const Hge=({children:n})=>M.exports.createElement(M.exports.Fragment,null,n);function Wge(n){return M.exports.isValidElement(n)&&n.type===Hge}function Hat(n,e){const t=Fe({},e);for(const i in e){const r=n[i],o=e[i];/^on[A-Z]/.test(i)?t[i]=(...s)=>{o==null||o(...s),r==null||r(...s)}:i==="style"?t[i]=Fe(Fe({},r),o):i==="className"&&(t[i]=[r,o].filter(Boolean).join(" "))}return Fe(Fe({},n),t)}const Yw=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce((n,e)=>mt(Fe({},n),{[e]:M.exports.forwardRef((t,i)=>{const a=t,{asChild:r}=a,o=ao(a,["asChild"]),s=r?$ge:e;return M.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.as&&console.error(Wat),M.exports.createElement(s,Mt({},o,{ref:i}))})}),{}),Wat="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",kA=Boolean(globalThis==null?void 0:globalThis.document)?M.exports.useLayoutEffect:()=>{},zge=M.exports.forwardRef((n,e)=>{var t,i;const c=n,{containerRef:r,style:o}=c,s=ao(c,["containerRef","style"]),a=(t=r==null?void 0:r.current)!==null&&t!==void 0?t:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,l]=M.exports.useState({});return kA(()=>{l({})},[]),a?dH.createPortal(M.exports.createElement(Yw.div,Mt({"data-radix-portal":""},s,{ref:e,style:a===document.body?Fe({position:"absolute",top:0,left:0,zIndex:2147483647},o):void 0})),a):null}),zat=zge;var Uge=Object.prototype.hasOwnProperty;function M4(n,e){var t,i;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((i=n.length)===e.length)for(;i--&&M4(n[i],e[i]););return i===-1}if(!t||typeof n=="object"){i=0;for(t in n)if(Uge.call(n,t)&&++i&&!Uge.call(e,t)||!(t in e)||!M4(n[t],e[t]))return!1;return Object.keys(e).length===i}}return n!==n&&e!==e}function P4(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Object.is(n[t[i]],e[t[i]]))return!1;return!0}var LA=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},Vge=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Uat=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)},Vat=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n},jat=function(){function n(e,t,i,r){LA(this,n),this.name=e,this.fn=t,this.args=i,this.modifiers=r}return Vge(n,[{key:"_test",value:function(t){var i=this.fn;try{Xw(this.modifiers.slice(),i)(t)}catch{i=function(){return!1}}try{return Xw(this.modifiers.slice(),i)(t)}catch{return!1}}},{key:"_check",value:function(t){try{Xw(this.modifiers.slice(),this.fn)(t)}catch{if(Xw(this.modifiers.slice(),function(r){return r})(!1))return}if(!Xw(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var i=this;return new Promise(function(r,o){qge(i.modifiers.slice(),i.fn)(t).then(function(s){s?r(t):o(null)}).catch(function(s){return o(s)})})}}]),n}();function jge(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"simple";return typeof n=="object"?n[e]:n}function Xw(n,e){if(n.length){var t=n.shift(),i=Xw(n,e);return t.perform(i)}else return jge(e)}function qge(n,e){if(n.length){var t=n.shift(),i=qge(n,e);return t.performAsync(i)}else return function(r){return Promise.resolve(jge(e,"async")(r))}}var qat=function n(e,t,i){LA(this,n),this.name=e,this.perform=t,this.performAsync=i},aU=function(n){Uat(e,n);function e(t,i,r,o){LA(this,e);for(var s=arguments.length,a=Array(s>4?s-4:0),l=4;l<s;l++)a[l-4]=arguments[l];var c=Vat(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=i,c.cause=r,c.target=o,c}return e}(Error),Kat=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];LA(this,n),this.chain=e,this.nextRuleModifiers=t}return Vge(n,[{key:"_applyRule",value:function(t,i){var r=this;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return r.chain.push(new jat(i,t.apply(r,s),s,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}}},{key:"_applyModifier",value:function(t,i){return this.nextRuleModifiers.push(new qat(i,t.simple,t.async)),this}},{key:"_clone",value:function(){return new n(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every(function(i){return i._test(t)})}},{key:"testAll",value:function(t){var i=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){i.push(new aU(r,t,o))}}),i}},{key:"check",value:function(t){this.chain.forEach(function(i){try{i._check(t)}catch(r){throw new aU(i,t,r)}})}},{key:"testAsync",value:function(t){var i=this;return new Promise(function(r,o){Kge(t,i.chain.slice(),r,o)})}}]),n}();function Kge(n,e,t,i){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Kge(n,e,t,i)},function(o){i(new aU(r,n,o))})}else t(n)}function $c(){return Gge(new Kat)}var DA={};$c.extend=function(n){Object.assign(DA,n)},$c.clearCustomRules=function(){DA={}};function Gge(n){return new Proxy(n,{get:function(t,i){if(i in t)return t[i];var r=Gge(n._clone());if(i in Yge)return r._applyModifier(Yge[i],i);if(i in DA)return r._applyRule(DA[i],i);if(i in Xge)return r._applyRule(Xge[i],i)}})}var Yge={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(i){return!i}).catch(function(i){return!0})}}},some:{simple:function(e){return function(t){return IA(t).some(function(i){try{return e(i)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(IA(t).map(function(i){try{return e(i).catch(function(r){return!1})}catch{return!1}})).then(function(i){return i.some(Boolean)})}}},every:{simple:function(e){return function(t){return IA(t).every(e)}},async:function(e){return function(t){return Promise.all(IA(t).map(e)).then(function(i){return i.every(Boolean)})}}}};function IA(n){return typeof n=="string"?n.split(""):n}var Xge={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Gat;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Zw("string")},boolean:function(){return Zw("boolean")},undefined:function(){return Zw("undefined")},null:function(){return Zw("null")},array:function(){return Zw("array")},object:function(){return Zw("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return/^([a-z]+\s*)+$/.test(e)}},uppercase:function(){return function(e){return/^([A-Z]+\s*)+$/.test(e)}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(i){return i.length>=e&&i.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(i){return i>=e&&i<=t}},range:function(e,t){return function(i){return i>=e&&i<=t}},lessThan:function(e){return function(t){return t<e}},lessThanOrEqual:function(e){return function(t){return t<=e}},greaterThan:function(e){return function(t){return t>e}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2==0}},odd:function(){return function(e){return e%2!=0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Yat(e)},passesAnyOf:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.some(function(o){return o.test(r)})}},optional:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i){return t&&typeof i=="string"&&i.trim()===""||i!=null&&e.check(i),!0}}};function Zw(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function Gat(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function Yat(n){return{simple:function(t){var i=[];if(Object.keys(n).forEach(function(r){var o=n[r];try{o.check((t||{})[r])}catch(s){s.target=r,i.push(s)}}),i.length>0)throw i;return!0},async:function(t){var i=[],r=Object.keys(n).map(function(o){var s=n[o];return s.testAsync((t||{})[o]).catch(function(a){a.target=o,i.push(a)})});return Promise.all(r).then(function(o){if(i.length>0)throw i;return!0})}}}var Ar="colors",Xl="sizes",gn="space",Xat={gap:gn,gridGap:gn,columnGap:gn,gridColumnGap:gn,rowGap:gn,gridRowGap:gn,inset:gn,insetBlock:gn,insetBlockEnd:gn,insetBlockStart:gn,insetInline:gn,insetInlineEnd:gn,insetInlineStart:gn,margin:gn,marginTop:gn,marginRight:gn,marginBottom:gn,marginLeft:gn,marginBlock:gn,marginBlockEnd:gn,marginBlockStart:gn,marginInline:gn,marginInlineEnd:gn,marginInlineStart:gn,padding:gn,paddingTop:gn,paddingRight:gn,paddingBottom:gn,paddingLeft:gn,paddingBlock:gn,paddingBlockEnd:gn,paddingBlockStart:gn,paddingInline:gn,paddingInlineEnd:gn,paddingInlineStart:gn,top:gn,right:gn,bottom:gn,left:gn,scrollMargin:gn,scrollMarginTop:gn,scrollMarginRight:gn,scrollMarginBottom:gn,scrollMarginLeft:gn,scrollMarginX:gn,scrollMarginY:gn,scrollMarginBlock:gn,scrollMarginBlockEnd:gn,scrollMarginBlockStart:gn,scrollMarginInline:gn,scrollMarginInlineEnd:gn,scrollMarginInlineStart:gn,scrollPadding:gn,scrollPaddingTop:gn,scrollPaddingRight:gn,scrollPaddingBottom:gn,scrollPaddingLeft:gn,scrollPaddingX:gn,scrollPaddingY:gn,scrollPaddingBlock:gn,scrollPaddingBlockEnd:gn,scrollPaddingBlockStart:gn,scrollPaddingInline:gn,scrollPaddingInlineEnd:gn,scrollPaddingInlineStart:gn,fontSize:"fontSizes",background:Ar,backgroundColor:Ar,backgroundImage:Ar,borderImage:Ar,border:Ar,borderBlock:Ar,borderBlockEnd:Ar,borderBlockStart:Ar,borderBottom:Ar,borderBottomColor:Ar,borderColor:Ar,borderInline:Ar,borderInlineEnd:Ar,borderInlineStart:Ar,borderLeft:Ar,borderLeftColor:Ar,borderRight:Ar,borderRightColor:Ar,borderTop:Ar,borderTopColor:Ar,caretColor:Ar,color:Ar,columnRuleColor:Ar,fill:Ar,outline:Ar,outlineColor:Ar,stroke:Ar,textDecorationColor:Ar,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Xl,minBlockSize:Xl,maxBlockSize:Xl,inlineSize:Xl,minInlineSize:Xl,maxInlineSize:Xl,width:Xl,minWidth:Xl,maxWidth:Xl,height:Xl,minHeight:Xl,maxHeight:Xl,flexBasis:Xl,gridTemplateColumns:Xl,gridTemplateRows:Xl,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Zat=(n,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,Qw=()=>{const n=Object.create(null);return(e,t,...i)=>{const r=(o=>JSON.stringify(o,Zat))(e);return r in n?n[r]:n[r]=t(e,...i)}},Av=Symbol.for("sxs.internal"),lU=(n,e)=>Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Zge=n=>{for(const e in n)return!0;return!1},{hasOwnProperty:Qat}=Object.prototype,cU=n=>n.includes("-")?n:n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),Jat=/\s+(?![^()]*\))/,Jw=n=>e=>n(...typeof e=="string"?String(e).split(Jat):[e]),Qge={appearance:n=>({WebkitAppearance:n,appearance:n}),backfaceVisibility:n=>({WebkitBackfaceVisibility:n,backfaceVisibility:n}),backdropFilter:n=>({WebkitBackdropFilter:n,backdropFilter:n}),backgroundClip:n=>({WebkitBackgroundClip:n,backgroundClip:n}),boxDecorationBreak:n=>({WebkitBoxDecorationBreak:n,boxDecorationBreak:n}),clipPath:n=>({WebkitClipPath:n,clipPath:n}),content:n=>({content:n.includes('"')||n.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n)?n:`"${n}"`}),hyphens:n=>({WebkitHyphens:n,hyphens:n}),maskImage:n=>({WebkitMaskImage:n,maskImage:n}),maskSize:n=>({WebkitMaskSize:n,maskSize:n}),tabSize:n=>({MozTabSize:n,tabSize:n}),textSizeAdjust:n=>({WebkitTextSizeAdjust:n,textSizeAdjust:n}),userSelect:n=>({WebkitUserSelect:n,userSelect:n}),marginBlock:Jw((n,e)=>({marginBlockStart:n,marginBlockEnd:e||n})),marginInline:Jw((n,e)=>({marginInlineStart:n,marginInlineEnd:e||n})),maxSize:Jw((n,e)=>({maxBlockSize:n,maxInlineSize:e||n})),minSize:Jw((n,e)=>({minBlockSize:n,minInlineSize:e||n})),paddingBlock:Jw((n,e)=>({paddingBlockStart:n,paddingBlockEnd:e||n})),paddingInline:Jw((n,e)=>({paddingInlineStart:n,paddingInlineEnd:e||n}))},uU=/([\d.]+)([^]*)/,elt=(n,e)=>n.length?n.reduce((t,i)=>(t.push(...e.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),t),[]):e,tlt=(n,e)=>n in nlt&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${cU(n)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${cU(n)}:${i}fit-content`)+o):String(e),nlt={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Pp=n=>n?n+"-":"",Jge=(n,e,t)=>n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,s,a)=>s=="$"==!!o?i:(r||s=="--"?"calc(":"")+"var(--"+(s==="$"?Pp(e)+(a.includes("$")?"":Pp(t))+a.replace(/\$/g,"-"):a)+")"+(r||s=="--"?"*"+(r||"")+(o||"1")+")":"")),ilt=/\s*,\s*(?![^()]*\))/,rlt=Object.prototype.toString,eS=(n,e,t,i,r)=>{let o,s,a;const l=(c,u,d)=>{let h,f;const g=p=>{for(h in p){const v=h.charCodeAt(0)===64,b=v&&Array.isArray(p[h])?p[h]:[p[h]];for(f of b){const y=/[A-Z]/.test(_=h)?_:_.replace(/-[^]/g,x=>x[1].toUpperCase()),w=typeof f=="object"&&f&&f.toString===rlt&&(!i.utils[y]||!u.length);if(y in i.utils&&!w){const x=i.utils[y];if(x!==s){s=x,g(x(f)),s=null;continue}}else if(y in Qge){const x=Qge[y];if(x!==a){a=x,g(x(f)),a=null;continue}}if(v&&(m=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=m.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(x,S,T,L,I,D)=>{const R=uU.test(S),O=.0625*(R?-1:1),[U,F]=R?[L,S]:[S,L];return"("+(T[0]==="="?"":T[0]===">"===R?"max-":"min-")+U+":"+(T[0]!=="="&&T.length===1?F.replace(uU,(Y,z,P)=>Number(z)+O*(T===">"?1:-1)+P):F)+(I?") and ("+(I[0]===">"?"min-":"max-")+U+":"+(I.length===1?D.replace(uU,(Y,z,P)=>Number(z)+O*(I===">"?-1:1)+P):D):"")+")"})),w){const x=v?d.concat(h):[...d],S=v?[...u]:elt(u,h.split(ilt));o!==void 0&&r(epe(...o)),o=void 0,l(f,S,x)}else o===void 0&&(o=[[],u,d]),h=v||h.charCodeAt(0)!==36?h:`--${Pp(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,f=w?f:typeof f=="number"?f&&y in olt?String(f)+"px":String(f):Jge(tlt(y,f==null?"":f),i.prefix,i.themeMap[y]),o[0].push(`${v?`${h} `:`${cU(h)}:`}${f}`)}}var m,_};g(c),o!==void 0&&r(epe(...o)),o=void 0};l(n,e,t)},epe=(n,e,t)=>`${t.map(i=>`${i}{`).join("")}${e.length?`${e.join(",")}{`:""}${n.join(";")}${e.length?"}":""}${Array(t.length?t.length+1:0).join("}")}`,olt={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},tpe=n=>String.fromCharCode(n+(n>25?39:97)),Nv=n=>(e=>{let t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=tpe(t%52)+i;return tpe(t%52)+i})(((e,t)=>{let i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return e})(5381,JSON.stringify(n))>>>0),F4=["themed","global","styled","onevar","resonevar","allvar","inline"],slt=n=>{if(n.href&&!n.href.startsWith(location.origin))return!1;try{return n.cssRules,!0}catch{return!1}},alt=n=>{let e;const t=()=>{if(e){const{rules:s,sheet:a}=e;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const l in s)delete s[l]}const i=Object(n).styleSheets||[];for(const s of i)if(slt(s)){for(let a=0,l=s.cssRules;l[a];++a){const c=Object(l[a]);if(c.type!==1)continue;const u=Object(l[a+1]);if(u.type!==4)continue;++a;const{cssText:d}=c;if(!d.startsWith("--sxs"))continue;const h=d.slice(14,-3).trim().split(/\s+/),f=F4[h[0]];f&&(e||(e={sheet:s,reset:t,rules:{}}),e.rules[f]={group:u,index:a,cache:new Set(h)})}if(e)break}if(!e){const s=(a,l)=>({type:l,cssRules:[],insertRule(c,u){this.cssRules.splice(u,0,s(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});e={sheet:n?(n.head||n).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:t,toString(){const{cssRules:a}=e.sheet;return[].map.call(a,(l,c)=>{const{cssText:u}=l;let d="";if(u.startsWith("--sxs"))return"";if(a[c-1]&&(d=a[c-1].cssText).startsWith("--sxs")){if(!l.cssRules.length)return"";for(const h in e.rules)if(e.rules[h].group===l)return`--sxs{--sxs:${[...e.rules[h].cache].join(" ")}}${u}`;return l.cssRules.length?`${d}${u}`:""}return u}).join("")}}}const{sheet:r,rules:o}=e;for(let s=F4.length-1;s>=0;--s){const a=F4[s];if(!o[a]){const l=F4[s+1],c=o[l]?o[l].index:r.cssRules.length;r.insertRule("@media{}",c),r.insertRule(`--sxs{--sxs:${s}}`,c),o[a]={group:r.cssRules[c+1],index:c,cache:new Set([s])}}llt(o[a])}};return t(),e},llt=n=>{const e=n.group;let t=e.cssRules.length;n.apply=i=>{try{e.insertRule(i,t),++t}catch{}}},B4=Symbol(),clt=Qw(),npe=(n,e)=>clt(n,()=>(...t)=>{let i={type:null,composers:new Set};for(const r of t)if(r!=null)if(r[Av]){i.type==null&&(i.type=r[Av].type);for(const o of r[Av].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(ult(r,n));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),dlt(n,i,e)}),ult=(o,r)=>{var s=o,{variants:n,compoundVariants:e,defaultVariants:t}=s,i=ao(s,["variants","compoundVariants","defaultVariants"]);const a=`${Pp(r.prefix)}c-${Nv(i)}`,l=[],c=[],u=Object.create(null),d=[];for(const p in t)u[p]=String(t[p]);if(typeof n=="object"&&n)for(const p in n){h=u,f=p,Qat.call(h,f)||(u[p]="undefined");const m=n[p];for(const _ in m){const v={[p]:String(_)};String(_)==="undefined"&&d.push(p);const b=m[_],y=[v,b,!Zge(b)];l.push(y)}}var h,f;if(typeof e=="object"&&e)for(const p of e){let g=p,{css:m}=g,_=ao(g,["css"]);m=typeof m=="object"&&m||{};for(const b in _)_[b]=String(_[b]);const v=[_,m,!Zge(m)];c.push(v)}return[a,i,l,c,u,d]},dlt=(n,e,t)=>{const[i,r,o,s]=hlt(e.composers),a=typeof e.type=="function"||e.type.$$typeof?(d=>{function h(){for(let f=0;f<h[B4].length;f++){const[g,p]=h[B4][f];d.rules[g].apply(p)}return h[B4]=[],null}return h[B4]=[],h.rules={},F4.forEach(f=>h.rules[f]={apply:g=>h[B4].push([f,g])}),h})(t):null,l=(a||t).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||flt;const _=d,{css:h}=_,f=ao(_,["css"]),g={};for(const v in o)if(delete f[v],v in d){let b=d[v];typeof b=="object"&&b?g[v]=Fe({"@initial":o[v]},b):(b=String(b),g[v]=b!=="undefined"||s.has(v)?b:o[v])}else g[v]=o[v];const p=new Set([...r]);for(const[v,b,y,w]of e.composers){t.rules.styled.cache.has(v)||(t.rules.styled.cache.add(v),eS(b,[`.${v}`],[],n,T=>{l.styled.apply(T)}));const x=ipe(y,g,n.media),S=ipe(w,g,n.media,!0);for(const T of x)if(T!==void 0)for(const[L,I,D]of T){const R=`${v}-${Nv(I)}-${L}`;p.add(R);const O=(D?t.rules.resonevar:t.rules.onevar).cache,U=D?l.resonevar:l.onevar;O.has(R)||(O.add(R),eS(I,[`.${R}`],[],n,F=>{U.apply(F)}))}for(const T of S)if(T!==void 0)for(const[L,I]of T){const D=`${v}-${Nv(I)}-${L}`;p.add(D),t.rules.allvar.cache.has(D)||(t.rules.allvar.cache.add(D),eS(I,[`.${D}`],[],n,R=>{l.allvar.apply(R)}))}}if(typeof h=="object"&&h){const v=`${i}-i${Nv(h)}-css`;p.add(v),t.rules.inline.cache.has(v)||(t.rules.inline.cache.add(v),eS(h,[`.${v}`],[],n,b=>{l.inline.apply(b)}))}for(const v of String(d.className||"").trim().split(/\s+/))v&&p.add(v);const m=f.className=[...p].join(" ");return{type:e.type,className:m,selector:c,props:f,toString:()=>m,deferredInjector:a}};return lU(u,{className:i,selector:c,[Av]:e,toString:()=>(t.rules.styled.cache.has(i)||u(),i)})},hlt=n=>{let e="";const t=[],i={},r=[];for(const[o,,,,s,a]of n){e===""&&(e=o),t.push(o),r.push(...a);for(const l in s){const c=s[l];(i[l]===void 0||c!=="undefined"||a.includes(c))&&(i[l]=c)}}return[e,t,i,new Set(r)]},ipe=(n,e,t,i)=>{const r=[];e:for(let[o,s,a]of n){if(a)continue;let l,c=0,u=!1;for(l in o){const d=o[l];let h=e[l];if(h!==d){if(typeof h!="object"||!h)continue e;{let f,g,p=0;for(const m in h){if(d===String(h[m])){if(m!=="@initial"){const _=m.slice(1);(g=g||[]).push(_ in t?t[_]:m.replace(/^@media ?/,"")),u=!0}c+=p,f=!0}++p}if(g&&g.length&&(s={["@media "+g.join(", ")]:s}),!f)continue e}}}(r[c]=r[c]||[]).push([i?"cv":`${l}-${o[l]}`,s,u])}return r},flt={},glt=Qw(),plt=(n,e)=>glt(n,()=>(...t)=>{const i=()=>{for(let r of t){r=typeof r=="object"&&r||{};let o=Nv(r);if(!e.rules.global.cache.has(o)){if(e.rules.global.cache.add(o),"@import"in r){let s=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let a of[].concat(r["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,e.sheet.insertRule(`@import ${a};`,s++);delete r["@import"]}eS(r,[],[],n,s=>{e.rules.global.apply(s)})}}return""};return lU(i,{toString:i})}),mlt=Qw(),_lt=(n,e)=>mlt(n,()=>t=>{const i=`${Pp(n.prefix)}k-${Nv(t)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const o=[];eS(t,[],[],n,a=>o.push(a));const s=`@keyframes ${i}{${o.join("")}}`;e.rules.global.apply(s)}return i};return lU(r,{get name(){return r()},toString:r})}),vlt=class{constructor(n,e,t,i){this.token=n==null?"":String(n),this.value=e==null?"":String(e),this.scale=t==null?"":String(t),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Pp(this.prefix)+Pp(this.scale)+this.token}toString(){return this.computedValue}},blt=Qw(),ylt=(n,e)=>blt(n,()=>(t,i)=>{i=typeof t=="object"&&t||Object(i);const r=`.${t=(t=typeof t=="string"?t:"")||`${Pp(n.prefix)}t-${Nv(i)}`}`,o={},s=[];for(const l in i){o[l]={};for(const c in i[l]){const u=`--${Pp(n.prefix)}${l}-${c}`,d=Jge(String(i[l][c]),n.prefix,l);o[l][c]=new vlt(c,d,l,n.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!e.rules.themed.cache.has(t)){e.rules.themed.cache.add(t);const l=`${i===n.theme?":root,":""}.${t}{${s.join(";")}}`;e.rules.themed.apply(l)}return t};return mt(Fe({},o),{get className(){return a()},selector:r,toString:a})}),Clt=Qw(),wlt=Qw(),Slt=n=>{const e=(t=>{let i=!1;const r=Clt(t,o=>{i=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",a=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,c=typeof o.theme=="object"&&o.theme||{},u={prefix:s,media:a,theme:c,themeMap:typeof o.themeMap=="object"&&o.themeMap||Fe({},Xat),utils:typeof o.utils=="object"&&o.utils||{}},d=alt(l),h={css:npe(u,d),globalCss:plt(u,d),keyframes:_lt(u,d),createTheme:ylt(u,d),reset(){d.reset(),h.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(h.theme=h.createTheme(c)),h});return i||r.reset(),r})(n);return e.styled=(({config:t,sheet:i})=>wlt(t,()=>{const r=npe(t,i);return(...o)=>{const s=r(...o),a=s[Av].type,l=Ie.forwardRef((c,u)=>{const d=c&&c.as||a,{props:h,deferredInjector:f}=s(c);return delete h.as,h.ref=u,f?Ie.createElement(Ie.Fragment,null,Ie.createElement(d,h),Ie.createElement(f,null)):Ie.createElement(d,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[Av]=s[Av],l}}))(e),e};function xlt(n,e,t){return Math.max(e,Math.min(n,t))}const Zl={toVector(n,e){return n===void 0&&(n=e),Array.isArray(n)?n:[n,n]},add(n,e){return[n[0]+e[0],n[1]+e[1]]},sub(n,e){return[n[0]-e[0],n[1]-e[1]]},addTo(n,e){n[0]+=e[0],n[1]+=e[1]},subTo(n,e){n[0]-=e[0],n[1]-=e[1]}};function rpe(n,e,t){return e===0||Math.abs(e)===1/0?Math.pow(n,t*5):n*e*t/(e+t*n)}function ope(n,e,t,i=.15){return i===0?xlt(n,e,t):n<e?-rpe(e-n,t-e,i)+e:n>t?+rpe(n-t,t-e,i)+t:n}function Elt(n,[e,t],[i,r]){const[[o,s],[a,l]]=n;return[ope(e,o,s,i),ope(t,a,l,r)]}function Hc(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function spe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function la(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?spe(Object(t),!0).forEach(function(i){Hc(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):spe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const ape={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function lpe(n){return n?n[0].toUpperCase()+n.slice(1):""}function Tlt(n,e="",t=!1){const i=ape[n],r=i&&i[e]||e;return"on"+lpe(n)+lpe(r)+(t?"Capture":"")}function klt(n,e=""){const t=ape[n],i=t&&t[e]||e;return n+i}function dU(n){return"touches"in n}function Llt(n){return Array.from(n.touches).filter(e=>{var t,i;return e.target===n.currentTarget||((t=n.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,e.target))})}function Dlt(n){return n.type==="touchend"?n.changedTouches:n.targetTouches}function cpe(n){return dU(n)?Dlt(n)[0]:n}function Ilt(n){return Llt(n).map(e=>e.identifier)}function hU(n){const e=cpe(n);return dU(n)?e.identifier:e.pointerId}function upe(n){const e=cpe(n);return[e.clientX,e.clientY]}function Alt(n){const e={};if("buttons"in n&&(e.buttons=n.buttons),"shiftKey"in n){const{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o}=n;Object.assign(e,{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o})}return e}function AA(n,...e){return typeof n=="function"?n(...e):n}function Nlt(){}function Rlt(...n){return n.length===0?Nlt:n.length===1?n[0]:function(){let e;for(const t of n)e=t.apply(this,arguments)||e;return e}}function dpe(n,e){return Object.assign({},e,n||{})}const Olt=32;class Mlt{constructor(e,t,i){this.ctrl=e,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:i,args:r}=this;t[i]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=i.from?AA(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:i,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,i.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Alt(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const g=t._delta.map(Math.abs);Zl.addTo(t._distance,g)}const[s,a]=t._movement,[l,c]=i.threshold,{_step:u,values:d}=t;if(i.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=l&&Math.sign(s)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),t.intentional=u[0]!==!1||u[1]!==!1,!t.intentional)return;const h=[0,0];if(i.hasCustomTransform){const[g,p]=d;h[0]=u[0]!==!1?g-u[0]:0,h[1]=u[1]!==!1?p-u[1]:0}else h[0]=u[0]!==!1?s-u[0]:0,h[1]=u[1]!==!1?a-u[1]:0;if(this.intent&&this.intent(h),(t._active&&!t._blocked||t.active)&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e)){t.first&&("bounds"in i&&(t._bounds=AA(i.bounds,t)),this.setup&&this.setup()),t.movement=h;const g=t.offset;if(this.computeOffset(),!t.last||o>Olt){t.delta=Zl.sub(t.offset,g);const p=t.delta.map(Math.abs);Zl.addTo(t.distance,p),t.direction=t.delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[p[0]/o,p[1]/o])}}const f=t._active?i.rubberband||[0,0]:[0,0];t.offset=Elt(t._bounds,t.offset,f),this.computeMovement()}emit(){const e=this.state,t=this.shared,i=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!i.triggerAllEvents)return;const r=this.handler(la(la(la({},t),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Plt([n,e]){const t=Math.abs(n)-Math.abs(e);if(t>0)return"x";if(t<0)return"y"}function Flt(n,e){switch(e){case"x":n[1]=0;break;case"y":n[0]=0;break}}class Blt extends Mlt{constructor(...e){super(...e);Hc(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Zl.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Zl.sub(this.state.offset,this.state.lastOffset)}intent(e){this.state.axis=this.state.axis||Plt(e),this.state._blocked=(this.config.lockDirection||!!this.config.axis)&&!this.state.axis||!!this.config.axis&&this.config.axis!==this.state.axis,!this.state._blocked&&(this.config.axis||this.config.lockDirection)&&Flt(e,this.state.axis)}}const $lt=n=>n,hpe=.15,fpe={enabled(n=!0){return n},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[hpe,hpe];case!1:return[0,0];default:return Zl.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Zl.toVector(n)},transform(n,e,t){const i=n||t.shared.transform;return this.hasCustomTransform=!!i,i||$lt},threshold(n){return Zl.toVector(n,0)}},$4=la(la({},fpe),{},{axis(n,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},bounds(n={}){if(typeof n=="function")return o=>$4.bounds(n(o));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:e=-1/0,right:t=1/0,top:i=-1/0,bottom:r=1/0}=n;return[[e,t],[i,r]]}}),NA=10,gpe={ArrowRight:(n=1)=>[NA*n,0],ArrowLeft:(n=1)=>[-NA*n,0],ArrowUp:(n=1)=>[0,-NA*n],ArrowDown:(n=1)=>[0,NA*n]};class Hlt extends Blt{constructor(...e){super(...e);Hc(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect(),r={left:t.left-i.left+e.offset[0],right:t.right-i.right+e.offset[0],top:t.top-i.top+e.offset[1],bottom:t.bottom-i.bottom+e.offset[1]};e._bounds=$4.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,i=this.state;e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons)||(this.ctrl.setEventIds(e),t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!i._pointerActive&&(this.start(e),this.setupPointer(e),i._pointerId=hU(e),i._pointerActive=!0,this.computeValues(upe(e)),this.computeInitial(),t.preventScroll?this.setupScrollPrevention(e):t.delay>0?this.setupDelayTrigger(e):this.startPointerDrag(e)))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,i=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=hU(e);if(t._pointerId&&r!==t._pointerId)return;const o=upe(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Zl.sub(o,t._values),this.computeValues(o)),Zl.addTo(t._movement,t._delta),this.compute(e),t._delayed){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(i.preventScroll&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,i=this.config;if(!t._pointerActive)return;const r=hU(e);if(t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=t._distance;if(t.tap=o<=3&&s<=3,t.tap&&i.filterTaps)t._force=!0;else{const[a,l]=t.direction,[c,u]=t.velocity,[d,h]=t.movement,[f,g]=i.swipe.velocity,[p,m]=i.swipe.distance,_=i.swipe.duration;t.elapsedTime<_&&(Math.abs(c)>f&&Math.abs(d)>p&&(t.swipe[0]=a),Math.abs(u)>g&&Math.abs(h)>m&&(t.swipe[1]=l))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config;let i=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){Wlt(e),this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","end",this.clean.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","cancel",this.clean.bind(this),{passive:!1}),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScroll,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",this.startPointerDrag.bind(this),this.config.delay,e)}keyDown(e){const t=gpe[e.key];if(t){const i=this.state,r=e.shiftKey?10:e.altKey?.1:1;i._delta=t(r),this.start(e),i._keyboardActive=!0,Zl.addTo(i._movement,i._delta),this.compute(e),this.emit()}}keyUp(e){e.key in gpe&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this))),e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this)),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0})}}function Wlt(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const H4=typeof window!="undefined"&&window.document&&window.document.createElement;function ppe(){return H4&&"ontouchstart"in window}function zlt(){return ppe()||H4&&window.navigator.maxTouchPoints>1}function Ult(){return H4&&"onpointerdown"in window}function Vlt(){return H4&&"exitPointerLock"in window.document}function jlt(){try{return"constructor"in GestureEvent}catch{return!1}}const Ed={isBrowser:H4,gesture:jlt(),touch:ppe(),touchscreen:zlt(),pointer:Ult(),pointerLock:Vlt()},qlt=250,Klt=180,Glt=.5,Ylt=50,Xlt=250,Zlt=la(la({},$4),{},{pointerLock(n,e,{pointer:{lock:t=!1,touch:i=!1}={}}){return this.useTouch=Ed.touch&&i,Ed.pointerLock&&t},device(n,e){return this.useTouch?"touch":this.pointerLock?"mouse":Ed.pointer?"pointer":Ed.touch?"touch":"mouse"},preventScroll(n=!1,e,{preventScrollAxis:t="y"}){return t&&(this.preventScrollAxis=t),Ed.touchscreen?typeof n=="number"?n:n?qlt:!1:!1},pointerCapture(n,e,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(n,e,{filterTaps:t=!1,axis:i=void 0}){const r=Zl.toVector(n,t?3:i?1:0);return this.filterTaps=t,r},swipe({velocity:n=Glt,distance:e=Ylt,duration:t=Xlt}={}){return{velocity:this.transform(Zl.toVector(n)),distance:this.transform(Zl.toVector(e)),duration:t}},delay(n=0){switch(n){case!0:return Klt;case!1:return 0;default:return n}}});la(la({},fpe),{},{useTouch(n,e,{pointer:{touch:t=!1}={}}){return Ed.touch&&t},device(n,e,t){if(t.shared.target&&!Ed.touch&&Ed.gesture)return"gesture";if(this.useTouch)return"touch";if(Ed.touchscreen){if(Ed.pointer)return"pointer";if(Ed.touch)return"touch"}},bounds(n,e,{scaleBounds:t={},angleBounds:i={}}){const r=s=>{const a=dpe(AA(t,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=dpe(AA(i,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof t!="function"&&typeof i!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(n,e,t){return this.lockDirection=t.axis==="lock",Zl.toVector(n,this.lockDirection?[.1,3]:0)}}),la(la({},$4),{},{mouseOnly:(n=!0)=>n}),la(la({},$4),{},{mouseOnly:(n=!0)=>n});const mpe=new Map,fU=new Map;function Qlt(n){mpe.set(n.key,n.engine),fU.set(n.key,n.resolver)}const Jlt={key:"drag",engine:Hlt,resolver:Zlt};function ect(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function tct(n,e){if(n==null)return{};var t=ect(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}const nct={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=Ed.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform(n){return n}},ict=["target","eventOptions","window","enabled","transform"];function RA(n={},e){const t={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":t[i]=r.call(t,n[i],i,n);break;case"object":t[i]=RA(n[i],r);break;case"boolean":r&&(t[i]=n[i]);break}return t}function rct(n,e){const t=n,{target:i,eventOptions:r,window:o,enabled:s,transform:a}=t,l=tct(t,ict),c={shared:RA({target:i,eventOptions:r,window:o,enabled:s,transform:a},nct)};if(e){const u=fU.get(e);c[e]=RA(la({shared:c.shared},l),u)}else for(const u in l){const d=fU.get(u);d&&(c[u]=RA(la({shared:c.shared},l[u]),d))}return c}class _pe{constructor(e){Hc(this,"_listeners",[]),this._ctrl=e}add(e,t,i,r,o){const s=klt(t,i),a=la(la({},this._ctrl.config.shared.eventOptions),o);e.addEventListener(s,r,a),this._listeners.push(()=>e.removeEventListener(s,r,a))}clean(){this._listeners.forEach(e=>e()),this._listeners=[]}}class oct{constructor(){Hc(this,"_timeouts",new Map)}add(e,t,i=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,i,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class sct{constructor(e){Hc(this,"gestures",new Set),Hc(this,"_targetEventStore",new _pe(this)),Hc(this,"gestureEventStores",{}),Hc(this,"gestureTimeoutStores",{}),Hc(this,"handlers",{}),Hc(this,"config",{}),Hc(this,"pointerIds",new Set),Hc(this,"touchIds",new Set),Hc(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),act(this,e)}setEventIds(e){dU(e)?this.touchIds=new Set(Ilt(e)):"pointerId"in e&&(e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId))}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=rct(e,t)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,i=t.eventOptions,r={};let o;if(t.target&&(o=t.target(),!o))return;const s=lct(r,i,!!o);if(t.enabled){for(const a of this.gestures)if(this.config[a].enabled){const l=mpe.get(a);new l(this,e,a).bind(s)}for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](la(la({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const a in r)r[a]=Rlt(...r[a]);if(!o)return r;for(const a in r){let l=a.substr(2).toLowerCase();const c=!!~l.indexOf("capture"),u=!!~l.indexOf("passive");(c||u)&&(l=l.replace(/capture|passive/g,"")),this._targetEventStore.add(o,l,"",r[a],{capture:c,passive:u})}}}function tS(n,e){n.gestures.add(e),n.gestureEventStores[e]=new _pe(n),n.gestureTimeoutStores[e]=new oct}function act(n,e){e.drag&&tS(n,"drag"),e.wheel&&tS(n,"wheel"),e.scroll&&tS(n,"scroll"),e.move&&tS(n,"move"),e.pinch&&tS(n,"pinch"),e.hover&&tS(n,"hover")}const lct=(n,e,t)=>(i,r,o,s={},a=!1)=>{var l,c;const u=(l=s.capture)!==null&&l!==void 0?l:e.capture,d=(c=s.passive)!==null&&c!==void 0?c:e.passive;let h=a?i:Tlt(i,r,u);t&&d&&(h+="Passive"),n[h]=n[h]||[],n[h].push(o)};function cct(n,e={},t,i){const r=Ie.useMemo(()=>new sct(n),[]);if(r.applyHandlers(n,i),r.applyConfig(e,t),Ie.useEffect(r.effect.bind(r)),Ie.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function vpe(n,e={}){return Qlt(Jlt),cct({drag:n},e,"drag")}const uct=f7e["useId".toString()]||(()=>{});let dct=0;function hct(n){const[e,t]=M.exports.useState(uct());return kA(()=>{n||t(i=>i!=null?i:String(dct++))},[n]),n||(e?`radix-${e}`:"")}const fct=M.exports.forwardRef((n,e)=>M.exports.createElement(Yw.span,Mt({},n,{ref:e,style:mt(Fe({},n.style),{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})}))),gct=M.exports.forwardRef((n,e)=>{const s=n,{children:t,width:i=10,height:r=5}=s,o=ao(s,["children","width","height"]);return M.exports.createElement(Yw.svg,Mt({},o,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:M.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))});function bpe(n){const[e,t]=M.exports.useState(void 0);return M.exports.useEffect(()=>{if(n){const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else{const l=n.getBoundingClientRect();s=l.width,a=l.height}t({width:s,height:a})});return i.observe(n,{box:"border-box"}),()=>{t(void 0),i.unobserve(n)}}},[n]),e}function pct(n,e){const t=Rv.get(n);return t===void 0?(Rv.set(n,{rect:{},callbacks:[e]}),Rv.size===1&&(gU=requestAnimationFrame(ype))):(t.callbacks.push(e),e(n.getBoundingClientRect())),()=>{const i=Rv.get(n);if(i===void 0)return;const r=i.callbacks.indexOf(e);r>-1&&i.callbacks.splice(r,1),i.callbacks.length===0&&(Rv.delete(n),Rv.size===0&&cancelAnimationFrame(gU))}}let gU;const Rv=new Map;function ype(){const n=[];Rv.forEach((e,t)=>{const i=t.getBoundingClientRect();var r,o;r=e.rect,o=i,(r.width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(e.rect=i,n.push(e))}),n.forEach(e=>{e.callbacks.forEach(t=>t(e.rect))}),gU=requestAnimationFrame(ype)}function Cpe(n){const[e,t]=M.exports.useState();return M.exports.useEffect(()=>{if(n){const i=pct(n,t);return()=>{t(void 0),i()}}},[n]),e}function wpe(n,e=[]){let t=[];const i=()=>{const r=t.map(o=>M.exports.createContext(o));return function(o){const s=(o==null?void 0:o[n])||r;return M.exports.useMemo(()=>({[`__scope${n}`]:mt(Fe({},o),{[n]:s})}),[o,s])}};return i.scopeName=n,[function(r,o){const s=M.exports.createContext(o),a=t.length;function l(c){const p=c,{scope:u,children:d}=p,h=ao(p,["scope","children"]),f=(u==null?void 0:u[n][a])||s,g=M.exports.useMemo(()=>h,Object.values(h));return M.exports.createElement(f.Provider,{value:g},d)}return t=[...t,o],l.displayName=r+"Provider",[l,function(c,u){const d=(u==null?void 0:u[n][a])||s,h=M.exports.useContext(d);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${r}\``)}]},mct(i,...e)]}function mct(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const i=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(r){const o=i.reduce((s,{useScope:a,scopeName:l})=>Fe(Fe({},s),a(r)[`__scope${l}`]),{});return M.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function _ct({anchorRect:n,popperSize:e,arrowSize:t,arrowOffset:i=0,side:r,sideOffset:o=0,align:s,alignOffset:a=0,shouldAvoidCollisions:l=!0,collisionBoundariesRect:c,collisionTolerance:u=0}){if(!n||!e||!c)return{popperStyles:vct,arrowStyles:pU};const d=function(S,T,L=0,I=0,D){const R=D?D.height:0,O=Spe(T,S,"x"),U=Spe(T,S,"y"),F=U.before-L-R,Y=U.after+L+R,z=O.before-L-R,P=O.after+L+R;return{top:{start:{x:O.start+I,y:F},center:{x:O.center,y:F},end:{x:O.end-I,y:F}},right:{start:{x:P,y:U.start+I},center:{x:P,y:U.center},end:{x:P,y:U.end-I}},bottom:{start:{x:O.start+I,y:Y},center:{x:O.center,y:Y},end:{x:O.end-I,y:Y}},left:{start:{x:z,y:U.start+I},center:{x:z,y:U.center},end:{x:z,y:U.end-I}}}}(e,n,o,a,t),h=d[r][s];if(l===!1){const S=xpe(h);let T=pU;return t&&(T=Tpe({popperSize:e,arrowSize:t,arrowOffset:i,side:r,align:s})),{popperStyles:mt(Fe({},S),{"--radix-popper-transform-origin":Epe(e,r,s,i,t)}),arrowStyles:T,placedSide:r,placedAlign:s}}const f=DOMRect.fromRect(Fe(Fe({},e),h)),g=(p=c,m=u,DOMRect.fromRect({width:p.width-2*m,height:p.height-2*m,x:p.left+m,y:p.top+m}));var p,m;const _=Lpe(f,g),v=d[kpe(r)][s],b=function(S,T,L){const I=kpe(S);return T[S]&&!L[I]?I:S}(r,_,Lpe(DOMRect.fromRect(Fe(Fe({},e),v)),g)),y=function(S,T,L,I,D){const R=L==="top"||L==="bottom",O=R?"left":"top",U=R?"right":"bottom",F=R?"width":"height",Y=T[F]>S[F];return(I==="start"||I==="center")&&(D[O]&&Y||D[U]&&!Y)?"end":(I==="end"||I==="center")&&(D[U]&&Y||D[O]&&!Y)?"start":I}(e,n,r,s,_),w=xpe(d[b][y]);let x=pU;return t&&(x=Tpe({popperSize:e,arrowSize:t,arrowOffset:i,side:b,align:y})),{popperStyles:mt(Fe({},w),{"--radix-popper-transform-origin":Epe(e,b,y,i,t)}),arrowStyles:x,placedSide:b,placedAlign:y}}function Spe(n,e,t){const i=n[t==="x"?"left":"top"],r=t==="x"?"width":"height",o=n[r],s=e[r];return{before:i-s,start:i,center:i+(o-s)/2,end:i+o-s,after:i+o}}function xpe(n){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(n.x+window.scrollX)}px, ${Math.round(n.y+window.scrollY)}px, 0)`}}function Epe(n,e,t,i,r){const o=e==="top"||e==="bottom",s=r?r.width:0,a=r?r.height:0,l=s/2+i;let c="",u="";return o?(c={start:`${l}px`,center:"center",end:n.width-l+"px"}[t],u=e==="top"?`${n.height+a}px`:-a+"px"):(c=e==="left"?`${n.width+a}px`:-a+"px",u={start:`${l}px`,center:"center",end:n.height-l+"px"}[t]),`${c} ${u}`}const vct={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},pU={position:"absolute",opacity:0};function Tpe({popperSize:n,arrowSize:e,arrowOffset:t,side:i,align:r}){const o=(n.width-e.width)/2,s=(n.height-e.width)/2,a={top:0,right:90,bottom:180,left:-90}[i],l=Math.max(e.width,e.height),c={width:`${l}px`,height:`${l}px`,transform:`rotate(${a}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:bct(i,r)};return i!=="top"&&i!=="bottom"||(r==="start"&&(c.left=`${t}px`),r==="center"&&(c.left=`${o}px`),r==="end"&&(c.right=`${t}px`)),i!=="left"&&i!=="right"||(r==="start"&&(c.top=`${t}px`),r==="center"&&(c.top=`${s}px`),r==="end"&&(c.bottom=`${t}px`)),c}function bct(n,e){return(n!=="top"&&n!=="right"||e!=="end")&&(n!=="bottom"&&n!=="left"||e==="end")?"ltr":"rtl"}function kpe(n){return{top:"bottom",right:"left",bottom:"top",left:"right"}[n]}function Lpe(n,e){return{top:n.top<e.top,right:n.right>e.right,bottom:n.bottom>e.bottom,left:n.left<e.left}}const[Dpe,Ipe]=wpe("Popper"),[yct,Ape]=Dpe("Popper"),Cct=n=>{const{__scopePopper:e,children:t}=n,[i,r]=M.exports.useState(null);return M.exports.createElement(yct,{scope:e,anchor:i,onAnchorChange:r},t)},wct=M.exports.forwardRef((n,e)=>{const l=n,{__scopePopper:t,virtualRef:i}=l,r=ao(l,["__scopePopper","virtualRef"]),o=Ape("PopperAnchor",t),s=M.exports.useRef(null),a=TA(e,s);return M.exports.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:M.exports.createElement(Yw.div,Mt({},r,{ref:a}))}),[Sct,xct]=Dpe("PopperContent"),Ect=M.exports.forwardRef((n,e)=>{const R=n,{__scopePopper:t,side:i="bottom",sideOffset:r,align:o="center",alignOffset:s,collisionTolerance:a,avoidCollisions:l=!0}=R,c=ao(R,["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"]),u=Ape("PopperContent",t),[d,h]=M.exports.useState(),f=Cpe(u.anchor),[g,p]=M.exports.useState(null),m=bpe(g),[_,v]=M.exports.useState(null),b=bpe(_),y=TA(e,O=>p(O)),w=function(){const[O,U]=M.exports.useState(void 0);return M.exports.useEffect(()=>{let F;function Y(){U({width:window.innerWidth,height:window.innerHeight})}function z(){window.clearTimeout(F),F=window.setTimeout(Y,100)}return Y(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[]),O}(),x=w?DOMRect.fromRect(mt(Fe({},w),{x:0,y:0})):void 0,{popperStyles:S,arrowStyles:T,placedSide:L,placedAlign:I}=_ct({anchorRect:f,popperSize:m,arrowSize:b,arrowOffset:d,side:i,sideOffset:r,align:o,alignOffset:s,shouldAvoidCollisions:l,collisionBoundariesRect:x,collisionTolerance:a}),D=L!==void 0;return M.exports.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},M.exports.createElement(Sct,{scope:t,arrowStyles:T,onArrowChange:v,onArrowOffsetChange:h},M.exports.createElement(Yw.div,Mt({"data-side":L,"data-align":I},c,{style:mt(Fe({},c.style),{animation:D?void 0:"none"}),ref:y}))))}),Tct=M.exports.forwardRef(function(n,e){const a=n,{__scopePopper:t,offset:i}=a,r=ao(a,["__scopePopper","offset"]),o=xct("PopperArrow",t),{onArrowOffsetChange:s}=o;return M.exports.useEffect(()=>s(i),[s,i]),M.exports.createElement("span",{style:mt(Fe({},o.arrowStyles),{pointerEvents:"none"})},M.exports.createElement("span",{ref:o.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},M.exports.createElement(gct,Mt({},r,{ref:e,style:mt(Fe({},r.style),{display:"block"})}))))}),kct=Cct,Lct=wct,Dct=Ect,Ict=Tct,Npe=n=>{const{present:e,children:t}=n,i=function(s){const[a,l]=M.exports.useState(),c=M.exports.useRef({}),u=M.exports.useRef(s),d=M.exports.useRef("none"),h=s?"mounted":"unmounted",[f,g]=function(p,m){return M.exports.useReducer((_,v)=>{const b=m[_][v];return b!=null?b:_},p)}(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.exports.useEffect(()=>{const p=OA(c.current);d.current=f==="mounted"?p:"none"},[f]),kA(()=>{const p=c.current,m=u.current;if(m!==s){const _=d.current,v=OA(p);s?g("MOUNT"):v==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(m&&_!==v?"ANIMATION_OUT":"UNMOUNT"),u.current=s}},[s,g]),kA(()=>{if(a){const p=_=>{const v=OA(c.current).includes(_.animationName);_.target===a&&v&&g("ANIMATION_END")},m=_=>{_.target===a&&(d.current=OA(c.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:M.exports.useCallback(p=>{p&&(c.current=getComputedStyle(p)),l(p)},[])}}(e),r=typeof t=="function"?t({present:i.isPresent}):M.exports.Children.only(t),o=TA(i.ref,r.ref);return typeof t=="function"||i.isPresent?M.exports.cloneElement(r,{ref:o}):null};function OA(n){return(n==null?void 0:n.animationName)||"none"}Npe.displayName="Presence";function Rpe(n){const e=M.exports.useRef(n);return M.exports.useEffect(()=>{e.current=n},[n]),e.current}function mU(n){const e=M.exports.useRef(n);return M.exports.useEffect(()=>{e.current=n}),M.exports.useMemo(()=>(...t)=>{var i;return(i=e.current)===null||i===void 0?void 0:i.call(e,...t)},[])}function Act(n){const e=mU(n);M.exports.useEffect(()=>{const t=i=>{i.key==="Escape"&&e(i)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function Nct({prop:n,defaultProp:e,onChange:t=()=>{}}){const[i,r]=function({defaultProp:l,onChange:c}){const u=M.exports.useState(l),[d]=u,h=M.exports.useRef(d),f=mU(c);return M.exports.useEffect(()=>{h.current!==d&&(f(d),h.current=d)},[d,h,f]),u}({defaultProp:e,onChange:t}),o=n!==void 0,s=o?n:i,a=mU(t);return[s,M.exports.useCallback(l=>{if(o){const c=l,u=typeof l=="function"?c(n):l;u!==n&&a(u)}else r(l)},[o,n,r,a])]}function nS(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n==null||n(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}const[Ope,Iln]=wpe("Tooltip",[Ipe]),MA=Ipe(),Rct=700,[Aln,Oct]=Ope("TooltipProvider",{isOpenDelayed:!0,delayDuration:Rct,onOpen:()=>{},onClose:()=>{}}),[Mct,PA]=Ope("Tooltip"),Pct=n=>{const{__scopeTooltip:e,children:t,open:i,defaultOpen:r=!1,onOpenChange:o,delayDuration:s}=n,a=Oct("Tooltip",e),l=MA(e),[c,u]=M.exports.useState(null),d=hct(),h=M.exports.useRef(0),f=s!=null?s:a.delayDuration,g=M.exports.useRef(!1),{onOpen:p,onClose:m}=a,[_=!1,v]=Nct({prop:i,defaultProp:r,onChange:x=>{x&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),o==null||o(x)}}),b=M.exports.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),y=M.exports.useCallback(()=>{window.clearTimeout(h.current),g.current=!1,v(!0)},[v]),w=M.exports.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,v(!0)},f)},[f,v]);return M.exports.useEffect(()=>()=>window.clearTimeout(h.current),[]),M.exports.createElement(kct,l,M.exports.createElement(Mct,{scope:e,contentId:d,open:_,stateAttribute:b,trigger:c,onTriggerChange:u,onTriggerEnter:M.exports.useCallback(()=>{a.isOpenDelayed?w():y()},[a.isOpenDelayed,w,y]),onOpen:M.exports.useCallback(y,[y]),onClose:M.exports.useCallback(()=>{window.clearTimeout(h.current),v(!1),m()},[v,m])},t))},Fct=M.exports.forwardRef((n,e)=>{const c=n,{__scopeTooltip:t}=c,i=ao(c,["__scopeTooltip"]),r=PA("TooltipTrigger",t),o=MA(t),s=TA(e,r.onTriggerChange),a=M.exports.useRef(!1),l=M.exports.useCallback(()=>a.current=!1,[]);return M.exports.useEffect(()=>()=>document.removeEventListener("mouseup",l),[l]),M.exports.createElement(Lct,Mt({asChild:!0},o),M.exports.createElement(Yw.button,Mt({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:s,onMouseEnter:nS(n.onMouseEnter,r.onTriggerEnter),onMouseLeave:nS(n.onMouseLeave,r.onClose),onMouseDown:nS(n.onMouseDown,()=>{r.onClose(),a.current=!0,document.addEventListener("mouseup",l,{once:!0})}),onFocus:nS(n.onFocus,()=>{a.current||r.onOpen()}),onBlur:nS(n.onBlur,r.onClose),onClick:nS(n.onClick,r.onClose)})))}),Bct=M.exports.forwardRef((n,e)=>{const o=n,{forceMount:t}=o,i=ao(o,["forceMount"]),r=PA("TooltipContent",n.__scopeTooltip);return M.exports.createElement(Npe,{present:t||r.open},M.exports.createElement($ct,Mt({ref:e},i)))}),$ct=M.exports.forwardRef((n,e)=>{const d=n,{__scopeTooltip:t,children:i,"aria-label":r,portalled:o=!0}=d,s=ao(d,["__scopeTooltip","children","aria-label","portalled"]),a=PA("TooltipContent",t),l=MA(t),c=o?zge:M.exports.Fragment,{onClose:u}=a;return Act(()=>u()),M.exports.useEffect(()=>(document.addEventListener("tooltip.open",u),()=>document.removeEventListener("tooltip.open",u)),[u]),M.exports.createElement(c,null,M.exports.createElement(Wct,{__scopeTooltip:t}),M.exports.createElement(Dct,Mt({"data-state":a.stateAttribute},l,s,{ref:e,style:mt(Fe({},s.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),M.exports.createElement(Hge,null,i),M.exports.createElement(fct,{id:a.contentId,role:"tooltip"},r||i)))}),Hct=M.exports.forwardRef((n,e)=>{const o=n,{__scopeTooltip:t}=o,i=ao(o,["__scopeTooltip"]),r=MA(t);return M.exports.createElement(Ict,Mt({},r,i,{ref:e}))});function Wct(n){const{__scopeTooltip:e}=n,t=PA("CheckTriggerMoved",e),i=Cpe(t.trigger),r=i==null?void 0:i.left,o=Rpe(r),s=i==null?void 0:i.top,a=Rpe(s),l=t.onClose;return M.exports.useEffect(()=>{(o!==void 0&&o!==r||a!==void 0&&a!==s)&&l()},[l,o,a,r,s]),null}const zct=Pct,Uct=Fct,Vct=Bct,jct=Hct;function qct(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function Nr(n,e){if(n==null)return{};var t=qct(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}let Po;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(Po||(Po={}));const Kct={[Po.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[Po.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Po.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[Po.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Po.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[Po.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[Po.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[Po.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[Po.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[Po.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Po.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Mpe(n,e,...t){const[i,...r]=Kct[e](...t);console[n]("LEVA: "+i,...r)}const Fp=Mpe.bind(null,"warn"),Gct=Mpe.bind(null,"log"),Yct=["value"],Xct=["schema"],Zct=["value"],Ppe=[],Ov={};function Fpe(n){let{value:e}=n,t=Nr(n,Yct);for(let i of Ppe){const r=i(e,t);if(r)return r}}function Bp(n,e){let{schema:t}=e,i=Nr(e,Xct);if(n in Ov){Fp(Po.ALREADY_REGISTERED_TYPE,n);return}Ppe.push((r,o)=>t(r,o)&&n),Ov[n]=i}function $p(n){return n}function _U(n,e,t,i){const{normalize:r}=Ov[n];if(r)return r(e,t,i);if(typeof e!="object"||!("value"in e))return{value:e};const{value:o}=e,s=Nr(e,Zct);return{value:o,settings:s}}function Qct(n,e,t,i,r,o){const{sanitize:s}=Ov[n];return s?s(e,t,i,r,o):e}function Bpe(n,e,t){const{format:i}=Ov[n];return i?i(e,t):e}function Jct(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $pe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Hn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$pe(Object(t),!0).forEach(function(i){Jct(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$pe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const n0=(n,e,t)=>n>t?t:n<e?e:n,eut=n=>{if(n===""||typeof n=="number")return n;try{const e=i0(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},tut=Math.log(10);function Hpe(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10==0;)e/=10;const t=Math.floor(Math.log(e)/tut)+1,i=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,i-t);return Math.max(r,.001)}const FA=(n,e,t)=>t===e?0:(n0(n,e,t)-e)/(t-e),BA=(n,e,t)=>n*(t-e)+e,nut=()=>"_"+Math.random().toString(36).substr(2,9),Wpe=/\(([0-9+\-*/^ .]+)\)/,zpe=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Upe=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Vpe=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,jpe=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,qpe=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function i0(n){if(isNaN(Number(n)))if(Wpe.test(n)){const e=n.replace(Wpe,(t,i)=>String(i0(i)));return i0(e)}else if(zpe.test(n)){const e=n.replace(zpe,(t,i,r)=>String(Math.pow(Number(i),Number(r))));return i0(e)}else if(Upe.test(n)){const e=n.replace(Upe,(t,i,r)=>String(Number(i)*Number(r)));return i0(e)}else if(Vpe.test(n)){const e=n.replace(Vpe,(t,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return i0(e)}else if(jpe.test(n)){const e=n.replace(jpe,(t,i,r)=>String(Number(i)+Number(r)));return i0(e)}else if(qpe.test(n)){const e=n.replace(qpe,(t,i,r)=>String(Number(i)-Number(r)));return i0(e)}else return Number(n);return Number(n)}function iut(n,e){return e.reduce((t,i)=>(!!n&&n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}function rut(n,e){const t=Hn({},n);return e.forEach(i=>i in n&&delete t[i]),t}function out(n,e){return n.reduce((t,i,r)=>Object.assign(t,{[e[r]]:i}),{})}let Ah;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(Ah||(Ah={}));let Nh;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(Nh||(Nh={}));const sut=["type","__customInput"],aut=["render","label","optional","disabled","hint","onChange","onEditStart","onEditEnd","transient"],lut=["type"];function Kpe(n,e,t={},i){if(typeof n!="object"||Array.isArray(n))return{type:i,input:n,options:Hn({key:e,label:e,optional:!1,disabled:!1},t)};if("__customInput"in n){const{type:_,__customInput:v}=n,b=Nr(n,sut);return Kpe(v,e,b,_)}const{render:r,label:o,optional:s,disabled:a,hint:l,onChange:c,onEditStart:u,onEditEnd:d,transient:h}=n,f=Nr(n,aut),g=Hn({render:r,key:e,label:o!=null?o:e,hint:l,transient:h!=null?h:!!c,onEditStart:u,onEditEnd:d},t);let{type:p}=f,m=Nr(f,lut);return p=i!=null?i:p,p in Ah?{type:p,input:m,options:g}:{type:p,input:m,options:Hn(Hn({},g),{},{onChange:c,optional:s!=null?s:!1,disabled:a!=null?a:!1})}}function cut(n,e,t,i){const r=Kpe(n,e),{type:o,input:s,options:a}=r;if(o)return o in Ah?r:{type:o,input:_U(o,s,t,i),options:a};let l=Fpe(s);return l?{type:l,input:_U(l,s,t,i),options:a}:(l=Fpe({value:s}),l?{type:l,input:_U(l,{value:s},t,i),options:a}:!1)}function Gpe(n,e,t,i,r){const{value:o,type:s,settings:a}=n;n.value=Xpe({type:s,value:o,settings:a},e,t,i),n.fromPanel=r}const Ype=function(e,t,i){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=i};function Xpe({type:n,value:e,settings:t},i,r,o){const s=n!=="SELECT"&&typeof i=="function"?i(e):i;let a;try{a=Qct(n,s,t,e,r,o)}catch(l){throw new Ype(`The value \`${i}\` did not result in a correct value.`,e,l)}if(M4(a,e))throw new Ype(`The value \`${i}\` did not result in a value update, which remained the same: \`${e}\`.
323
+ `)+" "+ne[1]:ne[0]+B+" "+N.join(", ")+" "+ne[1]}function p(N){return Array.isArray(N)}n.isArray=p;function m(N){return typeof N=="boolean"}n.isBoolean=m;function _(N){return N===null}n.isNull=_;function v(N){return N==null}n.isNullOrUndefined=v;function b(N){return typeof N=="number"}n.isNumber=b;function y(N){return typeof N=="string"}n.isString=y;function w(N){return typeof N=="symbol"}n.isSymbol=w;function x(N){return N===void 0}n.isUndefined=x;function S(N){return T(N)&&O(N)==="[object RegExp]"}n.isRegExp=S;function T(N){return typeof N=="object"&&N!==null}n.isObject=T;function L(N){return T(N)&&O(N)==="[object Date]"}n.isDate=L;function I(N){return T(N)&&(O(N)==="[object Error]"||N instanceof Error)}n.isError=I;function D(N){return typeof N=="function"}n.isFunction=D;function R(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}n.isPrimitive=R,n.isBuffer=Rat;function O(N){return Object.prototype.toString.call(N)}function U(N){return N<10?"0"+N.toString(10):N.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,B=[U(N.getHours()),U(N.getMinutes()),U(N.getSeconds())].join(":");return[N.getDate(),F[N.getMonth()],B].join(" ")}n.log=function(){console.log("%s - %s",Y(),n.format.apply(n,arguments))},n.inherits=iU.exports,n._extend=function(N,B){if(!B||!T(B))return N;for(var ne=Object.keys(B),me=ne.length;me--;)N[ne[me]]=B[ne[me]];return N};function z(N,B){return Object.prototype.hasOwnProperty.call(N,B)}var P=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;n.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(P&&B[P]){var ne=B[P];if(typeof ne!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ne,P,{value:ne,enumerable:!1,writable:!1,configurable:!0}),ne}function ne(){for(var me,Ce,Oe=new Promise(function(ce,He){me=ce,Ce=He}),X=[],ue=0;ue<arguments.length;ue++)X.push(arguments[ue]);X.push(function(ce,He){ce?Ce(ce):me(He)});try{B.apply(this,X)}catch(ce){Ce(ce)}return Oe}return Object.setPrototypeOf(ne,Object.getPrototypeOf(B)),P&&Object.defineProperty(ne,P,{value:ne,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ne,e(B))},n.promisify.custom=P;function V(N,B){if(!N){var ne=new Error("Promise was rejected with a falsy value");ne.reason=N,N=ne}return B(N)}function $(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');function B(){for(var ne=[],me=0;me<arguments.length;me++)ne.push(arguments[me]);var Ce=ne.pop();if(typeof Ce!="function")throw new TypeError("The last argument must be of type Function");var Oe=this,X=function(){return Ce.apply(Oe,arguments)};N.apply(this,ne).then(function(ue){process.nextTick(X,null,ue)},function(ue){process.nextTick(V,ue,X)})}return Object.setPrototypeOf(B,Object.getPrototypeOf(N)),Object.defineProperties(B,e(N)),B}n.callbackify=$}(Oge);var Mge=nU.exports.EventEmitter,Oat=O4.exports,Mat=Rge.exports,Pge=Cge.exports,Fge=wge.exports,Pat=Oge;function t0(n,e,t,i){Mge.call(this),Pge.call(this,n,e),this.users={},this.docId=t,this.mayWrite=i||function(r,o){o(!0)}}Pat.inherits(t0,Pge),Fat(t0.prototype,Mge.prototype);function Fat(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}t0.prototype.addClient=function(n){var e=this;n.join(this.docId).emit("doc",{str:this.document,revision:this.operations.length,clients:this.users}).on("operation",function(t,i,r){e.mayWrite(n,function(o){if(!o){console.log("User doesn't have the right to edit.");return}e.onOperation(n,t,i,r)})}).on("selection",function(t){e.mayWrite(n,function(i){if(!i){console.log("User doesn't have the right to edit.");return}e.updateSelection(n,t&&Fge.fromJSON(t))})}).on("disconnect",function(){console.log("Disconnect"),n.leave(e.docId),e.onDisconnect(n),n.manager.sockets.clients(e.docId).length===0&&e.emit("empty-room")})},t0.prototype.onOperation=function(n,e,t,i){var r;try{r=new Mat(Oat.fromJSON(t),i&&Fge.fromJSON(i))}catch(a){console.error("Invalid operation received: "+a);return}try{var o=n.id,s=this.receiveOperation(e,r);console.log("new operation: "+r),this.getClient(o).selection=s.meta,n.emit("ack"),n.broadcast.in(this.docId).emit("operation",o,s.wrapped.toJSON(),s.meta)}catch(a){console.error(a)}},t0.prototype.updateSelection=function(n,e){var t=n.id;e?this.getClient(t).selection=e:delete this.getClient(t).selection,n.broadcast.in(this.docId).emit("selection",t,e)},t0.prototype.setName=function(n,e){var t=n.id;this.getClient(t).name=e,n.broadcast.in(this.docId).emit("set_name",t,e)},t0.prototype.getClient=function(n){return this.users[n]||(this.users[n]={})},t0.prototype.onDisconnect=function(n){var e=n.id;delete this.users[e],n.broadcast.in(this.docId).emit("client_left",e)};var Kf=O4.exports;const{setAppStatus:Bat,switchDoc:rU,setCRDTInfo:$at,dockerInfo:xln,doc:Eln,CRDTInfo:Tln}=rn.getState(),oU=async n=>{var l,c,u;Bat("replay");let e;const t=await cle(),i=n.userId===void 0?t:t.filter(d=>d.userInfo.uuid===n.userId),o=i.filter(d=>SA(n.timestamp).isSame(d.timestamp)||SA(n.timestamp).isBefore(d.timestamp))[0],s=await lle(o.file.path),a=await ale(o.file.path);if(o.event==="editor"){const d=i.filter(f=>f.event==="editor").filter(f=>{var g;return((g=f.file)==null?void 0:g.path)===s.path}),h=o.editor.revision>s.revision?d.filter(f=>f.editor.revision<=o.editor.revision).filter(f=>f.editor.revision>s.revision):d.filter(f=>f.editor.revision>o.editor.revision).filter(f=>f.editor.revision<=s.revision);o.editor.revision>s.revision?e=h.reduce((f,g,p)=>{const m=Kf.fromJSON(g.editor.operation);return f.targetLength===m.baseLength?f.compose(m):m.compose(f)},new Kf().retain(s.revision===0?s.value.length:a.value.length)):e=h.length===1?Kf.fromJSON(h[0].editor.operation).invert(a.value):h.reduce((f,g,p)=>{const m=Kf.fromJSON(g.editor.operation);return f.editor?Kf.fromJSON(f.editor.operation).compose(m):f.compose(m)}).invert(a.value),o.editor.operation=e.toJSON()}if(o.file){if(!o.file)return;const d=e?s.revision===0?e==null?void 0:e.apply(s.value):e==null?void 0:e.apply(a.value):s.value;IH(o.file.path,mt(Fe({},a),{value:d})),rU==null||rU({value:s.value,path:o.file.path})}console.log(rn.getState().appStatus),d3((l=o==null?void 0:o.file)==null?void 0:l.path,mt(Fe({},s),{revision:(c=o==null?void 0:o.editor)==null?void 0:c.revision,path:(u=o==null?void 0:o.file)==null?void 0:u.path})),setTimeout(()=>{$at(Fe({},o))},0)};var kln="";const Gw=Mc(n=>({ignoreReplayers:[],setIgnoreReplayer:e=>n(()=>({ignoreReplayers:e}))}));function Bge(...n){return e=>n.forEach(t=>function(i,r){typeof i=="function"?i(r):i!=null&&(i.current=r)}(t,e))}function TA(...n){return M.exports.useCallback(Bge(...n),n)}const $ge=M.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=ao(r,["children"]);return M.exports.Children.toArray(t).some(Wge)?M.exports.createElement(M.exports.Fragment,null,M.exports.Children.map(t,o=>Wge(o)?M.exports.createElement(sU,Mt({},i,{ref:e}),o.props.children):o)):M.exports.createElement(sU,Mt({},i,{ref:e}),t)});$ge.displayName="Slot";const sU=M.exports.forwardRef((n,e)=>{const r=n,{children:t}=r,i=ao(r,["children"]);return M.exports.isValidElement(t)?M.exports.cloneElement(t,mt(Fe({},Hat(i,t.props)),{ref:Bge(e,t.ref)})):M.exports.Children.count(t)>1?M.exports.Children.only(null):null});sU.displayName="SlotClone";const Hge=({children:n})=>M.exports.createElement(M.exports.Fragment,null,n);function Wge(n){return M.exports.isValidElement(n)&&n.type===Hge}function Hat(n,e){const t=Fe({},e);for(const i in e){const r=n[i],o=e[i];/^on[A-Z]/.test(i)?t[i]=(...s)=>{o==null||o(...s),r==null||r(...s)}:i==="style"?t[i]=Fe(Fe({},r),o):i==="className"&&(t[i]=[r,o].filter(Boolean).join(" "))}return Fe(Fe({},n),t)}const Yw=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce((n,e)=>mt(Fe({},n),{[e]:M.exports.forwardRef((t,i)=>{const a=t,{asChild:r}=a,o=ao(a,["asChild"]),s=r?$ge:e;return M.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.as&&console.error(Wat),M.exports.createElement(s,Mt({},o,{ref:i}))})}),{}),Wat="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",kA=Boolean(globalThis==null?void 0:globalThis.document)?M.exports.useLayoutEffect:()=>{},zge=M.exports.forwardRef((n,e)=>{var t,i;const c=n,{containerRef:r,style:o}=c,s=ao(c,["containerRef","style"]),a=(t=r==null?void 0:r.current)!==null&&t!==void 0?t:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,l]=M.exports.useState({});return kA(()=>{l({})},[]),a?dH.createPortal(M.exports.createElement(Yw.div,Mt({"data-radix-portal":""},s,{ref:e,style:a===document.body?Fe({position:"absolute",top:0,left:0,zIndex:2147483647},o):void 0})),a):null}),zat=zge;var Uge=Object.prototype.hasOwnProperty;function M4(n,e){var t,i;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((i=n.length)===e.length)for(;i--&&M4(n[i],e[i]););return i===-1}if(!t||typeof n=="object"){i=0;for(t in n)if(Uge.call(n,t)&&++i&&!Uge.call(e,t)||!(t in e)||!M4(n[t],e[t]))return!1;return Object.keys(e).length===i}}return n!==n&&e!==e}function P4(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Object.is(n[t[i]],e[t[i]]))return!1;return!0}var LA=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},Vge=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Uat=function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)},Vat=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n},jat=function(){function n(e,t,i,r){LA(this,n),this.name=e,this.fn=t,this.args=i,this.modifiers=r}return Vge(n,[{key:"_test",value:function(t){var i=this.fn;try{Xw(this.modifiers.slice(),i)(t)}catch{i=function(){return!1}}try{return Xw(this.modifiers.slice(),i)(t)}catch{return!1}}},{key:"_check",value:function(t){try{Xw(this.modifiers.slice(),this.fn)(t)}catch{if(Xw(this.modifiers.slice(),function(r){return r})(!1))return}if(!Xw(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var i=this;return new Promise(function(r,o){qge(i.modifiers.slice(),i.fn)(t).then(function(s){s?r(t):o(null)}).catch(function(s){return o(s)})})}}]),n}();function jge(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"simple";return typeof n=="object"?n[e]:n}function Xw(n,e){if(n.length){var t=n.shift(),i=Xw(n,e);return t.perform(i)}else return jge(e)}function qge(n,e){if(n.length){var t=n.shift(),i=qge(n,e);return t.performAsync(i)}else return function(r){return Promise.resolve(jge(e,"async")(r))}}var qat=function n(e,t,i){LA(this,n),this.name=e,this.perform=t,this.performAsync=i},aU=function(n){Uat(e,n);function e(t,i,r,o){LA(this,e);for(var s=arguments.length,a=Array(s>4?s-4:0),l=4;l<s;l++)a[l-4]=arguments[l];var c=Vat(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=i,c.cause=r,c.target=o,c}return e}(Error),Kat=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];LA(this,n),this.chain=e,this.nextRuleModifiers=t}return Vge(n,[{key:"_applyRule",value:function(t,i){var r=this;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return r.chain.push(new jat(i,t.apply(r,s),s,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}}},{key:"_applyModifier",value:function(t,i){return this.nextRuleModifiers.push(new qat(i,t.simple,t.async)),this}},{key:"_clone",value:function(){return new n(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every(function(i){return i._test(t)})}},{key:"testAll",value:function(t){var i=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){i.push(new aU(r,t,o))}}),i}},{key:"check",value:function(t){this.chain.forEach(function(i){try{i._check(t)}catch(r){throw new aU(i,t,r)}})}},{key:"testAsync",value:function(t){var i=this;return new Promise(function(r,o){Kge(t,i.chain.slice(),r,o)})}}]),n}();function Kge(n,e,t,i){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Kge(n,e,t,i)},function(o){i(new aU(r,n,o))})}else t(n)}function $c(){return Gge(new Kat)}var DA={};$c.extend=function(n){Object.assign(DA,n)},$c.clearCustomRules=function(){DA={}};function Gge(n){return new Proxy(n,{get:function(t,i){if(i in t)return t[i];var r=Gge(n._clone());if(i in Yge)return r._applyModifier(Yge[i],i);if(i in DA)return r._applyRule(DA[i],i);if(i in Xge)return r._applyRule(Xge[i],i)}})}var Yge={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(i){return!i}).catch(function(i){return!0})}}},some:{simple:function(e){return function(t){return IA(t).some(function(i){try{return e(i)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(IA(t).map(function(i){try{return e(i).catch(function(r){return!1})}catch{return!1}})).then(function(i){return i.some(Boolean)})}}},every:{simple:function(e){return function(t){return IA(t).every(e)}},async:function(e){return function(t){return Promise.all(IA(t).map(e)).then(function(i){return i.every(Boolean)})}}}};function IA(n){return typeof n=="string"?n.split(""):n}var Xge={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Gat;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Zw("string")},boolean:function(){return Zw("boolean")},undefined:function(){return Zw("undefined")},null:function(){return Zw("null")},array:function(){return Zw("array")},object:function(){return Zw("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return/^([a-z]+\s*)+$/.test(e)}},uppercase:function(){return function(e){return/^([A-Z]+\s*)+$/.test(e)}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(i){return i.length>=e&&i.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(i){return i>=e&&i<=t}},range:function(e,t){return function(i){return i>=e&&i<=t}},lessThan:function(e){return function(t){return t<e}},lessThanOrEqual:function(e){return function(t){return t<=e}},greaterThan:function(e){return function(t){return t>e}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2==0}},odd:function(){return function(e){return e%2!=0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Yat(e)},passesAnyOf:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.some(function(o){return o.test(r)})}},optional:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return function(i){return t&&typeof i=="string"&&i.trim()===""||i!=null&&e.check(i),!0}}};function Zw(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function Gat(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function Yat(n){return{simple:function(t){var i=[];if(Object.keys(n).forEach(function(r){var o=n[r];try{o.check((t||{})[r])}catch(s){s.target=r,i.push(s)}}),i.length>0)throw i;return!0},async:function(t){var i=[],r=Object.keys(n).map(function(o){var s=n[o];return s.testAsync((t||{})[o]).catch(function(a){a.target=o,i.push(a)})});return Promise.all(r).then(function(o){if(i.length>0)throw i;return!0})}}}var Ar="colors",Xl="sizes",gn="space",Xat={gap:gn,gridGap:gn,columnGap:gn,gridColumnGap:gn,rowGap:gn,gridRowGap:gn,inset:gn,insetBlock:gn,insetBlockEnd:gn,insetBlockStart:gn,insetInline:gn,insetInlineEnd:gn,insetInlineStart:gn,margin:gn,marginTop:gn,marginRight:gn,marginBottom:gn,marginLeft:gn,marginBlock:gn,marginBlockEnd:gn,marginBlockStart:gn,marginInline:gn,marginInlineEnd:gn,marginInlineStart:gn,padding:gn,paddingTop:gn,paddingRight:gn,paddingBottom:gn,paddingLeft:gn,paddingBlock:gn,paddingBlockEnd:gn,paddingBlockStart:gn,paddingInline:gn,paddingInlineEnd:gn,paddingInlineStart:gn,top:gn,right:gn,bottom:gn,left:gn,scrollMargin:gn,scrollMarginTop:gn,scrollMarginRight:gn,scrollMarginBottom:gn,scrollMarginLeft:gn,scrollMarginX:gn,scrollMarginY:gn,scrollMarginBlock:gn,scrollMarginBlockEnd:gn,scrollMarginBlockStart:gn,scrollMarginInline:gn,scrollMarginInlineEnd:gn,scrollMarginInlineStart:gn,scrollPadding:gn,scrollPaddingTop:gn,scrollPaddingRight:gn,scrollPaddingBottom:gn,scrollPaddingLeft:gn,scrollPaddingX:gn,scrollPaddingY:gn,scrollPaddingBlock:gn,scrollPaddingBlockEnd:gn,scrollPaddingBlockStart:gn,scrollPaddingInline:gn,scrollPaddingInlineEnd:gn,scrollPaddingInlineStart:gn,fontSize:"fontSizes",background:Ar,backgroundColor:Ar,backgroundImage:Ar,borderImage:Ar,border:Ar,borderBlock:Ar,borderBlockEnd:Ar,borderBlockStart:Ar,borderBottom:Ar,borderBottomColor:Ar,borderColor:Ar,borderInline:Ar,borderInlineEnd:Ar,borderInlineStart:Ar,borderLeft:Ar,borderLeftColor:Ar,borderRight:Ar,borderRightColor:Ar,borderTop:Ar,borderTopColor:Ar,caretColor:Ar,color:Ar,columnRuleColor:Ar,fill:Ar,outline:Ar,outlineColor:Ar,stroke:Ar,textDecorationColor:Ar,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Xl,minBlockSize:Xl,maxBlockSize:Xl,inlineSize:Xl,minInlineSize:Xl,maxInlineSize:Xl,width:Xl,minWidth:Xl,maxWidth:Xl,height:Xl,minHeight:Xl,maxHeight:Xl,flexBasis:Xl,gridTemplateColumns:Xl,gridTemplateRows:Xl,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Zat=(n,e)=>typeof e=="function"?{"()":Function.prototype.toString.call(e)}:e,Qw=()=>{const n=Object.create(null);return(e,t,...i)=>{const r=(o=>JSON.stringify(o,Zat))(e);return r in n?n[r]:n[r]=t(e,...i)}},Av=Symbol.for("sxs.internal"),lU=(n,e)=>Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Zge=n=>{for(const e in n)return!0;return!1},{hasOwnProperty:Qat}=Object.prototype,cU=n=>n.includes("-")?n:n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),Jat=/\s+(?![^()]*\))/,Jw=n=>e=>n(...typeof e=="string"?String(e).split(Jat):[e]),Qge={appearance:n=>({WebkitAppearance:n,appearance:n}),backfaceVisibility:n=>({WebkitBackfaceVisibility:n,backfaceVisibility:n}),backdropFilter:n=>({WebkitBackdropFilter:n,backdropFilter:n}),backgroundClip:n=>({WebkitBackgroundClip:n,backgroundClip:n}),boxDecorationBreak:n=>({WebkitBoxDecorationBreak:n,boxDecorationBreak:n}),clipPath:n=>({WebkitClipPath:n,clipPath:n}),content:n=>({content:n.includes('"')||n.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(n)?n:`"${n}"`}),hyphens:n=>({WebkitHyphens:n,hyphens:n}),maskImage:n=>({WebkitMaskImage:n,maskImage:n}),maskSize:n=>({WebkitMaskSize:n,maskSize:n}),tabSize:n=>({MozTabSize:n,tabSize:n}),textSizeAdjust:n=>({WebkitTextSizeAdjust:n,textSizeAdjust:n}),userSelect:n=>({WebkitUserSelect:n,userSelect:n}),marginBlock:Jw((n,e)=>({marginBlockStart:n,marginBlockEnd:e||n})),marginInline:Jw((n,e)=>({marginInlineStart:n,marginInlineEnd:e||n})),maxSize:Jw((n,e)=>({maxBlockSize:n,maxInlineSize:e||n})),minSize:Jw((n,e)=>({minBlockSize:n,minInlineSize:e||n})),paddingBlock:Jw((n,e)=>({paddingBlockStart:n,paddingBlockEnd:e||n})),paddingInline:Jw((n,e)=>({paddingInlineStart:n,paddingInlineEnd:e||n}))},uU=/([\d.]+)([^]*)/,elt=(n,e)=>n.length?n.reduce((t,i)=>(t.push(...e.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),t),[]):e,tlt=(n,e)=>n in nlt&&typeof e=="string"?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${cU(n)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${cU(n)}:${i}fit-content`)+o):String(e),nlt={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Pp=n=>n?n+"-":"",Jge=(n,e,t)=>n.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,s,a)=>s=="$"==!!o?i:(r||s=="--"?"calc(":"")+"var(--"+(s==="$"?Pp(e)+(a.includes("$")?"":Pp(t))+a.replace(/\$/g,"-"):a)+")"+(r||s=="--"?"*"+(r||"")+(o||"1")+")":"")),ilt=/\s*,\s*(?![^()]*\))/,rlt=Object.prototype.toString,eS=(n,e,t,i,r)=>{let o,s,a;const l=(c,u,d)=>{let h,f;const g=p=>{for(h in p){const v=h.charCodeAt(0)===64,b=v&&Array.isArray(p[h])?p[h]:[p[h]];for(f of b){const y=/[A-Z]/.test(_=h)?_:_.replace(/-[^]/g,x=>x[1].toUpperCase()),w=typeof f=="object"&&f&&f.toString===rlt&&(!i.utils[y]||!u.length);if(y in i.utils&&!w){const x=i.utils[y];if(x!==s){s=x,g(x(f)),s=null;continue}}else if(y in Qge){const x=Qge[y];if(x!==a){a=x,g(x(f)),a=null;continue}}if(v&&(m=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=m.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(x,S,T,L,I,D)=>{const R=uU.test(S),O=.0625*(R?-1:1),[U,F]=R?[L,S]:[S,L];return"("+(T[0]==="="?"":T[0]===">"===R?"max-":"min-")+U+":"+(T[0]!=="="&&T.length===1?F.replace(uU,(Y,z,P)=>Number(z)+O*(T===">"?1:-1)+P):F)+(I?") and ("+(I[0]===">"?"min-":"max-")+U+":"+(I.length===1?D.replace(uU,(Y,z,P)=>Number(z)+O*(I===">"?-1:1)+P):D):"")+")"})),w){const x=v?d.concat(h):[...d],S=v?[...u]:elt(u,h.split(ilt));o!==void 0&&r(epe(...o)),o=void 0,l(f,S,x)}else o===void 0&&(o=[[],u,d]),h=v||h.charCodeAt(0)!==36?h:`--${Pp(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,f=w?f:typeof f=="number"?f&&y in olt?String(f)+"px":String(f):Jge(tlt(y,f==null?"":f),i.prefix,i.themeMap[y]),o[0].push(`${v?`${h} `:`${cU(h)}:`}${f}`)}}var m,_};g(c),o!==void 0&&r(epe(...o)),o=void 0};l(n,e,t)},epe=(n,e,t)=>`${t.map(i=>`${i}{`).join("")}${e.length?`${e.join(",")}{`:""}${n.join(";")}${e.length?"}":""}${Array(t.length?t.length+1:0).join("}")}`,olt={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},tpe=n=>String.fromCharCode(n+(n>25?39:97)),Nv=n=>(e=>{let t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=tpe(t%52)+i;return tpe(t%52)+i})(((e,t)=>{let i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return e})(5381,JSON.stringify(n))>>>0),F4=["themed","global","styled","onevar","resonevar","allvar","inline"],slt=n=>{if(n.href&&!n.href.startsWith(location.origin))return!1;try{return n.cssRules,!0}catch{return!1}},alt=n=>{let e;const t=()=>{if(e){const{rules:s,sheet:a}=e;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const l in s)delete s[l]}const i=Object(n).styleSheets||[];for(const s of i)if(slt(s)){for(let a=0,l=s.cssRules;l[a];++a){const c=Object(l[a]);if(c.type!==1)continue;const u=Object(l[a+1]);if(u.type!==4)continue;++a;const{cssText:d}=c;if(!d.startsWith("--sxs"))continue;const h=d.slice(14,-3).trim().split(/\s+/),f=F4[h[0]];f&&(e||(e={sheet:s,reset:t,rules:{}}),e.rules[f]={group:u,index:a,cache:new Set(h)})}if(e)break}if(!e){const s=(a,l)=>({type:l,cssRules:[],insertRule(c,u){this.cssRules.splice(u,0,s(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});e={sheet:n?(n.head||n).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:t,toString(){const{cssRules:a}=e.sheet;return[].map.call(a,(l,c)=>{const{cssText:u}=l;let d="";if(u.startsWith("--sxs"))return"";if(a[c-1]&&(d=a[c-1].cssText).startsWith("--sxs")){if(!l.cssRules.length)return"";for(const h in e.rules)if(e.rules[h].group===l)return`--sxs{--sxs:${[...e.rules[h].cache].join(" ")}}${u}`;return l.cssRules.length?`${d}${u}`:""}return u}).join("")}}}const{sheet:r,rules:o}=e;for(let s=F4.length-1;s>=0;--s){const a=F4[s];if(!o[a]){const l=F4[s+1],c=o[l]?o[l].index:r.cssRules.length;r.insertRule("@media{}",c),r.insertRule(`--sxs{--sxs:${s}}`,c),o[a]={group:r.cssRules[c+1],index:c,cache:new Set([s])}}llt(o[a])}};return t(),e},llt=n=>{const e=n.group;let t=e.cssRules.length;n.apply=i=>{try{e.insertRule(i,t),++t}catch{}}},B4=Symbol(),clt=Qw(),npe=(n,e)=>clt(n,()=>(...t)=>{let i={type:null,composers:new Set};for(const r of t)if(r!=null)if(r[Av]){i.type==null&&(i.type=r[Av].type);for(const o of r[Av].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(ult(r,n));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),dlt(n,i,e)}),ult=(o,r)=>{var s=o,{variants:n,compoundVariants:e,defaultVariants:t}=s,i=ao(s,["variants","compoundVariants","defaultVariants"]);const a=`${Pp(r.prefix)}c-${Nv(i)}`,l=[],c=[],u=Object.create(null),d=[];for(const p in t)u[p]=String(t[p]);if(typeof n=="object"&&n)for(const p in n){h=u,f=p,Qat.call(h,f)||(u[p]="undefined");const m=n[p];for(const _ in m){const v={[p]:String(_)};String(_)==="undefined"&&d.push(p);const b=m[_],y=[v,b,!Zge(b)];l.push(y)}}var h,f;if(typeof e=="object"&&e)for(const p of e){let g=p,{css:m}=g,_=ao(g,["css"]);m=typeof m=="object"&&m||{};for(const b in _)_[b]=String(_[b]);const v=[_,m,!Zge(m)];c.push(v)}return[a,i,l,c,u,d]},dlt=(n,e,t)=>{const[i,r,o,s]=hlt(e.composers),a=typeof e.type=="function"||e.type.$$typeof?(d=>{function h(){for(let f=0;f<h[B4].length;f++){const[g,p]=h[B4][f];d.rules[g].apply(p)}return h[B4]=[],null}return h[B4]=[],h.rules={},F4.forEach(f=>h.rules[f]={apply:g=>h[B4].push([f,g])}),h})(t):null,l=(a||t).rules,c=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||flt;const _=d,{css:h}=_,f=ao(_,["css"]),g={};for(const v in o)if(delete f[v],v in d){let b=d[v];typeof b=="object"&&b?g[v]=Fe({"@initial":o[v]},b):(b=String(b),g[v]=b!=="undefined"||s.has(v)?b:o[v])}else g[v]=o[v];const p=new Set([...r]);for(const[v,b,y,w]of e.composers){t.rules.styled.cache.has(v)||(t.rules.styled.cache.add(v),eS(b,[`.${v}`],[],n,T=>{l.styled.apply(T)}));const x=ipe(y,g,n.media),S=ipe(w,g,n.media,!0);for(const T of x)if(T!==void 0)for(const[L,I,D]of T){const R=`${v}-${Nv(I)}-${L}`;p.add(R);const O=(D?t.rules.resonevar:t.rules.onevar).cache,U=D?l.resonevar:l.onevar;O.has(R)||(O.add(R),eS(I,[`.${R}`],[],n,F=>{U.apply(F)}))}for(const T of S)if(T!==void 0)for(const[L,I]of T){const D=`${v}-${Nv(I)}-${L}`;p.add(D),t.rules.allvar.cache.has(D)||(t.rules.allvar.cache.add(D),eS(I,[`.${D}`],[],n,R=>{l.allvar.apply(R)}))}}if(typeof h=="object"&&h){const v=`${i}-i${Nv(h)}-css`;p.add(v),t.rules.inline.cache.has(v)||(t.rules.inline.cache.add(v),eS(h,[`.${v}`],[],n,b=>{l.inline.apply(b)}))}for(const v of String(d.className||"").trim().split(/\s+/))v&&p.add(v);const m=f.className=[...p].join(" ");return{type:e.type,className:m,selector:c,props:f,toString:()=>m,deferredInjector:a}};return lU(u,{className:i,selector:c,[Av]:e,toString:()=>(t.rules.styled.cache.has(i)||u(),i)})},hlt=n=>{let e="";const t=[],i={},r=[];for(const[o,,,,s,a]of n){e===""&&(e=o),t.push(o),r.push(...a);for(const l in s){const c=s[l];(i[l]===void 0||c!=="undefined"||a.includes(c))&&(i[l]=c)}}return[e,t,i,new Set(r)]},ipe=(n,e,t,i)=>{const r=[];e:for(let[o,s,a]of n){if(a)continue;let l,c=0,u=!1;for(l in o){const d=o[l];let h=e[l];if(h!==d){if(typeof h!="object"||!h)continue e;{let f,g,p=0;for(const m in h){if(d===String(h[m])){if(m!=="@initial"){const _=m.slice(1);(g=g||[]).push(_ in t?t[_]:m.replace(/^@media ?/,"")),u=!0}c+=p,f=!0}++p}if(g&&g.length&&(s={["@media "+g.join(", ")]:s}),!f)continue e}}}(r[c]=r[c]||[]).push([i?"cv":`${l}-${o[l]}`,s,u])}return r},flt={},glt=Qw(),plt=(n,e)=>glt(n,()=>(...t)=>{const i=()=>{for(let r of t){r=typeof r=="object"&&r||{};let o=Nv(r);if(!e.rules.global.cache.has(o)){if(e.rules.global.cache.add(o),"@import"in r){let s=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let a of[].concat(r["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,e.sheet.insertRule(`@import ${a};`,s++);delete r["@import"]}eS(r,[],[],n,s=>{e.rules.global.apply(s)})}}return""};return lU(i,{toString:i})}),mlt=Qw(),_lt=(n,e)=>mlt(n,()=>t=>{const i=`${Pp(n.prefix)}k-${Nv(t)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const o=[];eS(t,[],[],n,a=>o.push(a));const s=`@keyframes ${i}{${o.join("")}}`;e.rules.global.apply(s)}return i};return lU(r,{get name(){return r()},toString:r})}),vlt=class{constructor(n,e,t,i){this.token=n==null?"":String(n),this.value=e==null?"":String(e),this.scale=t==null?"":String(t),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Pp(this.prefix)+Pp(this.scale)+this.token}toString(){return this.computedValue}},blt=Qw(),ylt=(n,e)=>blt(n,()=>(t,i)=>{i=typeof t=="object"&&t||Object(i);const r=`.${t=(t=typeof t=="string"?t:"")||`${Pp(n.prefix)}t-${Nv(i)}`}`,o={},s=[];for(const l in i){o[l]={};for(const c in i[l]){const u=`--${Pp(n.prefix)}${l}-${c}`,d=Jge(String(i[l][c]),n.prefix,l);o[l][c]=new vlt(c,d,l,n.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!e.rules.themed.cache.has(t)){e.rules.themed.cache.add(t);const l=`${i===n.theme?":root,":""}.${t}{${s.join(";")}}`;e.rules.themed.apply(l)}return t};return mt(Fe({},o),{get className(){return a()},selector:r,toString:a})}),Clt=Qw(),wlt=Qw(),Slt=n=>{const e=(t=>{let i=!1;const r=Clt(t,o=>{i=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",a=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,c=typeof o.theme=="object"&&o.theme||{},u={prefix:s,media:a,theme:c,themeMap:typeof o.themeMap=="object"&&o.themeMap||Fe({},Xat),utils:typeof o.utils=="object"&&o.utils||{}},d=alt(l),h={css:npe(u,d),globalCss:plt(u,d),keyframes:_lt(u,d),createTheme:ylt(u,d),reset(){d.reset(),h.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(h.theme=h.createTheme(c)),h});return i||r.reset(),r})(n);return e.styled=(({config:t,sheet:i})=>wlt(t,()=>{const r=npe(t,i);return(...o)=>{const s=r(...o),a=s[Av].type,l=Ie.forwardRef((c,u)=>{const d=c&&c.as||a,{props:h,deferredInjector:f}=s(c);return delete h.as,h.ref=u,f?Ie.createElement(Ie.Fragment,null,Ie.createElement(d,h),Ie.createElement(f,null)):Ie.createElement(d,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[Av]=s[Av],l}}))(e),e};function xlt(n,e,t){return Math.max(e,Math.min(n,t))}const Zl={toVector(n,e){return n===void 0&&(n=e),Array.isArray(n)?n:[n,n]},add(n,e){return[n[0]+e[0],n[1]+e[1]]},sub(n,e){return[n[0]-e[0],n[1]-e[1]]},addTo(n,e){n[0]+=e[0],n[1]+=e[1]},subTo(n,e){n[0]-=e[0],n[1]-=e[1]}};function rpe(n,e,t){return e===0||Math.abs(e)===1/0?Math.pow(n,t*5):n*e*t/(e+t*n)}function ope(n,e,t,i=.15){return i===0?xlt(n,e,t):n<e?-rpe(e-n,t-e,i)+e:n>t?+rpe(n-t,t-e,i)+t:n}function Elt(n,[e,t],[i,r]){const[[o,s],[a,l]]=n;return[ope(e,o,s,i),ope(t,a,l,r)]}function Hc(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function spe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function la(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?spe(Object(t),!0).forEach(function(i){Hc(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):spe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const ape={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function lpe(n){return n?n[0].toUpperCase()+n.slice(1):""}function Tlt(n,e="",t=!1){const i=ape[n],r=i&&i[e]||e;return"on"+lpe(n)+lpe(r)+(t?"Capture":"")}function klt(n,e=""){const t=ape[n],i=t&&t[e]||e;return n+i}function dU(n){return"touches"in n}function Llt(n){return Array.from(n.touches).filter(e=>{var t,i;return e.target===n.currentTarget||((t=n.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,e.target))})}function Dlt(n){return n.type==="touchend"?n.changedTouches:n.targetTouches}function cpe(n){return dU(n)?Dlt(n)[0]:n}function Ilt(n){return Llt(n).map(e=>e.identifier)}function hU(n){const e=cpe(n);return dU(n)?e.identifier:e.pointerId}function upe(n){const e=cpe(n);return[e.clientX,e.clientY]}function Alt(n){const e={};if("buttons"in n&&(e.buttons=n.buttons),"shiftKey"in n){const{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o}=n;Object.assign(e,{shiftKey:t,altKey:i,metaKey:r,ctrlKey:o})}return e}function AA(n,...e){return typeof n=="function"?n(...e):n}function Nlt(){}function Rlt(...n){return n.length===0?Nlt:n.length===1?n[0]:function(){let e;for(const t of n)e=t.apply(this,arguments)||e;return e}}function dpe(n,e){return Object.assign({},e,n||{})}const Olt=32;class Mlt{constructor(e,t,i){this.ctrl=e,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:i,args:r}=this;t[i]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=i.from?AA(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:i,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,i.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Alt(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const g=t._delta.map(Math.abs);Zl.addTo(t._distance,g)}const[s,a]=t._movement,[l,c]=i.threshold,{_step:u,values:d}=t;if(i.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=l&&Math.sign(s)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),t.intentional=u[0]!==!1||u[1]!==!1,!t.intentional)return;const h=[0,0];if(i.hasCustomTransform){const[g,p]=d;h[0]=u[0]!==!1?g-u[0]:0,h[1]=u[1]!==!1?p-u[1]:0}else h[0]=u[0]!==!1?s-u[0]:0,h[1]=u[1]!==!1?a-u[1]:0;if(this.intent&&this.intent(h),(t._active&&!t._blocked||t.active)&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e)){t.first&&("bounds"in i&&(t._bounds=AA(i.bounds,t)),this.setup&&this.setup()),t.movement=h;const g=t.offset;if(this.computeOffset(),!t.last||o>Olt){t.delta=Zl.sub(t.offset,g);const p=t.delta.map(Math.abs);Zl.addTo(t.distance,p),t.direction=t.delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[p[0]/o,p[1]/o])}}const f=t._active?i.rubberband||[0,0]:[0,0];t.offset=Elt(t._bounds,t.offset,f),this.computeMovement()}emit(){const e=this.state,t=this.shared,i=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!i.triggerAllEvents)return;const r=this.handler(la(la(la({},t),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Plt([n,e]){const t=Math.abs(n)-Math.abs(e);if(t>0)return"x";if(t<0)return"y"}function Flt(n,e){switch(e){case"x":n[1]=0;break;case"y":n[0]=0;break}}class Blt extends Mlt{constructor(...e){super(...e);Hc(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Zl.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Zl.sub(this.state.offset,this.state.lastOffset)}intent(e){this.state.axis=this.state.axis||Plt(e),this.state._blocked=(this.config.lockDirection||!!this.config.axis)&&!this.state.axis||!!this.config.axis&&this.config.axis!==this.state.axis,!this.state._blocked&&(this.config.axis||this.config.lockDirection)&&Flt(e,this.state.axis)}}const $lt=n=>n,hpe=.15,fpe={enabled(n=!0){return n},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[hpe,hpe];case!1:return[0,0];default:return Zl.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Zl.toVector(n)},transform(n,e,t){const i=n||t.shared.transform;return this.hasCustomTransform=!!i,i||$lt},threshold(n){return Zl.toVector(n,0)}},$4=la(la({},fpe),{},{axis(n,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},bounds(n={}){if(typeof n=="function")return o=>$4.bounds(n(o));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:e=-1/0,right:t=1/0,top:i=-1/0,bottom:r=1/0}=n;return[[e,t],[i,r]]}}),NA=10,gpe={ArrowRight:(n=1)=>[NA*n,0],ArrowLeft:(n=1)=>[-NA*n,0],ArrowUp:(n=1)=>[0,-NA*n],ArrowDown:(n=1)=>[0,NA*n]};class Hlt extends Blt{constructor(...e){super(...e);Hc(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect(),r={left:t.left-i.left+e.offset[0],right:t.right-i.right+e.offset[0],top:t.top-i.top+e.offset[1],bottom:t.bottom-i.bottom+e.offset[1]};e._bounds=$4.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,i=this.state;e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons)||(this.ctrl.setEventIds(e),t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!i._pointerActive&&(this.start(e),this.setupPointer(e),i._pointerId=hU(e),i._pointerActive=!0,this.computeValues(upe(e)),this.computeInitial(),t.preventScroll?this.setupScrollPrevention(e):t.delay>0?this.setupDelayTrigger(e):this.startPointerDrag(e)))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,i=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=hU(e);if(t._pointerId&&r!==t._pointerId)return;const o=upe(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Zl.sub(o,t._values),this.computeValues(o)),Zl.addTo(t._movement,t._delta),this.compute(e),t._delayed){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(i.preventScroll&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,i=this.config;if(!t._pointerActive)return;const r=hU(e);if(t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=t._distance;if(t.tap=o<=3&&s<=3,t.tap&&i.filterTaps)t._force=!0;else{const[a,l]=t.direction,[c,u]=t.velocity,[d,h]=t.movement,[f,g]=i.swipe.velocity,[p,m]=i.swipe.distance,_=i.swipe.duration;t.elapsedTime<_&&(Math.abs(c)>f&&Math.abs(d)>p&&(t.swipe[0]=a),Math.abs(u)>g&&Math.abs(h)>m&&(t.swipe[1]=l))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config;let i=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){Wlt(e),this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","end",this.clean.bind(this),{passive:!1}),this.eventStore.add(this.sharedConfig.window,"touch","cancel",this.clean.bind(this),{passive:!1}),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScroll,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",this.startPointerDrag.bind(this),this.config.delay,e)}keyDown(e){const t=gpe[e.key];if(t){const i=this.state,r=e.shiftKey?10:e.altKey?.1:1;i._delta=t(r),this.start(e),i._keyboardActive=!0,Zl.addTo(i._movement,i._delta),this.compute(e),this.emit()}}keyUp(e){e.key in gpe&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this))),e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this)),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0})}}function Wlt(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const H4=typeof window!="undefined"&&window.document&&window.document.createElement;function ppe(){return H4&&"ontouchstart"in window}function zlt(){return ppe()||H4&&window.navigator.maxTouchPoints>1}function Ult(){return H4&&"onpointerdown"in window}function Vlt(){return H4&&"exitPointerLock"in window.document}function jlt(){try{return"constructor"in GestureEvent}catch{return!1}}const Ed={isBrowser:H4,gesture:jlt(),touch:ppe(),touchscreen:zlt(),pointer:Ult(),pointerLock:Vlt()},qlt=250,Klt=180,Glt=.5,Ylt=50,Xlt=250,Zlt=la(la({},$4),{},{pointerLock(n,e,{pointer:{lock:t=!1,touch:i=!1}={}}){return this.useTouch=Ed.touch&&i,Ed.pointerLock&&t},device(n,e){return this.useTouch?"touch":this.pointerLock?"mouse":Ed.pointer?"pointer":Ed.touch?"touch":"mouse"},preventScroll(n=!1,e,{preventScrollAxis:t="y"}){return t&&(this.preventScrollAxis=t),Ed.touchscreen?typeof n=="number"?n:n?qlt:!1:!1},pointerCapture(n,e,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(n,e,{filterTaps:t=!1,axis:i=void 0}){const r=Zl.toVector(n,t?3:i?1:0);return this.filterTaps=t,r},swipe({velocity:n=Glt,distance:e=Ylt,duration:t=Xlt}={}){return{velocity:this.transform(Zl.toVector(n)),distance:this.transform(Zl.toVector(e)),duration:t}},delay(n=0){switch(n){case!0:return Klt;case!1:return 0;default:return n}}});la(la({},fpe),{},{useTouch(n,e,{pointer:{touch:t=!1}={}}){return Ed.touch&&t},device(n,e,t){if(t.shared.target&&!Ed.touch&&Ed.gesture)return"gesture";if(this.useTouch)return"touch";if(Ed.touchscreen){if(Ed.pointer)return"pointer";if(Ed.touch)return"touch"}},bounds(n,e,{scaleBounds:t={},angleBounds:i={}}){const r=s=>{const a=dpe(AA(t,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=dpe(AA(i,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof t!="function"&&typeof i!="function"?[r(),o()]:s=>[r(s),o(s)]},threshold(n,e,t){return this.lockDirection=t.axis==="lock",Zl.toVector(n,this.lockDirection?[.1,3]:0)}}),la(la({},$4),{},{mouseOnly:(n=!0)=>n}),la(la({},$4),{},{mouseOnly:(n=!0)=>n});const mpe=new Map,fU=new Map;function Qlt(n){mpe.set(n.key,n.engine),fU.set(n.key,n.resolver)}const Jlt={key:"drag",engine:Hlt,resolver:Zlt};function ect(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function tct(n,e){if(n==null)return{};var t=ect(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}const nct={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=Ed.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform(n){return n}},ict=["target","eventOptions","window","enabled","transform"];function RA(n={},e){const t={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":t[i]=r.call(t,n[i],i,n);break;case"object":t[i]=RA(n[i],r);break;case"boolean":r&&(t[i]=n[i]);break}return t}function rct(n,e){const t=n,{target:i,eventOptions:r,window:o,enabled:s,transform:a}=t,l=tct(t,ict),c={shared:RA({target:i,eventOptions:r,window:o,enabled:s,transform:a},nct)};if(e){const u=fU.get(e);c[e]=RA(la({shared:c.shared},l),u)}else for(const u in l){const d=fU.get(u);d&&(c[u]=RA(la({shared:c.shared},l[u]),d))}return c}class _pe{constructor(e){Hc(this,"_listeners",[]),this._ctrl=e}add(e,t,i,r,o){const s=klt(t,i),a=la(la({},this._ctrl.config.shared.eventOptions),o);e.addEventListener(s,r,a),this._listeners.push(()=>e.removeEventListener(s,r,a))}clean(){this._listeners.forEach(e=>e()),this._listeners=[]}}class oct{constructor(){Hc(this,"_timeouts",new Map)}add(e,t,i=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,i,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class sct{constructor(e){Hc(this,"gestures",new Set),Hc(this,"_targetEventStore",new _pe(this)),Hc(this,"gestureEventStores",{}),Hc(this,"gestureTimeoutStores",{}),Hc(this,"handlers",{}),Hc(this,"config",{}),Hc(this,"pointerIds",new Set),Hc(this,"touchIds",new Set),Hc(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),act(this,e)}setEventIds(e){dU(e)?this.touchIds=new Set(Ilt(e)):"pointerId"in e&&(e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId))}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=rct(e,t)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,i=t.eventOptions,r={};let o;if(t.target&&(o=t.target(),!o))return;const s=lct(r,i,!!o);if(t.enabled){for(const a of this.gestures)if(this.config[a].enabled){const l=mpe.get(a);new l(this,e,a).bind(s)}for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](la(la({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const a in r)r[a]=Rlt(...r[a]);if(!o)return r;for(const a in r){let l=a.substr(2).toLowerCase();const c=!!~l.indexOf("capture"),u=!!~l.indexOf("passive");(c||u)&&(l=l.replace(/capture|passive/g,"")),this._targetEventStore.add(o,l,"",r[a],{capture:c,passive:u})}}}function tS(n,e){n.gestures.add(e),n.gestureEventStores[e]=new _pe(n),n.gestureTimeoutStores[e]=new oct}function act(n,e){e.drag&&tS(n,"drag"),e.wheel&&tS(n,"wheel"),e.scroll&&tS(n,"scroll"),e.move&&tS(n,"move"),e.pinch&&tS(n,"pinch"),e.hover&&tS(n,"hover")}const lct=(n,e,t)=>(i,r,o,s={},a=!1)=>{var l,c;const u=(l=s.capture)!==null&&l!==void 0?l:e.capture,d=(c=s.passive)!==null&&c!==void 0?c:e.passive;let h=a?i:Tlt(i,r,u);t&&d&&(h+="Passive"),n[h]=n[h]||[],n[h].push(o)};function cct(n,e={},t,i){const r=Ie.useMemo(()=>new sct(n),[]);if(r.applyHandlers(n,i),r.applyConfig(e,t),Ie.useEffect(r.effect.bind(r)),Ie.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function vpe(n,e={}){return Qlt(Jlt),cct({drag:n},e,"drag")}const uct=f7e["useId".toString()]||(()=>{});let dct=0;function hct(n){const[e,t]=M.exports.useState(uct());return kA(()=>{n||t(i=>i!=null?i:String(dct++))},[n]),n||(e?`radix-${e}`:"")}const fct=M.exports.forwardRef((n,e)=>M.exports.createElement(Yw.span,Mt({},n,{ref:e,style:mt(Fe({},n.style),{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})}))),gct=M.exports.forwardRef((n,e)=>{const s=n,{children:t,width:i=10,height:r=5}=s,o=ao(s,["children","width","height"]);return M.exports.createElement(Yw.svg,Mt({},o,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:M.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))});function bpe(n){const[e,t]=M.exports.useState(void 0);return M.exports.useEffect(()=>{if(n){const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else{const l=n.getBoundingClientRect();s=l.width,a=l.height}t({width:s,height:a})});return i.observe(n,{box:"border-box"}),()=>{t(void 0),i.unobserve(n)}}},[n]),e}function pct(n,e){const t=Rv.get(n);return t===void 0?(Rv.set(n,{rect:{},callbacks:[e]}),Rv.size===1&&(gU=requestAnimationFrame(ype))):(t.callbacks.push(e),e(n.getBoundingClientRect())),()=>{const i=Rv.get(n);if(i===void 0)return;const r=i.callbacks.indexOf(e);r>-1&&i.callbacks.splice(r,1),i.callbacks.length===0&&(Rv.delete(n),Rv.size===0&&cancelAnimationFrame(gU))}}let gU;const Rv=new Map;function ype(){const n=[];Rv.forEach((e,t)=>{const i=t.getBoundingClientRect();var r,o;r=e.rect,o=i,(r.width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(e.rect=i,n.push(e))}),n.forEach(e=>{e.callbacks.forEach(t=>t(e.rect))}),gU=requestAnimationFrame(ype)}function Cpe(n){const[e,t]=M.exports.useState();return M.exports.useEffect(()=>{if(n){const i=pct(n,t);return()=>{t(void 0),i()}}},[n]),e}function wpe(n,e=[]){let t=[];const i=()=>{const r=t.map(o=>M.exports.createContext(o));return function(o){const s=(o==null?void 0:o[n])||r;return M.exports.useMemo(()=>({[`__scope${n}`]:mt(Fe({},o),{[n]:s})}),[o,s])}};return i.scopeName=n,[function(r,o){const s=M.exports.createContext(o),a=t.length;function l(c){const p=c,{scope:u,children:d}=p,h=ao(p,["scope","children"]),f=(u==null?void 0:u[n][a])||s,g=M.exports.useMemo(()=>h,Object.values(h));return M.exports.createElement(f.Provider,{value:g},d)}return t=[...t,o],l.displayName=r+"Provider",[l,function(c,u){const d=(u==null?void 0:u[n][a])||s,h=M.exports.useContext(d);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${r}\``)}]},mct(i,...e)]}function mct(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const i=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(r){const o=i.reduce((s,{useScope:a,scopeName:l})=>Fe(Fe({},s),a(r)[`__scope${l}`]),{});return M.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function _ct({anchorRect:n,popperSize:e,arrowSize:t,arrowOffset:i=0,side:r,sideOffset:o=0,align:s,alignOffset:a=0,shouldAvoidCollisions:l=!0,collisionBoundariesRect:c,collisionTolerance:u=0}){if(!n||!e||!c)return{popperStyles:vct,arrowStyles:pU};const d=function(S,T,L=0,I=0,D){const R=D?D.height:0,O=Spe(T,S,"x"),U=Spe(T,S,"y"),F=U.before-L-R,Y=U.after+L+R,z=O.before-L-R,P=O.after+L+R;return{top:{start:{x:O.start+I,y:F},center:{x:O.center,y:F},end:{x:O.end-I,y:F}},right:{start:{x:P,y:U.start+I},center:{x:P,y:U.center},end:{x:P,y:U.end-I}},bottom:{start:{x:O.start+I,y:Y},center:{x:O.center,y:Y},end:{x:O.end-I,y:Y}},left:{start:{x:z,y:U.start+I},center:{x:z,y:U.center},end:{x:z,y:U.end-I}}}}(e,n,o,a,t),h=d[r][s];if(l===!1){const S=xpe(h);let T=pU;return t&&(T=Tpe({popperSize:e,arrowSize:t,arrowOffset:i,side:r,align:s})),{popperStyles:mt(Fe({},S),{"--radix-popper-transform-origin":Epe(e,r,s,i,t)}),arrowStyles:T,placedSide:r,placedAlign:s}}const f=DOMRect.fromRect(Fe(Fe({},e),h)),g=(p=c,m=u,DOMRect.fromRect({width:p.width-2*m,height:p.height-2*m,x:p.left+m,y:p.top+m}));var p,m;const _=Lpe(f,g),v=d[kpe(r)][s],b=function(S,T,L){const I=kpe(S);return T[S]&&!L[I]?I:S}(r,_,Lpe(DOMRect.fromRect(Fe(Fe({},e),v)),g)),y=function(S,T,L,I,D){const R=L==="top"||L==="bottom",O=R?"left":"top",U=R?"right":"bottom",F=R?"width":"height",Y=T[F]>S[F];return(I==="start"||I==="center")&&(D[O]&&Y||D[U]&&!Y)?"end":(I==="end"||I==="center")&&(D[U]&&Y||D[O]&&!Y)?"start":I}(e,n,r,s,_),w=xpe(d[b][y]);let x=pU;return t&&(x=Tpe({popperSize:e,arrowSize:t,arrowOffset:i,side:b,align:y})),{popperStyles:mt(Fe({},w),{"--radix-popper-transform-origin":Epe(e,b,y,i,t)}),arrowStyles:x,placedSide:b,placedAlign:y}}function Spe(n,e,t){const i=n[t==="x"?"left":"top"],r=t==="x"?"width":"height",o=n[r],s=e[r];return{before:i-s,start:i,center:i+(o-s)/2,end:i+o-s,after:i+o}}function xpe(n){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(n.x+window.scrollX)}px, ${Math.round(n.y+window.scrollY)}px, 0)`}}function Epe(n,e,t,i,r){const o=e==="top"||e==="bottom",s=r?r.width:0,a=r?r.height:0,l=s/2+i;let c="",u="";return o?(c={start:`${l}px`,center:"center",end:n.width-l+"px"}[t],u=e==="top"?`${n.height+a}px`:-a+"px"):(c=e==="left"?`${n.width+a}px`:-a+"px",u={start:`${l}px`,center:"center",end:n.height-l+"px"}[t]),`${c} ${u}`}const vct={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},pU={position:"absolute",opacity:0};function Tpe({popperSize:n,arrowSize:e,arrowOffset:t,side:i,align:r}){const o=(n.width-e.width)/2,s=(n.height-e.width)/2,a={top:0,right:90,bottom:180,left:-90}[i],l=Math.max(e.width,e.height),c={width:`${l}px`,height:`${l}px`,transform:`rotate(${a}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:bct(i,r)};return i!=="top"&&i!=="bottom"||(r==="start"&&(c.left=`${t}px`),r==="center"&&(c.left=`${o}px`),r==="end"&&(c.right=`${t}px`)),i!=="left"&&i!=="right"||(r==="start"&&(c.top=`${t}px`),r==="center"&&(c.top=`${s}px`),r==="end"&&(c.bottom=`${t}px`)),c}function bct(n,e){return(n!=="top"&&n!=="right"||e!=="end")&&(n!=="bottom"&&n!=="left"||e==="end")?"ltr":"rtl"}function kpe(n){return{top:"bottom",right:"left",bottom:"top",left:"right"}[n]}function Lpe(n,e){return{top:n.top<e.top,right:n.right>e.right,bottom:n.bottom>e.bottom,left:n.left<e.left}}const[Dpe,Ipe]=wpe("Popper"),[yct,Ape]=Dpe("Popper"),Cct=n=>{const{__scopePopper:e,children:t}=n,[i,r]=M.exports.useState(null);return M.exports.createElement(yct,{scope:e,anchor:i,onAnchorChange:r},t)},wct=M.exports.forwardRef((n,e)=>{const l=n,{__scopePopper:t,virtualRef:i}=l,r=ao(l,["__scopePopper","virtualRef"]),o=Ape("PopperAnchor",t),s=M.exports.useRef(null),a=TA(e,s);return M.exports.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:M.exports.createElement(Yw.div,Mt({},r,{ref:a}))}),[Sct,xct]=Dpe("PopperContent"),Ect=M.exports.forwardRef((n,e)=>{const R=n,{__scopePopper:t,side:i="bottom",sideOffset:r,align:o="center",alignOffset:s,collisionTolerance:a,avoidCollisions:l=!0}=R,c=ao(R,["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"]),u=Ape("PopperContent",t),[d,h]=M.exports.useState(),f=Cpe(u.anchor),[g,p]=M.exports.useState(null),m=bpe(g),[_,v]=M.exports.useState(null),b=bpe(_),y=TA(e,O=>p(O)),w=function(){const[O,U]=M.exports.useState(void 0);return M.exports.useEffect(()=>{let F;function Y(){U({width:window.innerWidth,height:window.innerHeight})}function z(){window.clearTimeout(F),F=window.setTimeout(Y,100)}return Y(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[]),O}(),x=w?DOMRect.fromRect(mt(Fe({},w),{x:0,y:0})):void 0,{popperStyles:S,arrowStyles:T,placedSide:L,placedAlign:I}=_ct({anchorRect:f,popperSize:m,arrowSize:b,arrowOffset:d,side:i,sideOffset:r,align:o,alignOffset:s,shouldAvoidCollisions:l,collisionBoundariesRect:x,collisionTolerance:a}),D=L!==void 0;return M.exports.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},M.exports.createElement(Sct,{scope:t,arrowStyles:T,onArrowChange:v,onArrowOffsetChange:h},M.exports.createElement(Yw.div,Mt({"data-side":L,"data-align":I},c,{style:mt(Fe({},c.style),{animation:D?void 0:"none"}),ref:y}))))}),Tct=M.exports.forwardRef(function(n,e){const a=n,{__scopePopper:t,offset:i}=a,r=ao(a,["__scopePopper","offset"]),o=xct("PopperArrow",t),{onArrowOffsetChange:s}=o;return M.exports.useEffect(()=>s(i),[s,i]),M.exports.createElement("span",{style:mt(Fe({},o.arrowStyles),{pointerEvents:"none"})},M.exports.createElement("span",{ref:o.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},M.exports.createElement(gct,Mt({},r,{ref:e,style:mt(Fe({},r.style),{display:"block"})}))))}),kct=Cct,Lct=wct,Dct=Ect,Ict=Tct,Npe=n=>{const{present:e,children:t}=n,i=function(s){const[a,l]=M.exports.useState(),c=M.exports.useRef({}),u=M.exports.useRef(s),d=M.exports.useRef("none"),h=s?"mounted":"unmounted",[f,g]=function(p,m){return M.exports.useReducer((_,v)=>{const b=m[_][v];return b!=null?b:_},p)}(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.exports.useEffect(()=>{const p=OA(c.current);d.current=f==="mounted"?p:"none"},[f]),kA(()=>{const p=c.current,m=u.current;if(m!==s){const _=d.current,v=OA(p);s?g("MOUNT"):v==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(m&&_!==v?"ANIMATION_OUT":"UNMOUNT"),u.current=s}},[s,g]),kA(()=>{if(a){const p=_=>{const v=OA(c.current).includes(_.animationName);_.target===a&&v&&g("ANIMATION_END")},m=_=>{_.target===a&&(d.current=OA(c.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:M.exports.useCallback(p=>{p&&(c.current=getComputedStyle(p)),l(p)},[])}}(e),r=typeof t=="function"?t({present:i.isPresent}):M.exports.Children.only(t),o=TA(i.ref,r.ref);return typeof t=="function"||i.isPresent?M.exports.cloneElement(r,{ref:o}):null};function OA(n){return(n==null?void 0:n.animationName)||"none"}Npe.displayName="Presence";function Rpe(n){const e=M.exports.useRef(n);return M.exports.useEffect(()=>{e.current=n},[n]),e.current}function mU(n){const e=M.exports.useRef(n);return M.exports.useEffect(()=>{e.current=n}),M.exports.useMemo(()=>(...t)=>{var i;return(i=e.current)===null||i===void 0?void 0:i.call(e,...t)},[])}function Act(n){const e=mU(n);M.exports.useEffect(()=>{const t=i=>{i.key==="Escape"&&e(i)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function Nct({prop:n,defaultProp:e,onChange:t=()=>{}}){const[i,r]=function({defaultProp:l,onChange:c}){const u=M.exports.useState(l),[d]=u,h=M.exports.useRef(d),f=mU(c);return M.exports.useEffect(()=>{h.current!==d&&(f(d),h.current=d)},[d,h,f]),u}({defaultProp:e,onChange:t}),o=n!==void 0,s=o?n:i,a=mU(t);return[s,M.exports.useCallback(l=>{if(o){const c=l,u=typeof l=="function"?c(n):l;u!==n&&a(u)}else r(l)},[o,n,r,a])]}function nS(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n==null||n(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}const[Ope,Iln]=wpe("Tooltip",[Ipe]),MA=Ipe(),Rct=700,[Aln,Oct]=Ope("TooltipProvider",{isOpenDelayed:!0,delayDuration:Rct,onOpen:()=>{},onClose:()=>{}}),[Mct,PA]=Ope("Tooltip"),Pct=n=>{const{__scopeTooltip:e,children:t,open:i,defaultOpen:r=!1,onOpenChange:o,delayDuration:s}=n,a=Oct("Tooltip",e),l=MA(e),[c,u]=M.exports.useState(null),d=hct(),h=M.exports.useRef(0),f=s!=null?s:a.delayDuration,g=M.exports.useRef(!1),{onOpen:p,onClose:m}=a,[_=!1,v]=Nct({prop:i,defaultProp:r,onChange:x=>{x&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),o==null||o(x)}}),b=M.exports.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),y=M.exports.useCallback(()=>{window.clearTimeout(h.current),g.current=!1,v(!0)},[v]),w=M.exports.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,v(!0)},f)},[f,v]);return M.exports.useEffect(()=>()=>window.clearTimeout(h.current),[]),M.exports.createElement(kct,l,M.exports.createElement(Mct,{scope:e,contentId:d,open:_,stateAttribute:b,trigger:c,onTriggerChange:u,onTriggerEnter:M.exports.useCallback(()=>{a.isOpenDelayed?w():y()},[a.isOpenDelayed,w,y]),onOpen:M.exports.useCallback(y,[y]),onClose:M.exports.useCallback(()=>{window.clearTimeout(h.current),v(!1),m()},[v,m])},t))},Fct=M.exports.forwardRef((n,e)=>{const c=n,{__scopeTooltip:t}=c,i=ao(c,["__scopeTooltip"]),r=PA("TooltipTrigger",t),o=MA(t),s=TA(e,r.onTriggerChange),a=M.exports.useRef(!1),l=M.exports.useCallback(()=>a.current=!1,[]);return M.exports.useEffect(()=>()=>document.removeEventListener("mouseup",l),[l]),M.exports.createElement(Lct,Mt({asChild:!0},o),M.exports.createElement(Yw.button,Mt({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:s,onMouseEnter:nS(n.onMouseEnter,r.onTriggerEnter),onMouseLeave:nS(n.onMouseLeave,r.onClose),onMouseDown:nS(n.onMouseDown,()=>{r.onClose(),a.current=!0,document.addEventListener("mouseup",l,{once:!0})}),onFocus:nS(n.onFocus,()=>{a.current||r.onOpen()}),onBlur:nS(n.onBlur,r.onClose),onClick:nS(n.onClick,r.onClose)})))}),Bct=M.exports.forwardRef((n,e)=>{const o=n,{forceMount:t}=o,i=ao(o,["forceMount"]),r=PA("TooltipContent",n.__scopeTooltip);return M.exports.createElement(Npe,{present:t||r.open},M.exports.createElement($ct,Mt({ref:e},i)))}),$ct=M.exports.forwardRef((n,e)=>{const d=n,{__scopeTooltip:t,children:i,"aria-label":r,portalled:o=!0}=d,s=ao(d,["__scopeTooltip","children","aria-label","portalled"]),a=PA("TooltipContent",t),l=MA(t),c=o?zge:M.exports.Fragment,{onClose:u}=a;return Act(()=>u()),M.exports.useEffect(()=>(document.addEventListener("tooltip.open",u),()=>document.removeEventListener("tooltip.open",u)),[u]),M.exports.createElement(c,null,M.exports.createElement(Wct,{__scopeTooltip:t}),M.exports.createElement(Dct,Mt({"data-state":a.stateAttribute},l,s,{ref:e,style:mt(Fe({},s.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),M.exports.createElement(Hge,null,i),M.exports.createElement(fct,{id:a.contentId,role:"tooltip"},r||i)))}),Hct=M.exports.forwardRef((n,e)=>{const o=n,{__scopeTooltip:t}=o,i=ao(o,["__scopeTooltip"]),r=MA(t);return M.exports.createElement(Ict,Mt({},r,i,{ref:e}))});function Wct(n){const{__scopeTooltip:e}=n,t=PA("CheckTriggerMoved",e),i=Cpe(t.trigger),r=i==null?void 0:i.left,o=Rpe(r),s=i==null?void 0:i.top,a=Rpe(s),l=t.onClose;return M.exports.useEffect(()=>{(o!==void 0&&o!==r||a!==void 0&&a!==s)&&l()},[l,o,a,r,s]),null}const zct=Pct,Uct=Fct,Vct=Bct,jct=Hct;function qct(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function Nr(n,e){if(n==null)return{};var t=qct(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,i)||(t[i]=n[i]))}return t}let Po;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(Po||(Po={}));const Kct={[Po.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[Po.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Po.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[Po.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Po.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[Po.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[Po.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[Po.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[Po.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[Po.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Po.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Mpe(n,e,...t){const[i,...r]=Kct[e](...t);console[n]("LEVA: "+i,...r)}const Fp=Mpe.bind(null,"warn"),Gct=Mpe.bind(null,"log"),Yct=["value"],Xct=["schema"],Zct=["value"],Ppe=[],Ov={};function Fpe(n){let{value:e}=n,t=Nr(n,Yct);for(let i of Ppe){const r=i(e,t);if(r)return r}}function Bp(n,e){let{schema:t}=e,i=Nr(e,Xct);if(n in Ov){Fp(Po.ALREADY_REGISTERED_TYPE,n);return}Ppe.push((r,o)=>t(r,o)&&n),Ov[n]=i}function $p(n){return n}function _U(n,e,t,i){const{normalize:r}=Ov[n];if(r)return r(e,t,i);if(typeof e!="object"||!("value"in e))return{value:e};const{value:o}=e,s=Nr(e,Zct);return{value:o,settings:s}}function Qct(n,e,t,i,r,o){const{sanitize:s}=Ov[n];return s?s(e,t,i,r,o):e}function Bpe(n,e,t){const{format:i}=Ov[n];return i?i(e,t):e}function Jct(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $pe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Hn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$pe(Object(t),!0).forEach(function(i){Jct(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$pe(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}const n0=(n,e,t)=>n>t?t:n<e?e:n,eut=n=>{if(n===""||typeof n=="number")return n;try{const e=i0(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},tut=Math.log(10);function Hpe(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10==0;)e/=10;const t=Math.floor(Math.log(e)/tut)+1,i=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,i-t);return Math.max(r,.001)}const FA=(n,e,t)=>t===e?0:(n0(n,e,t)-e)/(t-e),BA=(n,e,t)=>n*(t-e)+e,nut=()=>"_"+Math.random().toString(36).substr(2,9),Wpe=/\(([0-9+\-*/^ .]+)\)/,zpe=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Upe=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Vpe=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,jpe=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,qpe=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function i0(n){if(isNaN(Number(n)))if(Wpe.test(n)){const e=n.replace(Wpe,(t,i)=>String(i0(i)));return i0(e)}else if(zpe.test(n)){const e=n.replace(zpe,(t,i,r)=>String(Math.pow(Number(i),Number(r))));return i0(e)}else if(Upe.test(n)){const e=n.replace(Upe,(t,i,r)=>String(Number(i)*Number(r)));return i0(e)}else if(Vpe.test(n)){const e=n.replace(Vpe,(t,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return i0(e)}else if(jpe.test(n)){const e=n.replace(jpe,(t,i,r)=>String(Number(i)+Number(r)));return i0(e)}else if(qpe.test(n)){const e=n.replace(qpe,(t,i,r)=>String(Number(i)-Number(r)));return i0(e)}else return Number(n);return Number(n)}function iut(n,e){return e.reduce((t,i)=>(!!n&&n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}function rut(n,e){const t=Hn({},n);return e.forEach(i=>i in n&&delete t[i]),t}function out(n,e){return n.reduce((t,i,r)=>Object.assign(t,{[e[r]]:i}),{})}let Ah;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(Ah||(Ah={}));let Nh;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(Nh||(Nh={}));const sut=["type","__customInput"],aut=["render","label","optional","disabled","hint","onChange","onEditStart","onEditEnd","transient"],lut=["type"];function Kpe(n,e,t={},i){if(typeof n!="object"||Array.isArray(n))return{type:i,input:n,options:Hn({key:e,label:e,optional:!1,disabled:!1},t)};if("__customInput"in n){const{type:_,__customInput:v}=n,b=Nr(n,sut);return Kpe(v,e,b,_)}const{render:r,label:o,optional:s,disabled:a,hint:l,onChange:c,onEditStart:u,onEditEnd:d,transient:h}=n,f=Nr(n,aut),g=Hn({render:r,key:e,label:o!=null?o:e,hint:l,transient:h!=null?h:!!c,onEditStart:u,onEditEnd:d},t);let{type:p}=f,m=Nr(f,lut);return p=i!=null?i:p,p in Ah?{type:p,input:m,options:g}:{type:p,input:m,options:Hn(Hn({},g),{},{onChange:c,optional:s!=null?s:!1,disabled:a!=null?a:!1})}}function cut(n,e,t,i){const r=Kpe(n,e),{type:o,input:s,options:a}=r;if(o)return o in Ah?r:{type:o,input:_U(o,s,t,i),options:a};let l=Fpe(s);return l?{type:l,input:_U(l,s,t,i),options:a}:(l=Fpe({value:s}),l?{type:l,input:_U(l,{value:s},t,i),options:a}:!1)}function Gpe(n,e,t,i,r){const{value:o,type:s,settings:a}=n;n.value=Xpe({type:s,value:o,settings:a},e,t,i),n.fromPanel=r}const Ype=function(e,t,i){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=i};function Xpe({type:n,value:e,settings:t},i,r,o){const s=n!=="SELECT"&&typeof i=="function"?i(e):i;let a;try{a=Qct(n,s,t,e,r,o)}catch(l){throw new Ype(`The value \`${i}\` did not result in a correct value.`,e,l)}if(M4(a,e))throw new Ype(`The value \`${i}\` did not result in a value update, which remained the same: \`${e}\`.
324
324
  You can ignore this warning if this is the intended behavior.`,e);return a}const Zpe=(n,e,t=!1)=>{let i=0;return function(){const r=arguments,o=t&&!i,s=()=>n.apply(this,r);window.clearTimeout(i),i=window.setTimeout(s,e),o&&s()}},Qpe=n=>n.shiftKey?5:n.altKey?1/5:1,uut=["value"],dut=["min","max"],hut=n=>typeof n=="number"||typeof n=="string"&&!isNaN(parseFloat(n)),Jpe=(n,{min:e=-1/0,max:t=1/0,suffix:i})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const o=n0(r,e,t);return i?o+i:o},fut=(n,{pad:e=0,suffix:t})=>{const i=parseFloat(n).toFixed(e);return t?i+t:i},eme=n=>{let{value:e}=n,t=Nr(n,uut);const{min:i=-1/0,max:r=1/0}=t,o=Nr(t,dut),s=n0(parseFloat(e),i,r);let a;if(!Number.isFinite(e)){const d=String(e).match(/[A-Z]+/i);d&&(a=d[0])}let l=t.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(s-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-s)/100).toPrecision(1)));const c=l?Hpe(l)*10:Hpe(s);l=l||c/10;const u=Math.round(n0(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:Hn({initialValue:s,step:l,pad:u,min:i,max:r,suffix:a},o)}},tme=(n,{step:e,initialValue:t})=>{const i=Math.round((n-t)/e);return t+i*e};var nme=Object.freeze({__proto__:null,schema:hut,sanitize:Jpe,format:fut,normalize:eme,sanitizeStep:tme});const ime=M.exports.createContext({});function xl(){return M.exports.useContext(ime)}const vU=M.exports.createContext(null),rme=M.exports.createContext(null),ome=M.exports.createContext(null);function $A(){return M.exports.useContext(rme)}function gut(){return M.exports.useContext(ome)}const sme=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function HA(n,e){const[t,i]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),i&&(r.backgroundColor=i),r}const W4={$inputStyle:()=>n=>HA(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>HA(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>HA(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>HA(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:Nn,css:Nln,createTheme:put,globalCss:mut,keyframes:Rln}=Slt({prefix:"leva",theme:sme(),utils:Hn(Hn({},W4),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:n=>({"&:focus":W4.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":W4.$focusStyle()(n)}),$hover:n=>({"&:hover":W4.$hoverStyle()(n)}),$active:n=>({"&:active":W4.$activeStyle()(n)})})});mut({".panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}})();function _ut(n){const e=sme();if(!n)return{theme:e,className:""};Object.keys(n).forEach(i=>{Object.assign(e[i],n[i])});const t=put(e);return{theme:e,className:t.className}}function Hp(n,e){const{theme:t}=M.exports.useContext(vU);if(!(n in t)||!(e in t[n]))return Fp(Po.THEME_ERROR,n,e),"";let i=e;for(;;){let r=t[n][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const ame=Nn("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}}}}),lme=Nn("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ame}`]:{paddingLeft:0}}),vut=Nn(lme,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),but=Nn("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:""}),yut=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id"],Cut=["onUpdate"];function bU(n){let{innerLabel:e,value:t,onUpdate:i,onChange:r,onKeyDown:o,type:s,id:a}=n,l=Nr(n,yut);const{id:c,emitOnEditStart:u,emitOnEditEnd:d}=xl(),h=a||c,f=M.exports.useRef(null),g=M.exports.useCallback(m=>_=>{const v=_.currentTarget.value;m(v)},[]);Ie.useEffect(()=>{const m=f.current,_=g(v=>{i(v),d()});return m==null||m.addEventListener("blur",_),()=>m==null?void 0:m.removeEventListener("blur",_)},[g,i,d]);const p=M.exports.useCallback(m=>{m.key==="Enter"&&g(i)(m)},[g,i]);return xt(but,{children:[e&&typeof e=="string"?oe(lme,{children:e}):e,oe(ame,Fe({levaType:s,ref:f,id:h,type:"text",autoComplete:"off",spellCheck:"false",value:t,onChange:g(r),onFocus:()=>u(),onKeyPress:p,onKeyDown:o},l))]})}function wut(n){let{onUpdate:e}=n,t=Nr(n,Cut);const i=M.exports.useCallback(o=>e(eut(o)),[e]),r=M.exports.useCallback(o=>{const s=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(s){o.preventDefault();const a=o.altKey?.1:o.shiftKey?10:1;e(l=>parseFloat(l)+s*a)}},[e]);return oe(bU,mt(Fe({},t),{onUpdate:i,onKeyDown:r,type:"number"}))}const WA=Nn("div",{}),yU=Nn("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),Sut=Nn("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${yU}::after`]:{opacity:.6},[`${WA}:hover > & + ${yU}::after`]:{opacity:.6},[`${WA}:hover > & > svg`]:{opacity:1}}),cme=Nn("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${WA}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ume=Nn("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${cme} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},"&:hover,&:focus-within":{color:"$highlight3"}}),dme=Nn(ume,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),xut=Nn("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),Eut=Nn("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Tut=Nn("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none"}}}}),hme=Nn("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),fme=Nn("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),kut=Nn("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Lut=Nn(jct,{fill:"$toolTipBackground"});function CU({children:n}){const{className:e}=M.exports.useContext(vU);return oe(zat,{className:e,children:n})}const Dut=["align"];function Iut(){const{id:n,disable:e,disabled:t}=xl();return xt(Qo,{children:[oe(Eut,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),oe("label",{htmlFor:n+"__disable"})]})}function Aut(n){const{id:e,optional:t,hint:i}=xl(),r=n.htmlFor||(e?{htmlFor:e}:null),o=!i&&typeof n.children=="string"?{title:n.children}:null;return xt(Qo,{children:[t&&oe(Iut,{}),i!==void 0?xt(zct,{children:[oe(Uct,{asChild:!0,children:oe(hme,Fe(Fe({},r),n))}),oe(Vct,{side:"top",sideOffset:2,children:xt(kut,{children:[i,oe(Lut,{})]})})]}):oe(hme,Fe(Fe(Fe({},r),o),n))]})}function Rh(n){let{align:e}=n,t=Nr(n,Dut);const{value:i,label:r,key:o}=xl(),{hideCopyButton:s}=gut(),a=!s&&o!==void 0,[l,c]=M.exports.useState(!1),u=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i!=null?i:""})),c(!0)}catch{Fp(Po.CLIPBOARD_ERROR,{[o]:i})}};return xt(xut,{align:e,onPointerLeave:()=>c(!1),children:[oe(Aut,Fe({},t)),a&&oe("div",{title:`Click to copy ${typeof r=="string"?r:o} value`,children:l?xt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[oe("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),oe("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})]}):xt("svg",{onClick:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:[oe("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),oe("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"})]})})]})}const Nut=["toggled"],Rut=Nn("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function wU(n){let{toggled:e}=n,t=Nr(n,Nut);return oe(Rut,mt(Fe({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),{children:oe("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"})}))}const Out=["input"];function Td(n){let{input:e}=n,t=Nr(n,Out);return e?oe(dme,Fe({},t)):oe(ume,Fe({},t))}function gme({value:n,type:e,settings:t,setValue:i}){const[r,o]=M.exports.useState(Bpe(e,n,t)),s=M.exports.useRef(n),a=M.exports.useRef(t);a.current=t;const l=M.exports.useCallback(u=>o(Bpe(e,u,a.current)),[e]),c=M.exports.useCallback(u=>{try{i(u)}catch(d){const{type:h,previousValue:f}=d;if(h!=="LEVA_ERROR")throw d;l(f)}},[l,i]);return M.exports.useEffect(()=>{M4(n,s.current)||l(n),s.current=n},[n,l]),{displayValue:r,onChange:o,onUpdate:c}}function zA(n,e){const{emitOnEditStart:t,emitOnEditEnd:i}=xl();return vpe(r=>{r.first&&(document.body.classList.add("panel__dragged"),t());const o=n(r);return r.last&&(document.body.classList.remove("panel__dragged"),i()),o},e)}function Mut(n){const e=M.exports.useRef(null),t=M.exports.useRef(null),i=M.exports.useRef(!1);return M.exports.useEffect(()=>{const r=Zpe(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[n]),M.exports.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function pme(){const n=M.exports.useRef(null),e=M.exports.useRef({x:0,y:0}),t=M.exports.useCallback(i=>{Object.assign(e.current,i),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const Put=["__refCount"],SU=(n,e)=>{if(!n[e])return null;const t=n[e];return Nr(t,Put)};function Fut(n){const e=$A(),[t,i]=M.exports.useState(SU(e.getData(),n)),r=M.exports.useCallback(c=>e.setValueAtPath(n,c,!0),[n,e]),o=M.exports.useCallback(c=>e.setSettingsAtPath(n,c),[n,e]),s=M.exports.useCallback(c=>e.disableInputAtPath(n,c),[n,e]),a=M.exports.useCallback(()=>e.emitOnEditStart(n),[n,e]),l=M.exports.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return M.exports.useEffect(()=>{i(SU(e.getData(),n));const c=e.useStore.subscribe(u=>SU(u.data,n),i,{equalityFn:P4});return()=>c()},[e,n]),[t,{set:r,setSettings:o,disable:s,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const But=Nn("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),mme=Nn("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),xU=Nn("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),_me=Nn("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),vme=Nn("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function $ut({value:n,min:e,max:t,onDrag:i,step:r,initialValue:o}){const s=M.exports.useRef(null),a=M.exports.useRef(null),l=M.exports.useRef(0),c=Hp("sizes","scrubberWidth"),u=zA(({event:h,first:f,xy:[g],movement:[p],memo:m})=>{if(f){const{width:v,left:b}=s.current.getBoundingClientRect();l.current=v-parseFloat(c),m=(h==null?void 0:h.target)===a.current?n:BA((g-b)/v,e,t)}const _=m+BA(p/l.current,0,t-e);return i(tme(_,{step:r,initialValue:o})),m}),d=FA(n,e,t);return xt(_me,mt(Fe({ref:s},u()),{children:[oe(mme,{children:oe(vme,{style:{left:0,right:`${(1-d)*100}%`}})}),oe(xU,{ref:a,style:{left:`calc(${d} * (100% - ${c}))`}})]}))}const Hut=Ie.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:i})=>{const[r,o]=M.exports.useState(!1),s=zA(({active:a,delta:[l],event:c,memo:u=0})=>(o(a),u+=l/2,Math.abs(u)>=1&&(e(d=>parseFloat(d)+Math.floor(u)*t*Qpe(c)),u=0),u));return oe(vut,mt(Fe({dragging:r,title:n.length>1?n:""},s()),{children:n.slice(0,i)}))});function bme({label:n,id:e,displayValue:t,onUpdate:i,onChange:r,settings:o,innerLabelTrim:s=1}){const a=s>0&&oe(Hut,{label:n,step:o.step,onUpdate:i,innerLabelTrim:s});return oe(wut,{id:e,value:String(t),onUpdate:i,onChange:r,innerLabel:a})}function Wut(){const n=xl(),{label:e,value:t,onUpdate:i,settings:r,id:o}=n,{min:s,max:a}=r,l=a!==1/0&&s!==-1/0;return xt(Td,{input:!0,children:[oe(Rh,{children:e}),xt(But,{hasRange:l,children:[l&&oe($ut,Fe({value:parseFloat(t),onDrag:i},r)),oe(bme,mt(Fe({},n),{id:o,label:"value",innerLabelTrim:l?0:1}))]})]})}const{sanitizeStep:zut}=nme,Uut=Nr(nme,["sanitizeStep"]);var Vut=$p(Hn({component:Wut},Uut)),jut=Object.freeze({__proto__:null,schema:(n,e)=>$c().schema({options:$c().passesAnyOf($c().object(),$c().array())}).test(e),sanitize:(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},format:(n,{values:e})=>e.indexOf(n),normalize:n=>{let{value:e,options:t}=n,i,r;return Array.isArray(t)?(r=t,i=t.map(o=>String(o))):(r=Object.values(t),i=Object.keys(t)),"value"in n?r.includes(e)||(i.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:i,values:r}}}});const qut=Nn("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),EU=Nn("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Kut=Nn("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${EU}:focus + &`]:{$focusStyle:""},[`${EU}:hover + &`]:{$hoverStyle:""}});function Gut({displayValue:n,value:e,onUpdate:t,id:i,settings:r}){const{keys:o,values:s}=r,a=M.exports.useRef();return e===s[n]&&(a.current=o[n]),xt(qut,{children:[oe(EU,{id:i,value:n,onChange:l=>t(s[Number(l.currentTarget.value)]),children:o.map((l,c)=>oe("option",{value:c,children:l},l))}),oe(Kut,{children:a.current}),oe(wU,{toggled:!0})]})}function Yut(){const{label:n,value:e,displayValue:t,onUpdate:i,id:r,settings:o}=xl();return xt(Td,{input:!0,children:[oe(Rh,{children:n}),oe(Gut,{id:r,value:e,displayValue:t,onUpdate:i,settings:o})]})}var Xut=$p(Hn({component:Yut},jut)),Zut=Object.freeze({__proto__:null,schema:n=>$c().string().test(n),sanitize:n=>{if(typeof n!="string")throw Error("Invalid string");return n}});const Qut=["displayValue","onUpdate","onChange"];function Jut(n){let{displayValue:e,onUpdate:t,onChange:i}=n,r=Nr(n,Qut);return oe(bU,Fe({value:e,onUpdate:t,onChange:i},r))}function edt(){const{label:n,displayValue:e,onUpdate:t,onChange:i}=xl();return xt(Td,{input:!0,children:[oe(Rh,{children:n}),oe(Jut,{displayValue:e,onUpdate:t,onChange:i})]})}var tdt=$p(Hn({component:edt},Zut)),ndt=Object.freeze({__proto__:null,schema:n=>$c().boolean().test(n),sanitize:n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n}});const idt=Nn("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function rdt({value:n,onUpdate:e,id:t}){return xt(idt,{children:[oe("input",{id:t,type:"checkbox",checked:n,onChange:i=>e(i.currentTarget.checked)}),oe("label",{htmlFor:t,children:oe("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:oe("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]})}function odt(){const{label:n,value:e,onUpdate:t,id:i}=xl();return xt(Td,{input:!0,children:[oe(Rh,{children:n}),oe(rdt,{value:e,onUpdate:t,id:i})]})}var sdt=$p(Hn({component:odt},ndt));const adt=["locked"];function ldt({value:n,id:e,valueKey:t,settings:i,onUpdate:r,innerLabelTrim:o}){const s=M.exports.useRef(n[t]);s.current=n[t];const a=M.exports.useCallback(c=>r({[t]:Xpe({type:"NUMBER",value:s.current,settings:i},c)}),[r,i,t]),l=gme({type:"NUMBER",value:n[t],settings:i,setValue:a});return oe(bme,{id:e,label:t,value:n[t],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const cdt=Nn("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function udt(n){let{locked:e}=n,t=Nr(n,adt);return oe("svg",mt(Fe({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:e?oe("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):oe("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function TU({value:n,onUpdate:e,settings:t,innerLabelTrim:i}){const{id:r,setSettings:o}=xl(),{lock:s,locked:a}=t;return xt(cdt,{withLock:s,children:[s&&oe(udt,{locked:a,onClick:()=>o({locked:!a})}),Object.keys(n).map((l,c)=>oe(ldt,{id:c===0?r:`${r}.${l}`,valueKey:l,value:n,settings:t[l],onUpdate:e,innerLabelTrim:i},l))]})}const yme=(n,e)=>{const t={};let i=0,r=1/0;Object.entries(n).forEach(([o,s])=>{t[o]=eme(Hn({value:s},e[o])).settings,i=Math.max(i,t[o].step),r=Math.min(r,t[o].pad)});for(let o in t){const{step:s,min:a,max:l}=e[o]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(t[o].step=i,t[o].pad=r)}return t},ddt=["lock"],hdt=["value"];function fdt(n){const e=$c().array().length(n).every.number(),t=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===n&&r.every(o=>isFinite(o))};return i=>e.test(i)||t(i)}function gdt(n){return Array.isArray(n)?"array":"object"}function z4(n,e,t){return gdt(n)===e?n:e==="array"?Object.values(n):out(n,t)}const pdt=(n,e,t)=>{const i=z4(n,"object",e.keys);for(let s in i)i[s]=Jpe(i[s],e[s]);const r=Object.keys(i);let o={};if(r.length===e.keys.length)o=i;else{const s=z4(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],l=i[a],c=s[a],u=c!==0?l/c:1;for(let d in s)d===a?o[a]=l:o[d]=s[d]*u}else o=Hn(Hn({},s),i)}return z4(o,e.format,e.keys)},mdt=(n,e)=>z4(n,"object",e.keys),_dt=n=>!!n&&("step"in n||"min"in n||"max"in n);function vdt(n,e,t=[]){const{lock:i=!1}=e,r=Nr(e,ddt),o=Array.isArray(n)?"array":"object",s=o==="object"?Object.keys(n):t,a=z4(n,"object",s),l=_dt(r)?s.reduce((u,d)=>Object.assign(u,{[d]:r}),{}):r,c=yme(a,l);return{value:o==="array"?n:a,settings:Hn(Hn({},c),{},{format:o,keys:s,lock:i,locked:!1})}}function Cme(n){return{schema:fdt(n.length),normalize:e=>{let{value:t}=e,i=Nr(e,hdt);return vdt(t,i,n)},format:(e,t)=>mdt(e,t),sanitize:(e,t,i)=>pdt(e,t,i)}}var bdt={grad:.9,turn:360,rad:360/(2*Math.PI)},Wp=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},Ia=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},kd=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},wme=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Sme=function(n){return{r:kd(n.r,0,255),g:kd(n.g,0,255),b:kd(n.b,0,255),a:kd(n.a)}},kU=function(n){return{r:Ia(n.r),g:Ia(n.g),b:Ia(n.b),a:Ia(n.a,3)}},ydt=/^#([0-9a-f]{3,8})$/i,UA=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},xme=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:r}},Eme=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:255*[i,a,s,s,l,i][c],g:255*[l,i,i,a,s,s][c],b:255*[s,s,l,i,i,a][c],a:r}},Tme=function(n){return{h:wme(n.h),s:kd(n.s,0,100),l:kd(n.l,0,100),a:kd(n.a)}},kme=function(n){return{h:Ia(n.h),s:Ia(n.s),l:Ia(n.l),a:Ia(n.a,3)}},Lme=function(n){return Eme((t=(e=n).s,{h:e.h,s:(t*=((i=e.l)<50?i:100-i)/100)>0?2*t/(i+t)*100:0,v:i+t,a:e.a}));var e,t,i},U4=function(n){return{h:(e=xme(n)).h,s:(r=(200-(t=e.s))*(i=e.v)/100)>0&&r<200?t*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,i,r},Cdt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wdt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sdt=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xdt=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,LU={string:[[function(n){var e=ydt.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?Ia(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?Ia(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Sdt.exec(n)||xdt.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Sme({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=Cdt.exec(n)||wdt.exec(n);if(!e)return null;var t,i,r=Tme({h:(t=e[1],i=e[2],i===void 0&&(i="deg"),Number(t)*(bdt[i]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Lme(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=r===void 0?1:r;return Wp(e)&&Wp(t)&&Wp(i)?Sme({r:Number(e),g:Number(t),b:Number(i),a:Number(o)}):null},"rgb"],[function(n){var e=n.h,t=n.s,i=n.l,r=n.a,o=r===void 0?1:r;if(!Wp(e)||!Wp(t)||!Wp(i))return null;var s=Tme({h:Number(e),s:Number(t),l:Number(i),a:Number(o)});return Lme(s)},"hsl"],[function(n){var e=n.h,t=n.s,i=n.v,r=n.a,o=r===void 0?1:r;if(!Wp(e)||!Wp(t)||!Wp(i))return null;var s=function(a){return{h:wme(a.h),s:kd(a.s,0,100),v:kd(a.v,0,100),a:kd(a.a)}}({h:Number(e),s:Number(t),v:Number(i),a:Number(o)});return Eme(s)},"hsv"]]},Dme=function(n,e){for(var t=0;t<e.length;t++){var i=e[t][0](n);if(i)return[i,e[t][1]]}return[null,void 0]},Ime=function(n){return typeof n=="string"?Dme(n.trim(),LU.string):typeof n=="object"&&n!==null?Dme(n,LU.object):[null,void 0]},Edt=function(n){return Ime(n)[1]},DU=function(n,e){var t=U4(n);return{h:t.h,s:kd(t.s+100*e,0,100),l:t.l,a:t.a}},IU=function(n){return(299*n.r+587*n.g+114*n.b)/1e3/255},Ame=function(n,e){var t=U4(n);return{h:t.h,s:t.s,l:kd(t.l+100*e,0,100),a:t.a}},AU=function(){function n(e){this.parsed=Ime(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return n.prototype.isValid=function(){return this.parsed!==null},n.prototype.brightness=function(){return Ia(IU(this.rgba),2)},n.prototype.isDark=function(){return IU(this.rgba)<.5},n.prototype.isLight=function(){return IU(this.rgba)>=.5},n.prototype.toHex=function(){return e=kU(this.rgba),t=e.r,i=e.g,r=e.b,s=(o=e.a)<1?UA(Ia(255*o)):"","#"+UA(t)+UA(i)+UA(r)+s;var e,t,i,r,o,s},n.prototype.toRgb=function(){return kU(this.rgba)},n.prototype.toRgbString=function(){return e=kU(this.rgba),t=e.r,i=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+i+", "+r+", "+o+")":"rgb("+t+", "+i+", "+r+")";var e,t,i,r,o},n.prototype.toHsl=function(){return kme(U4(this.rgba))},n.prototype.toHslString=function(){return e=kme(U4(this.rgba)),t=e.h,i=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+i+"%, "+r+"%, "+o+")":"hsl("+t+", "+i+"%, "+r+"%)";var e,t,i,r,o},n.prototype.toHsv=function(){return e=xme(this.rgba),{h:Ia(e.h),s:Ia(e.s),v:Ia(e.v),a:Ia(e.a,3)};var e},n.prototype.invert=function(){return Ql({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),Ql(DU(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),Ql(DU(this.rgba,-e))},n.prototype.grayscale=function(){return Ql(DU(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),Ql(Ame(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),Ql(Ame(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?Ql({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ia(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=U4(this.rgba);return typeof e=="number"?Ql({h:e,s:t.s,l:t.l,a:t.a}):Ia(t.h)},n.prototype.isEqual=function(e){return this.toHex()===Ql(e).toHex()},n}(),Ql=function(n){return n instanceof AU?n:new AU(n)},Nme=[],Tdt=function(n){n.forEach(function(e){Nme.indexOf(e)<0&&(e(AU,LU),Nme.push(e))})};function kdt(n,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in t)i[t[r]]=r;var o={};n.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=i[this.toHex()];if(c)return c;if(s==null?void 0:s.closest){var u=this.toRgb(),d=1/0,h="black";if(!o.length)for(var f in t)o[f]=new n(t[f]).toRgb();for(var g in t){var p=(a=u,l=o[g],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));p<d&&(d=p,h=g)}return h}},e.string.push([function(s){var a=s.toLowerCase(),l=a==="transparent"?"#0000":t[a];return l?new n(l).toRgb():null},"name"])}function iS(){return(iS=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(this,arguments)}function NU(n,e){if(n==null)return{};var t,i,r={},o=Object.keys(n);for(i=0;i<o.length;i++)e.indexOf(t=o[i])>=0||(r[t]=n[t]);return r}function RU(n){var e=M.exports.useRef(n),t=M.exports.useRef(function(i){e.current&&e.current(i)});return e.current=n,t.current}var rS=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n<e?e:n},V4=function(n){return"touches"in n},OU=function(n){return n&&n.ownerDocument.defaultView||self},Rme=function(n,e,t){var i=n.getBoundingClientRect(),r=V4(e)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(e.touches,t):e;return{left:rS((r.pageX-(i.left+OU(n).pageXOffset))/i.width),top:rS((r.pageY-(i.top+OU(n).pageYOffset))/i.height)}},Ome=function(n){!V4(n)&&n.preventDefault()},MU=Ie.memo(function(n){var e=n.onMove,t=n.onKey,i=NU(n,["onMove","onKey"]),r=M.exports.useRef(null),o=RU(e),s=RU(t),a=M.exports.useRef(null),l=M.exports.useRef(!1),c=M.exports.useMemo(function(){var f=function(m){Ome(m),(V4(m)?m.touches.length>0:m.buttons>0)&&r.current?o(Rme(r.current,m,a.current)):p(!1)},g=function(){return p(!1)};function p(m){var _=l.current,v=OU(r.current),b=m?v.addEventListener:v.removeEventListener;b(_?"touchmove":"mousemove",f),b(_?"touchend":"mouseup",g)}return[function(m){var _=m.nativeEvent,v=r.current;if(v&&(Ome(_),!function(y,w){return w&&!V4(y)}(_,l.current)&&v)){if(V4(_)){l.current=!0;var b=_.changedTouches||[];b.length&&(a.current=b[0].identifier)}v.focus(),o(Rme(v,_,a.current)),p(!0)}},function(m){var _=m.which||m.keyCode;_<37||_>40||(m.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[s,o]),u=c[0],d=c[1],h=c[2];return M.exports.useEffect(function(){return h},[h]),Ie.createElement("div",iS({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:d,tabIndex:0,role:"slider"}))}),j4=function(n){return n.filter(Boolean).join(" ")},PU=function(n){var e=n.color,t=n.left,i=n.top,r=i===void 0?.5:i,o=j4(["react-colorful__pointer",n.className]);return Ie.createElement("div",{className:o,style:{top:100*r+"%",left:100*t+"%"}},Ie.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Jl=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},Mme=function(n){var e=n.s,t=n.v,i=n.a,r=(200-e)*t/100;return{h:Jl(n.h),s:Jl(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:Jl(r/2),a:Jl(i,2)}},FU=function(n){var e=Mme(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},BU=function(n){var e=Mme(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Pme=function(n){var e=n.h,t=n.s,i=n.v,r=n.a;e=e/360*6,t/=100,i/=100;var o=Math.floor(e),s=i*(1-t),a=i*(1-(e-o)*t),l=i*(1-(1-e+o)*t),c=o%6;return{r:Jl(255*[i,a,s,s,l,i][c]),g:Jl(255*[l,i,i,a,s,s][c]),b:Jl(255*[s,s,l,i,i,a][c]),a:Jl(r,2)}},Fme=function(n){var e=n.r,t=n.g,i=n.b,r=n.a,o=Math.max(e,t,i),s=o-Math.min(e,t,i),a=s?o===e?(t-i)/s:o===t?2+(i-e)/s:4+(e-t)/s:0;return{h:Jl(60*(a<0?a+6:a)),s:Jl(o?s/o*100:0),v:Jl(o/255*100),a:r}},Bme=Ie.memo(function(n){var e=n.hue,t=n.onChange,i=j4(["react-colorful__hue",n.className]);return Ie.createElement("div",{className:i},Ie.createElement(MU,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:rS(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuetext":Jl(e)},Ie.createElement(PU,{className:"react-colorful__hue-pointer",left:e/360,color:FU({h:e,s:100,v:100,a:1})})))}),$me=Ie.memo(function(n){var e=n.hsva,t=n.onChange,i={backgroundColor:FU({h:e.h,s:100,v:100,a:1})};return Ie.createElement("div",{className:"react-colorful__saturation",style:i},Ie.createElement(MU,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:rS(e.s+100*r.left,0,100),v:rS(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Jl(e.s)+"%, Brightness "+Jl(e.v)+"%"},Ie.createElement(PU,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:FU(e)})))}),$U=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function Hme(n,e,t){var i=RU(t),r=M.exports.useState(function(){return n.toHsva(e)}),o=r[0],s=r[1],a=M.exports.useRef({color:e,hsva:o});M.exports.useEffect(function(){if(!n.equal(e,a.current.color)){var c=n.toHsva(e);a.current={hsva:c,color:e},s(c)}},[e,n]),M.exports.useEffect(function(){var c;$U(o,a.current.hsva)||n.equal(c=n.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},i(c))},[o,n,i]);var l=M.exports.useCallback(function(c){s(function(u){return Object.assign({},u,c)})},[]);return[o,l]}var Ldt=typeof window!="undefined"?M.exports.useLayoutEffect:M.exports.useEffect,Ddt=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},Wme=new Map,zme=function(n){Ldt(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Wme.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Wme.set(e,t);var i=Ddt();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},Idt=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=NU(n,["className","colorModel","color","onChange"]),a=M.exports.useRef(null);zme(a);var l=Hme(t,r,o),c=l[0],u=l[1],d=j4(["react-colorful",e]);return Ie.createElement("div",iS({},s,{ref:a,className:d}),Ie.createElement($me,{hsva:c,onChange:u}),Ie.createElement(Bme,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},Adt=function(n){var e=n.className,t=n.hsva,i=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+BU(Object.assign({},t,{a:0}))+", "+BU(Object.assign({},t,{a:1}))+")"},o=j4(["react-colorful__alpha",e]);return Ie.createElement("div",{className:o},Ie.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),Ie.createElement(MU,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:rS(t.a+s.left)})},"aria-label":"Alpha","aria-valuetext":Jl(100*t.a)+"%"},Ie.createElement(PU,{className:"react-colorful__alpha-pointer",left:t.a,color:BU(t)})))},Ndt=function(n){var e=n.className,t=n.colorModel,i=n.color,r=i===void 0?t.defaultColor:i,o=n.onChange,s=NU(n,["className","colorModel","color","onChange"]),a=M.exports.useRef(null);zme(a);var l=Hme(t,r,o),c=l[0],u=l[1],d=j4(["react-colorful",e]);return Ie.createElement("div",iS({},s,{ref:a,className:d}),Ie.createElement($me,{hsva:c,onChange:u}),Ie.createElement(Bme,{hue:c.h,onChange:u}),Ie.createElement(Adt,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},Rdt={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Fme,fromHsva:Pme,equal:$U},Odt=function(n){return Ie.createElement(Ndt,iS({},n,{colorModel:Rdt}))},Mdt={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return Fme({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=Pme(n)).r,g:e.g,b:e.b};var e},equal:$U},Pdt=function(n){return Ie.createElement(Idt,iS({},n,{colorModel:Mdt}))};/*! *****************************************************************************
325
325
  Copyright (c) Microsoft Corporation.
326
326
 
@@ -870,8 +870,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
870
870
  <slot name="footer"> ${ppt} </slot>
871
871
  </div>
872
872
  </div>
873
- `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};$o.styles=[mpt],bs([As({type:String})],$o.prototype,"placeholder",void 0),bs([As({type:Boolean})],$o.prototype,"disableHotkeys",void 0),bs([As({type:Boolean})],$o.prototype,"hideBreadcrumbs",void 0),bs([As()],$o.prototype,"openHotkey",void 0),bs([As()],$o.prototype,"navigationUpHotkey",void 0),bs([As()],$o.prototype,"navigationDownHotkey",void 0),bs([As()],$o.prototype,"closeHotkey",void 0),bs([As()],$o.prototype,"goBackHotkey",void 0),bs([As()],$o.prototype,"selectHotkey",void 0),bs([As({type:Boolean})],$o.prototype,"hotKeysJoinedView",void 0),bs([As({type:Boolean})],$o.prototype,"noAutoLoadMdIcons",void 0),bs([As({type:Array,hasChanged(){return!0}})],$o.prototype,"data",void 0),bs([o0()],$o.prototype,"visible",void 0),bs([o0()],$o.prototype,"_bump",void 0),bs([o0()],$o.prototype,"_actionMatches",void 0),bs([o0()],$o.prototype,"_search",void 0),bs([o0()],$o.prototype,"_currentRoot",void 0),bs([o0()],$o.prototype,"_flatData",void 0),bs([o0()],$o.prototype,"breadcrumbs",null),bs([o0()],$o.prototype,"_selected",void 0),$o=bs([JA("ninja-keys")],$o);const _pt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=_s.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},vpt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=_s.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},_0e=Mc(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var r8;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})(r8||(r8={}));var v0e={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},b0e=Ie.createContext&&Ie.createContext(v0e),s0=globalThis&&globalThis.__assign||function(){return s0=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},s0.apply(this,arguments)},bpt=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function y0e(n){return n&&n.map(function(e,t){return Ie.createElement(e.tag,s0({key:t},e.attr),y0e(e.child))})}function ypt(n){return function(e){return Ie.createElement(Cpt,s0({attr:s0({},n.attr)},e),y0e(n.child))}}function Cpt(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=bpt(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),Ie.createElement("svg",s0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:s0(s0({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ie.createElement("title",null,o),n.children)};return b0e!==void 0?Ie.createElement(b0e.Consumer,null,function(t){return e(t)}):e(v0e)}function wpt(n){return ypt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const Spt=({drawerOpen:n,setDrawerOpen:e,replayList:t,option:i})=>{const[r,o]=M.exports.useState("");return M.exports.useEffect(()=>{},[t]),xt(d4,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[xt(d4.Header,{children:[oe(d4.Title,{children:i?i.title?i.title:"":"\u56DE\u653E\u5217\u8868"}),oe(d4.Actions,{children:xt(Rfe,{children:[oe(Rfe.Addon,{children:oe(wpt,{size:"1.5em"})}),oe(Uot,{onChange:s=>{o(s)}})]})})]}),oe(d4.Body,{children:t?oe("div",{children:oe("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:r?t.filter(s=>ka.getState().userList.find(a=>a.uuid===s.userInfo.uuid).username.indexOf(r)>=0).map((s,a)=>{var l,c;return xt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),oU({userId:s.userInfo.uuid,timestamp:s.timestamp})},children:[r8[s.event],oe("span",{className:"mx-4",style:{color:(l=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),xt("span",{children:["\u3010",SA(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)}):t.map((s,a)=>{var l,c;return xt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),oU({userId:s.userInfo.uuid,timestamp:s.timestamp})},children:[r8[s.event],oe("span",{className:"mx-4",style:{color:(l=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),xt("span",{children:["\u3010",SA(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)})})}):oe($rt.Paragraph,{style:{marginTop:30}})})]})},xpt=()=>{const n=M.exports.useRef(null),e=[{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=_s.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"disable editor",title:"\u7981\u7528/\u542F\u7528 \u7F16\u8F91\u5668",hotkey:"ed",mdIcon:"edit",handler:()=>{rn.getState().setGlobalData({disableEditor:!rn.getState().globalData.disableEditor})}},{id:"disable markdown",title:"\u7981\u7528/\u542F\u7528 Markdown",hotkey:"ed",mdIcon:"swap_horiz",handler:()=>{rn.getState().setGlobalData({disableEditor:!rn.getState().globalData.showMarkdown});const c=document.querySelector(".markdown-layout"),u=window.getComputedStyle(document.querySelector(".markdown-layout"));c.style.display=(u==null?void 0:u.display)==="none"?"block":"none"}},{id:"clearCache",title:"\u6E05\u9664\u7F13\u5B58",mdIcon:"autorenew",handler:()=>{_pt()}},{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"alarm",handler:()=>{l()}},{id:"GUI",title:"GUI",hotkey:"g",mdIcon:"build_circle",handler:()=>{const{showGUI:c,setShowGUI:u}=_0e.getState();u(!c)}},{id:"admClearCache",title:"\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",mdIcon:"admin_panel_settings",handler:()=>{prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&vpt()}},{id:"DOC",title:"\u6587\u6863",mdIcon:"desktop_windows",children:[{id:"tsdoc",title:"API \u6587\u6863",mdIcon:"highlight",handler:()=>{window.open("https://develop.1024paas.com/tsdoc")}},{id:"storybook",title:"Storybook",mdIcon:"description",handler:()=>{window.open("https://develop.1024paas.com/storybook")}}]}],[t,i]=M.exports.useState(!1),[r,o]=M.exports.useState(null),[s,a]=M.exports.useState(e);M.exports.useEffect(()=>{console.log("leva init"),n.current&&(n.current.data=s)},[]),M.exports.useEffect(()=>{t||n.current.close()},[t]);const l=async c=>{o(await cle()),i(!0)};return xt(Znt,{theme:"dark",children:[oe("ninja-keys",{ref:n,className:"dark"}),oe(Spt,{drawerOpen:t,setDrawerOpen:i,replayList:r})]})},Ept=()=>{const{socket:n}=_s.getState(),e=_0e(i=>i.showGUI),t=(i,r)=>{const o=new Set(Gw.getState().ignoreReplayers);r?o.add(i):o.delete(i),Gw.getState().setIgnoreReplayer(Array.from(o))};return Fgt({syncCursor:{label:"\u5149\u6807\u540C\u6B65",value:rn.getState().globalData.syncCursor,onChange:i=>{rn.getState().setGlobalData({syncCursor:i}),n==null||n.emit("globalData",{syncCursor:i})},transient:!1},\u5C4F\u853D\u7EC4\u4EF6:E1e({Editor:{value:!1,onChange:i=>{t("editor",i)},transient:!1},Terminal:{value:!1,onChange:i=>{t("terminal",i)},transient:!1},File:{value:!1,onChange:i=>{console.log(i),t("file",i)},transient:!1}})}),xt(Qo,{children:[oe(A1e,{hidden:!e}),oe(Bgt,{}),oe(xpt,{})]})},C0e="staging";console.log("current branch",C0e);const Tpt=e0(async()=>(await Promise.resolve().then(function(){return Jmt})).FileTree),kpt=e0(async()=>(await Promise.resolve().then(function(){return b3e})).Editor),Lpt=e0(async()=>(await Promise.resolve().then(function(){return KKt})).default),Dpt=e0(async()=>(await Promise.resolve().then(function(){return XKt})).default),Ipt=e0(async()=>(await Promise.resolve().then(function(){return ZKt})).default),Apt=e0(async()=>await Promise.resolve().then(function(){return kGt}));window.MonacoEnvironment={getWorkerUrl(n,e){return e==="json"?"/assets/json.worker.bundle.js":e==="css"?"/assets/css.worker.bundle.js":e==="html"?"/assets/html.worker.bundle.js":e==="typescript"||e==="javascript"?"/assets/ts.worker.bundle.js":`data:text/javascript;charset=utf-8,${encodeURIComponent(`
874
- importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class Npt{constructor({debug:e,mode:t,ticket:i,playgroundId:r,userId:o,tenantId:s,username:a,components:l,serviceWorkerOrigin:c,paasDomain:u,onMessage:d,onError:h}){pr(this,"shellDOM");pr(this,"editorDOM");pr(this,"pageDOM");pr(this,"storeProps");pr(this,"ticket");pr(this,"userId");pr(this,"tenantId");pr(this,"username");pr(this,"debug");pr(this,"userInfo",{});pr(this,"paasDomain");pr(this,"components");pr(this,"mode");pr(this,"playgroundId");pr(this,"serviceWorkerOrigin");pr(this,"onMessage");this.mode=t,this.ticket=i,this.playgroundId=r,this.userId=o,this.tenantId=s,this.username=a||"",this.debug=e||!1,this.paasDomain=u,this.components=l,this.onMessage=d,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",r),this.init(),this.on=this.on.bind(this),this.trigger=this.trigger.bind(this)}get otstore(){return rn.getState()}get socketIO(){return _s.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return Gw.getState().ignoreReplayers}get userList(){return ka.getState().userList}async init(){if(window.onerror=s=>{console.log("error"),s.includes("dError")&&this.trigger("error",{content:s.replace("Uncaught dError:","")})},this.mode==="tsdoc")return;const{setSocket:e}=_s.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=xh.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId,paasDomain:this.paasDomain?this.paasDomain:`${C0e}.1024paas.com`};try{const a=await(await fetch(`https://${o.paasDomain}/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();e(new XMe(mt(Fe({},o),{debug:this.debug,ioPath:`wss://${a.data}`})))}catch(s){throw console.log(s),s}if(!o.userId)throw"\u7F3A\u5C11userId";if(!o.playgroundId)throw"\u7F3A\u5C11playgroundId";if(!o.ticket)throw"\u7F3A\u5C11ticket";i(mt(Fe({},r),{uuid:o.userId,userId:o.userId})),nst(mt(Fe(Fe({},this.userInfo),o),{io:_s.getState().socket,callback:()=>{this.components&&this.mapRender(this.components)}})),this.components&&this.mapRender(this.components),Ic.exports.render(oe(Ept,{}),document.querySelector(".init-class")),this.messageAndErrorInjection()}messageAndErrorInjection(){fle.subscribe(e=>e,(e,t)=>{this.trigger(sa.exports.pick(e,["dockerStatus"]),sa.exports.pick(t,["dockerStatus"]))}),ka.subscribe((e,t)=>{this.trigger(sa.exports.pick(t,["userList"]),sa.exports.pick(e,["userList"]))})}trigger(e,t){this.on(t)}clearIDB(e){indexedDB.deleteDatabase("daopaas").onsuccess=()=>{e&&e()}}followUser(e,t){const{switchShadowUser:i}=Ap.getState();i(e),t&&t()}unFollowUser(e,t){const{switchShadowUser:i}=Ap.getState();i({}),t&&t()}replay(e){oU({userId:e.userInfo.uuid,timestamp:e.timestamp})}setIgnoreReplayers(e){Gw.getState().setIgnoreReplayer(e)}activePlayground(){var e;(e=_s.getState().socket)==null||e.emit("active")}runPlayground(){var e;(e=_s.getState().socket)==null||e.emit("run")}stopPlayground(){var e;(e=_s.getState().socket)==null||e.emit("stop")}onUploadFile(e){var t;(t=_s.getState().socket)==null||t.emit("upload",e)}switchLspServer(e){this.otstore.setGlobalData({useLsp:!this.otstore.globalData.useLsp})}record(e){const{socket:t}=_s.getState();if(e==="undefined"){this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e});return}this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e})}on(e){this.onMessage&&this.onMessage(e)}mapRender(e){e==null||e.forEach(({container:t,props:i,item:r},o)=>{switch(r){case"Page":this.Page({container:t,props:i});break;case"Tree":this.Tree({container:t,props:i});break;case"Editor":this.Editor({container:t,props:mt(Fe({},i),{serviceWorkerOrigin:this.serviceWorkerOrigin})});break;case"Console":this.Console({container:t,props:i});break;case"Browser":this.Browser({container:t,props:i});break;case"Shell":this.Shell({container:t,props:i});break}})}Page({container:e,props:t}){this.storeProps=t,this.pageDOM=e?dS(e):this.pageDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Apt,{serviceWorkerOrigin:this.serviceWorkerOrigin})}),this.pageDOM)}Editor({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(kpt,mt(Fe({},t),{serviceWorkerOrigin:this.serviceWorkerOrigin}))}),this.editorDOM)}Shell({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Ipt,Fe({},t))}),this.editorDOM)}Tree({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Tpt,Fe({},t))}),this.editorDOM)}Console({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Lpt,Fe({},t))}),this.editorDOM)}Browser({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Dpt,Fe({},t))}),this.editorDOM)}}function dS(n){return/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(n))?n:document.querySelector(n)}var zc=globalThis&&globalThis.__assign||function(){return zc=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},zc.apply(this,arguments)},a0=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(function(t){return!!t}).join(" ")},Rpt=function(n){var e=zc({renderItemTitle:function(t){var i=t.title,r=t.context,o=t.info;if(!o.isSearching||!r.isSearchMatching)return Ie.createElement(Ie.Fragment,null,i);var s=i.toLowerCase().indexOf(o.search.toLowerCase());return Ie.createElement(Ie.Fragment,null,s>0&&Ie.createElement("span",null,i.slice(0,s)),Ie.createElement("span",{className:"rct-tree-item-search-highlight"},i.slice(s,s+o.search.length)),s+o.search.length<i.length&&Ie.createElement("span",null,i.slice(s+o.search.length,i.length)))},renderItemArrow:function(t){var i=t.item,r=t.context;return Ie.createElement("div",zc({className:a0(i.hasChildren&&"rct-tree-item-arrow-hasChildren","rct-tree-item-arrow")},r.arrowProps),i.hasChildren&&(r.isExpanded?Ie.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},Ie.createElement("g",null,Ie.createElement("g",null,Ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M12,5c-0.28,0-0.53,0.11-0.71,0.29L8,8.59L4.71,5.29C4.53,5.11,4.28,5,4,5
873
+ `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};$o.styles=[mpt],bs([As({type:String})],$o.prototype,"placeholder",void 0),bs([As({type:Boolean})],$o.prototype,"disableHotkeys",void 0),bs([As({type:Boolean})],$o.prototype,"hideBreadcrumbs",void 0),bs([As()],$o.prototype,"openHotkey",void 0),bs([As()],$o.prototype,"navigationUpHotkey",void 0),bs([As()],$o.prototype,"navigationDownHotkey",void 0),bs([As()],$o.prototype,"closeHotkey",void 0),bs([As()],$o.prototype,"goBackHotkey",void 0),bs([As()],$o.prototype,"selectHotkey",void 0),bs([As({type:Boolean})],$o.prototype,"hotKeysJoinedView",void 0),bs([As({type:Boolean})],$o.prototype,"noAutoLoadMdIcons",void 0),bs([As({type:Array,hasChanged(){return!0}})],$o.prototype,"data",void 0),bs([o0()],$o.prototype,"visible",void 0),bs([o0()],$o.prototype,"_bump",void 0),bs([o0()],$o.prototype,"_actionMatches",void 0),bs([o0()],$o.prototype,"_search",void 0),bs([o0()],$o.prototype,"_currentRoot",void 0),bs([o0()],$o.prototype,"_flatData",void 0),bs([o0()],$o.prototype,"breadcrumbs",null),bs([o0()],$o.prototype,"_selected",void 0),$o=bs([JA("ninja-keys")],$o);const _pt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=_s.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},vpt=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=_s.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},_0e=Mc(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var r8;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})(r8||(r8={}));var v0e={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},b0e=Ie.createContext&&Ie.createContext(v0e),s0=globalThis&&globalThis.__assign||function(){return s0=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},s0.apply(this,arguments)},bpt=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function y0e(n){return n&&n.map(function(e,t){return Ie.createElement(e.tag,s0({key:t},e.attr),y0e(e.child))})}function ypt(n){return function(e){return Ie.createElement(Cpt,s0({attr:s0({},n.attr)},e),y0e(n.child))}}function Cpt(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=bpt(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),Ie.createElement("svg",s0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:s0(s0({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ie.createElement("title",null,o),n.children)};return b0e!==void 0?Ie.createElement(b0e.Consumer,null,function(t){return e(t)}):e(v0e)}function wpt(n){return ypt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const Spt=({drawerOpen:n,setDrawerOpen:e,replayList:t,option:i})=>{const[r,o]=M.exports.useState("");return M.exports.useEffect(()=>{},[t]),xt(d4,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[xt(d4.Header,{children:[oe(d4.Title,{children:i?i.title?i.title:"":"\u56DE\u653E\u5217\u8868"}),oe(d4.Actions,{children:xt(Rfe,{children:[oe(Rfe.Addon,{children:oe(wpt,{size:"1.5em"})}),oe(Uot,{onChange:s=>{o(s)}})]})})]}),oe(d4.Body,{children:t?oe("div",{children:oe("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:r?t.filter(s=>ka.getState().userList.find(a=>a.uuid===s.userInfo.uuid).username.indexOf(r)>=0).map((s,a)=>{var l,c;return xt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),oU({timestamp:s.timestamp})},children:[r8[s.event],oe("span",{className:"mx-4",style:{color:(l=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),xt("span",{children:["\u3010",SA(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)}):t.map((s,a)=>{var l,c;return xt("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),oU({userId:s.userInfo.uuid,timestamp:s.timestamp})},children:[r8[s.event],oe("span",{className:"mx-4",style:{color:(l=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=ka.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),xt("span",{children:["\u3010",SA(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)})})}):oe($rt.Paragraph,{style:{marginTop:30}})})]})},xpt=()=>{const n=M.exports.useRef(null),e=[{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=_s.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"disable editor",title:"\u7981\u7528/\u542F\u7528 \u7F16\u8F91\u5668",hotkey:"ed",mdIcon:"edit",handler:()=>{rn.getState().setGlobalData({disableEditor:!rn.getState().globalData.disableEditor})}},{id:"disable markdown",title:"\u7981\u7528/\u542F\u7528 Markdown",hotkey:"ed",mdIcon:"swap_horiz",handler:()=>{rn.getState().setGlobalData({disableEditor:!rn.getState().globalData.showMarkdown});const c=document.querySelector(".markdown-layout"),u=window.getComputedStyle(document.querySelector(".markdown-layout"));c.style.display=(u==null?void 0:u.display)==="none"?"block":"none"}},{id:"clearCache",title:"\u6E05\u9664\u7F13\u5B58",mdIcon:"autorenew",handler:()=>{_pt()}},{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"alarm",handler:()=>{l()}},{id:"GUI",title:"GUI",hotkey:"g",mdIcon:"build_circle",handler:()=>{const{showGUI:c,setShowGUI:u}=_0e.getState();u(!c)}},{id:"admClearCache",title:"\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",mdIcon:"admin_panel_settings",handler:()=>{prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&vpt()}},{id:"DOC",title:"\u6587\u6863",mdIcon:"desktop_windows",children:[{id:"tsdoc",title:"API \u6587\u6863",mdIcon:"highlight",handler:()=>{window.open("https://develop.1024paas.com/tsdoc")}},{id:"storybook",title:"Storybook",mdIcon:"description",handler:()=>{window.open("https://develop.1024paas.com/storybook")}}]}],[t,i]=M.exports.useState(!1),[r,o]=M.exports.useState(null),[s,a]=M.exports.useState(e);M.exports.useEffect(()=>{console.log("leva init"),n.current&&(n.current.data=s)},[]),M.exports.useEffect(()=>{t||n.current.close()},[t]);const l=async c=>{o(await cle()),i(!0)};return xt(Znt,{theme:"dark",children:[oe("ninja-keys",{ref:n,className:"dark"}),oe(Spt,{drawerOpen:t,setDrawerOpen:i,replayList:r})]})},Ept=()=>{const{socket:n}=_s.getState(),e=_0e(i=>i.showGUI),t=(i,r)=>{const o=new Set(Gw.getState().ignoreReplayers);r?o.add(i):o.delete(i),Gw.getState().setIgnoreReplayer(Array.from(o))};return Fgt({syncCursor:{label:"\u5149\u6807\u540C\u6B65",value:rn.getState().globalData.syncCursor,onChange:i=>{rn.getState().setGlobalData({syncCursor:i}),n==null||n.emit("globalData",{syncCursor:i})},transient:!1},\u5C4F\u853D\u7EC4\u4EF6:E1e({Editor:{value:!1,onChange:i=>{t("editor",i)},transient:!1},Terminal:{value:!1,onChange:i=>{t("terminal",i)},transient:!1},File:{value:!1,onChange:i=>{t("file",i)},transient:!1}})}),xt(Qo,{children:[oe(A1e,{hidden:!e}),oe(Bgt,{}),oe(xpt,{})]})},C0e="staging";console.log("current branch",C0e);const Tpt=e0(async()=>(await Promise.resolve().then(function(){return Jmt})).FileTree),kpt=e0(async()=>(await Promise.resolve().then(function(){return b3e})).Editor),Lpt=e0(async()=>(await Promise.resolve().then(function(){return KKt})).default),Dpt=e0(async()=>(await Promise.resolve().then(function(){return XKt})).default),Ipt=e0(async()=>(await Promise.resolve().then(function(){return ZKt})).default),Apt=e0(async()=>await Promise.resolve().then(function(){return kGt}));window.MonacoEnvironment={getWorkerUrl(n,e){return e==="json"?"/assets/json.worker.bundle.js":e==="css"?"/assets/css.worker.bundle.js":e==="html"?"/assets/html.worker.bundle.js":e==="typescript"||e==="javascript"?"/assets/ts.worker.bundle.js":`data:text/javascript;charset=utf-8,${encodeURIComponent(`
874
+ importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class Npt{constructor({debug:e,mode:t,ticket:i,playgroundId:r,userId:o,tenantId:s,username:a,components:l,serviceWorkerOrigin:c,paasDomain:u,onMessage:d,onError:h}){pr(this,"shellDOM");pr(this,"editorDOM");pr(this,"pageDOM");pr(this,"storeProps");pr(this,"ticket");pr(this,"userId");pr(this,"tenantId");pr(this,"username");pr(this,"debug");pr(this,"userInfo",{});pr(this,"paasDomain");pr(this,"components");pr(this,"mode");pr(this,"playgroundId");pr(this,"serviceWorkerOrigin");pr(this,"onMessage");this.mode=t,this.ticket=i,this.playgroundId=r,this.userId=o,this.tenantId=s,this.username=a||"",this.debug=e||!1,this.paasDomain=u,this.components=l,this.onMessage=d,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",r),this.init(),this.on=this.on.bind(this),this.trigger=this.trigger.bind(this)}get otstore(){return rn.getState()}get socketIO(){return _s.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return Gw.getState().ignoreReplayers}get userList(){return ka.getState().userList}async init(){if(window.onerror=s=>{console.log("error"),s.includes("dError")&&this.trigger("error",{content:s.replace("Uncaught dError:","")})},this.mode==="tsdoc")return;const{setSocket:e}=_s.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=xh.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId,paasDomain:this.paasDomain?this.paasDomain:`${C0e}.1024paas.com`};try{const a=await(await fetch(`https://${o.paasDomain}/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();e(new XMe(mt(Fe({},o),{debug:this.debug,ioPath:`wss://${a.data}`})))}catch(s){throw console.log(s),s}if(!o.userId)throw"\u7F3A\u5C11userId";if(!o.playgroundId)throw"\u7F3A\u5C11playgroundId";if(!o.ticket)throw"\u7F3A\u5C11ticket";i(mt(Fe({},r),{uuid:o.userId,userId:o.userId})),nst(mt(Fe(Fe({},this.userInfo),o),{io:_s.getState().socket,callback:()=>{this.components&&this.mapRender(this.components)}})),this.components&&this.mapRender(this.components),Ic.exports.render(oe(Ept,{}),document.querySelector(".init-class")),this.messageAndErrorInjection()}messageAndErrorInjection(){fle.subscribe(e=>e,(e,t)=>{this.trigger(sa.exports.pick(e,["dockerStatus"]),sa.exports.pick(t,["dockerStatus"]))}),ka.subscribe((e,t)=>{this.trigger(sa.exports.pick(t,["userList"]),sa.exports.pick(e,["userList"]))})}trigger(e,t){this.on(t)}clearIDB(e){indexedDB.deleteDatabase("daopaas").onsuccess=()=>{e&&e()}}followUser(e,t){const{switchShadowUser:i}=Ap.getState();i(e),t&&t()}unFollowUser(e,t){const{switchShadowUser:i}=Ap.getState();i({}),t&&t()}replay(e){oU(e)}setIgnoreReplayers(e){Gw.getState().setIgnoreReplayer(e)}activePlayground(){var e;(e=_s.getState().socket)==null||e.emit("active")}runPlayground(){var e;(e=_s.getState().socket)==null||e.emit("run")}stopPlayground(){var e;(e=_s.getState().socket)==null||e.emit("stop")}onUploadFile(e){var t;(t=_s.getState().socket)==null||t.emit("upload",e)}switchLspServer(e){this.otstore.setGlobalData({useLsp:!this.otstore.globalData.useLsp})}record(e){const{socket:t}=_s.getState();if(e==="undefined"){this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e});return}this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e})}on(e){this.onMessage&&this.onMessage(e)}mapRender(e){e==null||e.forEach(({container:t,props:i,item:r},o)=>{switch(r){case"Page":this.Page({container:t,props:i});break;case"Tree":this.Tree({container:t,props:i});break;case"Editor":this.Editor({container:t,props:mt(Fe({},i),{serviceWorkerOrigin:this.serviceWorkerOrigin})});break;case"Console":this.Console({container:t,props:i});break;case"Browser":this.Browser({container:t,props:i});break;case"Shell":this.Shell({container:t,props:i});break}})}Page({container:e,props:t}){this.storeProps=t,this.pageDOM=e?dS(e):this.pageDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Apt,{serviceWorkerOrigin:this.serviceWorkerOrigin})}),this.pageDOM)}Editor({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(kpt,mt(Fe({},t),{serviceWorkerOrigin:this.serviceWorkerOrigin}))}),this.editorDOM)}Shell({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Ipt,Fe({},t))}),this.editorDOM)}Tree({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Tpt,Fe({},t))}),this.editorDOM)}Console({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Lpt,Fe({},t))}),this.editorDOM)}Browser({container:e,props:t}){this.editorDOM=e?dS(e):this.editorDOM,Ic.exports.render(oe(M.exports.Suspense,{fallback:oe(qw,{}),children:oe(Dpt,Fe({},t))}),this.editorDOM)}}function dS(n){return/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(n))?n:document.querySelector(n)}var zc=globalThis&&globalThis.__assign||function(){return zc=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},zc.apply(this,arguments)},a0=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(function(t){return!!t}).join(" ")},Rpt=function(n){var e=zc({renderItemTitle:function(t){var i=t.title,r=t.context,o=t.info;if(!o.isSearching||!r.isSearchMatching)return Ie.createElement(Ie.Fragment,null,i);var s=i.toLowerCase().indexOf(o.search.toLowerCase());return Ie.createElement(Ie.Fragment,null,s>0&&Ie.createElement("span",null,i.slice(0,s)),Ie.createElement("span",{className:"rct-tree-item-search-highlight"},i.slice(s,s+o.search.length)),s+o.search.length<i.length&&Ie.createElement("span",null,i.slice(s+o.search.length,i.length)))},renderItemArrow:function(t){var i=t.item,r=t.context;return Ie.createElement("div",zc({className:a0(i.hasChildren&&"rct-tree-item-arrow-hasChildren","rct-tree-item-arrow")},r.arrowProps),i.hasChildren&&(r.isExpanded?Ie.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},Ie.createElement("g",null,Ie.createElement("g",null,Ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M12,5c-0.28,0-0.53,0.11-0.71,0.29L8,8.59L4.71,5.29C4.53,5.11,4.28,5,4,5
875
875
  C3.45,5,3,5.45,3,6c0,0.28,0.11,0.53,0.29,0.71l4,4C7.47,10.89,7.72,11,8,11s0.53-0.11,0.71-0.29l4-4C12.89,6.53,13,6.28,13,6
876
876
  C13,5.45,12.55,5,12,5z`,className:"rct-tree-item-arrow-path"})))):Ie.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},Ie.createElement("g",null,Ie.createElement("g",null,Ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M10.71,7.29l-4-4C6.53,3.11,6.28,3,6,3C5.45,3,5,3.45,5,4
877
877
  c0,0.28,0.11,0.53,0.29,0.71L8.59,8l-3.29,3.29C5.11,11.47,5,11.72,5,12c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l4-4
package/dist/README.md ADDED
@@ -0,0 +1,47 @@
1
+
2
+ # PaaS SDK
3
+ <!-- ## 使用示例 -->
4
+ ## Install
5
+
6
+ ```sh
7
+ npm install @dao42/d42paas-front@latest
8
+ ```
9
+ ## Usage
10
+ ```js
11
+
12
+ import DaoPaaS from '@dao42/d42paas-front';
13
+
14
+ let options = {
15
+ debug: true,
16
+ playgroundId: '364948495318253568',
17
+ tenantId: '1',
18
+ ticket: 'MXwzNjQ5NDg0OTUzMTgyNTM1Njh8MXxudWxsfDE4OTU2NTMzODMwMDA=',
19
+ userId: '1',
20
+ serviceWorkerOrigin: 'https://develop.1024paas.com',
21
+ components: [
22
+ {
23
+ container: '.Tree',
24
+ item: 'Tree',
25
+ },
26
+ {
27
+ container: '.Editor',
28
+ item: 'Editor',
29
+ },
30
+ {
31
+ container: '.Shell',
32
+ item: 'Shell',
33
+ },
34
+ ],
35
+ onMessage: (message) => {},
36
+ onError: (error) => {},
37
+ };
38
+
39
+ let Dao = new DaoPaaS(options);
40
+
41
+ ```
42
+
43
+ ## JS API
44
+
45
+ ### DaoPaaS(options)
46
+
47
+ If a string is provided, it is treated as a shortcut for [`options`](https://develop.1024paas.com/tsdoc/interfaces/Options.html).
package/dist/editor.d.ts CHANGED
@@ -8,18 +8,6 @@
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Licensed under the MIT License. See License.txt in the project root for license information.
10
10
  *--------------------------------------------------------------------------------------------*/
11
- type MessageType = {
12
- PlaygroundStatus?: any;
13
- dockerStatus?: any;
14
- userList?: any;
15
- };
16
-
17
- type ErrorType = {
18
- PlaygroundStatus?: any;
19
- dockerStatus?: any;
20
- userList?: any;
21
- };
22
-
23
11
  export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
24
12
 
25
13
  export type PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
@@ -28,6 +16,18 @@ export type Replay = 'stop' | 'disabled' | 'pause';
28
16
 
29
17
  export type DockerStatus = 'RUNNING' | 'STOP';
30
18
 
19
+ type MessageType = {
20
+ PlaygroundStatus?: PlaygroundStatus;
21
+ dockerStatus?: DockerStatus;
22
+ userList?: UserInfo[];
23
+ };
24
+
25
+ type ErrorType = {
26
+ PlaygroundStatus?: any;
27
+ dockerStatus?: DockerStatus;
28
+ userList?: UserInfo[];
29
+ };
30
+
31
31
  /**
32
32
  * Userinfo type
33
33
  */
@@ -44,10 +44,15 @@ interface UserInfo {
44
44
  onlineCount?: number;
45
45
  }
46
46
 
47
+ type ReplayType = {
48
+ userId?: UserInfo['userId'];
49
+ timestamp: number;
50
+ };
51
+
47
52
  /**
48
53
  * Passing the values to init the playground.
49
54
  */
50
- interface Options {
55
+ export interface Options {
51
56
  debug?: boolean;
52
57
 
53
58
  /**
@@ -71,65 +76,65 @@ interface Options {
71
76
  * init the playground with the mode.
72
77
  *
73
78
  */
74
- readonly mode?: Mode;
79
+ mode?: Mode;
75
80
 
76
81
  /**
77
82
  *
78
83
  * init the playground with the paasDomain.
79
84
  *
80
85
  */
81
- readonly paasDomain: string;
86
+ paasDomain: string;
82
87
 
83
88
  /**
84
89
  *
85
90
  * init the playground ticket needed.
86
91
  *
87
92
  */
88
- readonly ticket: string;
93
+ ticket: string;
89
94
 
90
95
  /**
91
96
  *
92
97
  * to init the playground with this id.
93
98
  *
94
99
  */
95
- readonly playgroundId: string;
100
+ playgroundId: string;
96
101
 
97
102
  /**
98
103
  *
99
104
  * userId for the playground.
100
105
  *
101
106
  */
102
- readonly userId: string;
107
+ userId: string;
103
108
 
104
109
  /**
105
110
  *
106
111
  * tenantId for the playground.
107
112
  *
108
113
  */
109
- readonly tenantId: string;
114
+ tenantId: string;
110
115
 
111
116
  /**
112
117
  *
113
118
  * username for the playground.
114
119
  *
115
120
  */
116
- readonly username?: string;
121
+ username?: string;
117
122
 
118
123
  /**
119
124
  *
120
125
  * avatarUrl for the playground but not necessarily.
121
126
  *
122
127
  */
123
- readonly avatarUrl?: string;
128
+ avatarUrl?: string;
124
129
 
125
130
  /**
126
131
  *
127
132
  * this argument is to ingnore replaying patterns.
128
133
  *
129
134
  */
130
- readonly ignoreReplayers?: string[];
135
+ ignoreReplayers?: string[];
131
136
 
132
- readonly components?: UserComponent[];
137
+ components?: UserComponent[];
133
138
 
134
139
  /**
135
140
  * @deprecated to fix the issue of the playground.
@@ -179,7 +184,7 @@ export class DaoPaaS {
179
184
  *
180
185
  */
181
186
 
182
- unFollowUser(user: any, callback: () => void): void;
187
+ unFollowUser(user: UserInfo, callback: () => void): void;
183
188
 
184
189
  /**
185
190
  *
@@ -187,15 +192,15 @@ export class DaoPaaS {
187
192
  * @param {followUser} args
188
193
  *
189
194
  */
190
- followUser(user: any, callback: () => void): void;
195
+ followUser(user: UserInfo, callback: () => void): void;
191
196
 
192
197
  /**
193
198
  *
194
199
  * Replaying method for global calling.
195
- * @param {TReplay} args
200
+ * @param {ReplayType} args
196
201
  *
197
202
  */
198
- replay(args: { userId: UserInfo['userId']; timestamp: string }): void;
203
+ replay(param: ReplayType): void;
199
204
 
200
205
  /**
201
206
  *
@@ -203,7 +208,7 @@ export class DaoPaaS {
203
208
  * @param {boolean} arg
204
209
  *
205
210
  */
206
- record(arg: boolean): void;
211
+ record(arg?: boolean): void;
207
212
 
208
213
  /**
209
214
  *
@@ -298,295 +303,3 @@ export class DaoPaaS {
298
303
  */
299
304
  Console(args: ComponentArgs): void;
300
305
  }
301
-
302
- // /*!-----------------------------------------------------------
303
- // * Copyright (c) dao42. All rights reserved.
304
- // * Type definitions for @dao42/d42paas-front
305
- // * Released under the MIT license
306
- // *-----------------------------------------------------------*/
307
-
308
- // /*---------------------------------------------------------------------------------------------
309
- // * Copyright (c) Microsoft Corporation. All rights reserved.
310
- // * Licensed under the MIT License. See License.txt in the project root for license information.
311
- // *--------------------------------------------------------------------------------------------*/
312
- // type MessageType = {
313
- // dockerStatus?: any;
314
- // userList: any;
315
- // };
316
-
317
- // export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
318
-
319
- // export type PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
320
-
321
- // export type Replay = 'stop' | 'disabled' | 'pause';
322
-
323
- // export type DockerStatus = 'RUNNING' | 'STOP';
324
-
325
- // /**
326
- // * JS API
327
- // */
328
- // interface UserInfo {
329
- // playgroundId?: string;
330
- // operation?: any;
331
- // uuid?: string;
332
- // color?: string;
333
- // name?: string;
334
- // username?: string;
335
- // userId?: string;
336
- // role?: string;
337
- // avatar?: string;
338
- // onlineCount?: number;
339
- // }
340
-
341
- // /**
342
- // * Passing the values to init the playground.
343
- // */
344
- // interface Options {
345
- // debug?: boolean;
346
-
347
- // /**
348
- // *
349
- // * Error listener to the aplication.
350
- // * @param error
351
- // */
352
- // onError?: (error: MessageType) => void;
353
-
354
- // /**
355
- // *
356
- // * Message listener to the aplication.
357
- // * @param error
358
- // */
359
- // onMessage?: (message: any) => void;
360
-
361
- // serviceWorkerOrigin?: string;
362
-
363
- // /**
364
- // *
365
- // * init the playground with the mode.
366
- // *
367
- // */
368
- // readonly mode?: Mode;
369
-
370
- // /**
371
- // *
372
- // * init the playground with the paasDomain.
373
- // *
374
- // */
375
- // readonly paasDomain: string;
376
-
377
- // /**
378
- // *
379
- // * init the playground ticket needed.
380
- // *
381
- // */
382
- // readonly ticket: string;
383
-
384
- // /**
385
- // *
386
- // * to init the playground with this id.
387
- // *
388
- // */
389
- // readonly playgroundId: string;
390
-
391
- // /**
392
- // *
393
- // * userId for the playground.
394
- // *
395
- // */
396
- // readonly userId: string;
397
-
398
- // /**
399
- // *
400
- // * tenantId for the playground.
401
- // *
402
- // */
403
- // readonly tenantId: string;
404
-
405
- // /**
406
- // *
407
- // * username for the playground.
408
- // *
409
- // */
410
- // readonly username?: string;
411
-
412
- // /**
413
- // *
414
- // * avatarUrl for the playground but not necessarily.
415
- // *
416
- // */
417
- // readonly avatarUrl?: string;
418
-
419
- // /**
420
- // *
421
- // * this argument is to ingnore replaying patterns.
422
- // *
423
- // */
424
- // readonly ignoreReplayers?: string[];
425
-
426
- // readonly components?: UserComponent[];
427
-
428
- // /**
429
- // * @deprecated to fix the issue of the playground.
430
- // *
431
- // * render?: () => TComponentArgs[]; keyof D42_FrontType['CRDT'][]
432
- // */
433
- // }
434
-
435
- // export interface UserComponent extends ComponentArgs {
436
- // item: string;
437
- // }
438
-
439
- // /**
440
- // *
441
- // * @interface ComponentArgs
442
- // * @desc
443
- // *
444
- // */
445
- // export interface ComponentArgs {
446
- // /**
447
- // *
448
- // * the DOM for the component.
449
- // * @type {(string | HTMLElement | Element)}
450
- // *
451
- // */
452
- // container: string | HTMLElement | Element;
453
-
454
- // props?: any;
455
- // }
456
-
457
- // export class DaoPaaS {
458
- // constructor(options: Options);
459
-
460
- // get playgroundStatus(): PlaygroundStatus;
461
-
462
- // get dockerStatus(): DockerStatus;
463
-
464
- // get userList(): UserInfo[];
465
-
466
- // /**
467
- // *
468
- // * Replaying method for global calling.
469
- // * @param {unFollowUser} args
470
- // *
471
- // */
472
-
473
- // unFollowUser(user: any, callback: () => void): void;
474
-
475
- // /**
476
- // *
477
- // * Replaying method for global calling.
478
- // * @param {followUser} args
479
- // *
480
- // */
481
-
482
- // followUser(user: any, callback: () => void): void;
483
-
484
- // /**
485
- // *
486
- // * Replaying method for global calling.
487
- // * @param {TReplay} args
488
- // *
489
- // */
490
- // replay(args: { userId: UserInfo['userId']; timestamp: string }): void;
491
-
492
- // /**
493
- // *
494
- // * Recording method for global calling.
495
- // * @param {boolean} arg
496
- // *
497
- // */
498
- // record(arg: boolean): void;
499
-
500
- // /**
501
- // *
502
- // * async method to set Replayers.
503
- // * @param {keyof D42_FrontType['CRDT'][]} arg
504
- // *
505
- // */
506
- // setReplayers(arg: string[]): void;
507
-
508
- // /**
509
- // *
510
- // * Here you can switch language services by calling this method.
511
- // * @param {boolean} arg
512
- // *
513
- // */
514
- // switchLspServer(arg: boolean): void;
515
-
516
- // /**
517
- // *
518
- // * Active the playground handler.
519
- // *
520
- // */
521
- // activePlayground(): void;
522
-
523
- // /**
524
- // *
525
- // * Run the playground handler.
526
- // *
527
- // */
528
- // runPlayground(): void;
529
-
530
- // /**
531
- // *
532
- // * Stop the playground.
533
- // *
534
- // */
535
- // stopPlayground(): void;
536
-
537
- // /**
538
- // *
539
- // * Editor component.
540
- // * @param ComponentArgs
541
- // * CSS.Properties<string | number>
542
- // */
543
- // Editor(
544
- // args:
545
- // | ComponentArgs
546
- // | {
547
- // containerStyle: any;
548
- // editorStyle: any;
549
- // menuStyle: any;
550
- // },
551
- // ): void;
552
-
553
- // /**
554
- // *
555
- // * Page component.
556
- // * @param ComponentArgs
557
- // *
558
- // */
559
- // Page(args: ComponentArgs): void;
560
-
561
- // /**
562
- // *
563
- // * Tree component.
564
- // * @param ComponentArgs
565
- // *
566
- // */
567
- // Tree(args: ComponentArgs): void;
568
-
569
- // /**
570
- // *
571
- // * Shell component.
572
- // * @param ComponentArgs
573
- // *
574
- // */
575
- // Shell(args: ComponentArgs): void;
576
-
577
- // /**
578
- // *
579
- // * Browser component.
580
- // * @param ComponentArgs
581
- // *
582
- // */
583
- // Browser(args: ComponentArgs): void;
584
-
585
- // /**
586
- // *
587
- // * Console component.
588
- // * @param ComponentArgs
589
- // *
590
- // */
591
- // Console(args: ComponentArgs): void;
592
- // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dao42/d42paas-front",
3
- "version": "0.7.29",
3
+ "version": "0.7.32",
4
4
  "description": "> TODO: description",
5
5
  "author": "eric183 <kk297466058@gmail.com>",
6
6
  "homepage": "https://github.com/dao42/d42paas_frontend#readme",
@@ -37,8 +37,9 @@
37
37
  "typedoc": "npx typedoc --tsconfig ./doc.tsconfig.json",
38
38
  "fix": "eslint --fix --ext .jsx src/**",
39
39
  "copyTS": "shx cp ./src/types/editor.d.ts ./dist",
40
+ "copyMD": "shx cp ../../README.md ./dist",
40
41
  "np": "npm publish --access-public",
41
- "patch": "yarn vite && npm version patch && yarn clean",
42
+ "patch": "yarn vite && npm version patch && yarn clean && yarn copyMD",
42
43
  "test": "jest --verbose",
43
44
  "clean": "node config/patchClean.js",
44
45
  "workNameSpaceToFix": "node ./config/workNameSpaceToFix.js"