PageSourceSearch

https://jingwei-xu-00-eccv2026-cad-challenge.hf.space/assets/index-DPvEbAoz.js

js jingwei-xu-00-eccv2026-cad-challenge.hf.space collected 2026-10-03 16:59:27 UTC 9,335 bytes, 1 lines download raw bytes

1import{a1 as I,Y as A,a2 as f,a3 as k,a4 as L}from"./i18n-zlFzjs4f.js";import{E as $,Q as F,a5 as J,a6 as K,a7 as N,P as V,a8 as X,I as tt,H as st,a9 as et,D as it}from"./i18n-zlFzjs4f.js";import{aa as R,Z as U,$ as D,G as u}from"./index-CU1DelDP.js";import{d as W}from"./index-tFQomdd2.js";const j={walkthrough:"tabs",walkthroughstep:"tabitem"};function g(s){const t=new URL(s.root),e=t.pathname.endsWith("/")?t.pathname:t.pathname+"/",i=s.api_prefix.startsWith("/")?s.api_prefix:"/"+s.api_prefix;return new URL(e.slice(0,-1)+i,t.origin).toString()}class T{#p;#e;#i;reactive_formatter=t=>t;#t;client;#a=R();get root(){return U(this.#a)}set root(t){D(this.#a,t,!0)}root_untracked;#l=new Set;#c=new Set;#u=[];#h=new Map;#s=new Map;#r=new Map;#o;component_ids;initial_tabs={};components_to_register=new Set;ready;ready_resolve;resolved=!1;#n=new Set;constructor(t,e,i,r,n,o,p){this.ready=new Promise(l=>{this.ready_resolve=l}),this.reactive_formatter=o;const a=g(r);this.#t={...r,api_url:a},this.#p=t,this.#e=e,this.#i=i,this.#o=p,this.root=this.create_node({id:e.id,children:[]},new Map,!0);for(const l of t)l.props.visible!=!1&&this.components_to_register.add(l.id);this.client=n,this.prepare();const h=t.reduce((l,c)=>(l.set(c.id,c),l),new Map);this.root.children=this.#e.children.map(l=>this.traverse(l,c=>this.create_node(c,h,!1,this.reactive_formatter))),this.component_ids=t.map(l=>l.id),this.initial_tabs={},m(this.root,this.initial_tabs),this.postprocess(this.root),this.root_untracked=this.root}reload(t,e,i,r){this.#e=e,this.#p=t;const n=g(r);this.#t={...r,api_url:n},this.#i=i,this.root=this.create_node({id:e.id,children:[]},new Map,!0);for(const p of t)p.props.visible!=!1&&this.components_to_register.add(p.id);this.prepare();const o=t.reduce((p,a)=>(p.set(a.id,a),p),new Map);this.root.children=this.#e.children.map(p=>this.traverse(p,a=>this.create_node(a,o,!1,this.reactive_formatter))),this.component_ids=t.map(p=>p.id),this.initial_tabs={},m(this.root,this.initial_tabs),this.postprocess(this.root)}register_component(t,e,i){this.#s.set(t,e),this.#h.set(t,i),this.components_to_register.delete(t);const r=this.#r.get(t);r&&(this.#r.delete(t),u().then(()=>{const n=this.#s.get(t);n&&n(r)})),this.components_to_register.size===0&&!this.resolved&&(this.resolved=!0,this.ready_resolve())}prepare(){const[t,e]=I(this.#i);this.#l=t,this.#c=e}process(){}postprocess(t){this.root=this.traverse(t,[e=>M(e,this.#t.api_url),e=>B(e,this.components_to_register),e=>w(e,this.initial_tabs),e=>this.find_attached_events(e,this.#i),e=>C(e,this.components_to_register,this.#n)])}find_attached_events(t,e){const i=e.filter(r=>r.targets.find(([n])=>n===t.id)).map(r=>{const n=r.targets.find(([o])=>o===t.id);return n?n[1]:null}).filter(Boolean);return t.props.shared_props.attached_events=i,t}traverse(t,e){function i(r,n,o){const p=n(r);return"children"in r&&r.children.length>0&&(p.children=r.children?.map(a=>o(a,n))||[]),p}if(Array.isArray(e)){let r=t;for(const n of e)r=i(r,n,this.traverse.bind(this));return r}else return i(t,e,this.traverse.bind(this))}create_node(t,e,i=!1,r){let n;if(i?n={type:"column",id:t.id,props:{visible:!0,root:"",theme_mode:"light",scale:this.#t.fill_height?1:null},component_class_id:"column",key:null}:n=e.get(t.id),!n)throw new Error(`Component with ID ${t.id} not found`);r&&(n.props.i18n=r,n.props.i18n_store=A);const o=z(t.id,n.props,[this.#l,this.#c],this.client,this.#t.api_url,{...this.#t,register_component:this.register_component.bind(this),dispatcher:this.#o.bind(this)}),p=j[n.type]||n.type,a=o.shared_props.visible!==!1?f(n.type,n.component_class_id,this.#t.api_url||""):null;return{id:t.id,type:p,props:o,children:[],show_progress_on:null,component_class_id:n.component_class_id||n.type,component:o.shared_props.visible!==!1&&a?.component||null,runtime:a?.runtime||!1,key:n.key,rendered_in:n.rendered_in,documentation:n.documentation,original_visibility:o.shared_props.visible}}rerender(t,e){const i=t.reduce((p,a)=>(p.set(a.id,a),p),new Map),r=this.traverse(e,p=>this.create_node(p,i,!1,this.reactive_formatter));m(r,this.initial_tabs);const n=this.traverse(r,p=>
1w(p,this.initial_tabs)),o=_(this.root,n.id);if(!o)throw new Error("Rerender failed: root node not found in current tree");o.children=n.children}async update_state(t,e,i=!0){const r=_(this.root,t);let n=!1;if(i&&!r?.component){await u();const p=_(this.root,t);p&&"visible"in e&&(p.props.shared_props.visible=e.visible),v(this.root,this.#t.api_url),await u(),n=!0}const o=this.#s.get(t);if(o)o&&o(e);else{const p=r?.props.props.value,a=x(e);for(const c in a.shared_props)r.props.shared_props[c]=a.shared_props[c];for(const c in a.props)r.props.props[c]=a.props[c];const{loading_status:h,...l}=e;if(Object.keys(l).length>0){const c=this.#r.get(t)||{};this.#r.set(t,{...c,...l})}"value"in e&&!W(p,e.value)&&this.#o(t,"change",null),r?.type==="tabitem"&&this.#_(t,r)}!i||n||(await u(),await this.update_visibility(r,e))}async update_visibility(t,e){t.children.forEach(i=>{const r=this.#s.get(i.id);r&&r(e),this.update_visibility(i,e)})}#_(t,e){const i=S(this.root,t);if(!i||i.type!=="tabs")return;const r=i.props.props.initial_tabs;if(!r)return;const n=r.findIndex(c=>c.component_id===e.id);if(n===-1)return;const o=e.props.props.i18n,p=e.props.shared_props.label,a=e.original_visibility,h=a!==void 0?a:e.props.shared_props.visible;r[n]={label:o?o(p):p,id:e.props.props.id,elem_id:e.props.shared_props.elem_id,visible:h==="hidden"?!1:h,interactive:e.props.shared_props.interactive,scale:e.props.shared_props.scale||null,component_id:e.id},i.props.props.initial_tabs=[...r];const l=this.#s.get(i.id);l&&l({initial_tabs:i.props.props.initial_tabs})}async get_state(t){const e=this.#h.get(t),i=_(this.root,t);return!e&&!i?null:e?await e():i?Promise.resolve({value:i.props.props.value}):null}async render_previously_invisible_children(t){const e=_(this.root,t);e&&(!this.#n.has(e.id)&&!E(e,this.#n)||(b(e,this.#n,!0),v(e,this.#t.api_url)))}}function b(s,t,e=!1){if(s.props.shared_props.visible=t.has(s.id)?!0:s.props.shared_props.visible,s.type==="tabs"){const i=s.props.props.initial_tabs,r=s.props.props.selected??i?.[0]?.id;s.children.forEach(n=>{n.type==="tabitem"&&(n.props.props.id===r||n.id===r)&&b(n,t,!1)})}else s.type==="accordion"&&s.props.props.open===!1&&!e||s.children.forEach(i=>{b(i,t,!1)})}function E(s,t){for(const e of s.children)if(t.has(e.id)||E(e,t))return!0;return!1}function v(s,t){if(s.props.shared_props.visible&&!s.component){const e=f(s.type,s.component_class_id,t);s.component=e.component,s.runtime=e.runtime}s.children.forEach(e=>v(e,t))}function q(s,t,e){return t?t.reduce((i,r)=>(i[r]=async(...n)=>(n.length===1&&(n=n[0]),await e.component_server(s,r,n)),i),{}):{}}function x(s){const t={},e={};for(const i in s)if(i==="id"||i==="autoscroll")e[i]=s[i];else if(k.includes(i)){const r=i;t[r]=s[i]}else e[i]=s[i];return{shared_props:t,props:e}}function z(s,t,e,i,r,n={}){const{shared_props:o,props:p}=x(t);o.server=q(s,t.server_fns,i);for(const a in n)if(k.includes(a)){const h=a;o[h]=n[a]}else p[a]=n[a];return o.client=i,o.id=s,o.interactive=L(s,o.interactive,p.value,e),o.load_component=(a,h,l)=>f(a,l||"",r,h),o.visible=o.visible===void 0?!0:o.visible,o.loading_status={},{shared_props:o,props:p}}function M(s,t){if(s.props.shared_props.visible&&!s.component){const e=f(s.type,s.component_class_id,t),i={...s,component:e.component,children:[]};return s.children&&(i.children=s.children.map(r=>M(r,t))),i}else return s}function d(s,t){t.delete(s.id),s.children&&s.children.forEach(e=>d(e,t))}function B(s,t){return s.props.shared_props.visible!==!0&&d(s,t),s}function y(s,t){return s.props.shared_props.visible===!0&&(t.add(s.id),s.props.shared_props.visible=!1),s.children.forEach(e=>{y(e,t)}),s}function C(s,t,e){return s.type==="accordion"&&s.props.props.open===!1&&(d(s,t),s.children&&s.children.forEach(i=>{y(i,e)})),s.type==="tabs"&&s.children.forEach(i=>{i.type==="tabitem"&&i.props.props.id!==(s.props.props.selected??s.props.props.initial_tabs[0].id)&&(d(i,t),y(i,e))}),s}function w(s,t){if(s.type==="tabs"&&s.id in t){const e=t[s.id].sort((i,r)=>i.order-r.order);s.props.props.initial_tabs=e}else s.type==="tabitem"&&(s.props.props.component_id=s.id);return s}function P(s,t,e,i){if(e!==null&&s.type==="tabitem"){e in t||(t[e]=[]),s.props.props.id==null&&(s.props.props.id=s.id);const r=s.props.props.i18n,n=s.props.shared_props.label;t[e].push({label:r?r(n):n,id:s.props.props.id,elem_id:s.props.shared_props.elem_id,visible:s.props.shared_props.visible,interactive:s.props.shared_props.interactive,scale:s.props.shared_props.scale||null,component_id:s.id}),s.props.props.order=i}
1s.children&&s.children.forEach((r,n)=>{P(r,t,s.type==="tabs"?s.id:null,s.type==="tabs"?n:null)})}function m(s,t){function e(i){"children"in i&&i.children.length>0&&i.children?.forEach(r=>P(r,t,i.type==="tabs"?i.id:null,null))}return e(s)}function _(s,t){if(s.id===t)return s;if(s.children)for(const e of s.children){const i=_(e,t);if(i)return i}return null}function S(s,t){if(s.children)for(const e of s.children){if(e.id===t)return s;const i=S(e,t);if(i)return i}return null}export{T as AppTree,$ as Embed,F as changeLocale,J as get_initial_locale,K as i18n_marker,N as is_translation_metadata,V as language_choices,X as load_translations,tt as mount_css,st as prefix_css,et as process_langs,it as setupi18n};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.