designix-uis 1.0.25 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/_app/immutable/assets/0.CW0MaQv7.css +1 -0
- package/dist/public/_app/immutable/assets/2.d8DYKp_k.css +1 -0
- package/dist/public/_app/immutable/assets/3.XhKpYbOE.css +1 -0
- package/dist/public/_app/immutable/chunks/BHBmAp0t.js +1 -0
- package/dist/public/_app/immutable/chunks/BsC0KJnE.js +1 -0
- package/dist/public/_app/immutable/chunks/BvMyOpMW.js +2 -0
- package/dist/public/_app/immutable/chunks/CDPXKizA.js +216 -0
- package/dist/public/_app/immutable/chunks/CLLMBv3G.js +1 -0
- package/dist/public/_app/immutable/chunks/{BUKT9zL0.js → CdIMtTB_.js} +1 -1
- package/dist/public/_app/immutable/chunks/Crb22ScH.js +1 -0
- package/dist/public/_app/immutable/chunks/DWiHY1yh.js +1 -0
- package/dist/public/_app/immutable/chunks/hUAl4A9s.js +1 -0
- package/dist/public/_app/immutable/chunks/r5-SrLJV.js +1 -0
- package/dist/public/_app/immutable/entry/app.e5mkuYQF.js +2 -0
- package/dist/public/_app/immutable/entry/start.D_czURb2.js +1 -0
- package/dist/public/_app/immutable/nodes/0.CH76o7dk.js +2 -0
- package/dist/public/_app/immutable/nodes/1.BiA6rY6y.js +1 -0
- package/dist/public/_app/immutable/nodes/2.Bi0HaUO8.js +1 -0
- package/dist/public/_app/immutable/nodes/3.CTvJ8tYy.js +10 -0
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_bar.html +22 -22
- package/dist/public/gear/gear_epicycloid.html +22 -22
- package/dist/public/gear/gear_ring.html +22 -22
- package/dist/public/gear/gear_wheel.html +22 -22
- package/dist/public/heliostat/base.html +22 -22
- package/dist/public/heliostat/haxis_guidance.html +22 -22
- package/dist/public/heliostat/heliostat.html +26 -26
- package/dist/public/heliostat/heliostat_2.html +25 -25
- package/dist/public/heliostat/pole_static.html +25 -25
- package/dist/public/heliostat/rake.html +22 -22
- package/dist/public/heliostat/rake_stopper.html +22 -22
- package/dist/public/heliostat/ring.html +22 -22
- package/dist/public/heliostat/ring_guidance.html +22 -22
- package/dist/public/heliostat/rod.html +22 -22
- package/dist/public/heliostat/spider.html +22 -22
- package/dist/public/heliostat/surface.html +22 -22
- package/dist/public/heliostat/swing.html +22 -22
- package/dist/public/heliostat/trapeze.html +22 -22
- package/dist/public/heliostat/vaxis.html +22 -22
- package/dist/public/heliostat/vaxis_guidance.html +22 -22
- package/dist/public/heliostat/vaxis_holder.html +22 -22
- package/dist/public/index.html +20 -20
- package/package.json +10 -10
- package/dist/public/_app/immutable/assets/0.D3ep0F2Z.css +0 -1
- package/dist/public/_app/immutable/assets/2.BTCojHq8.css +0 -1
- package/dist/public/_app/immutable/assets/3.DKegludn.css +0 -1
- package/dist/public/_app/immutable/chunks/B20lA_HD.js +0 -1
- package/dist/public/_app/immutable/chunks/BAXp3xY9.js +0 -1
- package/dist/public/_app/immutable/chunks/BdJJnsaO.js +0 -1
- package/dist/public/_app/immutable/chunks/C3t1Fbv1.js +0 -216
- package/dist/public/_app/immutable/chunks/Cn3en5xC.js +0 -1
- package/dist/public/_app/immutable/chunks/D6f3qz9z.js +0 -1
- package/dist/public/_app/immutable/chunks/DzKmXKVN.js +0 -2
- package/dist/public/_app/immutable/chunks/ORUWwso2.js +0 -3
- package/dist/public/_app/immutable/chunks/gt6n6ul_.js +0 -1
- package/dist/public/_app/immutable/entry/app.DuFnXSUm.js +0 -2
- package/dist/public/_app/immutable/entry/start.Bh4_FWrz.js +0 -1
- package/dist/public/_app/immutable/nodes/0.Z-QC-dyl.js +0 -2
- package/dist/public/_app/immutable/nodes/1.D9dRN08t.js +0 -1
- package/dist/public/_app/immutable/nodes/2.CxGER0Lm.js +0 -1
- package/dist/public/_app/immutable/nodes/3.DajQ1SjD.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e,p as r}from"./DWiHY1yh.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,
|
|
1
|
+
import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,j as he,k as P,l as le,m as de,n as Pe,o as Y,q as fe,t as Le,u as He,v as Mt,w as we,x as Ze,y as Et,z as _e,A as Be,B as ye,C as me,S as Ae,D as bt}from"./CDPXKizA.js";var At=class{base_center_x;base_center_y;base_radius;initial_angle;right_nleft;constructor(s,e,S,o,i){this.base_center_x=s,this.base_center_y=e,this.base_radius=S,this.initial_angle=o,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const e=this.lFromU(s),S=this.w2FromU(s),o=this.base_center_x+Math.cos(S)*e,i=this.base_center_y+Math.sin(S)*e;return[o,i]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let S=Math.PI/3,o=S/2,i=this.wFromU(S),d=0;for(;Math.abs(i-s)>1e-4;)i<s?S+=o:S-=o,i=this.wFromU(S),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),S}laptc(s,e,S,o){if(Math.sign(e)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${e} not compatible with right_nleft ${this.right_nleft}`;const i=s+e,d=this.base_center_x+Math.cos(i)*this.base_radius,c=this.base_center_y+Math.sin(i)*this.base_radius,n=i-this.angleSign()*Math.PI/2,l=S*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(S)*o,r=S,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Me(s,e,S,o,i){return new At(s,e,S,o,i)}var kt=class{mod=1;TN=23;as=1;cx=0;cy=0;brr=50;blr=50;ar=54;pr=53;dr=52;br=51;bRound=1;adt=.5;initAngle=0;axisAngle=0;involArcPairs=1;skinThickness=0;involuteR=Me(0,0,50,0,!0);involuteL=Me(0,0,50,0,!1);rud=0;rup=0;rua=0;rwd=0;rwp=0;rwa=0;lud=0;lup=0;lua=0;lwd=0;lwp=0;lwa=0;msg;initStep=0;constructor(){this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,e){if(this.initStep<s)throw`err835: checkInitStep for ${e} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,e){this.incInitStep(1),this.mod=s,this.TN=e,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,e){this.incInitStep(2),this.cx=s,this.cy=e}set3CircleRadius(s,e,S,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*S,this.bRound=o}set4BaseCircles(s,e){this.incInitStep(4),this.brr=s,this.blr=e}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,e){this.incInitStep(6),this.initAngle=s,this.axisAngle=e}set7InvoluteDetails(s,e){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=e}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[P(this.cx,this.cy,this.ar,"Azure"),P(this.cx,this.cy,this.pr,"Azure"),P(this.cx,this.cy,this.dr,"Azure"),P(this.cx,this.cy,this.br,"Azure"),P(this.cx,this.cy,this.brr,"CornFlowerBlue"),P(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=Me(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=Me(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.lud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,e=this.rwa-this.rwp,S=Math.abs(this.lwa-this.lwp),o=s-e-S;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
|
|
2
2
|
`;const i=this.as*(1-this.adt),d=this.rwp-this.rwd,c=Math.abs(this.lwp-this.lwd),n=i-d-c;if(n<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${L(n)} compare to bRound ${L(this.bRound)}
|
|
3
3
|
`}getToothRef(){const s=6*this.involArcPairs,e=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const S=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,i=this.initAngle+e*this.as,d=Me(this.cx,this.cy,this.brr,i-this.rwp,!0),[c,n]=d.ptc(this.rud+0*S),l=J(c,n,"Gold");for(let _=0;_<s;_++){const[g,r]=d.ptc(this.rud+(_+1)*S);l.addSegStrokeA(g,r)}const h=i+this.as*this.adt,a=Me(this.cx,this.cy,this.blr,h-this.lwp,!1);for(let _=0;_<s+1;_++){const[g,r]=a.ptc(this.lud+(s-_)*o);l.addSegStrokeA(g,r)}return l.closeSegStroke(),l}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,e=this.lwd-this.lwp,S=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>S-this.br)throw`err409: getProfile bRound ${L(this.bRound)} too large for erdr ${L(S)} and br ${L(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${L(this.bRound)} too large for eldr ${L(o)} and br ${L(this.br)}`;const i=(this.rua-this.rud)/this.involArcPairs,d=(this.lua-this.lud)/this.involArcPairs,c=de(this.cx,this.cy),n=c.translatePolar(this.initAngle+s,this.br),l=J(n.cx,n.cy);for(let h=0;h<this.TN;h++){const a=this.initAngle+h*this.as,_=c.translatePolar(a+s,this.br);l.addSegStrokeA(_.cx,_.cy).addCornerRounded(this.bRound);const g=Me(this.cx,this.cy,this.brr,a-this.rwp,!0),[r,u]=g.ptc(this.rud),f=g.ptcta(this.rud),H=de(r,u).translatePolar(f-Math.PI/2,this.skinThickness);l.addSegStrokeA(H.cx,H.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.rud+x*i,[C,$]=g.ptc(O+i),m=g.ptcta(O),U=g.ptcta(O+i)+Math.PI,F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const k=a+this.as*this.adt,M=Me(this.cx,this.cy,this.blr,k-this.lwp,!1),D=this.lud+this.involArcPairs*d,[b,N]=M.ptc(D),R=M.ptcta(D)+Math.PI,v=de(b,N).translatePolar(R-Math.PI/2,this.skinThickness);l.addSegStrokeA(v.cx,v.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.lud+(this.involArcPairs-x)*d,[C,$]=M.ptc(O-d),m=M.ptcta(O)+Math.PI,U=M.ptcta(O-d),F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const E=c.translatePolar(k+e,this.br);l.addSegStrokeA(E.cx,E.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function Ke(){return new kt}function Rt(s,e,S,o){s.checkInitStep(1,"helper.gw2center-1"),e.checkInitStep(1,"helper.gw2center-2");const i=s.pr+e.pr+o,d=s.cx+i*Math.cos(S),c=s.cy+i*Math.sin(S);return[d,c,i]}function Nt(s,e,S,o,i,d,c,n,l,h,a){s.checkInitStep(3,"helper.baseCircles-1"),e.checkInitStep(3,"helper.baseCircles-2");let _=S,g=i,r=o,u=d;const f=s.pr+e.pr,H=h,k=a;switch(H){case 0:e.TN>s.TN?(_=s.dr,g=_*e.TN/s.TN):(g=e.dr,_=g*s.TN/e.TN);break;case 1:g=_*e.TN/s.TN;break;case 2:_=g*s.TN/e.TN;break;case 3:_=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(c)),g=_*e.TN/s.TN;break;case 4:break;default:console.log(`err337: involROpt2 case ${H} is not implemented!`)}switch(k){case 0:e.TN>s.TN?(r=s.dr,u=r*e.TN/s.TN):(u=e.dr,r=u*s.TN/e.TN);break;case 1:u=r*e.TN/s.TN;break;case 2:r=u*s.TN/e.TN;break;case 3:r=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(n)),u=r*e.TN/s.TN;break;case 4:break;default:console.log(`err358: involLOpt2 case ${k} is not implemented!`)}return l===1&&(r=_,u=g),[_,r,g,u]}var Ct=class{gw1;gw2;initAngle1;angleCenterCenter;interAxis;rightLeftCenter2;msg;apr;apl;lBDr=0;lBDl=0;laStartRr1=0;laStartRr2=0;laStartRl1=0;laStartRl2=0;aFODr1=0;aFODr2=0;aFODl1=0;aFODl2=0;lasr1=0;lasr2=0;lasl1=0;lasl2=0;firstToothUr1=0;firstToothUl1=0;ftdr1=0;ftdl1=0;constructor(s,e,S,o,i,d){this.gw1=s,this.gw2=e,this.initAngle1=S,this.angleCenterCenter=o,this.interAxis=i,this.rightLeftCenter2=d,this.msg="",this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,"ActionLine.check1-1"),this.gw2.checkInitStep(4,"ActionLine.check1-2"),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${L(this.interAxis)} is too large compare to gw1.ar ${L(this.gw1.ar)} and gw2.ar ${L(this.gw2.ar)}
|
|
4
4
|
`),_e(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${L(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${L(this.gw1.brr)}/${L(this.gw2.brr)} = ${L(this.gw1.brr/this.gw2.brr)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as m,i as g,j as y,l as s,u as b,k as n,m as i,n as v,o as h,q as f,v as x,w as r,x as C,y as w,z as k,A as S,B as A,C as j,D,E,F as q,G as z,H as M,I as O}from"./BvMyOpMW.js";import{c as P}from"./hUAl4A9s.js";function U(e,t){if(m(),g){const a=window.__svelte?.h;if(a?.has(e))return a.get(e);y()}return t()}function $(){return i===null&&v(),(i.ac??=new AbortController).signal}function _(e){n===null&&s(),x&&n.l!==null?c(n).m.push(e):b(()=>{const t=r(e);if(typeof t=="function")return t})}function B(e){n===null&&s(),_(()=>()=>r(e))}function F(e,t,{bubbles:a=!1,cancelable:l=!1}={}){return new CustomEvent(e,{detail:t,bubbles:a,cancelable:l})}function G(){const e=n;return e===null&&s(),(t,a,l)=>{const o=e.s.$$events?.[t];if(o){const p=h(o)?o.slice():[o],u=F(t,a,l);for(const d of p)d.call(e.x,u);return!u.defaultPrevented}return!0}}function H(e){n===null&&s(),n.l===null&&f(),c(n).b.push(e)}function I(e){n===null&&s(),n.l===null&&f(),c(n).a.push(e)}function c(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const J=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:I,beforeUpdate:H,createContext:C,createEventDispatcher:G,createRawSnippet:P,flushSync:w,fork:k,getAbortSignal:$,getAllContexts:S,getContext:A,hasContext:j,hydratable:U,hydrate:D,mount:E,onDestroy:B,onMount:_,setContext:q,settled:z,tick:M,unmount:O,untrack:r},Symbol.toStringTag,{value:"Module"}));export{B as a,_ as o,J as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as De,s as wt}from"./Crb22ScH.js";import{p as vt,e as yt,a as bt,b as L}from"./BHBmAp0t.js";import{a3 as pe,b1 as kt,au as U,g as P,aj as T,H as ee,z as Ve,G as Et}from"./BvMyOpMW.js";const V=[];function Ee(e,t=pe){let n=null;const a=new Set;function r(s){if(kt(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(s){r(s(e))}function o(s,c=pe){const l=[s,c];return a.add(l),a.size===1&&(n=t(r,i)||pe),s(e),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function St(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Rt(e){return e.split("%25").map(decodeURI).join("%25")}function xt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ge({href:e}){return e.split("#")[0]}function Lt(e,t,n,a=!1){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(o,s){if(s==="get"||s==="getAll"||s==="has")return l=>(n(l),o[s](l));t();const c=Reflect.get(o,s);return typeof c=="function"?c.bind(o):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];a&&i.push("hash");for(const o of i)Object.defineProperty(r,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return r}function At(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const Pt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&z.delete(Le(e)),Pt(e,t));const z=new Map;function Tt(e,t){const n=Le(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&z.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=Ut(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Ot(e,t,n){if(z.size>0){const a=Le(e,n),r=z.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);z.delete(a)}}return window.fetch(t,n)}function Le(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${At(...r)}"]`}return a}function It({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,g]])=>{const{pattern:m,params:f}=vt(s),u={id:s,exec:h=>{const w=m.exec(h);if(w)return yt(w,f,a)},errors:[1,...g||[]].map(h=>e[h]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Be(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const Ct="1766863737484",We="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",G="sveltekit:history",Y="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ae(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ge={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function we(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||fe(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ge[a??"off"],preload_data:Ge[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function He(e){const t=Ee(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const tt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Ee(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${bt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==Ct;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function fe(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function dn(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const $t=new Set([...nt]);[...$t];function qt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Se||e instanceof xe?e.status:500}function Dt(e){return e instanceof xe?e.text:"Internal Error"}let k,F,me;const Vt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},F={current:null},me={current:!1}):(k=new class{#e=U({});get data(){return P(this.#e)}set data(t){T(this.#e,t)}#t=U(null);get form(){return P(this.#t)}set form(t){T(this.#t,t)}#n=U(null);get error(){return P(this.#n)}set error(t){T(this.#n,t)}#a=U({});get params(){return P(this.#a)}set params(t){T(this.#a,t)}#r=U({id:null});get route(){return P(this.#r)}set route(t){T(this.#r,t)}#o=U({});get state(){return P(this.#o)}set state(t){T(this.#o,t)}#s=U(-1);get status(){return P(this.#s)}set status(t){T(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return P(this.#i)}set url(t){T(this.#i,t)}},F=new class{#e=U(null);get current(){return P(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=U(!1);get current(){return P(this.#e)}set current(t){T(this.#e,t)}},tt.v=()=>me.current=!0);function at(e){Object.assign(k,e)}const Ke={spanContext(){return Bt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Bt={traceId:"",spanId:"",traceFlags:0},{onMount:Gt}=wt,Ht=new Set(["icon","shortcut icon","apple-touch-icon"]),q=Je(Xe)??{},J=Je(We)??{},N={url:He({}),page:He({}),navigating:Ee(null),updated:jt()};function Pe(e){q[e]=ue()}function Kt(e,t){let n=e+1;for(;q[n];)delete q[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function W(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Me(){}let Te,ve,ne,O,ye,v;const ae=[],re=[];let R=null;function be(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,ot=new Set,Mt=new Set,H=new Set;let _={branch:[],error:null,url:null},st=!1,oe=!1,ze=!0,X=!1,M=!1,it=!1,Oe=!1,Ie,y,x,$;const se=new Set,Ye=new Map;async function mn(e,t,n){globalThis.__sveltekit_1ekr7w5?.data&&globalThis.__sveltekit_1ekr7w5.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=It(e),O=document.documentElement,ye=t,ve=e.nodes[0],ne=e.nodes[1],ve(),ne(),y=history.state?.[G],x=history.state?.[Y],y||(y=x=Date.now(),history.replaceState({...history.state,[G]:y,[Y]:x},""));const a=q[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await rn(ye,n)):(await K({type:"enter",url:Ae(v.hash?cn(new URL(location.href)):location.href),replace_state:!0}),r()),an()}function zt(){ae.length=0,Oe=!1}function ct(e){re.some(t=>t?.snapshot)&&(J[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){J[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Fe(){Pe(y),Be(Xe,q),ct(x),Be(We,J)}async function ut(e,t,n,a){let r;t.invalidateAll&&be(),await K({type:"goto",url:Ae(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Oe=!0,r=[...Ye.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&ee().then(ee).then(()=>{Ye.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Yt(e){if(e.id!==R?.id){be();const t={};if(se.add(t),R={id:e.id,token:t,promise:ht({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null},Ve){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return Ve(()=>{Ie.$set(a.props),at(a.props.page)})}catch{}return null})}}return R.promise}async function _e(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ft(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),Ie=new v.root({target:t,props:{...e.props,stores:N,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=St(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:qe(k)}};o!==void 0&&(c.props.form=o);let l={},g=!k,m=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(g=!0),h&&(l={...l,...h.data},g&&(c.props[`data_${m}`]=l),m+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||g)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:g?l:k.data}),c}async function Ce({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let g=function(...f){for(const u of f){const{href:h}=new URL(u,n);c.dependencies.add(h)}};const m={tracing:{enabled:!1,root:Ke,current:Ke},route:new Proxy(r,{get:(f,u)=>(s&&(c.route=!0),f[u])}),params:new Proxy(a,{get:(f,u)=>(s&&c.params.add(u),f[u])}),data:i?.data??null,url:Lt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=dt(f,u,n);return s&&g(h.href),w},setHeaders:()=>{},depends:g,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};o=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function dt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?Ot(a,r.href,t):Tt(a,t);return{resolved:r,promise:i}}function Ft(e,t,n,a,r,i){if(Oe)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Jt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Wt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:qe(k),constructors:[]}}}async function ht({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const g=_.url?e!==ce(_.url):!1,m=_.route?r.id!==_.route.id:!1,f=Jt(_.url,n);let u=!1;const h=l.map(async(p,d)=>{if(!p)return;const E=_.branch[d];return p[1]===E?.loader&&!Ft(u,m,g,f,E.universal?.uses,a)?E:(u=!0,Ce({loader:p[1],url:n,params:a,route:r,parent:async()=>{const I={};for(let A=0;A<d;A+=1)Object.assign(I,(await h[A])?.data);return I},server_data_node:Ne(p[0]?{type:"skip"}:null,p[0]?E?.server:void 0)}))});for(const p of h)p.catch(()=>{});const w=[];for(let p=0;p<l.length;p+=1)if(l[p])try{w.push(await h[p])}catch(d){if(d instanceof Re)return{type:"redirect",location:d.location};if(se.has(i))return Wt({error:await Q(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Se)S=d.body;else{if(await N.updated.check())return await rt(),await W(n);S=await Q(d,{params:a,url:n,route:{id:r.id}})}const I=await Xt(p,w,o);return I?ie({url:n,params:a,branch:w.slice(0,I.idx).concat(I.node),status:E,error:S,route:r}):await gt(n,{id:r.id},S,E)}else w.push(void 0);return ie({url:n,params:a,branch:w,status:200,error:null,route:r,form:t?void 0:null})}async function Xt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function je({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Ce({loader:ve,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ne(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return ut(new URL(o.location,location.href),{},0);throw o}}async function Qt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>dt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,L,v.hash)){const n=await Qt(e);if(!n)return;const a=Zt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:xt(i),url:e}}}}function Zt(e){return Rt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=$e(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||ot.forEach(c=>c(s)),i?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Me,block:g=Me,event:m}){const f=$;$=c;const u=await de(t,!1),h=e==="enter"?$e(_,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,event:m});if(!h){g(),$===c&&($=f);return}const w=y,p=x;l(),X=!0,oe&&h.navigation.type!=="enter"&&N.navigating.set(F.current=h.navigation);let d=u&&await ht(u);if(!d){if(fe(t,L,v.hash))return await W(t,i);d=await gt(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,$!==c)return h.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}d=await je({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await N.updated.check()&&(await rt(),await W(t,i));if(zt(),Pe(w),ct(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[G]:y+=b,[Y]:x+=b,[Qe]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Kt(y,x)}const E=u&&R?.id===u.id?R.fork:null;R=null,d.props.page.state=o;let S;if(oe){const b=(await Promise.all(Array.from(Mt,C=>C(h.navigation)))).filter(C=>typeof C=="function");if(b.length>0){let C=function(){b.forEach(he=>{H.delete(he)})};b.push(C),b.forEach(he=>{H.add(he)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=E&&await E;D?S=D.commit():(Ie.$set(d.props),at(d.props.page),S=Et?.()),it=!0}else await ft(d,ye,!1);const{activeElement:I}=document;await S,await ee(),await ee();let A=n?n.scroll:r?ue():null;if(ze){const b=t.hash&&document.getElementById(mt(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:D,left:C}=b.getBoundingClientRect();A={x:pageXOffset+C,y:pageYOffset+D}}else scrollTo(0,0)}const _t=document.activeElement!==I&&document.activeElement!==document.body;!a&&!_t&&sn(t,A),ze=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&<(x),h.fulfil(void 0),H.forEach(b=>b(h.navigation)),N.navigating.set(F.current=null)}async function gt(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!st?await je({status:a,error:n,url:e,route:t}):await W(e,r)}function en(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(_e(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,O),g=l===t&&c>=n;if(!l||g)return;const{url:m,external:f,download:u}=we(l,L,v.hash);if(f||u)return;const h=te(l),w=m&&ce(_.url)===ce(m);if(!(h.reload||w))if(c<=h.preload_data){t=l,n=j.tap;const p=await de(m,!1);if(!p)return;Yt(p)}else c<=h.preload_code&&(t=l,n=c,_e(m))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:g}=we(s,L,v.hash);if(l||g)continue;const m=te(s);m.reload||(m.preload_code===j.viewport&&r.observe(s),m.preload_code===j.eager&&_e(c))}}H.add(o),o()}function Q(e,t){if(e instanceof Se)return e.body;const n=Ue(e),a=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function tn(e,t){Gt(()=>(e.add(t),()=>{e.delete(t)}))}function _n(e){tn(H,e)}function wn(e,t={}){return e=new URL(Ae(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):ut(e,t,0)}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function an(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Fe(),!X){const a=$e(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Fe()}),navigator.connection?.saveData||en(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:i,download:o}=we(n,L,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,g]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),m=l===ge(location);if(r||s.reload&&(!m||!g)){pt({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(g!==void 0&&m){const[,f]=_.url.href.split("#");if(f===g){if(t.preventDefault(),g===""||g==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(g));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Pe(y),e(a),!s.replace_state)return;M=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(fe(o,L,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[G]){const n=t.state[G];if($={},n===y)return;const a=q[n],r=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),o=t.state[Y],s=_.url?ge(location)===ge(_.url):!1;if(o===x&&(it||s)){r!==k.state&&(k.state=r),e(i),q[y]=ue(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await K({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[G]:++y,[Y]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Ht.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(F.current=null)});function e(t){_.url=k.url=t,N.page.set(qe(k)),N.page.notify()}}async function rn(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let g;({params:r={},route:i={id:null}}=await de(l,!1)||{}),g=Te.find(({id:u})=>u===i.id);let m,f=!0;try{const u=a.map(async(w,p)=>{const d=s[p];return d?.uses&&(d.uses=on(d.uses)),Ce({loader:v.nodes[w],url:l,params:r,route:i,parent:async()=>{const E={};for(let S=0;S<p;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Ne(d)})}),h=await Promise.all(u);if(g){const w=g.layouts;for(let p=0;p<w.length;p++)w[p]||h.splice(p,0,void 0)}m=ie({url:l,params:r,branch:h,status:t,error:n,form:c,route:g??null})}catch(u){if(u instanceof Re){await W(new URL(u.location,location.href));return}m=await je({status:Ue(u),error:await Q(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",f=!1}m.props.page&&(m.props.page.state={}),await ft(m,e,f)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=mt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=t??ue();setTimeout(()=>{const s=history.state;ke=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),ke=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function $e(e,t,n,a){let r,i;const o=new Promise((c,l)=>{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function qe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function cn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Se as H,_n as a,mn as b,wn as g,dn as l,k as p,N as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as d,K as m,L as o,M as v,N as l,O as p,i as u,P as _,Q as b,R as g,S as k,T as w,U as y,V as M,W as A,X as F,Y as R}from"./BvMyOpMW.js";class S{anchor;#t=new Map;#s=new Map;#e=new Map;#a=new Set;#i=!0;constructor(s,a=!0){this.anchor=s,this.#i=a}#r=()=>{var s=d;if(this.#t.has(s)){var a=this.#t.get(s),t=this.#s.get(a);if(t)m(t),this.#a.delete(a);else{var e=this.#e.get(a);e&&(this.#s.set(a,e.effect),this.#e.delete(a),e.fragment.lastChild.remove(),this.anchor.before(e.fragment),t=e.effect)}for(const[i,r]of this.#t){if(this.#t.delete(i),i===s)break;const n=this.#e.get(r);n&&(o(n.effect),this.#e.delete(r))}for(const[i,r]of this.#s){if(i===a||this.#a.has(i))continue;const n=()=>{if(Array.from(this.#t.values()).includes(i)){var h=document.createDocumentFragment();b(r,h),h.append(l()),this.#e.set(i,{effect:r,fragment:h})}else o(r);this.#a.delete(i),this.#s.delete(i)};this.#i||!t?(this.#a.add(i),v(r,n,!1)):n()}}};#n=s=>{this.#t.delete(s);const a=Array.from(this.#t.values());for(const[t,e]of this.#e)a.includes(t)||(o(e.effect),this.#e.delete(t))};ensure(s,a){var t=d,e=g();if(a&&!this.#s.has(s)&&!this.#e.has(s))if(e){var i=document.createDocumentFragment(),r=l();i.append(r),this.#e.set(s,{effect:p(()=>a(r)),fragment:i})}else this.#s.set(s,p(()=>a(this.anchor)));if(this.#t.set(t,s),e){for(const[n,f]of this.#s)n===s?t.skipped_effects.delete(f):t.skipped_effects.add(f);for(const[n,f]of this.#e)n===s?t.skipped_effects.delete(f.effect):t.skipped_effects.add(f.effect);t.oncommit(this.#r),t.ondiscard(this.#n)}else u&&(this.anchor=_),this.#r()}}function x(c,s,...a){var t=new S(c);k(()=>{const e=s()??null;t.ensure(e,e&&(i=>e(i,...a)))},F)}function E(c){return(s,...a)=>{var t=c(...a),e;if(u)e=_,w();else{var i=t.render().trim(),r=y(i);e=R(r),s.before(e)}const n=t.setup?.(e);M(e,e),typeof n=="function"&&A(n)}}export{S as B,E as c,x as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as g,Z as d,u as c,w as m,_ as i,$ as b,g as p,a0 as k,a1 as v,a2 as h}from"./BvMyOpMW.js";function x(n=!1){const s=g,e=s.l.u;if(!e)return;let f=()=>k(s.s);if(n){let a=0,t={};const _=v(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&d(()=>{u(s,f),i(e.b)}),c(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,f),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}h();export{x as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.CH76o7dk.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/BvMyOpMW.js","_app/immutable/chunks/hUAl4A9s.js","_app/immutable/chunks/CDPXKizA.js","_app/immutable/chunks/BHBmAp0t.js","_app/immutable/assets/0.CW0MaQv7.css","_app/immutable/nodes/1.BiA6rY6y.js","_app/immutable/chunks/r5-SrLJV.js","_app/immutable/chunks/CLLMBv3G.js","_app/immutable/chunks/DWiHY1yh.js","_app/immutable/chunks/Crb22ScH.js","_app/immutable/nodes/2.Bi0HaUO8.js","_app/immutable/chunks/CdIMtTB_.js","_app/immutable/assets/2.d8DYKp_k.css","_app/immutable/nodes/3.CTvJ8tYy.js","_app/immutable/chunks/BsC0KJnE.js","_app/immutable/assets/3.XhKpYbOE.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as F,T as G,S as H,X as W,aj as R,ar as X,g as f,D as Y,E as Z,y as z,as as J,I as K,at as Q,p as $,Z as ee,u as te,au as S,H as re,f as N,a as P,s as se,b as y,c as ae,av as k,d as ne,r as oe,aw as j,ax as ce,t as ie,e as ue}from"../chunks/BvMyOpMW.js";import"../chunks/DsnmJJEf.js";import{o as le}from"../chunks/Crb22ScH.js";import{p as A,i as T,b as C}from"../chunks/BsC0KJnE.js";import{B as de}from"../chunks/hUAl4A9s.js";function L(n,e,s){F&&G();var c=new de(n);H(()=>{var o=e()??null;c.ensure(o,o&&(r=>s(r,o)))},W)}function fe(n){return class extends me{constructor(e){super({component:n,...e})}}}class me{#t;#e;constructor(e){var s=new Map,c=(r,t)=>{var a=Q(t,!1,!1);return s.set(r,a),a};const o=new Proxy({...e.props||{},$$events:{}},{get(r,t){return f(s.get(t)??c(t,Reflect.get(r,t)))},has(r,t){return t===X?!0:(f(s.get(t)??c(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,a){return R(s.get(t)??c(t,a),a),Reflect.set(r,t,a)}});this.#e=(e.hydrate?Y:Z)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&z(),this.#t=o.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||J(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(o,r)},this.#e.$destroy=()=>{K(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const c=(...o)=>s.call(this,...o);return this.#t[e].push(c),()=>{this.#t[e]=this.#t[e].filter(o=>o!==c)}}$destroy(){this.#e.$destroy()}}const he="modulepreload",_e=function(n){return"/"+n},I={},w=function(e,s,c){let o=Promise.resolve();if(s&&s.length>0){let p=function(i){return Promise.all(i.map(d=>Promise.resolve(d).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),a=t?.nonce||t?.getAttribute("nonce");o=p(s.map(i=>{if(i=_e(i),i in I)return;I[i]=!0;const d=i.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${m}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":he,d||(l.as="script"),l.crossOrigin="",l.href=i,a&&l.setAttribute("nonce",a),document.head.appendChild(l),d)return new Promise((x,O)=>{l.addEventListener("load",x),l.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${i}`)))})}))}function r(t){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t}return o.then(t=>{for(const a of t||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Oe={};var ve=N('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ge=N("<!> <!>",1);function ye(n,e){$(e,!0);let s=A(e,"components",23,()=>[]),c=A(e,"data_0",3,null),o=A(e,"data_1",3,null);ee(()=>e.stores.page.set(e.page)),te(()=>{e.stores,e.page,e.constructors,s(),e.form,c(),o(),e.stores.page.notify()});let r=S(!1),t=S(!1),a=S(null);le(()=>{const u=e.stores.page.subscribe(()=>{f(r)&&(R(t,!0),re().then(()=>{R(a,document.title||"untitled page",!0)}))});return R(r,!0),u});const p=j(()=>e.constructors[1]);var i=ge(),d=P(i);{var m=u=>{const h=j(()=>e.constructors[0]);var _=k(),b=P(_);L(b,()=>f(h),(v,g)=>{C(g(v,{get data(){return c()},get form(){return e.form},get params(){return e.page.params},children:(E,Ee)=>{var D=k(),V=P(D);L(V,()=>f(p),(B,U)=>{C(U(B,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),q=>s()[1]=q,()=>s()?.[1])}),y(E,D)},$$slots:{default:!0}}),E=>s()[0]=E,()=>s()?.[0])}),y(u,_)},l=u=>{const h=j(()=>e.constructors[0]);var _=k(),b=P(_);L(b,()=>f(h),(v,g)=>{C(g(v,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),E=>s()[0]=E,()=>s()?.[0])}),y(u,_)};T(d,u=>{e.constructors[1]?u(m):u(l,!1)})}var x=se(d,2);{var O=u=>{var h=ve(),_=ne(h);{var b=v=>{var g=ce();ie(()=>ue(g,f(a))),y(v,g)};T(_,v=>{f(t)&&v(b)})}oe(h),y(u,h)};T(x,u=>{f(r)&&u(O)})}y(n,i),ae()}const Se=fe(ye),ke=[()=>w(()=>import("../nodes/0.CH76o7dk.js"),__vite__mapDeps([0,1,2,3,4,5,6])),()=>w(()=>import("../nodes/1.BiA6rY6y.js"),__vite__mapDeps([7,1,8,2,9,10,11,3,5])),()=>w(()=>import("../nodes/2.Bi0HaUO8.js"),__vite__mapDeps([12,1,8,2,4,5,13,14])),()=>w(()=>import("../nodes/3.CTvJ8tYy.js"),__vite__mapDeps([15,13,4,2,5,10,11,3,1,16,9,8,17]))],je=[],Ae={"/":[2],"/[...design]":[3]},M={handleError:(({error:n})=>{console.error(n)}),reroute:(()=>{}),transport:{}},be=Object.fromEntries(Object.entries(M.transport).map(([n,e])=>[n,e.decode])),Te=Object.fromEntries(Object.entries(M.transport).map(([n,e])=>[n,e.encode])),Ce=!1,Le=(n,e)=>be[n](e);export{Le as decode,be as decoders,Ae as dictionary,Te as encoders,Ce as hash,M as hooks,Oe as matchers,ke as nodes,Se as root,je as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,b as r}from"../chunks/DWiHY1yh.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as q,f as u,s as a,a as f,t as v,b as g,c as P,d as r,r as t,a3 as j,a4 as o,e as k}from"../chunks/BvMyOpMW.js";import{s as O}from"../chunks/hUAl4A9s.js";import{F as S,e as C,r as z,s as D}from"../chunks/CDPXKizA.js";const F=!0,J=Object.freeze(Object.defineProperty({__proto__:null,prerender:F},Symbol.toStringTag,{value:"Module"})),M="designix-ui",T="1.0.0",V={designix:"^1.0.26",geometrix:"^1.0.26",geomui:"^1.0.26"},W={name:M,version:T,dependencies:V};var A=u(" <br/>",1),B=u(`<h1 class="svelte-12qhfyh">Welcome to designix-ui</h1> <h6 class="svelte-12qhfyh">Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library <a href="https://www.npmjs.com/package/geomui">geomui</a>.</h6> <nav class="svelte-12qhfyh"><a class="svelte-12qhfyh">index: list of designs</a></nav> <main class="svelte-12qhfyh"><!></main> <footer class="svelte-12qhfyh"><article><a href="https://github.com/charlyoleg2/parametrix">designix-ui</a>, a minimalist showcase
|
|
2
|
+
of <a href="https://www.npmjs.com/package/geomui">geomui</a>.</article> <article><h3>Designix-ui version</h3> <code></code></article> <article><h3>Parametrix</h3> <ol><li><a href="https://github.com/charlyoleg2/parametrix">Parametrix repo</a></li> <li><a href="https://charlyoleg2.github.io/parametrix/">Parametrix page</a></li> <li><a href="https://parametrix.fr/">Catalog [Official]</a></li> <li><a href="https://catalos-catalui.vercel.app/">Catalog [Vercel]</a></li></ol></article></footer>`,1);function K(d,l){q(l,!0);const x=S(W);var h=B(),s=a(f(h),4),_=r(s);t(s);var i=a(s,2),y=r(i);O(y,()=>l.children??j),t(i);var c=a(i,2),n=a(r(c),2),m=a(r(n),2);C(m,20,()=>x,e=>e,(e,b)=>{o();var p=A(),w=f(p,!0);o(),v(()=>k(w,b)),g(e,p)}),t(m),t(n),o(2),t(c),v(e=>D(_,"href",e),[()=>z("/")]),g(d,h),P()}export{K as component,J as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{i as h}from"../chunks/r5-SrLJV.js";import{p as c,f as l,a as v,t as u,b as _,c as d,s as g,d as s,r as e,e as p}from"../chunks/BvMyOpMW.js";import{p as o}from"../chunks/CLLMBv3G.js";var x=l("<h1> </h1> <p> </p>",1);function q(i,m){c(m,!1),h();var t=x(),r=v(t),f=s(r,!0);e(r);var a=g(r,2),n=s(a,!0);e(a),u(()=>{p(f,o.status),p(n,o.error?.message)}),_(i,t),d()}export{q as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{i as g}from"../chunks/r5-SrLJV.js";import{p as _,f,s as d,a as u,b as l,c as b,r,d as m,t as x,g as p,e as L}from"../chunks/BvMyOpMW.js";import{e as N,r as $,s as j}from"../chunks/CDPXKizA.js";import{d as k}from"../chunks/CdIMtTB_.js";var q=f("<li><a> </a></li>"),w=f('<h2 class="svelte-1uha8ag">List of designs:</h2> <ol></ol>',1);function D(h,v){_(v,!1),g();var e=w(),o=d(u(e),2);N(o,5,()=>k,a=>a,(a,i)=>{var s=q(),t=m(s),c=m(t,!0);r(t),r(s),x(n=>{j(t,"href",n),L(c,p(i))},[()=>$(`/${p(i)}`)]),l(a,s)}),r(o),l(h,e),b()}export{D as component};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{a as wa,b as Ka}from"../chunks/CdIMtTB_.js";import{H as Ga,a as Ta,g as Ba}from"../chunks/DWiHY1yh.js";import"../chunks/DsnmJJEf.js";import{i as ta,aR as ha,J as Et,aa as Ha,aS as Ra,o as Ja,aT as Qa,aU as $a,W as ts,H as es,w as Ua,ab as Ia,aV as as,aW as ss,aj as x,g as r,aD as ls,ai as oe,aX as Ft,p as _t,av as Te,a as Lt,b as C,c as pt,f as M,d as s,r as e,t as et,s as a,au as E,aw as bt,e as D,a4 as Dt,u as ya,aY as Pe,aZ as Je,ax as La,a_ as ba,a$ as Sa,b0 as rs}from"../chunks/BvMyOpMW.js";import{s as V,e as Ct,G as ga,H as at,I as ea,J as ns,K as os,L as cs,M as is,N as xa,P as Qe,O as Na,Q as $e,R as re,T as vs,U as us,V as ds,W as fs,X as fa,Y as ms,Z as ja,r as _s,f as De,j as ma,_ as rt,$ as ps,a0 as Aa,a1 as bs,a2 as gs,a3 as hs,a4 as ys}from"../chunks/CDPXKizA.js";import{p as St,i as ne,b as aa}from"../chunks/BsC0KJnE.js";import{s as xs}from"../chunks/hUAl4A9s.js";import{p as Ca}from"../chunks/CLLMBv3G.js";import{a as zs,o as ks}from"../chunks/Crb22ScH.js";import{i as Ds}from"../chunks/r5-SrLJV.js";function Xa(l){var t,o,n="";if(typeof l=="string"||typeof l=="number")n+=l;else if(typeof l=="object")if(Array.isArray(l)){var v=l.length;for(t=0;t<v;t++)l[t]&&(o=Xa(l[t]))&&(n&&(n+=" "),n+=o)}else for(o in l)l[o]&&(n&&(n+=" "),n+=o);return n}function ws(){for(var l,t,o=0,n="",v=arguments.length;o<v;o++)(l=arguments[o])&&(t=Xa(l))&&(n&&(n+=" "),n+=t);return n}function Oa(l){return typeof l=="object"?ws(l):l??""}const Pa=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Ls(l,t,o){var n=l==null?"":""+l;if(t&&(n=n?n+" "+t:t),o){for(var v in o)if(o[v])n=n?n+" "+v:v;else if(n.length)for(var c=v.length,u=0;(u=n.indexOf(v,u))>=0;){var i=u+c;(u===0||Pa.includes(n[u-1]))&&(i===n.length||Pa.includes(n[i]))?n=(u===0?"":n.substring(0,u))+n.substring(i+1):u=i}}return n===""?null:n}function yt(l,t,o,n,v,c){var u=l.__className;if(ta||u!==o||u===void 0){var i=Ls(o,n,c);(!ta||i!==l.getAttribute("class"))&&(i==null?l.removeAttribute("class"):l.className=i),l.__className=o}else if(c&&v!==c)for(var d in c){var z=!!c[d];(v==null||z!==!!v[d])&&l.classList.toggle(d,z)}return c}function Wa(l,t,o=!1){if(l.multiple){if(t==null)return;if(!Ja(t))return Qa();for(var n of l.options)n.selected=t.includes(Me(n));return}for(n of l.options){var v=Me(n);if($a(v,t)){n.selected=!0;return}}(!o||t!==void 0)&&(l.selectedIndex=-1)}function Ss(l){var t=new MutationObserver(()=>{Wa(l,l.__value)});t.observe(l,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ts(()=>{t.disconnect()})}function Fa(l,t,o=t){var n=new WeakSet,v=!0;ha(l,"change",c=>{var u=c?"[selected]":":checked",i;if(l.multiple)i=[].map.call(l.querySelectorAll(u),Me);else{var d=l.querySelector(u)??l.querySelector("option:not([disabled])");i=d&&Me(d)}o(i),Et!==null&&n.add(Et)}),Ha(()=>{var c=t();if(l===document.activeElement){var u=Ra??Et;if(n.has(u))return}if(Wa(l,c,v),v&&c===void 0){var i=l.querySelector(":checked");i!==null&&(c=Me(i),o(c))}l.__value=c,v=!1}),Ss(l)}function Me(l){return"__value"in l?l.__value:l.value}function we(l,t,o=t){var n=new WeakSet;ha(l,"input",async v=>{var c=v?l.defaultValue:l.value;if(c=_a(l)?pa(c):c,o(c),Et!==null&&n.add(Et),await es(),c!==(c=t())){var u=l.selectionStart,i=l.selectionEnd,d=l.value.length;if(l.value=c??"",i!==null){var z=l.value.length;u===i&&i===d&&z>d?(l.selectionStart=z,l.selectionEnd=z):(l.selectionStart=u,l.selectionEnd=Math.min(i,z))}}}),(ta&&l.defaultValue!==l.value||Ua(t)==null&&l.value)&&(o(_a(l)?pa(l.value):l.value),Et!==null&&n.add(Et)),Ia(()=>{var v=t();if(l===document.activeElement){var c=Ra??Et;if(n.has(c))return}_a(l)&&v===pa(l.value)||l.type==="date"&&!v&&!l.value||v!==l.value&&(l.value=v??"")})}function wt(l,t,o=t){ha(l,"change",n=>{var v=n?l.defaultChecked:l.checked;o(v)}),(ta&&l.defaultChecked!==l.checked||Ua(t)==null)&&o(l.checked),Ia(()=>{var n=t();l.checked=!!n})}function _a(l){var t=l.type;return t==="number"||t==="range"}function pa(l){return l===""?null:+l}function Ns(l,t){as(window,["resize"],()=>ss(()=>t(window[l])))}function js(l){var t=ls(0);return function(){return arguments.length===1?(x(t,r(t)+1),arguments[0]):(r(t),l())}}function As(l,t){throw new Ga(l,t)}function Cs({params:l}){const t=l.design;if(Object.keys(wa).includes(t))return{pageDef:wa[t],allLink:Ka};As(404,"Design undefined!")}const Xl=Object.freeze(Object.defineProperty({__proto__:null,load:Cs},Symbol.toStringTag,{value:"Module"})),G=oe({});function Ya(l,t,o){if(Object.keys(G).includes(l)){const v=G[l],c=Object.keys(v);for(const u of Object.keys(t))c.includes(u)?o&&(v[u]=t[u]):v[u]=t[u];G[l]=v}else G[l]=t}function Os(l){const t=l.pDef.partName,o={};for(const n of l.pDef.params)o[n.name]=n.init;Ya(t,o,!1)}var Ps=M('<aside class="backdrop svelte-qoipkr"><div class="dialog svelte-qoipkr"><button class="svelte-qoipkr"><img/></button></div></aside>');function qa(l,t){_t(t,!0);let o=St(t,"modalOpen",15);function n(){o(!1)}var v=Te(),c=Lt(v);{var u=i=>{var d=Ps(),z=s(d),m=s(z);m.__click=n;var w=s(m);e(m),e(z),e(d),et(()=>{V(w,"src",t.svgPath),V(w,"alt",t.svgPath)}),C(i,d)};ne(c,i=>{o()&&i(u)})}C(l,v),pt()}Ft(["click"]);var Fs=M('<button class="svelte-12sscyt"><img class="svelte-12sscyt"/></button>'),Ms=M('<section class="svelte-12sscyt"><!> <!></section>');function Ts(l,t){_t(t,!0);function o(m){const w=[];for(const j of Object.values(m.paramSvg))w.includes(j)||w.push(j);return w}let n=E(!1),v=E(""),c=bt(()=>o(t.pDef).map(m=>ga(`/pgdsvg/${m}`)));function u(m){x(v,m,!0),x(n,!0)}var i=Ms(),d=s(i);qa(d,{get svgPath(){return r(v)},get modalOpen(){return r(n)},set modalOpen(m){x(n,m,!0)}});var z=a(d,2);Ct(z,16,()=>r(c),m=>m,(m,w)=>{var j=Fs();j.__click=()=>u(w);var h=s(j);e(j),et(()=>{V(h,"src",w),V(h,"alt",w)}),C(m,j)}),e(i),C(l,i),pt()}Ft(["click"]);var Rs=M('<aside class="backdrop svelte-c5gucl"><div><article class="question svelte-c5gucl"><!></article> <footer class="svelte-c5gucl"><button class="cancel svelte-c5gucl">Cancel</button> <button class="ok svelte-c5gucl"> </button></footer></div></aside>');function Fe(l,t){_t(t,!0);let o=St(t,"okName",3,"Ok"),n=St(t,"modalOpen",15),v=St(t,"sizeLarge",3,!1);function c(){n(!1)}function u(){t.okFunc(),n(!1)}var i=Te(),d=Lt(i);{var z=m=>{var w=Rs(),j=s(w);let h;var f=s(j),R=s(f);xs(R,()=>t.children),e(f);var T=a(f,2),J=s(T);J.__click=c;var A=a(J,2);A.__click=u;var B=s(A,!0);e(A),e(T),e(j),e(w),et(()=>{h=yt(j,1,"dialog svelte-c5gucl",null,h,{sizeLarge:v()}),D(B,o())}),C(m,w)};ne(d,m=>{n()&&m(z)})}C(l,i),pt()}Ft(["click"]);var Us=M('<p class="diagItem svelte-bifaxb"> </p>'),Is=M('<p class="diagTitle svelte-bifaxb">Do you really want to delete the following localStorage keys?</p> <!>',1),Xs=M('<tr class="svelte-bifaxb"><td><input type="checkbox"/></td><td class="svelte-bifaxb"><button class="svelte-bifaxb"> </button></td><td> </td></tr>'),Ws=M('<div class="deleteKeys svelte-bifaxb"><button class="svelte-bifaxb">Delete</button> <!> <table class="svelte-bifaxb"><thead class="svelte-bifaxb"><tr><td>Delete</td><td>Key name</td><td>Last modification</td></tr><tr><td><input type="checkbox"/></td><td class="instruction">delete all</td><td></td></tr></thead><tbody class="svelte-bifaxb"></tbody></table></div>');function Va(l,t){_t(t,!0);let o=St(t,"storeName",15),n=St(t,"localKeys",15),v=E(oe({})),c=E(!1),u=E(!1);function i(){let _=[];const U=new RegExp(`^${t.pageName}_`);return _=Object.keys(window.localStorage).filter(q=>U.test(q)).map(q=>q.replace(U,"")),_.sort(),_}n(i());function d(_){o(_)}function z(_){let U={};for(const Z of _){let q="";const Q=`${t.pageName}_${Z}`,H=window.localStorage.getItem(Q);H!==null&&(q=JSON.parse(H).lastModif),U[Z]=q}return U}let m=bt(()=>z(n()));function w(_){let U={};for(const Z of _)U[Z]=!1;return U}x(v,w(n()),!0);function j(){for(const _ of n())r(v)[_]=r(c)}function h(){for(const _ of n())if(r(v)[_]){const U=`${t.pageName}_${_}`;window.localStorage.removeItem(U)}x(c,!1),n(i())}var f=Ws(),R=s(f);R.__click=()=>{x(u,!0)};var T=a(R,2);Fe(T,{okName:"Confirm",okFunc:h,get modalOpen(){return r(u)},set modalOpen(_){x(u,_,!0)},children:(_,U)=>{var Z=Is(),q=a(Lt(Z),2);Ct(q,16,n,Q=>Q,(Q,H)=>{var st=Te(),it=Lt(st);{var K=ut=>{var vt=Us(),ft=s(vt,!0);e(vt),et(()=>D(ft,H)),C(ut,vt)};ne(it,ut=>{r(v)[H]&&ut(K)})}C(Q,st)}),C(_,Z)},$$slots:{default:!0}});var J=a(T,2),A=s(J),B=a(s(A)),nt=s(B),ot=s(nt);at(ot),ot.__change=j,e(nt),Dt(2),e(B),e(A);var ct=a(A);Ct(ct,20,n,_=>_,(_,U)=>{var Z=Xs(),q=s(Z),Q=s(q);at(Q),e(q);var H=a(q),st=s(H);st.__click=()=>d(U);var it=s(st,!0);e(st),e(H);var K=a(H),ut=s(K,!0);e(K),e(Z),et(()=>{D(it,U),D(ut,r(m)[U])}),wt(Q,()=>r(v)[U],vt=>r(v)[U]=vt),C(_,Z)}),e(ct),e(J),e(f),wt(ot,()=>r(c),_=>x(c,_)),C(l,f),pt()}Ft(["click","change"]);var Ys=M('<p class="warnMsg svelte-8w4g7s"> </p>'),qs=M('<!> <div class="svelte-8w4g7s"><label for="storName" class="svelte-8w4g7s">Give a name to your parameter-set:</label> <input type="text" id="storName" required minlength="4" maxlength="30" size="32" class="svelte-8w4g7s"/> <!></div>',1);function Vs(l,t){_t(t,!0);let o=St(t,"storeName",15),n=E(oe([]));function v(j){const h=/[-:]/g,f=/\..*$/,R=new Date().toISOString().replace(h,"").replace(f,"").replace("T","_");return`${j}_${R}`}o(v(t.pageName));let c=bt(()=>r(n).includes(o()));var u=qs(),i=Lt(u);Va(i,{get pageName(){return t.pageName},get storeName(){return o()},set storeName(j){o(j)},get localKeys(){return r(n)},set localKeys(j){x(n,j,!0)}});var d=a(i,2),z=a(s(d),2);at(z);var m=a(z,2);{var w=j=>{var h=Ys(),f=s(h);e(h),et(()=>D(f,`Warning: name ${o()??""} already used`)),C(j,h)};ne(m,j=>{r(c)&&j(w)})}e(d),we(z,o),C(l,u),pt()}var Zs=M('<!> <div class="svelte-74yr5r"><label for="storName" class="svelte-74yr5r">Select a parameter-set:</label> <input type="text" id="storName" readonly="" minlength="4" maxlength="30" size="32" class="svelte-74yr5r"/></div>',1);function Es(l,t){_t(t,!0);let o=St(t,"storeName",15),n=E(oe([]));function v(z){let m=o();return!z.includes(m)&&(z.length>0?m=z[0]:m=""),m}ya(()=>{o(v(r(n)))});var c=Zs(),u=Lt(c);Va(u,{get pageName(){return t.pageName},get storeName(){return o()},set storeName(z){o(z)},get localKeys(){return r(n)},set localKeys(z){x(n,z,!0)}});var i=a(u,2),d=a(s(i),2);at(d),e(i),et(()=>ea(d,o())),C(l,c),pt()}const k=oe({dLayers:os(),zAdjust:ns(),canvasZWidth:0});var Ks=M('<canvas class="mini svelte-1a2f2q3"></canvas>');function Ma(l,t){_t(t,!0);const o=200,n=.6;let v;function c(d,z,m,w){const j=cs(w);j.ruler=!1;let h;if(v){const f=v.getContext("2d");f.clearRect(0,0,f.canvas.width,f.canvas.height);const R=f.canvas.width;try{t.full?h=d.getAdjustFull(f.canvas.width,f.canvas.height):h=is(m,R,z),d.draw(f,h,j)}catch(T){console.log(T)}}}ya(()=>{c(t.pFig,k.zAdjust,k.canvasZWidth,k.dLayers)});function u(d){const z=d.offsetX,m=d.offsetY,w=v.getContext("2d"),j=w.canvas.width/2,h=w.canvas.height/2;if(d.button===0){let f=1;z>j&&(f+=1*n),m>h&&(f+=2*n),w.canvas.width=f*o,w.canvas.height=f*o,c(t.pFig,k.zAdjust,k.canvasZWidth,k.dLayers)}}var i=Ks();V(i,"width",o),V(i,"height",o),i.__click=u,aa(i,d=>v=d,()=>v),C(l,i),pt()}Ft(["click"]);function Gs(l,t){const o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),o.setAttribute("download",l),o.click(),o.remove()}function Bs(l,t,o){const n=/[-:]/g,v=/\..*$/,c=new Date().toISOString().replace(n,"").replace(v,"").replace("T","_");return xa(c,l,t,o)}function za(l,t,o){const n=/[-:]/g,v=/\..*$/,c=new Date().toISOString().replace(n,"").replace(v,"").replace("T","_"),u=`px_${l}_${c}.json`,i=xa(c,l,t,o);Gs(u,i)}function Hs(l,t,o){const n=new URL(l),v=2e3;let c=n.toString().length;for(const u of Object.keys(t)){const i=t[u].toString(),d=2+u.length+i.length;n.searchParams.append(encodeURIComponent(u),encodeURIComponent(i)),c+=d}return c>=v&&console.log(`warn547: generateUrl: strLength ${c} larger than strLengthLimit ${v}`),n.toString()}const Js=Symbol();class Qs extends URLSearchParams{#t=E(0);#s=tl();#e=!1;#a(){if(!this.#s||this.#e)return;this.#e=!0;const t=this.toString();this.#s.search=t&&`?${t}`,this.#e=!1}[Js](t){if(!this.#e){this.#e=!0;for(const o of[...super.keys()])super.delete(o);for(const[o,n]of t)super.append(o,n);Pe(this.#t),this.#e=!1}}append(t,o){super.append(t,o),this.#a(),Pe(this.#t)}delete(t,o){var n=super.has(t,o);super.delete(t,o),n&&(this.#a(),Pe(this.#t))}get(t){return r(this.#t),super.get(t)}getAll(t){return r(this.#t),super.getAll(t)}has(t,o){return r(this.#t),super.has(t,o)}keys(){return r(this.#t),super.keys()}set(t,o){var n=super.getAll(t).join("");super.set(t,o),n!==super.getAll(t).join("")&&(this.#a(),Pe(this.#t))}sort(){super.sort(),this.#a(),Pe(this.#t)}toString(){return r(this.#t),super.toString()}values(){return r(this.#t),super.values()}entries(){return r(this.#t),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return r(this.#t),super.size}}let $s=null;function tl(){return $s}var el=M('<input type="number" class="input-number svelte-e6cp59"/> <input type="range" class="svelte-e6cp59"/>',1),al=M("<option> </option>"),sl=M("<select></select>"),ll=M("<option> </option>"),rl=M("<select></select>"),nl=M('<tr><td class="svelte-e6cp59"> </td><td class="svelte-e6cp59"><button class="svelte-e6cp59"> </button></td><td class="svelte-e6cp59"><!></td><td> </td><td> </td><td class="svelte-e6cp59"> </td><td class="svelte-e6cp59"> </td><td> </td></tr>'),ol=M('<tbody class="svelte-e6cp59"><tr class="separator svelte-e6cp59"><td class="svelte-e6cp59"> </td><td class="svelte-e6cp59"> </td><td class="svelte-e6cp59"><label class="svelte-e6cp59"><input type="checkbox" class="svelte-e6cp59"/> <span class="svelte-e6cp59"></span></label></td></tr></tbody> <tbody></tbody>',1),cl=M('<p>Copy this URL and send it to your friends!</p> <p class="cUrl svelte-e6cp59"> </p>',1),il=M('<section class="svelte-e6cp59"><h2 class="svelte-e6cp59">Parameters</h2> <main class="svelte-e6cp59"><label for="loadFParams" class="fileUpload svelte-e6cp59">Load Params from File</label> <input id="loadFParams" type="file" accept="text/plain, application/json" class="svelte-e6cp59"/> <button class="svelte-e6cp59">Set Params Default</button> <button class="svelte-e6cp59">Load Params from localStorage</button> <!> <!> <textarea rows="3" cols="80" readonly="" wrap="soft"></textarea> <table class="svelte-e6cp59"><thead class="svelte-e6cp59"><tr class="svelte-e6cp59"><td class="svelte-e6cp59">#</td><td class="svelte-e6cp59">Parameter name</td><td class="svelte-e6cp59">Value<span class="svelte-e6cp59"><button class="svelte-e6cp59">−</button><button class="svelte-e6cp59">+</button></span></td><td>Unit</td><td>Default</td><td class="svelte-e6cp59">Min</td><td class="svelte-e6cp59">Max</td><td>Step</td></tr></thead><!></table> <div class="comment svelte-e6cp59"><label for="inComment">Comment:</label> <input type="text" id="inComment" maxlength="150"/></div> <button class="svelte-e6cp59">Save Parameters to File</button> <button class="svelte-e6cp59">Save Parameters as URL</button> <button class="svelte-e6cp59">Save Parameters to localStorage</button> <!> <!></main> <!> <button class="side-img svelte-e6cp59"><img class="svelte-e6cp59"/></button> <div class="mini-canvas svelte-e6cp59"><!></div> <div class="mini-canvas svelte-e6cp59"><!></div></section>');function vl(l,t){_t(t,!0);let o=E(""),n=E(!1),v=E(""),c=E(!1),u=E(!1),i=E(!1),d=E(!1),z=E(!1),m=E(""),w=E(""),j=E(""),h=E(oe(st(t.pDef.params[0].name))),f=E(!1),R=E(oe(vt(ut(t.pDef.params))));Ta(()=>{x(h,st(t.pDef.params[0].name),!0),x(R,vt(ut(t.pDef.params)),!0)});function T(b,y){let S="",I=!1;b!==t.pDef.partName&&(S+=`warn361: read partName: '${b}' expected partName: '${t.pDef.partName}'
|
|
3
|
+
`,I=!0);let $=0,lt=0,Rt=0;const Yt=[];for(const gt of t.pDef.params)Yt.push(gt.name),Object.hasOwn(y,gt.name)?($+=1,G[t.pDef.partName][gt.name]===y[gt.name]?Rt+=1:G[t.pDef.partName][gt.name]=y[gt.name]):lt+=1;let Pt=0;for(const gt of Object.keys(y))Yt.includes(gt)||(Pt+=1,S+=`warn363: parameter ${gt} not in the scope of the design (${Pt})
|
|
4
|
+
`);const Ht=Pt>0,Jt=new Date().toLocaleTimeString();return S+=`Params loaded at ${Jt} :`,S+=` def-nb: ${Object.keys(t.pDef.params).length}`,S+=`, cover-nb: ${$}, uncover-nb: ${lt}
|
|
5
|
+
`,S+=` load-nb: ${Object.keys(y).length}`,S+=`, equal-nb: ${Rt}, changed-nb: ${$-Rt}`,S+=`, out-of-scope: ${Pt}`,[S,I||Ht]}async function J(b){try{const y=await fetch(b);if(!y.ok)throw`err627: error while fetching ${b}`;const S=await y.text(),[I]=Na(S);($=>{var lt=Je($,2);x(v,lt[0],!0),x(c,lt[1],!0)})(T(I.partName,I.pVal)),x(o,I.comment,!0)}catch(y){let S=`err223: error by fetching px file
|
|
6
|
+
`;S+=y,x(v,S,!0),x(c,!0)}}async function A(){{const b=new Qs(Ca.url.search),y="pxUrl";if(b.has(y)){const I=b.get(y);b.delete(y),I?await J(I):(x(v,`err123: error by parsing URL-search-params
|
|
7
|
+
`),x(c,!0))}const S={};for(const[I,$]of b){const lt=Number($);isNaN(lt)||(S[I]=lt)}Object.keys(S).length>0&&(I=>{var $=Je(I,2);x(v,$[0],!0),x(c,$[1],!0)})(T(t.pDef.partName,S))}}A();function B(b){try{const[y]=Na(b);(S=>{var I=Je(S,2);x(v,I[0],!0),x(c,I[1],!0)})(T(y.partName,y.pVal)),x(o,y.comment,!0)}catch(y){let S=`err723: error by parsing parameter file
|
|
8
|
+
`;S+=y,x(v,S,!0),x(c,!0)}}async function nt(b){const y=await b.text();B(y)}function ot(b){if(b.target){const y=b.target.files;y&&nt(y[0])}}function ct(){za(t.pDef.partName,G[t.pDef.partName],r(o))}function _(){const b={};for(const y of t.pDef.params)b[y.name]=y.init;(y=>{var S=Je(y,2);x(v,S[0],!0),x(c,S[1],!0)})(T(t.pDef.partName,b))}function U(){if(r(m)!==void 0&&r(m)!==""){const b=`${t.pDef.partName}_${r(m)}`;{const y=window.localStorage.getItem(b);y===null?(x(v,`Warn157: localStorage key ${b} is null`),x(c,!0)):B(y)}}else x(v,"Warn239: No valid name for loading from localStorage!"),x(c,!0)}function Z(){if(r(w)!==void 0&&r(w)!==""){const b=`${t.pDef.partName}_${r(w)}`,y=/\..*$/,S=new Date().toISOString().replace(y,""),I=xa(S,t.pDef.partName,G[t.pDef.partName],r(o));window.localStorage.setItem(b,I)}else console.log("Warn639: No valid name for writing to localStorage!")}function q(){return Hs(Ca.url.href,G[t.pDef.partName]).toString()}function Q(){x(j,q(),!0),x(d,!0)}function H(){}function st(b){let y=ga("/pgdsvg/default_param_blank.svg");return Object.keys(t.pDef.paramSvg).includes(b)&&(y=ga(`/pgdsvg/${t.pDef.paramSvg[b]}`)),y}function it(b){x(h,st(b),!0)}function K(){x(f,!0)}function ut(b){const y=[];let I={sectionName:"main",sectionID:"g0main",sectionVisCollapse:!1,params:[]},$=0;for(const lt of b)lt.pType===Qe.eSectionSeparator?(y.push(I),$+=1,I={sectionName:lt.name,sectionID:`g${$}${lt.name}`,sectionVisCollapse:!0,params:[]}):I.params.push(lt);return y.push(I),y}function vt(b){const y={};for(const S of b)y[S.sectionID]=S.sectionVisCollapse;return y}let ft=bt(()=>ut(t.pDef.params));function Mt(){x(n,!0)}function p(){x(n,!1)}let L=bt(()=>r(n)?2:4),O=bt(()=>r(n)?2:3),Y=bt(()=>r(n)?50:70);var xt=il(),zt=a(s(xt),2),Ut=a(s(zt),2);Ut.__change=ot;var It=a(Ut,2);It.__click=()=>{x(u,!0)};var Xt=a(It,2);Xt.__click=()=>{x(i,!0)};var Tt=a(Xt,2);Fe(Tt,{okName:"Overwrite Parameters",okFunc:_,get modalOpen(){return r(u)},set modalOpen(b){x(u,b,!0)},children:(b,y)=>{Dt();var S=La("Load the default parameters ?");C(b,S)},$$slots:{default:!0}});var Ot=a(Tt,2);Fe(Ot,{okName:"Load Parameters",okFunc:U,get modalOpen(){return r(i)},set modalOpen(b){x(i,b,!0)},children:(b,y)=>{Es(b,{get pageName(){return t.pDef.partName},get storeName(){return r(m)},set storeName(S){x(m,S,!0)}})},$$slots:{default:!0}});var Wt=a(Ot,2);ba(Wt);let ce;var Le=a(Wt,2),ie=s(Le),Re=s(ie),ve=a(s(Re),2),ue=a(s(ve)),de=s(ue);de.__click=Mt;var sa=a(de);sa.__click=p,e(ue),e(ve);var fe=a(ve);let Ue;var me=a(fe);let Ie;var Xe=a(me,3);let We;e(Re),e(ie);var Ye=a(ie);Ct(Ye,19,()=>r(ft),b=>b.sectionName,(b,y,S)=>{var I=ol(),$=Lt(I),lt=s($),Rt=s(lt),Yt=s(Rt,!0);e(Rt);var Pt=a(Rt),Ht=s(Pt,!0);e(Pt);var Jt=a(Pt),ye=s(Jt),gt=s(ye);at(gt),Dt(2),e(ye),e(Jt),e(lt),e($);var Qt=a($,2);let xe;Ct(Qt,23,()=>r(y).params,$t=>$t.name,($t,X,oa)=>{var qt=nl();let Ze;var ze=s(qt),ca=s(ze);e(ze);var te=a(ze),ee=s(te);ee.__click=()=>it(r(X).name);var ia=s(ee,!0);e(ee),e(te);var ae=a(te),va=s(ae);{var Ne=g=>{var F=el(),P=Lt(F);at(P);var N=a(P,2);at(N),et(()=>{V(P,"min",r(X).min),V(P,"max",r(X).max),V(P,"step",r(X).step),V(N,"min",r(X).min),V(N,"max",r(X).max),V(N,"step",r(X).step)}),we(P,()=>G[t.pDef.partName][r(X).name],tt=>G[t.pDef.partName][r(X).name]=tt),we(N,()=>G[t.pDef.partName][r(X).name],tt=>G[t.pDef.partName][r(X).name]=tt),C(g,F)},ua=g=>{var F=Te(),P=Lt(F);{var N=Nt=>{var mt=sl();Ct(mt,22,()=>["Off","On"],kt=>kt,(kt,ht,jt)=>{var dt=al(),At=s(dt,!0);e(dt);var Zt={};et(()=>{D(At,ht),Zt!==(Zt=r(jt))&&(dt.value=(dt.__value=r(jt))??"")}),C(kt,dt)}),e(mt),Fa(mt,()=>G[t.pDef.partName][r(X).name],kt=>G[t.pDef.partName][r(X).name]=kt),C(Nt,mt)},tt=Nt=>{var mt=Te(),kt=Lt(mt);{var ht=dt=>{var At=rl();Ct(At,22,()=>r(X).dropdown,Zt=>Zt,(Zt,Za,ka)=>{var Oe=ll(),Ea=s(Oe,!0);e(Oe);var Da={};et(()=>{D(Ea,Za),Da!==(Da=r(ka))&&(Oe.value=(Oe.__value=r(ka))??"")}),C(Zt,Oe)}),e(At),Fa(At,()=>G[t.pDef.partName][r(X).name],Zt=>G[t.pDef.partName][r(X).name]=Zt),C(dt,At)},jt=dt=>{var At=La("unknown");C(dt,At)};ne(kt,dt=>{r(X).pType===Qe.eDropdown?dt(ht):dt(jt,!1)},!0)}C(Nt,mt)};ne(P,Nt=>{r(X).pType===Qe.eCheckbox?Nt(N):Nt(tt,!1)},!0)}C(g,F)};ne(va,g=>{r(X).pType===Qe.eNumber?g(Ne):g(ua,!1)})}e(ae);var se=a(ae);let Ee;var Ke=s(se,!0);e(se);var Vt=a(se);let Ge;var je=s(Vt,!0);e(Vt);var Ae=a(Vt),Be=s(Ae,!0);e(Ae);var Ce=a(Ae),ke=s(Ce,!0);e(Ce);var le=a(Ce);let He;var da=s(le,!0);e(le),e(qt),et(()=>{Ze=yt(qt,1,"svelte-e6cp59",null,Ze,{changed:G[t.pDef.partName][r(X).name]!==r(X).init}),D(ca,`${r(S)+1}.${r(oa)+1}`),D(ia,r(X).name),Ee=yt(se,1,"svelte-e6cp59",null,Ee,{hideColumn:r(n)}),D(Ke,r(X).unit),Ge=yt(Vt,1,"svelte-e6cp59",null,Ge,{hideColumn:r(n)}),D(je,r(X).init),D(Be,r(X).min),D(ke,r(X).max),He=yt(le,1,"svelte-e6cp59",null,He,{hideColumn:r(n)}),D(da,r(X).step)}),C($t,qt)}),e(Qt),et(()=>{D(Yt,r(S)+1),V(Pt,"colspan",r(L)),D(Ht,r(y).sectionName),V(Jt,"colspan",r(O)),xe=yt(Qt,1,"svelte-e6cp59",null,xe,{collaps:r(R)[r(y).sectionID]})}),wt(gt,()=>r(R)[r(y).sectionID],$t=>r(R)[r(y).sectionID]=$t),C(b,I)}),e(Le);var Kt=a(Le,2),Gt=a(s(Kt),2);at(Gt),e(Kt);var qe=a(Kt,2);qe.__click=ct;var _e=a(qe,2);_e.__click=Q;var Ve=a(_e,2);Ve.__click=()=>{x(z,!0)};var pe=a(Ve,2);Fe(pe,{okName:"Done",okFunc:H,sizeLarge:!0,get modalOpen(){return r(d)},set modalOpen(b){x(d,b,!0)},children:(b,y)=>{var S=cl(),I=a(Lt(S),2),$=s(I,!0);e(I),et(()=>D($,r(j))),C(b,S)},$$slots:{default:!0}});var la=a(pe,2);Fe(la,{okName:"Save into localStorage",okFunc:Z,get modalOpen(){return r(z)},set modalOpen(b){x(z,b,!0)},children:(b,y)=>{Vs(b,{get pageName(){return t.pDef.partName},get storeName(){return r(w)},set storeName(S){x(w,S,!0)}})},$$slots:{default:!0}}),e(zt);var Se=a(zt,2);qa(Se,{get svgPath(){return r(h)},get modalOpen(){return r(f)},set modalOpen(b){x(f,b,!0)}});var be=a(Se,2);be.__click=K;var ge=s(be);e(be);var Bt=a(be,2),ra=s(Bt);Ma(ra,{get pFig(){return t.pFig},full:!0}),e(Bt);var he=a(Bt,2),na=s(he);Ma(na,{get pFig(){return t.pFig},full:!1}),e(he),e(xt),et(()=>{ea(Wt,r(v)),ce=yt(Wt,1,"svelte-e6cp59",null,ce,{colorWarn:r(c)}),Ue=yt(fe,1,"svelte-e6cp59",null,Ue,{hideColumn:r(n)}),Ie=yt(me,1,"svelte-e6cp59",null,Ie,{hideColumn:r(n)}),We=yt(Xe,1,"svelte-e6cp59",null,We,{hideColumn:r(n)}),V(Gt,"size",r(Y)),V(ge,"src",r(h)),V(ge,"alt",r(h))}),we(Gt,()=>r(o),b=>x(o,b)),C(l,xt),pt()}Ft(["change","click"]);var ul=M('<nav class="svelte-p0ndb1"><button class="svelte-p0ndb1">0</button> <button class="svelte-p0ndb1"><-</button> <button class="svelte-p0ndb1">|<</button> <button class="svelte-p0ndb1">||</button> <button class="svelte-p0ndb1">>|</button> <button class="svelte-p0ndb1">-></button> <input type="range" min="0" class="svelte-p0ndb1"/> <input type="number" min="0" class="svelte-p0ndb1"/></nav>');function dl(l,t){_t(t,!0);let o=St(t,"tMax",3,10),n=St(t,"tStep",3,.1),v=St(t,"tUpdate",3,500),c=St(t,"simTime",15,0),u=null,i=0,d;const z=4;function m(){u!==null&&(clearInterval(u),u=null)}function w(){d<0&&c()<=0?c(o()):d>0&&c()>=o()?c(0):c(c()+d)}function j(){const H=v()/2**(Math.abs(i)-1);d=i<0?-n():n(),u=setInterval(w,H)}function h(){m(),c(0),i=0}function f(){m(),i=0,d=-n(),w()}function R(){m(),i=0,d=n(),w()}function T(){m(),i=Math.max(i-1,-z),j()}function J(){m(),i=Math.min(i+1,z),j()}function A(){m(),i=0}zs(()=>{m()});var B=ul(),nt=s(B);nt.__click=h;var ot=a(nt,2);ot.__click=T;var ct=a(ot,2);ct.__click=f;var _=a(ct,2);_.__click=A;var U=a(_,2);U.__click=R;var Z=a(U,2);Z.__click=J;var q=a(Z,2);at(q);var Q=a(q,2);at(Q),e(B),et(()=>{V(q,"max",o()),V(q,"step",n()),V(Q,"max",o()),V(Q,"step",n())}),we(q,c),we(Q,c),C(l,B),pt()}Ft(["click"]);var fl=M('<nav class="svelte-1iutb4n"><button aria-labelledby="zoomInit" class="svelte-1iutb4n"><div class="zero svelte-1iutb4n"></div></button><button aria-labelledby="zoomIn" class="svelte-1iutb4n"><div class="zoomin svelte-1iutb4n"></div></button><button aria-labelledby="zoomOut" class="svelte-1iutb4n"><div class="zoomout svelte-1iutb4n"></div></button><button aria-labelledby="moveLeft" class="svelte-1iutb4n"><div class="arrowleft svelte-1iutb4n"></div></button><button aria-labelledby="moveRight" class="svelte-1iutb4n"><div class="arrowright svelte-1iutb4n"></div></button><button aria-labelledby="moveUp" class="svelte-1iutb4n"><div class="arrowup svelte-1iutb4n"></div></button><button aria-labelledby="moveDown" class="svelte-1iutb4n"><div class="arrowdown svelte-1iutb4n"></div></button></nav>');function ml(l,t){_t(t,!0);var o=fl(),n=s(o);n.__click=()=>t.zoomClick("zoomInit");var v=a(n);v.__click=()=>t.zoomClick("zoomIn");var c=a(v);c.__click=()=>t.zoomClick("zoomOut");var u=a(c);u.__click=()=>t.zoomClick("moveLeft");var i=a(u);i.__click=()=>t.zoomClick("moveRight");var d=a(i);d.__click=()=>t.zoomClick("moveUp");var z=a(d);z.__click=()=>t.zoomClick("moveDown"),e(o),C(l,o),pt()}Ft(["click"]);var W=js(()=>k),_l=M('<div class="svelte-1u36vsa"><label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>main part</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>main skeleton</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>second parts</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>second skeletons</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>dynamics</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>ruler</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>frame of reference</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>points</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>lines</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>vectors</label></div>');function pl(l,t){_t(t,!1),Ds();var o=_l(),n=s(o),v=s(n);at(v),Dt(),e(n);var c=a(n,2),u=s(c);at(u),Dt(),e(c);var i=a(c,2),d=s(i);at(d),Dt(),e(i);var z=a(i,2),m=s(z);at(m),Dt(),e(z);var w=a(z,2),j=s(w);at(j),Dt(),e(w);var h=a(w,2),f=s(h);at(f),Dt(),e(h);var R=a(h,2),T=s(R);at(T),Dt(),e(R);var J=a(R,2),A=s(J);at(A),Dt(),e(J);var B=a(J,2),nt=s(B);at(nt),Dt(),e(B);var ot=a(B,2),ct=s(ot);at(ct),Dt(),e(ot),e(o),wt(v,()=>W().dLayers.main,_=>W(W().dLayers.main=_)),wt(u,()=>W().dLayers.mainB,_=>W(W().dLayers.mainB=_)),wt(d,()=>W().dLayers.second,_=>W(W().dLayers.second=_)),wt(m,()=>W().dLayers.secondB,_=>W(W().dLayers.secondB=_)),wt(j,()=>W().dLayers.dynamics,_=>W(W().dLayers.dynamics=_)),wt(f,()=>W().dLayers.ruler,_=>W(W().dLayers.ruler=_)),wt(T,()=>W().dLayers.refframe,_=>W(W().dLayers.refframe=_)),wt(A,()=>W().dLayers.points,_=>W(W().dLayers.points=_)),wt(nt,()=>W().dLayers.lines,_=>W(W().dLayers.lines=_)),wt(ct,()=>W().dLayers.vectors,_=>W(W().dLayers.vectors=_)),C(l,o),pt()}var bl=M('<section class="svelte-n9qac9"><!> <div class="rack svelte-n9qac9"><canvas class="full svelte-n9qac9"></canvas> <!></div> <div class="rack svelte-n9qac9"><canvas class="zoom svelte-n9qac9"></canvas> <!></div></section>');function gl(l,t){_t(t,!0);let o=St(t,"simTime",15,0);const n=400,v=1200;let c=E(n),u,i,d;function z(p,L){if(u){const O=u.getContext("2d");O.clearRect(0,0,O.canvas.width,O.canvas.height);try{d=p.getAdjustFull(O.canvas.width,O.canvas.height),p.draw(O,d,L)}catch(Y){console.log(Y)}}}function m(p,L,O){if(i){const Y=i.getContext("2d");Y.clearRect(0,0,Y.canvas.width,Y.canvas.height);try{(L===void 0||L.init===0)&&(L=p.getAdjustZoom(Y.canvas.width,Y.canvas.height)),p.draw(Y,L,O)}catch(xt){console.log(xt)}}}function w(){const p=u.getContext("2d"),L=i.getContext("2d"),O=Math.min(Math.max(.4*r(c),n),v);p.canvas.width=O,p.canvas.height=O,L.canvas.width=O,L.canvas.height=O,k.canvasZWidth=O,k.zAdjust.init===0&&(k.zAdjust=t.pFig.getAdjustZoom(L.canvas.width,L.canvas.height))}function j(){w(),z(t.pFig,k.dLayers),m(t.pFig,k.zAdjust,k.dLayers)}function h(p,L,O){z(p,O),m(p,L,O)}ks(()=>{w()}),ya(()=>{h(t.pFig,k.zAdjust,k.dLayers)});function f(p){const L=i.getContext("2d");switch(p){case"zoomInit":k.zAdjust=t.pFig.getAdjustZoom(L.canvas.width,L.canvas.height);break;case"zoomIn":k.zAdjust=$e(.7,k.zAdjust);break;case"zoomOut":k.zAdjust=$e(1.3,k.zAdjust);break;case"moveLeft":k.zAdjust.xMin+=-.2*k.zAdjust.xyDiff;break;case"moveRight":k.zAdjust.xMin+=.2*k.zAdjust.xyDiff;break;case"moveUp":k.zAdjust.yMin+=.2*k.zAdjust.xyDiff;break;case"moveDown":k.zAdjust.yMin+=-.2*k.zAdjust.xyDiff;break;default:console.log(`ERR423: ${p} has no case!`)}m(t.pFig,k.zAdjust,k.dLayers)}const R=3e3,T=10,J=3;let A={timestamp:0,offsetX:0,offsetY:0};function B(p){p.button===0&&(A.timestamp=Date.now(),A.offsetX=p.offsetX,A.offsetY=p.offsetY)}function nt(p){if(p.button===0)if(Date.now()-A.timestamp<R){const L=Math.abs(A.offsetX-p.offsetX),O=Math.abs(A.offsetY-p.offsetY);if(L<T&&O<T){const[Y,xt]=re(p.offsetX,p.offsetY,d);k.zAdjust=vs(Y,xt,k.zAdjust),h(t.pFig,k.zAdjust,k.dLayers)}if(L>T&&O>T){const Y=L/O,xt=1/Y;if(Y<J&&xt<J){const[zt,Ut]=re(p.offsetX,p.offsetY,d),[It,Xt]=re(A.offsetX,A.offsetY,d),Ot=i.getContext("2d").canvas.width;k.zAdjust=us(zt,Ut,It,Xt,Ot,Ot),h(t.pFig,k.zAdjust,k.dLayers)}}}else console.log(`Warn205: ignore ${p.offsetX} ${p.offsetY} because too slow`)}function ot(p){if(u){const L=u.getContext("2d");if(p.buttons===1){const O=p.offsetX-A.offsetX,Y=p.offsetY-A.offsetY;z(t.pFig,k.dLayers),L.beginPath(),L.rect(A.offsetX,A.offsetY,O,Y),L.strokeStyle=fa.mouse,L.stroke()}if(k.dLayers.ruler){const[O,Y]=re(p.offsetX,p.offsetY,d);L.clearRect(5,5,200,25),L.font="15px Arial",L.fillStyle=fa.ruler,L.fillText(`x: ${O.toFixed(4)} y: ${Y.toFixed(4)}`,5,20)}}}let ct,_,U;function Z(p){if(p.button===0){const[L,O]=re(p.offsetX,p.offsetY,k.zAdjust);ct=L,_=O,U=ds(k.zAdjust)}}function q(p){if(p.buttons===1){const[L,O]=re(p.offsetX,p.offsetY,U);k.zAdjust=fs(ct,_,L,O,U),m(t.pFig,k.zAdjust,k.dLayers)}else if(k.dLayers.ruler&&i){const L=i.getContext("2d"),[O,Y]=re(p.offsetX,p.offsetY,k.zAdjust);L.clearRect(5,5,200,25),L.font="15px Arial",L.fillStyle=fa.ruler,L.fillText(`x: ${O.toFixed(4)} y: ${Y.toFixed(4)}`,5,20)}}function Q(p){p.preventDefault(),p.deltaY>0?k.zAdjust=$e(.7,k.zAdjust):k.zAdjust=$e(1.3,k.zAdjust),m(t.pFig,k.zAdjust,k.dLayers)}var H=bl();Sa("resize",rs,j);var st=s(H);pl(st,{});var it=a(st,2),K=s(it);V(K,"width",n),V(K,"height",n),K.__mousedown=B,K.__mouseup=nt,K.__mousemove=ot,aa(K,p=>u=p,()=>u);var ut=a(K,2);dl(ut,{get tMax(){return t.pDefSim.tMax},get tStep(){return t.pDefSim.tStep},get tUpdate(){return t.pDefSim.tUpdate},get simTime(){return o()},set simTime(p){o(p)}}),e(it);var vt=a(it,2),ft=s(vt);V(ft,"width",n),V(ft,"height",n),ft.__mousedown=Z,ft.__mousemove=q,aa(ft,p=>i=p,()=>i);var Mt=a(ft,2);ml(Mt,{zoomClick:f}),e(vt),e(H),Ns("innerWidth",p=>x(c,p,!0)),Sa("wheel",ft,Q),C(l,H),pt()}Ft(["mousedown","mouseup","mousemove"]);var hl=M("<tr><td> </td><td> </td><td> </td><td><i> </i></td><td><i> </i></td></tr>"),yl=M('<li class="svelte-xyzrxn"><input type="checkbox" class="toggle svelte-xyzrxn"/> <label class="label svelte-xyzrxn"><div class="arrow svelte-xyzrxn"></div> </label> <button class="svelte-xyzrxn"> </button> <button class="svelte-xyzrxn">Export parameters</button> <div class="nested svelte-xyzrxn"><article class="svelte-xyzrxn"> <strong> </strong> </article> <table class="svelte-xyzrxn"><thead class="svelte-xyzrxn"><tr><td>Num</td><td>Name</td><td>Value</td><td>Init</td><td>Set?</td></tr></thead><tbody class="svelte-xyzrxn"></tbody></table></div></li>'),xl=M('<section class="svelte-xyzrxn"><h2 class="svelte-xyzrxn">Sub-designs <span class="svelte-xyzrxn"> </span></h2> <ol class="svelte-xyzrxn"></ol></section>');function zl(l,t){_t(t,!0);const o=bt(()=>Object.keys(t.subD));async function n(h){const f=t.subD[h];Ya(f.partName,ja(f.dparam),!0);const R=_s(`/${t.pLink[f.partName]}`);Ba(R)}function v(h){const f=t.subD[h].partName,R=t.subD[h].dparam,T=`sub-design parameters of ${f} from ${t.origPartName}`;za(f,ja(R),T)}function c(h){let f="[ ";return f+=`${De(ma(h[0]))}, `,f+=`${De(ma(h[1]))}, `,f+=`${De(ma(h[2]))} ]`,f}function u(h){let f="[ ";return f+=`${De(h[0])}, `,f+=`${De(h[1])}, `,f+=`${De(h[2])} ]`,f}function i(h){return h?"Yes":""}var d=xl(),z=s(d),m=a(s(z)),w=s(m);e(m),e(z);var j=a(z,2);Ct(j,20,()=>r(o),h=>h,(h,f)=>{var R=yl(),T=s(R);at(T),ms(T,!1);var J=a(T,2),A=a(s(J));e(J);var B=a(J,2);B.__click=()=>n(f);var nt=s(B);e(B);var ot=a(B,2);ot.__click=()=>v(f);var ct=a(ot,2),_=s(ct),U=s(_),Z=a(U),q=s(Z,!0);e(Z);var Q=a(Z);e(_);var H=a(_,2),st=a(s(H));Ct(st,22,()=>Object.keys(t.subD[f].dparam),it=>it,(it,K,ut)=>{var vt=hl();let ft;var Mt=s(vt),p=s(Mt,!0);e(Mt);var L=a(Mt),O=s(L,!0);e(L);var Y=a(L),xt=s(Y,!0);e(Y);var zt=a(Y),Ut=s(zt),It=s(Ut,!0);e(Ut),e(zt);var Xt=a(zt),Tt=s(Xt),Ot=s(Tt,!0);e(Tt),e(Xt),e(vt),et(Wt=>{ft=yt(vt,1,"svelte-xyzrxn",null,ft,{changed:t.subD[f].dparam[K].chg}),D(p,r(ut)+1),D(O,K),D(xt,t.subD[f].dparam[K].val),D(It,t.subD[f].dparam[K].init),D(Ot,Wt)},[()=>i(t.subD[f].dparam[K].chg)]),C(it,vt)}),e(st),e(H),e(ct),e(R),et((it,K,ut)=>{V(T,"id",`cb_${f??""}`),V(J,"for",`cb_${f??""}`),D(A,` ${f??""}`),D(nt,`Go to ${t.pLink[t.subD[f].partName]??""}`),D(U,`${it??""} parameters of `),D(q,t.subD[f].partName),D(Q,` with orientation ${K??""} (degree) at position
|
|
9
|
+
${ut??""} (mm)`)},[()=>Object.keys(t.subD[f].dparam).length,()=>c(t.subD[f].orientation),()=>u(t.subD[f].position)]),C(h,R)}),e(j),e(d),et(()=>D(w,`(Number of sub-instances: ${r(o).length??""})`)),C(l,d),pt()}Ft(["click"]);var kl=M("<button> </button>"),Dl=M('<tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">2d- svg</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr>'),wl=M('<tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">2d- dxf</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr>'),Ll=M('<!> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">Log</h2> <textarea rows="5" cols="94" readonly="" wrap="soft"></textarea></section> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">2D Drawings : <!> <button>All faces merged</button></h2></section> <!> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">Export</h2> <table class="svelte-zsilp8"><caption class="svelte-zsilp8">Output files</caption><thead class="svelte-zsilp8"><tr class="svelte-zsilp8"><th class="svelte-zsilp8">#</th><th class="svelte-zsilp8">Filename</th><th class="svelte-zsilp8">Type</th><th class="svelte-zsilp8">Preview</th><th class="svelte-zsilp8">Download</th></tr></thead><tbody class="svelte-zsilp8"><tr class="svelte-zsilp8"><td class="svelte-zsilp8">1</td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">0-params- pxJson</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">2</td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">1-log- txtLog</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">2d- svg</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">2d- dxf</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">4-pax- paxJson</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">5-script- scad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">5-script- jsCad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">5-script- pyFreecad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8"> </td><td class="svelte-zsilp8">6-zip- zip</td><td class="svelte-zsilp8"></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr></tbody></table> <dialog id="dBview" class="svelte-zsilp8"><textarea readonly="" wrap="soft" class="svelte-zsilp8"></textarea> <button class="bback svelte-zsilp8">close - back - escape</button></dialog> <!></section>',1);function Sl(l,t){_t(t,!0);const o="ParametrixAll";function n(g){let F=!0;const P=/warn/i;return g.search(P)<0&&(F=!1),F}function v(g,F){let P=F;if(g.length===0)console.log("warn404: Drawing has an empty face list");else{const N=g.slice();N.push(o),N.includes(P)||(P=g[0])}return P}function c(g,F){let P;const N=Object.keys(g),tt=v(N,F);return N.includes(tt)?P=g[tt]:P=hs(g),P}let u=E(0),i=E(o);Ta(()=>{x(i,v(Object.keys(t.fgeom(0,G[t.pDef.partName]).fig),""),!0)});let d=bt(()=>t.fgeom(r(u),G[t.pDef.partName])),z=bt(()=>{const g=new Date().toLocaleTimeString();let F=`Geometry ${t.pDef.partName} computed at ${g}
|
|
10
|
+
`;return F+=r(d).logstr,F}),m=bt(()=>Object.keys(r(d).fig)),w=bt(()=>r(d).calcErr),j=bt(()=>n(r(d).logstr)),h=bt(()=>c(r(d).fig,r(i))),f=bt(()=>r(d).sub);function R(g,F){const P=document.createElement("a"),N=URL.createObjectURL(F);P.setAttribute("href",N),P.setAttribute("download",g),P.click(),P.remove(),URL.revokeObjectURL(N)}function T(g,F,P){const N=document.createElement("a"),tt="data:"+P+";utf-8,"+encodeURIComponent(F);N.setAttribute("href",tt),N.setAttribute("download",g),N.click(),N.remove()}function J(){const g=/[-:]/g,F=/\..*$/;return new Date().toISOString().replace(g,"").replace(F,"").replace("T","_")}async function A(g){const F=/^svg_/,P=/^dxf_/;let N=rt.eSVG,tt="all";g.match(F)?(N=rt.eSVG,tt=g.replace(F,"")):g.match(P)?(N=rt.eDXF,tt=g.replace(P,"")):g==="allsvg"?N=rt.eSVGALL:g==="alldxf"?N=rt.eDXFALL:g==="compute_log"?N=rt.eTXTLOG:g==="pax"?N=rt.ePAX:g==="oscad"?N=rt.eOPENSCAD:g==="ojscad"?N=rt.eJSCAD:g==="freecad"?N=rt.eFREECAD:g==="zip"?N=rt.eZIP:console.log(`err883: downloadExport iExportFace ${g} invalid`);const Nt=bs(N),mt=ys(N),kt=gs(N),ht=t.pDef.partName+"_"+tt+"_"+J()+Nt;if(kt){const jt=await ps(t.fgeom,r(u),G[t.pDef.partName],t.pDef,N);R(ht,jt)}else{const jt=Aa(t.fgeom,G[t.pDef.partName],t.pDef,tt,N);T(ht,jt,mt)}}async function B(){za(t.pDef.partName,G[t.pDef.partName],"")}let nt,ot=E("");function ct(g){x(ot,g,!0),nt.showModal()}function _(g,F){ct(Aa(t.fgeom,G[t.pDef.partName],t.pDef,g,F))}function U(){nt.close()}var Z=Ll(),q=Lt(Z);vl(q,{get pDef(){return t.pDef},get pFig(){return r(h)}});var Q=a(q,2),H=a(s(Q),2);ba(H);let st;e(Q);var it=a(Q,2),K=s(it),ut=a(s(K));Ct(ut,16,()=>r(m),g=>g,(g,F)=>{var P=kl();P.__click=()=>{x(i,F,!0)};var N=s(P,!0);e(P),et(()=>{yt(P,1,Oa({theFace:r(i)===F}),"svelte-zsilp8"),D(N,F)}),C(g,P)});var vt=a(ut,2);vt.__click=()=>{x(i,o)},e(K),e(it);var ft=a(it,2);gl(ft,{get pDefSim(){return t.pDef.sim},get pFig(){return r(h)},get simTime(){return r(u)},set simTime(g){x(u,g,!0)}});var Mt=a(ft,2),p=a(s(Mt),2),L=a(s(p),2),O=s(L),Y=a(s(O)),xt=s(Y);e(Y);var zt=a(Y,2),Ut=s(zt);Ut.__click=()=>{ct(Bs(t.pDef.partName,G[t.pDef.partName],""))},e(zt);var It=a(zt),Xt=s(It);Xt.__click=B,e(It),e(O);var Tt=a(O),Ot=a(s(Tt)),Wt=s(Ot);e(Ot);var ce=a(Ot,2),Le=s(ce);Le.__click=()=>{_("all",rt.eTXTLOG)},e(ce);var ie=a(ce),Re=s(ie);Re.__click=async()=>{await A("compute_log")},e(ie),e(Tt);var ve=a(Tt);Ct(ve,18,()=>r(m),g=>g,(g,F,P)=>{var N=Dl(),tt=s(N),Nt=s(tt,!0);e(tt);var mt=a(tt),kt=s(mt);e(mt);var ht=a(mt,2),jt=s(ht);jt.__click=()=>{_(F,rt.eSVG)},e(ht);var dt=a(ht),At=s(dt);At.__click=async()=>{await A(`svg_${F}`)},e(dt),e(N),et(()=>{D(Nt,3+r(P)),D(kt,`${t.pDef.partName??""}_${F??""}.svg`)}),C(g,N)});var ue=a(ve),de=s(ue),sa=s(de,!0);e(de);var fe=a(de),Ue=s(fe);e(fe);var me=a(fe,2),Ie=s(me);Ie.__click=()=>{_("all",rt.eSVGALL)},e(me);var Xe=a(me),We=s(Xe);We.__click=async()=>{await A("allsvg")},e(Xe),e(ue);var Ye=a(ue);Ct(Ye,18,()=>r(m),g=>g,(g,F,P)=>{var N=wl(),tt=s(N),Nt=s(tt,!0);e(tt);var mt=a(tt),kt=s(mt);e(mt);var ht=a(mt,2),jt=s(ht);jt.__click=()=>{_(F,rt.eDXF)},e(ht);var dt=a(ht),At=s(dt);At.__click=async()=>{await A(`dxf_${F}`)},e(dt),e(N),et(()=>{D(Nt,4+r(m).length+r(P)),D(kt,`${t.pDef.partName??""}_${F??""}.dxf`)}),C(g,N)});var Kt=a(Ye),Gt=s(Kt),qe=s(Gt,!0);e(Gt);var _e=a(Gt),Ve=s(_e);e(_e);var pe=a(_e,2),la=s(pe);la.__click=()=>{_("all",rt.eDXFALL)},e(pe);var Se=a(pe),be=s(Se);be.__click=async()=>{await A("alldxf")},e(Se),e(Kt);var ge=a(Kt),Bt=s(ge),ra=s(Bt,!0);e(Bt);var he=a(Bt),na=s(he);e(he);var b=a(he,2),y=s(b);y.__click=()=>{_("all",rt.ePAX)},e(b);var S=a(b),I=s(S);I.__click=async()=>{await A("pax")},e(S),e(ge);var $=a(ge),lt=s($),Rt=s(lt,!0);e(lt);var Yt=a(lt),Pt=s(Yt);e(Yt);var Ht=a(Yt,2),Jt=s(Ht);Jt.__click=()=>{_("all",rt.eOPENSCAD)},e(Ht);var ye=a(Ht),gt=s(ye);gt.__click=async()=>{await A("oscad")},e(ye),e($);var Qt=a($),xe=s(Qt),$t=s(xe,!0);e(xe);var X=a(xe),oa=s(X);e(X);var qt=a(X,2),Ze=s(qt);Ze.__click=()=>{_("all",rt.eJSCAD)},e(qt);var ze=a(qt),ca=s(ze);ca.__click=async()=>{await A("ojscad")},e(ze),e(Qt);var te=a(Qt),ee=s(te),ia=s(ee,!0);e(ee);var ae=a(ee),va=s(ae);e(ae);var Ne=a(ae,2),ua=s(Ne);ua.__click=()=>{_("all",rt.eFREECAD)},e(Ne);var se=a(Ne),Ee=s(se);Ee.__click=async()=>{await A("freecad")},e(se),e(te);var Ke=a(te),Vt=s(Ke),Ge=s(Vt,!0);e(Vt);var je=a(Vt),Ae=s(je);e(je);var Be=a(je,3),Ce=s(Be);Ce.__click=async()=>{await A("zip")},e(Be),e(Ke),e(L),e(p);var ke=a(p,2),le=s(ke);ba(le);var He=a(le,2);He.__click=U,e(ke),aa(ke,g=>nt=g,()=>nt);var da=a(ke,2);zl(da,{get subD(){return r(f)},get origPartName(){return t.pDef.partName},get pLink(){return t.pLink}}),e(Mt),et(()=>{ea(H,r(z)),st=yt(H,1,"svelte-zsilp8",null,st,{colorErr:r(w),colorWarn:r(j)}),yt(vt,1,Oa({theFace:r(i)===o}),"svelte-zsilp8"),D(xt,`px_${t.pDef.partName??""}.json`),D(Wt,`${t.pDef.partName??""}_all.log`),D(sa,3+r(m).length),D(Ue,`${t.pDef.partName??""}_all.svg`),D(qe,4+2*r(m).length),D(Ve,`${t.pDef.partName??""}_all.dxf`),D(ra,5+2*r(m).length),D(na,`${t.pDef.partName??""}_all.pax.json`),D(Rt,6+2*r(m).length),D(Pt,`${t.pDef.partName??""}_all_noarc_openscad.scad`),D($t,7+2*r(m).length),D(oa,`${t.pDef.partName??""}_all_noarc_jscad.js`),D(ia,8+2*r(m).length),D(va,`${t.pDef.partName??""}_all_freecad.py`),D(Ge,9+2*r(m).length),D(Ae,`${t.pDef.partName??""}_all.zip`),ea(le,r(ot))}),C(l,Z),pt()}Ft(["click"]);var Nl=M('<h1 class="svelte-1nzn10d"> </h1> <article class="svelte-1nzn10d"> </article> <!> <!>',1);function jl(l,t){_t(t,!0),Os(t.pageDef);var o=Nl(),n=Lt(o),v=s(n,!0);e(n);var c=a(n,2),u=s(c);e(c);var i=a(c,2);Ts(i,{get pDef(){return t.pageDef.pDef}});var d=a(i,2);Sl(d,{get pDef(){return t.pageDef.pDef},get fgeom(){return t.pageDef.pGeom},get pLink(){return t.pLink}}),et(()=>{D(v,t.pageDef.pTitle),D(u,`[${t.pageDef.pDef.partName??""}]: ${t.pageDef.pDescription??""}`)}),C(l,o),pt()}function Wl(l,t){_t(t,!0),jl(l,{get pageDef(){return t.data.pageDef},get pLink(){return t.data.allLink}}),pt()}export{Wl as component,Xl as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1766863737484"}
|
|
@@ -5,42 +5,42 @@
|
|
|
5
5
|
<link rel="icon" href="/favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
7
|
|
|
8
|
-
<link href="/_app/immutable/assets/0.
|
|
9
|
-
<link href="/_app/immutable/assets/3.
|
|
10
|
-
<link rel="modulepreload" href="/_app/immutable/entry/start.
|
|
11
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
12
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
13
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
14
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
15
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
16
|
-
<link rel="modulepreload" href="/_app/immutable/entry/app.
|
|
8
|
+
<link href="/_app/immutable/assets/0.CW0MaQv7.css" rel="stylesheet">
|
|
9
|
+
<link href="/_app/immutable/assets/3.XhKpYbOE.css" rel="stylesheet">
|
|
10
|
+
<link rel="modulepreload" href="/_app/immutable/entry/start.D_czURb2.js">
|
|
11
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/DWiHY1yh.js">
|
|
12
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/Crb22ScH.js">
|
|
13
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/BvMyOpMW.js">
|
|
14
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/hUAl4A9s.js">
|
|
15
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/BHBmAp0t.js">
|
|
16
|
+
<link rel="modulepreload" href="/_app/immutable/entry/app.e5mkuYQF.js">
|
|
17
17
|
<link rel="modulepreload" href="/_app/immutable/chunks/DsnmJJEf.js">
|
|
18
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
19
|
-
<link rel="modulepreload" href="/_app/immutable/nodes/0.
|
|
20
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
21
|
-
<link rel="modulepreload" href="/_app/immutable/nodes/3.
|
|
22
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
23
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
24
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
18
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/BsC0KJnE.js">
|
|
19
|
+
<link rel="modulepreload" href="/_app/immutable/nodes/0.CH76o7dk.js">
|
|
20
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/CDPXKizA.js">
|
|
21
|
+
<link rel="modulepreload" href="/_app/immutable/nodes/3.CTvJ8tYy.js">
|
|
22
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/CdIMtTB_.js">
|
|
23
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/CLLMBv3G.js">
|
|
24
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/r5-SrLJV.js">
|
|
25
25
|
</head>
|
|
26
26
|
<body data-sveltekit-preload-data="hover">
|
|
27
|
-
<div style="display: contents"><!--[--><!--[--><!----><h1 class="svelte-
|
|
27
|
+
<div style="display: contents"><!--[--><!--[--><!----><h1 class="svelte-12qhfyh">Welcome to designix-ui</h1> <h6 class="svelte-12qhfyh">Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library <a href="https://www.npmjs.com/package/geomui">geomui</a>.</h6> <nav class="svelte-12qhfyh"><a href="/" class="svelte-12qhfyh">index: list of designs</a></nav> <main class="svelte-12qhfyh"><!----><h1 class="svelte-1nzn10d">Gearbar</h1> <article class="svelte-1nzn10d">[gear_bar]: Gear-system with a bar and a wheel</article> <section class="svelte-12sscyt"><!--[!--><!--]--><!----> <!--[--><button class="svelte-12sscyt"><img src="/pgdsvg/voila_face.svg" alt="/pgdsvg/voila_face.svg" class="svelte-12sscyt"/></button><!--]--></section><!----> <section class="svelte-e6cp59"><h2 class="svelte-e6cp59">Parameters</h2> <main class="svelte-e6cp59"><label for="loadFParams" class="fileUpload svelte-e6cp59">Load Params from File</label> <input id="loadFParams" type="file" accept="text/plain, application/json" class="svelte-e6cp59"/> <button class="svelte-e6cp59">Set Params Default</button> <button class="svelte-e6cp59">Load Params from localStorage</button> <!--[!--><!--]--><!----> <!--[!--><!--]--><!----> <textarea rows="3" cols="80" readonly wrap="soft" class="svelte-e6cp59"></textarea> <table class="svelte-e6cp59"><thead class="svelte-e6cp59"><tr class="svelte-e6cp59"><td class="svelte-e6cp59">#</td><td class="svelte-e6cp59">Parameter name</td><td class="svelte-e6cp59">Value<span class="svelte-e6cp59"><button class="svelte-e6cp59">−</button><button class="svelte-e6cp59">+</button></span></td><td class="svelte-e6cp59">Unit</td><td class="svelte-e6cp59">Default</td><td class="svelte-e6cp59">Min</td><td class="svelte-e6cp59">Max</td><td class="svelte-e6cp59">Step</td></tr></thead><!--[--><tbody class="svelte-e6cp59"><tr class="separator svelte-e6cp59"><td class="svelte-e6cp59">1</td><td colspan="4" class="svelte-e6cp59">main</td><td colspan="3" class="svelte-e6cp59"><label class="svelte-e6cp59"><input type="checkbox" class="svelte-e6cp59"/> <span class="svelte-e6cp59"></span></label></td></tr></tbody> <tbody class="svelte-e6cp59"><!--[--><tr class="svelte-e6cp59"><td class="svelte-e6cp59">1.1</td><td class="svelte-e6cp59"><button class="svelte-e6cp59">H1</button></td><td class="svelte-e6cp59"><!--[--><input type="number" value="40" min="1" max="4000" step="1" class="input-number svelte-e6cp59"/> <input type="range" value="40" min="1" max="4000" step="1" class="svelte-e6cp59"/><!--]--></td><td class="svelte-e6cp59">mm</td><td class="svelte-e6cp59">40</td><td class="svelte-e6cp59">1</td><td class="svelte-e6cp59">4000</td><td class="svelte-e6cp59">1</td></tr><tr class="svelte-e6cp59"><td class="svelte-e6cp59">1.2</td><td class="svelte-e6cp59"><button class="svelte-e6cp59">H2</button></td><td class="svelte-e6cp59"><!--[--><input type="number" value="50" min="1" max="4000" step="1" class="input-number svelte-e6cp59"/> <input type="range" value="50" min="1" max="4000" step="1" class="svelte-e6cp59"/><!--]--></td><td class="svelte-e6cp59">mm</td><td class="svelte-e6cp59">50</td><td class="svelte-e6cp59">1</td><td class="svelte-e6cp59">4000</td><td class="svelte-e6cp59">1</td></tr><tr class="svelte-e6cp59"><td class="svelte-e6cp59">1.3</td><td class="svelte-e6cp59"><button class="svelte-e6cp59">radius</button></td><td class="svelte-e6cp59"><!--[--><input type="number" value="10" min="1" max="4000" step="1" class="input-number svelte-e6cp59"/> <input type="range" value="10" min="1" max="4000" step="1" class="svelte-e6cp59"/><!--]--></td><td class="svelte-e6cp59">mm</td><td class="svelte-e6cp59">10</td><td class="svelte-e6cp59">1</td><td class="svelte-e6cp59">4000</td><td class="svelte-e6cp59">1</td></tr><!--]--></tbody><tbody class="svelte-e6cp59"><tr class="separator svelte-e6cp59"><td class="svelte-e6cp59">2</td><td colspan="4" class="svelte-e6cp59">corners</td><td colspan="3" class="svelte-e6cp59"><label class="svelte-e6cp59"><input type="checkbox" checked class="svelte-e6cp59"/> <span class="svelte-e6cp59"></span></label></td></tr></tbody> <tbody class="svelte-e6cp59 collaps"><!--[--><tr class="svelte-e6cp59"><td class="svelte-e6cp59">2.1</td><td class="svelte-e6cp59"><button class="svelte-e6cp59">Rc</button></td><td class="svelte-e6cp59"><!--[--><input type="number" value="10" min="0" max="400" step="1" class="input-number svelte-e6cp59"/> <input type="range" value="10" min="0" max="400" step="1" class="svelte-e6cp59"/><!--]--></td><td class="svelte-e6cp59">mm</td><td class="svelte-e6cp59">10</td><td class="svelte-e6cp59">0</td><td class="svelte-e6cp59">400</td><td class="svelte-e6cp59">1</td></tr><!--]--></tbody><!--]--></table> <div class="comment svelte-e6cp59"><label for="inComment">Comment:</label> <input type="text" id="inComment" value="" maxlength="150" size="70"/></div> <button class="svelte-e6cp59">Save Parameters to File</button> <button class="svelte-e6cp59">Save Parameters as URL</button> <button class="svelte-e6cp59">Save Parameters to localStorage</button> <!--[!--><!--]--><!----> <!--[!--><!--]--><!----></main> <!--[!--><!--]--><!----> <button class="side-img svelte-e6cp59"><img src="/pgdsvg/voila_face.svg" alt="/pgdsvg/voila_face.svg" class="svelte-e6cp59"/></button> <div class="mini-canvas svelte-e6cp59"><canvas class="mini svelte-1a2f2q3" width="200" height="200"></canvas><!----></div> <div class="mini-canvas svelte-e6cp59"><canvas class="mini svelte-1a2f2q3" width="200" height="200"></canvas><!----></div></section><!----> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">Log</h2> <textarea rows="5" cols="94" readonly wrap="soft" class="svelte-zsilp8">Geometry gear_bar computed at 7:29:02 PM
|
|
28
28
|
gear_bar simTime: 0
|
|
29
29
|
gear_bar drawn successfully!
|
|
30
|
-
</textarea></section> <section class="svelte-
|
|
31
|
-
of <a href="https://www.npmjs.com/package/geomui">geomui</a>.</article> <article><h3>Designix-ui version</h3> <code><!--[--><!---->version details:<br/><!---->designix-ui : 1.0.0<br/><!---->dependencies:<br/><!---->1 : designix : ^1.0.
|
|
30
|
+
</textarea></section> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">2D Drawings : <!--[--><button class="svelte-zsilp8">faceVoila</button><!--]--> <button class="theFace svelte-zsilp8">All faces merged</button></h2></section> <section class="svelte-n9qac9"><div class="svelte-1u36vsa"><label class="svelte-1u36vsa"><input type="checkbox" checked class="svelte-1u36vsa"/>main part</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>main skeleton</label> <label class="svelte-1u36vsa"><input type="checkbox" checked class="svelte-1u36vsa"/>second parts</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>second skeletons</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>dynamics</label> <label class="svelte-1u36vsa"><input type="checkbox" checked class="svelte-1u36vsa"/>ruler</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>frame of reference</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>points</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>lines</label> <label class="svelte-1u36vsa"><input type="checkbox" class="svelte-1u36vsa"/>vectors</label></div><!----> <div class="rack svelte-n9qac9"><canvas class="full svelte-n9qac9" width="400" height="400"></canvas> <nav class="svelte-p0ndb1"><button class="svelte-p0ndb1">0</button> <button class="svelte-p0ndb1"><-</button> <button class="svelte-p0ndb1">|<</button> <button class="svelte-p0ndb1">||</button> <button class="svelte-p0ndb1">>|</button> <button class="svelte-p0ndb1">-></button> <input type="range" value="0" min="0" max="180" step="0.5" class="svelte-p0ndb1"/> <input type="number" value="0" min="0" max="180" step="0.5" class="svelte-p0ndb1"/></nav><!----></div> <div class="rack svelte-n9qac9"><canvas class="zoom svelte-n9qac9" width="400" height="400"></canvas> <nav class="svelte-1iutb4n"><button aria-labelledby="zoomInit" class="svelte-1iutb4n"><div class="zero svelte-1iutb4n"></div></button><button aria-labelledby="zoomIn" class="svelte-1iutb4n"><div class="zoomin svelte-1iutb4n"></div></button><button aria-labelledby="zoomOut" class="svelte-1iutb4n"><div class="zoomout svelte-1iutb4n"></div></button><button aria-labelledby="moveLeft" class="svelte-1iutb4n"><div class="arrowleft svelte-1iutb4n"></div></button><button aria-labelledby="moveRight" class="svelte-1iutb4n"><div class="arrowright svelte-1iutb4n"></div></button><button aria-labelledby="moveUp" class="svelte-1iutb4n"><div class="arrowup svelte-1iutb4n"></div></button><button aria-labelledby="moveDown" class="svelte-1iutb4n"><div class="arrowdown svelte-1iutb4n"></div></button></nav><!----></div></section><!----> <section class="svelte-zsilp8"><h2 class="svelte-zsilp8">Export</h2> <table class="svelte-zsilp8"><caption class="svelte-zsilp8">Output files</caption><thead class="svelte-zsilp8"><tr class="svelte-zsilp8"><th class="svelte-zsilp8">#</th><th class="svelte-zsilp8">Filename</th><th class="svelte-zsilp8">Type</th><th class="svelte-zsilp8">Preview</th><th class="svelte-zsilp8">Download</th></tr></thead><tbody class="svelte-zsilp8"><tr class="svelte-zsilp8"><td class="svelte-zsilp8">1</td><td class="svelte-zsilp8">px_gear_bar.json</td><td class="svelte-zsilp8">0-params- pxJson</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">2</td><td class="svelte-zsilp8">gear_bar_all.log</td><td class="svelte-zsilp8">1-log- txtLog</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!--[--><tr class="svelte-zsilp8"><td class="svelte-zsilp8">3</td><td class="svelte-zsilp8">gear_bar_faceVoila.svg</td><td class="svelte-zsilp8">2d- svg</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!--]--><tr class="svelte-zsilp8"><td class="svelte-zsilp8">4</td><td class="svelte-zsilp8">gear_bar_all.svg</td><td class="svelte-zsilp8">2d- svg</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!--[--><tr class="svelte-zsilp8"><td class="svelte-zsilp8">5</td><td class="svelte-zsilp8">gear_bar_faceVoila.dxf</td><td class="svelte-zsilp8">2d- dxf</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><!--]--><tr class="svelte-zsilp8"><td class="svelte-zsilp8">6</td><td class="svelte-zsilp8">gear_bar_all.dxf</td><td class="svelte-zsilp8">2d- dxf</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">7</td><td class="svelte-zsilp8">gear_bar_all.pax.json</td><td class="svelte-zsilp8">4-pax- paxJson</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">8</td><td class="svelte-zsilp8">gear_bar_all_noarc_openscad.scad</td><td class="svelte-zsilp8">5-script- scad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">9</td><td class="svelte-zsilp8">gear_bar_all_noarc_jscad.js</td><td class="svelte-zsilp8">5-script- jsCad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">10</td><td class="svelte-zsilp8">gear_bar_all_freecad.py</td><td class="svelte-zsilp8">5-script- pyFreecad</td><td class="svelte-zsilp8"><button class="svelte-zsilp8">preview</button></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr><tr class="svelte-zsilp8"><td class="svelte-zsilp8">11</td><td class="svelte-zsilp8">gear_bar_all.zip</td><td class="svelte-zsilp8">6-zip- zip</td><td class="svelte-zsilp8"></td><td class="svelte-zsilp8"><button class="svelte-zsilp8">download</button></td></tr></tbody></table> <dialog id="dBview" class="svelte-zsilp8"><textarea readonly wrap="soft" class="svelte-zsilp8"></textarea> <button class="bback svelte-zsilp8">close - back - escape</button></dialog> <section class="svelte-xyzrxn"><h2 class="svelte-xyzrxn">Sub-designs <span class="svelte-xyzrxn">(Number of sub-instances: 0)</span></h2> <ol class="svelte-xyzrxn"><!--[--><!--]--></ol></section><!----></section><!----><!----><!----></main> <footer class="svelte-12qhfyh"><article><a href="https://github.com/charlyoleg2/parametrix">designix-ui</a>, a minimalist showcase
|
|
31
|
+
of <a href="https://www.npmjs.com/package/geomui">geomui</a>.</article> <article><h3>Designix-ui version</h3> <code><!--[--><!---->version details:<br/><!---->designix-ui : 1.0.0<br/><!---->dependencies:<br/><!---->1 : designix : ^1.0.26<br/><!---->2 : geometrix : ^1.0.26<br/><!---->3 : geomui : ^1.0.26<br/><!--]--></code></article> <article><h3>Parametrix</h3> <ol><li><a href="https://github.com/charlyoleg2/parametrix">Parametrix repo</a></li> <li><a href="https://charlyoleg2.github.io/parametrix/">Parametrix page</a></li> <li><a href="https://parametrix.fr/">Catalog [Official]</a></li> <li><a href="https://catalos-catalui.vercel.app/">Catalog [Vercel]</a></li></ol></article></footer><!----><!--]--> <!--[!--><!--]--><!--]-->
|
|
32
32
|
|
|
33
33
|
<script>
|
|
34
34
|
{
|
|
35
|
-
|
|
35
|
+
__sveltekit_1ekr7w5 = {
|
|
36
36
|
base: ""
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const element = document.currentScript.parentElement;
|
|
40
40
|
|
|
41
41
|
Promise.all([
|
|
42
|
-
import("/_app/immutable/entry/start.
|
|
43
|
-
import("/_app/immutable/entry/app.
|
|
42
|
+
import("/_app/immutable/entry/start.D_czURb2.js"),
|
|
43
|
+
import("/_app/immutable/entry/app.e5mkuYQF.js")
|
|
44
44
|
]).then(([kit, app]) => {
|
|
45
45
|
kit.start(app, element, {
|
|
46
46
|
node_ids: [0, 3],
|