@perspective-dev/viewer 5.9.2 → 5.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var Q={type:"split-layout",orientation:"horizontal",sizes:[],children:[]},A=Object.freeze({CUSTOM_EVENT_NAME_PREFIX:"regular-layout",CHILD_ATTRIBUTE_NAME:"name",MIN_DRAG_DISTANCE:10,SHOULD_ROUND:!1,OVERLAY_CLASSNAME:"overlay",MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD:.15,SPLIT_EDGE_TOLERANCE:.33,SPLIT_ROOT_EDGE_TOLERANCE:.03,GRID_TRACK_COLLAPSE_TOLERANCE:.001,OVERLAY_DEFAULT:"absolute",GRID_DIVIDER_SIZE:6,GRID_DIVIDER_CHECK_TARGET:!0,GRID_DIVIDER_TOUCH_RESIZE:!0});function Et(t,e,n){return(e.length===0||Math.abs(n-e[e.length-1])>t.GRID_TRACK_COLLAPSE_TOLERANCE)&&e.push(n),e}function St(t,e){return e.sort((n,r)=>n-r).reduce(Et.bind(void 0,t),[])}function V(t,e,n,r,_){if(t.type==="tab-layout")return[n,r];let i=[n,r];if(t.orientation===e){let o=n,a=r-n;for(let s=0;s<t.children.length;s++){let u=t.sizes[s],g=o+u*a;i.push(...V(t.children[s],e,o,g,_)),o=g}}else for(let o of t.children)i.push(...V(o,e,n,r,_));return St(_,i)}function M(t,e,n){let r=e.findIndex(_=>Math.abs(_-n)<t.GRID_TRACK_COLLAPSE_TOLERANCE);return r===-1?0:r}function tt(t,e,n,r,_,i,o,a){if(t.type==="tab-layout"){let h=t.selected??0,m=M(a,e,r),P=M(a,e,_),G=M(a,n,i),yt=M(a,n,o);return t.tabs.map((It,xt)=>({child:It,colStart:m,colEnd:P,rowStart:G,rowEnd:yt,zIndex:t.tabs.length>1&&xt===h?1:void 0}))}let{children:s,sizes:u,orientation:g}=t,c=g==="horizontal",l=c?r:i,f=c?_-r:o-i,w=[];for(let h=0;h<s.length;h++){let m=l+u[h]*f;c?w.push(...tt(s[h],e,n,l,m,i,o,a)):w.push(...tt(s[h],e,n,r,_,l,m,a)),l=m}return w}var et=(t,e)=>`:host ::slotted(*){display:none}:host{display:grid;grid-template-rows:${t};grid-template-columns:${e}}`,U=(t,e,n,r,_)=>`:host ::slotted([${t.CHILD_ATTRIBUTE_NAME}="${e}"]){display:flex;grid-column:${r};grid-row:${n}${_===void 0?"":`;z-index:${_}`}}`;function C(t,e,n=A){if(t.type==="tab-layout"){let c=t.selected??0,l=t.tabs.length>1;return[et("100%","100%"),...t.tabs.map((f,w)=>U(n,f,"1","1",l&&w===c?1:void 0))].join(`
2
- `)}let r=c=>c.slice(0,-1).map((l,f)=>c[f+1]-l).map(l=>`${n.SHOULD_ROUND?Math.round(l*100):l*100}fr`).join(" "),_=V(t,"horizontal",0,1,n),i=r(_),o=V(t,"vertical",0,1,n),a=r(o),s=(c,l)=>l-c===1?`${c+1}`:`${c+1} / ${l+1}`,u=tt(t,_,o,0,1,0,1,n),g=[et(a,i)];for(let c of u){let l=s(c.colStart,c.colEnd),f=s(c.rowStart,c.rowEnd);g.push(U(n,c.child,f,l,c.zIndex)),c.child===e?.[1]&&(g.push(U(n,e[0],f,l)),g.push(`:host ::slotted([${n.CHILD_ATTRIBUTE_NAME}=${e[0]}]){z-index:2}`))}return g.join(`
3
- `)}function Ct(t,e=A){return[et("100%","100%"),U(e,t,"1","1")].join(`
4
- `)}var Tt={row_start:0,row_end:1,col_start:0,col_end:1};function T(t,e,n,r=null){return ut(t,e,n,r)}function ut(t,e,n,r,_=null,i=structuredClone(Tt),o=[]){if(t<0||e<0||t>1||e>1)return null;if(n.type==="tab-layout"){let w=n.selected??0,h=i.col_end-i.col_start,m=i.row_end-i.row_start;return{type:"layout-path",layout:n,slot:n.tabs[w],path:o,view_window:i,is_edge:!1,column:t,row:e,column_offset:(t-i.col_start)/h,row_offset:(e-i.row_start)/m,orientation:_||"horizontal"}}let a=n.orientation==="vertical",s=a?e:t,u=a?"row_start":"col_start",g=a?"row_end":"col_end",c=a?r?.rect?.height:r?.rect?.width,l=i[u],f=i[g]-i[u];for(let w=0;w<n.children.length;w++){let h=l+f*n.sizes[w];if(r&&c){let m=r.size/c;if(Math.abs(s-h)<m)return{path:[...o,w],type:n.orientation,view_window:{...i,[u]:l,[g]:h}}}if(s>=l&&(s<h||w===n.children.length-1))return ut(t,e,n.children[w],r,n.orientation,{...i,[u]:l,[g]:h},[...o,w]);l=h}return null}function W(t,e){if(t.type==="tab-layout"){if(t.tabs.includes(e)){let o=t.tabs.filter(a=>a!==e);return o.length===0?structuredClone(Q):{type:"tab-layout",tabs:o}}return structuredClone(t)}let n=structuredClone(t),r=n.children.findIndex(o=>o.type==="tab-layout"?o.tabs.includes(e):!1);if(r!==-1){let o=n.children[r];if(o.tabs.length===1){let a=n.children.filter((u,g)=>g!==r),s=kt(n.sizes,r);if(a.length===1)return a[0];n.children=a,n.sizes=s}else o.tabs.splice(o.tabs.indexOf(e),1),o.selected&&o.selected>=o.tabs.length&&o.selected--;return n}let _=!1,i=n.children.map(o=>{if(o.type==="split-layout"){let a=W(o,e);return a!==o&&(_=!0),a}return o});return _&&(n.children=i),n}function kt(t,e){let n=[],r=t[e],_=0;for(let i=0;i<t.length;i++)i!==e&&(_+=t[i]);for(let i=0;i<t.length;i++)if(i!==e){let o=t[i]/_;n.push(t[i]+r*o)}return n}function z(t,e,n,r){let _=c=>({type:"tab-layout",tabs:[c]});if(n.length===0){if(t.type==="tab-layout")return{type:"tab-layout",tabs:[e,...t.tabs]};if(r)return{type:"split-layout",orientation:r,children:[_(e),t],sizes:[.5,.5]};{let c=[...t.children,_(e)],l=[...t.sizes,K(c.length)];return{...t,children:c,sizes:N(l)}}}let[i,...o]=n;if(r&&o.length===0){if(t.type==="split-layout"&&t.orientation===r){let l=[...t.children];l.splice(i,0,_(e));let f=[...t.sizes];return f.splice(i,0,K(l.length)),{...t,children:l,sizes:N(f)}}let c=i===0?[_(e),t]:[t,_(e)];return{type:"split-layout",orientation:r,children:c,sizes:[.5,.5]}}if(t.type==="tab-layout"){if(o.length===0&&r===void 0&&i>=0&&i<=t.tabs.length){let c=[...t.tabs];return c.splice(i,0,e),{...t,tabs:c}}return z({type:"split-layout",orientation:r||"horizontal",children:[t],sizes:[1]},e,n,r)}if(o.length===0||i===t.children.length){if(r&&t.children[i]){let f={type:"split-layout",orientation:r,children:[_(e),t.children[i]],sizes:[.5,.5]},w=[...t.children];return w[i]=f,{...t,children:w,sizes:N(t.sizes)}}let c=[...t.children];c.splice(i,0,_(e));let l=[...t.sizes];return l.splice(i,0,K(c.length)),{...t,children:c,sizes:N(l)}}let a=t.children[i],s=a.type==="tab-layout"&&o.length>0&&r!==void 0?t.orientation==="horizontal"?"vertical":"horizontal":r,u=z(a,e,o,s),g=[...t.children];return g[i]=u,{...t,children:g}}function K(t){return 1/Math.max(1,t-1)}function N(t){let e=t.reduce((n,r)=>n+r,0);return!Number.isFinite(e)||e<=0?t.map(()=>1/t.length):t.map(n=>n/e)}function Y(t,e,n,r=A){let _=structuredClone(t),i=_,o={horizontal:n||0,vertical:n||0};for(let a=0;a<e.length-1;a++)i.type==="split-layout"&&(o[i.orientation]/=i.sizes[e[a]],i=i.children[e[a]]);if(i.type==="split-layout")if(n===void 0)i.sizes=i.sizes.map(a=>1/i.sizes.length);else{let a=o[i.orientation],s=e[e.length-1];s<i.sizes.length-1&&(i.sizes=At(r,i.sizes,s,a))}return _}function At(t,e,n,r){let _=[...e],i=0;for(let a=0;a<=n;a++)i+=e[a];let o=0;for(let a=n+1;a<e.length;a++)o+=e[a];r=Math.sign(r)*Math.min(Math.abs(r),(1-t.MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD)*(r>0?i:o));for(let a=0;a<=n;a++){let s=e[a]/i;_[a]=e[a]-r*s}for(let a=n+1;a<e.length;a++){let s=e[a]/o;_[a]=e[a]+r*s}return _}function gt(t,e,n,r){let _=parseFloat(n.paddingLeft),i=parseFloat(n.paddingTop),o=e.width-_-parseFloat(n.paddingRight),a=e.height-i-parseFloat(n.paddingBottom),s=_+t.col_start*o,u=i+t.row_start*a,g=(t.col_end-t.col_start)*o,c=(t.row_end-t.row_start)*a;if(r){let l=parseFloat(r.marginTop),f=parseFloat(r.marginRight),w=parseFloat(r.marginBottom),h=parseFloat(r.marginLeft);g-=h+f,c-=l+w}return{x:s,y:u,width:g,height:c}}function Rt(t,e,n,r,_=A,i){if(!r)return`:host ::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){display:none;}`;let o=gt(r.view_window,e,n,i),a=`display:flex;position:absolute!important;z-index:2;top:${o.y}px;left:${o.x}px;height:${o.height}px;width:${o.width}px;`;return`::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){${a}}`}function nt(t){if(t.type==="tab-layout")return t.selected=t.selected||0,t;let e=[],n=[];for(let r=0;r<t.children.length;r++){let _=t.children[r],i=t.sizes[r],o=nt(_);if(o.type==="split-layout"&&o.orientation===t.orientation)for(let a=0;a<o.children.length;a++)e.push(o.children[a]),n.push(o.sizes[a]*i);else e.push(o),n.push(i)}return e.length===1?e[0]:{type:"split-layout",orientation:t.orientation,children:e,sizes:n}}function Pt(t,e){return dt(t,e,[])}function dt(t,e,n){if(e.type==="tab-layout")return e.tabs.includes(t)?n:null;for(let r=0;r<e.children.length;r++){let _=dt(t,e.children[r],[...n,r]);if(_)return _}return null}function Lt(t){let e={};return ft(t,e,[],null,{row_start:0,row_end:1,col_start:0,col_end:1}),e}function ft(t,e,n,r,_){if(t.type==="tab-layout"){let g=t.selected??0,c=t.tabs[g],l=(_.col_start+_.col_end)/2,f=(_.row_start+_.row_end)/2;e[c]={type:"layout-path",layout:t,slot:c,path:n,view_window:_,is_edge:!1,column:l,row:f,column_offset:.5,row_offset:.5,orientation:r||"horizontal"};return}let i=t.orientation==="vertical",o=i?"row_start":"col_start",a=i?"row_end":"col_end",s=_[o],u=_[a]-_[o];for(let g=0;g<t.children.length;g++){let c=s+u*t.sizes[g],l={..._,[o]:s,[a]:c};ft(t.children[g],e,[...n,g],t.orientation,l),s=c}}var Dt=class{constructor(t,e,n){this.S=t,this.P=e,this.g=n}#n=!1;#t=[];#e=null;#r=0;run(t,e,n){return new Promise((r,_)=>{this.#t.push({layout:t,fn:e,overlay:n,resolve:r,reject:_}),this.#n||this.#_()})}resume(){if(this.#e){let t=this.#e;this.#e=null,t()}}cancelPending(){this.#r++;let t=this.#t;this.#t=[];for(let e of t)e.resolve()}async#_(){this.#n=!0;try{for(;this.#t.length>0;){let t=this.#t;this.#t=[];let e=this.#r,n=t[t.length-1];this.#i(n.layout,n.overlay)||await new Promise(_=>{this.#e=_});let r=e!==this.#r;for(let _ of t)try{r||_.fn(),_.resolve()}catch(i){_.reject(i)}}}finally{this.#n=!1}}#i(t,e){this.g?.();let n={calculatePresizePaths:()=>Lt(t),overlay:e},r=new CustomEvent(this.P,{cancelable:!0,detail:n});return this.S.dispatchEvent(r)}};function ot(t,e,n,r,_,i,o=A){if(t<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"horizontal");if(t>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"horizontal");if(e<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"vertical");if(e>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"vertical");let a=_.column_offset<o.SPLIT_EDGE_TOLERANCE||_.column_offset>1-o.SPLIT_EDGE_TOLERANCE,s=_.row_offset<o.SPLIT_EDGE_TOLERANCE||_.row_offset>1-o.SPLIT_EDGE_TOLERANCE;if(a&&s){let u=Math.abs(_.column_offset-.5),g=Math.abs(_.row_offset-.5),c=(i?.width||1)*(_.view_window.col_end-_.view_window.col_start),l=(i?.height||1)*(_.view_window.row_end-_.view_window.row_start),f=c/2-u*c<l/2-g*l;return q(n,r,_,f?_.column_offset<o.SPLIT_EDGE_TOLERANCE:_.row_offset<o.SPLIT_EDGE_TOLERANCE,f?"horizontal":"vertical")}return a?q(n,r,_,_.column_offset<o.SPLIT_EDGE_TOLERANCE,"horizontal"):s?q(n,r,_,_.row_offset<o.SPLIT_EDGE_TOLERANCE,"vertical"):{..._,path:[..._.path,0]}}function j(t,e,n,r,_,i){return q(t,e,{...n,path:r,orientation:i},_,i)}function q(t,e,n,r,_){let i;if(n.orientation===_)if(n.path.length===0)i=[r?0:1];else{let s=n.path[n.path.length-1];i=[...n.path.slice(0,-1),r?s:s+1]}else i=[...n.path,r?0:1];let o=z(t,e,i,_),a=Ot(o,i);return{...n,path:i,slot:n.slot,is_edge:!0,orientation:_,view_window:a}}function Ot(t,e){let n={row_start:0,row_end:1,col_start:0,col_end:1},r=t;for(let _ of e){if(r.type==="tab-layout")break;let i=Math.min(_,r.children.length-1),o=r.orientation==="vertical",a=o?"row_start":"col_start",s=o?"row_end":"col_end",u=n[s]-n[a],g=r.sizes.slice(0,i).reduce((c,l)=>c+l*u,n[a]);n={...n,[a]:g,[s]:g+u*r.sizes[i]},r=r.children[i]}return n}var zt=class{constructor(t){this.p=t}async set(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME,r=this.p.physics.OVERLAY_DEFAULT){let _=this.p,i=W(_.panel,e),o=`:scope > [${_.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=_.querySelector(o);a&&a.classList.add(n);let[s,u,g,c]=_.relativeCoordinates(t,!0),l=T(s,u,i);l&&(l=ot(s,u,i,e,l,g,_.physics));let f=l?{slot:e,path:l}:null;await _.presizeQueue.run(i,()=>{if(r==="grid"&&l){let m=[e,l?.slot],P=C(i,m,_.physics);_.stylesheet.replaceSync(P)}else if(r==="absolute"){let m=C(i,void 0,_.physics);for(;a?.tagName==="SLOT"&&a;)a=a.assignedElements()[0];let P=a?getComputedStyle(a):void 0,G=Rt(e,g,c,l,_.physics,P);_.stylesheet.replaceSync([m,G].join(`
5
- `))}},f);let w=`${_.physics.CUSTOM_EVENT_NAME_PREFIX}-before-update`,h=new CustomEvent(w,{detail:i});_.dispatchEvent(h)}async clear(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME){let r=this.p,_=`:scope > [${r.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,i=r.querySelector(_),o=r.panel;if(t!==null){let a=W(r.panel,e),[s,u,g]=r.relativeCoordinates(t,!1),c=T(s,u,a);if(c){let l=ot(s,u,a,e,c,g,r.physics),f=l.is_edge?l.orientation:void 0;o=z(a,e,l.path,f)}}await r.restore(o),i?.classList.remove(n)}},Mt=class extends HTMLElement{s;n;i;a;d;u;h;o;t;l;E;f;L;constructor(){super(),this.t=A,this.n=structuredClone(Q),this.i=this.n,this.s=this.attachShadow({mode:"open"}),this.s.innerHTML="<slot></slot>",this.a=new CSSStyleSheet,this.d=new CSSStyleSheet,this.h=!1;let t=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-before-resize`;this.l=new Dt(this,t,()=>{this.o=void 0}),this.E=new zt(this.create_overlay_host()),this.s.adoptedStyleSheets=[this.a,this.d]}connectedCallback(){this.L??=new ResizeObserver(()=>{this.o=void 0}),this.L.observe(this),this.addEventListener("dblclick",this.onDblClick),this.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerCancel),this.update_touch_listener()}disconnectedCallback(){this.L?.disconnect(),this.removeEventListener("dblclick",this.onDblClick),this.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointercancel",this.onPointerCancel),this.removeEventListener("lostpointercapture",this.onPointerCancel),this.update_touch_listener()}calculateIntersect=t=>{let[e,n,r]=this.relativeCoordinates(t,!1);return T(e,n,this.n)};calculatePath=t=>Pt(t,this.n);setOverlayState=async(t,e,n,r)=>{await this.E.set(t,e,n,r)};clearOverlayState=async(t,e,n)=>{await this.E.clear(t,e,n)};insertPanel=async(t,e=[],n)=>{let r;typeof n=="boolean"&&n?r="horizontal":typeof n=="string"&&(r=n),await this.restore(z(this.i,t,e,r))};removePanel=async t=>{await this.restore(W(this.i,t))};select=async t=>{let e=structuredClone(this.i),n=this.getPanel(t,e);if(!n)return;let r=n.tabs.indexOf(t);r!==-1&&n.selected!==r&&(n.selected=r,await this.restore(e));let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-select`;this.dispatchEvent(new CustomEvent(_,{detail:{name:t}}))};getPanel=(t,e=this.n)=>{if(e.type==="tab-layout")return e.tabs.includes(t)?e:null;for(let n of e.children){let r=this.getPanel(t,n);if(r)return r}return null};clear=async()=>{await this.restore(Q)};maximize=async t=>{if(!this.getPanel(t,this.i))return;let e={type:"tab-layout",tabs:[t],selected:0};await this.l.run(e,()=>{this.f=t,this.a.replaceSync(Ct(t,this.t))})};minimize=async()=>{this.f!==void 0&&await this.l.run(this.i,()=>{this.f=void 0,this.a.replaceSync(C(this.n,void 0,this.t))})};restoreSync=(t,e=!1)=>{this.l.cancelPending(),this.o=void 0,this.f=void 0,this.n=e?t:nt(t),this.i=this.n;let n=C(this.n,void 0,this.t);this.a.replaceSync(n);let r=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,_=new CustomEvent(r,{detail:this.n});this.dispatchEvent(_)};restore=async(t,e=!1)=>{let n=e?t:nt(t);this.i=n,await this.l.run(n,()=>{this.f=void 0,this.n=n;let r=C(this.n,void 0,this.t);this.a.replaceSync(r);let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,i=new CustomEvent(_,{detail:this.n});this.dispatchEvent(i)})};resumeResize=()=>{this.l.resume()};save=()=>structuredClone(this.n);restorePhysics(t){this.t=Object.freeze({...this.t,...t}),this.update_touch_listener()}savePhysics(){return this.t}relativeCoordinates=(t,e=!0)=>{(e||!this.o)&&(this.o={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.o.box,r=this.o.style,_=parseFloat(r.paddingLeft),i=parseFloat(r.paddingTop),o=n.width-_-parseFloat(r.paddingRight),a=n.height-i-parseFloat(r.paddingBottom),s=t.clientX-n.left-_,u=t.clientY-n.top-i,g=Math.max(0,Math.min(1,s/o)),c=Math.max(0,Math.min(1,u/a));return[g,c,n,r]};realCoordinates=(t,e)=>{this.o||(this.o={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.o.box,r=this.o.style,_;e&&(_=getComputedStyle(e));let i=gt(t,n,r,_);return new DOMRect(n.left+i.x,n.top+i.y,i.width,i.height)};diffCoordinates=(t,e)=>{let[n,r,_]=this.relativeCoordinates(t,!1),i=(n-e.column)*_.width,o=(r-e.row)*_.height;return Math.sqrt(i**2+o**2)};create_overlay_host(){let t=this;return{get panel(){return t.i},get physics(){return t.t},get stylesheet(){return t.a},get presizeQueue(){return t.l},relativeCoordinates:(e,n)=>t.relativeCoordinates(e,n),restore:(e,n)=>t.restore(e,n),querySelector:e=>t.querySelector(e),dispatchEvent:e=>t.dispatchEvent(e)}}onDblClick=async t=>{let[e,n,r]=this.relativeCoordinates(t,!1),_=T(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});if(_?.type==="horizontal"||_?.type==="vertical"){let i=Y(this.i,_.path,void 0);await this.restore(i,!0)}};hit_divider(t,e){if(this.t.GRID_DIVIDER_CHECK_TARGET&&e!==this)return null;let[n,r,_]=this.relativeCoordinates(t),i=this.t.GRID_DIVIDER_SIZE,o=T(n,r,this.n,{rect:_,size:i});return o&&o.type!=="layout-path"?[o,n,r]:null}update_touch_listener(){this.isConnected&&this.t.GRID_DIVIDER_TOUCH_RESIZE?this.addEventListener("touchstart",this.onTouchStart,{passive:!1}):this.removeEventListener("touchstart",this.onTouchStart)}onTouchStart=t=>{let e=t.changedTouches[0];t.cancelable&&e&&this.hit_divider(e,t.target)&&t.preventDefault()};onPointerDown=t=>{if(t.button!==0)return;let e=this.hit_divider(t,t.target);e&&(this.u=[...e,t.pointerId],this.setPointerCapture(t.pointerId),t.preventDefault())};onPointerCancel=async t=>{this.u?.[3]===t.pointerId&&(this.u=void 0,await this.restore(this.i,!0))};onPointerMove=async t=>{if(this.u){let[i,o]=this.relativeCoordinates(t,!1),[{path:a,type:s},u,g]=this.u,c=s==="horizontal"?u-i:g-o,l=Y(this.n,a,c);await this.l.run(l,()=>{this.a.replaceSync(C(l,void 0,this.t))})}if(this.t.GRID_DIVIDER_CHECK_TARGET&&t.target!==this){this.h&&(this.h=!1,this.d.replaceSync(""));return}let[e,n,r]=this.relativeCoordinates(t,!1),_=T(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});_?.type==="vertical"?(this.d.replaceSync(":host{cursor:row-resize"),this.h=!0):_?.type==="horizontal"?(this.d.replaceSync(":host{cursor:col-resize"),this.h=!0):this.h&&(this.h=!1,this.d.replaceSync(""))};onPointerUp=async t=>{let e=this.u;if(e){this.u=void 0,this.releasePointerCapture(t.pointerId);let[n,r]=this.relativeCoordinates(t,!1),[{path:_,type:i},o,a]=e,s=i==="horizontal"?o-n:a-r,u=Y(this.i,_,s);await this.restore(u,!0)}}},Nt=`
1
+ var Q={type:"split-layout",orientation:"horizontal",sizes:[],children:[]},A=Object.freeze({CUSTOM_EVENT_NAME_PREFIX:"regular-layout",CHILD_ATTRIBUTE_NAME:"name",MIN_DRAG_DISTANCE:10,SHOULD_ROUND:!1,OVERLAY_CLASSNAME:"overlay",MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD:.15,SPLIT_EDGE_TOLERANCE:.33,SPLIT_ROOT_EDGE_TOLERANCE:.03,GRID_TRACK_COLLAPSE_TOLERANCE:.001,OVERLAY_DEFAULT:"absolute",GRID_DIVIDER_SIZE:6,GRID_DIVIDER_CHECK_TARGET:!0,GRID_DIVIDER_TOUCH_RESIZE:!0});function St(t,e,n){return(e.length===0||Math.abs(n-e[e.length-1])>t.GRID_TRACK_COLLAPSE_TOLERANCE)&&e.push(n),e}function Ct(t,e){return e.sort((n,r)=>n-r).reduce(St.bind(void 0,t),[])}function V(t,e,n,r,_){if(t.type==="tab-layout")return[n,r];let i=[n,r];if(t.orientation===e){let o=n,a=r-n;for(let s=0;s<t.children.length;s++){let u=t.sizes[s],g=o+u*a;i.push(...V(t.children[s],e,o,g,_)),o=g}}else for(let o of t.children)i.push(...V(o,e,n,r,_));return Ct(_,i)}function M(t,e,n){let r=e.findIndex(_=>Math.abs(_-n)<t.GRID_TRACK_COLLAPSE_TOLERANCE);return r===-1?0:r}function tt(t,e,n,r,_,i,o,a){if(t.type==="tab-layout"){let h=t.selected??0,m=M(a,e,r),P=M(a,e,_),G=M(a,n,i),It=M(a,n,o);return t.tabs.map((xt,Et)=>({child:xt,colStart:m,colEnd:P,rowStart:G,rowEnd:It,zIndex:t.tabs.length>1&&Et===h?1:void 0}))}let{children:s,sizes:u,orientation:g}=t,c=g==="horizontal",l=c?r:i,b=c?_-r:o-i,w=[];for(let h=0;h<s.length;h++){let m=l+u[h]*b;c?w.push(...tt(s[h],e,n,l,m,i,o,a)):w.push(...tt(s[h],e,n,r,_,l,m,a)),l=m}return w}var et=(t,e)=>`:host ::slotted(*){display:none}:host{display:grid;grid-template-rows:${t};grid-template-columns:${e}}`,U=(t,e,n,r,_)=>`:host ::slotted([${t.CHILD_ATTRIBUTE_NAME}="${e}"]){display:flex;grid-column:${r};grid-row:${n}${_===void 0?"":`;z-index:${_}`}}`;function C(t,e,n=A){if(t.type==="tab-layout"){let c=t.selected??0,l=t.tabs.length>1;return[et("100%","100%"),...t.tabs.map((b,w)=>U(n,b,"1","1",l&&w===c?1:void 0))].join(`
2
+ `)}let r=c=>c.slice(0,-1).map((l,b)=>c[b+1]-l).map(l=>`${n.SHOULD_ROUND?Math.round(l*100):l*100}fr`).join(" "),_=V(t,"horizontal",0,1,n),i=r(_),o=V(t,"vertical",0,1,n),a=r(o),s=(c,l)=>l-c===1?`${c+1}`:`${c+1} / ${l+1}`,u=tt(t,_,o,0,1,0,1,n),g=[et(a,i)];for(let c of u){let l=s(c.colStart,c.colEnd),b=s(c.rowStart,c.rowEnd);g.push(U(n,c.child,b,l,c.zIndex)),c.child===e?.[1]&&(g.push(U(n,e[0],b,l)),g.push(`:host ::slotted([${n.CHILD_ATTRIBUTE_NAME}=${e[0]}]){z-index:2}`))}return g.join(`
3
+ `)}function Tt(t,e=A){return[et("100%","100%"),U(e,t,"1","1")].join(`
4
+ `)}var kt={row_start:0,row_end:1,col_start:0,col_end:1};function T(t,e,n,r=null){return gt(t,e,n,r)}function gt(t,e,n,r,_=null,i=structuredClone(kt),o=[]){if(t<0||e<0||t>1||e>1)return null;if(n.type==="tab-layout"){let w=n.selected??0,h=i.col_end-i.col_start,m=i.row_end-i.row_start;return{type:"layout-path",layout:n,slot:n.tabs[w],path:o,view_window:i,is_edge:!1,column:t,row:e,column_offset:(t-i.col_start)/h,row_offset:(e-i.row_start)/m,orientation:_||"horizontal"}}let a=n.orientation==="vertical",s=a?e:t,u=a?"row_start":"col_start",g=a?"row_end":"col_end",c=a?r?.rect?.height:r?.rect?.width,l=i[u],b=i[g]-i[u];for(let w=0;w<n.children.length;w++){let h=l+b*n.sizes[w];if(r&&c){let m=r.size/c;if(Math.abs(s-h)<m)return{path:[...o,w],type:n.orientation,view_window:{...i,[u]:l,[g]:h}}}if(s>=l&&(s<h||w===n.children.length-1))return gt(t,e,n.children[w],r,n.orientation,{...i,[u]:l,[g]:h},[...o,w]);l=h}return null}function W(t,e){if(t.type==="tab-layout"){if(t.tabs.includes(e)){let o=t.tabs.filter(a=>a!==e);return o.length===0?structuredClone(Q):{type:"tab-layout",tabs:o}}return structuredClone(t)}let n=structuredClone(t),r=n.children.findIndex(o=>o.type==="tab-layout"?o.tabs.includes(e):!1);if(r!==-1){let o=n.children[r];if(o.tabs.length===1){let a=n.children.filter((u,g)=>g!==r),s=At(n.sizes,r);if(a.length===1)return a[0];n.children=a,n.sizes=s}else o.tabs.splice(o.tabs.indexOf(e),1),o.selected&&o.selected>=o.tabs.length&&o.selected--;return n}let _=!1,i=n.children.map(o=>{if(o.type==="split-layout"){let a=W(o,e);return a!==o&&(_=!0),a}return o});return _&&(n.children=i),n}function At(t,e){let n=[],r=t[e],_=0;for(let i=0;i<t.length;i++)i!==e&&(_+=t[i]);for(let i=0;i<t.length;i++)if(i!==e){let o=t[i]/_;n.push(t[i]+r*o)}return n}function z(t,e,n,r){let _=c=>({type:"tab-layout",tabs:[c]});if(n.length===0){if(t.type==="tab-layout")return{type:"tab-layout",tabs:[e,...t.tabs]};if(r)return{type:"split-layout",orientation:r,children:[_(e),t],sizes:[.5,.5]};{let c=[...t.children,_(e)],l=[...t.sizes,Y(c.length)];return{...t,children:c,sizes:N(l)}}}let[i,...o]=n;if(r&&o.length===0){if(t.type==="split-layout"&&t.orientation===r){let l=[...t.children];l.splice(i,0,_(e));let b=[...t.sizes];return b.splice(i,0,Y(l.length)),{...t,children:l,sizes:N(b)}}let c=i===0?[_(e),t]:[t,_(e)];return{type:"split-layout",orientation:r,children:c,sizes:[.5,.5]}}if(t.type==="tab-layout"){if(o.length===0&&r===void 0&&i>=0&&i<=t.tabs.length){let c=[...t.tabs];return c.splice(i,0,e),{...t,tabs:c}}return z({type:"split-layout",orientation:r||"horizontal",children:[t],sizes:[1]},e,n,r)}if(o.length===0||i===t.children.length){if(r&&t.children[i]){let b={type:"split-layout",orientation:r,children:[_(e),t.children[i]],sizes:[.5,.5]},w=[...t.children];return w[i]=b,{...t,children:w,sizes:N(t.sizes)}}let c=[...t.children];c.splice(i,0,_(e));let l=[...t.sizes];return l.splice(i,0,Y(c.length)),{...t,children:c,sizes:N(l)}}let a=t.children[i],s=a.type==="tab-layout"&&o.length>0&&r!==void 0?t.orientation==="horizontal"?"vertical":"horizontal":r,u=z(a,e,o,s),g=[...t.children];return g[i]=u,{...t,children:g}}function Y(t){return 1/Math.max(1,t-1)}function N(t){let e=t.reduce((n,r)=>n+r,0);return!Number.isFinite(e)||e<=0?t.map(()=>1/t.length):t.map(n=>n/e)}function K(t,e,n,r=A){let _=structuredClone(t),i=_,o={horizontal:n||0,vertical:n||0};for(let a=0;a<e.length-1;a++)i.type==="split-layout"&&(o[i.orientation]/=i.sizes[e[a]],i=i.children[e[a]]);if(i.type==="split-layout")if(n===void 0)i.sizes=i.sizes.map(a=>1/i.sizes.length);else{let a=o[i.orientation],s=e[e.length-1];s<i.sizes.length-1&&(i.sizes=Rt(r,i.sizes,s,a))}return _}function Rt(t,e,n,r){let _=[...e],i=0;for(let a=0;a<=n;a++)i+=e[a];let o=0;for(let a=n+1;a<e.length;a++)o+=e[a];r=Math.sign(r)*Math.min(Math.abs(r),(1-t.MINIMUM_REDISTRIBUTION_SIZE_THRESHOLD)*(r>0?i:o));for(let a=0;a<=n;a++){let s=e[a]/i;_[a]=e[a]-r*s}for(let a=n+1;a<e.length;a++){let s=e[a]/o;_[a]=e[a]+r*s}return _}function dt(t,e,n,r){let _=parseFloat(n.paddingLeft),i=parseFloat(n.paddingTop),o=e.width-_-parseFloat(n.paddingRight),a=e.height-i-parseFloat(n.paddingBottom),s=_+t.col_start*o,u=i+t.row_start*a,g=(t.col_end-t.col_start)*o,c=(t.row_end-t.row_start)*a;if(r){let l=parseFloat(r.marginTop),b=parseFloat(r.marginRight),w=parseFloat(r.marginBottom),h=parseFloat(r.marginLeft);g-=h+b,c-=l+w}return{x:s,y:u,width:g,height:c}}function Pt(t,e,n,r,_=A,i){if(!r)return`:host ::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){display:none;}`;let o=dt(r.view_window,e,n,i),a=`display:flex;position:absolute!important;z-index:2;top:${o.y}px;left:${o.x}px;height:${o.height}px;width:${o.width}px;`;return`::slotted([${_.CHILD_ATTRIBUTE_NAME}="${t}"]){${a}}`}function nt(t){if(t.type==="tab-layout")return t.selected=t.selected||0,t;let e=[],n=[];for(let r=0;r<t.children.length;r++){let _=t.children[r],i=t.sizes[r],o=nt(_);if(o.type==="split-layout"&&o.orientation===t.orientation)for(let a=0;a<o.children.length;a++)e.push(o.children[a]),n.push(o.sizes[a]*i);else e.push(o),n.push(i)}return e.length===1?e[0]:{type:"split-layout",orientation:t.orientation,children:e,sizes:n}}function Lt(t,e){return bt(t,e,[])}function bt(t,e,n){if(e.type==="tab-layout")return e.tabs.includes(t)?n:null;for(let r=0;r<e.children.length;r++){let _=bt(t,e.children[r],[...n,r]);if(_)return _}return null}function Dt(t){let e={};return ft(t,e,[],null,{row_start:0,row_end:1,col_start:0,col_end:1}),e}function ft(t,e,n,r,_){if(t.type==="tab-layout"){let g=t.selected??0,c=t.tabs[g],l=(_.col_start+_.col_end)/2,b=(_.row_start+_.row_end)/2;e[c]={type:"layout-path",layout:t,slot:c,path:n,view_window:_,is_edge:!1,column:l,row:b,column_offset:.5,row_offset:.5,orientation:r||"horizontal"};return}let i=t.orientation==="vertical",o=i?"row_start":"col_start",a=i?"row_end":"col_end",s=_[o],u=_[a]-_[o];for(let g=0;g<t.children.length;g++){let c=s+u*t.sizes[g],l={..._,[o]:s,[a]:c};ft(t.children[g],e,[...n,g],t.orientation,l),s=c}}var Ot=class{constructor(t,e,n){this.S=t,this.P=e,this.g=n}#n=!1;#t=[];#e=null;#r=0;run(t,e,n){return new Promise((r,_)=>{this.#t.push({layout:t,fn:e,overlay:n,resolve:r,reject:_}),this.#n||this.#_()})}resume(){if(this.#e){let t=this.#e;this.#e=null,t()}}cancelPending(){this.#r++;let t=this.#t;this.#t=[];for(let e of t)e.resolve()}async#_(){this.#n=!0;try{for(;this.#t.length>0;){let t=this.#t;this.#t=[];let e=this.#r,n=t[t.length-1];this.#i(n.layout,n.overlay)||await new Promise(_=>{this.#e=_});let r=e!==this.#r;for(let _ of t)try{r||_.fn(),_.resolve()}catch(i){_.reject(i)}}}finally{this.#n=!1}}#i(t,e){this.g?.();let n={calculatePresizePaths:()=>Dt(t),overlay:e},r=new CustomEvent(this.P,{cancelable:!0,detail:n});return this.S.dispatchEvent(r)}};function at(t,e,n,r,_,i,o=A){if(t<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"horizontal");if(t>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"horizontal");if(e<o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,[0],!0,"vertical");if(e>1-o.SPLIT_ROOT_EDGE_TOLERANCE)return j(n,r,_,_.path.length>0?_.path:[1],!1,"vertical");let a=_.column_offset<o.SPLIT_EDGE_TOLERANCE||_.column_offset>1-o.SPLIT_EDGE_TOLERANCE,s=_.row_offset<o.SPLIT_EDGE_TOLERANCE||_.row_offset>1-o.SPLIT_EDGE_TOLERANCE;if(a&&s){let u=Math.abs(_.column_offset-.5),g=Math.abs(_.row_offset-.5),c=(i?.width||1)*(_.view_window.col_end-_.view_window.col_start),l=(i?.height||1)*(_.view_window.row_end-_.view_window.row_start),b=c/2-u*c<l/2-g*l;return q(n,r,_,b?_.column_offset<o.SPLIT_EDGE_TOLERANCE:_.row_offset<o.SPLIT_EDGE_TOLERANCE,b?"horizontal":"vertical")}return a?q(n,r,_,_.column_offset<o.SPLIT_EDGE_TOLERANCE,"horizontal"):s?q(n,r,_,_.row_offset<o.SPLIT_EDGE_TOLERANCE,"vertical"):{..._,path:[..._.path,0]}}function j(t,e,n,r,_,i){return q(t,e,{...n,path:r,orientation:i},_,i)}function q(t,e,n,r,_){let i;if(n.orientation===_)if(n.path.length===0)i=[r?0:1];else{let s=n.path[n.path.length-1];i=[...n.path.slice(0,-1),r?s:s+1]}else i=[...n.path,r?0:1];let o=z(t,e,i,_),a=zt(o,i);return{...n,path:i,slot:n.slot,is_edge:!0,orientation:_,view_window:a}}function zt(t,e){let n={row_start:0,row_end:1,col_start:0,col_end:1},r=t;for(let _ of e){if(r.type==="tab-layout")break;let i=Math.min(_,r.children.length-1),o=r.orientation==="vertical",a=o?"row_start":"col_start",s=o?"row_end":"col_end",u=n[s]-n[a],g=r.sizes.slice(0,i).reduce((c,l)=>c+l*u,n[a]);n={...n,[a]:g,[s]:g+u*r.sizes[i]},r=r.children[i]}return n}var Mt=class{constructor(t){this.p=t}async set(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME,r=this.p.physics.OVERLAY_DEFAULT){let _=this.p,i=W(_.panel,e),o=`:scope > [${_.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,a=_.querySelector(o);a&&a.classList.add(n);let[s,u,g,c]=_.relativeCoordinates(t,!0),l=T(s,u,i);l&&(l=at(s,u,i,e,l,g,_.physics));let b=l?{slot:e,path:l}:null;await _.presizeQueue.run(i,()=>{if(r==="grid"&&l){let m=[e,l?.slot],P=C(i,m,_.physics);_.stylesheet.replaceSync(P)}else if(r==="absolute"){let m=C(i,void 0,_.physics);for(;a?.tagName==="SLOT"&&a;)a=a.assignedElements()[0];let P=a?getComputedStyle(a):void 0,G=Pt(e,g,c,l,_.physics,P);_.stylesheet.replaceSync([m,G].join(`
5
+ `))}},b);let w=`${_.physics.CUSTOM_EVENT_NAME_PREFIX}-before-update`,h=new CustomEvent(w,{detail:i});_.dispatchEvent(h)}async clear(t,{slot:e},n=this.p.physics.OVERLAY_CLASSNAME){let r=this.p,_=`:scope > [${r.physics.CHILD_ATTRIBUTE_NAME}="${e}"]`,i=r.querySelector(_),o=r.panel;if(t!==null){let a=W(r.panel,e),[s,u,g]=r.relativeCoordinates(t,!1),c=T(s,u,a);if(c){let l=at(s,u,a,e,c,g,r.physics),b=l.is_edge?l.orientation:void 0;o=z(a,e,l.path,b)}}await r.restore(o),i?.classList.remove(n)}},Nt=class extends HTMLElement{s;n;i;a;d;u;h;o;t;l;E;f;L;constructor(){super(),this.t=A,this.n=structuredClone(Q),this.i=this.n,this.s=this.attachShadow({mode:"open"}),this.s.innerHTML="<slot></slot>",this.a=new CSSStyleSheet,this.d=new CSSStyleSheet,this.h=!1;let t=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-before-resize`;this.l=new Ot(this,t,()=>{this.o=void 0}),this.E=new Mt(this.create_overlay_host()),this.s.adoptedStyleSheets=[this.a,this.d]}connectedCallback(){this.L??=new ResizeObserver(()=>{this.o=void 0}),this.L.observe(this),this.addEventListener("dblclick",this.onDblClick),this.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerCancel),this.update_touch_listener()}disconnectedCallback(){this.L?.disconnect(),this.removeEventListener("dblclick",this.onDblClick),this.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointercancel",this.onPointerCancel),this.removeEventListener("lostpointercapture",this.onPointerCancel),this.update_touch_listener()}calculateIntersect=t=>{let[e,n,r]=this.relativeCoordinates(t,!1);return T(e,n,this.n)};calculatePath=t=>Lt(t,this.n);setOverlayState=async(t,e,n,r)=>{await this.E.set(t,e,n,r)};clearOverlayState=async(t,e,n)=>{await this.E.clear(t,e,n)};insertPanel=async(t,e=[],n)=>{let r;typeof n=="boolean"&&n?r="horizontal":typeof n=="string"&&(r=n),await this.restore(z(this.i,t,e,r))};removePanel=async t=>{await this.restore(W(this.i,t))};select=async t=>{let e=structuredClone(this.i),n=this.getPanel(t,e);if(!n)return;let r=n.tabs.indexOf(t);r!==-1&&n.selected!==r&&(n.selected=r,await this.restore(e));let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-select`;this.dispatchEvent(new CustomEvent(_,{detail:{name:t}}))};getPanel=(t,e=this.n)=>{if(e.type==="tab-layout")return e.tabs.includes(t)?e:null;for(let n of e.children){let r=this.getPanel(t,n);if(r)return r}return null};clear=async()=>{await this.restore(Q)};maximize=async t=>{if(!this.getPanel(t,this.i))return;let e={type:"tab-layout",tabs:[t],selected:0};await this.l.run(e,()=>{this.f=t,this.a.replaceSync(Tt(t,this.t))})};minimize=async()=>{this.f!==void 0&&await this.l.run(this.i,()=>{this.f=void 0,this.a.replaceSync(C(this.n,void 0,this.t))})};restoreSync=(t,e=!1)=>{this.l.cancelPending(),this.o=void 0,this.f=void 0,this.n=e?t:nt(t),this.i=this.n;let n=C(this.n,void 0,this.t);this.a.replaceSync(n);let r=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,_=new CustomEvent(r,{detail:this.n});this.dispatchEvent(_)};restore=async(t,e=!1)=>{let n=e?t:nt(t);this.i=n,await this.l.run(n,()=>{this.f=void 0,this.n=n;let r=C(this.n,void 0,this.t);this.a.replaceSync(r);let _=`${this.t.CUSTOM_EVENT_NAME_PREFIX}-update`,i=new CustomEvent(_,{detail:this.n});this.dispatchEvent(i)})};resumeResize=()=>{this.l.resume()};save=()=>structuredClone(this.n);restorePhysics(t){this.t=Object.freeze({...this.t,...t}),this.update_touch_listener()}savePhysics(){return this.t}relativeCoordinates=(t,e=!0)=>{(e||!this.o)&&(this.o={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.o.box,r=this.o.style,_=parseFloat(r.paddingLeft),i=parseFloat(r.paddingTop),o=n.width-_-parseFloat(r.paddingRight),a=n.height-i-parseFloat(r.paddingBottom),s=t.clientX-n.left-_,u=t.clientY-n.top-i,g=Math.max(0,Math.min(1,s/o)),c=Math.max(0,Math.min(1,u/a));return[g,c,n,r]};realCoordinates=(t,e)=>{this.o||(this.o={box:this.getBoundingClientRect(),style:getComputedStyle(this)});let n=this.o.box,r=this.o.style,_;e&&(_=getComputedStyle(e));let i=dt(t,n,r,_);return new DOMRect(n.left+i.x,n.top+i.y,i.width,i.height)};diffCoordinates=(t,e)=>{let[n,r,_]=this.relativeCoordinates(t,!1),i=(n-e.column)*_.width,o=(r-e.row)*_.height;return Math.sqrt(i**2+o**2)};create_overlay_host(){let t=this;return{get panel(){return t.i},get physics(){return t.t},get stylesheet(){return t.a},get presizeQueue(){return t.l},relativeCoordinates:(e,n)=>t.relativeCoordinates(e,n),restore:(e,n)=>t.restore(e,n),querySelector:e=>t.querySelector(e),dispatchEvent:e=>t.dispatchEvent(e)}}onDblClick=async t=>{let[e,n,r]=this.relativeCoordinates(t,!1),_=T(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});if(_?.type==="horizontal"||_?.type==="vertical"){let i=K(this.i,_.path,void 0);await this.restore(i,!0)}};hit_divider(t,e){if(this.t.GRID_DIVIDER_CHECK_TARGET&&e!==this)return null;let[n,r,_]=this.relativeCoordinates(t),i=this.t.GRID_DIVIDER_SIZE,o=T(n,r,this.n,{rect:_,size:i});return o&&o.type!=="layout-path"?[o,n,r]:null}update_touch_listener(){this.isConnected&&this.t.GRID_DIVIDER_TOUCH_RESIZE?this.addEventListener("touchstart",this.onTouchStart,{passive:!1}):this.removeEventListener("touchstart",this.onTouchStart)}onTouchStart=t=>{let e=t.changedTouches[0];t.cancelable&&e&&this.hit_divider(e,t.target)&&t.preventDefault()};onPointerDown=t=>{if(t.button!==0)return;let e=this.hit_divider(t,t.target);e&&(this.u=[...e,t.pointerId],this.setPointerCapture(t.pointerId),t.preventDefault())};onPointerCancel=async t=>{this.u?.[3]===t.pointerId&&(this.u=void 0,await this.restore(this.i,!0))};onPointerMove=async t=>{if(this.u){let[i,o]=this.relativeCoordinates(t,!1),[{path:a,type:s},u,g]=this.u,c=s==="horizontal"?u-i:g-o,l=K(this.n,a,c);await this.l.run(l,()=>{this.a.replaceSync(C(l,void 0,this.t))})}if(this.t.GRID_DIVIDER_CHECK_TARGET&&t.target!==this){this.h&&(this.h=!1,this.d.replaceSync(""));return}let[e,n,r]=this.relativeCoordinates(t,!1),_=T(e,n,this.n,{rect:r,size:this.t.GRID_DIVIDER_SIZE});_?.type==="vertical"?(this.d.replaceSync(":host{cursor:row-resize"),this.h=!0):_?.type==="horizontal"?(this.d.replaceSync(":host{cursor:col-resize"),this.h=!0):this.h&&(this.h=!1,this.d.replaceSync(""))};onPointerUp=async t=>{let e=this.u;if(e){this.u=void 0,this.releasePointerCapture(t.pointerId);let[n,r]=this.relativeCoordinates(t,!1),[{path:_,type:i},o,a]=e,s=i==="horizontal"?o-n:a-r,u=K(this.i,_,s);await this.restore(u,!0)}}},jt=`
6
6
  :host{box-sizing:border-box;flex-direction:column;pointer-events:none}
7
7
  [part~="titlebar"]{height:24px;flex-shrink:0;user-select:none;overflow:hidden;touch-action:none}
8
8
  [part~="container"]{flex:1 1 auto;min-height:0;pointer-events:auto}
@@ -12,11 +12,11 @@ var Q={type:"split-layout",orientation:"horizontal",sizes:[],children:[]},A=Obje
12
12
  .tabs{display:grid;width:100%;height:100%}
13
13
  .tabs slot[name="tab"]{display:grid;grid-row:1;pointer-events:auto}
14
14
  .tabs regular-layout-tab{display:flex;overflow:hidden}
15
- `,jt=`
15
+ `,Ft=`
16
16
  <div part="titlebar"><div class="tabs" part="titlebar-track"><slot name="tab"><regular-layout-tab></regular-layout-tab></slot></div></div>
17
17
  <div part="container"><slot></slot></div>
18
- `,Ft=t=>`"${t.replace(/[\\"\n]/g,e=>e===`
19
- `?"\\A ":`\\${e}`)}"`,$t=t=>`--regular-layout-${globalThis.CSS.escape(t)}--title`,Ut=class extends HTMLElement{s;v;b;e;_;T;r=null;connectedCallback(){this.v??=new CSSStyleSheet,this.v.replaceSync(Nt),this.b??=new CSSStyleSheet,this.s??=this.attachShadow({mode:"open"}),this.s.adoptedStyleSheets=[this.v,this.b],this.s.innerHTML=jt,this.e=this.parentElement,this._=this.s.children[0],this.T=this._.querySelector("regular-layout-tab"),this._.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerCancel),this.e.addEventListener("regular-layout-update",this.drawTabs),this.e.addEventListener("regular-layout-before-update",this.drawTabs)}disconnectedCallback(){this._.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointercancel",this.onPointerCancel),this.removeEventListener("lostpointercapture",this.onPointerCancel),this.e.removeEventListener("regular-layout-update",this.drawTabs),this.e.removeEventListener("regular-layout-before-update",this.drawTabs)}onPointerDown=t=>{if(t.button===0&&t.target.part.contains("tab")){let e=this.getAttribute(this.e.savePhysics().CHILD_ATTRIBUTE_NAME),n=this.e.calculateIntersect(t);n&&e?(this.r={path:{...n,slot:e}},this.setPointerCapture(t.pointerId),t.preventDefault()):this.r=null}};onPointerMove=t=>{if(this.r){let e=this.e.savePhysics();if(!this.r.moved&&this.e.diffCoordinates(t,this.r.path)<=e.MIN_DRAG_DISTANCE)return;this.r.moved=!0,this.e.setOverlayState(t,this.r.path)}};onPointerUp=t=>{let e=this.r;this.r=null,e?.moved&&this.e.clearOverlayState(t,e.path)};onPointerCancel=t=>{let e=this.r;this.r=null,e?.moved&&this.e.clearOverlayState(null,e.path)};drawTabs=t=>{let e=this.e.savePhysics().CHILD_ATTRIBUTE_NAME,n=this.getAttribute(e);if(!n)return;let r=this.e.getPanel(n,t.detail);r||(r={type:"tab-layout",tabs:[n],selected:0});let _=r.tabs.indexOf(n),i=(r.selected??0)===_;this.toggleAttribute("inactive",!i),this.T.populate(this.e,r,_),this.drawTab(n,_,r.tabs.length)};drawTab=(t,e,n)=>{this.b.replaceSync([`.tabs{grid-template-columns:repeat(${n},var(--rl-tab-width,1fr))}`,`.tabs slot[name="tab"]{grid-column:${e+1}}`,`[part~="title"]::before{content:var(${$t(t)}, ${Ft(t)})}`].join(`
20
- `))}},qt=class extends HTMLElement{e;c;m;populate=(t,e,n)=>{if(this.setAttribute(t.savePhysics().CHILD_ATTRIBUTE_NAME,e.tabs[n]),this.c)(n===e.selected!=(n===this.c?.selected)||this.c?.tabs[n]!==e.tabs[n])&&(e.selected===n?(this.children[1].part.add("active-close"),this.part.add("active-tab")):(this.children[1].part.remove("active-close"),this.part.remove("active-tab")));else{let r=e.selected===n,_=r?"active-close close":"close";this.innerHTML=`<div part="title"></div><button part="${_}"></button>`,r?this.part.add("tab","active-tab"):this.part.add("tab"),this.addEventListener("pointerdown",this.onTabClick),this.children[1].addEventListener("pointerdown",this.onTabClose)}this.c=e,this.e=t,this.m=n};onTabClose=t=>{t instanceof PointerEvent&&t?.button!==0||this.c!==void 0&&this.m!==void 0&&this.e?.removePanel(this.c.tabs[this.m])};onTabClick=t=>{t.button===0&&this.c!==void 0&&this.m!==void 0&&this.e?.select(this.c.tabs[this.m])}},Ht=[["regular-layout",Mt],["regular-layout-frame",Ut],["regular-layout-tab",qt]];function Bt(t=customElements){for(let[e,n]of Ht)t.get(e)||t.define(e,n)}Bt();var Te=class extends HTMLElement{constructor(){super()}get_static_config(){return{name:"Debug",select_mode:"select",config_column_names:[]}}column_style_config(){return{}}async update(t){return this.draw(t)}async draw(t){this.style.backgroundColor="#fff";let e=await t.to_csv(),n="margin:0;overflow:scroll;position:absolute;width:100%;height:100%";this.innerHTML=`<pre style='${n}'>${e}</pre>`}async clear(){this.innerHTML=""}async resize(t){}restyle(){}restore(){}async delete(){}get supports_streaming(){return!1}},ke={anthropic:{name:"anthropic",url:"https://api.anthropic.com/v1/chat/completions",headers:{"anthropic-dangerous-direct-browser-access":"true"},model:"claude-opus-5"},gemini:{name:"gemini",url:"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",model:"gemini-2.5-flash"},lmstudio:{name:"lmstudio",url:"http://localhost:1234/v1/chat/completions"},ollama:{name:"ollama",url:"http://localhost:11434/v1/chat/completions"},openrouter:{name:"openrouter",url:"https://openrouter.ai/api/v1/chat/completions"},openai:{name:"openai",url:"https://api.openai.com/v1/chat/completions",model:"gpt-5.2"}},bt=["dateStyle","timeStyle","weekday","year","month","day","hour","minute","second","fractionalSecondDigits"],Vt=["timeZone","hour12"];function Wt(t){return bt.some(e=>t?.[e]!==void 0)}var Gt={float:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},Kt={dateStyle:"short",timeStyle:"medium"},at={dateStyle:"short"},Yt=[["style","currency","currencyDisplay","currencySign","unit","unitDisplay"],["notation","compactDisplay"],["minimumFractionDigits","maximumFractionDigits"],["minimumSignificantDigits","maximumSignificantDigits"]];function Xt(t,e){let n={};for(let[_,i]of Object.entries(e??{}))i!=null&&(n[_]=i);let r={...t};for(let _ of Yt)if(_.some(i=>i in n))for(let i of _)delete r[i];return Object.assign(r,n)}function Ae(t,e,n){let r=n??Gt[t]??{},_=e?Xt(r,e):r;return new Intl.NumberFormat(navigator.languages,_)}function wt(t,e,n){let r=[t,e,n],_=r.find(Wt)??{},i={},o=(a,s)=>{s!==void 0&&s[a]!==void 0&&(i[a]=s[a])};for(let a of bt)o(a,_);for(let a of Vt)o(a,r.find(s=>s?.[a]!==void 0));return i}function Re(t,e){return new Intl.DateTimeFormat(navigator.languages,wt(t,e,Kt))}function Pe(t,e){let{dateStyle:n}=wt(t,e,at);return new Intl.DateTimeFormat(navigator.languages,{timeZone:"utc",dateStyle:n??at.dateStyle})}function Le(t){return t.split("|").at(-1)??t}var De=class{selected;row;column_names;removeConfigs;insertConfigs;panel;constructor(t,e,n,r,_,i){this.selected=t,this.row=e,this.column_names=n,this.removeConfigs=r,this.insertConfigs=_,this.panel=i}get removeFilters(){return this.removeConfigs.flatMap(t=>t.filter??[])}get insertFilters(){return this.insertConfigs.flatMap(t=>t.filter??[])}};async function Zt(t){let e;t instanceof Response?e=await WebAssembly.instantiateStreaming(t):typeof t=="string"?e=await WebAssembly.instantiateStreaming(fetch(t)):t instanceof ArrayBuffer?e=await WebAssembly.instantiate(t):e=t;let n=e.instance.exports,[r]=WebAssembly.Module.customSections(e.module,"psp-runtime"),[_]=WebAssembly.Module.customSections(e.module,"psp-len"),i=new DataView(_).getUint32(0,!0),o=n.resize(r.byteLength);new Uint8Array(n.memory.buffer).set(new Uint8Array(r),o);let a=n.compile(r.byteLength,i);return new Uint8Array(n.memory.buffer).slice(a,i+a)}if(typeof WebAssembly>"u")throw new Error("WebAssembly not supported.");async function Jt(t){t instanceof Function&&(t=await t()),t instanceof Promise&&(t=await t);try{return await Zt(t)}catch{return console.warn("Stage 0 wasm loading failed, skipping"),new Uint8Array(t)}}var Oe=new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,4,1]);function Qt(t,e,n){try{let s=b.__wbindgen_add_to_stack_pointer(-16),u=k(t,b.__wbindgen_export,b.__wbindgen_export2),g=x;var r=I(e)?0:k(e,b.__wbindgen_export,b.__wbindgen_export2),_=x;b.migrate(s,u,g,r,_,p(n));var i=v().getInt32(s+0,!0),o=v().getInt32(s+4,!0),a=v().getInt32(s+8,!0);if(a)throw S(o);return S(i)}finally{b.__wbindgen_add_to_stack_pointer(16)}}function te(t,e,n){try{let i=b.__wbindgen_add_to_stack_pointer(-16),o=k(t,b.__wbindgen_export,b.__wbindgen_export2),a=x;b.validate_config(i,o,a,p(e),I(n)?16777215:n?1:0);var r=v().getInt32(i+0,!0),_=v().getInt32(i+4,!0);if(_)throw S(r)}finally{b.__wbindgen_add_to_stack_pointer(16)}}function ee(){return{__proto__:null,"./perspective-migrate.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){let n=Error(X(t,e));return p(n)},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(d(e)),r=k(n,b.__wbindgen_export,b.__wbindgen_export2),_=x;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=d(e),r=typeof n=="bigint"?n:void 0;v().setBigInt64(t+8,I(r)?BigInt(0):r,!0),v().setInt32(t+0,!I(r),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=d(t),n=typeof e=="boolean"?e:void 0;return I(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=rt(d(e)),r=k(n,b.__wbindgen_export,b.__wbindgen_export2),_=x;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return d(t)in d(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof d(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof d(t)=="function"},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=d(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof d(t)=="string"},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return d(t)===d(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return d(t)==d(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=d(e),r=typeof n=="number"?n:void 0;v().setFloat64(t+8,I(r)?0:r,!0),v().setInt32(t+0,!I(r),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=d(e),r=typeof n=="string"?n:void 0;var _=I(r)?0:k(r,b.__wbindgen_export,b.__wbindgen_export2),i=x;v().setInt32(t+4,i,!0),v().setInt32(t+0,_,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){throw new Error(X(t,e))},__wbg_call_389efe28435a9388:function(){return Z(function(t,e){let n=d(t).call(d(e));return p(n)},arguments)},__wbg_done_57b39ecd9addfe81:function(t){return d(t).done},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(d(t));return p(e)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=d(t)[e>>>0];return p(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return Z(function(t,e){let n=Reflect.get(d(t),d(e));return p(n)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=d(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=d(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=d(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(d(t))},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(d(t))},__wbg_iterator_6ff6560ca1568e55:function(){return p(Symbol.iterator)},__wbg_length_32ed9a279acd054c:function(t){return d(t).length},__wbg_length_35a7bace40f36eac:function(t){return d(t).length},__wbg_new_361308b2356cecd0:function(){let t=new Object;return p(t)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return p(t)},__wbg_new_dca287b076112a51:function(){return p(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(d(t));return p(e)},__wbg_next_3482f54c49e8af19:function(){return Z(function(t){let e=d(t).next();return p(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=d(t).next;return p(e)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(re(t,e),d(n))},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let r=d(t).set(d(e),d(n));return p(r)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){d(t)[S(e)]=S(n)},__wbg_set_f43e577aea94465b:function(t,e,n){d(t)[e>>>0]=S(n)},__wbg_value_0546255b415e96c1:function(t){let e=d(t).value;return p(e)},__wbindgen_cast_0000000000000001:function(t){return p(t)},__wbindgen_cast_0000000000000002:function(t){return p(t)},__wbindgen_cast_0000000000000003:function(t,e){let n=X(t,e);return p(n)},__wbindgen_cast_0000000000000004:function(t){let e=BigInt.asUintN(64,t);return p(e)},__wbindgen_object_drop_ref:function(t){S(t)}}}}function p(t){O===y.length&&y.push(y.length+1);let e=O;return O=y[e],y[e]=t,e}function rt(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let _=t.description;return _==null?"Symbol":`Symbol(${_})`}if(e=="function"){let _=t.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(t)){let _=t.length,i="[";_>0&&(i+=rt(t[0]));for(let o=1;o<_;o++)i+=", "+rt(t[o]);return i+="]",i}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
21
- ${t.stack}`:r}function ne(t){t<132||(y[t]=O,O=t)}function re(t,e){return t=t>>>0,D().subarray(t/1,t/1+e)}var E=null;function v(){return(E===null||E.buffer.detached===!0||E.buffer.detached===void 0&&E.buffer!==b.memory.buffer)&&(E=new DataView(b.memory.buffer)),E}function X(t,e){return t=t>>>0,ie(t,e)}var L=null;function D(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(b.memory.buffer)),L}function d(t){return y[t]}function Z(t,e){try{return t.apply(this,e)}catch(n){b.__wbindgen_export3(p(n))}}var y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);var O=y.length;function I(t){return t==null}function k(t,e,n){if(n===void 0){let a=st.encode(t),s=e(a.length,1)>>>0;return D().subarray(s,s+a.length).set(a),x=a.length,s}let r=t.length,_=e(r,1)>>>0,i=D(),o=0;for(;o<r;o++){let a=t.charCodeAt(o);if(a>127)break;i[_+o]=a}if(o!==r){o!==0&&(t=t.slice(o)),_=n(_,r,r=o+t.length*3,1)>>>0;let a=D().subarray(_+o,_+r),s=st.encodeInto(t,a);o+=s.written,_=n(_,r,o,1)>>>0}return x=o,_}function S(t){let e=d(t);return ne(t),e}var H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();var _e=2146435072,J=0;function ie(t,e){return J+=e,J>=_e&&(H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),H.decode(),J=e),H.decode(D().subarray(t,t+e))}var st=new TextEncoder,x=0,oe,b;function ae(t,e){return b=t.exports,oe=e,E=null,L=null,b}async function se(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(_){if(t.ok&&n(t.type)&&t.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{let r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function ce(t){if(b!==void 0)return b;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let e=ee();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:r}=await se(await t,e);return ae(n,r)}async function le(t){return await ce({module_or_path:t}),{migrate(e,n,r){return Qt(e,r,n)},validate(e,n,r){te(e,n,r?.strict)}}}function ue(t,e,n,r){let _=new RegExp(`/${e}(@[^/]+)?/dist/cdn/[^/?#]*([?#].*)?$`),i=t.replace(_,(o,a)=>`/${n}${a??""}/dist/wasm/${r}`);return i!==t?i:new URL(`../../../${n}/dist/wasm/${r}`,t).href}var ct=Symbol.for("@perspective-dev/wasm"),F=["client","viewer","server","server32","server64","migrate"],B=["server","server32","server64"];function lt(t){return B.includes(t)}function pt(){let t=globalThis;return t[ct]??=new Map,t[ct]}function R(){let t=pt(),e=t.get("5.9.2");return e===void 0&&(e={sources:{},consumed:new Set},t.set("5.9.2",e)),e}function ge(){let t=[...pt().keys()].filter(e=>e!=="5.9.2");if(t.length>0)throw new Error(`Perspective 5.9.2 cannot share a page with Perspective ${t.join(", ")}`)}async function ht({source:t,disable_stage_0:e}){let n=typeof t=="function"?await t():await t;if(n instanceof WebAssembly.Module)return n;if(n instanceof Uint8Array&&(n=n.slice().buffer),typeof Response<"u"&&n instanceof Response){if(!n.ok)throw new Error(`Failed to fetch perspective wasm (HTTP ${n.status} "${n.url}")`);if(e)return await n.arrayBuffer()}return e?n:(await Jt(n)).buffer}function de(t){t.consumed.add("viewer"),t.viewer=ht(t.sources.viewer).then(t.viewer_provider),t.client===void 0&&(t.client=t.viewer,t.client_origin="viewer",t.viewer.then(e=>{t.client_runtime=e},()=>{}))}function vt(t,e={},n="user"){n!=="default"&&ge();let r=R(),_=Object.keys(t).filter(s=>!F.includes(s));if(_.length>0)throw new Error(`Unknown perspective wasm key(s) ${_.join(", ")}; expected ${F.join(", ")}`);let i=F.filter(s=>t[s]!==void 0);if(n==="default"){let s=B.some(u=>r.sources[u]!==void 0);i=i.filter(u=>r.sources[u]===void 0&&!r.consumed.has(u)&&!(s&&lt(u)))}else{if(i.length===0)throw new Error(`init() requires at least one of ${F.join(", ")}`);let s=[];for(let u of i)if(r.consumed.has(u)){if(n==="user"&&r.sources[u]!==void 0){s.push(u);continue}throw new Error(`${u} wasm is already initialized`)}if(s.length>0){i=i.filter(g=>!s.includes(g)),r.warned_duplicates??=new Set;let u=s.filter(g=>!r.warned_duplicates.has(g));if(u.length>0){for(let g of u)r.warned_duplicates.add(g);console.warn(`${u.join(", ")} wasm is already initialized; keeping the existing runtime (Perspective was loaded more than once on this page).`)}}if(i.some(lt))for(let u of B)(n==="replace_server"||r.sources[u]?.is_default)&&delete r.sources[u]}if(i.includes("viewer")){if(r.client!==void 0)throw new Error("viewer wasm must be registered before any Client is created from client wasm");if(r.viewer_provider===void 0)throw new Error("viewer wasm was registered, but @perspective-dev/viewer is not loaded")}let o=B.filter(s=>i.includes(s)||r.sources[s]!==void 0);if(o.includes("server")&&o.length>1)throw new Error("`server` cannot be combined with `server32` or `server64`");let a=!!e.disable_stage_0;for(let s of i)r.sources[s]={source:t[s],disable_stage_0:a,is_default:n==="default"};i.includes("viewer")&&de(r)}async function fe(t,e={}){vt(t,e),t.viewer!==void 0&&await R().viewer}function be(t){vt(t,{},"default")}function we(t){let e=R();e.viewer_provider??=t}async function pe(){let t=R().viewer;if(t===void 0)throw new Error("Missing perspective-viewer.wasm: register `viewer` with init()");await t}function he(){let t=R();if(t.migrate_binary===void 0){let e=t.sources.migrate;if(e===void 0)return Promise.reject(new Error("Missing perspective-migrate.wasm: register `migrate` with init()"));t.consumed.add("migrate"),t.migrate_binary=ht(e)}return t.migrate_binary}function it(){let t=R();if(t.validator===void 0){let e=he().then(le);e.catch(()=>{t.validator===e&&(t.validator=void 0)}),t.validator=e}return t.validator}var ve='var Ct=Object.defineProperty;var At=(a,t)=>{for(var e in t)Ct(a,e,{get:t[e],enumerable:!0})};var X={};At(X,{Client:()=>F,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>$,PerspectiveViewerElement:()=>G,ProxySession:()=>j,Table:()=>z,View:()=>I,VirtualDataSlice:()=>M,VirtualServer:()=>J,default:()=>It,getColumnConfigDefaults:()=>Ft,getPluginConfigDefaults:()=>Rt,get_wasm_module:()=>Et,get_worker_url:()=>Tt,init:()=>Pt,initSync:()=>oe,registerPlugin:()=>Ot,setColumnConfigDefaults:()=>jt,setPluginConfigDefaults:()=>zt});function ct(a){customElements.get(a)||customElements.define(a,class extends HTMLElement{})}var it=window.ResizeObserver;var st=window.IntersectionObserver;function at(a,t){if(!globalThis.ClipboardItem||!globalThis.navigator?.clipboard?.write)throw new Error("Clipboard API unavailable");return navigator.clipboard.write([new ClipboardItem({[a]:t})])}function ut(a,t,e,n){if(customElements.get(t)){console.warn(`Custom element "${t}" is already registered; skipping duplicate registration (Perspective was loaded more than once on this page).`);return}let _=a[e],i=_.prototype;class b extends HTMLElement{constructor(){super(),this._instance=new _(this)}}let g=Object.getOwnPropertyNames(i);for(let w of g)"get"in Object.getOwnPropertyDescriptor(i,w)?Object.defineProperty(b.prototype,w,{get:function(){return this._instance[w]}}):Object.defineProperty(b.prototype,w,{value:function(...v){return this._instance[w].call(this._instance,...v)}});for(let w of n)Object.defineProperty(b,w,{value:function(...v){return a[w].call(a,...v)}});customElements.define(t,b)}var F=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_client_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client___getClassname(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client___unsafe_open_view(this.__wbg_ptr,e,n);return I.__wrap(_)}get_hosted_table_names(){let t=r.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=m(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,i=r.client_handle_error(this.__wbg_ptr,n,_,f(e)?0:c(e));return u(i)}handle_response(t){let e=r.client_handle_response(this.__wbg_ptr,c(t));return u(e)}join(t,e,n,_){let i=m(n,r.__wbindgen_export,r.__wbindgen_export2),b=p,g=r.client_join(this.__wbg_ptr,c(t),c(e),i,b,f(_)?0:c(_));return u(g)}constructor(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.client_new(b,c(t),f(e)?0:c(e));var n=s().getInt32(b+0,!0),_=s().getInt32(b+4,!0),i=s().getInt32(b+8,!0);if(i)throw u(_);return this.__wbg_ptr=n>>>0,Q.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=r.client_new_proxy_session(this.__wbg_ptr,ot(t));return j.__wrap(e)}finally{k[O++]=void 0}}on_error(t){let e=r.client_on_error(this.__wbg_ptr,c(t));return u(e)}on_hosted_tables_update(t){let e=r.client_on_hosted_tables_update(this.__wbg_ptr,c(t));return u(e)}open_table(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client_open_table(this.__wbg_ptr,e,n);return u(_)}remove_hosted_tables_update(t){let e=r.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=r.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=r.client_table(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}terminate(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client_terminate(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=s().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_genericsqlvirtualservermodel_free(t,0)}expressionDescribe(t,e){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,y=m(e,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_expressionDescribe(w,this.__wbg_ptr,v,h,y,x);var n=s().getInt32(w+0,!0),_=s().getInt32(w+4,!0),i=s().getInt32(w+8,!0),b=s().getInt32(w+12,!0);if(b)throw u(i);var g=d(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}expressionsDescribe(t,e){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p;r.genericsqlvirtualservermodel_expressionsDescribe(w,this.__wbg_ptr,v,h,c(e));var n=s().getInt32(w+0,!0),_=s().getInt32(w+4,!0),i=s().getInt32(w+8,!0),b=s().getInt32(w+12,!0);if(b)throw u(i);var g=d(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}getHostedTables(){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_getHostedTables(b,this.__wbg_ptr);var t=s().getInt32(b+0,!0),e=s().getInt32(b+4,!0),n=s().getInt32(b+8,!0),_=s().getInt32(b+12,!0);if(_)throw u(n);var i=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_new(i,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}quoteEntity(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_quoteEntity(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableDescribe(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),y=m(t,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_tableDescribe(h,this.__wbg_ptr,y,x,c(e),c(n),f(_)?16777215:_?1:0);var i=s().getInt32(h+0,!0),b=s().getInt32(h+4,!0),g=s().getInt32(h+8,!0),w=s().getInt32(h+12,!0);if(w)throw u(g);var v=d(i,b);return i!==0&&r.__wbindgen_export4(i,b,1),v}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n,_,i){try{let y=r.__wbindgen_add_to_stack_pointer(-16),x=m(t,r.__wbindgen_export,r.__wbindgen_export2),C=p,q=m(e,r.__wbindgen_export,r.__wbindgen_export2),D=p;r.genericsqlvirtualservermodel_tableMakeView(y,this.__wbg_ptr,x,C,q,D,c(n),c(_),f(i)?16777215:i?1:0);var b=s().getInt32(y+0,!0),g=s().getInt32(y+4,!0),w=s().getInt32(y+8,!0),v=s().getInt32(y+12,!0);if(v)throw u(w);var h=d(b,g);return b!==0&&r.__wbindgen_export4(b,g,1),h}finally{r.__wbindgen_add_to_stack_pointer(16)}}tablePath(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=yt(t,r.__wbindgen_export),v=p;r.genericsqlvirtualservermodel_tablePath(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_tableSchema(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_tableSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewCollapse(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewCollapse(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewColumnSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewDelete(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewExpand(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewExpand(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),y=m(t,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,y,x,c(e),c(n),c(_));var i=s().getInt32(h+0,!0),b=s().getInt32(h+4,!0),g=s().getInt32(h+8,!0),w=s().getInt32(h+12,!0);if(w)throw u(g);var v=d(i,b);return i!==0&&r.__wbindgen_export4(i,b,1),v}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p,x=m(e,r.__wbindgen_export,r.__wbindgen_export2),C=p;r.genericsqlvirtualservermodel_viewGetMinMax(v,this.__wbg_ptr,h,y,x,C,c(n));var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewMakeTable(t,e,n,_,i){try{let y=r.__wbindgen_add_to_stack_pointer(-16),x=m(t,r.__wbindgen_export,r.__wbindgen_export2),C=p,q=m(e,r.__wbindgen_export,r.__wbindgen_export2),D=p;r.genericsqlvirtualservermodel_viewMakeTable(y,this.__wbg_ptr,x,C,q,D,c(n),c(_),c(i));var b=s().getInt32(y+0,!0),g=s().getInt32(y+4,!0),w=s().getInt32(y+8,!0),v=s().getInt32(y+12,!0);if(v)throw u(w);var h=d(b,g);return b!==0&&r.__wbindgen_export4(b,g,1),h}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewSchema(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSetDepth(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewSetDepth(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){rt(t,I);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_name(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectivedebugpluginelement_new(c(t));return this.__wbg_ptr=e>>>0,dt.register(this,this.__wbg_ptr,this),this}resize(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_restore(_,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}restyle(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_save(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=s().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_select_mode(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}update(t){rt(t,I);let e=r.perspectivedebugpluginelement_update(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);var G=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=r.perspectiveviewerelement___get_model(this.__wbg_ptr);return a.__wrap(t)}addPanel(t,e){let n=r.perspectiveviewerelement_addPanel(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}agentConfig(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_agentConfig(_,this.__wbg_ptr,c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}agentPrompt(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_agentPrompt(this.__wbg_ptr,e,n);return u(_)}agentReset(){let t=r.perspectiveviewerelement_agentReset(this.__wbg_ptr);return u(t)}connectedCallback(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=s().getInt32(n+0,!0),e=s().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=r.perspectiveviewerelement_copy(this.__wbg_ptr,f(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=r.perspectiveviewerelement_download(this.__wbg_ptr,f(t)?0:c(t));return u(e)}eject(t){let e=r.perspectiveviewerelement_eject(this.__wbg_ptr,f(t)?0:c(t));return u(e)}export(t){let e=r.perspectiveviewerelement_export(this.__wbg_ptr,f(t)?0:c(t));return u(e)}flush(){let t=r.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getActivePanel(){let t=r.perspectiveviewerelement_getActivePanel(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=r.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=r.perspectiveviewerelement_getClient(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getEditPort(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getEditPort(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getFloat64(i+0,!0),n=s().getInt32(i+8,!0),_=s().getInt32(i+12,!0);if(_)throw u(n);return e}finally{r.__wbindgen_add_to_stack_pointer(16)}}getPanelNames(){let t=r.perspectiveviewerelement_getPanelNames(this.__wbg_ptr);return u(t)}getPlugin(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16);var e=f(t)?0:m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p;r.perspectiveviewerelement_getPlugin(g,this.__wbg_ptr,e,n);var _=s().getInt32(g+0,!0),i=s().getInt32(g+4,!0),b=s().getInt32(g+8,!0);if(b)throw u(i);return u(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getRenderStats(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getSelection(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getSelection(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getTable(t){let e=r.perspectiveviewerelement_getTable(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getThemes(){let t=r.perspectiveviewerelement_getThemes(this.__wbg_ptr);return u(t)}getView(t){let e=r.perspectiveviewerelement_getView(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getViewConfig(t){let e=r.perspectiveviewerelement_getViewConfig(this.__wbg_ptr,f(t)?0:c(t));return u(e)}invalidate(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_invalidate(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}invokeCommand(t,e){try{let i=r.__wbindgen_add_to_stack_pointer(-16),b=m(t,r.__wbindgen_export,r.__wbindgen_export2),g=p;r.perspectiveviewerelement_invokeCommand(i,this.__wbg_ptr,b,g,c(e));var n=s().getInt32(i+0,!0),_=s().getInt32(i+4,!0);if(_)throw u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}load(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_load(i,this.__wbg_ptr,c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectiveviewerelement_new(c(t));return this.__wbg_ptr=e>>>0,Z.register(this,this.__wbg_ptr,this),this}queryCommands(t,e,n,_){try{let w=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_queryCommands(w,this.__wbg_ptr,c(t),c(e),c(n),c(_));var i=s().getInt32(w+0,!0),b=s().getInt32(w+4,!0),g=s().getInt32(w+8,!0);if(g)throw u(b);return u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}removePanel(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_removePanel(this.__wbg_ptr,e,n);return u(_)}reset(t,e){let n=r.perspectiveviewerelement_reset(this.__wbg_ptr,f(t)?16777215:t?1:0,f(e)?0:c(e));return u(n)}resetError(){let t=r.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=f(t)?0:yt(t,r.__wbindgen_export),n=p;let _=r.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(_)}resize(t){let e=r.perspectiveviewerelement_resize(this.__wbg_ptr,f(t)?0:c(t));return u(e)}restore(t,e){let n=r.perspectiveviewerelement_restore(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}restoreWorkspace(t,e){let n=r.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}restyleElement(){let t=r.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(t){let e=r.perspectiveviewerelement_save(this.__wbg_ptr,f(t)?0:c(t));return u(e)}saveWorkspace(t){let e=r.perspectiveviewerelement_saveWorkspace(this.__wbg_ptr,f(t)?0:c(t));return u(e)}setActivePanel(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_setActivePanel(this.__wbg_ptr,e,n);return u(_)}setAutoPause(t){let e=r.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){r.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setCommandSchema(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setCommandSchema(b,this.__wbg_ptr,f(t)?0:c(t),f(e)?0:c(e));var n=s().getInt32(b+0,!0),_=s().getInt32(b+4,!0),i=s().getInt32(b+8,!0);if(i)throw u(_);return u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setSelection(t,e){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setSelection(i,this.__wbg_ptr,f(t)?0:c(t),f(e)?0:c(e));var n=s().getInt32(i+0,!0),_=s().getInt32(i+4,!0);if(_)throw u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){r.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!f(t),f(t)?0:t)}showCommandMenu(t,e,n){let _=r.perspectiveviewerelement_showCommandMenu(this.__wbg_ptr,c(t),c(e),c(n));return u(_)}toggleColumnSettings(t,e){let n=m(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,i=r.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,n,_,f(e)?0:c(e));return u(i)}toggleConfig(t){let e=r.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);var j=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=r.proxysession_close(t);return u(e)}handle_request(t){let e=r.proxysession_handle_request(this.__wbg_ptr,c(t));return u(e)}constructor(t,e){try{rt(t,F);let n=r.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,tt.register(this,this.__wbg_ptr,this),this}finally{k[O++]=void 0}}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var z=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_table_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.table___getClassname(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=r.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=r.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=r.table_delete(e,f(t)?0:c(t));return u(n)}describe(t){let e=r.table_describe(this.__wbg_ptr,f(t)?0:c(t));return u(e)}get_client(){let t=r.table_get_client(this.__wbg_ptr);return u(t)}get_features(){let t=r.table_get_features(this.__wbg_ptr);return u(t)}get_index(){let t=r.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=r.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=r.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=r.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.table_on_delete(this.__wbg_ptr,c(t));return u(e)}remove(t,e){let n=r.table_remove(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}remove_delete(t){let e=r.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=r.table_replace(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}schema(){let t=r.table_schema(this.__wbg_ptr);return u(t)}size(){let t=r.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=r.table_update(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}validate_expressions(t){let e=r.table_validate_expressions(this.__wbg_ptr,c(t));return u(e)}view(t){let e=r.table_view(this.__wbg_ptr,f(t)?0:c(t));return u(e)}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var I=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,lt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof a?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_view_free(t,0)}__get_model(){let t=r.view___get_model(this.__wbg_ptr);return a.__wrap(t)}__unsafe_get_name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.view___unsafe_get_name(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=r.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=r.view_column_paths(this.__wbg_ptr,f(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.view_delete(t);return u(e)}dimensions(){let t=r.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=r.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=r.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=r.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.view_get_min_max(this.__wbg_ptr,e,n);return u(_)}num_columns(){let t=r.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=r.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.view_on_delete(this.__wbg_ptr,c(t));return u(e)}on_remove(t){let e=r.view_on_remove(this.__wbg_ptr,c(t));return u(e)}on_update(t,e){let n=r.view_on_update(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}remove_delete(t){let e=r.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_remove(t){let e=r.view_remove_remove(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=r.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=r.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=r.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=r.view_to_arrow(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_columns(t){let e=r.view_to_columns(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_columns_string(t){let e=r.view_to_columns_string(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_csv(t){let e=r.view_to_csv(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_json(t){let e=r.view_to_json(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_json_string(t){let e=r.view_to_json_string(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_ndjson(t){let e=r.view_to_ndjson(this.__wbg_ptr,f(t)?0:c(t));return u(e)}with_typed_arrays(t,e){let n=r.view_with_typed_arrays(this.__wbg_ptr,f(t)?0:c(t),c(e));return u(n)}};Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);var M=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.virtualdataslice_fromArrowIpc(_,this.__wbg_ptr,c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.virtualdataslice_new(c(t));return this.__wbg_ptr=e>>>0,et.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setBooleanCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,_,i){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,y=m(e,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.virtualdataslice_setCol(w,this.__wbg_ptr,v,h,y,x,n,c(_),f(i)?4294967297:i>>>0);var b=s().getInt32(w+0,!0),g=s().getInt32(w+4,!0);if(g)throw u(b)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setDatetimeCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setFloatCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setIntegerCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setStringCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);var J=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=te(t,r.__wbindgen_export),n=p,_=r.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(_)}constructor(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.virtualserver_new(i,c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,pt.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);function Ft(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.getColumnConfigDefaults(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Rt(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.getPluginConfigDefaults(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Et(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_wasm_module(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Tt(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_worker_url(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Pt(a,t){r.init(c(a),c(t))}function Ot(a){let t=m(a,r.__wbindgen_export,r.__wbindgen_export2),e=p;r.registerPlugin(t,e)}function jt(a,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.setColumnConfigDefaults(_,c(a),f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function zt(a,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.setPluginConfigDefaults(_,c(a),f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ht(){return{__proto__:null,"./perspective-viewer.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=d(t,e);let _=Error(n);return c(_)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),_=typeof n=="bigint"?n:void 0;s().setBigInt64(t+8,f(_)?BigInt(0):_,!0),s().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e=="boolean"?e:void 0;return f(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=_t(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),_=typeof n=="number"?n:void 0;s().setFloat64(t+8,f(_)?0:_,!0),s().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),_=typeof n=="string"?n:void 0;var i=f(_)?0:m(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;s().setInt32(t+4,b,!0),s().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=d(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(t){o(t).abort()},__wbg_addEventListener_3acb0aad4483804c:function(){return l(function(t,e,n,_){var i=d(e,n);o(t).addEventListener(i,o(_))},arguments)},__wbg_addEventListener_5ef04ffb1d3af066:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).addEventListener(b,o(_),i!==0)},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).addEventListener(b,o(_),o(i))},arguments)},__wbg_add_2b0552fe2d2151c8:function(t,e){let n=o(t).add(o(e));return c(n)},__wbg_add_5be83378df680c25:function(){return l(function(t,e,n){var _=d(e,n);o(t).add(_)},arguments)},__wbg_adoptedStyleSheets_542d651fbb47685f:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_adoptedStyleSheets_d149afb005470855:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_appendChild_dea38765a26d346d:function(){return l(function(t,e){let n=o(t).appendChild(o(e));return c(n)},arguments)},__wbg_append_a992ccc37aa62dc4:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).append(b,g)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return l(function(t,e,n){let _=Reflect.apply(o(t),o(e),o(n));return c(_)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return l(function(t,e,n){let _=o(t).apply(o(e),o(n));return c(_)},arguments)},__wbg_assign_6170c0d04d5c26f4:function(t,e){let n=Object.assign(o(t),o(e));return c(n)},__wbg_asyncIterator_58dd45e58aa3721e:function(){return c(Symbol.asyncIterator)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return c(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return l(function(t,e){let n=o(t).attachShadow(o(e));return c(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return l(function(t){o(t).blur()},arguments)},__wbg_body_3a0b4437dadea6bf:function(t){let e=o(t).body;return f(e)?0:c(e)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return f(e)?0:c(e)},__wbg_bootstrap_2a6d707d9930b176:function(t,e,n,_,i,b){var g=d(e,n),w=d(_,i);let v=ut(o(t),g,w,u(b));return c(v)},__wbg_bottom_c7ec510a18034add:function(t){return o(t).bottom},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return c(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_b02185c5bc89ef2a:function(t){let e=o(t).__yew_subtree_cache_key;return f(e)?4294967297:e>>>0},__wbg_calculatePath_ec4e1b31c2e0e267:function(t,e,n){var _=d(e,n);let i=o(t).calculatePath(_);return c(i)},__wbg_calculatePresizePaths_74530e5aadce2dcf:function(t){let e=o(t).calculatePresizePaths();return c(e)},__wbg_call_389efe28435a9388:function(){return l(function(t,e){let n=o(t).call(o(e));return c(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return l(function(t,e,n,_,i,b){let g=o(t).call(o(e),o(n),o(_),o(i),o(b));return c(g)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return l(function(t,e,n){let _=o(t).call(o(e),o(n));return c(_)},arguments)},__wbg_call_812d25f1510c13c8:function(){return l(function(t,e,n,_){let i=o(t).call(o(e),o(n),o(_));return c(i)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return c(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return c(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return c(e)},__wbg_className_2a1be685f5d518d5:function(t,e){let n=o(e).className,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_clear_8acecf1cd271592d:function(){return l(function(t){let e=o(t).clear();return c(e)},arguments)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=F.__wrap(t);return c(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return c(e)},__wbg_clipboard_write_635ef00ad4bb61ff:function(){return l(function(t,e,n){var _=d(t,e);let i=at(_,o(n));return c(i)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return l(function(t,e){let n=o(t).cloneNode(e!==0);return c(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return l(function(t){let e=o(t).cloneNode();return c(e)},arguments)},__wbg_close_fad2f0ee451926ed:function(t){o(t).close()},__wbg_closest_11206fe6e0fb4e4e:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).closest(_);return f(i)?0:c(i)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_column_config_schema_a1d05ccd83ffadb0:function(){return l(function(t,e,n,_,i,b,g,w,v,h,y,x){var C=d(e,n),q=d(_,i),D=d(b,g),kt=d(y,x);let St=o(t).column_config_schema(C,q,D,o(w),o(v),o(h),kt);return c(St)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return c(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contains_6f4d5df35ef8a13a:function(t,e,n){var _=d(e,n);return o(t).contains(_)},__wbg_contentRect_c33dd8c6c98c10ec:function(t){let e=o(t).contentRect;return c(e)},__wbg_contentWindow_9efd0073ff9fa45b:function(t){let e=o(t).contentWindow;return f(e)?0:c(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).createElementNS(b,g);return c(w)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).createElement(_);return c(i)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return l(function(t,e){let n=URL.createObjectURL(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var _=d(e,n);let i=o(t).createTextNode(_);return c(i)},__wbg_cssRules_554f47f3049cf066:function(){return l(function(t){let e=o(t).cssRules;return c(e)},arguments)},__wbg_cssRules_85954e7c284ec53b:function(t){let e=o(t).cssRules;return c(e)},__wbg_cssText_8f3f27e60c824421:function(t,e){let n=o(e).cssText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return f(e)?0:c(e)},__wbg_data_5330da50312d0bc1:function(t){let e=o(t).data;return c(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return c(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,_){console.debug(o(t),o(e),o(n),o(_))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_decode_a28a47c6d83f2594:function(){return l(function(t,e,n,_,i){let b=o(e).decode(E(n,_),o(i)),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_define_panel_tab_a022a846f2f3f00c:function(t,e){var n=d(t,e);ct(n)},__wbg_delete_8318b529ff42aa20:function(t,e,n){var _=d(e,n);delete o(t)[_]},__wbg_delete_cb38d3df659ef700:function(t){o(t).delete()},__wbg_deselect_9a4eff6d68982366:function(){return l(function(t){let e=o(t).deselect();return c(e)},arguments)},__wbg_detail_934cf9545e3214d3:function(t){let e=o(t).detail;return c(e)},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return l(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return f(e)?0:c(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_da6e3692781f246e:function(){return l(function(t,e,n,_,i){let b=o(t).draw(I.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,i!==0);return c(b)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return c(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=vt(t,e).slice();r.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=d(t,e);t!==0&&r.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,_){console.error(o(t),o(e),o(n),o(_))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_fetch_e6e8e0a221783759:function(t,e){let n=o(t).fetch(o(e));return c(n)},__wbg_focus_128ff465f65677cc:function(){return l(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return c(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return c(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return c(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,_){var i=d(n,_);let b=o(e).getAttribute(i);var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return c(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return l(function(t,e){let n=o(t).getComputedStyle(o(e));return f(n)?0:c(n)},arguments)},__wbg_getContext_2a5764d48600bc43:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).getContext(_);return f(i)?0:c(i)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).getEntriesByName(b,g);return c(w)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).getPropertyValue(i),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return l(function(t,e){globalThis.crypto.getRandomValues(E(t,e))},arguments)},__wbg_getReader_804829cfb24eb4dd:function(t){let e=o(t).getReader();return c(e)},__wbg_getRootNode_193e544ed534e810:function(t){let e=o(t).getRootNode();return c(e)},__wbg_getSelection_d345357cda220f17:function(){return l(function(t){let e=o(t).getSelection();return f(e)?0:c(e)},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_0bdeda968867e10e:function(){return l(function(t,e){let n=Reflect.get(o(t),e>>>0);return c(n)},arguments)},__wbg_get_5dd1ee4c9f462865:function(t,e,n,_){var i=d(n,_);let b=o(e)[i];var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var _=d(e,n);let i=o(t)[_];return f(i)?0:c(i)},__wbg_get_941633a1d2f510cb:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).get(i);var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return c(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return l(function(t,e){let n=Reflect.get(o(t),o(e));return c(n)},arguments)},__wbg_get_d8db2ad31d529ff8:function(t,e){let n=o(t)[e>>>0];return f(n)?0:c(n)},__wbg_get_static_config_2fb609fb313e5ab8:function(t){let e=o(t).get_static_config();return c(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return f(n)?0:c(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return c(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var _=d(e,n);return o(t).hasAttribute(_)},__wbg_has_991efccb5a701a27:function(t,e){return o(t).has(o(e))},__wbg_has_d4e53238966c12b6:function(){return l(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_headers_59a2938db9f80985:function(t){let e=o(t).headers;return c(e)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_hidden_8ce6a98b8c12451c:function(t){return o(t).hidden},__wbg_hidePopover_f52b72171825485d:function(){return l(function(t){o(t).hidePopover()},arguments)},__wbg_hit_test_318eb10b91417fe6:function(){return l(function(t,e,n){let _=o(t).hit_test(e,n);return c(_)},arguments)},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return c(e)},__wbg_includes_32215c836f1cd3fb:function(t,e,n){return o(t).includes(o(e),n)},__wbg_indexOf_e5f91887d9e5023e:function(t,e,n){return o(t).indexOf(o(e),n)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,_){console.info(o(t),o(e),o(n),o(_))},__wbg_innerHeight_54aa104da08becd2:function(){return l(function(t){let e=o(t).innerHeight;return c(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return l(function(t){let e=o(t).innerWidth;return c(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return l(function(t,e,n){let _=o(t).insertBefore(o(e),o(n));return c(_)},arguments)},__wbg_insertPanel_f03a21e20c5921df:function(t,e,n,_,i){var b=d(e,n);let g=o(t).insertPanel(b,u(_),u(i));return c(g)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CanvasRenderingContext2d_4bb052fd1c3d134d:function(t){let e;try{e=o(t)instanceof CanvasRenderingContext2D}catch{e=!1}return e},__wbg_instanceof_CssGroupingRule_875241920a85dfd7:function(t){let e;try{e=o(t)instanceof CSSGroupingRule}catch{e=!1}return e},__wbg_instanceof_CssImportRule_21bd264cef048043:function(t){let e;try{e=o(t)instanceof CSSImportRule}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_CssStyleSheet_622aeba16e7e2d66:function(t){let e;try{e=o(t)instanceof CSSStyleSheet}catch{e=!1}return e},__wbg_instanceof_CustomEvent_7dc010f377596c94:function(t){let e;try{e=o(t)instanceof CustomEvent}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792:function(t){let e;try{e=o(t)instanceof HTMLCanvasElement}catch{e=!1}return e},__wbg_instanceof_HtmlElement_5abfac207260fd6f:function(t){let e;try{e=o(t)instanceof HTMLElement}catch{e=!1}return e},__wbg_instanceof_HtmlInputElement_c10b7260b4e0710a:function(t){let e;try{e=o(t)instanceof HTMLInputElement}catch{e=!1}return e},__wbg_instanceof_HtmlLinkElement_5eb5b0855a17d0fc:function(t){let e;try{e=o(t)instanceof HTMLLinkElement}catch{e=!1}return e},__wbg_instanceof_HtmlSelectElement_a1820832b22b0d1e:function(t){let e;try{e=o(t)instanceof HTMLSelectElement}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Node_da04bd8df43deba3:function(t){let e;try{e=o(t)instanceof Node}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_Response_ee1d54d79ae41977:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isCollapsed_617e9be3f62f5a25:function(t){return o(t).isCollapsed},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isContentEditable_f5b0ce009dbd035b:function(t){return o(t).isContentEditable},__wbg_isIntersecting_12e0d9feaf791ef9:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_isSameNode_3caa48d6eb3c880e:function(t,e){return o(t).isSameNode(o(e))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_64b77e6a26f7de76:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_iterator_6ff6560ca1568e55:function(){return c(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return c(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return c(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return f(e)?0:c(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_3f12bc1cab862cc3:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_3f13203bf7de1e4d:function(t){let e=o(t).__yew_listener_id;return f(e)?4294967297:e>>>0},__wbg_load_f8d29f3c1bda8dd1:function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).load(b,g);return c(w)},__wbg_mark_3b530a64b09ba08a:function(){return l(function(t,e,n){var _=d(e,n);o(t).mark(_)},arguments)},__wbg_maximize_165146aae8127441:function(t,e,n){var _=d(e,n);o(t).maximize(_)},__wbg_measureText_9d64a92333bd05ee:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).measureText(_);return c(i)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).measure(b,g)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return c(e)},__wbg_minimize_bcdf0c5bfe3a5cd6:function(t){o(t).minimize()},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var _=f(n)?0:m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return c(e)},__wbg_new_16c83877745f8d12:function(){return l(function(t,e){var n=d(t,e);let _=new InputEvent(n);return c(_)},arguments)},__wbg_new_1d5bd472c706b768:function(){return l(function(){let t=new CSSStyleSheet;return c(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return c(e)},__wbg_new_2ec3ec8c398b20d2:function(){return l(function(){let t=new TextDecoder;return c(t)},arguments)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return c(t)},__wbg_new_384a230f8673183c:function(){return l(function(t,e){var n=d(t,e);let _=new CustomEvent(n);return c(_)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return c(t)},__wbg_new_406106b44b3d11fa:function(t){let e=new Set(o(t));return c(e)},__wbg_new_64284bd487f9d239:function(){return l(function(){let t=new Headers;return c(t)},arguments)},__wbg_new_6f0524fbfa300c47:function(){return l(function(){let t=new MessageChannel;return c(t)},arguments)},__wbg_new_72b49615380db768:function(t,e){var n=d(t,e);let _=new Error(n);return c(_)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return c(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return c(t)},__wbg_new_8fec9586bfa334f1:function(t){let e=new st(o(t));return c(e)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},_=(b,g)=>{let w=n.a;n.a=0;try{return Ht(w,n.b,b,g)}finally{n.a=w}};let i=new Promise(_);return c(i)}finally{n.a=n.b=0}},__wbg_new_b949e7f56150a5d1:function(){return l(function(){let t=new AbortController;return c(t)},arguments)},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return c(n)},__wbg_new_dca287b076112a51:function(){return c(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return c(e)},__wbg_new_f8e621849595859d:function(t){let e=new it(o(t));return c(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(E(t,e));return c(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=d(t,e);let _=new Function(n);return c(_)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return l(function(t,e,n){var _=d(t,e);let i=new CustomEvent(_,o(n));return c(i)},arguments)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return l(function(t,e,n){var _=d(t,e);let i=new Request(_,o(n));return c(i)},arguments)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return l(function(t,e){let n=new Blob(o(t),o(e));return c(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return l(function(t){let e=new Blob(o(t));return c(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return f(e)?0:c(e)},__wbg_next_3482f54c49e8af19:function(){return l(function(t){let e=o(t).next();return c(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return c(e)},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_30e2b1d1734b4f5b:function(t,e){o(t).observe(o(e))},__wbg_observe_9eeb06a51ff51720:function(t,e){o(t).observe(o(e))},__wbg_of_f915f7cd925b21a5:function(t){let e=Array.of(o(t));return c(e)},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return f(e)?0:c(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_ok_87f537440a0acf85:function(t){return o(t).ok},__wbg_overlay_f897d9506f79ff45:function(t){let e=o(t).overlay;return c(e)},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return f(e)?0:c(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return f(e)?0:c(e)},__wbg_parse_708461a1feddfb38:function(){return l(function(t,e){var n=d(t,e);let _=JSON.parse(n);return c(_)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return f(e)?0:c(e)},__wbg_plugin_config_schema_951aaf0c42ce4103:function(){return l(function(t,e,n){let _=o(t).plugin_config_schema(o(e),o(n));return c(_)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return c(e)},__wbg_port1_6251ddc5cf5c9287:function(t){let e=o(t).port1;return c(e)},__wbg_port2_b2a294b0ede1e13c:function(t){let e=o(t).port2;return c(e)},__wbg_postMessage_99dab4742cd26c46:function(){return l(function(t,e,n,_,i){var b=d(n,_);o(t).postMessage(o(e),b,o(i))},arguments)},__wbg_prepend_12ed960547d9dfe1:function(){return l(function(t,e){o(t).prepend(o(e))},arguments)},__wbg_presize_fabbd48e8f9835bc:function(){return l(function(t,e,n){let _=o(t).presize(e,n);return c(_)},arguments)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(E(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_querySelectorAll_1283aae52043a951:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelectorAll(_);return c(i)},arguments)},__wbg_querySelectorAll_5875742f4e11f759:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelectorAll(_);return c(i)},arguments)},__wbg_querySelector_1be4292f202b1597:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelector(_);return f(i)?0:c(i)},arguments)},__wbg_querySelector_4dc619d02f6cb079:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelector(_);return f(i)?0:c(i)},arguments)},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return c(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return c(e)},__wbg_read_68fd377df67e19b0:function(t){let e=o(t).read();return c(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_realCoordinates_78d80792fe45c1ac:function(t,e){let n=o(t).realCoordinates(o(e));return c(n)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return c(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return f(e)?0:c(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return l(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAllRanges_39254b77dc6257ab:function(){return l(function(t){o(t).removeAllRanges()},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return l(function(t,e,n){var _=d(e,n);o(t).removeAttribute(_)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return l(function(t,e){let n=o(t).removeChild(o(e));return c(n)},arguments)},__wbg_removeEventListener_0c0902ed5009dd9f:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).removeEventListener(b,o(_),i!==0)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return l(function(t,e,n,_){var i=d(e,n);o(t).removeEventListener(i,o(_))},arguments)},__wbg_removePanel_abf8244e1d93ce46:function(t,e,n){var _=d(e,n);let i=o(t).removePanel(_);return c(i)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).removeProperty(i),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_remove_31c39325eee968fc:function(t){o(t).remove()},__wbg_remove_f9451697e0bc6ca0:function(){return l(function(t,e,n){var _=d(e,n);o(t).remove(_)},arguments)},__wbg_render_413dc7c2163aeef3:function(){return l(function(t,e,n){let _=o(t).render(I.__wrap(e),u(n));return c(_)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return l(function(t,e,n){var _=d(e,n);o(t).replaceSync(_)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return l(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_9f691e7e5d903fd7:function(){return l(function(t){let e=o(t).resize();return c(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return c(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return c(e)},__wbg_restorePhysics_53be454c7b33c820:function(t,e){o(t).restorePhysics(o(e))},__wbg_restoreSync_a5d618560a9bbd86:function(t,e){o(t).restoreSync(o(e))},__wbg_restore_3de855f8648b36f3:function(){return l(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_3318980da178e2a7:function(t){o(t).restyle()},__wbg_resumeResize_ce0e9532052de7b5:function(t){o(t).resumeResize()},__wbg_right_154af6c2b1bf0c89:function(t){return o(t).right},__wbg_run_445af8472ad115ff:function(){return l(function(t,e){let n=o(t).run(o(e));return c(n)},arguments)},__wbg_save_05e0270a31077458:function(t){let e=o(t).save();return c(e)},__wbg_scrollHeight_25e40881bfad55b6:function(t){return o(t).scrollHeight},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_select_18abcadc37ebf538:function(t,e,n){var _=d(e,n);let i=o(t).select(_);return c(i)},__wbg_select_f96715f412d93f23:function(t){o(t).select()},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return l(function(t){let e=o(t).selectionEnd;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return l(function(t){let e=o(t).selectionStart;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).setAttribute(b,g)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,_){o(t).setDragImage(o(e),n,_)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return l(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).setProperty(b,g)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return l(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_21d8cc2869b34c58:function(t,e){return setTimeout(o(t),e)},__wbg_setTimeout_eff32631ea138533:function(){return l(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let _=o(t).set(o(e),o(n));return c(_)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return l(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_body_9a7e00afe3cfe244:function(t,e){o(t).body=o(e)},__wbg_set_bubbles_739f291693b2bbec:function(t,e){o(t).bubbles=e!==0},__wbg_set_cache_key_ace1fa875f02b7cd:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_className_c1d9e7362164af61:function(t,e,n){var _=d(e,n);o(t).className=_},__wbg_set_composed_e4a9826a628ca7f8:function(t,e){o(t).composed=e!==0},__wbg_set_cssText_18380c97092caefa:function(t,e,n){var _=d(e,n);o(t).cssText=_},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return l(function(t,e,n){var _=d(e,n);o(t).defaultValue=_},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var _=d(e,n);o(t).dropEffect=_},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t)[b]=g},arguments)},__wbg_set_font_575685c8f7e56957:function(t,e,n){var _=d(e,n);o(t).font=_},__wbg_set_headers_cfc5f4b2c1f20549:function(t,e){o(t).headers=o(e)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var _=d(e,n);o(t).innerHTML=_},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var _=d(e,n);o(t).innerText=_},__wbg_set_listener_id_8b77f7eb9adb712b:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_method_c3e20375f5ae7fac:function(t,e,n){var _=d(e,n);o(t).method=_},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Bt[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var _=d(e,n);o(t).nodeValue=_},__wbg_set_onload_7f48f88f0514211d:function(t,e){o(t).onload=o(e)},__wbg_set_onmessage_0e1ffb1c0d91d2ad:function(t,e){o(t).onmessage=o(e)},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_scrollTop_fb454582dda63417:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return l(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return l(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_signal_f2d3f8599248896d:function(t,e){o(t).signal=o(e)},__wbg_set_stream_8a7c5f563fa185b4:function(t,e){o(t).stream=e!==0},__wbg_set_subtree_id_8be88ea477740786:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var _=d(e,n);o(t).type=_},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_set_value_c3556fce049236f0:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return f(e)?0:c(e)},__wbg_sheet_38c9043b5f37d85d:function(t){let e=o(t).sheet;return f(e)?0:c(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_showPicker_ba1d36381dae3011:function(){return l(function(t){o(t).showPicker()},arguments)},__wbg_showPopover_7166cd0808998024:function(){return l(function(t){o(t).showPopover()},arguments)},__wbg_signal_d1285ecab4ebc5ad:function(t){let e=o(t).signal;return c(e)},__wbg_slot_7d421d6c9d6c8352:function(t,e){let n=o(e).slot,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>"u"?null:self;return f(t)?0:c(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>"u"?null:globalThis;return f(t)?0:c(t)},__wbg_static_accessor_PSP_ad579a92fa44eb52:function(){return c(X)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>"u"?null:self;return f(t)?0:c(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>"u"?null:window;return f(t)?0:c(t)},__wbg_statusText_556131a02d60f5cd:function(t,e){let n=o(e).statusText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_status_89d7e803db911ee7:function(t){return o(t).status},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return l(function(t,e,n){let _=JSON.stringify(o(t),o(e),o(n));return c(_)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return l(function(t){let e=JSON.stringify(o(t));return c(e)},arguments)},__wbg_styleSheet_66d04471448b344e:function(t){let e=o(t).styleSheet;return f(e)?0:c(e)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return c(e)},__wbg_styleSheets_f6881090d63936f3:function(t){let e=o(t).styleSheets;return c(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return c(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return c(e)},__wbg_subtree_id_1739fcadc43deeca:function(t){let e=o(t).__yew_subtree_id;return f(e)?4294967297:e>>>0},__wbg_supportedValuesOf_4ed4698dca0c6279:function(t){let e=Intl.supportedValuesOf(o(t));return c(e)},__wbg_table_new:function(t){let e=z.__wrap(t);return c(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return f(e)?0:c(e)},__wbg_text_083b8727c990c8c0:function(){return l(function(t){let e=o(t).text();return c(e)},arguments)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let _=o(t).then(o(e),o(n));return c(_)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return c(n)},__wbg_timeStamp_ddfe1bf5c2346d68:function(t){return o(t).timeStamp},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return c(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return l(function(t,e,n,_){var i=d(e,n);return o(t).toggleAttribute(i,_!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return l(function(t,e,n){var _=d(e,n);return o(t).toggle(_)},arguments)},__wbg_toggle_b8e3ebf1a7aaeb11:function(){return l(function(t,e,n,_){var i=d(e,n);return o(t).toggle(i,_!==0)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,_){console.trace(o(t),o(e),o(n),o(_))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_unobserve_1a7fcd1a65c1b4b7:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_f612621cc2288a56:function(t,e){o(t).unobserve(o(e))},__wbg_update_44a19267b9c75794:function(){return l(function(t,e,n,_,i){let b=o(t).update(I.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,i!==0);return c(b)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return c(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_value_d402dce7dcb16251:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return c(e)},__wbg_view_new:function(t){let e=I.__wrap(t);return c(e)},__wbg_view_unwrap:function(t){return I.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=M.__wrap(t);return c(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,_){console.warn(o(t),o(e),o(n),o(_))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_9bbf873307a2ac4e:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbindgen_cast_0000000000000001:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_7842,bt);return c(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_7842,bt);return c(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_7842,R);return c(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_7842,Lt);return c(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_21462,Nt);return c(n)},__wbindgen_cast_000000000000000b:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_22081,gt);return c(n)},__wbindgen_cast_000000000000000c:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_22081,gt);return c(n)},__wbindgen_cast_000000000000000d:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_22081,Mt);return c(n)},__wbindgen_cast_000000000000000e:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_23473,Dt);return c(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_23473,qt);return c(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_28172,Wt);return c(n)},__wbindgen_cast_0000000000000011:function(t){return c(t)},__wbindgen_cast_0000000000000012:function(t){return c(t)},__wbindgen_cast_0000000000000013:function(t,e){var n=d(t,e);return c(n)},__wbindgen_cast_0000000000000014:function(t,e){let n=Vt(t,e);return c(n)},__wbindgen_cast_0000000000000015:function(t,e){let n=$t(t,e);return c(n)},__wbindgen_cast_0000000000000016:function(t,e){let n=Gt(t,e);return c(n)},__wbindgen_cast_0000000000000017:function(t,e){let n=Jt(t,e);return c(n)},__wbindgen_cast_0000000000000018:function(t,e){let n=E(t,e);return c(n)},__wbindgen_cast_0000000000000019:function(t){let e=BigInt.asUintN(64,t);return c(e)},__wbindgen_cast_000000000000001a:function(t,e){var n=vt(t,e).slice();return r.__wbindgen_export4(t,e*4,4),c(n)},__wbindgen_cast_000000000000001b:function(t,e){var n=E(t,e).slice();return r.__wbindgen_export4(t,e*1,1),c(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return c(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function Mt(a,t){r.__wasm_bindgen_func_elem_22085(a,t)}function qt(a,t){r.__wasm_bindgen_func_elem_24097(a,t)}function Dt(a,t){let e=r.__wasm_bindgen_func_elem_24096(a,t);return u(e)}function bt(a,t,e){r.__wasm_bindgen_func_elem_8959(a,t,c(e))}function R(a,t,e){r.__wasm_bindgen_func_elem_8960(a,t,c(e))}function Lt(a,t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.__wasm_bindgen_func_elem_8961(i,a,t);var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Nt(a,t,e){try{r.__wasm_bindgen_func_elem_21486(a,t,ot(e))}finally{k[O++]=void 0}}function gt(a,t,e){r.__wasm_bindgen_func_elem_22086(a,t,c(e))}function Wt(a,t,e){r.__wasm_bindgen_func_elem_28174(a,t,c(e))}function Ht(a,t,e,n){r.__wasm_bindgen_func_elem_36995(a,t,c(e),c(n))}var Bt=["open","closed"],Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_client_free(a>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_genericsqlvirtualservermodel_free(a>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_perspectivedebugpluginelement_free(a>>>0,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_perspectiveviewerelement_free(a>>>0,1)),tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_proxysession_free(a>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_table_free(a>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_view_free(a>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_virtualdataslice_free(a>>>0,1)),pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_virtualserver_free(a>>>0,1));function c(a){U===k.length&&k.push(k.length+1);let t=U;return U=k[t],k[t]=a,t}function rt(a,t){if(!(a instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(a){if(O==1)throw new Error("out of js stack");return k[--O]=a,O}var K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>a.dtor(a.a,a.b));function _t(a){let t=typeof a;if(t=="number"||t=="boolean"||a==null)return`${a}`;if(t=="string")return`"${a}"`;if(t=="symbol"){let _=a.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){let _=a.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(a)){let _=a.length,i="[";_>0&&(i+=_t(a[0]));for(let b=1;b<_;b++)i+=", "+_t(a[b]);return i+="]",i}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(a)),n;if(e&&e.length>1)n=e[1];else return toString.call(a);if(n=="Object")try{return"Object("+JSON.stringify(a)+")"}catch{return"Object"}return a instanceof Error?`${a.name}: ${a.message}\n${a.stack}`:n}function Ut(a){a<132||(k[a]=U,U=a)}function Vt(a,t){return a=a>>>0,Xt().subarray(a/4,a/4+t)}function $t(a,t){return a=a>>>0,Yt().subarray(a/8,a/8+t)}function Gt(a,t){return a=a>>>0,Kt().subarray(a/4,a/4+t)}function vt(a,t){a=a>>>0;let e=s(),n=[];for(let _=a;_<a+4*t;_+=4)n.push(u(e.getUint32(_,!0)));return n}function Jt(a,t){return a=a>>>0,Zt().subarray(a/4,a/4+t)}function E(a,t){return a=a>>>0,P().subarray(a/1,a/1+t)}function d(a,t){return a===0?o(t):Qt(a,t)}var A=null;function s(){return(A===null||A.buffer.detached===!0||A.buffer.detached===void 0&&A.buffer!==r.memory.buffer)&&(A=new DataView(r.memory.buffer)),A}var L=null;function Xt(){return(L===null||L.byteLength===0)&&(L=new Float32Array(r.memory.buffer)),L}var N=null;function Yt(){return(N===null||N.byteLength===0)&&(N=new Float64Array(r.memory.buffer)),N}var W=null;function Kt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(r.memory.buffer)),W}function Qt(a,t){return a=a>>>0,ne(a,t)}var H=null;function Zt(){return(H===null||H.byteLength===0)&&(H=new Uint32Array(r.memory.buffer)),H}var B=null;function P(){return(B===null||B.byteLength===0)&&(B=new Uint8Array(r.memory.buffer)),B}function o(a){return k[a]}function l(a,t){try{return a.apply(this,t)}catch(e){r.__wbindgen_export3(c(e))}}var k=new Array(128).fill(void 0);k.push(void 0,null,!0,!1);var U=k.length;function f(a){return a==null}function T(a,t,e,n){let _={a,b:t,cnt:1,dtor:e},i=(...b)=>{_.cnt++;try{return n(_.a,_.b,...b)}finally{i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(i,_,_),i}function S(a,t,e,n){let _={a,b:t,cnt:1,dtor:e},i=(...b)=>{_.cnt++;let g=_.a;_.a=0;try{return n(g,_.b,...b)}finally{_.a=g,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(i,_,_),i}function te(a,t){let e=t(a.length*1,1)>>>0;return P().set(a,e/1),p=a.length,e}function yt(a,t){let e=t(a.length*4,4)>>>0,n=s();for(let _=0;_<a.length;_++)n.setUint32(e+4*_,c(a[_]),!0);return p=a.length,e}function m(a,t,e){if(e===void 0){let g=mt.encode(a),w=t(g.length,1)>>>0;return P().subarray(w,w+g.length).set(g),p=g.length,w}let n=a.length,_=t(n,1)>>>0,i=P(),b=0;for(;b<n;b++){let g=a.charCodeAt(b);if(g>127)break;i[_+b]=g}if(b!==n){b!==0&&(a=a.slice(b)),_=e(_,n,n=b+a.length*3,1)>>>0;let g=P().subarray(_+b,_+n),w=mt.encodeInto(a,g);b+=w.written,_=e(_,n,b,1)>>>0}return p=b,_}var O=128;function u(a){let t=o(a);return Ut(a),t}var Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Y.decode();var ee=2146435072,nt=0;function ne(a,t){return nt+=t,nt>=ee&&(Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Y.decode(),nt=t),Y.decode(P().subarray(a,a+t))}var mt=new TextEncoder,p=0,re,r;function xt(a,t){return r=a.exports,re=t,A=null,L=null,N=null,W=null,H=null,B=null,r}async function _e(a,t){if(typeof Response=="function"&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(a,t)}catch(_){if(a.ok&&e(a.type)&&a.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",_);else throw _}let n=await a.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(a,t);return n instanceof WebAssembly.Instance?{instance:n,module:a}:n}function e(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}function oe(a){if(r!==void 0)return r;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=ht();a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a));let e=new WebAssembly.Instance(a,t);return xt(e,a)}async function It(a){if(r!==void 0)return r;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module_or_path:a}=a:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let t=ht();(typeof a=="string"||typeof Request=="function"&&a instanceof Request||typeof URL=="function"&&a instanceof URL)&&(a=fetch(a));let{instance:e,module:n}=await _e(await a,t);return xt(e,n)}export{F as Client,V as GenericSQLVirtualServerModel,$ as PerspectiveDebugPluginElement,G as PerspectiveViewerElement,j as ProxySession,z as Table,I as View,M as VirtualDataSlice,J as VirtualServer,It as default,Ft as getColumnConfigDefaults,Rt as getPluginConfigDefaults,Et as get_wasm_module,Tt as get_worker_url,Pt as init,oe as initSync,Ot as registerPlugin,jt as setColumnConfigDefaults,zt as setPluginConfigDefaults};\n',$=null;async function me(){if($)return $;let t=new Blob([ve],{type:"application/javascript"});return $=URL.createObjectURL(t),$}async function mt(t,e){await fe(t,e)}var _t;we(async t=>{let e=await me(),[n,r]=await Promise.all([_t===void 0?import(e):_t,t instanceof WebAssembly.Module?t:WebAssembly.compile(t)]);return await n.default({module_or_path:r}),await n.init(r,e),{glue:n,module:r}});function ye(t){return typeof t=="object"&&!(t instanceof Promise)&&!(t instanceof Response)&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t)}async function Ie(t,e){let n=ye(t)?t:{viewer:t},{viewer:r,migrate:_}=n;if(r===void 0&&_===void 0)throw new Error("init_client requires a wasm source or a {viewer, migrate} registration");e!==void 0&&(_t=e),await mt({viewer:r,migrate:_})}async function xe(){return await it()}async function Ee(t,e,n){return(await it()).migrate(t,e,n)}async function Se(t,e,n){(await it()).validate(t,e,n)}var Ce={create_validator:xe,init:mt,init_client:Ie,migrate:Ee,validate:Se};be({viewer:()=>fetch(new URL("../wasm/perspective-viewer.wasm",import.meta.url)),migrate:()=>fetch(ue(import.meta.url,"viewer","client","perspective-migrate.wasm"))});await pe();var ze=Ce;export{Te as HTMLPerspectiveViewerPluginElement,De as PerspectiveSelectDetail,Pe as createDateFormatter,Re as createDatetimeFormatter,Ae as createNumberFormatter,xe as create_validator,ze as default,mt as init,Ie as init_client,Ee as migrate,ke as providers,Le as sourceColumn,Se as validate};
18
+ `,$t=t=>`"${t.replace(/[\\"\n]/g,e=>e===`
19
+ `?"\\A ":`\\${e}`)}"`,Ut=t=>`--regular-layout-${globalThis.CSS.escape(t)}--title`,qt=class extends HTMLElement{s;v;b;e;_;T;r=null;connectedCallback(){this.v??=new CSSStyleSheet,this.v.replaceSync(jt),this.b??=new CSSStyleSheet,this.s??=this.attachShadow({mode:"open"}),this.s.adoptedStyleSheets=[this.v,this.b],this.s.innerHTML=Ft,this.e=this.parentElement,this._=this.s.children[0],this.T=this._.querySelector("regular-layout-tab"),this._.addEventListener("pointerdown",this.onPointerDown),this.addEventListener("pointermove",this.onPointerMove),this.addEventListener("pointerup",this.onPointerUp),this.addEventListener("pointercancel",this.onPointerCancel),this.addEventListener("lostpointercapture",this.onPointerCancel),this.e.addEventListener("regular-layout-update",this.drawTabs),this.e.addEventListener("regular-layout-before-update",this.drawTabs)}disconnectedCallback(){this._.removeEventListener("pointerdown",this.onPointerDown),this.removeEventListener("pointermove",this.onPointerMove),this.removeEventListener("pointerup",this.onPointerUp),this.removeEventListener("pointercancel",this.onPointerCancel),this.removeEventListener("lostpointercapture",this.onPointerCancel),this.e.removeEventListener("regular-layout-update",this.drawTabs),this.e.removeEventListener("regular-layout-before-update",this.drawTabs)}onPointerDown=t=>{if(t.button===0&&t.target.part.contains("tab")){let e=this.getAttribute(this.e.savePhysics().CHILD_ATTRIBUTE_NAME),n=this.e.calculateIntersect(t);n&&e?(this.r={path:{...n,slot:e}},this.setPointerCapture(t.pointerId),t.preventDefault()):this.r=null}};onPointerMove=t=>{if(this.r){let e=this.e.savePhysics();if(!this.r.moved&&this.e.diffCoordinates(t,this.r.path)<=e.MIN_DRAG_DISTANCE)return;this.r.moved=!0,this.e.setOverlayState(t,this.r.path)}};onPointerUp=t=>{let e=this.r;this.r=null,e?.moved&&this.e.clearOverlayState(t,e.path)};onPointerCancel=t=>{let e=this.r;this.r=null,e?.moved&&this.e.clearOverlayState(null,e.path)};drawTabs=t=>{let e=this.e.savePhysics().CHILD_ATTRIBUTE_NAME,n=this.getAttribute(e);if(!n)return;let r=this.e.getPanel(n,t.detail);r||(r={type:"tab-layout",tabs:[n],selected:0});let _=r.tabs.indexOf(n),i=(r.selected??0)===_;this.toggleAttribute("inactive",!i),this.T.populate(this.e,r,_),this.drawTab(n,_,r.tabs.length)};drawTab=(t,e,n)=>{this.b.replaceSync([`.tabs{grid-template-columns:repeat(${n},var(--rl-tab-width,1fr))}`,`.tabs slot[name="tab"]{grid-column:${e+1}}`,`[part~="title"]::before{content:var(${Ut(t)}, ${$t(t)})}`].join(`
20
+ `))}},Ht=class extends HTMLElement{e;c;m;populate=(t,e,n)=>{if(this.setAttribute(t.savePhysics().CHILD_ATTRIBUTE_NAME,e.tabs[n]),this.c)(n===e.selected!=(n===this.c?.selected)||this.c?.tabs[n]!==e.tabs[n])&&(e.selected===n?(this.children[1].part.add("active-close"),this.part.add("active-tab")):(this.children[1].part.remove("active-close"),this.part.remove("active-tab")));else{let r=e.selected===n,_=r?"active-close close":"close";this.innerHTML=`<div part="title"></div><button part="${_}"></button>`,r?this.part.add("tab","active-tab"):this.part.add("tab"),this.addEventListener("pointerdown",this.onTabClick),this.children[1].addEventListener("pointerdown",this.onTabClose)}this.c=e,this.e=t,this.m=n};onTabClose=t=>{t instanceof PointerEvent&&t?.button!==0||this.c!==void 0&&this.m!==void 0&&this.e?.removePanel(this.c.tabs[this.m])};onTabClick=t=>{t.button===0&&this.c!==void 0&&this.m!==void 0&&this.e?.select(this.c.tabs[this.m])}},Bt=[["regular-layout",Nt],["regular-layout-frame",qt],["regular-layout-tab",Ht]];function Vt(t=customElements){for(let[e,n]of Bt)t.get(e)||t.define(e,n)}Vt();var ke=class extends HTMLElement{constructor(){super()}get_static_config(){return{name:"Debug",select_mode:"select",config_column_names:[]}}column_style_config(){return{}}async update(t){return this.draw(t)}async draw(t){this.style.backgroundColor="#fff";let e=await t.to_csv(),n="margin:0;overflow:scroll;position:absolute;width:100%;height:100%";this.innerHTML=`<pre style='${n}'>${e}</pre>`}async clear(){this.innerHTML=""}async resize(t){}restyle(){}restore(){}async delete(){}get supports_streaming(){return!1}},Ae={anthropic:{name:"anthropic",url:"https://api.anthropic.com/v1/chat/completions",headers:{"anthropic-dangerous-direct-browser-access":"true"},model:"claude-opus-5"},gemini:{name:"gemini",url:"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",model:"gemini-2.5-flash"},lmstudio:{name:"lmstudio",url:"http://localhost:1234/v1/chat/completions"},ollama:{name:"ollama",url:"http://localhost:11434/v1/chat/completions"},openrouter:{name:"openrouter",url:"https://openrouter.ai/api/v1/chat/completions"},openai:{name:"openai",url:"https://api.openai.com/v1/chat/completions",model:"gpt-5.2"}},wt=["dateStyle","timeStyle","weekday","year","month","day","hour","minute","second","fractionalSecondDigits"],Wt=["timeZone","hour12"];function Gt(t){return wt.some(e=>t?.[e]!==void 0)}var Yt={float:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},Kt={dateStyle:"short",timeStyle:"medium"},st={dateStyle:"short"},Xt=[["style","currency","currencyDisplay","currencySign","unit","unitDisplay"],["notation","compactDisplay"],["minimumFractionDigits","maximumFractionDigits"],["minimumSignificantDigits","maximumSignificantDigits"]];function Zt(t,e){let n={};for(let[_,i]of Object.entries(e??{}))i!=null&&(n[_]=i);let r={...t};for(let _ of Xt)if(_.some(i=>i in n))for(let i of _)delete r[i];return Object.assign(r,n)}function Re(t,e,n){let r=n??Yt[t]??{},_=e?Zt(r,e):r;return new Intl.NumberFormat(navigator.languages,_)}function pt(t,e,n){let r=[t,e,n],_=r.find(Gt)??{},i={},o=(a,s)=>{s!==void 0&&s[a]!==void 0&&(i[a]=s[a])};for(let a of wt)o(a,_);for(let a of Wt)o(a,r.find(s=>s?.[a]!==void 0));return i}function Pe(t,e){return new Intl.DateTimeFormat(navigator.languages,pt(t,e,Kt))}function Le(t,e){let{dateStyle:n}=pt(t,e,st);return new Intl.DateTimeFormat(navigator.languages,{timeZone:"utc",dateStyle:n??st.dateStyle})}function De(t){return t.split("|").at(-1)??t}var Oe=class{selected;row;column_names;removeConfigs;insertConfigs;panel;constructor(t,e,n,r,_,i){this.selected=t,this.row=e,this.column_names=n,this.removeConfigs=r,this.insertConfigs=_,this.panel=i}get removeFilters(){return this.removeConfigs.flatMap(t=>t.filter??[])}get insertFilters(){return this.insertConfigs.flatMap(t=>t.filter??[])}};async function Jt(t){let e;t instanceof Response?e=await WebAssembly.instantiateStreaming(t):typeof t=="string"?e=await WebAssembly.instantiateStreaming(fetch(t)):t instanceof ArrayBuffer?e=await WebAssembly.instantiate(t):e=t;let n=e.instance.exports,[r]=WebAssembly.Module.customSections(e.module,"psp-runtime"),[_]=WebAssembly.Module.customSections(e.module,"psp-len"),i=new DataView(_).getUint32(0,!0),o=n.resize(r.byteLength);new Uint8Array(n.memory.buffer).set(new Uint8Array(r),o);let a=n.compile(r.byteLength,i);return new Uint8Array(n.memory.buffer).slice(a,i+a)}if(typeof WebAssembly>"u")throw new Error("WebAssembly not supported.");async function Qt(t){t instanceof Function&&(t=await t()),t instanceof Promise&&(t=await t);try{return await Jt(t)}catch{return console.warn("Stage 0 wasm loading failed, skipping"),new Uint8Array(t)}}var ze=new Uint8Array([0,97,115,109,1,0,0,0,5,3,1,4,1]);function te(t,e,n){try{let s=f.__wbindgen_add_to_stack_pointer(-16),u=k(t,f.__wbindgen_export,f.__wbindgen_export2),g=x;var r=I(e)?0:k(e,f.__wbindgen_export,f.__wbindgen_export2),_=x;f.migrate(s,u,g,r,_,p(n));var i=v().getInt32(s+0,!0),o=v().getInt32(s+4,!0),a=v().getInt32(s+8,!0);if(a)throw S(o);return S(i)}finally{f.__wbindgen_add_to_stack_pointer(16)}}function ee(t,e,n){try{let i=f.__wbindgen_add_to_stack_pointer(-16),o=k(t,f.__wbindgen_export,f.__wbindgen_export2),a=x;f.validate_config(i,o,a,p(e),I(n)?16777215:n?1:0);var r=v().getInt32(i+0,!0),_=v().getInt32(i+4,!0);if(_)throw S(r)}finally{f.__wbindgen_add_to_stack_pointer(16)}}function ne(){return{__proto__:null,"./perspective-migrate.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){let n=Error(X(t,e));return p(n)},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(d(e)),r=k(n,f.__wbindgen_export,f.__wbindgen_export2),_=x;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=d(e),r=typeof n=="bigint"?n:void 0;v().setBigInt64(t+8,I(r)?BigInt(0):r,!0),v().setInt32(t+0,!I(r),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=d(t),n=typeof e=="boolean"?e:void 0;return I(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=rt(d(e)),r=k(n,f.__wbindgen_export,f.__wbindgen_export2),_=x;v().setInt32(t+4,_,!0),v().setInt32(t+0,r,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return d(t)in d(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof d(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof d(t)=="function"},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=d(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof d(t)=="string"},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return d(t)===d(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return d(t)==d(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=d(e),r=typeof n=="number"?n:void 0;v().setFloat64(t+8,I(r)?0:r,!0),v().setInt32(t+0,!I(r),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=d(e),r=typeof n=="string"?n:void 0;var _=I(r)?0:k(r,f.__wbindgen_export,f.__wbindgen_export2),i=x;v().setInt32(t+4,i,!0),v().setInt32(t+0,_,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){throw new Error(X(t,e))},__wbg_call_389efe28435a9388:function(){return Z(function(t,e){let n=d(t).call(d(e));return p(n)},arguments)},__wbg_done_57b39ecd9addfe81:function(t){return d(t).done},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(d(t));return p(e)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=d(t)[e>>>0];return p(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return Z(function(t,e){let n=Reflect.get(d(t),d(e));return p(n)},arguments)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=d(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=d(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=d(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(d(t))},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(d(t))},__wbg_iterator_6ff6560ca1568e55:function(){return p(Symbol.iterator)},__wbg_length_32ed9a279acd054c:function(t){return d(t).length},__wbg_length_35a7bace40f36eac:function(t){return d(t).length},__wbg_new_361308b2356cecd0:function(){let t=new Object;return p(t)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return p(t)},__wbg_new_dca287b076112a51:function(){return p(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(d(t));return p(e)},__wbg_next_3482f54c49e8af19:function(){return Z(function(t){let e=d(t).next();return p(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=d(t).next;return p(e)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(_e(t,e),d(n))},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let r=d(t).set(d(e),d(n));return p(r)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){d(t)[S(e)]=S(n)},__wbg_set_f43e577aea94465b:function(t,e,n){d(t)[e>>>0]=S(n)},__wbg_value_0546255b415e96c1:function(t){let e=d(t).value;return p(e)},__wbindgen_cast_0000000000000001:function(t){return p(t)},__wbindgen_cast_0000000000000002:function(t){return p(t)},__wbindgen_cast_0000000000000003:function(t,e){let n=X(t,e);return p(n)},__wbindgen_cast_0000000000000004:function(t){let e=BigInt.asUintN(64,t);return p(e)},__wbindgen_object_drop_ref:function(t){S(t)}}}}function p(t){O===y.length&&y.push(y.length+1);let e=O;return O=y[e],y[e]=t,e}function rt(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let _=t.description;return _==null?"Symbol":`Symbol(${_})`}if(e=="function"){let _=t.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(t)){let _=t.length,i="[";_>0&&(i+=rt(t[0]));for(let o=1;o<_;o++)i+=", "+rt(t[o]);return i+="]",i}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
21
+ ${t.stack}`:r}function re(t){t<132||(y[t]=O,O=t)}function _e(t,e){return t=t>>>0,D().subarray(t/1,t/1+e)}var E=null;function v(){return(E===null||E.buffer.detached===!0||E.buffer.detached===void 0&&E.buffer!==f.memory.buffer)&&(E=new DataView(f.memory.buffer)),E}function X(t,e){return t=t>>>0,oe(t,e)}var L=null;function D(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(f.memory.buffer)),L}function d(t){return y[t]}function Z(t,e){try{return t.apply(this,e)}catch(n){f.__wbindgen_export3(p(n))}}var y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);var O=y.length;function I(t){return t==null}function k(t,e,n){if(n===void 0){let a=ct.encode(t),s=e(a.length,1)>>>0;return D().subarray(s,s+a.length).set(a),x=a.length,s}let r=t.length,_=e(r,1)>>>0,i=D(),o=0;for(;o<r;o++){let a=t.charCodeAt(o);if(a>127)break;i[_+o]=a}if(o!==r){o!==0&&(t=t.slice(o)),_=n(_,r,r=o+t.length*3,1)>>>0;let a=D().subarray(_+o,_+r),s=ct.encodeInto(t,a);o+=s.written,_=n(_,r,o,1)>>>0}return x=o,_}function S(t){let e=d(t);return re(t),e}var H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();var ie=2146435072,J=0;function oe(t,e){return J+=e,J>=ie&&(H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),H.decode(),J=e),H.decode(D().subarray(t,t+e))}var ct=new TextEncoder,x=0,ae,f;function se(t,e){return f=t.exports,ae=e,E=null,L=null,f}async function ce(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(_){if(t.ok&&n(t.type)&&t.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{let r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function le(t){if(f!==void 0)return f;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let e=ne();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:r}=await ce(await t,e);return se(n,r)}async function ue(t){return await le({module_or_path:t}),{migrate(e,n,r){return te(e,r,n)},validate(e,n,r){ee(e,n,r?.strict)}}}function ge(t,e,n,r){let _=new RegExp(`/${e}(@[^/]+)?/dist/cdn/[^/?#]*([?#].*)?$`),i=t.replace(_,(o,a)=>`/${n}${a??""}/dist/wasm/${r}`);return i!==t?i:new URL(`../../../${n}/dist/wasm/${r}`,t).href}var _t="5.9.3".split(".").slice(0,2).join("."),lt=Symbol.for("@perspective-dev/wasm"),F=["client","viewer","server","server32","server64","migrate"],B=["server","server32","server64"];function ut(t){return B.includes(t)}function ht(){let t=globalThis;return t[lt]??=new Map,t[lt]}function R(){let t=ht(),e=t.get(_t);return e===void 0&&(e={versions:new Set,sources:{},consumed:new Set},t.set(_t,e)),e.versions.has("5.9.3")||(e.versions.size>0&&console.warn(`Perspective 5.9.3 is sharing a page with Perspective ${[...e.versions].join(", ")}; releases of one major.minor are compatible, but every Perspective package on a page should be the same version.`),e.versions.add("5.9.3")),e}function de(){let t=[...ht()].filter(([e])=>e!==_t).flatMap(([e,n])=>n.versions?[...n.versions]:[e]);if(t.length>0)throw new Error(`Perspective 5.9.3 cannot share a page with Perspective ${t.join(", ")}`)}async function vt({source:t,disable_stage_0:e}){let n=typeof t=="function"?await t():await t;if(n instanceof WebAssembly.Module)return n;if(n instanceof Uint8Array&&(n=n.slice().buffer),typeof Response<"u"&&n instanceof Response){if(!n.ok)throw new Error(`Failed to fetch perspective wasm (HTTP ${n.status} "${n.url}")`);if(e)return await n.arrayBuffer()}return e?n:(await Qt(n)).buffer}function be(t){t.consumed.add("viewer"),t.viewer=vt(t.sources.viewer).then(t.viewer_provider),t.client===void 0&&(t.client=t.viewer,t.client_origin="viewer",t.viewer.then(e=>{t.client_runtime=e},()=>{}))}function mt(t,e={},n="user"){n!=="default"&&de();let r=R(),_=Object.keys(t).filter(s=>!F.includes(s));if(_.length>0)throw new Error(`Unknown perspective wasm key(s) ${_.join(", ")}; expected ${F.join(", ")}`);let i=F.filter(s=>t[s]!==void 0);if(n==="default"){let s=B.some(u=>r.sources[u]!==void 0);i=i.filter(u=>r.sources[u]===void 0&&!r.consumed.has(u)&&!(s&&ut(u)))}else{if(i.length===0)throw new Error(`init() requires at least one of ${F.join(", ")}`);let s=[];for(let u of i)if(r.consumed.has(u)){if(n==="user"&&r.sources[u]!==void 0){s.push(u);continue}throw new Error(`${u} wasm is already initialized`)}if(s.length>0){i=i.filter(g=>!s.includes(g)),r.warned_duplicates??=new Set;let u=s.filter(g=>!r.warned_duplicates.has(g));if(u.length>0){for(let g of u)r.warned_duplicates.add(g);console.warn(`${u.join(", ")} wasm is already initialized; keeping the existing runtime (Perspective was loaded more than once on this page).`)}}if(i.some(ut))for(let u of B)(n==="replace_server"||r.sources[u]?.is_default)&&delete r.sources[u]}if(i.includes("viewer")){if(r.client!==void 0)throw new Error("viewer wasm must be registered before any Client is created from client wasm");if(r.viewer_provider===void 0)throw new Error("viewer wasm was registered, but @perspective-dev/viewer is not loaded")}let o=B.filter(s=>i.includes(s)||r.sources[s]!==void 0);if(o.includes("server")&&o.length>1)throw new Error("`server` cannot be combined with `server32` or `server64`");let a=!!e.disable_stage_0;for(let s of i)r.sources[s]={source:t[s],disable_stage_0:a,is_default:n==="default"};i.includes("viewer")&&be(r)}async function fe(t,e={}){mt(t,e),t.viewer!==void 0&&await R().viewer}function we(t){mt(t,{},"default")}function pe(t){let e=R();e.viewer_provider??=t}async function he(){let t=R().viewer;if(t===void 0)throw new Error("Missing perspective-viewer.wasm: register `viewer` with init()");await t}function ve(){let t=R();if(t.migrate_binary===void 0){let e=t.sources.migrate;if(e===void 0)return Promise.reject(new Error("Missing perspective-migrate.wasm: register `migrate` with init()"));t.consumed.add("migrate"),t.migrate_binary=vt(e)}return t.migrate_binary}function ot(){let t=R();if(t.validator===void 0){let e=ve().then(ue);e.catch(()=>{t.validator===e&&(t.validator=void 0)}),t.validator=e}return t.validator}var me='var Ct=Object.defineProperty;var At=(a,t)=>{for(var e in t)Ct(a,e,{get:t[e],enumerable:!0})};var X={};At(X,{Client:()=>F,GenericSQLVirtualServerModel:()=>V,PerspectiveDebugPluginElement:()=>$,PerspectiveViewerElement:()=>G,ProxySession:()=>j,Table:()=>z,View:()=>I,VirtualDataSlice:()=>M,VirtualServer:()=>J,default:()=>It,getColumnConfigDefaults:()=>Ft,getPluginConfigDefaults:()=>Rt,get_wasm_module:()=>Et,get_worker_url:()=>Tt,init:()=>Pt,initSync:()=>oe,registerPlugin:()=>Ot,setColumnConfigDefaults:()=>jt,setPluginConfigDefaults:()=>zt});function ct(a){customElements.get(a)||customElements.define(a,class extends HTMLElement{})}var it=window.ResizeObserver;var st=window.IntersectionObserver;function at(a,t){if(!globalThis.ClipboardItem||!globalThis.navigator?.clipboard?.write)throw new Error("Clipboard API unavailable");return navigator.clipboard.write([new ClipboardItem({[a]:t})])}function ut(a,t,e,n){if(customElements.get(t)){console.warn(`Custom element "${t}" is already registered; skipping duplicate registration (Perspective was loaded more than once on this page).`);return}let _=a[e],i=_.prototype;class b extends HTMLElement{constructor(){super(),this._instance=new _(this)}}let g=Object.getOwnPropertyNames(i);for(let w of g)"get"in Object.getOwnPropertyDescriptor(i,w)?Object.defineProperty(b.prototype,w,{get:function(){return this._instance[w]}}):Object.defineProperty(b.prototype,w,{value:function(...v){return this._instance[w].call(this._instance,...v)}});for(let w of n)Object.defineProperty(b,w,{value:function(...v){return a[w].call(a,...v)}});customElements.define(t,b)}var F=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_client_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client___getClassname(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}__unsafe_open_view(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client___unsafe_open_view(this.__wbg_ptr,e,n);return I.__wrap(_)}get_hosted_table_names(){let t=r.client_get_hosted_table_names(this.__wbg_ptr);return u(t)}handle_error(t,e){let n=m(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,i=r.client_handle_error(this.__wbg_ptr,n,_,f(e)?0:c(e));return u(i)}handle_response(t){let e=r.client_handle_response(this.__wbg_ptr,c(t));return u(e)}join(t,e,n,_){let i=m(n,r.__wbindgen_export,r.__wbindgen_export2),b=p,g=r.client_join(this.__wbg_ptr,c(t),c(e),i,b,f(_)?0:c(_));return u(g)}constructor(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.client_new(b,c(t),f(e)?0:c(e));var n=s().getInt32(b+0,!0),_=s().getInt32(b+4,!0),i=s().getInt32(b+8,!0);if(i)throw u(_);return this.__wbg_ptr=n>>>0,Q.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}new_proxy_session(t){try{let e=r.client_new_proxy_session(this.__wbg_ptr,ot(t));return j.__wrap(e)}finally{k[O++]=void 0}}on_error(t){let e=r.client_on_error(this.__wbg_ptr,c(t));return u(e)}on_hosted_tables_update(t){let e=r.client_on_hosted_tables_update(this.__wbg_ptr,c(t));return u(e)}open_table(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.client_open_table(this.__wbg_ptr,e,n);return u(_)}remove_hosted_tables_update(t){let e=r.client_remove_hosted_tables_update(this.__wbg_ptr,t);return u(e)}system_info(){let t=r.client_system_info(this.__wbg_ptr);return u(t)}table(t,e){let n=r.client_table(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}terminate(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.client_terminate(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=s().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);var V=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_genericsqlvirtualservermodel_free(t,0)}expressionDescribe(t,e){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,y=m(e,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_expressionDescribe(w,this.__wbg_ptr,v,h,y,x);var n=s().getInt32(w+0,!0),_=s().getInt32(w+4,!0),i=s().getInt32(w+8,!0),b=s().getInt32(w+12,!0);if(b)throw u(i);var g=d(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}expressionsDescribe(t,e){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p;r.genericsqlvirtualservermodel_expressionsDescribe(w,this.__wbg_ptr,v,h,c(e));var n=s().getInt32(w+0,!0),_=s().getInt32(w+4,!0),i=s().getInt32(w+8,!0),b=s().getInt32(w+12,!0);if(b)throw u(i);var g=d(n,_);return n!==0&&r.__wbindgen_export4(n,_,1),g}finally{r.__wbindgen_add_to_stack_pointer(16)}}getHostedTables(){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_getHostedTables(b,this.__wbg_ptr);var t=s().getInt32(b+0,!0),e=s().getInt32(b+4,!0),n=s().getInt32(b+8,!0),_=s().getInt32(b+12,!0);if(_)throw u(n);var i=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.genericsqlvirtualservermodel_new(i,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}quoteEntity(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_quoteEntity(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableDescribe(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),y=m(t,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_tableDescribe(h,this.__wbg_ptr,y,x,c(e),c(n),f(_)?16777215:_?1:0);var i=s().getInt32(h+0,!0),b=s().getInt32(h+4,!0),g=s().getInt32(h+8,!0),w=s().getInt32(h+12,!0);if(w)throw u(g);var v=d(i,b);return i!==0&&r.__wbindgen_export4(i,b,1),v}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableMakeView(t,e,n,_,i){try{let y=r.__wbindgen_add_to_stack_pointer(-16),x=m(t,r.__wbindgen_export,r.__wbindgen_export2),C=p,q=m(e,r.__wbindgen_export,r.__wbindgen_export2),D=p;r.genericsqlvirtualservermodel_tableMakeView(y,this.__wbg_ptr,x,C,q,D,c(n),c(_),f(i)?16777215:i?1:0);var b=s().getInt32(y+0,!0),g=s().getInt32(y+4,!0),w=s().getInt32(y+8,!0),v=s().getInt32(y+12,!0);if(v)throw u(w);var h=d(b,g);return b!==0&&r.__wbindgen_export4(b,g,1),h}finally{r.__wbindgen_add_to_stack_pointer(16)}}tablePath(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=yt(t,r.__wbindgen_export),v=p;r.genericsqlvirtualservermodel_tablePath(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_tableSchema(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}tableSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_tableSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewCollapse(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewCollapse(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewColumnSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewColumnSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewDelete(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewDelete(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewExpand(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewExpand(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetData(t,e,n,_){try{let h=r.__wbindgen_add_to_stack_pointer(-16),y=m(t,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.genericsqlvirtualservermodel_viewGetData(h,this.__wbg_ptr,y,x,c(e),c(n),c(_));var i=s().getInt32(h+0,!0),b=s().getInt32(h+4,!0),g=s().getInt32(h+8,!0),w=s().getInt32(h+12,!0);if(w)throw u(g);var v=d(i,b);return i!==0&&r.__wbindgen_export4(i,b,1),v}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewGetMinMax(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p,x=m(e,r.__wbindgen_export,r.__wbindgen_export2),C=p;r.genericsqlvirtualservermodel_viewGetMinMax(v,this.__wbg_ptr,h,y,x,C,c(n));var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewMakeTable(t,e,n,_,i){try{let y=r.__wbindgen_add_to_stack_pointer(-16),x=m(t,r.__wbindgen_export,r.__wbindgen_export2),C=p,q=m(e,r.__wbindgen_export,r.__wbindgen_export2),D=p;r.genericsqlvirtualservermodel_viewMakeTable(y,this.__wbg_ptr,x,C,q,D,c(n),c(_),c(i));var b=s().getInt32(y+0,!0),g=s().getInt32(y+4,!0),w=s().getInt32(y+8,!0),v=s().getInt32(y+12,!0);if(v)throw u(w);var h=d(b,g);return b!==0&&r.__wbindgen_export4(b,g,1),h}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSchema(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewSchema(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSetDepth(t,e,n){try{let v=r.__wbindgen_add_to_stack_pointer(-16),h=m(t,r.__wbindgen_export,r.__wbindgen_export2),y=p;r.genericsqlvirtualservermodel_viewSetDepth(v,this.__wbg_ptr,h,y,c(e),n);var _=s().getInt32(v+0,!0),i=s().getInt32(v+4,!0),b=s().getInt32(v+8,!0),g=s().getInt32(v+12,!0);if(g)throw u(b);var w=d(_,i);return _!==0&&r.__wbindgen_export4(_,i,1),w}finally{r.__wbindgen_add_to_stack_pointer(16)}}viewSize(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.genericsqlvirtualservermodel_viewSize(g,this.__wbg_ptr,w,v);var e=s().getInt32(g+0,!0),n=s().getInt32(g+4,!0),_=s().getInt32(g+8,!0),i=s().getInt32(g+12,!0);if(i)throw u(_);var b=d(e,n);return e!==0&&r.__wbindgen_export4(e,n,1),b}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);var $=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectivedebugpluginelement_free(t,0)}clear(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}get config_column_names(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}connectedCallback(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}delete(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}draw(t){rt(t,I);let e=r.perspectivedebugpluginelement_draw(this.__wbg_ptr,t.__wbg_ptr);return u(e)}get min_config_columns(){let t=r.perspectivedebugpluginelement_config_column_names(this.__wbg_ptr);return u(t)}get name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_name(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectivedebugpluginelement_new(c(t));return this.__wbg_ptr=e>>>0,dt.register(this,this.__wbg_ptr,this),this}resize(){let t=r.perspectivedebugpluginelement_clear(this.__wbg_ptr);return u(t)}restore(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_restore(_,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}restyle(){r.perspectivedebugpluginelement_connectedCallback(this.__wbg_ptr)}save(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_save(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=s().getInt32(_+8,!0);if(n)throw u(e);return u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get select_mode(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectivedebugpluginelement_select_mode(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}update(t){rt(t,I);let e=r.perspectivedebugpluginelement_update(this.__wbg_ptr,t.__wbg_ptr);return u(e)}};Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);var G=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_perspectiveviewerelement_free(t,0)}__get_model(){let t=r.perspectiveviewerelement___get_model(this.__wbg_ptr);return a.__wrap(t)}addPanel(t,e){let n=r.perspectiveviewerelement_addPanel(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}agentConfig(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_agentConfig(_,this.__wbg_ptr,c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}agentPrompt(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_agentPrompt(this.__wbg_ptr,e,n);return u(_)}agentReset(){let t=r.perspectiveviewerelement_agentReset(this.__wbg_ptr);return u(t)}connectedCallback(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_connectedCallback(n,this.__wbg_ptr);var t=s().getInt32(n+0,!0),e=s().getInt32(n+4,!0);if(e)throw u(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}copy(t){let e=r.perspectiveviewerelement_copy(this.__wbg_ptr,f(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.perspectiveviewerelement_delete(t);return u(e)}download(t){let e=r.perspectiveviewerelement_download(this.__wbg_ptr,f(t)?0:c(t));return u(e)}eject(t){let e=r.perspectiveviewerelement_eject(this.__wbg_ptr,f(t)?0:c(t));return u(e)}export(t){let e=r.perspectiveviewerelement_export(this.__wbg_ptr,f(t)?0:c(t));return u(e)}flush(){let t=r.perspectiveviewerelement_flush(this.__wbg_ptr);return u(t)}getActivePanel(){let t=r.perspectiveviewerelement_getActivePanel(this.__wbg_ptr);return u(t)}getAllPlugins(){let t=r.perspectiveviewerelement_getAllPlugins(this.__wbg_ptr);return u(t)}getClient(t){let e=r.perspectiveviewerelement_getClient(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getEditPort(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getEditPort(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getFloat64(i+0,!0),n=s().getInt32(i+8,!0),_=s().getInt32(i+12,!0);if(_)throw u(n);return e}finally{r.__wbindgen_add_to_stack_pointer(16)}}getPanelNames(){let t=r.perspectiveviewerelement_getPanelNames(this.__wbg_ptr);return u(t)}getPlugin(t){try{let g=r.__wbindgen_add_to_stack_pointer(-16);var e=f(t)?0:m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p;r.perspectiveviewerelement_getPlugin(g,this.__wbg_ptr,e,n);var _=s().getInt32(g+0,!0),i=s().getInt32(g+4,!0),b=s().getInt32(g+8,!0);if(b)throw u(i);return u(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getRenderStats(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getRenderStats(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getSelection(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_getSelection(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}getTable(t){let e=r.perspectiveviewerelement_getTable(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getThemes(){let t=r.perspectiveviewerelement_getThemes(this.__wbg_ptr);return u(t)}getView(t){let e=r.perspectiveviewerelement_getView(this.__wbg_ptr,f(t)?0:c(t));return u(e)}getViewConfig(t){let e=r.perspectiveviewerelement_getViewConfig(this.__wbg_ptr,f(t)?0:c(t));return u(e)}invalidate(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_invalidate(i,this.__wbg_ptr,f(t)?0:c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}invokeCommand(t,e){try{let i=r.__wbindgen_add_to_stack_pointer(-16),b=m(t,r.__wbindgen_export,r.__wbindgen_export2),g=p;r.perspectiveviewerelement_invokeCommand(i,this.__wbg_ptr,b,g,c(e));var n=s().getInt32(i+0,!0),_=s().getInt32(i+4,!0);if(_)throw u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}load(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_load(i,this.__wbg_ptr,c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.perspectiveviewerelement_new(c(t));return this.__wbg_ptr=e>>>0,Z.register(this,this.__wbg_ptr,this),this}queryCommands(t,e,n,_){try{let w=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_queryCommands(w,this.__wbg_ptr,c(t),c(e),c(n),c(_));var i=s().getInt32(w+0,!0),b=s().getInt32(w+4,!0),g=s().getInt32(w+8,!0);if(g)throw u(b);return u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}removePanel(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_removePanel(this.__wbg_ptr,e,n);return u(_)}reset(t,e){let n=r.perspectiveviewerelement_reset(this.__wbg_ptr,f(t)?16777215:t?1:0,f(e)?0:c(e));return u(n)}resetError(){let t=r.perspectiveviewerelement_resetError(this.__wbg_ptr);return u(t)}resetThemes(t){var e=f(t)?0:yt(t,r.__wbindgen_export),n=p;let _=r.perspectiveviewerelement_resetThemes(this.__wbg_ptr,e,n);return u(_)}resize(t){let e=r.perspectiveviewerelement_resize(this.__wbg_ptr,f(t)?0:c(t));return u(e)}restore(t,e){let n=r.perspectiveviewerelement_restore(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}restoreWorkspace(t,e){let n=r.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}restyleElement(){let t=r.perspectiveviewerelement_restyleElement(this.__wbg_ptr);return u(t)}save(t){let e=r.perspectiveviewerelement_save(this.__wbg_ptr,f(t)?0:c(t));return u(e)}saveWorkspace(t){let e=r.perspectiveviewerelement_saveWorkspace(this.__wbg_ptr,f(t)?0:c(t));return u(e)}setActivePanel(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.perspectiveviewerelement_setActivePanel(this.__wbg_ptr,e,n);return u(_)}setAutoPause(t){let e=r.perspectiveviewerelement_setAutoPause(this.__wbg_ptr,t);return u(e)}setAutoSize(t){r.perspectiveviewerelement_setAutoSize(this.__wbg_ptr,t)}setCommandSchema(t,e){try{let b=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setCommandSchema(b,this.__wbg_ptr,f(t)?0:c(t),f(e)?0:c(e));var n=s().getInt32(b+0,!0),_=s().getInt32(b+4,!0),i=s().getInt32(b+8,!0);if(i)throw u(_);return u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setSelection(t,e){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.perspectiveviewerelement_setSelection(i,this.__wbg_ptr,f(t)?0:c(t),f(e)?0:c(e));var n=s().getInt32(i+0,!0),_=s().getInt32(i+4,!0);if(_)throw u(n)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setThrottle(t){r.perspectiveviewerelement_setThrottle(this.__wbg_ptr,!f(t),f(t)?0:t)}showCommandMenu(t,e,n){let _=r.perspectiveviewerelement_showCommandMenu(this.__wbg_ptr,c(t),c(e),c(n));return u(_)}toggleColumnSettings(t,e){let n=m(t,r.__wbindgen_export,r.__wbindgen_export2),_=p,i=r.perspectiveviewerelement_toggleColumnSettings(this.__wbg_ptr,n,_,f(e)?0:c(e));return u(i)}toggleConfig(t){let e=r.perspectiveviewerelement_toggleConfig(this.__wbg_ptr,f(t)?16777215:t?1:0);return u(e)}};Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);var j=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_proxysession_free(t,0)}close(){let t=this.__destroy_into_raw(),e=r.proxysession_close(t);return u(e)}handle_request(t){let e=r.proxysession_handle_request(this.__wbg_ptr,c(t));return u(e)}constructor(t,e){try{rt(t,F);let n=r.proxysession_new(t.__wbg_ptr,ot(e));return this.__wbg_ptr=n>>>0,tt.register(this,this.__wbg_ptr,this),this}finally{k[O++]=void 0}}};Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);var z=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,wt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_table_free(t,0)}__getClassname(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.table___getClassname(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}clear(){let t=r.table_clear(this.__wbg_ptr);return u(t)}columns(){let t=r.table_columns(this.__wbg_ptr);return u(t)}delete(t){let e=this.__destroy_into_raw(),n=r.table_delete(e,f(t)?0:c(t));return u(n)}describe(t){let e=r.table_describe(this.__wbg_ptr,f(t)?0:c(t));return u(e)}get_client(){let t=r.table_get_client(this.__wbg_ptr);return u(t)}get_features(){let t=r.table_get_features(this.__wbg_ptr);return u(t)}get_index(){let t=r.table_get_index(this.__wbg_ptr);return u(t)}get_limit(){let t=r.table_get_limit(this.__wbg_ptr);return u(t)}get_name(){let t=r.table_get_name(this.__wbg_ptr);return u(t)}make_port(){let t=r.table_make_port(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.table_on_delete(this.__wbg_ptr,c(t));return u(e)}remove(t,e){let n=r.table_remove(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}remove_delete(t){let e=r.table_remove_delete(this.__wbg_ptr,t);return u(e)}replace(t,e){let n=r.table_replace(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}schema(){let t=r.table_schema(this.__wbg_ptr);return u(t)}size(){let t=r.table_size(this.__wbg_ptr);return u(t)}update(t,e){let n=r.table_update(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}validate_expressions(t){let e=r.table_validate_expressions(this.__wbg_ptr,c(t));return u(e)}view(t){let e=r.table_view(this.__wbg_ptr,f(t)?0:c(t));return u(e)}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var I=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,lt.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof a?t.__destroy_into_raw():0}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_view_free(t,0)}__get_model(){let t=r.view___get_model(this.__wbg_ptr);return a.__wrap(t)}__unsafe_get_name(){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.view___unsafe_get_name(_,this.__wbg_ptr);var t=s().getInt32(_+0,!0),e=s().getInt32(_+4,!0),n=d(t,e);return t!==0&&r.__wbindgen_export4(t,e,1),n}finally{r.__wbindgen_add_to_stack_pointer(16)}}collapse(t){let e=r.view_collapse(this.__wbg_ptr,t);return u(e)}column_paths(t){let e=r.view_column_paths(this.__wbg_ptr,f(t)?0:c(t));return u(e)}delete(){let t=this.__destroy_into_raw(),e=r.view_delete(t);return u(e)}dimensions(){let t=r.view_dimensions(this.__wbg_ptr);return u(t)}expand(t){let e=r.view_expand(this.__wbg_ptr,t);return u(e)}expression_schema(){let t=r.view_expression_schema(this.__wbg_ptr);return u(t)}get_config(){let t=r.view_get_config(this.__wbg_ptr);return u(t)}get_min_max(t){let e=m(t,r.__wbindgen_export,r.__wbindgen_export2),n=p,_=r.view_get_min_max(this.__wbg_ptr,e,n);return u(_)}num_columns(){let t=r.view_num_columns(this.__wbg_ptr);return u(t)}num_rows(){let t=r.view_num_rows(this.__wbg_ptr);return u(t)}on_delete(t){let e=r.view_on_delete(this.__wbg_ptr,c(t));return u(e)}on_remove(t){let e=r.view_on_remove(this.__wbg_ptr,c(t));return u(e)}on_update(t,e){let n=r.view_on_update(this.__wbg_ptr,c(t),f(e)?0:c(e));return u(n)}remove_delete(t){let e=r.view_remove_delete(this.__wbg_ptr,t);return u(e)}remove_remove(t){let e=r.view_remove_remove(this.__wbg_ptr,t);return u(e)}remove_update(t){let e=r.view_remove_update(this.__wbg_ptr,t);return u(e)}schema(){let t=r.view_schema(this.__wbg_ptr);return u(t)}set_depth(t){let e=r.view_set_depth(this.__wbg_ptr,t);return u(e)}to_arrow(t){let e=r.view_to_arrow(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_columns(t){let e=r.view_to_columns(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_columns_string(t){let e=r.view_to_columns_string(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_csv(t){let e=r.view_to_csv(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_json(t){let e=r.view_to_json(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_json_string(t){let e=r.view_to_json_string(this.__wbg_ptr,f(t)?0:c(t));return u(e)}to_ndjson(t){let e=r.view_to_ndjson(this.__wbg_ptr,f(t)?0:c(t));return u(e)}with_typed_arrays(t,e){let n=r.view_with_typed_arrays(this.__wbg_ptr,f(t)?0:c(t),c(e));return u(n)}};Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);var M=class a{static __wrap(t){t=t>>>0;let e=Object.create(a.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualdataslice_free(t,0)}fromArrowIpc(t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.virtualdataslice_fromArrowIpc(_,this.__wbg_ptr,c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}constructor(t){let e=r.virtualdataslice_new(c(t));return this.__wbg_ptr=e>>>0,et.register(this,this.__wbg_ptr,this),this}setBooleanCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setBooleanCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setCol(t,e,n,_,i){try{let w=r.__wbindgen_add_to_stack_pointer(-16),v=m(t,r.__wbindgen_export,r.__wbindgen_export2),h=p,y=m(e,r.__wbindgen_export,r.__wbindgen_export2),x=p;r.virtualdataslice_setCol(w,this.__wbg_ptr,v,h,y,x,n,c(_),f(i)?4294967297:i>>>0);var b=s().getInt32(w+0,!0),g=s().getInt32(w+4,!0);if(g)throw u(b)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setDatetimeCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setDatetimeCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setFloatCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setFloatCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setIntegerCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setIntegerCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}setStringCol(t,e,n,_){try{let g=r.__wbindgen_add_to_stack_pointer(-16),w=m(t,r.__wbindgen_export,r.__wbindgen_export2),v=p;r.virtualdataslice_setStringCol(g,this.__wbg_ptr,w,v,e,c(n),f(_)?4294967297:_>>>0);var i=s().getInt32(g+0,!0),b=s().getInt32(g+4,!0);if(b)throw u(i)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);var J=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_virtualserver_free(t,0)}handleRequest(t){let e=te(t,r.__wbindgen_export),n=p,_=r.virtualserver_handleRequest(this.__wbg_ptr,e,n);return u(_)}constructor(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.virtualserver_new(i,c(t));var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return this.__wbg_ptr=e>>>0,pt.register(this,this.__wbg_ptr,this),this}finally{r.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);function Ft(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.getColumnConfigDefaults(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Rt(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.getPluginConfigDefaults(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Et(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_wasm_module(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Tt(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.get_worker_url(n);var a=s().getInt32(n+0,!0),t=s().getInt32(n+4,!0),e=s().getInt32(n+8,!0);if(e)throw u(t);return u(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Pt(a,t){r.init(c(a),c(t))}function Ot(a){let t=m(a,r.__wbindgen_export,r.__wbindgen_export2),e=p;r.registerPlugin(t,e)}function jt(a,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.setColumnConfigDefaults(_,c(a),f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function zt(a,t){try{let _=r.__wbindgen_add_to_stack_pointer(-16);r.setPluginConfigDefaults(_,c(a),f(t)?0:c(t));var e=s().getInt32(_+0,!0),n=s().getInt32(_+4,!0);if(n)throw u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ht(){return{__proto__:null,"./perspective-viewer.wasm_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(t,e){var n=d(t,e);let _=Error(n);return c(_)},__wbg_Number_04624de7d0e8332d:function(t){return Number(o(t))},__wbg_String_8f0eb39a4a4c2f66:function(t,e){let n=String(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2:function(t,e){let n=o(e),_=typeof n=="bigint"?n:void 0;s().setBigInt64(t+8,f(_)?BigInt(0):_,!0),s().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25:function(t){let e=o(t),n=typeof e=="boolean"?e:void 0;return f(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(t,e){let n=_t(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg___wbindgen_in_47fa6863be6f2f25:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_bigint_31b12575b56f32fc:function(t){return typeof o(t)=="bigint"},__wbg___wbindgen_is_function_0095a73b8b156f76:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_null_ac34f5003991759a:function(t){return o(t)===null},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_cd444516edc5b180:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_11888390b0186270:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(t,e){let n=o(e),_=typeof n=="number"?n:void 0;s().setFloat64(t+8,f(_)?0:_,!0),s().setInt32(t+0,!f(_),!0)},__wbg___wbindgen_string_get_72fb696202c56729:function(t,e){let n=o(e),_=typeof n=="string"?n:void 0;var i=f(_)?0:m(_,r.__wbindgen_export,r.__wbindgen_export2),b=p;s().setInt32(t+4,b,!0),s().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(t,e){var n=d(t,e);throw new Error(n)},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(t){o(t)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(t){o(t).abort()},__wbg_addEventListener_3acb0aad4483804c:function(){return l(function(t,e,n,_){var i=d(e,n);o(t).addEventListener(i,o(_))},arguments)},__wbg_addEventListener_5ef04ffb1d3af066:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).addEventListener(b,o(_),i!==0)},arguments)},__wbg_addEventListener_c917b5aafbcf493f:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).addEventListener(b,o(_),o(i))},arguments)},__wbg_add_2b0552fe2d2151c8:function(t,e){let n=o(t).add(o(e));return c(n)},__wbg_add_5be83378df680c25:function(){return l(function(t,e,n){var _=d(e,n);o(t).add(_)},arguments)},__wbg_adoptedStyleSheets_542d651fbb47685f:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_adoptedStyleSheets_d149afb005470855:function(t){let e=o(t).adoptedStyleSheets;return c(e)},__wbg_appendChild_dea38765a26d346d:function(){return l(function(t,e){let n=o(t).appendChild(o(e));return c(n)},arguments)},__wbg_append_a992ccc37aa62dc4:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).append(b,g)},arguments)},__wbg_apply_2e22c45cb4f12415:function(){return l(function(t,e,n){let _=Reflect.apply(o(t),o(e),o(n));return c(_)},arguments)},__wbg_apply_ada2ee1a60ac7b3c:function(){return l(function(t,e,n){let _=o(t).apply(o(e),o(n));return c(_)},arguments)},__wbg_assign_6170c0d04d5c26f4:function(t,e){let n=Object.assign(o(t),o(e));return c(n)},__wbg_asyncIterator_58dd45e58aa3721e:function(){return c(Symbol.asyncIterator)},__wbg_at_dfc235641cc0e40c:function(t,e){let n=o(t).at(e);return c(n)},__wbg_attachShadow_d31cd520620b24d6:function(){return l(function(t,e){let n=o(t).attachShadow(o(e));return c(n)},arguments)},__wbg_blur_07f34335e06e5234:function(){return l(function(t){o(t).blur()},arguments)},__wbg_body_3a0b4437dadea6bf:function(t){let e=o(t).body;return f(e)?0:c(e)},__wbg_body_f67922363a220026:function(t){let e=o(t).body;return f(e)?0:c(e)},__wbg_bootstrap_42d43e695fafafc0:function(t,e,n,_,i,b){var g=d(e,n),w=d(_,i);let v=ut(o(t),g,w,u(b));return c(v)},__wbg_bottom_c7ec510a18034add:function(t){return o(t).bottom},__wbg_bubbles_ad88192d3c29e6f9:function(t){return o(t).bubbles},__wbg_buffer_26d0910f3a5bc899:function(t){let e=o(t).buffer;return c(e)},__wbg_button_d86841d0a03adc44:function(t){return o(t).button},__wbg_cache_key_b02185c5bc89ef2a:function(t){let e=o(t).__yew_subtree_cache_key;return f(e)?4294967297:e>>>0},__wbg_calculatePath_ab4c887f662b5df4:function(t,e,n){var _=d(e,n);let i=o(t).calculatePath(_);return c(i)},__wbg_calculatePresizePaths_62115f841e838f25:function(t){let e=o(t).calculatePresizePaths();return c(e)},__wbg_call_389efe28435a9388:function(){return l(function(t,e){let n=o(t).call(o(e));return c(n)},arguments)},__wbg_call_41bedb84c3e5c0c9:function(){return l(function(t,e,n,_,i,b){let g=o(t).call(o(e),o(n),o(_),o(i),o(b));return c(g)},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return l(function(t,e,n){let _=o(t).call(o(e),o(n));return c(_)},arguments)},__wbg_call_812d25f1510c13c8:function(){return l(function(t,e,n,_){let i=o(t).call(o(e),o(n),o(_));return c(i)},arguments)},__wbg_cancelBubble_d93ec09e9c46cd6f:function(t){return o(t).cancelBubble},__wbg_checked_04db83ac6810bc82:function(t){return o(t).checked},__wbg_childNodes_75d35de33c9f6fbb:function(t){let e=o(t).childNodes;return c(e)},__wbg_children_54099e7692eefa29:function(t){let e=o(t).children;return c(e)},__wbg_classList_1a87c34c6d81421e:function(t){let e=o(t).classList;return c(e)},__wbg_className_2a1be685f5d518d5:function(t,e){let n=o(e).className,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_clear_3670f9a21860e1b4:function(){return l(function(t){let e=o(t).clear();return c(e)},arguments)},__wbg_click_0e9c20848b655ed3:function(t){o(t).click()},__wbg_clientHeight_6432ff0d61ccfe7d:function(t){return o(t).clientHeight},__wbg_clientX_a3c5f4ff30e91264:function(t){return o(t).clientX},__wbg_clientY_e28509acb9b4a42a:function(t){return o(t).clientY},__wbg_client_new:function(t){let e=F.__wrap(t);return c(e)},__wbg_clipboard_98c5a32249fa8416:function(t){let e=o(t).clipboard;return c(e)},__wbg_clipboard_write_c6bf0ce4d62b890b:function(){return l(function(t,e,n){var _=d(t,e);let i=at(_,o(n));return c(i)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return l(function(t,e){let n=o(t).cloneNode(e!==0);return c(n)},arguments)},__wbg_cloneNode_eaf4ea08ebf633a5:function(){return l(function(t){let e=o(t).cloneNode();return c(e)},arguments)},__wbg_close_fad2f0ee451926ed:function(t){o(t).close()},__wbg_closest_11206fe6e0fb4e4e:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).closest(_);return f(i)?0:c(i)},arguments)},__wbg_code_dee0dae4730408e1:function(t,e){let n=o(e).code,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_column_config_schema_af474819ed93c24b:function(){return l(function(t,e,n,_,i,b,g,w,v,h,y,x){var C=d(e,n),q=d(_,i),D=d(b,g),kt=d(y,x);let St=o(t).column_config_schema(C,q,D,o(w),o(v),o(h),kt);return c(St)},arguments)},__wbg_composedPath_9154ab2547c668d5:function(t){let e=o(t).composedPath();return c(e)},__wbg_contains_1056459c33f961e8:function(t,e){return o(t).contains(o(e))},__wbg_contains_6f4d5df35ef8a13a:function(t,e,n){var _=d(e,n);return o(t).contains(_)},__wbg_contentRect_4f90c37fc7eb4cf4:function(t){let e=o(t).contentRect;return c(e)},__wbg_contentWindow_9efd0073ff9fa45b:function(t){let e=o(t).contentWindow;return f(e)?0:c(e)},__wbg_createElementNS_ee00621496b30ec2:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).createElementNS(b,g);return c(w)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).createElement(_);return c(i)},arguments)},__wbg_createObjectURL_918185db6a10a0c8:function(){return l(function(t,e){let n=URL.createObjectURL(o(e)),_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},arguments)},__wbg_createTextNode_55029686c9591bf3:function(t,e,n){var _=d(e,n);let i=o(t).createTextNode(_);return c(i)},__wbg_cssRules_554f47f3049cf066:function(){return l(function(t){let e=o(t).cssRules;return c(e)},arguments)},__wbg_cssRules_85954e7c284ec53b:function(t){let e=o(t).cssRules;return c(e)},__wbg_cssText_8f3f27e60c824421:function(t,e){let n=o(e).cssText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_dataTransfer_d924a622fbe51b06:function(t){let e=o(t).dataTransfer;return f(e)?0:c(e)},__wbg_data_5330da50312d0bc1:function(t){let e=o(t).data;return c(e)},__wbg_dataset_20cb5c72458ae3fc:function(t){let e=o(t).dataset;return c(e)},__wbg_debug_46a93995fc6f8820:function(t,e,n,_){console.debug(o(t),o(e),o(n),o(_))},__wbg_debug_a4099fa12db6cd61:function(t){console.debug(o(t))},__wbg_decode_a28a47c6d83f2594:function(){return l(function(t,e,n,_,i){let b=o(e).decode(E(n,_),o(i)),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_define_panel_tab_e9985bcdee9c9099:function(t,e){var n=d(t,e);ct(n)},__wbg_delete_8318b529ff42aa20:function(t,e,n){var _=d(e,n);delete o(t)[_]},__wbg_delete_adc77d4d1bfc4aed:function(t){o(t).delete()},__wbg_deselect_4dd3e55a130cfd6b:function(){return l(function(t){let e=o(t).deselect();return c(e)},arguments)},__wbg_detail_934cf9545e3214d3:function(t){let e=o(t).detail;return c(e)},__wbg_dispatchEvent_dc8dcc7ddca11378:function(){return l(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_document_ee35a3d3ae34ef6c:function(t){let e=o(t).document;return f(e)?0:c(e)},__wbg_done_57b39ecd9addfe81:function(t){return o(t).done},__wbg_draw_757250a2517be502:function(){return l(function(t,e,n,_,i){let b=o(t).draw(I.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,i!==0);return c(b)},arguments)},__wbg_entries_58c7934c745daac7:function(t){let e=Object.entries(o(t));return c(e)},__wbg_error_3c7d958458bf649b:function(t,e){var n=vt(t,e).slice();r.__wbindgen_export4(t,e*4,4),console.error(...n)},__wbg_error_7534b8e9a36f1ab4:function(t,e){var n=d(t,e);t!==0&&r.__wbindgen_export4(t,e,1),console.error(n)},__wbg_error_794d0ffc9d00d5c3:function(t,e,n,_){console.error(o(t),o(e),o(n),o(_))},__wbg_error_9a7fe3f932034cde:function(t){console.error(o(t))},__wbg_error_f852e41c69b0bd84:function(t,e){console.error(o(t),o(e))},__wbg_fetch_e6e8e0a221783759:function(t,e){let n=o(t).fetch(o(e));return c(n)},__wbg_focus_128ff465f65677cc:function(){return l(function(t){o(t).focus()},arguments)},__wbg_fonts_ba4bc521c555025e:function(t){let e=o(t).fonts;return c(e)},__wbg_format_7c97ddc401dae52f:function(t){let e=o(t).format;return c(e)},__wbg_from_bddd64e7d5ff6941:function(t){let e=Array.from(o(t));return c(e)},__wbg_getAttribute_b9f6fc4b689c71b0:function(t,e,n,_){var i=d(n,_);let b=o(e).getAttribute(i);var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},__wbg_getBoundingClientRect_b5c8c34d07878818:function(t){let e=o(t).getBoundingClientRect();return c(e)},__wbg_getComputedStyle_2d1f9dfe4ee7e0b9:function(){return l(function(t,e){let n=o(t).getComputedStyle(o(e));return f(n)?0:c(n)},arguments)},__wbg_getContext_2a5764d48600bc43:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).getContext(_);return f(i)?0:c(i)},arguments)},__wbg_getEntriesByName_02488cff0bc7581c:function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).getEntriesByName(b,g);return c(w)},__wbg_getPropertyValue_d6911b2a1f9acba9:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).getPropertyValue(i),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_getRandomValues_1c61fac11405ffdc:function(){return l(function(t,e){globalThis.crypto.getRandomValues(E(t,e))},arguments)},__wbg_getReader_804829cfb24eb4dd:function(t){let e=o(t).getReader();return c(e)},__wbg_getRootNode_193e544ed534e810:function(t){let e=o(t).getRootNode();return c(e)},__wbg_getSelection_d345357cda220f17:function(){return l(function(t){let e=o(t).getSelection();return f(e)?0:c(e)},arguments)},__wbg_getTime_1e3cd1391c5c3995:function(t){return o(t).getTime()},__wbg_getTimezoneOffset_81776d10a4ec18a8:function(t){return o(t).getTimezoneOffset()},__wbg_get_0bdeda968867e10e:function(){return l(function(t,e){let n=Reflect.get(o(t),e>>>0);return c(n)},arguments)},__wbg_get_5dd1ee4c9f462865:function(t,e,n,_){var i=d(n,_);let b=o(e)[i];var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},__wbg_get_76e04509d1922a04:function(t,e,n){var _=d(e,n);let i=o(t)[_];return f(i)?0:c(i)},__wbg_get_941633a1d2f510cb:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).get(i);var g=f(b)?0:m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_get_9b94d73e6221f75c:function(t,e){let n=o(t)[e>>>0];return c(n)},__wbg_get_b3ed3ad4be2bc8ac:function(){return l(function(t,e){let n=Reflect.get(o(t),o(e));return c(n)},arguments)},__wbg_get_d8db2ad31d529ff8:function(t,e){let n=o(t)[e>>>0];return f(n)?0:c(n)},__wbg_get_static_config_3afbfffa63ba5580:function(t){let e=o(t).get_static_config();return c(e)},__wbg_get_with_index_d26da38d2c038e1a:function(t,e){let n=o(t)[e>>>0];return f(n)?0:c(n)},__wbg_get_with_ref_key_1dc361bd10053bfe:function(t,e){let n=o(t)[o(e)];return c(n)},__wbg_hasAttribute_5d8f52cb4c739280:function(t,e,n){var _=d(e,n);return o(t).hasAttribute(_)},__wbg_has_991efccb5a701a27:function(t,e){return o(t).has(o(e))},__wbg_has_d4e53238966c12b6:function(){return l(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_headers_59a2938db9f80985:function(t){let e=o(t).headers;return c(e)},__wbg_height_45209601b4c4ede6:function(t){return o(t).height},__wbg_height_c2027cf67d1c9b11:function(t){return o(t).height},__wbg_hidden_8ce6a98b8c12451c:function(t){return o(t).hidden},__wbg_hidePopover_f52b72171825485d:function(){return l(function(t){o(t).hidePopover()},arguments)},__wbg_hit_test_b0552ff1c5208cab:function(){return l(function(t,e,n){let _=o(t).hit_test(e,n);return c(_)},arguments)},__wbg_host_fb29f8be35c2517d:function(t){let e=o(t).host;return c(e)},__wbg_includes_32215c836f1cd3fb:function(t,e,n){return o(t).includes(o(e),n)},__wbg_indexOf_e5f91887d9e5023e:function(t,e,n){return o(t).indexOf(o(e),n)},__wbg_info_148d043840582012:function(t){console.info(o(t))},__wbg_info_9e602cf10c5c690b:function(t,e,n,_){console.info(o(t),o(e),o(n),o(_))},__wbg_innerHeight_54aa104da08becd2:function(){return l(function(t){let e=o(t).innerHeight;return c(e)},arguments)},__wbg_innerWidth_fa95c57321f4f033:function(){return l(function(t){let e=o(t).innerWidth;return c(e)},arguments)},__wbg_insertBefore_1468142836e61a51:function(){return l(function(t,e,n){let _=o(t).insertBefore(o(e),o(n));return c(_)},arguments)},__wbg_insertPanel_141024f02dba50af:function(t,e,n,_,i){var b=d(e,n);let g=o(t).insertPanel(b,u(_),u(i));return c(g)},__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Array_d9eac779cd191cbc:function(t){let e;try{e=o(t)instanceof Array}catch{e=!1}return e},__wbg_instanceof_CanvasRenderingContext2d_4bb052fd1c3d134d:function(t){let e;try{e=o(t)instanceof CanvasRenderingContext2D}catch{e=!1}return e},__wbg_instanceof_CssGroupingRule_875241920a85dfd7:function(t){let e;try{e=o(t)instanceof CSSGroupingRule}catch{e=!1}return e},__wbg_instanceof_CssImportRule_21bd264cef048043:function(t){let e;try{e=o(t)instanceof CSSImportRule}catch{e=!1}return e},__wbg_instanceof_CssStyleRule_23e59108346af0df:function(t){let e;try{e=o(t)instanceof CSSStyleRule}catch{e=!1}return e},__wbg_instanceof_CssStyleSheet_622aeba16e7e2d66:function(t){let e;try{e=o(t)instanceof CSSStyleSheet}catch{e=!1}return e},__wbg_instanceof_CustomEvent_7dc010f377596c94:function(t){let e;try{e=o(t)instanceof CustomEvent}catch{e=!1}return e},__wbg_instanceof_Date_1b9f15b87f10aa4c:function(t){let e;try{e=o(t)instanceof Date}catch{e=!1}return e},__wbg_instanceof_Element_9e662f49ab6c6beb:function(t){let e;try{e=o(t)instanceof Element}catch{e=!1}return e},__wbg_instanceof_Error_8573fe0b0b480f46:function(t){let e;try{e=o(t)instanceof Error}catch{e=!1}return e},__wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792:function(t){let e;try{e=o(t)instanceof HTMLCanvasElement}catch{e=!1}return e},__wbg_instanceof_HtmlElement_5abfac207260fd6f:function(t){let e;try{e=o(t)instanceof HTMLElement}catch{e=!1}return e},__wbg_instanceof_HtmlInputElement_c10b7260b4e0710a:function(t){let e;try{e=o(t)instanceof HTMLInputElement}catch{e=!1}return e},__wbg_instanceof_HtmlLinkElement_5eb5b0855a17d0fc:function(t){let e;try{e=o(t)instanceof HTMLLinkElement}catch{e=!1}return e},__wbg_instanceof_HtmlSelectElement_a1820832b22b0d1e:function(t){let e;try{e=o(t)instanceof HTMLSelectElement}catch{e=!1}return e},__wbg_instanceof_Map_53af74335dec57f4:function(t){let e;try{e=o(t)instanceof Map}catch{e=!1}return e},__wbg_instanceof_Node_da04bd8df43deba3:function(t){let e;try{e=o(t)instanceof Node}catch{e=!1}return e},__wbg_instanceof_Object_1c6af87502b733ed:function(t){let e;try{e=o(t)instanceof Object}catch{e=!1}return e},__wbg_instanceof_Promise_0094681e3519d6ec:function(t){let e;try{e=o(t)instanceof Promise}catch{e=!1}return e},__wbg_instanceof_Response_ee1d54d79ae41977:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_ShadowRoot_5285adde3587c73e:function(t){let e;try{e=o(t)instanceof ShadowRoot}catch{e=!1}return e},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_ed49b2db8df90359:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_d314bb98fcf08331:function(t){return Array.isArray(o(t))},__wbg_isCollapsed_617e9be3f62f5a25:function(t){return o(t).isCollapsed},__wbg_isConnected_6110bc2c5462f90e:function(t){return o(t).isConnected},__wbg_isContentEditable_f5b0ce009dbd035b:function(t){return o(t).isContentEditable},__wbg_isIntersecting_4edac2db8e5bdcfd:function(t){return o(t).isIntersecting},__wbg_isSafeInteger_bfbc7332a9768d2a:function(t){return Number.isSafeInteger(o(t))},__wbg_isSameNode_3caa48d6eb3c880e:function(t,e){return o(t).isSameNode(o(e))},__wbg_is_f29129f676e5410c:function(t,e){return Object.is(o(t),o(e))},__wbg_item_48715d3212ed96cb:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_5c82f52b014b3056:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_64b77e6a26f7de76:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_item_ca823df8214b9e2b:function(t,e){let n=o(t).item(e>>>0);return f(n)?0:c(n)},__wbg_iterator_6ff6560ca1568e55:function(){return c(Symbol.iterator)},__wbg_keyCode_155291a11654466e:function(t){return o(t).keyCode},__wbg_key_d41e8e825e6bb0e9:function(t,e){let n=o(e).key,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_keys_b50a709a76add04e:function(t){let e=Object.keys(o(t));return c(e)},__wbg_languages_5a69df7551d1a803:function(t){let e=o(t).languages;return c(e)},__wbg_lastChild_132d67597d5e4aef:function(t){let e=o(t).lastChild;return f(e)?0:c(e)},__wbg_left_3b7c3c1030d5ca7a:function(t){return o(t).left},__wbg_length_25851a48867b2afc:function(t){return o(t).length},__wbg_length_32ed9a279acd054c:function(t){return o(t).length},__wbg_length_35a7bace40f36eac:function(t){return o(t).length},__wbg_length_3f12bc1cab862cc3:function(t){return o(t).length},__wbg_length_e455564ce5cbf46e:function(t){return o(t).length},__wbg_length_edae0cd13a8d3b71:function(t){return o(t).length},__wbg_listener_id_3f13203bf7de1e4d:function(t){let e=o(t).__yew_listener_id;return f(e)?4294967297:e>>>0},__wbg_load_f8d29f3c1bda8dd1:function(t,e,n,_,i){var b=d(e,n),g=d(_,i);let w=o(t).load(b,g);return c(w)},__wbg_mark_3b530a64b09ba08a:function(){return l(function(t,e,n){var _=d(e,n);o(t).mark(_)},arguments)},__wbg_maximize_5914d240f9720c92:function(t,e,n){var _=d(e,n);o(t).maximize(_)},__wbg_measureText_9d64a92333bd05ee:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).measureText(_);return c(i)},arguments)},__wbg_measure_288b48c082eae0fe:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).measure(b,g)},arguments)},__wbg_message_9ddc4b9a62a7c379:function(t){let e=o(t).message;return c(e)},__wbg_minimize_b6797cde233b147a:function(t){o(t).minimize()},__wbg_namespaceURI_86e2062c65f0f341:function(t,e){let n=o(e).namespaceURI;var _=f(n)?0:m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_navigator_43be698ba96fc088:function(t){let e=o(t).navigator;return c(e)},__wbg_new_1123ec9eac9107f9:function(t){let e=new it(o(t));return c(e)},__wbg_new_16c83877745f8d12:function(){return l(function(t,e){var n=d(t,e);let _=new InputEvent(n);return c(_)},arguments)},__wbg_new_1d5bd472c706b768:function(){return l(function(){let t=new CSSStyleSheet;return c(t)},arguments)},__wbg_new_245cd5c49157e602:function(t){let e=new Date(o(t));return c(e)},__wbg_new_2ec3ec8c398b20d2:function(){return l(function(){let t=new TextDecoder;return c(t)},arguments)},__wbg_new_361308b2356cecd0:function(){let t=new Object;return c(t)},__wbg_new_384a230f8673183c:function(){return l(function(t,e){var n=d(t,e);let _=new CustomEvent(n);return c(_)},arguments)},__wbg_new_3eb36ae241fe6f44:function(){let t=new Array;return c(t)},__wbg_new_406106b44b3d11fa:function(t){let e=new Set(o(t));return c(e)},__wbg_new_64284bd487f9d239:function(){return l(function(){let t=new Headers;return c(t)},arguments)},__wbg_new_6f0524fbfa300c47:function(){return l(function(){let t=new MessageChannel;return c(t)},arguments)},__wbg_new_72b49615380db768:function(t,e){var n=d(t,e);let _=new Error(n);return c(_)},__wbg_new_86c8f0b79e48927d:function(t,e){let n=new Intl.NumberFormat(o(t),o(e));return c(n)},__wbg_new_8a6f238a6ece86ea:function(){let t=new Error;return c(t)},__wbg_new_b5d9e2fb389fef91:function(t,e){try{var n={a:t,b:e},_=(b,g)=>{let w=n.a;n.a=0;try{return Ht(w,n.b,b,g)}finally{n.a=w}};let i=new Promise(_);return c(i)}finally{n.a=n.b=0}},__wbg_new_b949e7f56150a5d1:function(){return l(function(){let t=new AbortController;return c(t)},arguments)},__wbg_new_c155239f1b113b68:function(t,e){let n=new Intl.DateTimeFormat(o(t),o(e));return c(n)},__wbg_new_c734e4e60dd53338:function(t){let e=new st(o(t));return c(e)},__wbg_new_dca287b076112a51:function(){return c(new Map)},__wbg_new_dd2b680c8bf6ae29:function(t){let e=new Uint8Array(o(t));return c(e)},__wbg_new_from_slice_a3d2629dc1826784:function(t,e){let n=new Uint8Array(E(t,e));return c(n)},__wbg_new_no_args_1c7c842f08d00ebb:function(t,e){var n=d(t,e);let _=new Function(n);return c(_)},__wbg_new_with_event_init_dict_48877e7ca125f3c1:function(){return l(function(t,e,n){var _=d(t,e);let i=new CustomEvent(_,o(n));return c(i)},arguments)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return l(function(t,e,n){var _=d(t,e);let i=new Request(_,o(n));return c(i)},arguments)},__wbg_new_with_str_sequence_and_options_9b8b0bee99ec6b0f:function(){return l(function(t,e){let n=new Blob(o(t),o(e));return c(n)},arguments)},__wbg_new_with_u8_array_sequence_08b2096a9f3117c0:function(){return l(function(t){let e=new Blob(o(t));return c(e)},arguments)},__wbg_nextSibling_2e988d9bbe3e06f0:function(t){let e=o(t).nextSibling;return f(e)?0:c(e)},__wbg_next_3482f54c49e8af19:function(){return l(function(t){let e=o(t).next();return c(e)},arguments)},__wbg_next_418f80d8f5303233:function(t){let e=o(t).next;return c(e)},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_now_ebffdf7e580f210d:function(t){return o(t).now()},__wbg_observe_1def4936df655a12:function(t,e){o(t).observe(o(e))},__wbg_observe_73e16bff92bd62ba:function(t,e){o(t).observe(o(e))},__wbg_of_f915f7cd925b21a5:function(t){let e=Array.of(o(t));return c(e)},__wbg_offsetHeight_34f7abc1686733cc:function(t){return o(t).offsetHeight},__wbg_offsetParent_9627ebca6b03e8b2:function(t){let e=o(t).offsetParent;return f(e)?0:c(e)},__wbg_offsetWidth_f37b33a53e513101:function(t){return o(t).offsetWidth},__wbg_offsetX_b76b9bb1f9235de9:function(t){return o(t).offsetX},__wbg_offsetY_db5c1ddb866e1b82:function(t){return o(t).offsetY},__wbg_ok_87f537440a0acf85:function(t){return o(t).ok},__wbg_overlay_d0f9712f0824bcd5:function(t){let e=o(t).overlay;return c(e)},__wbg_parentElement_75863410a8617953:function(t){let e=o(t).parentElement;return f(e)?0:c(e)},__wbg_parentNode_d44bd5ec58601e45:function(t){let e=o(t).parentNode;return f(e)?0:c(e)},__wbg_parse_708461a1feddfb38:function(){return l(function(t,e){var n=d(t,e);let _=JSON.parse(n);return c(_)},arguments)},__wbg_performance_06f12ba62483475d:function(t){let e=o(t).performance;return f(e)?0:c(e)},__wbg_plugin_config_schema_0bc5c9a74e20833a:function(){return l(function(t,e,n){let _=o(t).plugin_config_schema(o(e),o(n));return c(_)},arguments)},__wbg_pointerId_466b1bdcaf2fe835:function(t){return o(t).pointerId},__wbg_pop_80fa29128215a463:function(t){let e=o(t).pop();return c(e)},__wbg_port1_6251ddc5cf5c9287:function(t){let e=o(t).port1;return c(e)},__wbg_port2_b2a294b0ede1e13c:function(t){let e=o(t).port2;return c(e)},__wbg_postMessage_99dab4742cd26c46:function(){return l(function(t,e,n,_,i){var b=d(n,_);o(t).postMessage(o(e),b,o(i))},arguments)},__wbg_prepend_12ed960547d9dfe1:function(){return l(function(t,e){o(t).prepend(o(e))},arguments)},__wbg_presize_6e76abae26f1a4b1:function(){return l(function(t,e,n){let _=o(t).presize(e,n);return c(_)},arguments)},__wbg_preventDefault_cdcfcd7e301b9702:function(t){o(t).preventDefault()},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(t,e,n){Uint8Array.prototype.set.call(E(t,e),o(n))},__wbg_push_8ffdcb2063340ba5:function(t,e){return o(t).push(o(e))},__wbg_querySelectorAll_1283aae52043a951:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelectorAll(_);return c(i)},arguments)},__wbg_querySelectorAll_5875742f4e11f759:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelectorAll(_);return c(i)},arguments)},__wbg_querySelector_1be4292f202b1597:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelector(_);return f(i)?0:c(i)},arguments)},__wbg_querySelector_4dc619d02f6cb079:function(){return l(function(t,e,n){var _=d(e,n);let i=o(t).querySelector(_);return f(i)?0:c(i)},arguments)},__wbg_queueMicrotask_0aa0a927f78f5d98:function(t){let e=o(t).queueMicrotask;return c(e)},__wbg_queueMicrotask_5bb536982f78a56f:function(t){queueMicrotask(o(t))},__wbg_readText_b9ac81623f153a62:function(t){let e=o(t).readText();return c(e)},__wbg_read_68fd377df67e19b0:function(t){let e=o(t).read();return c(e)},__wbg_readyState_cf11f0728fc7b46c:function(t,e){let n=o(e).readyState,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_realCoordinates_0cfcec58efa302f7:function(t,e){let n=o(t).realCoordinates(o(e));return c(n)},__wbg_reject_a2176de7f1212be5:function(t){let e=Promise.reject(o(t));return c(e)},__wbg_relatedTarget_1557cded94b97af2:function(t){let e=o(t).relatedTarget;return f(e)?0:c(e)},__wbg_releasePointerCapture_420ef33c7c5fb6f4:function(){return l(function(t,e){o(t).releasePointerCapture(e)},arguments)},__wbg_removeAllRanges_39254b77dc6257ab:function(){return l(function(t){o(t).removeAllRanges()},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return l(function(t,e,n){var _=d(e,n);o(t).removeAttribute(_)},arguments)},__wbg_removeChild_2f0b06213dbc49ca:function(){return l(function(t,e){let n=o(t).removeChild(o(e));return c(n)},arguments)},__wbg_removeEventListener_0c0902ed5009dd9f:function(){return l(function(t,e,n,_,i){var b=d(e,n);o(t).removeEventListener(b,o(_),i!==0)},arguments)},__wbg_removeEventListener_e63328781a5b9af9:function(){return l(function(t,e,n,_){var i=d(e,n);o(t).removeEventListener(i,o(_))},arguments)},__wbg_removePanel_e1df14823e9d01a4:function(t,e,n){var _=d(e,n);let i=o(t).removePanel(_);return c(i)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return l(function(t,e,n,_){var i=d(n,_);let b=o(e).removeProperty(i),g=m(b,r.__wbindgen_export,r.__wbindgen_export2),w=p;s().setInt32(t+4,w,!0),s().setInt32(t+0,g,!0)},arguments)},__wbg_remove_31c39325eee968fc:function(t){o(t).remove()},__wbg_remove_f9451697e0bc6ca0:function(){return l(function(t,e,n){var _=d(e,n);o(t).remove(_)},arguments)},__wbg_render_5dc8930acb0ebe29:function(){return l(function(t,e,n){let _=o(t).render(I.__wrap(e),u(n));return c(_)},arguments)},__wbg_replaceSync_54e9ce897fe6ab6a:function(){return l(function(t,e,n){var _=d(e,n);o(t).replaceSync(_)},arguments)},__wbg_requestAnimationFrame_43682f8e1c5e5348:function(){return l(function(t,e){return o(t).requestAnimationFrame(o(e))},arguments)},__wbg_resize_bf0dd2806933aa71:function(){return l(function(t){let e=o(t).resize();return c(e)},arguments)},__wbg_resolve_002c4b7d9d8f6b64:function(t){let e=Promise.resolve(o(t));return c(e)},__wbg_resolvedOptions_4c36dbfa1c4ba2bf:function(t){let e=o(t).resolvedOptions();return c(e)},__wbg_restorePhysics_7eeaa6f6122db051:function(t,e){o(t).restorePhysics(o(e))},__wbg_restoreSync_c7fdcd99c95b3b1c:function(t,e){o(t).restoreSync(o(e))},__wbg_restore_992a001be7186609:function(){return l(function(t,e,n){o(t).restore(o(e),o(n))},arguments)},__wbg_restyle_1fe2eb27d31218ad:function(t){o(t).restyle()},__wbg_resumeResize_4d9f7b006c1294a4:function(t){o(t).resumeResize()},__wbg_right_154af6c2b1bf0c89:function(t){return o(t).right},__wbg_run_fbfb3667d8440eaa:function(){return l(function(t,e){let n=o(t).run(o(e));return c(n)},arguments)},__wbg_save_6093cc98267143ad:function(t){let e=o(t).save();return c(e)},__wbg_scrollHeight_25e40881bfad55b6:function(t){return o(t).scrollHeight},__wbg_scrollLeft_2b817c7719d17438:function(t){return o(t).scrollLeft},__wbg_scrollTop_0a3a77f9fcbe038e:function(t){return o(t).scrollTop},__wbg_scrollTop_4161d2a08060cb06:function(t){return o(t).scrollTop},__wbg_select_de848e6023a15ec8:function(t,e,n){var _=d(e,n);let i=o(t).select(_);return c(i)},__wbg_select_f96715f412d93f23:function(t){o(t).select()},__wbg_selectedIndex_b1465d243fcb7142:function(t){return o(t).selectedIndex},__wbg_selectionEnd_f3cba543517b4aa8:function(){return l(function(t){let e=o(t).selectionEnd;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectionStart_9cd0aeff14a21252:function(){return l(function(t){let e=o(t).selectionStart;return f(e)?4294967297:e>>>0},arguments)},__wbg_selectorText_4ebdf4f8074dafea:function(t,e){let n=o(e).selectorText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).setAttribute(b,g)},arguments)},__wbg_setDragImage_76defbcc7ff30178:function(t,e,n,_){o(t).setDragImage(o(e),n,_)},__wbg_setPointerCapture_420db6f6826eb74b:function(){return l(function(t,e){o(t).setPointerCapture(e)},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t).setProperty(b,g)},arguments)},__wbg_setSelectionRange_301eef1c51e01d2a:function(){return l(function(t,e,n){o(t).setSelectionRange(e>>>0,n>>>0)},arguments)},__wbg_setTimeout_21d8cc2869b34c58:function(t,e){return setTimeout(o(t),e)},__wbg_setTimeout_eff32631ea138533:function(){return l(function(t,e,n){return o(t).setTimeout(o(e),n)},arguments)},__wbg_set_1eb0999cf5d27fc8:function(t,e,n){let _=o(t).set(o(e),o(n));return c(_)},__wbg_set_3f1d0b984ed272ed:function(t,e,n){o(t)[u(e)]=u(n)},__wbg_set_6cb8631f80447a67:function(){return l(function(t,e,n){return Reflect.set(o(t),o(e),o(n))},arguments)},__wbg_set_body_9a7e00afe3cfe244:function(t,e){o(t).body=o(e)},__wbg_set_bubbles_739f291693b2bbec:function(t,e){o(t).bubbles=e!==0},__wbg_set_cache_key_ace1fa875f02b7cd:function(t,e){o(t).__yew_subtree_cache_key=e>>>0},__wbg_set_capture_d52e7a585f2933c8:function(t,e){o(t).capture=e!==0},__wbg_set_checked_4b2468680005fbf7:function(t,e){o(t).checked=e!==0},__wbg_set_className_c1d9e7362164af61:function(t,e,n){var _=d(e,n);o(t).className=_},__wbg_set_composed_e4a9826a628ca7f8:function(t,e){o(t).composed=e!==0},__wbg_set_cssText_18380c97092caefa:function(t,e,n){var _=d(e,n);o(t).cssText=_},__wbg_set_defaultValue_ad528b0a65ceef4a:function(){return l(function(t,e,n){var _=d(e,n);o(t).defaultValue=_},arguments)},__wbg_set_detail_fa3b358526be3a85:function(t,e){o(t).detail=o(e)},__wbg_set_dropEffect_042402609f0b7c6b:function(t,e,n){var _=d(e,n);o(t).dropEffect=_},__wbg_set_f43e577aea94465b:function(t,e,n){o(t)[e>>>0]=u(n)},__wbg_set_fb27b296001e2de9:function(){return l(function(t,e,n,_,i){var b=d(e,n),g=d(_,i);o(t)[b]=g},arguments)},__wbg_set_font_575685c8f7e56957:function(t,e,n){var _=d(e,n);o(t).font=_},__wbg_set_headers_cfc5f4b2c1f20549:function(t,e){o(t).headers=o(e)},__wbg_set_innerHTML_edd39677e3460291:function(t,e,n){var _=d(e,n);o(t).innerHTML=_},__wbg_set_innerText_2f1502f2d0780499:function(t,e,n){var _=d(e,n);o(t).innerText=_},__wbg_set_listener_id_8b77f7eb9adb712b:function(t,e){o(t).__yew_listener_id=e>>>0},__wbg_set_method_c3e20375f5ae7fac:function(t,e,n){var _=d(e,n);o(t).method=_},__wbg_set_mode_6a55f972d62a3c88:function(t,e){o(t).mode=Bt[e]},__wbg_set_nodeValue_d947eb0a476b80d7:function(t,e,n){var _=d(e,n);o(t).nodeValue=_},__wbg_set_onload_7f48f88f0514211d:function(t,e){o(t).onload=o(e)},__wbg_set_onmessage_0e1ffb1c0d91d2ad:function(t,e){o(t).onmessage=o(e)},__wbg_set_passive_f411e67e6f28687b:function(t,e){o(t).passive=e!==0},__wbg_set_scrollLeft_8de8fc187e3a6808:function(t,e){o(t).scrollLeft=e},__wbg_set_scrollTop_bebe746cd217a3d1:function(t,e){o(t).scrollTop=e},__wbg_set_scrollTop_fb454582dda63417:function(t,e){o(t).scrollTop=e},__wbg_set_selectionEnd_01e3269db03d5d2e:function(){return l(function(t,e){o(t).selectionEnd=e===4294967297?void 0:e},arguments)},__wbg_set_selectionStart_d68d6955c07c2be1:function(){return l(function(t,e){o(t).selectionStart=e===4294967297?void 0:e},arguments)},__wbg_set_signal_f2d3f8599248896d:function(t,e){o(t).signal=o(e)},__wbg_set_stream_8a7c5f563fa185b4:function(t,e){o(t).stream=e!==0},__wbg_set_subtree_id_8be88ea477740786:function(t,e){o(t).__yew_subtree_id=e>>>0},__wbg_set_type_148de20768639245:function(t,e,n){var _=d(e,n);o(t).type=_},__wbg_set_value_62a965e38b22b38c:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_set_value_c3556fce049236f0:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_set_value_ddc3bd01a8467bf1:function(t,e,n){var _=d(e,n);o(t).value=_},__wbg_shadowRoot_14828067c5922da7:function(t){let e=o(t).shadowRoot;return f(e)?0:c(e)},__wbg_sheet_38c9043b5f37d85d:function(t){let e=o(t).sheet;return f(e)?0:c(e)},__wbg_shiftKey_5558a3288542c985:function(t){return o(t).shiftKey},__wbg_shiftKey_564be91ec842bcc4:function(t){return o(t).shiftKey},__wbg_showPicker_ba1d36381dae3011:function(){return l(function(t){o(t).showPicker()},arguments)},__wbg_showPopover_7166cd0808998024:function(){return l(function(t){o(t).showPopover()},arguments)},__wbg_signal_d1285ecab4ebc5ad:function(t){let e=o(t).signal;return c(e)},__wbg_slot_7d421d6c9d6c8352:function(t,e){let n=o(e).slot,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_stack_0ed75d68575b0f3c:function(t,e){let n=o(e).stack,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_startTime_248495bfbcb427d3:function(t){return o(t).startTime},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){let t=typeof self>"u"?null:self;return f(t)?0:c(t)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){let t=typeof globalThis>"u"?null:globalThis;return f(t)?0:c(t)},__wbg_static_accessor_PSP_b8e6af6bc5765039:function(){return c(X)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){let t=typeof self>"u"?null:self;return f(t)?0:c(t)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){let t=typeof window>"u"?null:window;return f(t)?0:c(t)},__wbg_statusText_556131a02d60f5cd:function(t,e){let n=o(e).statusText,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_status_89d7e803db911ee7:function(t){return o(t).status},__wbg_stopPropagation_6e5e2a085214ac63:function(t){o(t).stopPropagation()},__wbg_stringify_2fdc12d5545a89d9:function(){return l(function(t,e,n){let _=JSON.stringify(o(t),o(e),o(n));return c(_)},arguments)},__wbg_stringify_8d1cc6ff383e8bae:function(){return l(function(t){let e=JSON.stringify(o(t));return c(e)},arguments)},__wbg_styleSheet_66d04471448b344e:function(t){let e=o(t).styleSheet;return f(e)?0:c(e)},__wbg_styleSheets_54de627270238f6f:function(t){let e=o(t).styleSheets;return c(e)},__wbg_styleSheets_f6881090d63936f3:function(t){let e=o(t).styleSheets;return c(e)},__wbg_style_0b7c9bd318f8b807:function(t){let e=o(t).style;return c(e)},__wbg_style_fa56cf251a93275a:function(t){let e=o(t).style;return c(e)},__wbg_subtree_id_1739fcadc43deeca:function(t){let e=o(t).__yew_subtree_id;return f(e)?4294967297:e>>>0},__wbg_supportedValuesOf_e65486576a5dfffe:function(t){let e=Intl.supportedValuesOf(o(t));return c(e)},__wbg_table_new:function(t){let e=z.__wrap(t);return c(e)},__wbg_tagName_0cf6d7b647352f04:function(t,e){let n=o(e).tagName,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_target_521be630ab05b11e:function(t){let e=o(t).target;return f(e)?0:c(e)},__wbg_text_083b8727c990c8c0:function(){return l(function(t){let e=o(t).text();return c(e)},arguments)},__wbg_then_0d9fe2c7b1857d32:function(t,e,n){let _=o(t).then(o(e),o(n));return c(_)},__wbg_then_b9e7b3b5f1a9e1b5:function(t,e){let n=o(t).then(o(e));return c(n)},__wbg_timeStamp_ddfe1bf5c2346d68:function(t){return o(t).timeStamp},__wbg_toString_964ff7fe6eca8362:function(t){let e=o(t).toString();return c(e)},__wbg_toggleAttribute_d89e5c9e9053c9c4:function(){return l(function(t,e,n,_){var i=d(e,n);return o(t).toggleAttribute(i,_!==0)},arguments)},__wbg_toggle_52417ca95b874e83:function(){return l(function(t,e,n){var _=d(e,n);return o(t).toggle(_)},arguments)},__wbg_toggle_b8e3ebf1a7aaeb11:function(){return l(function(t,e,n,_){var i=d(e,n);return o(t).toggle(i,_!==0)},arguments)},__wbg_top_3d27ff6f468cf3fc:function(t){return o(t).top},__wbg_trace_9007714a6fbee374:function(t){console.trace(o(t))},__wbg_trace_bd16b570941b54fb:function(t,e,n,_){console.trace(o(t),o(e),o(n),o(_))},__wbg_type_4edffca24c42b74d:function(t,e){let n=o(e).type,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_unobserve_6b943d83215ce857:function(t,e){o(t).unobserve(o(e))},__wbg_unobserve_a18b5f61042cc982:function(t,e){o(t).unobserve(o(e))},__wbg_update_161f4eaafd1733f1:function(){return l(function(t,e,n,_,i){let b=o(t).update(I.__wrap(e),n===4294967297?void 0:n,_===4294967297?void 0:_,i!==0);return c(b)},arguments)},__wbg_valueAsNumber_5292e7ed56db5658:function(t){return o(t).valueAsNumber},__wbg_value_0546255b415e96c1:function(t){let e=o(t).value;return c(e)},__wbg_value_15684899da869c95:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_value_d402dce7dcb16251:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_value_e506a07878790ca0:function(t,e){let n=o(e).value,_=m(n,r.__wbindgen_export,r.__wbindgen_export2),i=p;s().setInt32(t+4,i,!0),s().setInt32(t+0,_,!0)},__wbg_values_5da93bc719d272cf:function(t){let e=Object.values(o(t));return c(e)},__wbg_view_new:function(t){let e=I.__wrap(t);return c(e)},__wbg_view_unwrap:function(t){return I.__unwrap(o(t))},__wbg_virtualdataslice_new:function(t){let e=M.__wrap(t);return c(e)},__wbg_warn_a40b971467b219c7:function(t,e,n,_){console.warn(o(t),o(e),o(n),o(_))},__wbg_warn_f7ae1b2e66ccb930:function(t){console.warn(o(t))},__wbg_which_78ecd90ab7c6bdd6:function(t){return o(t).which},__wbg_width_7444cca5dfea0645:function(t){return o(t).width},__wbg_width_9bbf873307a2ac4e:function(t){return o(t).width},__wbg_width_ae46cb8e98ee102f:function(t){return o(t).width},__wbindgen_cast_0000000000000001:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_5185,bt);return c(n)},__wbindgen_cast_0000000000000002:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000003:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000004:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000005:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000006:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_5185,bt);return c(n)},__wbindgen_cast_0000000000000007:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000008:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_5185,R);return c(n)},__wbindgen_cast_0000000000000009:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_5185,Lt);return c(n)},__wbindgen_cast_000000000000000a:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_21028,Nt);return c(n)},__wbindgen_cast_000000000000000b:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_21730,gt);return c(n)},__wbindgen_cast_000000000000000c:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_21730,gt);return c(n)},__wbindgen_cast_000000000000000d:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_21730,Mt);return c(n)},__wbindgen_cast_000000000000000e:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_22975,Dt);return c(n)},__wbindgen_cast_000000000000000f:function(t,e){let n=T(t,e,r.__wasm_bindgen_func_elem_22975,qt);return c(n)},__wbindgen_cast_0000000000000010:function(t,e){let n=S(t,e,r.__wasm_bindgen_func_elem_27811,Wt);return c(n)},__wbindgen_cast_0000000000000011:function(t){return c(t)},__wbindgen_cast_0000000000000012:function(t){return c(t)},__wbindgen_cast_0000000000000013:function(t,e){var n=d(t,e);return c(n)},__wbindgen_cast_0000000000000014:function(t,e){let n=Vt(t,e);return c(n)},__wbindgen_cast_0000000000000015:function(t,e){let n=$t(t,e);return c(n)},__wbindgen_cast_0000000000000016:function(t,e){let n=Gt(t,e);return c(n)},__wbindgen_cast_0000000000000017:function(t,e){let n=Jt(t,e);return c(n)},__wbindgen_cast_0000000000000018:function(t,e){let n=E(t,e);return c(n)},__wbindgen_cast_0000000000000019:function(t){let e=BigInt.asUintN(64,t);return c(e)},__wbindgen_cast_000000000000001a:function(t,e){var n=vt(t,e).slice();return r.__wbindgen_export4(t,e*4,4),c(n)},__wbindgen_cast_000000000000001b:function(t,e){var n=E(t,e).slice();return r.__wbindgen_export4(t,e*1,1),c(n)},__wbindgen_object_clone_ref:function(t){let e=o(t);return c(e)},__wbindgen_object_drop_ref:function(t){u(t)},__wbindgen_object_is_undefined:function(t){return o(t)===void 0}}}}function Mt(a,t){r.__wasm_bindgen_func_elem_21736(a,t)}function qt(a,t){r.__wasm_bindgen_func_elem_23774(a,t)}function Dt(a,t){let e=r.__wasm_bindgen_func_elem_23773(a,t);return u(e)}function bt(a,t,e){r.__wasm_bindgen_func_elem_8948(a,t,c(e))}function R(a,t,e){r.__wasm_bindgen_func_elem_8949(a,t,c(e))}function Lt(a,t){try{let i=r.__wbindgen_add_to_stack_pointer(-16);r.__wasm_bindgen_func_elem_8950(i,a,t);var e=s().getInt32(i+0,!0),n=s().getInt32(i+4,!0),_=s().getInt32(i+8,!0);if(_)throw u(n);return u(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Nt(a,t,e){try{r.__wasm_bindgen_func_elem_21145(a,t,ot(e))}finally{k[O++]=void 0}}function gt(a,t,e){r.__wasm_bindgen_func_elem_21737(a,t,c(e))}function Wt(a,t,e){r.__wasm_bindgen_func_elem_27828(a,t,c(e))}function Ht(a,t,e,n){r.__wasm_bindgen_func_elem_36159(a,t,c(e),c(n))}var Bt=["open","closed"],Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_client_free(a>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_genericsqlvirtualservermodel_free(a>>>0,1)),dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_perspectivedebugpluginelement_free(a>>>0,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_perspectiveviewerelement_free(a>>>0,1)),tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_proxysession_free(a>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_table_free(a>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_view_free(a>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_virtualdataslice_free(a>>>0,1)),pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>r.__wbg_virtualserver_free(a>>>0,1));function c(a){U===k.length&&k.push(k.length+1);let t=U;return U=k[t],k[t]=a,t}function rt(a,t){if(!(a instanceof t))throw new Error(`expected instance of ${t.name}`)}function ot(a){if(O==1)throw new Error("out of js stack");return k[--O]=a,O}var K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>a.dtor(a.a,a.b));function _t(a){let t=typeof a;if(t=="number"||t=="boolean"||a==null)return`${a}`;if(t=="string")return`"${a}"`;if(t=="symbol"){let _=a.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){let _=a.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(a)){let _=a.length,i="[";_>0&&(i+=_t(a[0]));for(let b=1;b<_;b++)i+=", "+_t(a[b]);return i+="]",i}let e=/\\[object ([^\\]]+)\\]/.exec(toString.call(a)),n;if(e&&e.length>1)n=e[1];else return toString.call(a);if(n=="Object")try{return"Object("+JSON.stringify(a)+")"}catch{return"Object"}return a instanceof Error?`${a.name}: ${a.message}\n${a.stack}`:n}function Ut(a){a<132||(k[a]=U,U=a)}function Vt(a,t){return a=a>>>0,Xt().subarray(a/4,a/4+t)}function $t(a,t){return a=a>>>0,Yt().subarray(a/8,a/8+t)}function Gt(a,t){return a=a>>>0,Kt().subarray(a/4,a/4+t)}function vt(a,t){a=a>>>0;let e=s(),n=[];for(let _=a;_<a+4*t;_+=4)n.push(u(e.getUint32(_,!0)));return n}function Jt(a,t){return a=a>>>0,Zt().subarray(a/4,a/4+t)}function E(a,t){return a=a>>>0,P().subarray(a/1,a/1+t)}function d(a,t){return a===0?o(t):Qt(a,t)}var A=null;function s(){return(A===null||A.buffer.detached===!0||A.buffer.detached===void 0&&A.buffer!==r.memory.buffer)&&(A=new DataView(r.memory.buffer)),A}var L=null;function Xt(){return(L===null||L.byteLength===0)&&(L=new Float32Array(r.memory.buffer)),L}var N=null;function Yt(){return(N===null||N.byteLength===0)&&(N=new Float64Array(r.memory.buffer)),N}var W=null;function Kt(){return(W===null||W.byteLength===0)&&(W=new Int32Array(r.memory.buffer)),W}function Qt(a,t){return a=a>>>0,ne(a,t)}var H=null;function Zt(){return(H===null||H.byteLength===0)&&(H=new Uint32Array(r.memory.buffer)),H}var B=null;function P(){return(B===null||B.byteLength===0)&&(B=new Uint8Array(r.memory.buffer)),B}function o(a){return k[a]}function l(a,t){try{return a.apply(this,t)}catch(e){r.__wbindgen_export3(c(e))}}var k=new Array(128).fill(void 0);k.push(void 0,null,!0,!1);var U=k.length;function f(a){return a==null}function T(a,t,e,n){let _={a,b:t,cnt:1,dtor:e},i=(...b)=>{_.cnt++;try{return n(_.a,_.b,...b)}finally{i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(i,_,_),i}function S(a,t,e,n){let _={a,b:t,cnt:1,dtor:e},i=(...b)=>{_.cnt++;let g=_.a;_.a=0;try{return n(g,_.b,...b)}finally{_.a=g,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(_.dtor(_.a,_.b),_.a=0,K.unregister(_))},K.register(i,_,_),i}function te(a,t){let e=t(a.length*1,1)>>>0;return P().set(a,e/1),p=a.length,e}function yt(a,t){let e=t(a.length*4,4)>>>0,n=s();for(let _=0;_<a.length;_++)n.setUint32(e+4*_,c(a[_]),!0);return p=a.length,e}function m(a,t,e){if(e===void 0){let g=mt.encode(a),w=t(g.length,1)>>>0;return P().subarray(w,w+g.length).set(g),p=g.length,w}let n=a.length,_=t(n,1)>>>0,i=P(),b=0;for(;b<n;b++){let g=a.charCodeAt(b);if(g>127)break;i[_+b]=g}if(b!==n){b!==0&&(a=a.slice(b)),_=e(_,n,n=b+a.length*3,1)>>>0;let g=P().subarray(_+b,_+n),w=mt.encodeInto(a,g);b+=w.written,_=e(_,n,b,1)>>>0}return p=b,_}var O=128;function u(a){let t=o(a);return Ut(a),t}var Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Y.decode();var ee=2146435072,nt=0;function ne(a,t){return nt+=t,nt>=ee&&(Y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Y.decode(),nt=t),Y.decode(P().subarray(a,a+t))}var mt=new TextEncoder,p=0,re,r;function xt(a,t){return r=a.exports,re=t,A=null,L=null,N=null,W=null,H=null,B=null,r}async function _e(a,t){if(typeof Response=="function"&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(a,t)}catch(_){if(a.ok&&e(a.type)&&a.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",_);else throw _}let n=await a.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(a,t);return n instanceof WebAssembly.Instance?{instance:n,module:a}:n}function e(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}function oe(a){if(r!==void 0)return r;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=ht();a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a));let e=new WebAssembly.Instance(a,t);return xt(e,a)}async function It(a){if(r!==void 0)return r;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module_or_path:a}=a:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));let t=ht();(typeof a=="string"||typeof Request=="function"&&a instanceof Request||typeof URL=="function"&&a instanceof URL)&&(a=fetch(a));let{instance:e,module:n}=await _e(await a,t);return xt(e,n)}export{F as Client,V as GenericSQLVirtualServerModel,$ as PerspectiveDebugPluginElement,G as PerspectiveViewerElement,j as ProxySession,z as Table,I as View,M as VirtualDataSlice,J as VirtualServer,It as default,Ft as getColumnConfigDefaults,Rt as getPluginConfigDefaults,Et as get_wasm_module,Tt as get_worker_url,Pt as init,oe as initSync,Ot as registerPlugin,jt as setColumnConfigDefaults,zt as setPluginConfigDefaults};\n',$=null;async function ye(){if($)return $;let t=new Blob([me],{type:"application/javascript"});return $=URL.createObjectURL(t),$}async function yt(t,e){await fe(t,e)}var it;pe(async t=>{let e=await ye(),[n,r]=await Promise.all([it===void 0?import(e):it,t instanceof WebAssembly.Module?t:WebAssembly.compile(t)]);return await n.default({module_or_path:r}),await n.init(r,e),{glue:n,module:r}});function Ie(t){return typeof t=="object"&&!(t instanceof Promise)&&!(t instanceof Response)&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t)}async function xe(t,e){let n=Ie(t)?t:{viewer:t},{viewer:r,migrate:_}=n;if(r===void 0&&_===void 0)throw new Error("init_client requires a wasm source or a {viewer, migrate} registration");e!==void 0&&(it=e),await yt({viewer:r,migrate:_})}async function Ee(){return await ot()}async function Se(t,e,n){return(await ot()).migrate(t,e,n)}async function Ce(t,e,n){(await ot()).validate(t,e,n)}var Te={create_validator:Ee,init:yt,init_client:xe,migrate:Se,validate:Ce};we({viewer:()=>fetch(new URL("../wasm/perspective-viewer.wasm",import.meta.url)),migrate:()=>fetch(ge(import.meta.url,"viewer","client","perspective-migrate.wasm"))});await he();var Me=Te;export{ke as HTMLPerspectiveViewerPluginElement,Oe as PerspectiveSelectDetail,Le as createDateFormatter,Pe as createDatetimeFormatter,Re as createNumberFormatter,Ee as create_validator,Me as default,yt as init,xe as init_client,Se as migrate,Ae as providers,De as sourceColumn,Ce as validate};
22
22
  //# sourceMappingURL=perspective-viewer.js.map