@malloy-publisher/sdk 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Dashboard-FD3-Af-_.cjs.js → Dashboard-ChyylkTD.cjs.js} +2 -2
- package/dist/{Dashboard-DnqWRijB.es.js → Dashboard-H1kJlDFo.es.js} +2 -2
- package/dist/{RenderedResult-CetSzFgW.cjs.js → RenderedResult-AJPMUkAD.cjs.js} +1 -1
- package/dist/{RenderedResult-6UKAHaAj.es.js → RenderedResult-BRgIgxWh.es.js} +2 -2
- package/dist/{ServerProvider-DgRFJ43L.es.js → ServerProvider-Boxrv6Ym.es.js} +1093 -1151
- package/dist/ServerProvider-CXrOKD6g.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +79 -1796
- package/dist/client/base.d.ts +0 -24
- package/dist/client/common.d.ts +4 -35
- package/dist/client/configuration.d.ts +24 -17
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/hooks/useQueryResult.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/openapitools.json +1 -1
- package/package.json +3 -3
- package/src/components/Notebook/Notebook.served.spec.tsx +5 -1
- package/dist/ServerProvider-BsjJvkML.cjs.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const B=require("react/jsx-runtime"),_=require("@tanstack/react-query"),u=require("axios"),C=require("react"),x=require("@mui/material"),g="http://localhost/api/v0".replace(/\/+$/,"");class I{constructor(t,e=g,r=u){this.basePath=e,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??e)}configuration}class Ue extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}const P={},b="https://example.com",m=function(l,t,e){if(e==null)throw new Ue(t,`Required parameter ${t} was null or undefined when calling ${l}.`)};function z(l,t,e=""){t!=null&&(typeof t=="object"?Array.isArray(t)||t instanceof Set?t.forEach(r=>z(l,r,e)):Object.keys(t).forEach(r=>z(l,t[r],`${e}${e!==""?".":""}${r}`)):l.has(e)?l.append(e,t):l.set(e,t))}const v=function(l,...t){const e=new URLSearchParams(l.search);z(e,t),l.search=e.toString()},Me=function(l,t){return t instanceof Set?Array.from(t):t},y=function(l,t,e){const r=typeof l!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(l!==void 0?l:{},Me):l||""},V=function(l){return l.pathname+l.search+l.hash},S=function(l,t,e,r){return(a=t,n=e)=>{const o={...l.options,url:(a.defaults.baseURL?"":r?.basePath??n)+l.url};return a.request(o)}},we={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},fe={ServicePrincipal:"service_principal",SasToken:"sas_token"},Fe={Error:"error",Warn:"warn",Debug:"debug"},je={Append:"append",File:"file",Package:"package"},Be={Success:"success",Error:"error"},De={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},Qe={Ssh:"ssh"},qe={Ok:"ok",Failed:"failed"},ze={Viewport:"viewport"},Le={Embedded:"embedded",Materialized:"materialized"},He={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},_e={Live:"live",StaleOk:"stale_ok",Fail:"fail"},We={Select:"select",Multiselect:"multiselect"},Ge={Merge:"merge",RangeReplace:"range_replace"},Ye={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Ke={Persist:"persist",Preaggregate:"preaggregate"},$e={Live:"live",StaleOk:"stale_ok",Fail:"fail"},Je={Delta:"delta",Full:"full",None:"none"},Xe={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Ze={Markdown:"markdown",Code:"code"},ea={Markdown:"markdown",Query:"query",Definition:"definition"},aa={Markdown:"markdown",Code:"code"},ta={Markdown:"markdown",Query:"query",Definition:"definition"},na={Version:"version",Package:"package"},ra={Declared:"declared",All:"all"},oa={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},sa={Indexing:"indexing",Ready:"ready",Cooldown:"cooldown",TooManyEntities:"too-many-entities"},ca={Persist:"persist",Preaggregate:"preaggregate"},la={Error:"error",Warn:"warn"},ia={Persist:"persist",Preaggregate:"preaggregate"},pa={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},da={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},ma={Query:"query",ServerDefault:"server_default"},ha={Storage:"storage",LiveFallback:"live_fallback"},ua={Malloynb:"malloynb",Malloy:"malloy"},ga={Snapshot:"SNAPSHOT",Copy:"COPY"},Pa={Storage:"storage",Colocated:"colocated",Preaggregate:"preaggregate"},ba={FreeParameter:"free_parameter",Given:"given",GivenInPersistedQuery:"given_in_persisted_query",DynamicProjection:"dynamic_projection",DynamicJoin:"dynamic_join",DynamicJoinedWhere:"dynamic_joined_where",PartitionWithoutStorage:"partition_without_storage",PartitionColumnUnknown:"partition_column_unknown",PartitionColumnNotPublic:"partition_column_not_public",MergeKeyScopeUnresolved:"merge_key_scope_unresolved",PreaggregateOverDynamicSource:"preaggregate_over_dynamic_source",Authorize:"authorize",NotDuckdbPortable:"not_duckdb_portable",PublicSurfaceUnknown:"public_surface_unknown"},va={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},Va={Config:"config",CredentialChain:"credential_chain"},Sa={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},Oa={Light:"light",Dark:"dark",Auto:"auto"},X=function(l){return{createConnection:async(t,e,r,a={})=>{m("createConnection","environmentName",t),m("createConnection","connectionName",e),m("createConnection","connection",r);const n="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}},deleteConnection:async(t,e,r={})=>{m("deleteConnection","environmentName",t),m("deleteConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={},i={};c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}},getConnection:async(t,e,r={})=>{m("getConnection","environmentName",t),m("getConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}},getTable:async(t,e,r,a,n={})=>{m("getTable","environmentName",t),m("getTable","connectionName",e),m("getTable","schemaName",r),m("getTable","tablePath",a);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(a))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},getTableInPackage:async(t,e,r,a,n,o={})=>{m("getTableInPackage","environmentName",t),m("getTableInPackage","packageName",e),m("getTableInPackage","connectionName",r),m("getTableInPackage","schemaName",a),m("getTableInPackage","tablePath",n);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))).replace("{tablePath}",encodeURIComponent(String(n))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},d={},h={};d.Accept="application/json",v(c,h);let O=i&&i.headers?i.headers:{};return p.headers={...d,...O,...o.headers},{url:V(c),options:p}},listConnections:async(t,e={})=>{m("listConnections","environmentName",t);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"GET",...n,...e},s={},c={};s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:V(a),options:o}},listSchemas:async(t,e,r={})=>{m("listSchemas","environmentName",t),m("listSchemas","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}},listSchemasInPackage:async(t,e,r,a={})=>{m("listSchemasInPackage","environmentName",t),m("listSchemasInPackage","packageName",e),m("listSchemasInPackage","connectionName",r);const n="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:V(o),options:c}},listTables:async(t,e,r,a,n={})=>{m("listTables","environmentName",t),m("listTables","connectionName",e),m("listTables","schemaName",r);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};a&&(d.tableNames=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},listTablesInPackage:async(t,e,r,a,n,o={})=>{m("listTablesInPackage","environmentName",t),m("listTablesInPackage","packageName",e),m("listTablesInPackage","connectionName",r),m("listTablesInPackage","schemaName",a);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},d={},h={};n&&(h.tableNames=n),d.Accept="application/json",v(c,h);let O=i&&i.headers?i.headers:{};return p.headers={...d,...O,...o.headers},{url:V(c),options:p}},postQuerydata:async(t,e,r,a={})=>{m("postQuerydata","environmentName",t),m("postQuerydata","connectionName",e),m("postQuerydata","postQuerydataRequest",r);const n="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}},postQuerydataInPackage:async(t,e,r,a,n={})=>{m("postQuerydataInPackage","environmentName",t),m("postQuerydataInPackage","packageName",e),m("postQuerydataInPackage","connectionName",r),m("postQuerydataInPackage","postQuerydataRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},i.data=y(a,i,l),{url:V(s),options:i}},postSqlsource:async(t,e,r,a={})=>{m("postSqlsource","environmentName",t),m("postSqlsource","connectionName",e),m("postSqlsource","postSqlsourceRequest",r);const n="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}},postSqlsourceInPackage:async(t,e,r,a,n={})=>{m("postSqlsourceInPackage","environmentName",t),m("postSqlsourceInPackage","packageName",e),m("postSqlsourceInPackage","connectionName",r),m("postSqlsourceInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},i.data=y(a,i,l),{url:V(s),options:i}},postTemporarytable:async(t,e,r,a={})=>{m("postTemporarytable","environmentName",t),m("postTemporarytable","connectionName",e),m("postTemporarytable","postSqlsourceRequest",r);const n="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}},postTemporarytableInPackage:async(t,e,r,a,n={})=>{m("postTemporarytableInPackage","environmentName",t),m("postTemporarytableInPackage","packageName",e),m("postTemporarytableInPackage","connectionName",r),m("postTemporarytableInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},i.data=y(a,i,l),{url:V(s),options:i}},updateConnection:async(t,e,r,a={})=>{m("updateConnection","environmentName",t),m("updateConnection","connectionName",e),m("updateConnection","updateConnectionRequest",r);const n="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}}}},A=function(l){const t=X(l);return{async createConnection(e,r,a,n){const o=await t.createConnection(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.createConnection"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async deleteConnection(e,r,a){const n=await t.deleteConnection(e,r,a),o=l?.serverIndex??0,s=P["ConnectionsApi.deleteConnection"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async getConnection(e,r,a){const n=await t.getConnection(e,r,a),o=l?.serverIndex??0,s=P["ConnectionsApi.getConnection"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async getTable(e,r,a,n,o){const s=await t.getTable(e,r,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.getTable"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async getTableInPackage(e,r,a,n,o,s){const c=await t.getTableInPackage(e,r,a,n,o,s),i=l?.serverIndex??0,p=P["ConnectionsApi.getTableInPackage"]?.[i]?.url;return(d,h)=>S(c,u,g,l)(d,p||h)},async listConnections(e,r){const a=await t.listConnections(e,r),n=l?.serverIndex??0,o=P["ConnectionsApi.listConnections"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)},async listSchemas(e,r,a){const n=await t.listSchemas(e,r,a),o=l?.serverIndex??0,s=P["ConnectionsApi.listSchemas"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async listSchemasInPackage(e,r,a,n){const o=await t.listSchemasInPackage(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async listTables(e,r,a,n,o){const s=await t.listTables(e,r,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.listTables"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async listTablesInPackage(e,r,a,n,o,s){const c=await t.listTablesInPackage(e,r,a,n,o,s),i=l?.serverIndex??0,p=P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;return(d,h)=>S(c,u,g,l)(d,p||h)},async postQuerydata(e,r,a,n){const o=await t.postQuerydata(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postQuerydata"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async postQuerydataInPackage(e,r,a,n,o){const s=await t.postQuerydataInPackage(e,r,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async postSqlsource(e,r,a,n){const o=await t.postSqlsource(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postSqlsource"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async postSqlsourceInPackage(e,r,a,n,o){const s=await t.postSqlsourceInPackage(e,r,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async postTemporarytable(e,r,a,n){const o=await t.postTemporarytable(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postTemporarytable"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async postTemporarytableInPackage(e,r,a,n,o){const s=await t.postTemporarytableInPackage(e,r,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async updateConnection(e,r,a,n){const o=await t.updateConnection(e,r,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.updateConnection"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)}}},Aa=function(l,t,e){const r=A(l);return{createConnection(a,n,o,s){return r.createConnection(a,n,o,s).then(c=>c(e,t))},deleteConnection(a,n,o){return r.deleteConnection(a,n,o).then(s=>s(e,t))},getConnection(a,n,o){return r.getConnection(a,n,o).then(s=>s(e,t))},getTable(a,n,o,s,c){return r.getTable(a,n,o,s,c).then(i=>i(e,t))},getTableInPackage(a,n,o,s,c,i){return r.getTableInPackage(a,n,o,s,c,i).then(p=>p(e,t))},listConnections(a,n){return r.listConnections(a,n).then(o=>o(e,t))},listSchemas(a,n,o){return r.listSchemas(a,n,o).then(s=>s(e,t))},listSchemasInPackage(a,n,o,s){return r.listSchemasInPackage(a,n,o,s).then(c=>c(e,t))},listTables(a,n,o,s,c){return r.listTables(a,n,o,s,c).then(i=>i(e,t))},listTablesInPackage(a,n,o,s,c,i){return r.listTablesInPackage(a,n,o,s,c,i).then(p=>p(e,t))},postQuerydata(a,n,o,s){return r.postQuerydata(a,n,o,s).then(c=>c(e,t))},postQuerydataInPackage(a,n,o,s,c){return r.postQuerydataInPackage(a,n,o,s,c).then(i=>i(e,t))},postSqlsource(a,n,o,s){return r.postSqlsource(a,n,o,s).then(c=>c(e,t))},postSqlsourceInPackage(a,n,o,s,c){return r.postSqlsourceInPackage(a,n,o,s,c).then(i=>i(e,t))},postTemporarytable(a,n,o,s){return r.postTemporarytable(a,n,o,s).then(c=>c(e,t))},postTemporarytableInPackage(a,n,o,s,c){return r.postTemporarytableInPackage(a,n,o,s,c).then(i=>i(e,t))},updateConnection(a,n,o,s){return r.updateConnection(a,n,o,s).then(c=>c(e,t))}}};class Z extends I{createConnection(t,e,r,a){return A(this.configuration).createConnection(t,e,r,a).then(n=>n(this.axios,this.basePath))}deleteConnection(t,e,r){return A(this.configuration).deleteConnection(t,e,r).then(a=>a(this.axios,this.basePath))}getConnection(t,e,r){return A(this.configuration).getConnection(t,e,r).then(a=>a(this.axios,this.basePath))}getTable(t,e,r,a,n){return A(this.configuration).getTable(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}getTableInPackage(t,e,r,a,n,o){return A(this.configuration).getTableInPackage(t,e,r,a,n,o).then(s=>s(this.axios,this.basePath))}listConnections(t,e){return A(this.configuration).listConnections(t,e).then(r=>r(this.axios,this.basePath))}listSchemas(t,e,r){return A(this.configuration).listSchemas(t,e,r).then(a=>a(this.axios,this.basePath))}listSchemasInPackage(t,e,r,a){return A(this.configuration).listSchemasInPackage(t,e,r,a).then(n=>n(this.axios,this.basePath))}listTables(t,e,r,a,n){return A(this.configuration).listTables(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}listTablesInPackage(t,e,r,a,n,o){return A(this.configuration).listTablesInPackage(t,e,r,a,n,o).then(s=>s(this.axios,this.basePath))}postQuerydata(t,e,r,a){return A(this.configuration).postQuerydata(t,e,r,a).then(n=>n(this.axios,this.basePath))}postQuerydataInPackage(t,e,r,a,n){return A(this.configuration).postQuerydataInPackage(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}postSqlsource(t,e,r,a){return A(this.configuration).postSqlsource(t,e,r,a).then(n=>n(this.axios,this.basePath))}postSqlsourceInPackage(t,e,r,a,n){return A(this.configuration).postSqlsourceInPackage(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}postTemporarytable(t,e,r,a){return A(this.configuration).postTemporarytable(t,e,r,a).then(n=>n(this.axios,this.basePath))}postTemporarytableInPackage(t,e,r,a,n){return A(this.configuration).postTemporarytableInPackage(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}updateConnection(t,e,r,a){return A(this.configuration).updateConnection(t,e,r,a).then(n=>n(this.axios,this.basePath))}}const ee=function(l){return{testConnectionConfiguration:async(t,e={})=>{m("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(t,o,l),{url:V(a),options:o}}}},W=function(l){const t=ee(l);return{async testConnectionConfiguration(e,r){const a=await t.testConnectionConfiguration(e,r),n=l?.serverIndex??0,o=P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)}}},ya=function(l,t,e){const r=W(l);return{testConnectionConfiguration(a,n){return r.testConnectionConfiguration(a,n).then(o=>o(e,t))}}};class ka extends I{testConnectionConfiguration(t,e){return W(this.configuration).testConnectionConfiguration(t,e).then(r=>r(this.axios,this.basePath))}}const ae=function(l){return{getDashboard:async(t,e,r,a,n={})=>{m("getDashboard","environmentName",t),m("getDashboard","packageName",e),m("getDashboard","dashboardName",r);const o="/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{dashboardName}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};a!==void 0&&(d.versionId=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},listDashboards:async(t,e,r,a={})=>{m("listDashboards","environmentName",t),m("listDashboards","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:V(o),options:c}}}},D=function(l){const t=ae(l);return{async getDashboard(e,r,a,n,o){const s=await t.getDashboard(e,r,a,n,o),c=l?.serverIndex??0,i=P["DashboardsApi.getDashboard"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async listDashboards(e,r,a,n){const o=await t.listDashboards(e,r,a,n),s=l?.serverIndex??0,c=P["DashboardsApi.listDashboards"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)}}},Ca=function(l,t,e){const r=D(l);return{getDashboard(a,n,o,s,c){return r.getDashboard(a,n,o,s,c).then(i=>i(e,t))},listDashboards(a,n,o,s){return r.listDashboards(a,n,o,s).then(c=>c(e,t))}}};class te extends I{getDashboard(t,e,r,a,n){return D(this.configuration).getDashboard(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}listDashboards(t,e,r,a){return D(this.configuration).listDashboards(t,e,r,a).then(n=>n(this.axios,this.basePath))}}const ne=function(l){return{listDataApps:async(t,e,r={})=>{m("listDataApps","environmentName",t),m("listDataApps","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}}}},G=function(l){const t=ne(l);return{async listDataApps(e,r,a){const n=await t.listDataApps(e,r,a),o=l?.serverIndex??0,s=P["DataAppsApi.listDataApps"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)}}},Ia=function(l,t,e){const r=G(l);return{listDataApps(a,n,o){return r.listDataApps(a,n,o).then(s=>s(e,t))}}};class re extends I{listDataApps(t,e,r){return G(this.configuration).listDataApps(t,e,r).then(a=>a(this.axios,this.basePath))}}const oe=function(l){return{listDatabases:async(t,e,r,a={})=>{m("listDatabases","environmentName",t),m("listDatabases","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:V(o),options:c}}}},Y=function(l){const t=oe(l);return{async listDatabases(e,r,a,n){const o=await t.listDatabases(e,r,a,n),s=l?.serverIndex??0,c=P["DatabasesApi.listDatabases"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)}}},xa=function(l,t,e){const r=Y(l);return{listDatabases(a,n,o,s){return r.listDatabases(a,n,o,s).then(c=>c(e,t))}}};class se extends I{listDatabases(t,e,r,a){return Y(this.configuration).listDatabases(t,e,r,a).then(n=>n(this.axios,this.basePath))}}const ce=function(l){return{createEnvironment:async(t,e={})=>{m("createEnvironment","environment",t);const r="/environments",a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(t,o,l),{url:V(a),options:o}},deleteEnvironment:async(t,e={})=>{m("deleteEnvironment","environmentName",t);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"DELETE",...n,...e},s={},c={};s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:V(a),options:o}},getEnvironment:async(t,e,r={})=>{m("getEnvironment","environmentName",t);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};e!==void 0&&(i.reload=e),c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}},listEnvironments:async(t={})=>{const e="/environments",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},updateEnvironment:async(t,e,r={})=>{m("updateEnvironment","environmentName",t),m("updateEnvironment","environment",e);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"PATCH",...o,...r},c={},i={};c["Content-Type"]="application/json",c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},s.data=y(e,s,l),{url:V(n),options:s}}}},E=function(l){const t=ce(l);return{async createEnvironment(e,r){const a=await t.createEnvironment(e,r),n=l?.serverIndex??0,o=P["EnvironmentsApi.createEnvironment"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)},async deleteEnvironment(e,r){const a=await t.deleteEnvironment(e,r),n=l?.serverIndex??0,o=P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)},async getEnvironment(e,r,a){const n=await t.getEnvironment(e,r,a),o=l?.serverIndex??0,s=P["EnvironmentsApi.getEnvironment"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async listEnvironments(e){const r=await t.listEnvironments(e),a=l?.serverIndex??0,n=P["EnvironmentsApi.listEnvironments"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async updateEnvironment(e,r,a){const n=await t.updateEnvironment(e,r,a),o=l?.serverIndex??0,s=P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)}}},Ra=function(l,t,e){const r=E(l);return{createEnvironment(a,n){return r.createEnvironment(a,n).then(o=>o(e,t))},deleteEnvironment(a,n){return r.deleteEnvironment(a,n).then(o=>o(e,t))},getEnvironment(a,n,o){return r.getEnvironment(a,n,o).then(s=>s(e,t))},listEnvironments(a){return r.listEnvironments(a).then(n=>n(e,t))},updateEnvironment(a,n,o){return r.updateEnvironment(a,n,o).then(s=>s(e,t))}}};class le extends I{createEnvironment(t,e){return E(this.configuration).createEnvironment(t,e).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,e){return E(this.configuration).deleteEnvironment(t,e).then(r=>r(this.axios,this.basePath))}getEnvironment(t,e,r){return E(this.configuration).getEnvironment(t,e,r).then(a=>a(this.axios,this.basePath))}listEnvironments(t){return E(this.configuration).listEnvironments(t).then(e=>e(this.axios,this.basePath))}updateEnvironment(t,e,r){return E(this.configuration).updateEnvironment(t,e,r).then(a=>a(this.axios,this.basePath))}}const ie=function(l){return{createMaterialization:async(t,e,r,a={})=>{m("createMaterialization","environmentName",t),m("createMaterialization","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}},deleteMaterialization:async(t,e,r,a,n={})=>{m("deleteMaterialization","environmentName",t),m("deleteMaterialization","packageName",e),m("deleteMaterialization","materializationId",r);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"DELETE",...c,...n},p={},d={};a!==void 0&&(d.dropTables=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},getMaterialization:async(t,e,r,a={})=>{m("getMaterialization","environmentName",t),m("getMaterialization","packageName",e),m("getMaterialization","materializationId",r);const n="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:V(o),options:c}},listMaterializations:async(t,e,r,a,n={})=>{m("listMaterializations","environmentName",t),m("listMaterializations","packageName",e);const o="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};r!==void 0&&(d.limit=r),a!==void 0&&(d.offset=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},materializationAction:async(t,e,r,a,n={})=>{m("materializationAction","environmentName",t),m("materializationAction","packageName",e),m("materializationAction","materializationId",r),m("materializationAction","action",a);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},d={};a!==void 0&&(d.action=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}}}},N=function(l){const t=ie(l);return{async createMaterialization(e,r,a,n){const o=await t.createMaterialization(e,r,a,n),s=l?.serverIndex??0,c=P["MaterializationsApi.createMaterialization"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async deleteMaterialization(e,r,a,n,o){const s=await t.deleteMaterialization(e,r,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async getMaterialization(e,r,a,n){const o=await t.getMaterialization(e,r,a,n),s=l?.serverIndex??0,c=P["MaterializationsApi.getMaterialization"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)},async listMaterializations(e,r,a,n,o){const s=await t.listMaterializations(e,r,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.listMaterializations"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async materializationAction(e,r,a,n,o){const s=await t.materializationAction(e,r,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.materializationAction"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)}}},Ea=function(l,t,e){const r=N(l);return{createMaterialization(a,n,o,s){return r.createMaterialization(a,n,o,s).then(c=>c(e,t))},deleteMaterialization(a,n,o,s,c){return r.deleteMaterialization(a,n,o,s,c).then(i=>i(e,t))},getMaterialization(a,n,o,s){return r.getMaterialization(a,n,o,s).then(c=>c(e,t))},listMaterializations(a,n,o,s,c){return r.listMaterializations(a,n,o,s,c).then(i=>i(e,t))},materializationAction(a,n,o,s,c){return r.materializationAction(a,n,o,s,c).then(i=>i(e,t))}}};class pe extends I{createMaterialization(t,e,r,a){return N(this.configuration).createMaterialization(t,e,r,a).then(n=>n(this.axios,this.basePath))}deleteMaterialization(t,e,r,a,n){return N(this.configuration).deleteMaterialization(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}getMaterialization(t,e,r,a){return N(this.configuration).getMaterialization(t,e,r,a).then(n=>n(this.axios,this.basePath))}listMaterializations(t,e,r,a,n){return N(this.configuration).listMaterializations(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}materializationAction(t,e,r,a,n){return N(this.configuration).materializationAction(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}}const Na={Stop:"stop"},de=function(l){return{compileModelSource:async(t,e,r,a,n={})=>{m("compileModelSource","environmentName",t),m("compileModelSource","packageName",e),m("compileModelSource","path",r),m("compileModelSource","compileRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},i.data=y(a,i,l),{url:V(s),options:i}},executeQueryModel:async(t,e,r,a,n,o={})=>{m("executeQueryModel","environmentName",t),m("executeQueryModel","packageName",e),m("executeQueryModel","path",r),m("executeQueryModel","queryRequest",a);const s="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const p={method:"POST",...i,...o},d={},h={};n!==void 0&&(h.includeHiddenFilesAndSources=n),d["Content-Type"]="application/json",d.Accept="application/json",v(c,h);let O=i&&i.headers?i.headers:{};return p.headers={...d,...O,...o.headers},p.data=y(a,p,l),{url:V(c),options:p}},getModel:async(t,e,r,a,n,o={})=>{m("getModel","environmentName",t),m("getModel","packageName",e),m("getModel","path",r);const s="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},d={},h={};a!==void 0&&(h.versionId=a),n!==void 0&&(h.includeHiddenFilesAndSources=n),d.Accept="application/json",v(c,h);let O=i&&i.headers?i.headers:{};return p.headers={...d,...O,...o.headers},{url:V(c),options:p}},listModels:async(t,e,r,a,n={})=>{m("listModels","environmentName",t),m("listModels","packageName",e);const o="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};r!==void 0&&(d.versionId=r),a!==void 0&&(d.includeHiddenFilesAndSources=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},updateModelSource:async(t,e,r,a,n,o={})=>{m("updateModelSource","environmentName",t),m("updateModelSource","packageName",e),m("updateModelSource","path",r),m("updateModelSource","modelSourceWriteRequest",a);const s="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const p={method:"PUT",...i,...o},d={},h={};n!==void 0&&(h.versionId=n),d["Content-Type"]="application/json",d.Accept="application/json",v(c,h);let O=i&&i.headers?i.headers:{};return p.headers={...d,...O,...o.headers},p.data=y(a,p,l),{url:V(c),options:p}}}},T=function(l){const t=de(l);return{async compileModelSource(e,r,a,n,o){const s=await t.compileModelSource(e,r,a,n,o),c=l?.serverIndex??0,i=P["ModelsApi.compileModelSource"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async executeQueryModel(e,r,a,n,o,s){const c=await t.executeQueryModel(e,r,a,n,o,s),i=l?.serverIndex??0,p=P["ModelsApi.executeQueryModel"]?.[i]?.url;return(d,h)=>S(c,u,g,l)(d,p||h)},async getModel(e,r,a,n,o,s){const c=await t.getModel(e,r,a,n,o,s),i=l?.serverIndex??0,p=P["ModelsApi.getModel"]?.[i]?.url;return(d,h)=>S(c,u,g,l)(d,p||h)},async listModels(e,r,a,n,o){const s=await t.listModels(e,r,a,n,o),c=l?.serverIndex??0,i=P["ModelsApi.listModels"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async updateModelSource(e,r,a,n,o,s){const c=await t.updateModelSource(e,r,a,n,o,s),i=l?.serverIndex??0,p=P["ModelsApi.updateModelSource"]?.[i]?.url;return(d,h)=>S(c,u,g,l)(d,p||h)}}},Ta=function(l,t,e){const r=T(l);return{compileModelSource(a,n,o,s,c){return r.compileModelSource(a,n,o,s,c).then(i=>i(e,t))},executeQueryModel(a,n,o,s,c,i){return r.executeQueryModel(a,n,o,s,c,i).then(p=>p(e,t))},getModel(a,n,o,s,c,i){return r.getModel(a,n,o,s,c,i).then(p=>p(e,t))},listModels(a,n,o,s,c){return r.listModels(a,n,o,s,c).then(i=>i(e,t))},updateModelSource(a,n,o,s,c,i){return r.updateModelSource(a,n,o,s,c,i).then(p=>p(e,t))}}};class me extends I{compileModelSource(t,e,r,a,n){return T(this.configuration).compileModelSource(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}executeQueryModel(t,e,r,a,n,o){return T(this.configuration).executeQueryModel(t,e,r,a,n,o).then(s=>s(this.axios,this.basePath))}getModel(t,e,r,a,n,o){return T(this.configuration).getModel(t,e,r,a,n,o).then(s=>s(this.axios,this.basePath))}listModels(t,e,r,a,n){return T(this.configuration).listModels(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}updateModelSource(t,e,r,a,n,o){return T(this.configuration).updateModelSource(t,e,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const he=function(l){return{executeNotebookCell:async(t,e,r,a,n,o,s,c,i={})=>{m("executeNotebookCell","environmentName",t),m("executeNotebookCell","packageName",e),m("executeNotebookCell","path",r),m("executeNotebookCell","cellIndex",a);const p="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(a))),d=new URL(p,b);let h;l&&(h=l.baseOptions);const O={method:"GET",...h,...i},M={},R={};n!==void 0&&(R.versionId=n),o!==void 0&&(R.filter_params=o),s!==void 0&&(R.bypass_filters=s),c!==void 0&&(R.givens=c),M.Accept="application/json",v(d,R);let Q=h&&h.headers?h.headers:{};return O.headers={...M,...Q,...i.headers},{url:V(d),options:O}},getNotebook:async(t,e,r,a,n={})=>{m("getNotebook","environmentName",t),m("getNotebook","packageName",e),m("getNotebook","path",r);const o="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};a!==void 0&&(d.versionId=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},listNotebooks:async(t,e,r,a={})=>{m("listNotebooks","environmentName",t),m("listNotebooks","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:V(o),options:c}}}},j=function(l){const t=he(l);return{async executeNotebookCell(e,r,a,n,o,s,c,i,p){const d=await t.executeNotebookCell(e,r,a,n,o,s,c,i,p),h=l?.serverIndex??0,O=P["NotebooksApi.executeNotebookCell"]?.[h]?.url;return(M,R)=>S(d,u,g,l)(M,O||R)},async getNotebook(e,r,a,n,o){const s=await t.getNotebook(e,r,a,n,o),c=l?.serverIndex??0,i=P["NotebooksApi.getNotebook"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async listNotebooks(e,r,a,n){const o=await t.listNotebooks(e,r,a,n),s=l?.serverIndex??0,c=P["NotebooksApi.listNotebooks"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)}}},Ua=function(l,t,e){const r=j(l);return{executeNotebookCell(a,n,o,s,c,i,p,d,h){return r.executeNotebookCell(a,n,o,s,c,i,p,d,h).then(O=>O(e,t))},getNotebook(a,n,o,s,c){return r.getNotebook(a,n,o,s,c).then(i=>i(e,t))},listNotebooks(a,n,o,s){return r.listNotebooks(a,n,o,s).then(c=>c(e,t))}}};class ue extends I{executeNotebookCell(t,e,r,a,n,o,s,c,i){return j(this.configuration).executeNotebookCell(t,e,r,a,n,o,s,c,i).then(p=>p(this.axios,this.basePath))}getNotebook(t,e,r,a,n){return j(this.configuration).getNotebook(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}listNotebooks(t,e,r,a){return j(this.configuration).listNotebooks(t,e,r,a).then(n=>n(this.axios,this.basePath))}}const Ma={True:"true",False:"false"},ge=function(l){return{createPackage:async(t,e,r={})=>{m("createPackage","environmentName",t),m("createPackage","_package",e);const a="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"POST",...o,...r},c={},i={};c["Content-Type"]="application/json",c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},s.data=y(e,s,l),{url:V(n),options:s}},deletePackage:async(t,e,r={})=>{m("deletePackage","environmentName",t),m("deletePackage","packageName",e);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={},i={};c.Accept="application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}},getPackage:async(t,e,r,a,n={})=>{m("getPackage","environmentName",t),m("getPackage","packageName",e);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},d={};r!==void 0&&(d.versionId=r),a!==void 0&&(d.reload=a),p.Accept="application/json",v(s,d);let h=c&&c.headers?c.headers:{};return i.headers={...p,...h,...n.headers},{url:V(s),options:i}},listPackages:async(t,e={})=>{m("listPackages","environmentName",t);const r="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"GET",...n,...e},s={},c={};s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:V(a),options:o}},updatePackage:async(t,e,r,a={})=>{m("updatePackage","environmentName",t),m("updatePackage","packageName",e),m("updatePackage","_package",r);const n="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,b);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",i.Accept="application/json",v(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=y(r,c,l),{url:V(o),options:c}}}},U=function(l){const t=ge(l);return{async createPackage(e,r,a){const n=await t.createPackage(e,r,a),o=l?.serverIndex??0,s=P["PackagesApi.createPackage"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async deletePackage(e,r,a){const n=await t.deletePackage(e,r,a),o=l?.serverIndex??0,s=P["PackagesApi.deletePackage"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)},async getPackage(e,r,a,n,o){const s=await t.getPackage(e,r,a,n,o),c=l?.serverIndex??0,i=P["PackagesApi.getPackage"]?.[c]?.url;return(p,d)=>S(s,u,g,l)(p,i||d)},async listPackages(e,r){const a=await t.listPackages(e,r),n=l?.serverIndex??0,o=P["PackagesApi.listPackages"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)},async updatePackage(e,r,a,n){const o=await t.updatePackage(e,r,a,n),s=l?.serverIndex??0,c=P["PackagesApi.updatePackage"]?.[s]?.url;return(i,p)=>S(o,u,g,l)(i,c||p)}}},wa=function(l,t,e){const r=U(l);return{createPackage(a,n,o){return r.createPackage(a,n,o).then(s=>s(e,t))},deletePackage(a,n,o){return r.deletePackage(a,n,o).then(s=>s(e,t))},getPackage(a,n,o,s,c){return r.getPackage(a,n,o,s,c).then(i=>i(e,t))},listPackages(a,n){return r.listPackages(a,n).then(o=>o(e,t))},updatePackage(a,n,o,s){return r.updatePackage(a,n,o,s).then(c=>c(e,t))}}};class Pe extends I{createPackage(t,e,r){return U(this.configuration).createPackage(t,e,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,e,r){return U(this.configuration).deletePackage(t,e,r).then(a=>a(this.axios,this.basePath))}getPackage(t,e,r,a,n){return U(this.configuration).getPackage(t,e,r,a,n).then(o=>o(this.axios,this.basePath))}listPackages(t,e){return U(this.configuration).listPackages(t,e).then(r=>r(this.axios,this.basePath))}updatePackage(t,e,r,a){return U(this.configuration).updatePackage(t,e,r,a).then(n=>n(this.axios,this.basePath))}}const be=function(l){return{deleteTheme:async(t={})=>{const e="/theme",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"DELETE",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},getStatus:async(t={})=>{const e="/status",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},getTheme:async(t={})=>{const e="/theme",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},updateTheme:async(t,e={})=>{m("updateTheme","theme",t);const r="/theme",a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"PUT",...n,...e},s={},c={};s["Content-Type"]="application/json",s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(t,o,l),{url:V(a),options:o}}}},f=function(l){const t=be(l);return{async deleteTheme(e){const r=await t.deleteTheme(e),a=l?.serverIndex??0,n=P["PublisherApi.deleteTheme"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async getStatus(e){const r=await t.getStatus(e),a=l?.serverIndex??0,n=P["PublisherApi.getStatus"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async getTheme(e){const r=await t.getTheme(e),a=l?.serverIndex??0,n=P["PublisherApi.getTheme"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async updateTheme(e,r){const a=await t.updateTheme(e,r),n=l?.serverIndex??0,o=P["PublisherApi.updateTheme"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)}}},fa=function(l,t,e){const r=f(l);return{deleteTheme(a){return r.deleteTheme(a).then(n=>n(e,t))},getStatus(a){return r.getStatus(a).then(n=>n(e,t))},getTheme(a){return r.getTheme(a).then(n=>n(e,t))},updateTheme(a,n){return r.updateTheme(a,n).then(o=>o(e,t))}}};class ve extends I{deleteTheme(t){return f(this.configuration).deleteTheme(t).then(e=>e(this.axios,this.basePath))}getStatus(t){return f(this.configuration).getStatus(t).then(e=>e(this.axios,this.basePath))}getTheme(t){return f(this.configuration).getTheme(t).then(e=>e(this.axios,this.basePath))}updateTheme(t,e){return f(this.configuration).updateTheme(t,e).then(r=>r(this.axios,this.basePath))}}const Ve=function(l){return{getWatchStatus:async(t={})=>{const e="/watch-mode/status",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},startWatching:async(t,e={})=>{m("startWatching","startWatchRequest",t);const r="/watch-mode/start",a=new URL(r,b);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",s.Accept="application/json",v(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(t,o,l),{url:V(a),options:o}},stopWatching:async(t={})=>{const e="/watch-mode/stop",r=new URL(e,b);let a;l&&(a=l.baseOptions);const n={method:"POST",...a,...t},o={},s={};o.Accept="application/json",v(r,s);let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...t.headers},{url:V(r),options:n}},streamPackageEvents:async(t,e,r={})=>{m("streamPackageEvents","environmentName",t),m("streamPackageEvents","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};c.Accept="text/event-stream,application/json",v(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:V(n),options:s}}}},F=function(l){const t=Ve(l);return{async getWatchStatus(e){const r=await t.getWatchStatus(e),a=l?.serverIndex??0,n=P["WatchModeApi.getWatchStatus"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async startWatching(e,r){const a=await t.startWatching(e,r),n=l?.serverIndex??0,o=P["WatchModeApi.startWatching"]?.[n]?.url;return(s,c)=>S(a,u,g,l)(s,o||c)},async stopWatching(e){const r=await t.stopWatching(e),a=l?.serverIndex??0,n=P["WatchModeApi.stopWatching"]?.[a]?.url;return(o,s)=>S(r,u,g,l)(o,n||s)},async streamPackageEvents(e,r,a){const n=await t.streamPackageEvents(e,r,a),o=l?.serverIndex??0,s=P["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(c,i)=>S(n,u,g,l)(c,s||i)}}},Fa=function(l,t,e){const r=F(l);return{getWatchStatus(a){return r.getWatchStatus(a).then(n=>n(e,t))},startWatching(a,n){return r.startWatching(a,n).then(o=>o(e,t))},stopWatching(a){return r.stopWatching(a).then(n=>n(e,t))},streamPackageEvents(a,n,o){return r.streamPackageEvents(a,n,o).then(s=>s(e,t))}}};class Se extends I{getWatchStatus(t){return F(this.configuration).getWatchStatus(t).then(e=>e(this.axios,this.basePath))}startWatching(t,e){return F(this.configuration).startWatching(t,e).then(r=>r(this.axios,this.basePath))}stopWatching(t){return F(this.configuration).stopWatching(t).then(e=>e(this.axios,this.basePath))}streamPackageEvents(t,e,r){return F(this.configuration).streamPackageEvents(t,e,r).then(a=>a(this.axios,this.basePath))}}class Oe{apiKey;username;password;accessToken;awsv4;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.awsv4=t.awsv4,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){return t!==null&&/^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t)}}const k={blue:"#2563eb",indigo:"#4f46e5",violet:"#7c3aed",pink:"#be185d",red:"#dc2626",orange:"#c2410c",amber:"#b45309",lime:"#4d7c0f",emerald:"#059669",teal:"#0f766e",cyan:"#0e7490",slate:"#475569"},ja={environment:k.emerald,package:k.teal,connection:k.orange},Ba='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Da=x.styled(x.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),Qa=x.styled(x.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),qa=x.styled(x.CardMedia)({padding:"0"}),za=x.styled("div")(({theme:l})=>({backgroundColor:l.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"})),La=x.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ha=x.styled("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),_a=x.styled("div")({height:"100%"}),Wa=x.styled("div")({height:"75vh",width:"100%",overflowY:"auto"}),Ga=[k.blue,k.orange,k.emerald,k.pink,k.violet,k.amber,k.cyan,k.lime],Ya="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Ga,background:{light:"#ffffff",dark:"#0f172a"},tableHeader:{light:"#475569",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f8fafc",dark:"#1e293b"},tableBody:{light:"#475569",dark:"#e2e8f0"},tile:{light:"#ffffff",dark:"#0f172a"},tileTitle:{light:"#475569",dark:"#94a3b8"},mapColor:{light:k.blue,dark:k.blue}},font:{family:Ya,size:12}},Ae=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function K(l,t){const e=L.palette??{},r=L.font??{family:"sans-serif",size:12};let a=[...e.series??[]],n=r.family??"sans-serif",o=r.size??12;const s={background:{...e.background??{}},tableHeader:{...e.tableHeader??{}},tableHeaderBackground:{...e.tableHeaderBackground??{}},tableBody:{...e.tableBody??{}},tile:{...e.tile??{}},tileTitle:{...e.tileTitle??{}},mapColor:{...e.mapColor??{}}};for(const d of l)if(d){Array.isArray(d.palette?.series)&&(a=[...d.palette.series]);for(const h of Ae){const O=d.palette?.[h];O&&(s[h]={...s[h],...O})}typeof d.font?.family=="string"&&(n=d.font.family),typeof d.font?.size=="number"&&(o=d.font.size)}const c=t==="dark",i=d=>s[d][t]??e[d]?.[t],p=i("background");return{mode:t,series:a,font:{family:n,size:o},background:p,tableHeader:i("tableHeader"),tableHeaderBackground:i("tableHeaderBackground"),tableBody:i("tableBody"),tile:i("tile"),tileTitle:i("tileTitle"),mapColor:i("mapColor"),tableBackground:p,border:c?"1px solid #334155":"1px solid #e2e8f0",cardBorder:c?"1px solid #475569":"1px solid #cbd5e1",pinnedBorder:c?"1px solid #475569":"1px solid #cbd5e1",valueColor:c?"#f1f5f9":"#0f172a",foreground:c?"#e2e8f0":"#0f172a",axisFaint:c?"#475569":"#cbd5e1",dashboardRoot:c?"#0f172a":"#ffffff",drillLink:c?"#60a5fa":k.blue}}function ye(l,t,e){const r=t??l??"light";return r==="auto"?e?"dark":"light":r}const ke=C.createContext(void 0);function Ce({layers:l,mode:t,userChoice:e,setMode:r,allowUserToggle:a=!0,children:n}){const o=C.useMemo(()=>K(l,t),[l,t]),s=C.useMemo(()=>({theme:o,layers:l,mode:t,userChoice:e,setMode:r,allowUserToggle:a}),[o,l,t,e,r,a]);return B.jsx(ke.Provider,{value:s,children:n})}function Ka(){const l=C.useContext(ke);return l||{theme:K([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const Ie=new _.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),$a={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},H="publisher:themeMode";function Ja(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(H);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function Xa(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(H):window.localStorage.setItem(H,l)}catch{}}function Za(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}u.defaults.baseURL||(u.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const xe=C.createContext(void 0),et=(l,t)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,r=u.create({baseURL:l||e,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async n=>{const o=await t?.();return n.headers.Authorization=o||"",n});const a=new Oe({basePath:e});return{models:new me(a,e,r),publisher:new ve(a,e,r),environments:new le(a,e,r),packages:new Pe(a,e,r),dashboards:new te(a,e,r),dataApps:new re(a,e,r),notebooks:new ue(a,e,r),connections:new Z(a,e,r),databases:new se(a,e,r),materializations:new pe(a,e,r),watchMode:new Se(a,e,r)}},at=l=>B.jsx(_.QueryClientProvider,{client:Ie,children:B.jsx(tt,{...l})}),tt=({children:l,getAccessToken:t,baseURL:e,mutable:r,theme:a})=>{const n=C.useMemo(()=>et(e,t),[e,t]),o=e||`${window.location.protocol}//${window.location.host}/api/v0`,s=_.useQuery({queryKey:["status"],queryFn:async()=>(await n.publisher.getStatus()).data});s.error&&console.error("Failed to fetch publisher status:",s.error);const c=s.data?.frozenConfig,i=s.data?.theme,p=s.isLoading;let d;s.isLoading||s.error?d=r:c?d=!1:d=r??!0;const h=C.useMemo(()=>[i,a],[i,a]),[O,M]=C.useState(Ja),[R,Q]=C.useState(Za);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const w=window.matchMedia("(prefers-color-scheme: dark)"),J=Te=>Q(Te.matches);return w.addEventListener("change",J),()=>w.removeEventListener("change",J)},[]);const Re=C.useCallback(w=>{M(w),Xa(w)},[]),$=i?.allowUserToggle??!0,q=$?O:void 0,Ee=C.useMemo(()=>ye(i?.defaultMode,q,R),[i?.defaultMode,q,R]),Ne={server:o,getAccessToken:t,apiClients:n,mutable:d,isLoadingStatus:p,instanceTheme:i};return B.jsx(xe.Provider,{value:Ne,children:B.jsx(Ce,{layers:h,mode:Ee,userChoice:q,setMode:Re,allowUserToggle:$,children:l})})},nt=()=>{const l=C.useContext(xe);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=we;exports.AzureConnectionAuthTypeEnum=fe;exports.CHART_RESULT_QUERY_OPTIONS=$a;exports.CleanMetricCard=Ha;exports.CleanNotebookContainer=za;exports.CleanNotebookSection=La;exports.CompileProblemSeverityEnum=Fe;exports.CompileRequestScopeEnum=je;exports.CompileResultStatusEnum=Be;exports.Configuration=Oe;exports.ConnectionProxyTypeEnum=Qe;exports.ConnectionStatusStatusEnum=qe;exports.ConnectionTypeEnum=De;exports.ConnectionsApi=Z;exports.ConnectionsApiAxiosParamCreator=X;exports.ConnectionsApiFactory=Aa;exports.ConnectionsApiFp=A;exports.ConnectionsTestApi=ka;exports.ConnectionsTestApiAxiosParamCreator=ee;exports.ConnectionsTestApiFactory=ya;exports.ConnectionsTestApiFp=W;exports.DEFAULT_THEME=L;exports.DashboardsApi=te;exports.DashboardsApiAxiosParamCreator=ae;exports.DashboardsApiFactory=Ca;exports.DashboardsApiFp=D;exports.DataAppFitEnum=ze;exports.DataAppsApi=re;exports.DataAppsApiAxiosParamCreator=ne;exports.DataAppsApiFactory=Ia;exports.DataAppsApiFp=G;exports.DatabaseTypeEnum=Le;exports.DatabasesApi=se;exports.DatabasesApiAxiosParamCreator=oe;exports.DatabasesApiFactory=xa;exports.DatabasesApiFp=Y;exports.EnvironmentsApi=le;exports.EnvironmentsApiAxiosParamCreator=ce;exports.EnvironmentsApiFactory=Ra;exports.EnvironmentsApiFp=E;exports.ExecuteNotebookCellBypassFiltersEnum=Ma;exports.FilterTypeEnum=He;exports.FreshnessFallbackEnum=_e;exports.GivenControlEnum=We;exports.LedgerEntryStrategyEnum=Ge;exports.LogMessageSeverityEnum=Ye;exports.MONO_FONT_FAMILY=Ba;exports.ManifestEntryFreshnessFallbackEnum=$e;exports.ManifestEntryOriginEnum=Ke;exports.ManifestEntryRefreshEnum=Je;exports.MaterializationActionActionEnum=Na;exports.MaterializationStatus=Xe;exports.MaterializationsApi=pe;exports.MaterializationsApiAxiosParamCreator=ie;exports.MaterializationsApiFactory=Ea;exports.MaterializationsApiFp=N;exports.ModelsApi=me;exports.ModelsApiAxiosParamCreator=de;exports.ModelsApiFactory=Ta;exports.ModelsApiFp=T;exports.NotebookCellKindEnum=ea;exports.NotebookCellResultKindEnum=ta;exports.NotebookCellResultTypeEnum=aa;exports.NotebookCellTypeEnum=Ze;exports.NotebooksApi=ue;exports.NotebooksApiAxiosParamCreator=he;exports.NotebooksApiFactory=Ua;exports.NotebooksApiFp=j;exports.PALETTE=k;exports.PER_MODE_COLOR_KEYS=Ae;exports.PackageEmbeddingIndexStatusEnum=sa;exports.PackageManifestBindingStatusEnum=oa;exports.PackageQueryableSourcesEnum=ra;exports.PackageScopeEnum=na;exports.PackageStorageServeBindingsInnerOriginEnum=ca;exports.PackageWarningsInnerSeverityEnum=la;exports.PackagesApi=Pe;exports.PackagesApiAxiosParamCreator=ge;exports.PackagesApiFactory=wa;exports.PackagesApiFp=U;exports.PersistSourcePlanOriginEnum=ia;exports.PostgresConnectionSslmodeEnum=pa;exports.PublisherApi=ve;exports.PublisherApiAxiosParamCreator=be;exports.PublisherApiFactory=fa;exports.PublisherApiFp=f;exports.QueryClass=da;exports.QueryResultQueryRowLimitSourceEnum=ma;exports.QueryResultServedFromEnum=ha;exports.RawNotebookFormatEnum=ua;exports.Realization=ga;exports.RefusedSourceReasonEnum=ba;exports.RefusedSourceTierEnum=Pa;exports.RunContextTriggerEnum=va;exports.S3ConnectionProviderEnum=Va;exports.SURFACE_TINT=ja;exports.ServerProvider=at;exports.ServerStatusOperationalStateEnum=Sa;exports.StyledCard=Da;exports.StyledCardContent=Qa;exports.StyledCardMedia=qa;exports.StyledExplorerContent=Wa;exports.StyledExplorerPage=_a;exports.ThemeDefaultModeEnum=Oa;exports.ThemeProvider=Ce;exports.WatchModeApi=Se;exports.WatchModeApiAxiosParamCreator=Ve;exports.WatchModeApiFactory=Fa;exports.WatchModeApiFp=F;exports.globalQueryClient=Ie;exports.resolveMode=ye;exports.resolveTheme=K;exports.usePublisherTheme=Ka;exports.useServer=nt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var nu=Object.create;var oa=Object.defineProperty;var ru=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var su=Object.getPrototypeOf,ou=Object.prototype.hasOwnProperty;var au=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of iu(t))!ou.call(e,i)&&i!==n&&oa(e,i,{get:()=>t[i],enumerable:!(r=ru(t,i))||r.enumerable});return e};var aa=(e,t,n)=>(n=e!=null?nu(su(e)):{},au(t||!e||!e.__esModule?oa(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),S=require("react"),lu=require("react-dom"),k=require("@mui/material"),j=require("../Dashboard-FD3-Af-_.cjs.js"),Be=require("../ServerProvider-BsjJvkML.cjs.js"),cu=require("@tanstack/react-query");var du=Symbol.for("preact-signals");function Pi(){if(vt>1)vt--;else{var e,t=!1;for((function(){var i=ui;for(ui=void 0;i!==void 0;){var s=i.S;if(s.v===i.v)for(var o=s.t;o!==void 0;o=o.x)o.i===i.i&&(o.i=s.i);i=i.o}})();cr!==void 0;){var n=cr;for(cr=void 0,di++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ll(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(di=0,vt--,t)throw e}}function ue(e){if(vt>0)return e();us=++uu,vt++;try{return e()}finally{Pi()}}var lr,ie=void 0;function H(e){var t=ie,n=lr;ie=void 0,lr=void 0;try{return e()}finally{ie=t,lr=n}}var cr=void 0,vt=0,di=0,uu=0,us=0,ui=void 0,fi=0;function al(e){if(ie!==void 0){var t=e.n;if(t===void 0||t.t!==ie)return t={i:0,S:e,p:ie.s,n:void 0,t:ie,e:void 0,x:void 0,r:t},ie.s!==void 0&&(ie.s.n=t),ie.s=t,e.n=t,32&ie.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ie.s,t.n=void 0,ie.s.n=t,ie.s=t),t}}function Re(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Re.prototype.brand=du;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:H(function(){var r;(r=t.W)==null||r.call(t)}))};Re.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&H(function(){var i;(i=t.Z)==null||i.call(t)}))}};Re.prototype.subscribe=function(e){var t=this;return tt(function(){var n=t.value;H(function(){return e(n)})},{name:"sub"})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=this;return H(function(){return e.value})};Object.defineProperty(Re.prototype,"value",{get:function(){var e=al(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(di>100)throw new Error("Cycle detected");(function(n){vt!==0&&di===0&&n.l!==us&&(n.l=us,ui={S:n,v:n.v,i:n.i,o:ui})})(this),this.v=e,this.i++,fi++,vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pi()}}}});function En(e,t){return new Re(e,t)}function ll(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function cl(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function dl(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Ht(e,t){Re.call(this,void 0,t),this.x=e,this.s=void 0,this.g=fi-1,this.f=4}Ht.prototype=new Re;Ht.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fi))return!0;if(this.g=fi,this.f|=1,this.i>0&&!ll(this))return this.f&=-2,!0;var e=ie;try{cl(this),ie=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ie=e,dl(this),this.f&=-2,!0};Ht.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};Ht.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ht.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ht.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=al(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function la(e,t){return new Ht(e,t)}function ul(e){var t=e.m;if(e.m=void 0,typeof t=="function"){vt++;var n=ie;ie=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,to(e),r}finally{ie=n,Pi()}}}function to(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ul(e)}function fu(e){if(ie!==this)throw new Error("Out-of-order effect");dl(this),ie=e,this.f&=-2,8&this.f&&to(this),Pi()}function On(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,lr&&lr.push(this)}On.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};On.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ul(this),cl(this),vt++;var e=ie;return ie=this,fu.bind(this,e)};On.prototype.N=function(){2&this.f||(this.f|=2,this.u=cr,cr=this)};On.prototype.d=function(){this.f|=8,1&this.f||to(this)};On.prototype.dispose=function(){this.d()};function tt(e,t){var n=new On(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var hu=Object.create,no=Object.defineProperty,pu=Object.defineProperties,gu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,bu=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Tn=e=>{throw TypeError(e)},fs=(e,t,n)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xu=(e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&fs(e,n,t[n]);if(ca)for(var n of ca(t))yu.call(t,n)&&fs(e,n,t[n]);return e},wu=(e,t)=>pu(e,vu(t)),da=(e,t)=>no(e,"name",{value:t,configurable:!0}),_u=e=>{var t;return[,,,hu((t=void 0)!=null?t:null)]},fl=["class","method","getter","setter","accessor","field","value","get","set"],qn=e=>e!==void 0&&typeof e!="function"?Tn("Function expected"):e,ku=(e,t,n,r,i)=>({kind:fl[e],name:t,metadata:r,addInitializer:s=>n._?Tn("Already initialized"):i.push(qn(s||null))}),hl=(e,t)=>fs(t,bu("metadata"),e[3]),Mt=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Dn=(e,t,n,r,i,s)=>{var o,a,l,u,d,c=t&7,h=!!(t&8),f=!!(t&16),v=c>3?e.length+1:c?h?1:2:0,p=fl[c+5],w=c>3&&(e[v-1]=[]),x=e[v]||(e[v]=[]),m=c&&(!f&&!h&&(i=i.prototype),c<5&&(c>3||!f)&&gu(c<4?i:{get[n](){return Qe(this,s)},set[n](b){return kt(this,s,b)}},n));c?f&&c<4&&da(s,(c>2?"set ":c>1?"get ":"")+n):da(i,n);for(var g=r.length-1;g>=0;g--)u=ku(c,n,l={},e[3],x),c&&(u.static=h,u.private=f,d=u.access={has:f?b=>Su(i,b):b=>n in b},c^3&&(d.get=f?b=>(c^1?Qe:$u)(b,i,c^4?s:m.get):b=>b[n]),c>2&&(d.set=f?(b,_)=>kt(b,i,_,c^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[g])(c?c<4?f?s:m[p]:c>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,c^4||a===void 0?qn(a)&&(c>4?w.unshift(a):c?f?s=a:m[p]=a:i=a):typeof a!="object"||a===null?Tn("Object expected"):(qn(o=a.get)&&(m.get=o),qn(o=a.set)&&(m.set=o),qn(o=a.init)&&w.unshift(o));return c||hl(e,i),m&&no(i,n,m),f?c^4?s:m:i},ro=(e,t,n)=>t.has(e)||Tn("Cannot "+n),Su=(e,t)=>Object(t)!==t?Tn('Cannot use the "in" operator on this value'):e.has(t),Qe=(e,t,n)=>(ro(e,t,"read from private field"),n?n.call(e):t.get(e)),Hn=(e,t,n)=>t.has(e)?Tn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(ro(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$u=(e,t,n)=>(ro(e,t,"access private method"),n);function hs(e,t){if(t){let n;return la(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return la(e)}function rt(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e=="function"&&typeof t=="function")return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((r,i)=>!rt(r,t[i]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:!n.some(s=>!rt(e[s],t[s]))}return!1}function K({get:e},t){return{init(n){return En(n)},get(){return e.call(this).value},set(n){const r=e.call(this);r.peek()!==n&&(r.value=n)}}}function ge(e,t){const n=new WeakMap;return function(){let r=n.get(this);return r||(r=hs(e.bind(this)),n.set(this,r)),r.value}}function Hi(e=!0){return function(t,n){n.addInitializer(function(){const r=n.kind==="field"?this:n.static?this:Object.getPrototypeOf(this),i=Object.getOwnPropertyDescriptor(r,n.name);i&&Object.defineProperty(r,n.name,wu(xu({},i),{enumerable:e}))})}}function $r(...e){const t=e.map(n=>tt(n));return()=>t.forEach(n=>n())}var pl,gl,vl,ml,yl,bl,Ie,io,Ki,ps,gs,Pe,so,Yi,xl,vs,oo,Xi,ms,ys;bl=[K],yl=[K],ml=[K],vl=[Hi()],gl=[Hi()],pl=[Hi()];var Kt=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Mt(Ie,5,this),Hn(this,Pe),Hn(this,io,Mt(Ie,8,this)),Mt(Ie,11,this),Hn(this,so,Mt(Ie,12,this)),Mt(Ie,15,this),Hn(this,oo,Mt(Ie,16,this)),Mt(Ie,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Qe(this,Pe,ms)}get initial(){return Qe(this,Pe,ps)}get previous(){return Qe(this,Pe,xl)}set current(e){const t=H(()=>Qe(this,Pe,ms));e&&t&&this.equals(t,e)||ue(()=>{Qe(this,Pe,ps)||kt(this,Pe,e,gs),kt(this,Pe,t,vs),kt(this,Pe,e,ys)})}reset(e=this.defaultValue){ue(()=>{kt(this,Pe,void 0,vs),kt(this,Pe,e,gs),kt(this,Pe,e,ys)})}};Ie=_u();io=new WeakMap;Pe=new WeakSet;so=new WeakMap;oo=new WeakMap;Ki=Dn(Ie,20,"#initial",bl,Pe,io),ps=Ki.get,gs=Ki.set;Yi=Dn(Ie,20,"#previous",yl,Pe,so),xl=Yi.get,vs=Yi.set;Xi=Dn(Ie,20,"#current",ml,Pe,oo),ms=Xi.get,ys=Xi.set;Dn(Ie,2,"current",vl,Kt);Dn(Ie,2,"initial",gl,Kt);Dn(Ie,2,"previous",pl,Kt);hl(Ie,Kt);function Qi(e){return H(()=>{const t={};for(const n in e)t[n]=e[n];return t})}var It,Eu=class{constructor(){Hn(this,It,new WeakMap)}get(e,t){var n;return e?(n=Qe(this,It).get(e))==null?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Qe(this,It).has(e)||Qe(this,It).set(e,new Map),(r=Qe(this,It).get(e))==null?void 0:r.set(t,n)}clear(e){var t;return e?(t=Qe(this,It).get(e))==null?void 0:t.clear():void 0}};It=new WeakMap;var Ou=Object.create,wl=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,ua=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,_l=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Mi=e=>{throw TypeError(e)},fa=Math.pow,bs=(e,t,n)=>t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pu=(e,t)=>{for(var n in t||(t={}))Du.call(t,n)&&bs(e,n,t[n]);if(ua)for(var n of ua(t))Cu.call(t,n)&&bs(e,n,t[n]);return e},Mu=e=>{var t;return[,,,Ou((t=e?.[_l("metadata")])!=null?t:null)]},kl=["class","method","getter","setter","accessor","field","value","get","set"],Sl=e=>e!==void 0&&typeof e!="function"?Mi("Function expected"):e,Iu=(e,t,n,r,i)=>({kind:kl[e],name:t,metadata:r,addInitializer:s=>n._?Mi("Already initialized"):i.push(Sl(s||null))}),ju=(e,t)=>bs(t,_l("metadata"),e[3]),Au=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)s[i].call(n);return r},$l=(e,t,n,r,i,s)=>{for(var o,a,l,u,d=t&7,c=!1,h=!1,f=2,v=kl[d+5],p=e[f]||(e[f]=[]),w=(i=i.prototype,Tu(i,n)),x=r.length-1;x>=0;x--)l=Iu(d,n,a={},e[3],p),l.static=c,l.private=h,u=l.access={has:m=>n in m},u.get=m=>m[n],o=(0,r[x])(w[v],l),a._=1,Sl(o)&&(w[v]=o);return w&&wl(i,n,w),i},El=(e,t,n)=>t.has(e)||Mi("Cannot "+n),Ru=(e,t,n)=>(El(e,t,"read from private field"),t.get(e)),Lu=(e,t,n)=>t.has(e)?Mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Wu=(e,t,n,r)=>(El(e,t,"write to private field"),t.set(e,n),n),Ze=class xs{constructor(t,n){this.x=t,this.y=n}static delta(t,n){return new xs(t.x-n.x,t.y-n.y)}static distance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}static equals(t,n){return t.x===n.x&&t.y===n.y}static from({x:t,y:n}){return new xs(t,n)}},dt=class jt{constructor(t,n,r,i){this.left=t,this.top=n,this.width=r,this.height=i,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:s,height:o,scale:a}=this,l=new jt(i+t,r+n,s,o);return l.scale=Pu({},a),l}get boundingRectangle(){const{width:t,height:n,left:r,top:i,right:s,bottom:o}=this;return{width:t,height:n,left:r,top:i,right:s,bottom:o}}get center(){const{left:t,top:n,right:r,bottom:i}=this;return new Ze((t+r)/2,(n+i)/2)}get area(){const{width:t,height:n}=this;return t*n}equals(t){if(!(t instanceof jt))return!1;const{left:n,top:r,width:i,height:s}=this;return n===t.left&&r===t.top&&i===t.width&&s===t.height}containsPoint(t){const{top:n,left:r,bottom:i,right:s}=this;return n<=t.y&&t.y<=i&&r<=t.x&&t.x<=s}intersectionArea(t){return t instanceof jt?zu(this,t):0}intersectionRatio(t){const{area:n}=this,r=this.intersectionArea(t);return r/(t.area+n-r)}get bottom(){const{top:t,height:n}=this;return t+n}get right(){const{left:t,width:n}=this;return t+n}get aspectRatio(){const{width:t,height:n}=this;return t/n}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new jt(n,t,r,i)}static delta(t,n,r={x:"center",y:"center"}){const i=(s,o)=>{const a=r[o],l=o==="x"?s.left:s.top,u=o==="x"?s.width:s.height;return a=="start"?l:a=="end"?l+u:l+u/2};return Ze.delta({x:i(t,"x"),y:i(t,"y")},{x:i(n,"x"),y:i(n,"y")})}static intersectionRatio(t,n){return jt.from(t).intersectionRatio(jt.from(n))}};function zu(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=s-n;return r<i&&n<s?o*a:0}var Ol,Tl,ws,Xr,Er,Ii=class extends(ws=Kt,Tl=[ge],Ol=[ge],ws){constructor(t){const n=Ze.from(t);super(n,(r,i)=>Ze.equals(r,i)),Au(Er,5,this),Lu(this,Xr,0),this.velocity={x:0,y:0}}get delta(){return Ze.delta(this.current,this.initial)}get direction(){const{current:t,previous:n}=this;if(!n)return null;const r={x:t.x-n.x,y:t.y-n.y};return!r.x&&!r.y?null:Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up"}get current(){return super.current}set current(t){const{current:n}=this,r=Ze.from(t),i={x:r.x-n.x,y:r.y-n.y},s=Date.now(),o=s-Ru(this,Xr),a=l=>Math.round(l/o*100);ue(()=>{Wu(this,Xr,s),this.velocity={x:a(i.x),y:a(i.y)},super.current=r})}reset(t=this.defaultValue){super.reset(Ze.from(t)),this.velocity={x:0,y:0}}};Er=Mu(ws);Xr=new WeakMap;$l(Er,2,"delta",Tl,Ii);$l(Er,2,"direction",Ol,Ii);ju(Er,Ii);function _s({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return typeof n=="number"?Math.sqrt(fa(r,2)+fa(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n?i>n.y:!1}var Dl=(e=>(e.Horizontal="x",e.Vertical="y",e))(Dl||{}),Cl=Object.values(Dl),Fu=Object.create,ao=Object.defineProperty,Nu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptor,Vu=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Il=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Cn=e=>{throw TypeError(e)},ks=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lo=(e,t)=>{for(var n in t||(t={}))Pl.call(t,n)&&ks(e,n,t[n]);if(hi)for(var n of hi(t))Ml.call(t,n)&&ks(e,n,t[n]);return e},co=(e,t)=>Nu(e,Vu(t)),ha=(e,t)=>ao(e,"name",{value:t,configurable:!0}),jl=(e,t)=>{var n={};for(var r in e)Pl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&hi)for(var r of hi(e))t.indexOf(r)<0&&Ml.call(e,r)&&(n[r]=e[r]);return n},Pn=e=>{var t;return[,,,Fu((t=e?.[Il("metadata")])!=null?t:null)]},Al=["class","method","getter","setter","accessor","field","value","get","set"],Kn=e=>e!==void 0&&typeof e!="function"?Cn("Function expected"):e,Gu=(e,t,n,r,i)=>({kind:Al[e],name:t,metadata:r,addInitializer:s=>n._?Cn("Already initialized"):i.push(Kn(s||null))}),Yt=(e,t)=>ks(t,Il("metadata"),e[3]),N=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Y=(e,t,n,r,i,s)=>{var o,a,l,u,d,c=t&7,h=!!(t&8),f=!!(t&16),v=c>3?e.length+1:c?h?1:2:0,p=Al[c+5],w=c>3&&(e[v-1]=[]),x=e[v]||(e[v]=[]),m=c&&(!f&&!h&&(i=i.prototype),c<5&&(c>3||!f)&&Bu(c<4?i:{get[n](){return pe(this,s)},set[n](b){return He(this,s,b)}},n));c?f&&c<4&&ha(s,(c>2?"set ":c>1?"get ":"")+n):ha(i,n);for(var g=r.length-1;g>=0;g--)u=Gu(c,n,l={},e[3],x),c&&(u.static=h,u.private=f,d=u.access={has:f?b=>Uu(i,b):b=>n in b},c^3&&(d.get=f?b=>(c^1?pe:Rl)(b,i,c^4?s:m.get):b=>b[n]),c>2&&(d.set=f?(b,_)=>He(b,i,_,c^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[g])(c?c<4?f?s:m[p]:c>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,c^4||a===void 0?Kn(a)&&(c>4?w.unshift(a):c?f?s=a:m[p]=a:i=a):typeof a!="object"||a===null?Cn("Object expected"):(Kn(o=a.get)&&(m.get=o),Kn(o=a.set)&&(m.set=o),Kn(o=a.init)&&w.unshift(o));return c||Yt(e,i),m&&ao(i,n,m),f?c^4?s:m:i},uo=(e,t,n)=>t.has(e)||Cn("Cannot "+n),Uu=(e,t)=>Object(t)!==t?Cn('Cannot use the "in" operator on this value'):e.has(t),pe=(e,t,n)=>(uo(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Cn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),He=(e,t,n,r)=>(uo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rl=(e,t,n)=>(uo(e,t,"access private method"),n);function Ll(e,t){return{plugin:e,options:t}}function Or(e){return t=>Ll(e,t)}function gr(e){return typeof e=="function"?{plugin:e,options:void 0}:e}var Wl,vr,fo,Qr;Wl=[K];var Me=class{constructor(e,t){this.manager=e,this.options=t,J(this,fo,N(vr,8,this,!1)),N(vr,11,this),J(this,Qr,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return H(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=tt(e.bind(this));return pe(this,Qr).add(t),t}destroy(){pe(this,Qr).forEach(e=>e())}static configure(e){return Ll(this,e)}};vr=Pn(null);fo=new WeakMap;Qr=new WeakMap;Y(vr,4,"disabled",Wl,Me,fo);Yt(vr,Me);var Tr=class extends Me{},Zr,Zi=class{constructor(e){this.manager=e,this.instances=new Map,J(this,Zr,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(gr).reduce((r,i)=>{const s=r.find(({plugin:o})=>o===i.plugin);return s?(s.options=i.options,r):[...r,i]},[]),n=t.map(({plugin:r})=>r);for(const r of pe(this,Zr))if(!n.includes(r)){if(r.prototype instanceof Tr)continue;this.unregister(r)}for(const{plugin:r,options:i}of t)this.register(r,i);He(this,Zr,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};Zr=new WeakMap;function qu(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}var Wr=[],an,ln,Hu=class extends Me{constructor(e){super(e),J(this,an),J(this,ln),this.computeCollisions=this.computeCollisions.bind(this),He(this,ln,En(Wr)),this.destroy=$r(()=>{const t=this.computeCollisions(),n=H(()=>this.manager.dragOperation.position.current);if(t!==Wr){const r=pe(this,an);if(He(this,an,n),r&&n.x==r.x&&n.y==r.y)return}else He(this,an,void 0);pe(this,ln).value=t},()=>{const{dragOperation:t}=this.manager;t.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){H(()=>{e?pe(this,ln).value=this.computeCollisions():He(this,an,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:s,status:o}=r;if(!o.initialized||!s)return Wr;const a=[],l=[];for(const u of e??n.droppables){if(u.disabled||i&&!u.accepts(i))continue;const d=t??u.collisionDetector;if(!d)continue;l.push(u),u.shape;const c=H(()=>d({droppable:u,dragOperation:r}));c&&(u.collisionPriority!=null&&(c.priority=u.collisionPriority),a.push(c))}return l.length===0?Wr:(a.sort(qu),a)}get collisions(){return pe(this,ln).value}};an=new WeakMap;ln=new WeakMap;var zl,Fl,Nl,ho,Bl,it,po,pn,go,vo;Nl=[K],Fl=[K],zl=[K];var yt=class At{constructor(t,n){J(this,po,N(it,8,this)),N(it,11,this),J(this,pn),J(this,go,N(it,12,this)),N(it,15,this),J(this,vo,N(it,16,this)),N(it,19,this);const{effects:r,id:i,data:s={},disabled:o=!1,register:a=!0}=t;let l=i;He(this,pn,En(i)),this.manager=n,this.data=s,this.disabled=o,this.effects=()=>{var u;return[()=>{const{id:d,manager:c}=this;if(d!==l)return l=d,c?.registry.register(this),()=>c?.registry.unregister(this)},...(u=r?.())!=null?u:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),n&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=pe(this,pn).value;return(n=(t=At.pendingIdChanges)==null?void 0:t.get(this))!=null?n:r}set id(t){var n,r;const i=(r=(n=At.pendingIdChanges)==null?void 0:n.get(this))!=null?r:pe(this,pn).peek();t!==i&&(At.pendingIdChanges||(At.pendingIdChanges=new Map,queueMicrotask(()=>{var s;return Rl(s=At,ho,Bl).call(s)})),At.pendingIdChanges.set(this,t))}register(){var t;return(t=this.manager)==null?void 0:t.registry.register(this)}unregister(){var t;(t=this.manager)==null||t.registry.unregister(this)}destroy(){var t;(t=this.manager)==null||t.registry.unregister(this)}};it=Pn(null);ho=new WeakSet;Bl=function(){const e=yt.pendingIdChanges;yt.pendingIdChanges=null,e&&ue(()=>{for(const[t,n]of e)pe(t,pn).value=n})};po=new WeakMap;pn=new WeakMap;go=new WeakMap;vo=new WeakMap;Y(it,4,"manager",Nl,yt,po);Y(it,4,"data",Fl,yt,go);Y(it,4,"disabled",zl,yt,vo);J(yt,ho);Yt(it,yt);yt.pendingIdChanges=null;var ji=yt,pa=class{constructor(){this.map=En(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r&&r.id===e){const a=this.cleanupFunctions.get(r);a?.(),this.cleanupFunctions.delete(r)}const s=new Map(n);for(const[a,l]of n)if(l===t&&a!==e){s.delete(a);break}s.set(e,t),this.map.value=s;const o=$r(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);r?.(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);t?.(),e.destroy()}this.map.value=new Map}},Vl,Gl,Ul,ql,Hl,Kl,Ss,je,mo,yo,bo,ut=class extends(Ss=ji,Kl=[K],Hl=[K],ql=[K],Ul=[ge],Gl=[ge],Vl=[ge],Ss){constructor(t,n){var r=t,{modifiers:i,type:s,sensors:o,plugins:a,effects:l}=r,u=jl(r,["modifiers","type","sensors","plugins","effects"]);super(co(lo({},u),{effects:()=>{var d;return[...(d=l?.())!=null?d:[],()=>{const{manager:c,plugins:h}=this;if(!(!c||!h))for(const f of h){const{plugin:v}=gr(f);c.registry.plugins.register(v)}}]}}),n),N(je,5,this),J(this,mo,N(je,8,this)),N(je,11,this),J(this,yo,N(je,12,this)),N(je,15,this),J(this,bo,N(je,16,this,this.isDragSource?"dragging":"idle")),N(je,19,this),this.type=s,this.sensors=o,this.modifiers=i,this.alignment=u.alignment,this.plugins=a}pluginConfig(t){if(this.plugins)for(const n of this.plugins){const r=gr(n);if(r.plugin===t)return r.options}}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.source)==null?void 0:n.id)===this.id}};je=Pn(Ss);mo=new WeakMap;yo=new WeakMap;bo=new WeakMap;Y(je,4,"type",Kl,ut,mo);Y(je,4,"modifiers",Hl,ut,yo);Y(je,4,"status",ql,ut,bo);Y(je,2,"isDropping",Ul,ut);Y(je,2,"isDragging",Gl,ut);Y(je,2,"isDragSource",Vl,ut);Yt(je,ut);var Yl,Xl,Ql,Zl,Jl,ec,$s,xe,xo,wo,_o,ko,So,ft=class extends($s=ji,ec=[K],Jl=[K],Zl=[K],Ql=[K],Xl=[K],Yl=[ge],$s){constructor(t,n){var r=t,{accept:i,collisionDetector:s,collisionPriority:o,type:a}=r,l=jl(r,["accept","collisionDetector","collisionPriority","type"]);super(l,n),N(xe,5,this),J(this,xo,N(xe,8,this)),N(xe,11,this),J(this,wo,N(xe,12,this)),N(xe,15,this),J(this,_o,N(xe,16,this)),N(xe,19,this),J(this,ko,N(xe,20,this)),N(xe,23,this),J(this,So,N(xe,24,this)),N(xe,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=o,this.type=a}accepts(t){const{accept:n}=this;return n?typeof n=="function"?n(t):t.type?Array.isArray(n)?n.includes(t.type):t.type===n:!1:!0}get isDropTarget(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.target)==null?void 0:n.id)===this.id}};xe=Pn($s);xo=new WeakMap;wo=new WeakMap;_o=new WeakMap;ko=new WeakMap;So=new WeakMap;Y(xe,4,"accept",ec,ft,xo);Y(xe,4,"type",Jl,ft,wo);Y(xe,4,"collisionDetector",Zl,ft,_o);Y(xe,4,"collisionPriority",Ql,ft,ko);Y(xe,4,"shape",Xl,ft,So);Y(xe,2,"isDropTarget",Yl,ft);Yt(xe,ft);var Ku=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const i of r)i(...t)}},Yu=class extends Ku{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Jr(e,t=!0){let n=!1;return co(lo({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var Xu=class extends Tr{constructor(e){super(e);const t=(r,i)=>r.map(({id:s})=>s).join("")===i.map(({id:s})=>s).join("");let n=[];this.destroy=$r(()=>{const{dragOperation:r,collisionObserver:i}=e;r.status.initializing&&(n=[],i.enable())},()=>{const{collisionObserver:r,monitor:i}=e,{collisions:s}=r;if(r.isDisabled()||ji.pendingIdChanges)return;const o=Jr({collisions:s});if(i.dispatch("collision",o),o.defaultPrevented||t(s,n))return;n=s;const[a]=s;H(()=>{var l;a?.id!==((l=e.dragOperation.target)==null?void 0:l.id)&&(r.disable(),e.actions.setDropTarget(a?.id).then(()=>{r.enable()}))})})}},Mn=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(Mn||{}),In=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(In||{}),tc,nc,rc,ic,sc,oc,ac,et,$o;ac=[K],oc=[ge],sc=[ge],ic=[ge],rc=[ge],nc=[ge],tc=[ge];var bt=class{constructor(){N(et,5,this),J(this,$o,N(et,8,this,"idle")),N(et,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){const{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};et=Pn(null);$o=new WeakMap;Y(et,4,"value",ac,bt,$o);Y(et,2,"current",oc,bt);Y(et,2,"idle",sc,bt);Y(et,2,"initializing",ic,bt);Y(et,2,"initialized",rc,bt);Y(et,2,"dragging",nc,bt);Y(et,2,"dropped",tc,bt);Yt(et,bt);var Qu=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e=="string"||typeof e=="number"?e:e.id}setDropTarget(e){return H(()=>{const{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Jr({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return H(()=>{const{dragOperation:t}=this.manager;if(e.source!=null&&this.setDragSource(e.source),!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:i,coordinates:s}=e;ue(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=i??null,t.position.reset(s)});const o=Jr({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:a}=t;a.current==="initializing"&&ue(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:i,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return H(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:s}=r;if(!i.dragging||!s||s.signal.aborted)return;const o=Jr({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},(t=e.cancelable)!=null?t:!0);((n=e.propagate)==null||n)&&this.manager.monitor.dispatch("dragmove",o),queueMicrotask(()=>{var a,l,u,d,c;if(o.defaultPrevented)return;const h=(c=e.to)!=null?c:{x:r.position.current.x+((l=(a=e.by)==null?void 0:a.x)!=null?l:0),y:r.position.current.y+((d=(u=e.by)==null?void 0:u.y)!=null?d:0)};r.position.current=h})})}stop(e={}){return H(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let s;const o=()=>{const l={resume:()=>{},abort:()=>{}};return s=new Promise((u,d)=>{l.resume=u,l.abort=d}),l};i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const l=H(()=>{var d;return((d=r.source)==null?void 0:d.status)==="dropping"}),u=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(l){const{source:d}=r,c=tt(()=>{d?.status==="idle"&&(c(),u())})}else this.manager.renderer.rendering.then(u)})};r.canceled=(t=e.canceled)!=null?t:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:(n=e.canceled)!=null?n:!1,suspend:o}),s?s.then(a).catch(()=>r.reset()):a()})}},bn=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Zu=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const n of e??[])n.controller=this}onEvent(e){var t;if(!this.activated)if((t=this.constraints)!=null&&t.length)for(const n of this.constraints)n.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},ei,lc=class{constructor(e){this.options=e,J(this,ei)}set controller(e){He(this,ei,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;(t=pe(this,ei))==null||t.activate(e)}};ei=new WeakMap;var ga=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Ju=class{constructor(e){this.draggables=new pa,this.droppables=new pa,this.plugins=new Zi(e),this.sensors=new Zi(e),this.modifiers=new Zi(e)}register(e,t){if(e instanceof ut)return this.draggables.register(e.id,e);if(e instanceof ft)return this.droppables.register(e.id,e);if(e.prototype instanceof ga)return this.modifiers.register(e,t);if(e.prototype instanceof bn)return this.sensors.register(e,t);if(e.prototype instanceof Me)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof ji)return e instanceof ut?this.draggables.unregister(e.id,e):e instanceof ft?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof ga)return this.modifiers.unregister(e);if(e.prototype instanceof bn)return this.sensors.unregister(e);if(e.prototype instanceof Me)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},cc,dc,uc,fc,hc,pc,gc,vc,mc,Yn,ti,cn,ce,Eo,Oo,To,Do,Co,Xn;mc=[ge],vc=[K],gc=[K],pc=[K],hc=[K],fc=[K],uc=[ge],dc=[ge],cc=[ge];var ot=class{constructor(e){N(ce,5,this),J(this,Yn),J(this,ti),J(this,cn,new Kt(void 0,(t,n)=>t&&n?t.equals(n):t===n)),this.status=new bt,J(this,Eo,N(ce,8,this,!1)),N(ce,11,this),J(this,Oo,N(ce,12,this,null)),N(ce,15,this),J(this,To,N(ce,16,this,null)),N(ce,19,this),J(this,Do,N(ce,20,this,null)),N(ce,23,this),J(this,Co,N(ce,24,this,[])),N(ce,27,this),this.position=new Ii({x:0,y:0}),J(this,Xn,{x:0,y:0}),He(this,Yn,e)}get shape(){const{current:e,initial:t,previous:n}=pe(this,cn);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?pe(this,cn).current=e:pe(this,cn).reset()}get source(){var e;const t=this.sourceIdentifier;if(t==null)return null;const n=pe(this,Yn).registry.draggables.get(t);return n&&He(this,ti,n),(e=n??pe(this,ti))!=null?e:null}get target(){var e;const t=this.targetIdentifier;return t!=null&&(e=pe(this,Yn).registry.droppables.get(t))!=null?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const r of this.modifiers)n=r.apply(co(lo({},this.snapshot()),{transform:n}));return He(this,Xn,n),n}snapshot(){return H(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:pe(this,Xn),shape:this.shape?Qi(this.shape):null,position:Qi(this.position),status:Qi(this.status),canceled:this.canceled}))}reset(){ue(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,pe(this,cn).reset(),this.position.reset({x:0,y:0}),He(this,Xn,{x:0,y:0}),this.modifiers=[]})}};ce=Pn(null);Yn=new WeakMap;ti=new WeakMap;cn=new WeakMap;Eo=new WeakMap;Oo=new WeakMap;To=new WeakMap;Do=new WeakMap;Co=new WeakMap;Xn=new WeakMap;Y(ce,2,"shape",mc,ot);Y(ce,4,"canceled",vc,ot,Eo);Y(ce,4,"activatorEvent",gc,ot,Oo);Y(ce,4,"sourceIdentifier",pc,ot,To);Y(ce,4,"targetIdentifier",hc,ot,Do);Y(ce,4,"modifiers",fc,ot,Co);Y(ce,2,"source",uc,ot);Y(ce,2,"target",dc,ot);Y(ce,2,"transform",cc,ot);Yt(ce,ot);var ef={get rendering(){return Promise.resolve()}};function st(e,t){return typeof e=="function"?e(t):e??t}var tf=class{constructor(t){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(h=>h.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var n;const r=t??{},i=st(r.plugins,[]),s=st(r.sensors,[]),o=st(r.modifiers,[]),a=(n=r.renderer)!=null?n:ef,l=new Yu(this),u=new Ju(this);this.registry=u,this.monitor=l,this.renderer=a,this.actions=new Qu(this),this.dragOperation=new ot(this),this.collisionObserver=new Hu(this),this.plugins=[Xu,...i],this.modifiers=o,this.sensors=s;const{destroy:d}=this,c=$r(()=>{var h,f,v;const p=H(()=>this.dragOperation.modifiers),w=this.modifiers;for(const x of p)w.includes(x)||x.destroy();this.dragOperation.modifiers=(v=(f=(h=this.dragOperation.source)==null?void 0:h.modifiers)==null?void 0:f.map(x=>{const{plugin:m,options:g}=gr(x);return new m(this,g)}))!=null?v:w});this.destroy=()=>{c(),d()}}get plugins(){return this.registry.plugins.values}set plugins(t){this.registry.plugins.values=t}get modifiers(){return this.registry.modifiers.values}set modifiers(t){this.registry.modifiers.values=t}get sensors(){return this.registry.sensors.values}set sensors(t){this.registry.sensors.values=t}},yc=e=>{throw TypeError(e)},Po=(e,t,n)=>t.has(e)||yc("Cannot "+n),F=(e,t,n)=>(Po(e,t,"read from private field"),t.get(e)),Ne=(e,t,n)=>t.has(e)?yc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(Po(e,t,"write to private field"),t.set(e,n),n),bc=(e,t,n)=>(Po(e,t,"access private method"),n);function Ai(e){return e?e instanceof KeyframeEffect?!0:"getKeyframes"in e&&typeof e.getKeyframes=="function":!1}function xc(e,t){const n=e.getAnimations();let r=null;for(const i of n){if(i.playState!=="running")continue;const{effect:s}=i,a=(Ai(s)?s.getKeyframes():[]).filter(t);a.length>0&&(r=[a[a.length-1],i])}return r}function Ri(e){const{width:t,height:n,top:r,left:i,bottom:s,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:s,right:o}}function Mo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Dr(e){return"nodeType"in e}function Ke(e){var t,n,r;return e?Mo(e)?e:Dr(e)?"defaultView"in e?(t=e.defaultView)!=null?t:window:(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window:window:window}function Io(e){const{Document:t}=Ke(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Tt(e){return!e||Mo(e)?!1:e instanceof Ke(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("html")}function wc(e){return e instanceof Ke(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("svg")}function jn(e){return e?Mo(e)?e.document:Dr(e)?Io(e)?e:Tt(e)||wc(e)?e.ownerDocument:document:document:document}function nf(e){var t,n,r,i;const{documentElement:s}=jn(e),o=Ke(e).visualViewport,a=(t=o?.width)!=null?t:s.clientWidth,l=(n=o?.height)!=null?n:s.clientHeight,u=(r=o?.offsetTop)!=null?r:0,d=(i=o?.offsetLeft)!=null?i:0;return{top:u,left:d,right:d+a,bottom:u+l,width:a,height:l}}function rf(e,t){if(sf(e)&&e.open===!1)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n==="visible"&&r==="visible"&&i==="visible"}function sf(e){return e.tagName==="DETAILS"}function mr(e,t=e.getBoundingClientRect(),n=0){var r,i,s,o,a;let l=t;const{ownerDocument:u}=e,d=(r=u.defaultView)!=null?r:window;let c=e.parentElement;for(;c&&c!==u.documentElement;){if(!rf(c)){const g=c.getBoundingClientRect(),b=n*(g.bottom-g.top),_=n*(g.right-g.left),$=n*(g.bottom-g.top),O=n*(g.right-g.left);l={top:Math.max(l.top,g.top-b),right:Math.min(l.right,g.right+_),bottom:Math.min(l.bottom,g.bottom+$),left:Math.max(l.left,g.left-O),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}c=c.parentElement}const h=d.visualViewport,f=(i=h?.offsetTop)!=null?i:0,v=(s=h?.offsetLeft)!=null?s:0,p=(o=h?.width)!=null?o:d.innerWidth,w=(a=h?.height)!=null?a:d.innerHeight,x=n*w,m=n*p;return l={top:Math.max(l.top,f-x),right:Math.min(l.right,v+p+m),bottom:Math.min(l.bottom,f+w+x),left:Math.max(l.left,v-m),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function xn(e){return{x:e.clientX,y:e.clientY}}var _c=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Es(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const i=r.contentDocument;i&&!t.has(i)&&n.push(...Es(i,t))}catch{}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...Es(i.document,t))}}catch{}return n}function jo(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kc(){var e,t;const n=jo()?window.visualViewport:null;return{x:(e=n?.offsetLeft)!=null?e:0,y:(t=n?.offsetTop)!=null?t:0}}function Ao(e){return!e||!Dr(e)?!1:e instanceof Ke(e).ShadowRoot}function pi(e){if(e&&Dr(e)){let t=e.getRootNode();if(Ao(t))return t;if(t instanceof Document)return t}return jn(e)}function Ro(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function of(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((s,o)=>{const a=r[o];if(va(s)&&va(a)&&(s.type!=="file"&&(s.value=a.value),s.type==="radio"&&s.name&&(s.name=`Cloned__${s.name}`)),ma(s)&&ma(a)&&a.width>0&&a.height>0){const l=s.getContext("2d");l?.drawImage(a,0,0)}}),n}function va(e){return"value"in e}function ma(e){return e.tagName==="CANVAS"}function Sc(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(af(r)){const{contentDocument:i}=r;if(i){const{left:s,top:o}=r.getBoundingClientRect();return Sc(i,{x:t-s,y:n-o})}}return r}function af(e){return e?.tagName==="IFRAME"}var Os=new WeakMap;function lf(e){return e.closest(`
|
|
1
|
+
"use strict";var nu=Object.create;var oa=Object.defineProperty;var ru=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var su=Object.getPrototypeOf,ou=Object.prototype.hasOwnProperty;var au=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of iu(t))!ou.call(e,i)&&i!==n&&oa(e,i,{get:()=>t[i],enumerable:!(r=ru(t,i))||r.enumerable});return e};var aa=(e,t,n)=>(n=e!=null?nu(su(e)):{},au(t||!e||!e.__esModule?oa(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),S=require("react"),lu=require("react-dom"),k=require("@mui/material"),j=require("../Dashboard-ChyylkTD.cjs.js"),Be=require("../ServerProvider-CXrOKD6g.cjs.js"),cu=require("@tanstack/react-query");var du=Symbol.for("preact-signals");function Pi(){if(vt>1)vt--;else{var e,t=!1;for((function(){var i=ui;for(ui=void 0;i!==void 0;){var s=i.S;if(s.v===i.v)for(var o=s.t;o!==void 0;o=o.x)o.i===i.i&&(o.i=s.i);i=i.o}})();cr!==void 0;){var n=cr;for(cr=void 0,di++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ll(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(di=0,vt--,t)throw e}}function ue(e){if(vt>0)return e();us=++uu,vt++;try{return e()}finally{Pi()}}var lr,ie=void 0;function H(e){var t=ie,n=lr;ie=void 0,lr=void 0;try{return e()}finally{ie=t,lr=n}}var cr=void 0,vt=0,di=0,uu=0,us=0,ui=void 0,fi=0;function al(e){if(ie!==void 0){var t=e.n;if(t===void 0||t.t!==ie)return t={i:0,S:e,p:ie.s,n:void 0,t:ie,e:void 0,x:void 0,r:t},ie.s!==void 0&&(ie.s.n=t),ie.s=t,e.n=t,32&ie.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ie.s,t.n=void 0,ie.s.n=t,ie.s=t),t}}function Re(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Re.prototype.brand=du;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:H(function(){var r;(r=t.W)==null||r.call(t)}))};Re.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&H(function(){var i;(i=t.Z)==null||i.call(t)}))}};Re.prototype.subscribe=function(e){var t=this;return tt(function(){var n=t.value;H(function(){return e(n)})},{name:"sub"})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=this;return H(function(){return e.value})};Object.defineProperty(Re.prototype,"value",{get:function(){var e=al(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(di>100)throw new Error("Cycle detected");(function(n){vt!==0&&di===0&&n.l!==us&&(n.l=us,ui={S:n,v:n.v,i:n.i,o:ui})})(this),this.v=e,this.i++,fi++,vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pi()}}}});function En(e,t){return new Re(e,t)}function ll(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function cl(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function dl(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Ht(e,t){Re.call(this,void 0,t),this.x=e,this.s=void 0,this.g=fi-1,this.f=4}Ht.prototype=new Re;Ht.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fi))return!0;if(this.g=fi,this.f|=1,this.i>0&&!ll(this))return this.f&=-2,!0;var e=ie;try{cl(this),ie=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ie=e,dl(this),this.f&=-2,!0};Ht.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};Ht.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ht.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ht.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=al(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function la(e,t){return new Ht(e,t)}function ul(e){var t=e.m;if(e.m=void 0,typeof t=="function"){vt++;var n=ie;ie=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,to(e),r}finally{ie=n,Pi()}}}function to(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ul(e)}function fu(e){if(ie!==this)throw new Error("Out-of-order effect");dl(this),ie=e,this.f&=-2,8&this.f&&to(this),Pi()}function On(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,lr&&lr.push(this)}On.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};On.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ul(this),cl(this),vt++;var e=ie;return ie=this,fu.bind(this,e)};On.prototype.N=function(){2&this.f||(this.f|=2,this.u=cr,cr=this)};On.prototype.d=function(){this.f|=8,1&this.f||to(this)};On.prototype.dispose=function(){this.d()};function tt(e,t){var n=new On(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var hu=Object.create,no=Object.defineProperty,pu=Object.defineProperties,gu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,bu=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Tn=e=>{throw TypeError(e)},fs=(e,t,n)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xu=(e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&fs(e,n,t[n]);if(ca)for(var n of ca(t))yu.call(t,n)&&fs(e,n,t[n]);return e},wu=(e,t)=>pu(e,vu(t)),da=(e,t)=>no(e,"name",{value:t,configurable:!0}),_u=e=>{var t;return[,,,hu((t=void 0)!=null?t:null)]},fl=["class","method","getter","setter","accessor","field","value","get","set"],qn=e=>e!==void 0&&typeof e!="function"?Tn("Function expected"):e,ku=(e,t,n,r,i)=>({kind:fl[e],name:t,metadata:r,addInitializer:s=>n._?Tn("Already initialized"):i.push(qn(s||null))}),hl=(e,t)=>fs(t,bu("metadata"),e[3]),Mt=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Dn=(e,t,n,r,i,s)=>{var o,a,l,u,d,c=t&7,h=!!(t&8),f=!!(t&16),v=c>3?e.length+1:c?h?1:2:0,p=fl[c+5],w=c>3&&(e[v-1]=[]),x=e[v]||(e[v]=[]),m=c&&(!f&&!h&&(i=i.prototype),c<5&&(c>3||!f)&&gu(c<4?i:{get[n](){return Qe(this,s)},set[n](b){return kt(this,s,b)}},n));c?f&&c<4&&da(s,(c>2?"set ":c>1?"get ":"")+n):da(i,n);for(var g=r.length-1;g>=0;g--)u=ku(c,n,l={},e[3],x),c&&(u.static=h,u.private=f,d=u.access={has:f?b=>Su(i,b):b=>n in b},c^3&&(d.get=f?b=>(c^1?Qe:$u)(b,i,c^4?s:m.get):b=>b[n]),c>2&&(d.set=f?(b,_)=>kt(b,i,_,c^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[g])(c?c<4?f?s:m[p]:c>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,c^4||a===void 0?qn(a)&&(c>4?w.unshift(a):c?f?s=a:m[p]=a:i=a):typeof a!="object"||a===null?Tn("Object expected"):(qn(o=a.get)&&(m.get=o),qn(o=a.set)&&(m.set=o),qn(o=a.init)&&w.unshift(o));return c||hl(e,i),m&&no(i,n,m),f?c^4?s:m:i},ro=(e,t,n)=>t.has(e)||Tn("Cannot "+n),Su=(e,t)=>Object(t)!==t?Tn('Cannot use the "in" operator on this value'):e.has(t),Qe=(e,t,n)=>(ro(e,t,"read from private field"),n?n.call(e):t.get(e)),Hn=(e,t,n)=>t.has(e)?Tn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(ro(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$u=(e,t,n)=>(ro(e,t,"access private method"),n);function hs(e,t){if(t){let n;return la(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return la(e)}function rt(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e=="function"&&typeof t=="function")return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((r,i)=>!rt(r,t[i]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:!n.some(s=>!rt(e[s],t[s]))}return!1}function K({get:e},t){return{init(n){return En(n)},get(){return e.call(this).value},set(n){const r=e.call(this);r.peek()!==n&&(r.value=n)}}}function ge(e,t){const n=new WeakMap;return function(){let r=n.get(this);return r||(r=hs(e.bind(this)),n.set(this,r)),r.value}}function Hi(e=!0){return function(t,n){n.addInitializer(function(){const r=n.kind==="field"?this:n.static?this:Object.getPrototypeOf(this),i=Object.getOwnPropertyDescriptor(r,n.name);i&&Object.defineProperty(r,n.name,wu(xu({},i),{enumerable:e}))})}}function $r(...e){const t=e.map(n=>tt(n));return()=>t.forEach(n=>n())}var pl,gl,vl,ml,yl,bl,Ie,io,Ki,ps,gs,Pe,so,Yi,xl,vs,oo,Xi,ms,ys;bl=[K],yl=[K],ml=[K],vl=[Hi()],gl=[Hi()],pl=[Hi()];var Kt=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Mt(Ie,5,this),Hn(this,Pe),Hn(this,io,Mt(Ie,8,this)),Mt(Ie,11,this),Hn(this,so,Mt(Ie,12,this)),Mt(Ie,15,this),Hn(this,oo,Mt(Ie,16,this)),Mt(Ie,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Qe(this,Pe,ms)}get initial(){return Qe(this,Pe,ps)}get previous(){return Qe(this,Pe,xl)}set current(e){const t=H(()=>Qe(this,Pe,ms));e&&t&&this.equals(t,e)||ue(()=>{Qe(this,Pe,ps)||kt(this,Pe,e,gs),kt(this,Pe,t,vs),kt(this,Pe,e,ys)})}reset(e=this.defaultValue){ue(()=>{kt(this,Pe,void 0,vs),kt(this,Pe,e,gs),kt(this,Pe,e,ys)})}};Ie=_u();io=new WeakMap;Pe=new WeakSet;so=new WeakMap;oo=new WeakMap;Ki=Dn(Ie,20,"#initial",bl,Pe,io),ps=Ki.get,gs=Ki.set;Yi=Dn(Ie,20,"#previous",yl,Pe,so),xl=Yi.get,vs=Yi.set;Xi=Dn(Ie,20,"#current",ml,Pe,oo),ms=Xi.get,ys=Xi.set;Dn(Ie,2,"current",vl,Kt);Dn(Ie,2,"initial",gl,Kt);Dn(Ie,2,"previous",pl,Kt);hl(Ie,Kt);function Qi(e){return H(()=>{const t={};for(const n in e)t[n]=e[n];return t})}var It,Eu=class{constructor(){Hn(this,It,new WeakMap)}get(e,t){var n;return e?(n=Qe(this,It).get(e))==null?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Qe(this,It).has(e)||Qe(this,It).set(e,new Map),(r=Qe(this,It).get(e))==null?void 0:r.set(t,n)}clear(e){var t;return e?(t=Qe(this,It).get(e))==null?void 0:t.clear():void 0}};It=new WeakMap;var Ou=Object.create,wl=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,ua=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,_l=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Mi=e=>{throw TypeError(e)},fa=Math.pow,bs=(e,t,n)=>t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pu=(e,t)=>{for(var n in t||(t={}))Du.call(t,n)&&bs(e,n,t[n]);if(ua)for(var n of ua(t))Cu.call(t,n)&&bs(e,n,t[n]);return e},Mu=e=>{var t;return[,,,Ou((t=e?.[_l("metadata")])!=null?t:null)]},kl=["class","method","getter","setter","accessor","field","value","get","set"],Sl=e=>e!==void 0&&typeof e!="function"?Mi("Function expected"):e,Iu=(e,t,n,r,i)=>({kind:kl[e],name:t,metadata:r,addInitializer:s=>n._?Mi("Already initialized"):i.push(Sl(s||null))}),ju=(e,t)=>bs(t,_l("metadata"),e[3]),Au=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)s[i].call(n);return r},$l=(e,t,n,r,i,s)=>{for(var o,a,l,u,d=t&7,c=!1,h=!1,f=2,v=kl[d+5],p=e[f]||(e[f]=[]),w=(i=i.prototype,Tu(i,n)),x=r.length-1;x>=0;x--)l=Iu(d,n,a={},e[3],p),l.static=c,l.private=h,u=l.access={has:m=>n in m},u.get=m=>m[n],o=(0,r[x])(w[v],l),a._=1,Sl(o)&&(w[v]=o);return w&&wl(i,n,w),i},El=(e,t,n)=>t.has(e)||Mi("Cannot "+n),Ru=(e,t,n)=>(El(e,t,"read from private field"),t.get(e)),Lu=(e,t,n)=>t.has(e)?Mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Wu=(e,t,n,r)=>(El(e,t,"write to private field"),t.set(e,n),n),Ze=class xs{constructor(t,n){this.x=t,this.y=n}static delta(t,n){return new xs(t.x-n.x,t.y-n.y)}static distance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}static equals(t,n){return t.x===n.x&&t.y===n.y}static from({x:t,y:n}){return new xs(t,n)}},dt=class jt{constructor(t,n,r,i){this.left=t,this.top=n,this.width=r,this.height=i,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:s,height:o,scale:a}=this,l=new jt(i+t,r+n,s,o);return l.scale=Pu({},a),l}get boundingRectangle(){const{width:t,height:n,left:r,top:i,right:s,bottom:o}=this;return{width:t,height:n,left:r,top:i,right:s,bottom:o}}get center(){const{left:t,top:n,right:r,bottom:i}=this;return new Ze((t+r)/2,(n+i)/2)}get area(){const{width:t,height:n}=this;return t*n}equals(t){if(!(t instanceof jt))return!1;const{left:n,top:r,width:i,height:s}=this;return n===t.left&&r===t.top&&i===t.width&&s===t.height}containsPoint(t){const{top:n,left:r,bottom:i,right:s}=this;return n<=t.y&&t.y<=i&&r<=t.x&&t.x<=s}intersectionArea(t){return t instanceof jt?zu(this,t):0}intersectionRatio(t){const{area:n}=this,r=this.intersectionArea(t);return r/(t.area+n-r)}get bottom(){const{top:t,height:n}=this;return t+n}get right(){const{left:t,width:n}=this;return t+n}get aspectRatio(){const{width:t,height:n}=this;return t/n}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new jt(n,t,r,i)}static delta(t,n,r={x:"center",y:"center"}){const i=(s,o)=>{const a=r[o],l=o==="x"?s.left:s.top,u=o==="x"?s.width:s.height;return a=="start"?l:a=="end"?l+u:l+u/2};return Ze.delta({x:i(t,"x"),y:i(t,"y")},{x:i(n,"x"),y:i(n,"y")})}static intersectionRatio(t,n){return jt.from(t).intersectionRatio(jt.from(n))}};function zu(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=s-n;return r<i&&n<s?o*a:0}var Ol,Tl,ws,Xr,Er,Ii=class extends(ws=Kt,Tl=[ge],Ol=[ge],ws){constructor(t){const n=Ze.from(t);super(n,(r,i)=>Ze.equals(r,i)),Au(Er,5,this),Lu(this,Xr,0),this.velocity={x:0,y:0}}get delta(){return Ze.delta(this.current,this.initial)}get direction(){const{current:t,previous:n}=this;if(!n)return null;const r={x:t.x-n.x,y:t.y-n.y};return!r.x&&!r.y?null:Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up"}get current(){return super.current}set current(t){const{current:n}=this,r=Ze.from(t),i={x:r.x-n.x,y:r.y-n.y},s=Date.now(),o=s-Ru(this,Xr),a=l=>Math.round(l/o*100);ue(()=>{Wu(this,Xr,s),this.velocity={x:a(i.x),y:a(i.y)},super.current=r})}reset(t=this.defaultValue){super.reset(Ze.from(t)),this.velocity={x:0,y:0}}};Er=Mu(ws);Xr=new WeakMap;$l(Er,2,"delta",Tl,Ii);$l(Er,2,"direction",Ol,Ii);ju(Er,Ii);function _s({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return typeof n=="number"?Math.sqrt(fa(r,2)+fa(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n?i>n.y:!1}var Dl=(e=>(e.Horizontal="x",e.Vertical="y",e))(Dl||{}),Cl=Object.values(Dl),Fu=Object.create,ao=Object.defineProperty,Nu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptor,Vu=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Il=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Cn=e=>{throw TypeError(e)},ks=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lo=(e,t)=>{for(var n in t||(t={}))Pl.call(t,n)&&ks(e,n,t[n]);if(hi)for(var n of hi(t))Ml.call(t,n)&&ks(e,n,t[n]);return e},co=(e,t)=>Nu(e,Vu(t)),ha=(e,t)=>ao(e,"name",{value:t,configurable:!0}),jl=(e,t)=>{var n={};for(var r in e)Pl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&hi)for(var r of hi(e))t.indexOf(r)<0&&Ml.call(e,r)&&(n[r]=e[r]);return n},Pn=e=>{var t;return[,,,Fu((t=e?.[Il("metadata")])!=null?t:null)]},Al=["class","method","getter","setter","accessor","field","value","get","set"],Kn=e=>e!==void 0&&typeof e!="function"?Cn("Function expected"):e,Gu=(e,t,n,r,i)=>({kind:Al[e],name:t,metadata:r,addInitializer:s=>n._?Cn("Already initialized"):i.push(Kn(s||null))}),Yt=(e,t)=>ks(t,Il("metadata"),e[3]),N=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Y=(e,t,n,r,i,s)=>{var o,a,l,u,d,c=t&7,h=!!(t&8),f=!!(t&16),v=c>3?e.length+1:c?h?1:2:0,p=Al[c+5],w=c>3&&(e[v-1]=[]),x=e[v]||(e[v]=[]),m=c&&(!f&&!h&&(i=i.prototype),c<5&&(c>3||!f)&&Bu(c<4?i:{get[n](){return pe(this,s)},set[n](b){return He(this,s,b)}},n));c?f&&c<4&&ha(s,(c>2?"set ":c>1?"get ":"")+n):ha(i,n);for(var g=r.length-1;g>=0;g--)u=Gu(c,n,l={},e[3],x),c&&(u.static=h,u.private=f,d=u.access={has:f?b=>Uu(i,b):b=>n in b},c^3&&(d.get=f?b=>(c^1?pe:Rl)(b,i,c^4?s:m.get):b=>b[n]),c>2&&(d.set=f?(b,_)=>He(b,i,_,c^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[g])(c?c<4?f?s:m[p]:c>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,c^4||a===void 0?Kn(a)&&(c>4?w.unshift(a):c?f?s=a:m[p]=a:i=a):typeof a!="object"||a===null?Cn("Object expected"):(Kn(o=a.get)&&(m.get=o),Kn(o=a.set)&&(m.set=o),Kn(o=a.init)&&w.unshift(o));return c||Yt(e,i),m&&ao(i,n,m),f?c^4?s:m:i},uo=(e,t,n)=>t.has(e)||Cn("Cannot "+n),Uu=(e,t)=>Object(t)!==t?Cn('Cannot use the "in" operator on this value'):e.has(t),pe=(e,t,n)=>(uo(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Cn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),He=(e,t,n,r)=>(uo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rl=(e,t,n)=>(uo(e,t,"access private method"),n);function Ll(e,t){return{plugin:e,options:t}}function Or(e){return t=>Ll(e,t)}function gr(e){return typeof e=="function"?{plugin:e,options:void 0}:e}var Wl,vr,fo,Qr;Wl=[K];var Me=class{constructor(e,t){this.manager=e,this.options=t,J(this,fo,N(vr,8,this,!1)),N(vr,11,this),J(this,Qr,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return H(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=tt(e.bind(this));return pe(this,Qr).add(t),t}destroy(){pe(this,Qr).forEach(e=>e())}static configure(e){return Ll(this,e)}};vr=Pn(null);fo=new WeakMap;Qr=new WeakMap;Y(vr,4,"disabled",Wl,Me,fo);Yt(vr,Me);var Tr=class extends Me{},Zr,Zi=class{constructor(e){this.manager=e,this.instances=new Map,J(this,Zr,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(gr).reduce((r,i)=>{const s=r.find(({plugin:o})=>o===i.plugin);return s?(s.options=i.options,r):[...r,i]},[]),n=t.map(({plugin:r})=>r);for(const r of pe(this,Zr))if(!n.includes(r)){if(r.prototype instanceof Tr)continue;this.unregister(r)}for(const{plugin:r,options:i}of t)this.register(r,i);He(this,Zr,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};Zr=new WeakMap;function qu(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}var Wr=[],an,ln,Hu=class extends Me{constructor(e){super(e),J(this,an),J(this,ln),this.computeCollisions=this.computeCollisions.bind(this),He(this,ln,En(Wr)),this.destroy=$r(()=>{const t=this.computeCollisions(),n=H(()=>this.manager.dragOperation.position.current);if(t!==Wr){const r=pe(this,an);if(He(this,an,n),r&&n.x==r.x&&n.y==r.y)return}else He(this,an,void 0);pe(this,ln).value=t},()=>{const{dragOperation:t}=this.manager;t.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){H(()=>{e?pe(this,ln).value=this.computeCollisions():He(this,an,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:s,status:o}=r;if(!o.initialized||!s)return Wr;const a=[],l=[];for(const u of e??n.droppables){if(u.disabled||i&&!u.accepts(i))continue;const d=t??u.collisionDetector;if(!d)continue;l.push(u),u.shape;const c=H(()=>d({droppable:u,dragOperation:r}));c&&(u.collisionPriority!=null&&(c.priority=u.collisionPriority),a.push(c))}return l.length===0?Wr:(a.sort(qu),a)}get collisions(){return pe(this,ln).value}};an=new WeakMap;ln=new WeakMap;var zl,Fl,Nl,ho,Bl,it,po,pn,go,vo;Nl=[K],Fl=[K],zl=[K];var yt=class At{constructor(t,n){J(this,po,N(it,8,this)),N(it,11,this),J(this,pn),J(this,go,N(it,12,this)),N(it,15,this),J(this,vo,N(it,16,this)),N(it,19,this);const{effects:r,id:i,data:s={},disabled:o=!1,register:a=!0}=t;let l=i;He(this,pn,En(i)),this.manager=n,this.data=s,this.disabled=o,this.effects=()=>{var u;return[()=>{const{id:d,manager:c}=this;if(d!==l)return l=d,c?.registry.register(this),()=>c?.registry.unregister(this)},...(u=r?.())!=null?u:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),n&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=pe(this,pn).value;return(n=(t=At.pendingIdChanges)==null?void 0:t.get(this))!=null?n:r}set id(t){var n,r;const i=(r=(n=At.pendingIdChanges)==null?void 0:n.get(this))!=null?r:pe(this,pn).peek();t!==i&&(At.pendingIdChanges||(At.pendingIdChanges=new Map,queueMicrotask(()=>{var s;return Rl(s=At,ho,Bl).call(s)})),At.pendingIdChanges.set(this,t))}register(){var t;return(t=this.manager)==null?void 0:t.registry.register(this)}unregister(){var t;(t=this.manager)==null||t.registry.unregister(this)}destroy(){var t;(t=this.manager)==null||t.registry.unregister(this)}};it=Pn(null);ho=new WeakSet;Bl=function(){const e=yt.pendingIdChanges;yt.pendingIdChanges=null,e&&ue(()=>{for(const[t,n]of e)pe(t,pn).value=n})};po=new WeakMap;pn=new WeakMap;go=new WeakMap;vo=new WeakMap;Y(it,4,"manager",Nl,yt,po);Y(it,4,"data",Fl,yt,go);Y(it,4,"disabled",zl,yt,vo);J(yt,ho);Yt(it,yt);yt.pendingIdChanges=null;var ji=yt,pa=class{constructor(){this.map=En(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r&&r.id===e){const a=this.cleanupFunctions.get(r);a?.(),this.cleanupFunctions.delete(r)}const s=new Map(n);for(const[a,l]of n)if(l===t&&a!==e){s.delete(a);break}s.set(e,t),this.map.value=s;const o=$r(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);r?.(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);t?.(),e.destroy()}this.map.value=new Map}},Vl,Gl,Ul,ql,Hl,Kl,Ss,je,mo,yo,bo,ut=class extends(Ss=ji,Kl=[K],Hl=[K],ql=[K],Ul=[ge],Gl=[ge],Vl=[ge],Ss){constructor(t,n){var r=t,{modifiers:i,type:s,sensors:o,plugins:a,effects:l}=r,u=jl(r,["modifiers","type","sensors","plugins","effects"]);super(co(lo({},u),{effects:()=>{var d;return[...(d=l?.())!=null?d:[],()=>{const{manager:c,plugins:h}=this;if(!(!c||!h))for(const f of h){const{plugin:v}=gr(f);c.registry.plugins.register(v)}}]}}),n),N(je,5,this),J(this,mo,N(je,8,this)),N(je,11,this),J(this,yo,N(je,12,this)),N(je,15,this),J(this,bo,N(je,16,this,this.isDragSource?"dragging":"idle")),N(je,19,this),this.type=s,this.sensors=o,this.modifiers=i,this.alignment=u.alignment,this.plugins=a}pluginConfig(t){if(this.plugins)for(const n of this.plugins){const r=gr(n);if(r.plugin===t)return r.options}}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.source)==null?void 0:n.id)===this.id}};je=Pn(Ss);mo=new WeakMap;yo=new WeakMap;bo=new WeakMap;Y(je,4,"type",Kl,ut,mo);Y(je,4,"modifiers",Hl,ut,yo);Y(je,4,"status",ql,ut,bo);Y(je,2,"isDropping",Ul,ut);Y(je,2,"isDragging",Gl,ut);Y(je,2,"isDragSource",Vl,ut);Yt(je,ut);var Yl,Xl,Ql,Zl,Jl,ec,$s,xe,xo,wo,_o,ko,So,ft=class extends($s=ji,ec=[K],Jl=[K],Zl=[K],Ql=[K],Xl=[K],Yl=[ge],$s){constructor(t,n){var r=t,{accept:i,collisionDetector:s,collisionPriority:o,type:a}=r,l=jl(r,["accept","collisionDetector","collisionPriority","type"]);super(l,n),N(xe,5,this),J(this,xo,N(xe,8,this)),N(xe,11,this),J(this,wo,N(xe,12,this)),N(xe,15,this),J(this,_o,N(xe,16,this)),N(xe,19,this),J(this,ko,N(xe,20,this)),N(xe,23,this),J(this,So,N(xe,24,this)),N(xe,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=o,this.type=a}accepts(t){const{accept:n}=this;return n?typeof n=="function"?n(t):t.type?Array.isArray(n)?n.includes(t.type):t.type===n:!1:!0}get isDropTarget(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.target)==null?void 0:n.id)===this.id}};xe=Pn($s);xo=new WeakMap;wo=new WeakMap;_o=new WeakMap;ko=new WeakMap;So=new WeakMap;Y(xe,4,"accept",ec,ft,xo);Y(xe,4,"type",Jl,ft,wo);Y(xe,4,"collisionDetector",Zl,ft,_o);Y(xe,4,"collisionPriority",Ql,ft,ko);Y(xe,4,"shape",Xl,ft,So);Y(xe,2,"isDropTarget",Yl,ft);Yt(xe,ft);var Ku=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const i of r)i(...t)}},Yu=class extends Ku{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Jr(e,t=!0){let n=!1;return co(lo({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var Xu=class extends Tr{constructor(e){super(e);const t=(r,i)=>r.map(({id:s})=>s).join("")===i.map(({id:s})=>s).join("");let n=[];this.destroy=$r(()=>{const{dragOperation:r,collisionObserver:i}=e;r.status.initializing&&(n=[],i.enable())},()=>{const{collisionObserver:r,monitor:i}=e,{collisions:s}=r;if(r.isDisabled()||ji.pendingIdChanges)return;const o=Jr({collisions:s});if(i.dispatch("collision",o),o.defaultPrevented||t(s,n))return;n=s;const[a]=s;H(()=>{var l;a?.id!==((l=e.dragOperation.target)==null?void 0:l.id)&&(r.disable(),e.actions.setDropTarget(a?.id).then(()=>{r.enable()}))})})}},Mn=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(Mn||{}),In=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(In||{}),tc,nc,rc,ic,sc,oc,ac,et,$o;ac=[K],oc=[ge],sc=[ge],ic=[ge],rc=[ge],nc=[ge],tc=[ge];var bt=class{constructor(){N(et,5,this),J(this,$o,N(et,8,this,"idle")),N(et,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){const{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};et=Pn(null);$o=new WeakMap;Y(et,4,"value",ac,bt,$o);Y(et,2,"current",oc,bt);Y(et,2,"idle",sc,bt);Y(et,2,"initializing",ic,bt);Y(et,2,"initialized",rc,bt);Y(et,2,"dragging",nc,bt);Y(et,2,"dropped",tc,bt);Yt(et,bt);var Qu=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e=="string"||typeof e=="number"?e:e.id}setDropTarget(e){return H(()=>{const{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Jr({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return H(()=>{const{dragOperation:t}=this.manager;if(e.source!=null&&this.setDragSource(e.source),!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:i,coordinates:s}=e;ue(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=i??null,t.position.reset(s)});const o=Jr({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:a}=t;a.current==="initializing"&&ue(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:i,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return H(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:s}=r;if(!i.dragging||!s||s.signal.aborted)return;const o=Jr({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},(t=e.cancelable)!=null?t:!0);((n=e.propagate)==null||n)&&this.manager.monitor.dispatch("dragmove",o),queueMicrotask(()=>{var a,l,u,d,c;if(o.defaultPrevented)return;const h=(c=e.to)!=null?c:{x:r.position.current.x+((l=(a=e.by)==null?void 0:a.x)!=null?l:0),y:r.position.current.y+((d=(u=e.by)==null?void 0:u.y)!=null?d:0)};r.position.current=h})})}stop(e={}){return H(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let s;const o=()=>{const l={resume:()=>{},abort:()=>{}};return s=new Promise((u,d)=>{l.resume=u,l.abort=d}),l};i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const l=H(()=>{var d;return((d=r.source)==null?void 0:d.status)==="dropping"}),u=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(l){const{source:d}=r,c=tt(()=>{d?.status==="idle"&&(c(),u())})}else this.manager.renderer.rendering.then(u)})};r.canceled=(t=e.canceled)!=null?t:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:(n=e.canceled)!=null?n:!1,suspend:o}),s?s.then(a).catch(()=>r.reset()):a()})}},bn=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Zu=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const n of e??[])n.controller=this}onEvent(e){var t;if(!this.activated)if((t=this.constraints)!=null&&t.length)for(const n of this.constraints)n.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},ei,lc=class{constructor(e){this.options=e,J(this,ei)}set controller(e){He(this,ei,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;(t=pe(this,ei))==null||t.activate(e)}};ei=new WeakMap;var ga=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Ju=class{constructor(e){this.draggables=new pa,this.droppables=new pa,this.plugins=new Zi(e),this.sensors=new Zi(e),this.modifiers=new Zi(e)}register(e,t){if(e instanceof ut)return this.draggables.register(e.id,e);if(e instanceof ft)return this.droppables.register(e.id,e);if(e.prototype instanceof ga)return this.modifiers.register(e,t);if(e.prototype instanceof bn)return this.sensors.register(e,t);if(e.prototype instanceof Me)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof ji)return e instanceof ut?this.draggables.unregister(e.id,e):e instanceof ft?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof ga)return this.modifiers.unregister(e);if(e.prototype instanceof bn)return this.sensors.unregister(e);if(e.prototype instanceof Me)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},cc,dc,uc,fc,hc,pc,gc,vc,mc,Yn,ti,cn,ce,Eo,Oo,To,Do,Co,Xn;mc=[ge],vc=[K],gc=[K],pc=[K],hc=[K],fc=[K],uc=[ge],dc=[ge],cc=[ge];var ot=class{constructor(e){N(ce,5,this),J(this,Yn),J(this,ti),J(this,cn,new Kt(void 0,(t,n)=>t&&n?t.equals(n):t===n)),this.status=new bt,J(this,Eo,N(ce,8,this,!1)),N(ce,11,this),J(this,Oo,N(ce,12,this,null)),N(ce,15,this),J(this,To,N(ce,16,this,null)),N(ce,19,this),J(this,Do,N(ce,20,this,null)),N(ce,23,this),J(this,Co,N(ce,24,this,[])),N(ce,27,this),this.position=new Ii({x:0,y:0}),J(this,Xn,{x:0,y:0}),He(this,Yn,e)}get shape(){const{current:e,initial:t,previous:n}=pe(this,cn);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?pe(this,cn).current=e:pe(this,cn).reset()}get source(){var e;const t=this.sourceIdentifier;if(t==null)return null;const n=pe(this,Yn).registry.draggables.get(t);return n&&He(this,ti,n),(e=n??pe(this,ti))!=null?e:null}get target(){var e;const t=this.targetIdentifier;return t!=null&&(e=pe(this,Yn).registry.droppables.get(t))!=null?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const r of this.modifiers)n=r.apply(co(lo({},this.snapshot()),{transform:n}));return He(this,Xn,n),n}snapshot(){return H(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:pe(this,Xn),shape:this.shape?Qi(this.shape):null,position:Qi(this.position),status:Qi(this.status),canceled:this.canceled}))}reset(){ue(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,pe(this,cn).reset(),this.position.reset({x:0,y:0}),He(this,Xn,{x:0,y:0}),this.modifiers=[]})}};ce=Pn(null);Yn=new WeakMap;ti=new WeakMap;cn=new WeakMap;Eo=new WeakMap;Oo=new WeakMap;To=new WeakMap;Do=new WeakMap;Co=new WeakMap;Xn=new WeakMap;Y(ce,2,"shape",mc,ot);Y(ce,4,"canceled",vc,ot,Eo);Y(ce,4,"activatorEvent",gc,ot,Oo);Y(ce,4,"sourceIdentifier",pc,ot,To);Y(ce,4,"targetIdentifier",hc,ot,Do);Y(ce,4,"modifiers",fc,ot,Co);Y(ce,2,"source",uc,ot);Y(ce,2,"target",dc,ot);Y(ce,2,"transform",cc,ot);Yt(ce,ot);var ef={get rendering(){return Promise.resolve()}};function st(e,t){return typeof e=="function"?e(t):e??t}var tf=class{constructor(t){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(h=>h.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var n;const r=t??{},i=st(r.plugins,[]),s=st(r.sensors,[]),o=st(r.modifiers,[]),a=(n=r.renderer)!=null?n:ef,l=new Yu(this),u=new Ju(this);this.registry=u,this.monitor=l,this.renderer=a,this.actions=new Qu(this),this.dragOperation=new ot(this),this.collisionObserver=new Hu(this),this.plugins=[Xu,...i],this.modifiers=o,this.sensors=s;const{destroy:d}=this,c=$r(()=>{var h,f,v;const p=H(()=>this.dragOperation.modifiers),w=this.modifiers;for(const x of p)w.includes(x)||x.destroy();this.dragOperation.modifiers=(v=(f=(h=this.dragOperation.source)==null?void 0:h.modifiers)==null?void 0:f.map(x=>{const{plugin:m,options:g}=gr(x);return new m(this,g)}))!=null?v:w});this.destroy=()=>{c(),d()}}get plugins(){return this.registry.plugins.values}set plugins(t){this.registry.plugins.values=t}get modifiers(){return this.registry.modifiers.values}set modifiers(t){this.registry.modifiers.values=t}get sensors(){return this.registry.sensors.values}set sensors(t){this.registry.sensors.values=t}},yc=e=>{throw TypeError(e)},Po=(e,t,n)=>t.has(e)||yc("Cannot "+n),F=(e,t,n)=>(Po(e,t,"read from private field"),t.get(e)),Ne=(e,t,n)=>t.has(e)?yc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(Po(e,t,"write to private field"),t.set(e,n),n),bc=(e,t,n)=>(Po(e,t,"access private method"),n);function Ai(e){return e?e instanceof KeyframeEffect?!0:"getKeyframes"in e&&typeof e.getKeyframes=="function":!1}function xc(e,t){const n=e.getAnimations();let r=null;for(const i of n){if(i.playState!=="running")continue;const{effect:s}=i,a=(Ai(s)?s.getKeyframes():[]).filter(t);a.length>0&&(r=[a[a.length-1],i])}return r}function Ri(e){const{width:t,height:n,top:r,left:i,bottom:s,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:s,right:o}}function Mo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Dr(e){return"nodeType"in e}function Ke(e){var t,n,r;return e?Mo(e)?e:Dr(e)?"defaultView"in e?(t=e.defaultView)!=null?t:window:(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window:window:window}function Io(e){const{Document:t}=Ke(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Tt(e){return!e||Mo(e)?!1:e instanceof Ke(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("html")}function wc(e){return e instanceof Ke(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("svg")}function jn(e){return e?Mo(e)?e.document:Dr(e)?Io(e)?e:Tt(e)||wc(e)?e.ownerDocument:document:document:document}function nf(e){var t,n,r,i;const{documentElement:s}=jn(e),o=Ke(e).visualViewport,a=(t=o?.width)!=null?t:s.clientWidth,l=(n=o?.height)!=null?n:s.clientHeight,u=(r=o?.offsetTop)!=null?r:0,d=(i=o?.offsetLeft)!=null?i:0;return{top:u,left:d,right:d+a,bottom:u+l,width:a,height:l}}function rf(e,t){if(sf(e)&&e.open===!1)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n==="visible"&&r==="visible"&&i==="visible"}function sf(e){return e.tagName==="DETAILS"}function mr(e,t=e.getBoundingClientRect(),n=0){var r,i,s,o,a;let l=t;const{ownerDocument:u}=e,d=(r=u.defaultView)!=null?r:window;let c=e.parentElement;for(;c&&c!==u.documentElement;){if(!rf(c)){const g=c.getBoundingClientRect(),b=n*(g.bottom-g.top),_=n*(g.right-g.left),$=n*(g.bottom-g.top),O=n*(g.right-g.left);l={top:Math.max(l.top,g.top-b),right:Math.min(l.right,g.right+_),bottom:Math.min(l.bottom,g.bottom+$),left:Math.max(l.left,g.left-O),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}c=c.parentElement}const h=d.visualViewport,f=(i=h?.offsetTop)!=null?i:0,v=(s=h?.offsetLeft)!=null?s:0,p=(o=h?.width)!=null?o:d.innerWidth,w=(a=h?.height)!=null?a:d.innerHeight,x=n*w,m=n*p;return l={top:Math.max(l.top,f-x),right:Math.min(l.right,v+p+m),bottom:Math.min(l.bottom,f+w+x),left:Math.max(l.left,v-m),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function xn(e){return{x:e.clientX,y:e.clientY}}var _c=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Es(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const i=r.contentDocument;i&&!t.has(i)&&n.push(...Es(i,t))}catch{}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...Es(i.document,t))}}catch{}return n}function jo(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kc(){var e,t;const n=jo()?window.visualViewport:null;return{x:(e=n?.offsetLeft)!=null?e:0,y:(t=n?.offsetTop)!=null?t:0}}function Ao(e){return!e||!Dr(e)?!1:e instanceof Ke(e).ShadowRoot}function pi(e){if(e&&Dr(e)){let t=e.getRootNode();if(Ao(t))return t;if(t instanceof Document)return t}return jn(e)}function Ro(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function of(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((s,o)=>{const a=r[o];if(va(s)&&va(a)&&(s.type!=="file"&&(s.value=a.value),s.type==="radio"&&s.name&&(s.name=`Cloned__${s.name}`)),ma(s)&&ma(a)&&a.width>0&&a.height>0){const l=s.getContext("2d");l?.drawImage(a,0,0)}}),n}function va(e){return"value"in e}function ma(e){return e.tagName==="CANVAS"}function Sc(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(af(r)){const{contentDocument:i}=r;if(i){const{left:s,top:o}=r.getBoundingClientRect();return Sc(i,{x:t-s,y:n-o})}}return r}function af(e){return e?.tagName==="IFRAME"}var Os=new WeakMap;function lf(e){return e.closest(`
|
|
2
2
|
input:not([disabled]),
|
|
3
3
|
select:not([disabled]),
|
|
4
4
|
textarea:not([disabled]),
|
package/dist/builder/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as M, jsx as x, Fragment as Be } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as Xe, useRef as ue, useLayoutEffect as Cu, useMemo as se, useState as L, useCallback as Ce, useInsertionEffect as Pu, createContext as Tu, memo as Mu, forwardRef as Iu, startTransition as Au, useImperativeHandle as Ru, useContext as Lu, createElement as zu } from "react";
|
|
3
3
|
import { flushSync as Wu } from "react-dom";
|
|
4
4
|
import { Button as $e, Divider as Es, Tooltip as Cn, IconButton as Ds, Chip as _o, Stack as me, Typography as ne, TextField as We, MenuItem as $t, Box as be, List as Fu, ListItemButton as Nu, ListItemText as Cl, Checkbox as Cs, ToggleButtonGroup as ju, ToggleButton as Oa, Autocomplete as Vu, Popover as Pl, FormControlLabel as Bu, Switch as Gu, Alert as Bt } from "@mui/material";
|
|
5
|
-
import { e as sn, f as Tl, A as Ml, g as Ui, S as Il, G as di, T as Hu, h as Uu, i as qu, j as Ku, t as Yu, k as Xu, l as Qu, n as Al, o as Zu, p as ui, q as Ju, s as ef, u as On, v as tf, w as nf, x as rf, y as sf, z as of, B as fi, C as Ea, E as af, L as lf, F as cf, H as df, I as uf, J as ff, K as hf, M as pf } from "../Dashboard-
|
|
6
|
-
import { aH as ct, aF as Rl } from "../ServerProvider-
|
|
5
|
+
import { e as sn, f as Tl, A as Ml, g as Ui, S as Il, G as di, T as Hu, h as Uu, i as qu, j as Ku, t as Yu, k as Xu, l as Qu, n as Al, o as Zu, p as ui, q as Ju, s as ef, u as On, v as tf, w as nf, x as rf, y as sf, z as of, B as fi, C as Ea, E as af, L as lf, F as cf, H as df, I as uf, J as ff, K as hf, M as pf } from "../Dashboard-H1kJlDFo.es.js";
|
|
6
|
+
import { aH as ct, aF as Rl } from "../ServerProvider-Boxrv6Ym.es.js";
|
|
7
7
|
import { useQueryClient as gf } from "@tanstack/react-query";
|
|
8
8
|
var vf = Symbol.for("preact-signals");
|
|
9
9
|
function qi() {
|