@neurodyn/ar 0.0.0-canary-20260817174540
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/ar.chunk.0c14f05b.min.js +2 -0
- package/dist/ar.chunk.0c14f05b.min.js.LICENSE.txt +6 -0
- package/dist/ar.chunk.2cc90fef.min.js +5 -0
- package/dist/ar.chunk.4745f60f.min.js +5554 -0
- package/dist/ar.chunk.4acb3113.min.js +598 -0
- package/dist/ar.chunk.4acb3113.min.js.LICENSE.txt +129 -0
- package/dist/ar.chunk.7f1c68e6.min.js +2 -0
- package/dist/ar.chunk.7f1c68e6.min.js.LICENSE.txt +9 -0
- package/dist/ar.chunk.932d8f48.min.js +60 -0
- package/dist/ar.chunk.ab4fc298.min.js +391 -0
- package/dist/ar.chunk.ab4fc298.min.js.LICENSE.txt +32 -0
- package/dist/ar.chunk.cd8facc4.min.js +13 -0
- package/dist/ar.chunk.cd8facc4.min.js.LICENSE.txt +53 -0
- package/dist/ar.embed.min.js +2 -0
- package/dist/ar.embed.min.js.LICENSE.txt +49 -0
- package/dist/ar.global.min.js +2 -0
- package/dist/ar.global.min.js.LICENSE.txt +49 -0
- package/dist/ar.js +207 -0
- package/dist/index.d.ts +37 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @neurodyn/ar
|
|
2
|
+
|
|
3
|
+
Augmented Reality integration for JavaScript applications.
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
- [Overview](https://developer.vizbl.com/docs/ar)
|
|
8
|
+
- [Installation](https://developer.vizbl.com/docs/ar/installation/javascript)
|
|
9
|
+
- [API Reference](https://developer.vizbl.com/docs/ar/reference/javascript)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see ar.chunk.0c14f05b.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_neurodyn_ar=self.webpackChunk_neurodyn_ar||[]).push([["759"],{2002(t,e,s){s.d(e,{A:()=>i});let i=(0,s(8112).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5422(t,e,s){s.d(e,{jH:()=>n});var i=s(9081);s(8525);var r=i.createContext(void 0);function n(t){let e=i.useContext(r);return t||e||"ltr"}},8228(t,e,s){s.d(e,{m:()=>n});var i=s(1230),r=s(6198),n=new class extends i.Q{#t;#e;#s;constructor(){super(),this.#s=t=>{if(!r.S$&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}}},3985(t,e,s){s.d(e,{PL:()=>r,RQ:()=>o,rB:()=>u});var i=s(6198);function r(t){return{onFetch:(e,s)=>{let r=e.options,u=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],h=e.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,d=async()=>{let s=!1,d=(0,i.ZM)(e.options,e.fetchOptions),f=async(t,r,n)=>{let a;if(s)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let u=(Object.defineProperty(a={client:e.client,queryKey:e.queryKey,pageParam:r,direction:n?"backward":"forward",meta:e.options.meta},"signal",{enumerable:!0,get:()=>(e.signal.aborted?s=!0:e.signal.addEventListener("abort",()=>{s=!0}),e.signal)}),a),o=await d(u),{maxPages:h}=e.options,c=n?i.ZZ:i.y9;return{pages:c(t.pages,o,h),pageParams:c(t.pageParams,r,h)}};if(u&&o.length){let t="backward"===u,e={pages:o,pageParams:h},s=(t?a:n)(r,e);c=await f(e,s,t)}else{let e=t??o.length;do{let t=0===l?h[0]??r.initialPageParam:n(r,c);if(l>0&&null==t)break;c=await f(c,t),l++}while(l<e)}return c};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=d}}}function n(t,{pages:e,pageParams:s}){let i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function a(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function u(t,e){return!!e&&null!=n(t,e)}function o(t,e){return!!e&&!!t.getPreviousPageParam&&null!=a(t,e)}},1367(t,e,s){let i,r,n,a,u,o;s.d(e,{jG:()=>c});var h=s(8877).Zq,c=(i=[],r=0,n=t=>{t()},a=t=>{t()},u=h,{batch:t=>{let e;r++;try{e=t()}finally{let t;--r||(t=i,i=[],t.length&&u(()=>{a(()=>{t.forEach(t=>{n(t)})})}))}return e},batchCalls:t=>(...e)=>{o(()=>{t(...e)})},schedule:o=t=>{r?i.push(t):u(()=>{n(t)})},setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{a=t},setScheduler:t=>{u=t}})},8749(t,e,s){s.d(e,{t:()=>n});var i=s(1230),r=s(6198),n=new class extends i.Q{#i=!0;#e;#s;constructor(){super(),this.#s=t=>{if(!r.S$&&window.addEventListener){let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#i!==t&&(this.#i=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#i}}},1531(t,e,s){s.d(e,{X:()=>u,k:()=>o});var i=s(6198),r=s(1367),n=s(3678),a=s(8782),u=class extends a.k{#r;#n;#a;#u;#o;#h;#c;constructor(t){super(),this.#c=!1,this.#h=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#u=t.client,this.#a=this.#u.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#r=c(this.options),this.state=t.state??this.#r,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(t){if(this.options={...this.#h,...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=c(this.options);void 0!==t.data&&(this.setState(h(t.data,t.dataUpdatedAt)),this.#r=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(t,e){let s=(0,i.pl)(this.state.data,t,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#l({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#o?.promise;return this.#o?.cancel(t),e?e.then(i.lQ).catch(i.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#r)}isActive(){return this.observers.some(t=>!1!==(0,i.Eh)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,i.d2)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,i.j3)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#o&&(this.#c?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,e){let s;if("idle"!==this.state.fetchStatus&&this.#o?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let r=new AbortController,a=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#c=!0,r.signal)})},u=()=>{let t,s=(0,i.ZM)(this.options,e),r=(a(t={client:this.#u,queryKey:this.queryKey,meta:this.meta}),t);return(this.#c=!1,this.options.persister)?this.options.persister(s,r,this):s(r)},o=(a(s={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:u}),s);this.options.behavior?.onFetch(o,this),this.#n=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta}),this.#o=(0,n.II)({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:t=>{t instanceof n.cc&&t.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(t,e)=>{this.#l({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let t=await this.#o.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#a.config.onSuccess?.(t,this),this.#a.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.cc){if(t.silent)return this.#o.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#l({type:"error",error:t}),this.#a.config.onError?.(t,this),this.#a.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#l(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...o(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...h(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?s:void 0,s;case"error":let i=t.error;return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),r.jG.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:t})})}};function o(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function h(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}},828(t,e,s){s.d(e,{E:()=>m});var i=s(6198),r=s(1531),n=s(1367),a=s(1230),u=class extends a.Q{constructor(t={}){super(),this.config=t,this.#d=new Map}#d;build(t,e,s){let n=e.queryKey,a=e.queryHash??(0,i.F$)(n,e),u=this.get(a);return u||(u=new r.X({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(u)),u}add(t){this.#d.has(t.queryHash)||(this.#d.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#d.get(t.queryHash);e&&(t.destroy(),e===t&&this.#d.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){n.jG.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#d.get(t)}getAll(){return[...this.#d.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i.MK)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,i.MK)(t,e)):e}notify(t){n.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){n.jG.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){n.jG.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},o=s(8782),h=s(3678),c=class extends o.k{#u;#f;#p;#o;constructor(t){super(),this.#u=t.client,this.mutationId=t.mutationId,this.#p=t.mutationCache,this.#f=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#f.includes(t)||(this.#f.push(t),this.clearGcTimeout(),this.#p.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#f=this.#f.filter(e=>e!==t),this.scheduleGc(),this.#p.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#f.length||("pending"===this.state.status?this.scheduleGc():this.#p.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#l({type:"continue"})},s={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=(0,h.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#l({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#l({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#p.canRun(this)});let i="pending"===this.state.status,r=!this.#o.canStart();try{if(i)e();else{this.#l({type:"pending",variables:t,isPaused:r}),await this.#p.config.onMutate?.(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#l({type:"pending",context:e,variables:t,isPaused:r})}let n=await this.#o.start();return await this.#p.config.onSuccess?.(n,t,this.state.context,this,s),await this.options.onSuccess?.(n,t,this.state.context,s),await this.#p.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,t,this.state.context,s),this.#l({type:"success",data:n}),n}catch(e){try{throw await this.#p.config.onError?.(e,t,this.state.context,this,s),await this.options.onError?.(e,t,this.state.context,s),await this.#p.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,e,t,this.state.context,s),e}finally{this.#l({type:"error",error:e})}}finally{this.#p.runNext(this)}}#l(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#f.forEach(e=>{e.onMutationUpdate(t)}),this.#p.notify({mutation:this,type:"updated",action:t})})}},l=class extends a.Q{constructor(t={}){super(),this.config=t,this.#y=new Set,this.#m=new Map,this.#v=0}#y;#m;#v;build(t,e,s){let i=new c({client:t,mutationCache:this,mutationId:++this.#v,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#y.add(t);let e=d(t);if("string"==typeof e){let s=this.#m.get(e);s?s.push(t):this.#m.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#y.delete(t)){let e=d(t);if("string"==typeof e){let s=this.#m.get(e);if(s)if(s.length>1){let e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#m.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=d(t);if("string"!=typeof e)return!0;{let s=this.#m.get(e),i=s?.find(t=>"pending"===t.state.status);return!i||i===t}}runNext(t){let e=d(t);if("string"!=typeof e)return Promise.resolve();{let s=this.#m.get(e)?.find(e=>e!==t&&e.state.isPaused);return s?.continue()??Promise.resolve()}}clear(){n.jG.batch(()=>{this.#y.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#y.clear(),this.#m.clear()})}getAll(){return Array.from(this.#y)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i.nJ)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,i.nJ)(t,e))}notify(t){n.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return n.jG.batch(()=>Promise.all(t.map(t=>t.continue().catch(i.lQ))))}};function d(t){return t.options.scope?.id}var f=s(8228),p=s(8749),y=s(3985),m=class{#b;#p;#h;#g;#C;#O;#R;#Q;constructor(t={}){this.#b=t.queryCache||new u,this.#p=t.mutationCache||new l,this.#h=t.defaultOptions||{},this.#g=new Map,this.#C=new Map,this.#O=0}mount(){this.#O++,1===this.#O&&(this.#R=f.m.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#Q=p.t.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#O--,0===this.#O&&(this.#R?.(),this.#R=void 0,this.#Q?.(),this.#Q=void 0)}isFetching(t){return this.#b.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#p.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#b.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),s=this.#b.build(this,e),r=s.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime((0,i.d2)(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#b.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.defaultQueryOptions({queryKey:t}),n=this.#b.get(r.queryHash),a=n?.state.data,u=(0,i.Zw)(e,a);if(void 0!==u)return this.#b.build(this,r).setData(u,{...s,manual:!0})}setQueriesData(t,e,s){return n.jG.batch(()=>this.#b.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#b.get(e.queryHash)?.state}removeQueries(t){let e=this.#b;n.jG.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let s=this.#b;return n.jG.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let s={revert:!0,...e};return Promise.all(n.jG.batch(()=>this.#b.findAll(t).map(t=>t.cancel(s)))).then(i.lQ).catch(i.lQ)}invalidateQueries(t,e={}){return n.jG.batch(()=>(this.#b.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let s={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(n.jG.batch(()=>this.#b.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,s);return s.throwOnError||(e=e.catch(i.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(i.lQ)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let s=this.#b.build(this,e);return s.isStaleByTime((0,i.d2)(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(t){return t.behavior=(0,y.PL)(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(t){return t.behavior=(0,y.PL)(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return p.t.isOnline()?this.#p.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#p}getDefaultOptions(){return this.#h}setDefaultOptions(t){this.#h=t}setQueryDefaults(t,e){this.#g.set((0,i.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#g.values()],s={};return e.forEach(e=>{(0,i.Cp)(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#C.set((0,i.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#C.values()],s={};return e.forEach(e=>{(0,i.Cp)(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#h.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,i.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#h.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#b.clear(),this.#p.clear()}}},217(t,e,s){s.d(e,{$:()=>c});var i=s(8228),r=s(1367),n=s(1531),a=s(1230),u=s(9216),o=s(6198),h=s(8877),c=class extends a.Q{constructor(t,e){super(),this.options=e,this.#u=t,this.#w=null,this.#S=(0,u.T)(),this.bindMethods(),this.setOptions(e)}#u;#q=void 0;#E=void 0;#P=void 0;#T;#I;#S;#w;#F;#D;#j;#x;#M;#A;#k=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#q.addObserver(this),l(this.#q,this.options)?this.#U():this.updateResult(),this.#G())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#q,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#q,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#K(),this.#L(),this.#q.removeObserver(this)}setOptions(t){let e=this.options,s=this.#q;if(this.options=this.#u.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.Eh)(this.options.enabled,this.#q))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#H(),this.#q.setOptions(this.options),e._defaulted&&!(0,o.f8)(this.options,e)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#q,observer:this});let i=this.hasListeners();i&&f(this.#q,s,this.options,e)&&this.#U(),this.updateResult(),i&&(this.#q!==s||(0,o.Eh)(this.options.enabled,this.#q)!==(0,o.Eh)(e.enabled,this.#q)||(0,o.d2)(this.options.staleTime,this.#q)!==(0,o.d2)(e.staleTime,this.#q))&&this.#_();let r=this.#$();i&&(this.#q!==s||(0,o.Eh)(this.options.enabled,this.#q)!==(0,o.Eh)(e.enabled,this.#q)||r!==this.#A)&&this.#z(r)}getOptimisticResult(t){var e,s;let i=this.#u.getQueryCache().build(this.#u,t),r=this.createResult(i,t);return e=this,s=r,(0,o.f8)(e.getCurrentResult(),s)||(this.#P=r,this.#I=this.options,this.#T=this.#q.state),r}getCurrentResult(){return this.#P}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#S.status||this.#S.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){this.#k.add(t)}getCurrentQuery(){return this.#q}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#u.defaultQueryOptions(t),s=this.#u.getQueryCache().build(this.#u,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#U({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#P))}#U(t){this.#H();let e=this.#q.fetch(this.options,t);return t?.throwOnError||(e=e.catch(o.lQ)),e}#_(){this.#K();let t=(0,o.d2)(this.options.staleTime,this.#q);if(o.S$||this.#P.isStale||!(0,o.gn)(t))return;let e=(0,o.j3)(this.#P.dataUpdatedAt,t);this.#x=h.zs.setTimeout(()=>{this.#P.isStale||this.updateResult()},e+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#q):this.options.refetchInterval)??!1}#z(t){this.#L(),this.#A=t,!o.S$&&!1!==(0,o.Eh)(this.options.enabled,this.#q)&&(0,o.gn)(this.#A)&&0!==this.#A&&(this.#M=h.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#U()},this.#A))}#G(){this.#_(),this.#z(this.#$())}#K(){this.#x&&(h.zs.clearTimeout(this.#x),this.#x=void 0)}#L(){this.#M&&(h.zs.clearInterval(this.#M),this.#M=void 0)}createResult(t,e){let s,i=this.#q,r=this.options,a=this.#P,h=this.#T,c=this.#I,d=t!==i?t.state:this.#E,{state:y}=t,m={...y},v=!1;if(e._optimisticResults){let s=this.hasListeners(),a=!s&&l(t,e),u=s&&f(t,i,e,r);(a||u)&&(m={...m,...(0,n.k)(y.data,t.options)}),"isRestoring"===e._optimisticResults&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:C}=m;s=m.data;let O=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===C){let t;a?.isPlaceholderData&&e.placeholderData===c?.placeholderData?(t=a.data,O=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#j?.state.data,this.#j):e.placeholderData,void 0!==t&&(C="success",s=(0,o.pl)(a?.data,t,e),v=!0)}if(e.select&&void 0!==s&&!O)if(a&&s===h?.data&&e.select===this.#F)s=this.#D;else try{this.#F=e.select,s=e.select(s),s=(0,o.pl)(a?.data,s,e),this.#D=s,this.#w=null}catch(t){this.#w=t}this.#w&&(b=this.#w,s=this.#D,g=Date.now(),C="error");let R="fetching"===m.fetchStatus,Q="pending"===C,w="error"===C,S=Q&&R,q=void 0!==s,E={status:C,fetchStatus:m.fetchStatus,isPending:Q,isSuccess:"success"===C,isError:w,isInitialLoading:S,isLoading:S,data:s,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!Q,isLoadingError:w&&!q,isPaused:"paused"===m.fetchStatus,isPlaceholderData:v,isRefetchError:w&&q,isStale:p(t,e),refetch:this.refetch,promise:this.#S,isEnabled:!1!==(0,o.Eh)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===E.status?t.reject(E.error):void 0!==E.data&&t.resolve(E.data)},s=()=>{e(this.#S=E.promise=(0,u.T)())},r=this.#S;switch(r.status){case"pending":t.queryHash===i.queryHash&&e(r);break;case"fulfilled":("error"===E.status||E.data!==r.value)&&s();break;case"rejected":("error"!==E.status||E.error!==r.reason)&&s()}}return E}updateResult(){let t=this.#P,e=this.createResult(this.#q,this.options);if(this.#T=this.#q.state,this.#I=this.options,void 0!==this.#T.data&&(this.#j=this.#q),(0,o.f8)(e,t))return;this.#P=e;let s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#k.size)return!0;let i=new Set(s??this.#k);return this.options.throwOnError&&i.add("error"),Object.keys(this.#P).some(e=>this.#P[e]!==t[e]&&i.has(e))};this.#N({listeners:s()})}#H(){let t=this.#u.getQueryCache().build(this.#u,this.options);if(t===this.#q)return;let e=this.#q;this.#q=t,this.#E=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#G()}#N(t){r.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#P)}),this.#u.getQueryCache().notify({query:this.#q,type:"observerResultsUpdated"})})}};function l(t,e){return!1!==(0,o.Eh)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==e.retryOnMount)||void 0!==t.state.data&&d(t,e,e.refetchOnMount)}function d(t,e,s){if(!1!==(0,o.Eh)(e.enabled,t)&&"static"!==(0,o.d2)(e.staleTime,t)){let i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&p(t,e)}return!1}function f(t,e,s,i){return(t!==e||!1===(0,o.Eh)(i.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&p(t,s)}function p(t,e){return!1!==(0,o.Eh)(e.enabled,t)&&t.isStaleByTime((0,o.d2)(e.staleTime,t))}},8782(t,e,s){s.d(e,{k:()=>n});var i=s(8877),r=s(6198),n=class{#Z;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.gcTime)&&(this.#Z=i.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(r.S$?1/0:3e5))}clearGcTimeout(){this.#Z&&(i.zs.clearTimeout(this.#Z),this.#Z=void 0)}}},3678(t,e,s){s.d(e,{II:()=>c,cc:()=>h,v_:()=>o});var i=s(8228),r=s(8749),n=s(9216),a=s(6198);function u(t){return Math.min(1e3*2**t,3e4)}function o(t){return(t??"online")!=="online"||r.t.isOnline()}var h=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function c(t){let e,s=!1,c=0,l=(0,n.T)(),d=()=>i.m.isFocused()&&("always"===t.networkMode||r.t.isOnline())&&t.canRun(),f=()=>o(t.networkMode)&&t.canRun(),p=t=>{"pending"===l.status&&(e?.(),l.resolve(t))},y=t=>{"pending"===l.status&&(e?.(),l.reject(t))},m=()=>new Promise(s=>{e=t=>{("pending"!==l.status||d())&&s(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===l.status&&t.onContinue?.()}),v=()=>{let e;if("pending"!==l.status)return;let i=0===c?t.initialPromise:void 0;try{e=i??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(p).catch(e=>{if("pending"!==l.status)return;let i=t.retry??3*!a.S$,r=t.retryDelay??u,n="function"==typeof r?r(c,e):r,o=!0===i||"number"==typeof i&&c<i||"function"==typeof i&&i(c,e);s||!o?y(e):(c++,t.onFail?.(c,e),(0,a.yy)(n).then(()=>d()?void 0:m()).then(()=>{s?y(e):v()}))})};return{promise:l,status:()=>l.status,cancel:e=>{if("pending"===l.status){let s=new h(e);y(s),t.onCancel?.(s)}},continue:()=>(e?.(),l),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:f,start:()=>(f()?v():m().then(v),l)}}},1230(t,e,s){s.d(e,{Q:()=>i});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},9216(t,e,s){s.d(e,{T:()=>i});function i(){let t,e,s=new Promise((s,i)=>{t=s,e=i});function i(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{i({status:"fulfilled",value:e}),t(e)},s.reject=t=>{i({status:"rejected",reason:t}),e(t)},s}},8877(t,e,s){s.d(e,{Zq:()=>n,zs:()=>r});var i={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},r=new class{#B=i;#W=!1;setTimeoutProvider(t){this.#B=t}setTimeout(t,e){return this.#B.setTimeout(t,e)}clearTimeout(t){this.#B.clearTimeout(t)}setInterval(t,e){return this.#B.setInterval(t,e)}clearInterval(t){this.#B.clearInterval(t)}};function n(t){setTimeout(t,0)}},6198(t,e,s){s.d(e,{Cp:()=>y,EN:()=>p,Eh:()=>c,F$:()=>f,GU:()=>P,MK:()=>l,S$:()=>r,ZM:()=>E,ZZ:()=>S,Zw:()=>a,d2:()=>h,f8:()=>v,gn:()=>u,hT:()=>q,j3:()=>o,lQ:()=>n,nJ:()=>d,pl:()=>R,rX:()=>Q,y9:()=>w,yy:()=>O});var i=s(8877),r="u"<typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function u(t){return"number"==typeof t&&t>=0&&t!==1/0}function o(t,e){return Math.max(t+(e||0)-Date.now(),0)}function h(t,e){return"function"==typeof t?t(e):t}function c(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:a,stale:u}=t;if(a){if(i){if(e.queryHash!==f(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof u||e.isStale()===u)&&(!r||r===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:s,status:i,predicate:r,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(p(e.options.mutationKey)!==p(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!i||e.state.status===i)&&(!r||!!r(e))}function f(t,e){return(e?.queryKeyHashFn||p)(t)}function p(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(s=>y(t[s],e[s]))}var m=Object.prototype.hasOwnProperty;function v(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!C(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!C(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function C(t){return"[object Object]"===Object.prototype.toString.call(t)}function O(t){return new Promise(e=>{i.zs.setTimeout(e,t)})}function R(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?function t(e,s){if(e===s)return e;let i=b(e)&&b(s);if(!i&&!(g(e)&&g(s)))return s;let r=(i?e:Object.keys(e)).length,n=i?s:Object.keys(s),a=n.length,u=i?Array(a):{},o=0;for(let h=0;h<a;h++){let a=i?h:n[h],c=e[a],l=s[a];if(c===l){u[a]=c,(i?h<r:m.call(e,a))&&o++;continue}if(null===c||null===l||"object"!=typeof c||"object"!=typeof l){u[a]=l;continue}let d=t(c,l);u[a]=d,d===c&&o++}return r===a&&o===r?e:u}(t,e):e}function Q(t){return t}function w(t,e,s=0){let i=[...t,e];return s&&i.length>s?i.slice(1):i}function S(t,e,s=0){let i=[e,...t];return s&&i.length>s?i.slice(0,-1):i}var q=Symbol();function E(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==q?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function P(t,e){return"function"==typeof t?t(...e):!!t}},6514(t,e,s){s.d(e,{Ht:()=>u,jE:()=>a});var i=s(9081),r=s(8525),n=i.createContext(void 0),a=t=>{let e=i.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},u=({client:t,children:e})=>(i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,r.jsx)(n.Provider,{value:t,children:e}))},1582(t,e,s){let i;s.d(e,{t:()=>l});var r=s(9081),n=s(1367),a=s(6198),u=s(6514);s(8525);var o=r.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),h=r.createContext(!1);h.Provider;var c=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function l(t,e,s){let i=r.useContext(h),l=r.useContext(o),d=(0,u.jE)(s),f=d.defaultQueryOptions(t);if(d.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=i?"isRestoring":"optimistic",f.suspense){let t=t=>"static"===t?t:Math.max(t??1e3,1e3),e=f.staleTime;f.staleTime="function"==typeof e?(...s)=>t(e(...s)):t(e),"number"==typeof f.gcTime&&(f.gcTime=Math.max(f.gcTime,1e3))}(f.suspense||f.throwOnError||f.experimental_prefetchInRender)&&!l.isReset()&&(f.retryOnMount=!1),r.useEffect(()=>{l.clearReset()},[l]);let p=!d.getQueryCache().get(f.queryHash),[y]=r.useState(()=>new e(d,f)),m=y.getOptimisticResult(f),v=!i&&!1!==t.subscribed;if(r.useSyncExternalStore(r.useCallback(t=>{let e=v?y.subscribe(n.jG.batchCalls(t)):a.lQ;return y.updateResult(),e},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),r.useEffect(()=>{y.setOptions(f)},[f,y]),f?.suspense&&m.isPending)throw c(f,y,l);if((({result:t,errorResetBoundary:e,throwOnError:s,query:i,suspense:r})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(r&&void 0===t.data||(0,a.GU)(s,[t.error,i])))({result:m,errorResetBoundary:l,throwOnError:f.throwOnError,query:d.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw m.error;if(d.getDefaultOptions().queries?._experimental_afterQuery?.(f,m),f.experimental_prefetchInRender&&!a.S$&&m.isLoading&&m.isFetching&&!i){let t=p?c(f,y,l):d.getQueryCache().get(f.queryHash)?.promise;t?.catch(a.lQ).finally(()=>{y.updateResult()})}return f.notifyOnChangeProps?m:y.trackResult(m)}},9055(t,e,s){s.d(e,{I:()=>n});var i=s(217),r=s(1582);function n(t,e){return(0,r.t)(t,i.$,e)}}}]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_neurodyn_ar=self.webpackChunk_neurodyn_ar||[]).push([["117"],{6286(e,r,t){t.d(r,{A:()=>d});var o=t(3917),a=t.n(o),n=t(6670),i=t.n(n),s=t(4205),l=i()(a());l.i(s.A),l.push([e.id,'@layer vendor,theme,base,components,utilities;@source "../../ui-preset/src/**/*.{js,ts,jsx,tsx}";:root{--v-button-red:#3556f0;--v-button-red-hover:#2c49d8;--v-button-red-pressed:#2540c0;--v-backgrounds-green:#27c650;--v-backgrounds-green-gradient-end:#1cae41;--v-backgrounds-green-gradient:radial-gradient(ellipse 50% 50% at 50% 50%,var(--v-backgrounds-green)0%,var(--v-backgrounds-green-gradient-end)100%)}@layer components{.ar-catalog-card{content-visibility:auto;contain-intrinsic-size:auto 150px}.ar-catalog-media-frame{aspect-ratio:10/7;background:#fff;border-radius:6px;place-items:center;width:100%;display:grid;position:relative;overflow:hidden}.ar-catalog-media-img{object-fit:contain;width:100%;height:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.ar-catalog-media-img--passive{pointer-events:none;-webkit-user-select:none;user-select:none}}',""]);let d=l.toString()},9087(e,r,t){t.d(r,{A:()=>s});var o=t(3917),a=t.n(o),n=t(6670),i=t.n(n)()(a());i.push([e.id,'@font-face{font-family:__tw4_shd_inter_7x4q2;src:url(https://cdn.neurodyn.ai/rsms.me/inter/font-files/InterVariable.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}',""]);let s=i.toString()},4625(e,r,t){t.d(r,{A:()=>s});var o=t(3917),a=t.n(o),n=t(6670),i=t.n(n)()(a());i.push([e.id,'@font-face{font-family:__tw4_shd_inter_7x4q2;src:url(https://cdn.neurodyn.ai/rsms.me/inter/font-files/InterVariable.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}',""]);let s=i.toString()},4205(e,r,t){t.d(r,{A:()=>v});var o=t(3917),a=t.n(o),n=t(6670),i=t.n(n),s=t(4922),l=t(2210),d=t(1139),c=t(9087),u=i()(a());u.i(s.A),u.i(l.A),u.i(d.A),u.i(c.A),u.push([e.id,'@source "../**/*.{js,ts,jsx,tsx}";@custom-variant dark (&:is(.dark*));:root{--v-font-family:"__tw4_shd_inter_7x4q2",sans-serif;font-family:var(--v-font-family);font-feature-settings:"liga" 1,"calt" 1}@apply antialiased;:root{--radius:.625rem;--background:var(--v-backgrounds-layout);--foreground:var(--v-text-dark);--card:var(--v-backgrounds-containers);--card-foreground:var(--v-text-dark);--popover:var(--v-backgrounds-containers);--popover-foreground:var(--v-text-dark);--primary:var(--v-button-red);--primary--hover:var(--v-button-red-hover);--primary--pressed:var(--v-button-red-pressed);--primary--disabled:var(--v-button-red-pressed);--primary-foreground:var(--v-button-white);--secondary:var(--v-backgrounds-base-2);--secondary--hover:var(--v-button-light-hover);--secondary--pressed:var(--v-button-light-pressed);--secondary--disabled:var(--v-button-light-pressed);--secondary-foreground:var(--v-text-sub);--muted:var(--v-backgrounds-base);--muted-foreground:var(--v-text-light);--accent:var(--v-backgrounds-base-2);--accent--hover:var(--v-button-light-hover);--accent--pressed:var(--v-button-light-pressed);--accent--disabled:var(--v-button-light-pressed);--accent-foreground:var(--v-text-dark);--destructive:var(--v-button-red);--destructive--disabled:var(--v-button-red-pressed);--destructive-foreground:var(--v-button-white);--contrast:var(--v-button-dark);--contrast--hover:var(--v-button-dark-hover);--contrast--pressed:var(--v-button-dark-pressed);--contrast--disabled:var(--v-button-light-pressed);--contrast-foreground:var(--v-button-white);--border:var(--v-borders-light);--input:var(--v-borders-light);--ring:var(--v-borders-black);--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1}@supports (color:color(display-p3 0 0 0)){:root{--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163)}}@supports (color:lab(0% 0 0)){:root{--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209)}}.dark{--background:var(--v-backgrounds-white);--foreground:var(--v-text-dark);--card:var(--v-backgrounds-containers);--card-foreground:var(--v-text-dark);--popover:var(--v-backgrounds-containers);--popover-foreground:var(--v-text-dark);--primary:var(--v-button-red);--primary--hover:var(--v-button-red-hover);--primary--pressed:var(--v-button-red-pressed);--primary--disabled:var(--v-button-red-pressed);--primary-foreground:var(--v-text-white);--secondary:var(--v-backgrounds-base-2);--secondary--hover:var(--v-button-light-hover);--secondary--pressed:var(--v-button-light-pressed);--secondary--disabled:var(--v-button-light-pressed);--secondary-foreground:var(--v-text-sub);--muted:var(--v-backgrounds-base);--muted-foreground:var(--v-text-light);--accent:var(--v-backgrounds-base-2);--accent--hover:var(--v-button-light-hover);--accent--pressed:var(--v-button-light-pressed);--accent--disabled:var(--v-button-light-pressed);--accent-foreground:var(--v-text-dark);--destructive:var(--v-button-red);--destructive--disabled:var(--v-button-red-pressed);--destructive-foreground:var(--v-text-white);--contrast:var(--v-button-dark);--contrast--hover:var(--v-button-dark-hover);--contrast--pressed:var(--v-button-dark-pressed);--contrast--disabled:var(--v-button-dark-pressed);--contrast-foreground:var(--v-text-white);--border:var(--v-borders-light);--input:var(--v-borders-light);--ring:var(--v-borders-black);--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#262626}@supports (color:color(display-p3 0 0 0)){.dark{--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 .149382 .149382 .149382)}}@supports (color:lab(0% 0 0)){.dark{--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(15.204% 0 -.00000596046)}}@theme inline{ --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); --color-primary: var(--primary); --color-primary--hover: var(--primary--hover); --color-primary--pressed: var(--primary--pressed); --color-primary--disabled: var(--primary--disabled); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary--disabled: var(--secondary--disabled); --color-secondary--pressed: var(--secondary--pressed); --color-secondary--hover: var(--secondary--hover); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-accent: var(--accent); --color-accent--disabled: var(--accent--disabled); --color-accent-foreground: var(--accent-foreground); --color-destructive: var(--destructive); --color-destructive--disabled: var(--destructive--disabled); --color-destructive-foreground: var(--destructive-foreground); --color-contrast: var(--contrast); --color-contrast--hover: var(--contrast--hover); --color-contrast--pressed: var(--contrast--pressed); --color-contrast--disabled: var(--contrast--disabled); --color-contrast-foreground: var(--contrast-foreground); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); --color-chart-4: var(--chart-4); --color-chart-5: var(--chart-5); --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --color-sidebar: var(--sidebar); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring); --shadow-login: var(--shadow-login); --default-font-family: var(--v-font-family); --color-gray-900: var(--v-gray-900); --color-gray-800: var(--v-gray-800); --color-gray-700: var(--v-gray-700); --color-gray-600: var(--v-gray-600); --color-gray-500: var(--v-gray-500); --color-gray-400: var(--v-gray-400); --color-gray-300: var(--v-gray-300); --color-gray-200: var(--v-gray-200); --color-gray-100: var(--v-gray-100); --color-gray-50: var(--v-gray-50); --text-2xl--line-height: 1.3; --text-5xl--line-height: 1.3; --text-8xl: 5.75rem; --text-8xl--line-height: 1; --text-3xl: 2rem; --text-3xl--line-height: 1.3; --text-lg--line-height: 1.5; --text-base--line-height: 1.5; --text-sm--line-height: 1.5; --text-xs--line-height: 1.6; --tracking-tighter: -.06em; --tracking-tight: -.05em; --tracking-normal: 0em; --tracking-wide: .01em; --tracking-wider: .02em; --tracking-widest: .03em; --shadow-login: 0px 9px 21px 0px #0a08110a,0px 38px 38px 0px #0a08110a,0px 85px 51px 0px #0a081105,0px 152px 61px 0px #0a081103,0px 237px 66px 0px #0a081100; --color-button-white: var(--v-button-white); --color-button-white-hover: var(--v-button-white-hover); --color-button-white-active: var(--v-button-white-active); --color-button-white-pressed: var(--v-button-white-pressed); --color-button-dark: var(--v-button-dark); --color-button-dark-hover: var(--v-button-dark-hover); --color-button-dark-pressed: var(--v-button-dark-pressed); --color-button-light: var(--v-button-light); --color-button-light-hover: var(--v-button-light-hover); --color-button-light-pressed: var(--v-button-light-pressed); --color-button-outline: var(--v-button-outline); --color-button-outline-hover: var(--v-button-outline-hover); --color-button-outline-pressed: var(--v-button-outline-pressed); --color-button-red: var(--v-button-red); --color-button-red-hover: var(--v-button-red-hover); --color-button-red-pressed: var(--v-button-red-pressed); --color-button-red-gradient: var(--v-button-red-gradient); --color-button-red-gradient-hover: var(--v-button-red-gradient-hover); --color-button-red-gradient-pressed: var(--v-button-red-gradient-pressed); --color-text-white: var(--v-text-white); --color-text-dark: var(--v-text-dark); --color-text-sub: var(--v-text-sub); --color-text-base: var(--v-text-base); --color-text-light: var(--v-text-light); --color-text-red: var(--v-text-red); --color-text-green: var(--v-text-green); --color-text-blue: var(--v-text-blue); --color-icons-white: var(--v-icons-white); --color-icons-dark: var(--v-icons-dark); --color-icons-normal: var(--v-icons-normal); --color-icons-light: var(--v-icons-light); --color-icons-red: var(--v-icons-red); --color-icons-green: var(--v-icons-green); --color-icons-blue: var(--v-icons-blue); --color-background-white: var(--v-backgrounds-white); --color-background-layout: var(--v-backgrounds-layout); --color-background-containers: var(--v-backgrounds-containers); --color-background-dark: var(--v-backgrounds-dark); --color-background-base: var(--v-backgrounds-base); --color-background-base-2: var(--v-backgrounds-base-2); --color-background-base-3: var(--v-backgrounds-base-3); --color-background-active-hover: var(--v-backgrounds-active-hover); --color-background-gray-transparent: var(--v-backgrounds-gray-transparent); --color-background-red: var(--v-backgrounds-red); --color-background-red-transparent: var(--v-backgrounds-red-transparent); --color-background-green: var(--v-backgrounds-green); --color-background-green-transparent: var(--v-backgrounds-green-transparent); --color-background-blue: var(--v-backgrounds-blue); --color-background-blue-transparent: var(--v-backgrounds-blue-transparent); --color-border-white: var(--v-borders-white); --color-border-black: var(--v-borders-black); --color-border-light: var(--v-borders-light); --color-border-medium: var(--v-borders-medium); --color-border-dark: var(--v-borders-dark); --color-border-dotted-light: var(--v-borders-dotted-light); --color-border-dotted-medium: var(--v-borders-dotted-medium); --color-border-red: var(--v-borders-red); --color-art-10: var(--v-art-10); --color-art-20: var(--v-art-20); --color-art-30: var(--v-art-30); --color-art-60: var(--v-art-60); --color-art-70: var(--v-art-70); --color-art-80: var(--v-art-80); --color-art-90: var(--v-art-90); --color-art-white: var(--v-art-white); --color-flare-1: var(--v-flare-1); --color-flare-2: var(--v-flare-2); --color-flare-3: var(--v-flare-3); --color-constant-white: var(--v-constant-white); --color-constant-black: var(--v-constant-black); --color-gradient-mobile-start: var(--v-gradients-mobile-start); --color-gradient-mobile-end: var(--v-gradients-mobile-end); --color-gray-900: var(--v-art-90); --color-gray-800: var(--v-art-80); --color-gray-700: var(--v-art-70); --color-gray-600: var(--v-art-60); --color-gray-300: var(--v-art-30); --color-gray-200: var(--v-art-20); --color-gray-100: var(--v-art-10); --color-gray-50: var(--v-art-10);}@utility typo-header-1{@apply text-8xl font-medium leading-none tracking-tighter;}@utility typo-header-2{@apply text-5xl font-medium leading-[1.3]tracking-tighter;}@utility typo-header-3{@apply text-3xl font-medium leading-[1.3]tracking-tight;}@utility typo-header-4{@apply text-2xl font-medium leading-[1.3]tracking-[-.04em];}@utility typo-base-18{@apply text-lg font-medium leading-[1.5]tracking-[-.02em];}@utility typo-base-16{@apply text-base font-medium leading-[1.5]tracking-[-.02em];}@utility typo-base-14{@apply text-sm font-medium leading-[1.5]tracking-normal;}@utility typo-base-12{@apply text-xs font-medium leading-[1.6]tracking-wider;}@utility typo-editor-label{@apply text-xs font-normal leading-[1.6]tracking-wider;}@utility typo-editor-header{@apply text-xs font-semibold leading-[1.6]tracking-wider;}@utility typo-button-big{@apply text-base font-semibold leading-none tracking-wide;}@utility typo-button-normal{@apply text-sm font-semibold leading-none tracking-wide;}@utility typo-button-small{@apply text-xs font-semibold leading-none tracking-widest;}@layer base{@apply border-border outline-ring/50;@apply bg-background text-foreground;}@keyframes fill-progress{0%{width:0%;left:0%}50%{width:100%;left:0%}to{width:0%;left:100%}}@keyframes spinner-logo-loading-shell{0%,71.4286%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spinner-logo-loading-orb{0%,71.4286%,to{cx:46.27px;cy:45.8px;r:11.18px;stroke-width:var(--spinner-logo-orb-stroke-width)}17.8571%{cx:67.27px;cy:18.27px;r:14.72px;stroke-width:var(--spinner-logo-orb-expanded-stroke-width)}35.7143%{cx:61.27px;cy:71.27px;r:11.18px;stroke-width:var(--spinner-logo-orb-stroke-width)}53.5714%{cx:20.87px;cy:29.27px;r:17.05px;stroke-width:var(--spinner-logo-orb-large-stroke-width)}}.spinner-logo{--spinner-logo-loading-duration:1.75s;--spinner-logo-transition:.32s cubic-bezier(.22,1,.36,1);--spinner-logo-stroke-width:5px;--spinner-logo-orb-stroke-width:5px;--spinner-logo-orb-expanded-stroke-width:6.58px;--spinner-logo-orb-large-stroke-width:7.63px;--spinner-logo-result-ring-scale:.82;--spinner-logo-result-glyph-scale:.64}.spinner-logo[data-size=sm]{--spinner-logo-stroke-width:4px;--spinner-logo-orb-stroke-width:4px;--spinner-logo-orb-expanded-stroke-width:5.26px;--spinner-logo-orb-large-stroke-width:6.1px}.spinner-logo__intro-shell,.spinner-logo__intro-orb,.spinner-logo__result-ring,.spinner-logo__result-glyph{transform-box:fill-box;transform-origin:50%}.spinner-logo__outline{fill:none;stroke-width:var(--spinner-logo-stroke-width);stroke-linecap:round;stroke-linejoin:round}.spinner-logo__outline--intro{stroke:var(--v-borders-medium)}.spinner-logo__intro-shell,.spinner-logo__intro-orb,.spinner-logo__result-ring,.spinner-logo__result-glyph{will-change:opacity,transform}.spinner-logo__intro-shell{opacity:1;animation-duration:var(--spinner-logo-loading-duration);transition:opacity .18s;animation-name:spinner-logo-loading-shell;animation-timing-function:cubic-bezier(.65,0,.35,1);animation-iteration-count:infinite;animation-play-state:paused;animation-fill-mode:both;transform:rotate(0)}.spinner-logo__intro-orb{opacity:1;stroke-width:var(--spinner-logo-stroke-width);animation-duration:var(--spinner-logo-loading-duration);transition:opacity .18s;animation-name:spinner-logo-loading-orb;animation-timing-function:cubic-bezier(.65,0,.35,1);animation-iteration-count:infinite;animation-play-state:paused;animation-fill-mode:both}.spinner-logo__result-ring{opacity:0;stroke-width:var(--spinner-logo-stroke-width);transform:scale(var(--spinner-logo-result-ring-scale));transition:opacity .22s ease,transform var(--spinner-logo-transition)}.spinner-logo[data-state=success] .spinner-logo__intro-shell,.spinner-logo[data-state=success] .spinner-logo__intro-orb,.spinner-logo[data-state=error] .spinner-logo__intro-shell,.spinner-logo[data-state=error] .spinner-logo__intro-orb{opacity:0;animation-play-state:paused}.spinner-logo[data-state=loading] .spinner-logo__intro-shell,.spinner-logo[data-state=loading] .spinner-logo__intro-orb{animation-play-state:running}.spinner-logo[data-state=success] .spinner-logo__result-ring,.spinner-logo[data-state=error] .spinner-logo__result-ring{opacity:1;transform:scale(1)}.spinner-logo[data-state=success] .spinner-logo__result-glyph--success,.spinner-logo[data-state=error] .spinner-logo__result-glyph--error{opacity:1;transition-delay:.12s;transform:scale(1)}.spinner-logo__result-glyph{opacity:0;transform:scale(var(--spinner-logo-result-glyph-scale));transition:opacity .22s ease,transform var(--spinner-logo-transition)}@media (prefers-reduced-motion:reduce){.spinner-logo__intro-shell,.spinner-logo__intro-orb,.spinner-logo__result-ring,.spinner-logo__result-glyph{transition:none!important;animation:none!important}.spinner-logo[data-state=loading] .spinner-logo__intro-shell,.spinner-logo[data-state=loading] .spinner-logo__intro-orb,.spinner-logo[data-state=success] .spinner-logo__result-ring,.spinner-logo[data-state=success] .spinner-logo__result-glyph--success,.spinner-logo[data-state=error] .spinner-logo__result-ring,.spinner-logo[data-state=error] .spinner-logo__result-glyph--error{opacity:1}.spinner-logo[data-state=success] .spinner-logo__result-ring,.spinner-logo[data-state=error] .spinner-logo__result-ring,.spinner-logo[data-state=success] .spinner-logo__result-glyph--success,.spinner-logo[data-state=error] .spinner-logo__result-glyph--error{transform:scale(1)}}@apply relative overflow-hidden pointer-events-none select-none;.button-loading:after{content:""}@apply absolute inset-y-0 left-0 bg-[var(--loader-color)]opacity-80;.button-loading:after{z-index:20;animation:2s ease-in-out infinite fill-progress}',""]);let v=u.toString()},1139(e,r,t){t.d(r,{A:()=>s});var o=t(3917),a=t.n(o),n=t(6670),i=t.n(n)()(a());i.push([e.id,":root{--v-button-white:#fff;--v-button-white-hover:#fff;--v-button-white-active:#fff;--v-button-white-pressed:#fbfbff;--v-button-dark:#212124;--v-button-dark-hover:#454549;--v-button-dark-pressed:#212124;--v-button-light:#e9e9f0;--v-button-light-hover:#d9d9dd;--v-button-light-pressed:#c2c2c9;--v-button-outline:#45454933;--v-button-outline-hover:#45454980;--v-button-outline-pressed:#1f1f250d;--v-button-red:#e14514;--v-button-red-hover:#fa5114;--v-button-red-pressed:#be2503;--v-button-red-gradient:#e3421a;--v-button-red-gradient-hover:#ff6119;--v-button-red-gradient-pressed:#c52d0b;--v-text-white:#fff;--v-text-dark:#212124;--v-text-sub:#45454a;--v-text-base:#64646c;--v-text-light:#8c8c95;--v-text-red:#e2491a;--v-text-green:#6d9621;--v-text-blue:#3f73ed;--v-icons-white:#fff;--v-icons-dark:#212124;--v-icons-normal:#70707a;--v-icons-light:#c4c4ca;--v-icons-red:#e2491a;--v-icons-green:#6d9621;--v-icons-blue:#3f73ed;--v-backgrounds-white:#fff;--v-backgrounds-layout:#f5f5f7;--v-backgrounds-containers:#fff;--v-backgrounds-dark:#212124;--v-backgrounds-base:#f5f5f7;--v-backgrounds-base-2:#e9e9f0;--v-backgrounds-base-3:#dadae0;--v-backgrounds-gray-transparent:#8c8c9533;--v-backgrounds-red:#e2491a;--v-backgrounds-red-transparent:#fb783b33;--v-backgrounds-green:#85c13d;--v-backgrounds-green-transparent:#85d52433;--v-backgrounds-blue:#3f73ed;--v-backgrounds-blue-transparent:#3291fe33;--v-borders-white:#fff;--v-borders-black:#212124;--v-borders-light:#dadae0;--v-borders-medium:#bebec8;--v-borders-dark:#45454a;--v-borders-dotted-light:#c4c4ca;--v-borders-dotted-medium:#8c8c95;--v-borders-red:#e2491a;--Borders-Light:var(--v-borders-light);--Corners-R-12:12px;--v-art-10:#f5f5f7;--v-art-20:#ededef;--v-art-30:#e4e4eb;--v-art-60:#8c8c95;--v-art-70:#64646c;--v-art-80:#45454a;--v-art-90:#212124;--v-art-white:#fff;--v-flare-1:#bd81711a;--v-flare-2:#3f5f931a;--v-flare-3:#92a3d633;--v-constant-white:#fff;--v-constant-black:#212124;--v-gradients-mobile-start:#f5f5f7;--v-gradients-mobile-end:#f5f5f700}.dark{--v-button-white:#2b2b32;--v-button-white-hover:#19191e;--v-button-white-active:#353541;--v-button-white-pressed:#232327;--v-button-dark:#dbdbde;--v-button-dark-hover:#fff;--v-button-dark-pressed:#a8a8af;--v-button-light:#38383f;--v-button-light-hover:#46464b;--v-button-light-pressed:#18181c;--v-button-outline:#7979924d;--v-button-outline-hover:#9292aa99;--v-button-outline-pressed:#1f1f2533;--v-button-red:#d9481b;--v-button-red-hover:#f85a2a;--v-button-red-pressed:#a63411;--v-text-white:#232327;--v-text-dark:#fff;--v-text-sub:#dcdce3;--v-text-base:#bfbfc8;--v-text-light:#696973;--v-text-red:#e2461c;--v-text-green:#91bb43;--v-text-blue:#6b8dfe;--v-icons-white:#212124;--v-icons-dark:#eee;--v-icons-normal:#8c8c9e;--v-icons-light:#5b5b65;--v-backgrounds-white:#111;--v-backgrounds-layout:#1f1f25;--v-backgrounds-containers:#33333c;--v-backgrounds-dark:#eee;--v-backgrounds-base:#222226;--v-backgrounds-base-2:#2b2b32;--v-backgrounds-base-3:#363641;--v-borders-white:#232327;--v-borders-black:#fff;--v-borders-light:#2b2b33;--v-borders-medium:#363641;--v-borders-dark:#484857;--v-borders-dotted-light:#575763;--v-borders-dotted-medium:#8a8a99;--v-art-10:#3e3e49;--v-art-20:#4f4f5c;--v-art-30:#676773;--v-art-90:#fff;--v-art-white:#232327;--v-flare-1:#6464901a;--v-flare-2:#6464901a;--v-flare-3:#6464901a;--v-gradients-mobile-start:#1f1f25;--v-gradients-mobile-end:#1f1f2500}",""]);let s=i.toString()},3761(e,r,t){t.d(r,{f:()=>n});var o=t(2585),a=t(1828);class n{async isSupported(){try{return await this.resolve(),!0}catch{return!1}}async startSession(e){return(await this.resolve()).startSession(e)}resolve(){return this.resolution||(this.resolution=(0,a.U4)(this.options).catch(e=>{throw this.resolution=null,e})),this.resolution}constructor(e={}){(0,o._)(this,"options",void 0),(0,o._)(this,"resolution",void 0),this.options=e,this.resolution=null}}},4957(e,r,t){t.d(r,{hj:()=>u,aV:()=>c});var o=t(5807);let a=Object.freeze({x:0,y:1,z:0});function n(e){let r=Math.hypot(e.x,e.y,e.z)||1;return{x:e.x/r,y:e.y/r,z:e.z/r}}function i(e,r){return e.x*r.x+e.y*r.y+e.z*r.z}function s(e,r){let t=2*(r.y*e.z-r.z*e.y),o=2*(r.z*e.x-r.x*e.z),a=2*(r.x*e.y-r.y*e.x);return{x:e.x+r.w*t+r.y*a-r.z*o,y:e.y+r.w*o+r.z*t-r.x*a,z:e.z+r.w*a+r.x*o-r.y*t}}function l(e){return n(s({x:0,y:0,z:-1},e))}function d(e){let r=Math.hypot(e.x,e.y,e.z,e.w)||1;return{w:e.w/r,x:e.x/r,y:e.y/r,z:e.z/r}}let c=.35;function u(e){var r,t;let u=e.mechanic??"all",v=e.minWallHeight??c,g=e.groundY,h=null;for(let r of e.hits)if(null==r?void 0:r.position){h=function(e){let r=e.rotation??{w:1,x:0,y:0,z:0},t=n(s(a,r));return{kind:(0,o.Q3)(t),nativeHit:e,normal:t,pose:{orientation:r,position:{...e.position}}}}(r);break}if(h){let o=h.pose.position.y-g;if("floor"===h.kind&&o<=v)g=Math.min(g,h.pose.position.y);else{let s,c;"wall"!==h.kind&&("all"===u||"wall"===u)&&o>v&&!(l(e.camera.orientation).y<-.2)&&(r=h,c=n(.001>Math.hypot((s={x:(t=e.camera.position).x-r.pose.position.x,y:0,z:t.z-r.pose.position.z}).x,s.z)?{x:0,y:0,z:1}:s),h={kind:"wall",nativeHit:r.nativeHit,normal:c,pose:{orientation:function(e,r){let t=i(e,r)+1;if(t<1e-6)return Math.abs(e.x)>Math.abs(e.z)?d({w:0,x:-e.y,y:e.x,z:0}):d({w:0,x:0,y:-e.z,z:e.y});let o={x:e.y*r.z-e.z*r.y,y:e.z*r.x-e.x*r.z,z:e.x*r.y-e.y*r.x};return d({w:t,x:o.x,y:o.y,z:o.z})}(a,c),position:{...r.pose.position}}})}return{groundY:g,hit:h}}if("ceiling"===u||"wall"===u)return{groundY:g,hit:null};let p=function(e,r,t,o){let a=i(r,o);if(1e-6>Math.abs(a))return null;let n=i({x:t.x-e.x,y:t.y-e.y,z:t.z-e.z},o)/a;return n<0?null:{x:e.x+r.x*n,y:e.y+r.y*n,z:e.z+r.z*n}}(e.camera.position,l(e.camera.orientation),{x:0,y:g,z:0},a);return p?{groundY:g,hit:{kind:"floor",normal:{...a},pose:{orientation:{w:1,x:0,y:0,z:0},position:p}}}:{groundY:g,hit:null}}},342(e,r,t){t.d(r,{Uy:()=>s,VU:()=>v,yL:()=>c});var o=t(2585),a=t(173),n=t(4898),i=t(4957);let s="https://8wall.vizbl.com/external/xr/xr.js",l=["FEATURE_POINT","ESTIMATED_SURFACE","DETECTED_SURFACE"],d=null;function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;if("u"<typeof window)return Promise.reject(Error("The 8th Wall engine needs a browser."));let t=window;return t.XR8?Promise.resolve(t.XR8):d||(d=new Promise((o,a)=>{let n=e=>{d=null,a(Error(e))},i=setTimeout(()=>n("The 8th Wall engine timed out while loading."),r);window.addEventListener("xrloaded",()=>{clearTimeout(i),t.XR8?o(t.XR8):n("The 8th Wall engine loaded without registering itself.")},{once:!0});let s=document.createElement("script");s.src=e,s.async=!0,s.crossOrigin="anonymous",s.dataset.preloadChunks="slam",s.onerror=()=>{clearTimeout(i),n("The 8th Wall engine failed to load.")},document.head.appendChild(s)}))}class u{setMechanic(e){this.mechanic=e}get renderBridge(){return this.bridge}async attachRenderer(e){if(this.hostRenderer=e,"function"==typeof e.render){var r=this;this.hostRender=e.render.bind(e),e.render=function(){for(var e,t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];r.stopped&&(null==(e=r.hostRender)||e.call(r,...o))}}}engage(){if(this.engaged)return!0;let e=this.nativeSession.Threejs.xrScene();return!!(null==e?void 0:e.camera)&&!!e.scene&&(this.threeScene=e,e.camera.position.set(0,1.6,0),this.nativeSession.XrController.updateCameraProjectionMatrix({cam:{farClipPlane:100,nearClipPlane:.01},facing:e.camera.quaternion,origin:e.camera.position}),this.bridge={camera:e.camera,canvas:this.canvas,onFrame:e=>(this.frameListeners.add(e),()=>this.frameListeners.delete(e)),renderer:e.renderer,sceneRoot:e.scene},this.engaged=!0,!0)}handleUpdate(e){if(!this.engage()||!this.threeScene)return;let r=this.threeScene.camera;r.updateMatrixWorld(!0),this.tracking="LIMITED"!==e;let t=[];try{t=this.nativeSession.XrController.hitTest(.5,.5,l)??[]}catch{t=[]}let o=(0,i.hj)({camera:{orientation:{w:r.quaternion.w,x:r.quaternion.x,y:r.quaternion.y,z:r.quaternion.z},position:{x:r.position.x,y:r.position.y,z:r.position.z}},groundY:this.groundY,hits:t,mechanic:this.mechanic});this.groundY=o.groundY,this.centerHit=o.hit;let a="u"<typeof performance?0:performance.now(),n=this.lastFrameTime?(a-this.lastFrameTime)/1e3:0;this.lastFrameTime=a,this.frameListeners.forEach(e=>{try{e({delta:n,time:a,tracking:this.tracking})}catch{}})}getCenterHit(e){return this.centerHit}isTracking(e){return this.engaged&&this.tracking}async createAnchor(e){var r;let t;return{delete:()=>void 0,getPose:()=>t,pose:t={orientation:{...(r=e.pose).orientation},position:{...r.position}}}}captureGlobalThree(e,r){this.hadGlobalThree=e,this.previousGlobalThree=r}async end(){if(this.stopped)return;this.stopped=!0,this.engaged=!1,this.bridge=null,this.threeScene=null,this.centerHit=null,this.frameListeners.clear();try{this.nativeSession.stop(),this.nativeSession.clearCameraPipelineModules()}catch{}window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),this.hostRenderer&&this.hostRender&&(this.hostRenderer.render=this.hostRender,this.hostRender=null),this.canvas.remove();let e=window;this.hadGlobalThree?e.THREE=this.previousGlobalThree:delete e.THREE}constructor(e,r,t,a){(0,o._)(this,"nativeSession",void 0),(0,o._)(this,"canvas",void 0),(0,o._)(this,"mechanic",void 0),(0,o._)(this,"onResize",void 0),(0,o._)(this,"centerHit",void 0),(0,o._)(this,"engaged",void 0),(0,o._)(this,"frameListeners",void 0),(0,o._)(this,"groundY",void 0),(0,o._)(this,"hadGlobalThree",void 0),(0,o._)(this,"hostRender",void 0),(0,o._)(this,"hostRenderer",void 0),(0,o._)(this,"lastFrameTime",void 0),(0,o._)(this,"previousGlobalThree",void 0),(0,o._)(this,"stopped",void 0),(0,o._)(this,"threeScene",void 0),(0,o._)(this,"tracking",void 0),(0,o._)(this,"bridge",void 0),this.nativeSession=e,this.canvas=r,this.mechanic=t,this.onResize=a,this.centerHit=null,this.engaged=!1,this.frameListeners=new Set,this.groundY=0,this.hadGlobalThree=!1,this.hostRender=null,this.hostRenderer=null,this.lastFrameTime=0,this.stopped=!1,this.threeScene=null,this.tracking=!1,this.bridge=null}}class v{async isSupported(){var e,r;return!("u"<typeof window||"u"<typeof WebAssembly)&&!!window.isSecureContext&&"desktop"!==(0,n.U_)()&&!!(null==(r=navigator)||null==(e=r.mediaDevices)?void 0:e.getUserMedia)}async startSession(){var e,r,t,o;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=window,l=this.options.loadEngine??c,d=await l(this.options.engineUrl??i.XR8_ENGINE_URL??s);if(await (null==(e=d.loadChunk)?void 0:e.call(d,"slam").catch(()=>void 0)),!(null==(r=d.Threejs)?void 0:r.pipelineModule))throw Error("The 8th Wall build is missing its three.js module.");let v="THREE"in i,g=i.THREE;i.THREE=a;let h=n.overlayRoot instanceof HTMLElement?n.overlayRoot:null,p=document.createElement("canvas");p.dataset.testid="ar-camera-feed",p.style.cssText=h?"position:absolute;inset:0;width:100%;height:100%;z-index:0;background:#000;touch-action:none;display:block;":"position:fixed;inset:0;width:100vw;height:100vh;z-index:2147482000;background:#000;touch-action:none;display:block;",(h??document.body).appendChild(p);let b=()=>{p.width=(null==h?void 0:h.clientWidth)||window.innerWidth,p.height=(null==h?void 0:h.clientHeight)||window.innerHeight};b();let f=()=>window.setTimeout(b,60);window.addEventListener("resize",f),window.addEventListener("orientationchange",f);let y=new u(d,p,n.mechanic??"all",f);y.captureGlobalThree(v,g);try{d.XrController.configure({disableWorldTracking:!1,scale:"responsive"});let e=[d.GlTextureRenderer.pipelineModule(),d.Threejs.pipelineModule(),d.XrController.pipelineModule()];(null==(t=d.CanvasScreenshot)?void 0:t.pipelineModule)&&e.push(d.CanvasScreenshot.pipelineModule()),e.push({name:"vizbl-react-ar",onAttach:()=>void y.engage(),onStart:()=>void y.engage(),onUpdate:e=>{let{processCpuResult:r}=e;(null==r?void 0:r.reality)&&y.handleUpdate(r.reality.trackingStatus)}}),d.clearCameraPipelineModules(),d.addCameraPipelineModules(e),d.run({allowedDevices:null==(o=d.XrConfig)?void 0:o.device().ANY,canvas:p})}catch(e){throw await y.end(),e}return y}constructor(e={}){(0,o._)(this,"options",void 0),this.options=e}}},5807(e,r,t){function o(e){return(null==e?void 0:e.kind)==="wall"&&.25>=Math.abs(e.normal.y)}function a(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.75;return e.y>=r?"floor":e.y<=-r?"ceiling":"wall"}t.d(r,{Q3:()=>a,aq:()=>o})},1828(e,r,t){t.d(r,{AY:()=>n,HE:()=>s,Sf:()=>d,U4:()=>c,rZ:()=>l,yR:()=>i});var o=t(342),a=t(7734);let n=["webxr","8thwall"];function i(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(null==(e=navigator)?void 0:e.userAgent)??"";return!(!/Android/i.test(r)||/SamsungBrowser|OPR\/|Opera|Firefox|FxiOS|UCBrowser|MiuiBrowser|YaBrowser|DuckDuckGo/i.test(r))&&/EdgA|Chrome\//i.test(r)}function s(e){return i(e)?"webxr":"8thwall"}function l(){return{"8thwall":new o.VU,webxr:new a.c}}async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(),[r,t]=await Promise.all([e.webxr.isSupported().catch(()=>!1),e["8thwall"].isSupported().catch(()=>!1)]);return{"8thwall":t,webxr:r}}async function c(){let{backend:e,registry:r=l(),userAgent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e??s(t);for(let t of e?[e]:[o,...n.filter(e=>e!==o)]){let e=r[t];if(await e.isSupported().catch(()=>!1))return e}if("u">typeof window&&!window.isSecureContext)throw Error("AR needs a secure connection. Open this page over HTTPS or localhost.");throw Error("AR is not available on this device.")}},7734(e,r,t){t.d(r,{Y:()=>i,c:()=>v});var o=t(2585),a=t(8413),n=t(5807);function i(e){return e}function s(e){return{x:e.x,y:e.y,z:e.z}}function l(e){return{w:e.w,x:e.x,y:e.y,z:e.z}}let d=!1;function c(e,r,t){if(!e.getPose)return null;try{return e.getPose(r(),t)??null}catch(e){return(0,a.Q0)()&&!d&&(d=!0,console.warn("[react-ar] a WebXR space stopped answering; treating it as lost tracking.",e)),null}}class u{setMechanic(e){e!==this.mechanic&&(this.mechanic=e,this.cachedFrame=null)}async attachRenderer(e){e.xr.enabled=!0,e.xr.setReferenceSpaceType("local-floor"),await e.xr.setSession(this.nativeSession)}getCenterHit(e){return this.cachedFrame===e||(this.cachedFrame=e,this.cachedHit=this.readCenterHit(e)),this.cachedHit}readCenterHit(e){let r=null;for(let t of this.readHitTestResults(e)){let e=function(e,r){var t;let o,a=e.getPose(r);if(!a)return null;let{matrix:i,orientation:d,position:c}=a.transform,u=(o=Math.hypot((t={x:i[4]??0,y:i[5]??1,z:i[6]??0}).x,t.y,t.z)||1,{x:t.x/o,y:t.y/o,z:t.z/o}),v={kind:(0,n.Q3)(u),nativeHit:e,normal:u,pose:{orientation:l(d),position:s(c)}};return"wall"!==v.kind||(0,n.aq)(v)?v:null}(t,this.floorSpace);if(e){if(function(e,r){switch(r){case"wall":return(0,n.aq)(e);case"ceiling":return"ceiling"===e.kind;case"floor":return"floor"===e.kind;case"all":return!0}}(e,this.mechanic))return e;r??(r=e)}}return r}readHitTestResults(e){try{return e.getHitTestResults(this.hitTestSource)}catch{return[]}}isTracking(e){return null!==c(e,()=>this.viewerSpace,this.floorSpace)}async createAnchor(e){var r;let t=e.nativeHit;if(!(null==t?void 0:t.createAnchor))throw Error("WebXR anchors are unavailable.");let o=await t.createAnchor();return{delete:()=>{try{null==o||o.delete()}catch{}},getPose:e=>{var r;let t=c(e,()=>o.anchorSpace,this.floorSpace);return t?{orientation:l((r=t.transform).orientation),position:s(r.position)}:null},nativeAnchor:o,pose:{orientation:l((r=e.pose).orientation),position:s(r.position)}}}async end(){this.cachedFrame=null,this.cachedHit=null,this.hitTestSource.cancel(),await this.nativeSession.end()}constructor(e,r,t,a){(0,o._)(this,"nativeSession",void 0),(0,o._)(this,"floorSpace",void 0),(0,o._)(this,"hitTestSource",void 0),(0,o._)(this,"viewerSpace",void 0),(0,o._)(this,"cachedFrame",void 0),(0,o._)(this,"cachedHit",void 0),(0,o._)(this,"mechanic",void 0),this.nativeSession=e,this.floorSpace=r,this.hitTestSource=t,this.viewerSpace=a,this.cachedFrame=null,this.cachedHit=null,this.mechanic="all"}}class v{async isSupported(){var e;return(null==(e=this.xrSystem)?void 0:e.isSessionSupported("immersive-ar"))??!1}async startSession(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.xrSystem)throw Error("WebXR immersive AR is not supported.");let r={optionalFeatures:["dom-overlay","plane-detection"],requiredFeatures:["anchors","hit-test","local-floor"]};e.overlayRoot&&(r.domOverlay={root:e.overlayRoot});let t=await this.xrSystem.requestSession("immersive-ar",r),[o,a]=await Promise.all([t.requestReferenceSpace("viewer"),t.requestReferenceSpace("local-floor")]),n=await t.requestHitTestSource({space:o});if(!n)throw await t.end(),Error("WebXR hit testing is unavailable.");return new u(t,a,n,o)}constructor(e=function(){if("u">typeof navigator)return navigator.xr}()){(0,o._)(this,"xrSystem",void 0),this.xrSystem=e}}},9412(e,r,t){let o,a;t.r(r),t.d(r,{preferredArBackend:()=>c.HE,EIGHTH_WALL_ENGINE_URL:()=>l.Uy,getIosMajorVersion:()=>T.Tw,detectArPlatform:()=>T.U_,openAppClip:()=>z._b,emitArAnalyticsEvent:()=>A.lA,WebXrSurfaceTracker:()=>u.c,createArTracker:()=>c.U4,AutoSurfaceTracker:()=>i.f,classifySurfaceByNormal:()=>d.Q3,createArTrackerRegistry:()=>c.rZ,isAndroidChromeOrEdge:()=>c.yR,performArAppClipHandoff:()=>z.wd,resolveAppClipRegion:()=>z.wP,resolveArPlatformRoute:()=>T.wz,sendAppClipWidgetEvent:()=>z.kf,supportsArAppClip:()=>T.nc,ArDialog:()=>P,detectSupportedArBackends:()=>c.Sf,AR_TRACKING_BACKENDS:()=>c.AY,EighthWallSurfaceTracker:()=>l.VU,MIN_WALL_HEIGHT:()=>s.aV,buildAppClipUrl:()=>z.Ji,loadEighthWallEngine:()=>l.yL,resolveEighthWallReticleHit:()=>s.hj});var n,i=t(3761),s=t(4957),l=t(342),d=t(5807),c=t(1828),u=t(7734),v=t(8525),g=t(6486),h=t(9081);let p=(0,h.createContext)({theme:"system",setTheme:()=>null});function b(e){let{children:r,defaultTheme:t="system",storageKey:o="v-theme",root:a=window.document.documentElement,enableStorage:n=!1,...i}=e,[s,l]=(0,h.useState)(()=>n&&localStorage.getItem(o)||t);return(0,h.useEffect)(()=>{if(a.classList.remove("light","dark"),"system"===s){let e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(e);return}a.classList.add(s)},[s,a]),(0,v.jsx)(p,{...i,value:{theme:s,setTheme:e=>{n&&localStorage.setItem(o,e),l(e)}},children:r})}var f=t(4625),y=t(8092),m=t(243),w=t(3563),x=t(4956),k=t(1960),_=t(4537);let S=k.Ay.createInstance();S.use(_.A).use(m.r9).init({debug:!1,detection:{caches:[]},fallbackLng:"en",resources:{en:{translation:{title:"Augmented reality",comingSoon:"AR preview is coming soon.",close:"Close",loadingModel:"Loading model… {{progress}}%",android:{description:"Place the resource in your room.",title:"Live AR"},all:{anchorError:"Could not anchor the object. Move your phone and try again.",done:"Done",gestures:"Drag the object along its surface. Drag outside to rotate.",preview:"Aim at any surface and confirm the position.",relocalizing:"Point your phone at the room again.",searching:"Move your phone slowly to find a floor, wall, or ceiling.",select:"Tap the object to adjust it.",start:"Start AR",starting:"Starting…"},catalog:{selectVariant:"Select variant",all:"All",clear:"Clear",description:"Choose a product to place it in your room.",empty:"No products are available in this catalog.",loadingMore:"Loading more products…",noResults:"No results for “{{search}}”",noResultsHint:"Try a different search or browse all categories",open:"Open product catalog",placementFailed:"Could not load the selected material. Try again.",placing:"Placing…",productDetails:"Product details",searchPlaceholder:"Search",showAllItems:"Show all items",title:"Product catalog",tryInRoom:"Try it in your room",unnamedProduct:"Unnamed product",unnamedOwner:"Product catalog",viewOnSite:"View on site"},floor:{anchorError:"Could not anchor the object. Move your phone and try again.",deleteObject:"Delete object",done:"Done",gestures:"Drag the object to move it. Drag outside to rotate.",preview:"Move your phone to choose a position.",relocalizing:"Point your phone at the room again.",searching:"Move your phone slowly to find the floor.",select:"Tap the object to adjust it.",start:"Start AR",starting:"Starting…"},ceiling:{anchorError:"Could not anchor the object. Move your phone and try again.",calibrating:"Drag anywhere to move",done:"Done",gestures:"Use the floor control or object to move. Drag outside to rotate.",measuredHeight:"Ceiling {{height}} m",measureHeight:"Swipe up to measure",preview:"The saved ceiling height is applied. Confirm the position.",relocalizing:"Point your phone at the room again.",searching:"Step 1 of 3: aim at the floor below the suspension point, or at a tracked ceiling.",select:"Tap the object or floor control to adjust it.",setFloor:"Set floor point",setHeight:"Set ceiling height",start:"Start AR",starting:"Starting…"},wall:{anchorError:"Could not anchor the resource. Move your phone and try again.",done:"Done",gestures:"Drag the resource to move it along the wall, or drag outside to rotate.",preview:"Aim at a wall. Drag to rotate, then confirm the position.",relocalizing:"Point your phone at the room again.",searching:"Move your phone slowly to find the floor or a wall.",select:"Tap the resource to adjust it.",start:"Start AR",startError:"Could not start AR. Check camera access and try again.",starting:"Starting…",unsupported:"Live AR is not supported on this device."},accessError:{"not-found":"Object not found",unauthorized:"Invalid API key",unavailable:"Viewer temporarily unavailable"},runtimeState:{cameraDenied:{body:"Allow camera access in your browser settings, then try again.",title:"Camera access is blocked"},error:{body:"Close AR and try again later.",title:"Something went wrong"},rescan:{body:"Point your phone at the room. Your placed items will return when tracking recovers.",title:"Scan the room again"},unsupported:{body:"This device or browser does not support live AR.",title:"AR is not supported"},webview:{body:"Open this page in Chrome or Safari to use AR.",title:"Open in your browser"}},data:{catalog:"Owner catalog",dimensions:"Dimensions",loadNextPage:"Load next page",loading:"Loading AR data…",mechanic:"Mechanic",object:"Object",owner:"Owner",title:"AR data debug panel",unnamedObject:"Unnamed object",variant:"Variant"}}},ru:{translation:{title:"Дополненная реальность",comingSoon:"AR-просмотр скоро появится.",close:"Закрыть",loadingModel:"Загрузка модели… {{progress}}%",android:{description:"Разместите объект в своей комнате.",title:"Живая AR"},all:{anchorError:"Не удалось закрепить объект. Переместите телефон и попробуйте снова.",done:"Готово",gestures:"Двигайте объект по его поверхности, пустоту — для поворота.",preview:"Наведите на любую поверхность и подтвердите положение.",relocalizing:"Снова наведите телефон на комнату.",searching:"Медленно перемещайте телефон, чтобы найти пол, стену или потолок.",select:"Коснитесь объекта, чтобы настроить его.",start:"Запустить AR",starting:"Запуск…"},catalog:{selectVariant:"Выберите вариант",all:"Все",clear:"Очистить",description:"Выберите товар, чтобы разместить его в комнате.",empty:"В этом каталоге пока нет товаров.",loadingMore:"Загружаем ещё товары…",noResults:"Нет результатов для \xab{{search}}\xbb",noResultsHint:"Попробуйте другой поиск или посмотрите все категории",open:"Открыть каталог товаров",placementFailed:"Не удалось загрузить выбранный материал. Попробуйте ещё раз.",placing:"Размещаем…",productDetails:"Детали товара",searchPlaceholder:"Поиск",showAllItems:"Показать все товары",title:"Каталог товаров",tryInRoom:"Посмотреть в комнате",unnamedProduct:"Товар без названия",unnamedOwner:"Каталог товаров",viewOnSite:"Открыть на сайте"},floor:{anchorError:"Не удалось закрепить объект. Переместите телефон и попробуйте снова.",deleteObject:"Удалить объект",done:"Готово",gestures:"Тяните объект для перемещения, вне объекта — для поворота.",preview:"Перемещайте телефон, чтобы выбрать место.",relocalizing:"Снова наведите телефон на комнату.",searching:"Медленно перемещайте телефон, чтобы найти пол.",select:"Коснитесь объекта, чтобы настроить его.",start:"Запустить AR",starting:"Запуск…"},ceiling:{anchorError:"Не удалось закрепить объект. Переместите телефон и попробуйте снова.",calibrating:"Проведите где угодно, чтобы переместить",done:"Готово",gestures:"Двигайте напольный контрол или объект, пустоту — для поворота.",measuredHeight:"Потолок {{height}} м",measureHeight:"Проведите вверх для измерения",preview:"Сохранённая высота потолка применена. Подтвердите позицию.",relocalizing:"Снова наведите телефон на комнату.",searching:"Шаг 1 из 3: наведите на пол под точкой подвеса или на распознанный потолок.",select:"Коснитесь объекта или напольного контрола, чтобы настроить его.",setFloor:"Задать точку на полу",setHeight:"Задать высоту потолка",start:"Запустить AR",starting:"Запуск…"},wall:{anchorError:"Не удалось закрепить ресурс. Переместите телефон и попробуйте снова.",done:"Готово",gestures:"Тяните ресурс, чтобы двигать его по стене, пустое место — чтобы повернуть.",preview:"Наведите на стену. Потяните для поворота, затем подтвердите положение.",relocalizing:"Снова наведите телефон на комнату.",searching:"Медленно перемещайте телефон, чтобы найти пол или стену.",select:"Коснитесь ресурса, чтобы настроить его.",start:"Запустить AR",startError:"Не удалось запустить AR. Проверьте доступ к камере и попробуйте снова.",starting:"Запуск…",unsupported:"Живая AR не поддерживается на этом устройстве."},accessError:{"not-found":"Объект не найден",unauthorized:"Неверный API-ключ",unavailable:"Просмотр временно недоступен"},runtimeState:{cameraDenied:{body:"Разрешите доступ к камере в настройках браузера и попробуйте снова.",title:"Доступ к камере заблокирован"},error:{body:"Закройте AR и попробуйте снова позже.",title:"Что-то пошло не так"},rescan:{body:"Наведите телефон на комнату. Размещённые товары вернутся после восстановления трекинга.",title:"Отсканируйте комнату заново"},unsupported:{body:"Это устройство или браузер не поддерживает живую AR.",title:"AR не поддерживается"},webview:{body:"Откройте эту страницу в Chrome или Safari, чтобы использовать AR.",title:"Откройте во внешнем браузере"}},data:{catalog:"Каталог владельца",dimensions:"Размеры",loadNextPage:"Загрузить следующую страницу",loading:"Загрузка данных AR…",mechanic:"Механика",object:"Объект",owner:"Владелец",title:"Отладочная панель данных AR",unnamedObject:"Объект без названия",variant:"Вариант"}}}},interpolation:{escapeValue:!1}});var A=t(8128),z=t(9398),R=t(8413),T=t(4898);let j=/initial-value:([^;\n]+);/i,E=(o=(n=t(6286).A).replace(/:root\s*,\s*:host|:root/g,":host"),(a=Array.from(n.matchAll(/@property\s+(--[^{\s]+)\s*\{([^}]*)\}/g)).map(e=>{let[,r,t]=e,o=t.match(j);if(!o)return null;let a=o[1].trim();return` ${r}: ${a};`}).filter(e=>null!==e).join("\n"))?`:host {
|
|
2
|
+
${a}
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
${o}`:o),C=(0,h.lazy)(async()=>({default:(await Promise.all([t.e("759"),t.e("311"),t.e("276")]).then(t.bind(t,7095))).ArExperience})),H=(0,h.lazy)(async()=>({default:(await Promise.all([t.e("759"),t.e("58"),t.e("548")]).then(t.bind(t,5535))).ModelViewerDialog}));function P(e){let{apiKey:r,hid:t,initialWidgetSessionToken:o,name:a,language:n,onAnalyticsEvent:i,open:s,defaultOpen:l,onOpenChange:d,scaleEnabled:c,tinuuid:u,...p}=e,[k,_]=(0,h.useState)(null),j=(0,T.U_)(),P=(null==u?void 0:u.trim())||null,M=(0,R.Bo)().forcesInPageSession?"ar":(0,T.wz)(j,P,(0,T.nc)()),L=(0,h.useRef)(null),O=(0,h.useRef)(!1),D=(0,h.useRef)(i),U=(0,h.useRef)({}),[I,F]=(0,h.useState)(l??!1),N=s??I;(0,h.useLayoutEffect)(()=>{D.current=i,U.current={name:a??null,tinuuid:P,variantId:t??null}});let W=(0,h.useCallback)(e=>{F(e),null==d||d(e)},[d]);if((0,h.useEffect)(()=>()=>{null!==L.current&&window.clearTimeout(L.current)},[]),(0,h.useEffect)(()=>{if(!N||"app-clip"!==M||!P){O.current=!1;return}O.current||(O.current=!0,null!==L.current&&window.clearTimeout(L.current),(0,z.wd)({hid:t,language:n,object:U.current,onAnalyticsEvent:D.current,redirect:(e,r)=>{null==d||d(!1),L.current=window.setTimeout(()=>{L.current=null,(0,z._b)(e,r)},0)},tinuuid:P,widgetSessionToken:o}))},[N,t,o,n,P,d,M]),(0,h.useEffect)(()=>{if("app-clip"!==M&&N)return(0,A.lA)(D.current,{name:"model-viewer"===M?"model_viewer_opened":"dialog_opened",object:U.current}),()=>(0,A.lA)(D.current,{name:"dialog_closed",object:U.current})},[N,M]),"app-clip"===M)return null;if("model-viewer"===M&&P){let e=(0,x._K)((0,x.hs)(n??S.resolvedLanguage??S.language));return(0,v.jsx)(h.Suspense,{fallback:null,children:(0,v.jsx)(H,{...p,apiBaseUrl:e.apiOrigin,apiKey:r,defaultOpen:l,hid:t,initialWidgetSessionToken:o??void 0,legacyApiBaseUrl:e.legacyApiOrigin,onOpenChange:W,open:s,tinuuid:P})})}return(0,v.jsxs)(v.Fragment,{children:[(0,y.createPortal)((0,v.jsx)("style",{children:f.A}),document.head),(0,y.createPortal)((0,v.jsxs)(w.Ay.div,{style:{display:"block",inset:0,letterSpacing:"normal",pointerEvents:N?"auto":"none",position:"fixed",zIndex:0x7fffffff},children:[(0,v.jsx)("style",{children:E}),(0,v.jsx)("div",{ref:_}),k&&(0,v.jsx)(b,{root:k,storageKey:"neurodyn-theme",children:(0,v.jsx)(m.xC,{i18n:S,children:(0,v.jsx)(g.lG,{...p,open:s,defaultOpen:l,onOpenChange:W,children:(0,v.jsxs)(g.Cf,{className:"inset-0 h-svh min-w-full max-w-none translate-x-0 translate-y-0 rounded-none border-none bg-transparent p-0 shadow-none sm:p-0 sm:max-w-none",contentInsideOverlay:!0,portalContainer:k,showCloseButton:!1,onInteractOutside:e=>{e.preventDefault()},children:[(0,v.jsxs)(g.c7,{className:"sr-only",children:[(0,v.jsx)(g.L3,{children:a}),(0,v.jsx)(g.rr,{})]}),(0,v.jsx)(h.Suspense,{fallback:null,children:(0,v.jsx)(C,{apiKey:r,hid:t,initialWidgetSessionToken:o,language:n,onAnalyticsEvent:i,scaleEnabled:c,tinuuid:u})})]})})})})]}),document.body)]})}},8413(e,r,t){t.d(r,{Bo:()=>s,Q0:()=>n,R5:()=>i});var o=t(1828);let a={forcesInPageSession:!1};function n(){return!0}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?"":window.location.search;return null!==new URLSearchParams(e).get("ar-debug-panel")}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?"":window.location.search,r=new URLSearchParams(e).get("ar-force-webar");return null===r?a:{backend:o.AY.find(e=>e===r.trim().toLowerCase()),forcesInPageSession:!0}}},7218(e,r,t){t.d(r,{$:()=>l});var o=t(8525),a=t(6218),n=t(6642),i=t(5445);t(9081);let s=(0,i.F)("cursor-pointer inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-xl transition-all disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary--hover active:bg-primary--pressed disabled:bg-primary--disabled disabled:opacity-20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary--hover active:bg-secondary--pressed disabled:bg-secondary--disabled disabled:opacity-20",outline:"border border-button-outline bg-transparent text-foreground hover:border-button-outline-hover active:bg-button-outline-pressed disabled:border-border-dark disabled:opacity-20",ghost:"hover:bg-accent hover:text-accent-foreground active:bg-accent--pressed",contrast:"bg-contrast text-contrast-foreground hover:bg-contrast--hover active:bg-contrast--pressed disabled:bg-contrast--disabled disabled:opacity-30"},size:{default:"h-9 px-3.5 typo-button-normal [&_svg]:size-5",sm:"h-8 px-3 typo-button-small [&_svg]:size-4",lg:"h-11 px-4 typo-button-big [&_svg]:size-6",icon:"size-9 rounded-full [&_svg]:size-5","icon-sm":"size-8 rounded-full [&_svg]:size-4","icon-lg":"size-11 rounded-full [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:r,variant:t,size:i,asChild:l=!1,...d}=e,c=l?a.DX:"button";return(0,o.jsx)(c,{"data-slot":"button",className:(0,n.cn)(s({variant:t,size:i,className:r})),...d})}},6486(e,r,t){t.d(r,{Cf:()=>u,HM:()=>d,L3:()=>g,c7:()=>v,lG:()=>s,rr:()=>h});var o=t(8525),a=t(3285);t(7218);var n=t(6642),i=t(2838);function s(e){let{...r}=e;return(0,o.jsx)(a.bL,{"data-slot":"dialog",...r})}function l(e){let{...r}=e;return(0,o.jsx)(a.ZL,{"data-slot":"dialog-portal",...r})}function d(e){let{...r}=e;return(0,o.jsx)(a.bm,{"data-slot":"dialog-close",...r})}function c(e){let{className:r,...t}=e;return(0,o.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",r),...t})}function u(e){let{className:r,children:t,contentInsideOverlay:s=!1,showCloseButton:d=!0,portalContainer:u,...v}=e,g=(0,o.jsxs)(a.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background-containers data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-3xl border-0 p-6 shadow-[var(--shadow-login)] duration-200 outline-none sm:max-w-120 sm:p-10",r),...v,children:[t,d&&(0,o.jsxs)(a.bm,{"data-slot":"dialog-close",className:"focus-visible:ring-ring/30 absolute top-4 right-4 inline-flex size-6 cursor-pointer items-center justify-center rounded-full text-icons-light transition-colors hover:text-icons-normal focus-visible:text-icons-dark focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,o.jsx)(i.A,{className:"size-6"}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]});return(0,o.jsx)(l,{"data-slot":"dialog-portal",container:u,children:s?(0,o.jsx)(c,{children:g}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{}),g]})})}function v(e){let{className:r,...t}=e;return(0,o.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-left",r),...t})}function g(e){let{className:r,...t}=e;return(0,o.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,n.cn)("typo-base-18 text-text-dark",r),...t})}function h(e){let{className:r,...t}=e;return(0,o.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,n.cn)("typo-base-16 text-text-light",r),...t})}t(9081)},6642(e,r,t){t.d(r,{cn:()=>n});var o=t(851),a=t(1137);function n(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,a.QP)((0,o.$)(r))}}}]);
|