designix-uis 0.5.16 → 0.5.18

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.
Files changed (46) hide show
  1. package/dist/designix-uis.js +34 -37
  2. package/dist/public/_app/immutable/assets/0.BNk8pMG6.css +1 -0
  3. package/dist/public/_app/immutable/assets/_layout.BNk8pMG6.css +1 -0
  4. package/dist/public/_app/immutable/chunks/{entry.D4XMTNnT.js → entry.EJ8w8loJ.js} +1 -1
  5. package/dist/public/_app/immutable/chunks/index.Bt0gWcKV.js +127 -0
  6. package/dist/public/_app/immutable/chunks/{index.DzDRugVt.js → index.BugmtA6_.js} +1 -1
  7. package/dist/public/_app/immutable/chunks/{makeList.CReOpeHP.js → makeList.REsiyAUZ.js} +1 -1
  8. package/dist/public/_app/immutable/chunks/paths.DFgZUXqx.js +1 -0
  9. package/dist/public/_app/immutable/chunks/{scheduler.pWaib8rK.js → scheduler.2BOoCPD3.js} +1 -1
  10. package/dist/public/_app/immutable/chunks/{stores.D1ybwCxw.js → stores.C50YK_rx.js} +1 -1
  11. package/dist/public/_app/immutable/entry/app.B_PjrtAR.js +2 -0
  12. package/dist/public/_app/immutable/entry/start.BOJcz-mb.js +1 -0
  13. package/dist/public/_app/immutable/nodes/0.D8PdTsfL.js +4 -0
  14. package/dist/public/_app/immutable/nodes/{1.C3oMusYD.js → 1.DzcoqOCn.js} +1 -1
  15. package/dist/public/_app/immutable/nodes/{2.CF8QRxsC.js → 2.CueYTOej.js} +1 -1
  16. package/dist/public/_app/immutable/nodes/3.DaQpb-Lv.js +18 -0
  17. package/dist/public/_app/version.json +1 -1
  18. package/dist/public/gear/gear_wheel_wheel.html +20 -20
  19. package/dist/public/gear/simplified_gear_wheel.html +20 -20
  20. package/dist/public/heliostat/base.html +20 -20
  21. package/dist/public/heliostat/haxis_guidance.html +20 -20
  22. package/dist/public/heliostat/heliostat.html +20 -20
  23. package/dist/public/heliostat/heliostat_2.html +20 -20
  24. package/dist/public/heliostat/pole_static.html +20 -20
  25. package/dist/public/heliostat/rake.html +20 -20
  26. package/dist/public/heliostat/rake_stopper.html +20 -20
  27. package/dist/public/heliostat/ring.html +20 -20
  28. package/dist/public/heliostat/ring_guidance.html +20 -20
  29. package/dist/public/heliostat/rod.html +20 -20
  30. package/dist/public/heliostat/spider.html +20 -20
  31. package/dist/public/heliostat/surface.html +20 -20
  32. package/dist/public/heliostat/swing.html +20 -20
  33. package/dist/public/heliostat/trapeze.html +20 -20
  34. package/dist/public/heliostat/vaxis.html +20 -20
  35. package/dist/public/heliostat/vaxis_guidance.html +20 -20
  36. package/dist/public/heliostat/vaxis_holder.html +20 -20
  37. package/dist/public/index.html +17 -17
  38. package/package.json +34 -37
  39. package/dist/public/_app/immutable/assets/0.CEJMiobA.css +0 -1
  40. package/dist/public/_app/immutable/assets/_layout.CEJMiobA.css +0 -1
  41. package/dist/public/_app/immutable/chunks/index.BLMsg5xO.js +0 -114
  42. package/dist/public/_app/immutable/chunks/paths.DkM5CCyu.js +0 -1
  43. package/dist/public/_app/immutable/entry/app.CtyJC6_D.js +0 -7
  44. package/dist/public/_app/immutable/entry/start.BZY_cJkR.js +0 -1
  45. package/dist/public/_app/immutable/nodes/0.DIJ9OnKa.js +0 -4
  46. package/dist/public/_app/immutable/nodes/3.BYUnCih2.js +0 -18
@@ -1 +1 @@
1
- var b=Object.defineProperty;var E=(t,e,n)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _=(t,e,n)=>(E(t,typeof e!="symbol"?e+"":e,n),n);import{C as $,n as c,D as x,b as C,f as I,E as O,F as v,G as L,H as p,I as M,J as N,K as w,L as P,M as j,N as B,O as D,P as F}from"./scheduler.pWaib8rK.js";const o=new Set;let f;function z(){f={r:0,c:[],p:f}}function A(){f.r||$(f.c),f=f.p}function G(t,e){t&&t.i&&(o.delete(t),t.i(e))}function Q(t,e,n,s){if(t&&t.o){if(o.has(t))return;o.add(t),f.c.push(()=>{o.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}function T(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function W(t){t&&t.c()}function X(t,e){t&&t.l(e)}function H(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),p(()=>{const d=t.$$.on_mount.map(P).filter(v);t.$$.on_destroy?t.$$.on_destroy.push(...d):$(d),t.$$.on_mount=[]}),i.forEach(p)}function J(t,e){const n=t.$$;n.fragment!==null&&(M(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function K(t,e){t.$$.dirty[0]===-1&&(j.push(t),B(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,e,n,s,i,d,h=null,S=[-1]){const u=N;w(t);const a=t.$$={fragment:null,ctx:[],props:d,update:c,not_equal:i,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:x(),dirty:S,skip_bound:!1,root:e.target||u.$$.root};h&&h(a.root);let l=!1;if(a.ctx=n?n(t,e.props||{},(r,g,...m)=>{const y=m.length?m[0]:g;return a.ctx&&i(a.ctx[r],a.ctx[r]=y)&&(!a.skip_bound&&a.bound[r]&&a.bound[r](y),l&&K(t,r)),g}):[],a.update(),l=!0,$(a.before_update),a.fragment=s?s(a.ctx):!1,e.target){if(e.hydrate){D();const r=C(e.target);a.fragment&&a.fragment.l(r),r.forEach(I)}else a.fragment&&a.fragment.c();e.intro&&G(t.$$.fragment),H(t,e.target,e.anchor),F(),O()}w(u)}class Z{constructor(){_(this,"$$");_(this,"$$set")}$destroy(){J(this,1),this.$destroy=c}$on(e,n){if(!v(n))return c;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!L(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const R="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(R);export{Z as S,G as a,W as b,A as c,X as d,J as e,T as f,z as g,Y as i,H as m,Q as t};
1
+ var b=Object.defineProperty;var E=(t,e,n)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _=(t,e,n)=>(E(t,typeof e!="symbol"?e+"":e,n),n);import{C as $,n as c,D as x,b as C,f as I,E as O,F as v,G as L,H as p,I as M,J as N,K as w,L as P,M as j,N as B,O as D,P as F}from"./scheduler.2BOoCPD3.js";const o=new Set;let f;function z(){f={r:0,c:[],p:f}}function A(){f.r||$(f.c),f=f.p}function G(t,e){t&&t.i&&(o.delete(t),t.i(e))}function Q(t,e,n,s){if(t&&t.o){if(o.has(t))return;o.add(t),f.c.push(()=>{o.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}function T(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function W(t){t&&t.c()}function X(t,e){t&&t.l(e)}function H(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),p(()=>{const d=t.$$.on_mount.map(P).filter(v);t.$$.on_destroy?t.$$.on_destroy.push(...d):$(d),t.$$.on_mount=[]}),i.forEach(p)}function J(t,e){const n=t.$$;n.fragment!==null&&(M(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function K(t,e){t.$$.dirty[0]===-1&&(j.push(t),B(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,e,n,s,i,d,h=null,S=[-1]){const u=N;w(t);const a=t.$$={fragment:null,ctx:[],props:d,update:c,not_equal:i,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:x(),dirty:S,skip_bound:!1,root:e.target||u.$$.root};h&&h(a.root);let l=!1;if(a.ctx=n?n(t,e.props||{},(r,g,...m)=>{const y=m.length?m[0]:g;return a.ctx&&i(a.ctx[r],a.ctx[r]=y)&&(!a.skip_bound&&a.bound[r]&&a.bound[r](y),l&&K(t,r)),g}):[],a.update(),l=!0,$(a.before_update),a.fragment=s?s(a.ctx):!1,e.target){if(e.hydrate){D();const r=C(e.target);a.fragment&&a.fragment.l(r),r.forEach(I)}else a.fragment&&a.fragment.c();e.intro&&G(t.$$.fragment),H(t,e.target,e.anchor),F(),O()}w(u)}class Z{constructor(){_(this,"$$");_(this,"$$set")}$destroy(){J(this,1),this.$destroy=c}$on(e,n){if(!v(n))return c;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!L(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const R="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(R);export{Z as S,G as a,W as b,A as c,X as d,J as e,T as f,z as g,Y as i,H as m,Q as t};
@@ -1,4 +1,4 @@
1
- var ve=Object.defineProperty;var $e=(s,t,u)=>t in s?ve(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var J=(s,t,u)=>($e(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as St,c as xt,i as ut,d as wt,f as S,g as U,E as p,h as nt,j as Lt,k as Ht,l as Dt,m as v,n as lt,t as mt,r as at,o as we,q as Me,s as K,u as gt,v as vt,w as B,x as ht,y as It,z as Bt,A as Ot,S as kt,B as be}from"./index.BLMsg5xO.js";var ke=class{constructor(s,t,u,o,n){J(this,"base_center_x");J(this,"base_center_y");J(this,"base_radius");J(this,"initial_angle");J(this,"right_nleft");this.base_center_x=s,this.base_center_y=t,this.base_radius=u,this.initial_angle=o,this.right_nleft=n}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 t=this.lFromU(s),u=this.w2FromU(s),o=this.base_center_x+Math.cos(u)*t,n=this.base_center_y+Math.sin(u)*t;return[o,n]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let u=Math.PI/3,o=u/2,n=this.wFromU(u),g=0;for(;Math.abs(n-s)>1e-4;)n<s?u+=o:u-=o,n=this.wFromU(u),o=o/2,g+=1;return console.log(`dbg072: uFromWslow itcnt ${g}`),u}laptc(s,t,u,o){if(Math.sign(t)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${t} not compatible with right_nleft ${this.right_nleft}`;const n=s+t,g=this.base_center_x+Math.cos(n)*this.base_radius,i=this.base_center_y+Math.sin(n)*this.base_radius,c=n-this.angleSign()*Math.PI/2,d=u*this.base_radius,a=g+Math.cos(c)*d,h=i+Math.sin(c)*d,r=this.lFromU(u)*o,l=u,_=Math.cos(l)*r,L=Math.sin(l)*r;return[a,h,_,L]}};function $t(s,t,u,o,n){return new ke(s,t,u,o,n)}var Ee=class{constructor(){J(this,"mod",1);J(this,"TN",23);J(this,"as",1);J(this,"cx",0);J(this,"cy",0);J(this,"brr",50);J(this,"blr",50);J(this,"ar",54);J(this,"pr",53);J(this,"dr",52);J(this,"br",51);J(this,"bRound",1);J(this,"adt",.5);J(this,"initAngle",0);J(this,"axisAngle",0);J(this,"involArcPairs",1);J(this,"skinThickness",0);J(this,"involuteR",$t(0,0,50,0,!0));J(this,"involuteL",$t(0,0,50,0,!1));J(this,"rud",0);J(this,"rup",0);J(this,"rua",0);J(this,"rwd",0);J(this,"rwp",0);J(this,"rwa",0);J(this,"lud",0);J(this,"lup",0);J(this,"lua",0);J(this,"lwd",0);J(this,"lwp",0);J(this,"lwa",0);J(this,"msg");J(this,"initStep",0);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,t){if(this.initStep<s)throw`err835: checkInitStep for ${t} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,t){this.incInitStep(1),this.mod=s,this.TN=t,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,t){this.incInitStep(2),this.cx=s,this.cy=t}set3CircleRadius(s,t,u,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*t,this.br=this.dr-this.mod*u,this.bRound=o}set4BaseCircles(s,t){this.incInitStep(4),this.brr=s,this.blr=t}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,t){this.incInitStep(6),this.initAngle=s,this.axisAngle=t}set7InvoluteDetails(s,t){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=t}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[v(this.cx,this.cy,this.ar,"Azure"),v(this.cx,this.cy,this.pr,"Azure"),v(this.cx,this.cy,this.dr,"Azure"),v(this.cx,this.cy,this.br,"Azure"),v(this.cx,this.cy,this.brr,"CornFlowerBlue"),v(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=$t(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=$t(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.rud=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,t=this.rwa-this.rwp,u=Math.abs(this.lwa-this.lwp),o=s-t-u;if(o<0)throw`err554: No remaining Addendum reserve ${S(o)}
1
+ var ve=Object.defineProperty;var $e=(s,t,u)=>t in s?ve(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var J=(s,t,u)=>($e(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as St,c as xt,i as ut,d as wt,f as S,g as U,E as p,h as nt,j as Lt,k as Ht,l as Dt,m as v,n as lt,t as mt,r as at,o as we,q as Me,s as K,u as gt,v as vt,w as B,x as ht,y as It,z as Bt,A as Ot,S as kt,B as be}from"./index.Bt0gWcKV.js";var ke=class{constructor(s,t,u,o,n){J(this,"base_center_x");J(this,"base_center_y");J(this,"base_radius");J(this,"initial_angle");J(this,"right_nleft");this.base_center_x=s,this.base_center_y=t,this.base_radius=u,this.initial_angle=o,this.right_nleft=n}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 t=this.lFromU(s),u=this.w2FromU(s),o=this.base_center_x+Math.cos(u)*t,n=this.base_center_y+Math.sin(u)*t;return[o,n]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let u=Math.PI/3,o=u/2,n=this.wFromU(u),g=0;for(;Math.abs(n-s)>1e-4;)n<s?u+=o:u-=o,n=this.wFromU(u),o=o/2,g+=1;return console.log(`dbg072: uFromWslow itcnt ${g}`),u}laptc(s,t,u,o){if(Math.sign(t)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${t} not compatible with right_nleft ${this.right_nleft}`;const n=s+t,g=this.base_center_x+Math.cos(n)*this.base_radius,i=this.base_center_y+Math.sin(n)*this.base_radius,c=n-this.angleSign()*Math.PI/2,d=u*this.base_radius,a=g+Math.cos(c)*d,h=i+Math.sin(c)*d,r=this.lFromU(u)*o,l=u,_=Math.cos(l)*r,L=Math.sin(l)*r;return[a,h,_,L]}};function $t(s,t,u,o,n){return new ke(s,t,u,o,n)}var Ee=class{constructor(){J(this,"mod",1);J(this,"TN",23);J(this,"as",1);J(this,"cx",0);J(this,"cy",0);J(this,"brr",50);J(this,"blr",50);J(this,"ar",54);J(this,"pr",53);J(this,"dr",52);J(this,"br",51);J(this,"bRound",1);J(this,"adt",.5);J(this,"initAngle",0);J(this,"axisAngle",0);J(this,"involArcPairs",1);J(this,"skinThickness",0);J(this,"involuteR",$t(0,0,50,0,!0));J(this,"involuteL",$t(0,0,50,0,!1));J(this,"rud",0);J(this,"rup",0);J(this,"rua",0);J(this,"rwd",0);J(this,"rwp",0);J(this,"rwa",0);J(this,"lud",0);J(this,"lup",0);J(this,"lua",0);J(this,"lwd",0);J(this,"lwp",0);J(this,"lwa",0);J(this,"msg");J(this,"initStep",0);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,t){if(this.initStep<s)throw`err835: checkInitStep for ${t} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,t){this.incInitStep(1),this.mod=s,this.TN=t,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,t){this.incInitStep(2),this.cx=s,this.cy=t}set3CircleRadius(s,t,u,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*t,this.br=this.dr-this.mod*u,this.bRound=o}set4BaseCircles(s,t){this.incInitStep(4),this.brr=s,this.blr=t}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,t){this.incInitStep(6),this.initAngle=s,this.axisAngle=t}set7InvoluteDetails(s,t){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=t}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[v(this.cx,this.cy,this.ar,"Azure"),v(this.cx,this.cy,this.pr,"Azure"),v(this.cx,this.cy,this.dr,"Azure"),v(this.cx,this.cy,this.br,"Azure"),v(this.cx,this.cy,this.brr,"CornFlowerBlue"),v(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=$t(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=$t(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.rud=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,t=this.rwa-this.rwp,u=Math.abs(this.lwa-this.lwp),o=s-t-u;if(o<0)throw`err554: No remaining Addendum reserve ${S(o)}
2
2
  `;const n=this.as*(1-this.adt),g=this.rwp-this.rwd,i=Math.abs(this.lwp-this.lwd),c=n-g-i;if(c<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${S(c)} compare to bRound ${S(this.bRound)}
3
3
  `}getToothRef(){const s=6*this.involArcPairs,t=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const u=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,n=this.initAngle+t*this.as,g=$t(this.cx,this.cy,this.brr,n-this.rwp,!0),[i,c]=g.ptc(this.rud+0*u),d=U(i,c,"Gold");for(let f=0;f<s;f++){const[r,l]=g.ptc(this.rud+(f+1)*u);d.addSegStrokeA(r,l)}const a=n+this.as*this.adt,h=$t(this.cx,this.cy,this.blr,a-this.lwp,!1);for(let f=0;f<s+1;f++){const[r,l]=h.ptc(this.lud+(s-f)*o);d.addSegStrokeA(r,l)}return d.closeSegStroke(),d}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,t=this.lwd-this.lwp,u=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>u-this.br)throw`err409: getProfile bRound ${S(this.bRound)} too large for erdr ${S(u)} and br ${S(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${S(this.bRound)} too large for eldr ${S(o)} and br ${S(this.br)}`;const n=(this.rua-this.rud)/this.involArcPairs,g=(this.lua-this.lud)/this.involArcPairs,i=lt(this.cx,this.cy),c=i.translatePolar(this.initAngle+s,this.br),d=U(c.cx,c.cy);for(let a=0;a<this.TN;a++){const h=this.initAngle+a*this.as,f=i.translatePolar(h+s,this.br);d.addSegStrokeA(f.cx,f.cy).addCornerRounded(this.bRound);const r=$t(this.cx,this.cy,this.brr,h-this.rwp,!0),[l,_]=r.ptc(this.rud),L=r.ptcta(this.rud),D=lt(l,_).translatePolar(L-Math.PI/2,this.skinThickness);d.addSegStrokeA(D.cx,D.cy);for(let M=0;M<this.involArcPairs;M++){const G=this.rud+M*n,[x,C]=r.ptc(G+n),Z=r.ptcta(G),m=r.ptcta(G+n)+Math.PI,R=lt(x,C).translatePolar(Z-Math.PI/2,this.skinThickness);d.addPointA(R.cx,R.cy).addSeg2Arcs(Z,m)}const A=h+this.as*this.adt,w=$t(this.cx,this.cy,this.blr,A-this.lwp,!1),H=this.lud+this.involArcPairs*g,[k,$]=w.ptc(H),P=w.ptcta(H)+Math.PI,b=lt(k,$).translatePolar(P-Math.PI/2,this.skinThickness);d.addSegStrokeA(b.cx,b.cy);for(let M=0;M<this.involArcPairs;M++){const G=this.lud+(this.involArcPairs-M)*g,[x,C]=w.ptc(G-g),Z=w.ptcta(G)+Math.PI,m=w.ptcta(G-g),R=lt(x,C).translatePolar(Z-Math.PI/2,this.skinThickness);d.addPointA(R.cx,R.cy).addSeg2Arcs(Z,m)}const V=i.translatePolar(A+t,this.br);d.addSegStrokeA(V.cx,V.cy).addCornerRounded(this.bRound)}return d.closeSegStroke(),d}getMsg(){return this.msg}};function Zt(){return new Ee}function Ae(s,t,u,o){s.checkInitStep(1,"helper.gw2center-1"),t.checkInitStep(1,"helper.gw2center-2");const n=s.pr+t.pr+o,g=s.cx+n*Math.cos(u),i=s.cy+n*Math.sin(u);return[g,i,n]}function Re(s,t,u,o,n,g,i,c,d){s.checkInitStep(3,"helper.baseCircles-1"),t.checkInitStep(3,"helper.baseCircles-2");let a=u,h=n,f=o,r=g;const l=c,_=d;return l===0&&(t.TN>s.TN?(a=s.dr,h=a*t.TN/s.TN):(h=t.dr,a=h*s.TN/t.TN)),_===0&&(t.TN>s.TN?(f=s.dr,r=f*t.TN/s.TN):(r=t.dr,f=r*s.TN/t.TN)),i===1&&(f=a,r=h),[a,f,h,r]}var Ne=class{constructor(s,t,u,o,n,g){J(this,"gw1");J(this,"gw2");J(this,"initAngle1");J(this,"angleCenterCenter");J(this,"interAxis");J(this,"rightLeftCenter2");J(this,"msg");J(this,"apr");J(this,"apl");J(this,"lBDr",0);J(this,"lBDl",0);J(this,"laStartRr1",0);J(this,"laStartRr2",0);J(this,"laStartRl1",0);J(this,"laStartRl2",0);J(this,"aFODr1",0);J(this,"aFODr2",0);J(this,"aFODl1",0);J(this,"aFODl2",0);J(this,"lasr1",0);J(this,"lasr2",0);J(this,"lasl1",0);J(this,"lasl2",0);J(this,"firstToothUr1",0);J(this,"firstToothUl1",0);J(this,"ftdr1",0);J(this,"ftdl1",0);this.gw1=s,this.gw2=t,this.initAngle1=u,this.angleCenterCenter=o,this.interAxis=n,this.rightLeftCenter2=g,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 ${S(this.interAxis)} is too large compare to gw1.ar ${S(this.gw1.ar)} and gw2.ar ${S(this.gw2.ar)}
4
4
  `),ht(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} = ${S(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${S(this.gw1.brr)}/${S(this.gw2.brr)} = ${S(this.gw1.brr/this.gw2.brr)}
@@ -0,0 +1 @@
1
+ var s;const e=((s=globalThis.__sveltekit_3bslqv)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_3bslqv)==null?void 0:a.assets)??e;export{t as a,e as b};
@@ -1 +1 @@
1
- function C(){}function D(t,n){for(const e in n)t[e]=n[e];return t}function P(t){return t()}function K(){return Object.create(null)}function B(t){t.forEach(P)}function Q(t){return typeof t=="function"}function R(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let h;function V(t,n){return t===n?!0:(h||(h=document.createElement("a")),h.href=n,t===h.href)}function X(t){return Object.keys(t).length===0}function N(t,...n){if(t==null){for(const i of n)i(void 0);return C}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Y(t){let n;return N(t,e=>n=e)(),n}function Z(t,n,e){t.$$.on_destroy.push(N(n,e))}function $(t,n,e,i){if(t){const r=A(t,n,e,i);return t[0](r)}}function A(t,n,e,i){return t[1]&&i?D(e.ctx.slice(),t[1](i(n))):e.ctx}function tt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(n.dirty.length,r.length);for(let u=0;u<c;u+=1)s[u]=n.dirty[u]|r[u];return s}return n.dirty|r}return n.dirty}function nt(t,n,e,i,r,s){if(r){const c=A(n,e,i,s);t.p(c,r)}}function et(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let i=0;i<e;i++)n[i]=-1;return n}return-1}function it(t,n,e){return t.set(e),n}let p=!1;function rt(){p=!0}function ct(){p=!1}function I(t,n,e,i){for(;t<n;){const r=t+(n-t>>1);e(r)<=i?t=r+1:n=r}return t}function L(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let o=0;o<n.length;o++){const a=n[o];a.claim_order!==void 0&&l.push(a)}n=l}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let r=0;for(let l=0;l<n.length;l++){const o=n[l].claim_order,a=(r>0&&n[e[r]].claim_order<=o?r+1:I(1,r,q=>n[e[q]].claim_order,o))-1;i[l]=e[a]+1;const E=a+1;e[E]=l,r=Math.max(E,r)}const s=[],c=[];let u=n.length-1;for(let l=e[r]+1;l!=0;l=i[l-1]){for(s.push(n[l-1]);u>=l;u--)c.push(n[u]);u--}for(;u>=0;u--)c.push(n[u]);s.reverse(),c.sort((l,o)=>l.claim_order-o.claim_order);for(let l=0,o=0;l<c.length;l++){for(;o<s.length&&c[l].claim_order>=s[o].claim_order;)o++;const a=o<s.length?s[o]:null;t.insertBefore(c[l],a)}}function M(t,n){if(p){for(L(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function lt(t,n,e){p&&!e?M(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function ut(t){t.parentNode&&t.parentNode.removeChild(t)}function st(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function O(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function ot(){return k(" ")}function at(){return k("")}function ft(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function _t(t){return function(n){return n.preventDefault(),t.call(this,n)}}function dt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function ht(t){return t.dataset.svelteH}function mt(t){return t===""?null:+t}function pt(t){return Array.from(t.childNodes)}function T(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function j(t,n,e,i,r=!1){T(t);const s=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const u=t[c];if(n(u)){const l=e(u);return l===void 0?t.splice(c,1):t[c]=l,r||(t.claim_info.last_index=c),u}}for(let c=t.claim_info.last_index-1;c>=0;c--){const u=t[c];if(n(u)){const l=e(u);return l===void 0?t.splice(c,1):t[c]=l,r?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,u}}return i()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function H(t,n,e,i){return j(t,r=>r.nodeName===n,r=>{const s=[];for(let c=0;c<r.attributes.length;c++){const u=r.attributes[c];e[u.name]||s.push(u.name)}s.forEach(c=>r.removeAttribute(c))},()=>i(n))}function bt(t,n,e){return H(t,n,e,O)}function z(t,n){return j(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>k(n),!0)}function yt(t){return z(t," ")}function gt(t,n){n=""+n,t.data!==n&&(t.data=n)}function xt(t,n){t.value=n??""}function vt(t,n,e,i){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function kt(t,n,e){for(let i=0;i<t.options.length;i+=1){const r=t.options[i];if(r.__value===n){r.selected=!0;return}}(!e||n!==void 0)&&(t.selectedIndex=-1)}function Et(t){const n=t.querySelector(":checked");return n&&n.__value}function wt(t,n,e){t.classList.toggle(n,!!e)}function F(t,n,{bubbles:e=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:n,bubbles:e,cancelable:i})}function Nt(t,n){return new t(n)}let m;function y(t){m=t}function b(){if(!m)throw new Error("Function called outside component initialization");return m}function At(t){b().$$.on_mount.push(t)}function jt(t){b().$$.after_update.push(t)}function St(t){b().$$.on_destroy.push(t)}function qt(){const t=b();return(n,e,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[n];if(r){const s=F(n,e,{cancelable:i});return r.slice().forEach(c=>{c.call(t,s)}),!s.defaultPrevented}return!0}}const d=[],w=[];let _=[];const x=[],S=Promise.resolve();let v=!1;function U(){v||(v=!0,S.then(G))}function Ct(){return U(),S}function W(t){_.push(t)}function Dt(t){x.push(t)}const g=new Set;let f=0;function G(){if(f!==0)return;const t=m;do{try{for(;f<d.length;){const n=d[f];f++,y(n),J(n.$$)}}catch(n){throw d.length=0,f=0,n}for(y(null),d.length=0,f=0;w.length;)w.pop()();for(let n=0;n<_.length;n+=1){const e=_[n];g.has(e)||(g.add(e),e())}_.length=0}while(d.length);for(;x.length;)x.pop()();v=!1,g.clear(),y(t)}function J(t){if(t.fragment!==null){t.update(),B(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(W)}}function Pt(t){const n=[],e=[];_.forEach(i=>t.indexOf(i)===-1?n.push(i):e.push(i)),e.forEach(i=>i()),_=n}export{St as $,et as A,tt as B,B as C,K as D,G as E,Q as F,X as G,W as H,Pt as I,m as J,y as K,P as L,d as M,U as N,rt as O,ct as P,Y as Q,V as R,ft as S,Dt as T,wt as U,xt as V,qt as W,mt as X,Et as Y,it as Z,kt as _,ot as a,_t as a0,pt as b,bt as c,z as d,O as e,ut as f,yt as g,M as h,lt as i,gt as j,Z as k,ht as l,dt as m,C as n,st as o,at as p,jt as q,At as r,R as s,k as t,vt as u,w as v,Nt as w,Ct as x,$ as y,nt as z};
1
+ function C(){}function D(t,n){for(const e in n)t[e]=n[e];return t}function P(t){return t()}function K(){return Object.create(null)}function B(t){t.forEach(P)}function Q(t){return typeof t=="function"}function R(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let h;function V(t,n){return t===n?!0:(h||(h=document.createElement("a")),h.href=n,t===h.href)}function X(t){return Object.keys(t).length===0}function N(t,...n){if(t==null){for(const i of n)i(void 0);return C}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Y(t){let n;return N(t,e=>n=e)(),n}function Z(t,n,e){t.$$.on_destroy.push(N(n,e))}function $(t,n,e,i){if(t){const r=A(t,n,e,i);return t[0](r)}}function A(t,n,e,i){return t[1]&&i?D(e.ctx.slice(),t[1](i(n))):e.ctx}function tt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(n.dirty.length,r.length);for(let u=0;u<c;u+=1)s[u]=n.dirty[u]|r[u];return s}return n.dirty|r}return n.dirty}function nt(t,n,e,i,r,s){if(r){const c=A(n,e,i,s);t.p(c,r)}}function et(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let i=0;i<e;i++)n[i]=-1;return n}return-1}function it(t,n,e){return t.set(e),n}let p=!1;function rt(){p=!0}function ct(){p=!1}function I(t,n,e,i){for(;t<n;){const r=t+(n-t>>1);e(r)<=i?t=r+1:n=r}return t}function L(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let o=0;o<n.length;o++){const a=n[o];a.claim_order!==void 0&&l.push(a)}n=l}const e=new Int32Array(n.length+1),i=new Int32Array(n.length);e[0]=-1;let r=0;for(let l=0;l<n.length;l++){const o=n[l].claim_order,a=(r>0&&n[e[r]].claim_order<=o?r+1:I(1,r,q=>n[e[q]].claim_order,o))-1;i[l]=e[a]+1;const E=a+1;e[E]=l,r=Math.max(E,r)}const s=[],c=[];let u=n.length-1;for(let l=e[r]+1;l!=0;l=i[l-1]){for(s.push(n[l-1]);u>=l;u--)c.push(n[u]);u--}for(;u>=0;u--)c.push(n[u]);s.reverse(),c.sort((l,o)=>l.claim_order-o.claim_order);for(let l=0,o=0;l<c.length;l++){for(;o<s.length&&c[l].claim_order>=s[o].claim_order;)o++;const a=o<s.length?s[o]:null;t.insertBefore(c[l],a)}}function M(t,n){if(p){for(L(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function lt(t,n,e){p&&!e?M(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function ut(t){t.parentNode&&t.parentNode.removeChild(t)}function st(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function O(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function ot(){return k(" ")}function at(){return k("")}function ft(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function _t(t){return function(n){return n.preventDefault(),t.call(this,n)}}function dt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function ht(t){return t.dataset.svelteH}function mt(t){return t===""?null:+t}function pt(t){return Array.from(t.childNodes)}function T(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function j(t,n,e,i,r=!1){T(t);const s=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const u=t[c];if(n(u)){const l=e(u);return l===void 0?t.splice(c,1):t[c]=l,r||(t.claim_info.last_index=c),u}}for(let c=t.claim_info.last_index-1;c>=0;c--){const u=t[c];if(n(u)){const l=e(u);return l===void 0?t.splice(c,1):t[c]=l,r?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,u}}return i()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function H(t,n,e,i){return j(t,r=>r.nodeName===n,r=>{const s=[];for(let c=0;c<r.attributes.length;c++){const u=r.attributes[c];e[u.name]||s.push(u.name)}s.forEach(c=>r.removeAttribute(c))},()=>i(n))}function bt(t,n,e){return H(t,n,e,O)}function z(t,n){return j(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>k(n),!0)}function yt(t){return z(t," ")}function gt(t,n){n=""+n,t.data!==n&&(t.data=n)}function xt(t,n){t.value=n??""}function vt(t,n,e,i){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,"")}function kt(t,n,e){for(let i=0;i<t.options.length;i+=1){const r=t.options[i];if(r.__value===n){r.selected=!0;return}}(!e||n!==void 0)&&(t.selectedIndex=-1)}function Et(t){const n=t.querySelector(":checked");return n&&n.__value}function wt(t,n,e){t.classList.toggle(n,!!e)}function F(t,n,{bubbles:e=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:n,bubbles:e,cancelable:i})}function Nt(t,n){return new t(n)}let m;function y(t){m=t}function b(){if(!m)throw new Error("Function called outside component initialization");return m}function At(t){b().$$.on_mount.push(t)}function jt(t){b().$$.after_update.push(t)}function St(t){b().$$.on_destroy.push(t)}function qt(){const t=b();return(n,e,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[n];if(r){const s=F(n,e,{cancelable:i});return r.slice().forEach(c=>{c.call(t,s)}),!s.defaultPrevented}return!0}}const d=[],w=[];let _=[];const x=[],S=Promise.resolve();let v=!1;function U(){v||(v=!0,S.then(G))}function Ct(){return U(),S}function W(t){_.push(t)}function Dt(t){x.push(t)}const g=new Set;let f=0;function G(){if(f!==0)return;const t=m;do{try{for(;f<d.length;){const n=d[f];f++,y(n),J(n.$$)}}catch(n){throw d.length=0,f=0,n}for(y(null),d.length=0,f=0;w.length;)w.pop()();for(let n=0;n<_.length;n+=1){const e=_[n];g.has(e)||(g.add(e),e())}_.length=0}while(d.length);for(;x.length;)x.pop()();v=!1,g.clear(),y(t)}function J(t){if(t.fragment!==null){t.update(),B(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(W)}}function Pt(t){const n=[],e=[];_.forEach(i=>t.indexOf(i)===-1?n.push(i):e.push(i)),e.forEach(i=>i()),_=n}export{St as $,et as A,tt as B,B as C,K as D,G as E,Q as F,X as G,W as H,Pt as I,m as J,y as K,P as L,d as M,U as N,rt as O,ct as P,Y as Q,V as R,ft as S,Dt as T,wt as U,xt as V,qt as W,mt as X,Et as Y,it as Z,kt as _,ot as a,_t as a0,pt as b,bt as c,z as d,O as e,ut as f,yt as g,M as h,lt as i,gt as j,Z as k,ht as l,dt as m,C as n,st as o,at as p,jt as q,At as r,R as s,k as t,vt as u,w as v,Nt as w,Ct as x,$ as y,nt as z};
@@ -1 +1 @@
1
- import{s as e}from"./entry.D4XMTNnT.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./entry.EJ8w8loJ.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -0,0 +1,2 @@
1
+ const __vite__fileDeps=["_app/immutable/nodes/0.D8PdTsfL.js","_app/immutable/chunks/scheduler.2BOoCPD3.js","_app/immutable/chunks/index.BugmtA6_.js","_app/immutable/chunks/index.Bt0gWcKV.js","_app/immutable/chunks/paths.DFgZUXqx.js","_app/immutable/assets/0.BNk8pMG6.css","_app/immutable/nodes/1.DzcoqOCn.js","_app/immutable/chunks/stores.C50YK_rx.js","_app/immutable/chunks/entry.EJ8w8loJ.js","_app/immutable/nodes/2.CueYTOej.js","_app/immutable/chunks/makeList.REsiyAUZ.js","_app/immutable/assets/2.CTp7BhB8.css","_app/immutable/nodes/3.DaQpb-Lv.js","_app/immutable/assets/3.Bup7ghXO.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{s as N,a as U,p as h,g as j,i as b,f as p,q as B,r as W,e as z,c as F,b as G,m as S,u as m,t as H,d as J,j as K,v as A,w as k,x as Q}from"../chunks/scheduler.2BOoCPD3.js";import{S as X,i as Y,t as g,c as L,a as w,g as R,b as v,d as D,m as E,e as y}from"../chunks/index.BugmtA6_.js";const Z="modulepreload",M=function(a){return"/"+a},I={},P=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),t=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=Promise.all(n.map(i=>{if(i=M(i),i in I)return;I[i]=!0;const l=i.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${u}`))return;const o=document.createElement("link");if(o.rel=l?"stylesheet":Z,l||(o.as="script",o.crossOrigin=""),o.href=i,t&&o.setAttribute("nonce",t),document.head.appendChild(o),l)return new Promise((_,d)=>{o.addEventListener("load",_),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(a){let e,n,r;var s=a[1][0];function f(t,i){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,f(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][0])){if(e){R();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=k(s,f(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};i&8&&(l.data=t[3]),i&4&&(l.form=t[2]),e.$set(l)}},i(t){r||(e&&w(e.$$.fragment,t),r=!0)},o(t){e&&g(e.$$.fragment,t),r=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,r;var s=a[1][0];function f(t,i){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,f(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][0])){if(e){R();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=k(s,f(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};i&8&&(l.data=t[3]),i&8215&&(l.$$scope={dirty:i,ctx:t}),e.$set(l)}},i(t){r||(e&&w(e.$$.fragment,t),r=!0)},o(t){e&&g(e.$$.fragment,t),r=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,r;var s=a[1][1];function f(t,i){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,f(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&D(e.$$.fragment,t),n=h()},m(t,i){e&&E(e,t,i),b(t,n,i),r=!0},p(t,i){if(i&2&&s!==(s=t[1][1])){if(e){R();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=k(s,f(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};i&16&&(l.data=t[4]),i&4&&(l.form=t[2]),e.$set(l)}},i(t){r||(e&&w(e.$$.fragment,t),r=!0)},o(t){e&&g(e.$$.fragment,t),r=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function O(a){let e,n=a[6]&&T(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(r){e=F(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(p),this.h()},h(){S(e,"id","svelte-announcer"),S(e,"aria-live","assertive"),S(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(r,s){b(r,e,s),n&&n.m(e,null)},p(r,s){r[6]?n?n.p(r,s):(n=T(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&p(e),n&&n.d()}}}function T(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,r){b(n,e,r)},p(n,r){r&128&&K(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,r,s,f;const t=[x,$],i=[];function l(o,_){return o[1][1]?0:1}e=l(a),n=i[e]=t[e](a);let u=a[5]&&O(a);return{c(){n.c(),r=U(),u&&u.c(),s=h()},l(o){n.l(o),r=j(o),u&&u.l(o),s=h()},m(o,_){i[e].m(o,_),b(o,r,_),u&&u.m(o,_),b(o,s,_),f=!0},p(o,[_]){let d=e;e=l(o),e===d?i[e].p(o,_):(R(),g(i[d],1,1,()=>{i[d]=null}),L(),n=i[e],n?n.p(o,_):(n=i[e]=t[e](o),n.c()),w(n,1),n.m(r.parentNode,r)),o[5]?u?u.p(o,_):(u=O(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i(o){f||(w(n),f=!0)},o(o){g(n),f=!1},d(o){o&&(p(r),p(s)),i[e].d(o),u&&u.d(o)}}}function ne(a,e,n){let{stores:r}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:i}=e,{data_0:l=null}=e,{data_1:u=null}=e;B(r.page.notify);let o=!1,_=!1,d=null;W(()=>{const c=r.page.subscribe(()=>{o&&(n(6,_=!0),Q().then(()=>{n(7,d=document.title||"untitled page")}))});return n(5,o=!0),c});function V(c){A[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function q(c){A[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function C(c){A[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,r=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,i=c.form),"data_0"in c&&n(3,l=c.data_0),"data_1"in c&&n(4,u=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&r.page.set(s)},[t,f,i,l,u,o,_,d,r,s,V,q,C]}class oe extends X{constructor(e){super(),Y(this,e,ne,te,N,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>P(()=>import("../nodes/0.D8PdTsfL.js"),__vite__mapDeps([0,1,2,3,4,5])),()=>P(()=>import("../nodes/1.DzcoqOCn.js"),__vite__mapDeps([6,1,2,7,8,4])),()=>P(()=>import("../nodes/2.CueYTOej.js"),__vite__mapDeps([9,1,3,2,10,4,11])),()=>P(()=>import("../nodes/3.DaQpb-Lv.js"),__vite__mapDeps([12,10,3,8,1,4,2,7,13]))],le=[],fe={"/":[2],"/[...design]":[3]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
@@ -0,0 +1 @@
1
+ import{a as t}from"../chunks/entry.EJ8w8loJ.js";export{t as start};
@@ -0,0 +1,4 @@
1
+ import{s as Q,y as V,e as h,a as j,c as v,l as L,g as $,b as A,f as a,m as E,i as u,h as H,z as G,A as J,B as K,o as U,t as X,d as Y,n as Z}from"../chunks/scheduler.2BOoCPD3.js";import{S as ee,i as te,a as se,t as ie}from"../chunks/index.BugmtA6_.js";import{e as W,C as le}from"../chunks/index.Bt0gWcKV.js";import{b as ne}from"../chunks/paths.DFgZUXqx.js";const ae=!0,$e=Object.freeze(Object.defineProperty({__proto__:null,prerender:ae},Symbol.toStringTag,{value:"Module"})),re="designix-ui",oe="0.5.5",ce="The svelte-kit app built on top of designix",pe={type:"git",url:"git+https://github.com/charlyoleg2/parametrix.git"},ue="https://charlyoleg2.github.io/parametrix/",he="charlyoleg2",ve="ISC",de=["cad","programmatic","2D","circle","stroke","arc","gear"],fe="module",me={useTabs:!0,singleQuote:!0,trailingComma:"none",printWidth:100,plugins:["prettier-plugin-svelte"],overrides:[{files:"*.svelte",options:{parser:"svelte"}}]},ge={cp_pgdsvg:"shx cp -r ../../node_modules/designix/dist/pgdsvg static/",dev:"vite dev",build:"vite build",preview:"vite preview",check:"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","test:unit":"vitest","test:unit:once":"vitest --run",lint:"prettier --check . && eslint .",ci:"run-s cp_pgdsvg build lint check test:unit:once",format:"prettier --write .",clean:"shx rm -fr .svelte-kit build node_modules static/pgdsvg"},_e={designix:"^0.5.36",geometrix:"^0.5.35",geomui:"^0.5.37"},xe={"@sveltejs/adapter-auto":"^3.2.0","@sveltejs/adapter-static":"^3.0.1","@sveltejs/kit":"^2.5.7","@sveltejs/vite-plugin-svelte":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.0.1","@typescript-eslint/parser":"^7.0.1",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.38.0","npm-run-all":"^4.1.5",prettier:"^3.2.5","prettier-plugin-svelte":"^3.2.3",sass:"^1.77.0",shx:"^0.3.4",svelte:"^4.2.16","svelte-check":"^3.7.1",tslib:"^2.6.2",typescript:"^5.4.5",vite:"^5.2.11",vitest:"^1.6.0"},ye={name:re,version:oe,description:ce,private:!0,repository:pe,homepage:ue,author:he,license:ve,keywords:de,type:fe,prettier:me,scripts:ge,dependencies:_e,devDependencies:xe};function q(c,i,p){const r=c.slice();return r[3]=i[p],r}function F(c){let i=c[3]+"",p,r;return{c(){p=X(i),r=h("br")},l(s){p=Y(s,i),r=v(s,"BR",{})},m(s,m){u(s,p,m),u(s,r,m)},p:Z,d(s){s&&(a(p),a(r))}}}function be(c){let i,p="Welcome to designix-ui",r,s,m=`Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library
2
+ <a href="https://www.npmjs.com/">geomui</a>.`,g,f,R=`<a href="${`${ne}/`}" class="svelte-im9xuh">index: list of designs</a>`,M,_,S,d,b,B=`<a href="https://github.com/charlyoleg2/parametrix">designix-ui</a>, a minimalist showcase
3
+ of
4
+ <a href="https://www.npmjs.com/">geomui</a>.`,D,x,k,N="Designix-ui version",O,w,C;const z=c[2].default,o=V(z,c,c[1],null);let T=W(c[0]),l=[];for(let e=0;e<T.length;e+=1)l[e]=F(q(c,T,e));return{c(){i=h("h1"),i.textContent=p,r=j(),s=h("h6"),s.innerHTML=m,g=j(),f=h("nav"),f.innerHTML=R,M=j(),_=h("main"),o&&o.c(),S=j(),d=h("footer"),b=h("article"),b.innerHTML=B,D=j(),x=h("article"),k=h("h3"),k.textContent=N,O=j(),w=h("code");for(let e=0;e<l.length;e+=1)l[e].c();this.h()},l(e){i=v(e,"H1",{class:!0,"data-svelte-h":!0}),L(i)!=="svelte-1ow6r3d"&&(i.textContent=p),r=$(e),s=v(e,"H6",{class:!0,"data-svelte-h":!0}),L(s)!=="svelte-7mn22s"&&(s.innerHTML=m),g=$(e),f=v(e,"NAV",{class:!0,"data-svelte-h":!0}),L(f)!=="svelte-ww4mf0"&&(f.innerHTML=R),M=$(e),_=v(e,"MAIN",{class:!0});var n=A(_);o&&o.l(n),n.forEach(a),S=$(e),d=v(e,"FOOTER",{class:!0});var t=A(d);b=v(t,"ARTICLE",{"data-svelte-h":!0}),L(b)!=="svelte-1pwhz7h"&&(b.innerHTML=B),D=$(t),x=v(t,"ARTICLE",{});var y=A(x);k=v(y,"H3",{"data-svelte-h":!0}),L(k)!=="svelte-18yz28i"&&(k.textContent=N),O=$(y),w=v(y,"CODE",{});var P=A(w);for(let I=0;I<l.length;I+=1)l[I].l(P);P.forEach(a),y.forEach(a),t.forEach(a),this.h()},h(){E(i,"class","svelte-im9xuh"),E(s,"class","svelte-im9xuh"),E(f,"class","svelte-im9xuh"),E(_,"class","svelte-im9xuh"),E(d,"class","svelte-im9xuh")},m(e,n){u(e,i,n),u(e,r,n),u(e,s,n),u(e,g,n),u(e,f,n),u(e,M,n),u(e,_,n),o&&o.m(_,null),u(e,S,n),u(e,d,n),H(d,b),H(d,D),H(d,x),H(x,k),H(x,O),H(x,w);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(w,null);C=!0},p(e,[n]){if(o&&o.p&&(!C||n&2)&&G(o,z,e,e[1],C?K(z,e[1],n,null):J(e[1]),null),n&1){T=W(e[0]);let t;for(t=0;t<T.length;t+=1){const y=q(e,T,t);l[t]?l[t].p(y,n):(l[t]=F(y),l[t].c(),l[t].m(w,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=T.length}},i(e){C||(se(o,e),C=!0)},o(e){ie(o,e),C=!1},d(e){e&&(a(i),a(r),a(s),a(g),a(f),a(M),a(_),a(S),a(d)),o&&o.d(e),U(l,e)}}}function ke(c,i,p){let{$$slots:r={},$$scope:s}=i;const m=le(ye);return c.$$set=g=>{"$$scope"in g&&p(1,s=g.$$scope)},[m,s,r]}class He extends ee{constructor(i){super(),te(this,i,ke,be,Q,{})}}export{He as component,$e as universal};
@@ -1 +1 @@
1
- import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.pWaib8rK.js";import{S as q,i as y}from"../chunks/index.DzDRugVt.js";import{p as C}from"../chunks/stores.D1ybwCxw.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component};
1
+ import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.2BOoCPD3.js";import{S as q,i as y}from"../chunks/index.BugmtA6_.js";import{p as C}from"../chunks/stores.C50YK_rx.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component};
@@ -1 +1 @@
1
- import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.pWaib8rK.js";import{e as E}from"../chunks/index.BLMsg5xO.js";import{S,i as $}from"../chunks/index.DzDRugVt.js";import{d as q}from"../chunks/makeList.CReOpeHP.js";import{b as A}from"../chunks/paths.DkM5CCyu.js";function H(r,e,l){const o=r.slice();return o[0]=e[l],o}function I(r){let e,l,o;return{c(){e=_("li"),l=_("a"),o=L(r[0]),this.h()},l(a){e=d(a,"LI",{});var n=p(e);l=d(n,"A",{href:!0});var s=p(l);o=k(s,r[0]),s.forEach(c),n.forEach(c),this.h()},h(){v(l,"href",`${A}/${r[0]}`)},m(a,n){f(a,e,n),u(e,l),u(l,o)},p:m,d(a){a&&c(e)}}}function N(r){let e,l="List of designs:",o,a,n=E(q),s=[];for(let t=0;t<n.length;t+=1)s[t]=I(H(r,n,t));return{c(){e=_("h2"),e.textContent=l,o=x(),a=_("ol");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=d(t,"H2",{class:!0,"data-svelte-h":!0}),b(e)!=="svelte-96cxme"&&(e.textContent=l),o=y(t),a=d(t,"OL",{});var h=p(a);for(let i=0;i<s.length;i+=1)s[i].l(h);h.forEach(c),this.h()},h(){v(e,"class","svelte-1r3d1r")},m(t,h){f(t,e,h),f(t,o,h),f(t,a,h);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,null)},p:m,i:m,o:m,d(t){t&&(c(e),c(o),c(a)),C(s,t)}}}class B extends S{constructor(e){super(),$(this,e,null,N,g,{})}}export{B as component};
1
+ import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.2BOoCPD3.js";import{e as E}from"../chunks/index.Bt0gWcKV.js";import{S,i as $}from"../chunks/index.BugmtA6_.js";import{d as q}from"../chunks/makeList.REsiyAUZ.js";import{b as A}from"../chunks/paths.DFgZUXqx.js";function H(r,e,l){const o=r.slice();return o[0]=e[l],o}function I(r){let e,l,o;return{c(){e=_("li"),l=_("a"),o=L(r[0]),this.h()},l(a){e=d(a,"LI",{});var n=p(e);l=d(n,"A",{href:!0});var s=p(l);o=k(s,r[0]),s.forEach(c),n.forEach(c),this.h()},h(){v(l,"href",`${A}/${r[0]}`)},m(a,n){f(a,e,n),u(e,l),u(l,o)},p:m,d(a){a&&c(e)}}}function N(r){let e,l="List of designs:",o,a,n=E(q),s=[];for(let t=0;t<n.length;t+=1)s[t]=I(H(r,n,t));return{c(){e=_("h2"),e.textContent=l,o=x(),a=_("ol");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=d(t,"H2",{class:!0,"data-svelte-h":!0}),b(e)!=="svelte-96cxme"&&(e.textContent=l),o=y(t),a=d(t,"OL",{});var h=p(a);for(let i=0;i<s.length;i+=1)s[i].l(h);h.forEach(c),this.h()},h(){v(e,"class","svelte-1r3d1r")},m(t,h){f(t,e,h),f(t,o,h),f(t,a,h);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,null)},p:m,i:m,o:m,d(t){t&&(c(e),c(o),c(a)),C(s,t)}}}class B extends S{constructor(e){super(),$(this,e,null,N,g,{})}}export{B as component};
@@ -0,0 +1,18 @@
1
+ import{a as Pt,b as wl}from"../chunks/makeList.REsiyAUZ.js";import{H as Ol,w as ul,g as Cl}from"../chunks/entry.EJ8w8loJ.js";import{Q as Dl,s as ze,p as st,i as J,n as Ue,f as k,e as _,c as p,b as S,R as ht,m as f,h as o,S as G,v as je,a as I,g as P,T as Pe,o as Xe,y as El,t as K,l as oe,d as q,U as Be,z as Ll,A as Sl,B as jl,j as ve,C as Ye,V as ke,k as at,r as Et,W as ml,X as _t,Y as Ot,Z as Il,H as bt,_ as ot,$ as Pl,a0 as Al}from"../chunks/scheduler.2BOoCPD3.js";import{S as Me,i as ye,f as Ae,b as De,d as Ee,m as Le,a as Te,t as we,e as Se,g as Ul,c as zl}from"../chunks/index.BugmtA6_.js";import{e as Ce,D as Ml,F as dl,G as yl,H as hl,I as _l,P as wt,J as Fl,K as Nt,L as ct,M as Bl,N as Rl,O as Ct,Q as Hl,R as At,f as dt,r as Dt,T as Ze,U as Vl,V as Wl,W as Xl,X as Yl,Y as Kl}from"../chunks/index.Bt0gWcKV.js";import{b as vt}from"../chunks/paths.DFgZUXqx.js";import{p as ql}from"../chunks/stores.C50YK_rx.js";function Gl(t,e){throw new Ol(t,e)}new TextEncoder;function Zl({params:t}){const e=t.design;if(Object.keys(Pt).includes(e))return{pageDef:Pt[e],allLink:wl};Gl(404,"Design undefined!")}const vs=Object.freeze(Object.defineProperty({__proto__:null,load:Zl},Symbol.toStringTag,{value:"Module"})),Ke=ul({});function pl(t,e,l){const n=Dl(Ke);if(Object.keys(n).includes(t)){const s=n[t],a=Object.keys(s);for(const c of Object.keys(e))a.includes(c)?l&&(s[c]=e[c]):s[c]=e[c];n[t]=s}else n[t]=e;Ke.set(n)}function Jl(t){const e=t.pDef.partName,l={};for(const n of t.pDef.params)l[n.name]=n.init;pl(e,l,!1)}function Ut(t){let e,l,n,r,s,a,c;return{c(){e=_("aside"),l=_("div"),n=_("button"),r=_("img"),this.h()},l(u){e=p(u,"ASIDE",{class:!0});var i=S(e);l=p(i,"DIV",{class:!0});var m=S(l);n=p(m,"BUTTON",{class:!0});var h=S(n);r=p(h,"IMG",{src:!0,alt:!0}),h.forEach(k),m.forEach(k),i.forEach(k),this.h()},h(){ht(r.src,s=t[1])||f(r,"src",s),f(r,"alt",t[1]),f(n,"class","svelte-sjxf1e"),f(l,"class","dialog svelte-sjxf1e"),f(e,"class","backdrop svelte-sjxf1e")},m(u,i){J(u,e,i),o(e,l),o(l,n),o(n,r),a||(c=G(n,"click",t[2]),a=!0)},p(u,i){i&2&&!ht(r.src,s=u[1])&&f(r,"src",s),i&2&&f(r,"alt",u[1])},d(u){u&&k(e),a=!1,c()}}}function Ql(t){let e,l=t[0]&&Ut(t);return{c(){l&&l.c(),e=st()},l(n){l&&l.l(n),e=st()},m(n,r){l&&l.m(n,r),J(n,e,r)},p(n,[r]){n[0]?l?l.p(n,r):(l=Ut(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(n){n&&k(e),l&&l.d(n)}}}function $l(t,e,l){let{svgPath:n}=e,{modalOpen:r}=e;function s(){l(0,r=!1)}return t.$$set=a=>{"svgPath"in a&&l(1,n=a.svgPath),"modalOpen"in a&&l(0,r=a.modalOpen)},[r,n,s]}class gl extends Me{constructor(e){super(),ye(this,e,$l,Ql,ze,{svgPath:1,modalOpen:0})}}function zt(t,e,l){const n=t.slice();return n[8]=e[l],n}function Mt(t){let e,l,n,r,s,a,c;function u(){return t[6](t[8])}return{c(){e=_("button"),l=_("img"),s=I(),this.h()},l(i){e=p(i,"BUTTON",{class:!0});var m=S(e);l=p(m,"IMG",{src:!0,alt:!0,class:!0}),s=P(m),m.forEach(k),this.h()},h(){ht(l.src,n=t[8])||f(l,"src",n),f(l,"alt",r=t[8]),f(l,"class","svelte-fxmnfh"),f(e,"class","svelte-fxmnfh")},m(i,m){J(i,e,m),o(e,l),o(e,s),a||(c=G(e,"click",u),a=!0)},p(i,m){t=i,m&1&&!ht(l.src,n=t[8])&&f(l,"src",n),m&1&&r!==(r=t[8])&&f(l,"alt",r)},d(i){i&&k(e),a=!1,c()}}}function xl(t){let e,l,n,r,s;function a(m){t[5](m)}let c={svgPath:t[2]};t[1]!==void 0&&(c.modalOpen=t[1]),l=new gl({props:c}),je.push(()=>Ae(l,"modalOpen",a));let u=Ce(t[0]),i=[];for(let m=0;m<u.length;m+=1)i[m]=Mt(zt(t,u,m));return{c(){e=_("section"),De(l.$$.fragment),r=I();for(let m=0;m<i.length;m+=1)i[m].c();this.h()},l(m){e=p(m,"SECTION",{class:!0});var h=S(e);Ee(l.$$.fragment,h),r=P(h);for(let N=0;N<i.length;N+=1)i[N].l(h);h.forEach(k),this.h()},h(){f(e,"class","svelte-fxmnfh")},m(m,h){J(m,e,h),Le(l,e,null),o(e,r);for(let N=0;N<i.length;N+=1)i[N]&&i[N].m(e,null);s=!0},p(m,[h]){const N={};if(h&4&&(N.svgPath=m[2]),!n&&h&2&&(n=!0,N.modalOpen=m[1],Pe(()=>n=!1)),l.$set(N),h&9){u=Ce(m[0]);let v;for(v=0;v<u.length;v+=1){const d=zt(m,u,v);i[v]?i[v].p(d,h):(i[v]=Mt(d),i[v].c(),i[v].m(e,null))}for(;v<i.length;v+=1)i[v].d(1);i.length=u.length}},i(m){s||(Te(l.$$.fragment,m),s=!0)},o(m){we(l.$$.fragment,m),s=!1},d(m){m&&k(e),Se(l),Xe(i,m)}}}function en(t){const e=[];for(const l of Object.values(t.paramSvg))e.includes(l)||e.push(l);return e}function tn(t,e,l){let{pDef:n}=e;function r(h){const N=en(n),v=[];for(const d of N)v.push(`${vt}/pgdsvg/${d}`);return v}let s=[],a=!1,c;function u(h){l(2,c=h),l(1,a=!0)}function i(h){a=h,l(1,a)}const m=h=>u(h);return t.$$set=h=>{"pDef"in h&&l(4,n=h.pDef)},t.$$.update=()=>{t.$$.dirty&16&&l(0,s=r(n.partName))},[s,a,c,u,n,i,m]}class ln extends Me{constructor(e){super(),ye(this,e,tn,xl,ze,{pDef:4})}}function yt(t){let e,l,n,r,s,a,c="Cancel",u,i,m,h,N,v;const d=t[7].default,b=El(d,t,t[6],null);return{c(){e=_("aside"),l=_("div"),n=_("article"),b&&b.c(),r=I(),s=_("footer"),a=_("button"),a.textContent=c,u=I(),i=_("button"),m=K(t[1]),this.h()},l(T){e=p(T,"ASIDE",{class:!0});var g=S(e);l=p(g,"DIV",{class:!0});var O=S(l);n=p(O,"ARTICLE",{class:!0});var D=S(n);b&&b.l(D),D.forEach(k),r=P(O),s=p(O,"FOOTER",{class:!0});var C=S(s);a=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(a)!=="svelte-hcvk9s"&&(a.textContent=c),u=P(C),i=p(C,"BUTTON",{class:!0});var z=S(i);m=q(z,t[1]),z.forEach(k),C.forEach(k),O.forEach(k),g.forEach(k),this.h()},h(){f(n,"class","question svelte-weruk7"),f(a,"class","cancel svelte-weruk7"),f(i,"class","ok svelte-weruk7"),f(s,"class","svelte-weruk7"),f(l,"class","dialog svelte-weruk7"),Be(l,"sizeLarge",t[2]),f(e,"class","backdrop svelte-weruk7")},m(T,g){J(T,e,g),o(e,l),o(l,n),b&&b.m(n,null),o(l,r),o(l,s),o(s,a),o(s,u),o(s,i),o(i,m),h=!0,N||(v=[G(a,"click",t[3]),G(i,"click",t[4])],N=!0)},p(T,g){b&&b.p&&(!h||g&64)&&Ll(b,d,T,T[6],h?jl(d,T[6],g,null):Sl(T[6]),null),(!h||g&2)&&ve(m,T[1]),(!h||g&4)&&Be(l,"sizeLarge",T[2])},i(T){h||(Te(b,T),h=!0)},o(T){we(b,T),h=!1},d(T){T&&k(e),b&&b.d(T),N=!1,Ye(v)}}}function nn(t){let e,l,n=t[0]&&yt(t);return{c(){n&&n.c(),e=st()},l(r){n&&n.l(r),e=st()},m(r,s){n&&n.m(r,s),J(r,e,s),l=!0},p(r,[s]){r[0]?n?(n.p(r,s),s&1&&Te(n,1)):(n=yt(r),n.c(),Te(n,1),n.m(e.parentNode,e)):n&&(Ul(),we(n,1,1,()=>{n=null}),zl())},i(r){l||(Te(n),l=!0)},o(r){we(n),l=!1},d(r){r&&k(e),n&&n.d(r)}}}function sn(t,e,l){let{$$slots:n={},$$scope:r}=e,{okName:s="Ok"}=e,{okFunc:a}=e,{modalOpen:c}=e,{sizeLarge:u=!1}=e;function i(){l(0,c=!1)}function m(){a(),l(0,c=!1)}return t.$$set=h=>{"okName"in h&&l(1,s=h.okName),"okFunc"in h&&l(5,a=h.okFunc),"modalOpen"in h&&l(0,c=h.modalOpen),"sizeLarge"in h&&l(2,u=h.sizeLarge),"$$scope"in h&&l(6,r=h.$$scope)},[c,s,u,i,m,a,r,n]}class gt extends Me{constructor(e){super(),ye(this,e,sn,nn,ze,{okName:1,okFunc:5,modalOpen:0,sizeLarge:2})}}function Ft(t,e,l){const n=t.slice();return n[17]=e[l],n[18]=e,n[19]=l,n}function Bt(t,e,l){const n=t.slice();return n[17]=e[l],n}function Rt(t){let e,l=t[17]+"",n;return{c(){e=_("p"),n=K(l),this.h()},l(r){e=p(r,"P",{class:!0});var s=S(e);n=q(s,l),s.forEach(k),this.h()},h(){f(e,"class","diagItem svelte-12dj9tj")},m(r,s){J(r,e,s),o(e,n)},p(r,s){s&1&&l!==(l=r[17]+"")&&ve(n,l)},d(r){r&&k(e)}}}function Ht(t){let e,l=t[3][t[17]]&&Rt(t);return{c(){l&&l.c(),e=st()},l(n){l&&l.l(n),e=st()},m(n,r){l&&l.m(n,r),J(n,e,r)},p(n,r){n[3][n[17]]?l?l.p(n,r):(l=Rt(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(n){n&&k(e),l&&l.d(n)}}}function an(t){let e,l="Do you really want to delete the following localStorage keys?",n,r,s=Ce(t[0]),a=[];for(let c=0;c<s.length;c+=1)a[c]=Ht(Bt(t,s,c));return{c(){e=_("p"),e.textContent=l,n=I();for(let c=0;c<a.length;c+=1)a[c].c();r=st(),this.h()},l(c){e=p(c,"P",{class:!0,"data-svelte-h":!0}),oe(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=P(c);for(let u=0;u<a.length;u+=1)a[u].l(c);r=st(),this.h()},h(){f(e,"class","diagTitle svelte-12dj9tj")},m(c,u){J(c,e,u),J(c,n,u);for(let i=0;i<a.length;i+=1)a[i]&&a[i].m(c,u);J(c,r,u)},p(c,u){if(u&9){s=Ce(c[0]);let i;for(i=0;i<s.length;i+=1){const m=Bt(c,s,i);a[i]?a[i].p(m,u):(a[i]=Ht(m),a[i].c(),a[i].m(r.parentNode,r))}for(;i<a.length;i+=1)a[i].d(1);a.length=s.length}},d(c){c&&(k(e),k(n),k(r)),Xe(a,c)}}}function Vt(t){let e,l,n,r,s,a,c=t[17]+"",u,i,m,h=t[2][t[17]]+"",N,v,d,b;function T(){t[12].call(n,t[17])}function g(){return t[13](t[17])}return{c(){e=_("tr"),l=_("td"),n=_("input"),r=I(),s=_("td"),a=_("button"),u=K(c),i=I(),m=_("td"),N=K(h),v=I(),this.h()},l(O){e=p(O,"TR",{class:!0});var D=S(e);l=p(D,"TD",{});var C=S(l);n=p(C,"INPUT",{type:!0}),C.forEach(k),r=P(D),s=p(D,"TD",{class:!0});var z=S(s);a=p(z,"BUTTON",{class:!0});var F=S(a);u=q(F,c),F.forEach(k),z.forEach(k),i=P(D),m=p(D,"TD",{});var A=S(m);N=q(A,h),A.forEach(k),v=P(D),D.forEach(k),this.h()},h(){f(n,"type","checkbox"),f(a,"class","svelte-12dj9tj"),f(s,"class","svelte-12dj9tj"),f(e,"class","svelte-12dj9tj")},m(O,D){J(O,e,D),o(e,l),o(l,n),n.checked=t[3][t[17]],o(e,r),o(e,s),o(s,a),o(a,u),o(e,i),o(e,m),o(m,N),o(e,v),d||(b=[G(n,"change",T),G(a,"click",g)],d=!0)},p(O,D){t=O,D&9&&(n.checked=t[3][t[17]]),D&1&&c!==(c=t[17]+"")&&ve(u,c),D&5&&h!==(h=t[2][t[17]]+"")&&ve(N,h)},d(O){O&&k(e),d=!1,Ye(b)}}}function on(t){let e,l,n="Delete",r,s,a,c,u,i,m,h="<td>Delete</td> <td>Key name</td> <td>Last modification</td>",N,v,d,b,T,g,O="delete all",D,C,z,F,A,w,E;function U(y){t[10](y)}let M={okName:"Confirm",okFunc:t[6],$$slots:{default:[an]},$$scope:{ctx:t}};t[4]!==void 0&&(M.modalOpen=t[4]),s=new gt({props:M}),je.push(()=>Ae(s,"modalOpen",U));let Y=Ce(t[0]),B=[];for(let y=0;y<Y.length;y+=1)B[y]=Vt(Ft(t,Y,y));return{c(){e=_("div"),l=_("button"),l.textContent=n,r=I(),De(s.$$.fragment),c=I(),u=_("table"),i=_("thead"),m=_("tr"),m.innerHTML=h,N=I(),v=_("tr"),d=_("td"),b=_("input"),T=I(),g=_("td"),g.textContent=O,D=I(),C=_("td"),z=I(),F=_("tbody");for(let y=0;y<B.length;y+=1)B[y].c();this.h()},l(y){e=p(y,"DIV",{class:!0});var W=S(e);l=p(W,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(l)!=="svelte-1tbm4xl"&&(l.textContent=n),r=P(W),Ee(s.$$.fragment,W),c=P(W),u=p(W,"TABLE",{class:!0});var te=S(u);i=p(te,"THEAD",{class:!0});var ee=S(i);m=p(ee,"TR",{"data-svelte-h":!0}),oe(m)!=="svelte-xt53kn"&&(m.innerHTML=h),N=P(ee),v=p(ee,"TR",{});var Q=S(v);d=p(Q,"TD",{});var pe=S(d);b=p(pe,"INPUT",{type:!0}),pe.forEach(k),T=P(Q),g=p(Q,"TD",{class:!0,"data-svelte-h":!0}),oe(g)!=="svelte-1s4wssd"&&(g.textContent=O),D=P(Q),C=p(Q,"TD",{}),S(C).forEach(k),Q.forEach(k),ee.forEach(k),z=P(te),F=p(te,"TBODY",{class:!0});var ue=S(F);for(let me=0;me<B.length;me+=1)B[me].l(ue);ue.forEach(k),te.forEach(k),W.forEach(k),this.h()},h(){f(l,"class","svelte-12dj9tj"),f(b,"type","checkbox"),f(g,"class","instruction"),f(i,"class","svelte-12dj9tj"),f(F,"class","svelte-12dj9tj"),f(u,"class","svelte-12dj9tj"),f(e,"class","deleteKeys svelte-12dj9tj")},m(y,W){J(y,e,W),o(e,l),o(e,r),Le(s,e,null),o(e,c),o(e,u),o(u,i),o(i,m),o(i,N),o(i,v),o(v,d),o(d,b),b.checked=t[1],o(v,T),o(v,g),o(v,D),o(v,C),o(u,z),o(u,F);for(let te=0;te<B.length;te+=1)B[te]&&B[te].m(F,null);A=!0,w||(E=[G(l,"click",t[9]),G(b,"change",t[11])],w=!0)},p(y,[W]){const te={};if(W&4194313&&(te.$$scope={dirty:W,ctx:y}),!a&&W&16&&(a=!0,te.modalOpen=y[4],Pe(()=>a=!1)),s.$set(te),W&2&&(b.checked=y[1]),W&45){Y=Ce(y[0]);let ee;for(ee=0;ee<Y.length;ee+=1){const Q=Ft(y,Y,ee);B[ee]?B[ee].p(Q,W):(B[ee]=Vt(Q),B[ee].c(),B[ee].m(F,null))}for(;ee<B.length;ee+=1)B[ee].d(1);B.length=Y.length}},i(y){A||(Te(s.$$.fragment,y),A=!0)},o(y){we(s.$$.fragment,y),A=!1},d(y){y&&k(e),Se(s),Xe(B,y),w=!1,Ye(E)}}}function rn(t){let e={};for(const l of t)e[l]=!1;return e}function cn(t,e,l){let{pageName:n}=e,{storeName:r}=e,{localKeys:s}=e;function a(){let C=[];const z=new RegExp(`^${n}_`);return C=Object.keys(window.localStorage).filter(A=>z.test(A)).map(A=>A.replace(z,"")),C}s=a();function c(C){l(7,r=C)}let u={};function i(C){let z={};for(const F of C){let A="";const w=`${n}_${F}`,E=window.localStorage.getItem(w);E!==null&&(A=JSON.parse(E).lastModif),z[F]=A}return z}u=i(s);let m={};m=rn(s);let h=!1;function N(C){for(const z of s)l(3,m[z]=C,m)}function v(){for(const C of s)if(m[C]){const z=`${n}_${C}`;window.localStorage.removeItem(z)}l(0,s=a())}let d=!1;const b=()=>{l(4,d=!0)};function T(C){d=C,l(4,d)}function g(){h=this.checked,l(1,h)}function O(C){m[C]=this.checked,l(3,m)}const D=C=>c(C);return t.$$set=C=>{"pageName"in C&&l(8,n=C.pageName),"storeName"in C&&l(7,r=C.storeName),"localKeys"in C&&l(0,s=C.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(h)},[s,h,u,m,d,c,v,r,n,b,T,g,O,D]}class vl extends Me{constructor(e){super(),ye(this,e,cn,on,ze,{pageName:8,storeName:7,localKeys:0})}}function Wt(t){let e,l,n,r;return{c(){e=_("p"),l=K("Warning: name "),n=K(t[0]),r=K(" already used"),this.h()},l(s){e=p(s,"P",{class:!0});var a=S(e);l=q(a,"Warning: name "),n=q(a,t[0]),r=q(a," already used"),a.forEach(k),this.h()},h(){f(e,"class","warnMsg svelte-1rkdwo")},m(s,a){J(s,e,a),o(e,l),o(e,n),o(e,r)},p(s,a){a&1&&ve(n,s[0])},d(s){s&&k(e)}}}function fn(t){let e,l,n,r,s,a,c="Give a name to your parameter-set:",u,i,m,h,N,v;function d(O){t[5](O)}function b(O){t[6](O)}let T={pageName:t[1]};t[0]!==void 0&&(T.storeName=t[0]),t[2]!==void 0&&(T.localKeys=t[2]),e=new vl({props:T}),je.push(()=>Ae(e,"storeName",d)),je.push(()=>Ae(e,"localKeys",b));let g=t[3]&&Wt(t);return{c(){De(e.$$.fragment),r=I(),s=_("div"),a=_("label"),a.textContent=c,u=I(),i=_("input"),m=I(),g&&g.c(),this.h()},l(O){Ee(e.$$.fragment,O),r=P(O),s=p(O,"DIV",{class:!0});var D=S(s);a=p(D,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),oe(a)!=="svelte-1vdq35w"&&(a.textContent=c),u=P(D),i=p(D,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),m=P(D),g&&g.l(D),D.forEach(k),this.h()},h(){f(a,"for","storName"),f(a,"class","svelte-1rkdwo"),f(i,"type","text"),f(i,"id","storName"),i.required=!0,f(i,"minlength","4"),f(i,"maxlength","30"),f(i,"size","32"),f(i,"class","svelte-1rkdwo"),f(s,"class","svelte-1rkdwo")},m(O,D){Le(e,O,D),J(O,r,D),J(O,s,D),o(s,a),o(s,u),o(s,i),ke(i,t[0]),o(s,m),g&&g.m(s,null),h=!0,N||(v=[G(i,"input",t[7]),G(i,"input",t[4])],N=!0)},p(O,[D]){const C={};D&2&&(C.pageName=O[1]),!l&&D&1&&(l=!0,C.storeName=O[0],Pe(()=>l=!1)),!n&&D&4&&(n=!0,C.localKeys=O[2],Pe(()=>n=!1)),e.$set(C),D&1&&i.value!==O[0]&&ke(i,O[0]),O[3]?g?g.p(O,D):(g=Wt(O),g.c(),g.m(s,null)):g&&(g.d(1),g=null)},i(O){h||(Te(e.$$.fragment,O),h=!0)},o(O){we(e.$$.fragment,O),h=!1},d(O){O&&(k(r),k(s)),Se(e,O),g&&g.d(),N=!1,Ye(v)}}}function un(t){const e=/[-:]/g,l=/\..*$/;return`${t}_${new Date().toISOString().replace(e,"").replace(l,"").replace("T","_")}`}function mn(t,e,l){let{pageName:n}=e,{storeName:r}=e,s=[];r=un(n);let a=!1;function c(N){l(3,a=s.includes(N))}function u(N){const v=N.target.value;c(v)}function i(N){r=N,l(0,r)}function m(N){s=N,l(2,s)}function h(){r=this.value,l(0,r)}return t.$$set=N=>{"pageName"in N&&l(1,n=N.pageName),"storeName"in N&&l(0,r=N.storeName)},t.$$.update=()=>{t.$$.dirty&1&&c(r)},[r,n,s,a,u,i,m,h]}class dn extends Me{constructor(e){super(),ye(this,e,mn,fn,ze,{pageName:1,storeName:0})}}function hn(t){let e,l,n,r,s,a,c="Select a parameter-set:",u,i,m;function h(d){t[3](d)}function N(d){t[4](d)}let v={pageName:t[1]};return t[0]!==void 0&&(v.storeName=t[0]),t[2]!==void 0&&(v.localKeys=t[2]),e=new vl({props:v}),je.push(()=>Ae(e,"storeName",h)),je.push(()=>Ae(e,"localKeys",N)),{c(){De(e.$$.fragment),r=I(),s=_("div"),a=_("label"),a.textContent=c,u=I(),i=_("input"),this.h()},l(d){Ee(e.$$.fragment,d),r=P(d),s=p(d,"DIV",{class:!0});var b=S(s);a=p(b,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),oe(a)!=="svelte-rajgc0"&&(a.textContent=c),u=P(b),i=p(b,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),b.forEach(k),this.h()},h(){f(a,"for","storName"),f(a,"class","svelte-1ozd0ey"),f(i,"type","text"),f(i,"id","storName"),i.value=t[0],i.readOnly=!0,f(i,"minlength","4"),f(i,"maxlength","30"),f(i,"size","32"),f(i,"class","svelte-1ozd0ey"),f(s,"class","svelte-1ozd0ey")},m(d,b){Le(e,d,b),J(d,r,b),J(d,s,b),o(s,a),o(s,u),o(s,i),m=!0},p(d,[b]){const T={};b&2&&(T.pageName=d[1]),!l&&b&1&&(l=!0,T.storeName=d[0],Pe(()=>l=!1)),!n&&b&4&&(n=!0,T.localKeys=d[2],Pe(()=>n=!1)),e.$set(T),(!m||b&1&&i.value!==d[0])&&(i.value=d[0])},i(d){m||(Te(e.$$.fragment,d),m=!0)},o(d){we(e.$$.fragment,d),m=!1},d(d){d&&(k(r),k(s)),Se(e,d)}}}function _n(t,e,l){let{pageName:n}=e,{storeName:r}=e,s=[];function a(i){let m=r;return!i.includes(m)&&(i.length>0?m=i[0]:m=""),m}function c(i){r=i,l(0,r),l(2,s)}function u(i){s=i,l(2,s)}return t.$$set=i=>{"pageName"in i&&l(1,n=i.pageName),"storeName"in i&&l(0,r=i.storeName)},t.$$.update=()=>{t.$$.dirty&4&&l(0,r=a(s))},[r,n,s,c,u]}class pn extends Me{constructor(e){super(),ye(this,e,_n,hn,ze,{pageName:1,storeName:0})}}const Re=ul(Ml());function gn(t){let e;return{c(){e=_("canvas"),this.h()},l(l){e=p(l,"CANVAS",{class:!0,width:!0,height:!0}),S(e).forEach(k),this.h()},h(){f(e,"class","mini svelte-z8e4tz"),f(e,"width",Xt),f(e,"height",Xt)},m(l,n){J(l,e,n),t[9](e)},p:Ue,i:Ue,o:Ue,d(l){l&&k(e),t[9](null)}}}const Xt=200;function vn(t,e,l){let n,r;at(t,Re,T=>l(7,n=T)),at(t,Ke,T=>l(8,r=T));let{pageName:s}=e,{fgeom:a}=e,{selFace:c}=e,{zAdjust:u}=e,{simTime:i=0}=e,m,h;function N(T,g){const O=yl(g);O.ruler=!1;const D=m.getContext("2d");D.clearRect(0,0,D.canvas.width,D.canvas.height);try{u.init===0?h=T.getAdjustFull(D.canvas.width,D.canvas.height):h=u,T.draw(D,h,O)}catch(C){console.log(C)}}let v=0;function d(T,g,O,D){const C=a(T,g).fig;if(Object.keys(C).includes(O)){const z=C[O];N(z,D)}else{const z=dl(C);N(z,D)}}Et(()=>{d(i,r[s],c,n),l(6,v=1)});function b(T){je[T?"unshift":"push"](()=>{m=T,l(0,m)})}return t.$$set=T=>{"pageName"in T&&l(1,s=T.pageName),"fgeom"in T&&l(2,a=T.fgeom),"selFace"in T&&l(3,c=T.selFace),"zAdjust"in T&&l(4,u=T.zAdjust),"simTime"in T&&l(5,i=T.simTime)},t.$$.update=()=>{t.$$.dirty&490&&v===1&&d(i,r[s],c,n)},[m,s,a,c,u,i,v,n,r,b]}class Yt extends Me{constructor(e){super(),ye(this,e,vn,gn,ze,{pageName:1,fgeom:2,selFace:3,zAdjust:4,simTime:5})}}function bn(t,e){const l=document.createElement("a");l.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),l.setAttribute("download",t),l.click(),l.remove()}function bl(t,e,l){const n=/[-:]/g,r=/\..*$/,s=new Date().toISOString().replace(n,"").replace(r,"").replace("T","_"),a=`px_${t}_${s}.json`,c=hl(s,t,e,l);bn(a,c)}function kn(t,e,l){const n=new URL(t),r=2e3;let s=n.toString().length;for(const a of Object.keys(e)){const c=e[a].toString(),u=2+a.length+c.length;n.searchParams.append(encodeURIComponent(a),encodeURIComponent(c)),s+=u}return s>=r&&console.log(`warn547: generateUrl: strLength ${s} larger than strLengthLimit ${r}`),n.toString()}function Kt(t,e,l){const n=t.slice();return n[58]=e[l],n[59]=e,n[60]=l,n}function qt(t,e,l){const n=t.slice();return n[61]=e[l],n[62]=e,n[63]=l,n}function Gt(t,e,l){const n=t.slice();return n[64]=e[l],n[66]=l,n}function Nn(t,e,l){const n=t.slice();return n[64]=e[l],n[66]=l,n}function Tn(t){let e;return{c(){e=K("Load the default parameters ?")},l(l){e=q(l,"Load the default parameters ?")},m(l,n){J(l,e,n)},d(l){l&&k(e)}}}function wn(t){let e,l,n;function r(a){t[34](a)}let s={pageName:t[0].partName};return t[13]!==void 0&&(s.storeName=t[13]),e=new pn({props:s}),je.push(()=>Ae(e,"storeName",r)),{c(){De(e.$$.fragment)},l(a){Ee(e.$$.fragment,a)},m(a,c){Le(e,a,c),n=!0},p(a,c){const u={};c[0]&1&&(u.pageName=a[0].partName),!l&&c[0]&8192&&(l=!0,u.storeName=a[13],Pe(()=>l=!1)),e.$set(u)},i(a){n||(Te(e.$$.fragment,a),n=!0)},o(a){we(e.$$.fragment,a),n=!1},d(a){Se(e,a)}}}function On(t){let e;return{c(){e=K("unknown")},l(l){e=q(l,"unknown")},m(l,n){J(l,e,n)},p:Ue,d(l){l&&k(e)}}}function Cn(t){let e,l,n,r=Ce(t[61].dropdown),s=[];for(let c=0;c<r.length;c+=1)s[c]=Zt(Gt(t,r,c));function a(){t[41].call(e,t[61])}return{c(){e=_("select");for(let c=0;c<s.length;c+=1)s[c].c();this.h()},l(c){e=p(c,"SELECT",{});var u=S(e);for(let i=0;i<s.length;i+=1)s[i].l(u);u.forEach(k),this.h()},h(){t[19][t[0].partName][t[61].name]===void 0&&bt(a)},m(c,u){J(c,e,u);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);ot(e,t[19][t[0].partName][t[61].name],!0),l||(n=G(e,"change",a),l=!0)},p(c,u){if(t=c,u[0]&32){r=Ce(t[61].dropdown);let i;for(i=0;i<r.length;i+=1){const m=Gt(t,r,i);s[i]?s[i].p(m,u):(s[i]=Zt(m),s[i].c(),s[i].m(e,null))}for(;i<s.length;i+=1)s[i].d(1);s.length=r.length}u[0]&524321&&ot(e,t[19][t[0].partName][t[61].name])},d(c){c&&k(e),Xe(s,c),l=!1,n()}}}function Dn(t){let e,l,n,r=Ce(["Off","On"]),s=[];for(let c=0;c<2;c+=1)s[c]=Ln(Nn(t,r,c));function a(){t[40].call(e,t[61])}return{c(){e=_("select");for(let c=0;c<2;c+=1)s[c].c();this.h()},l(c){e=p(c,"SELECT",{});var u=S(e);for(let i=0;i<2;i+=1)s[i].l(u);u.forEach(k),this.h()},h(){t[19][t[0].partName][t[61].name]===void 0&&bt(a)},m(c,u){J(c,e,u);for(let i=0;i<2;i+=1)s[i]&&s[i].m(e,null);ot(e,t[19][t[0].partName][t[61].name],!0),l||(n=G(e,"change",a),l=!0)},p(c,u){t=c,u[0]&524321&&ot(e,t[19][t[0].partName][t[61].name])},d(c){c&&k(e),Xe(s,c),l=!1,n()}}}function En(t){let e,l,n,r,s,a,c,u,i,m,h;function N(){t[38].call(e,t[61])}function v(){t[39].call(a,t[61])}return{c(){e=_("input"),s=I(),a=_("input"),this.h()},l(d){e=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=P(d),a=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),this.h()},h(){f(e,"type","number"),f(e,"min",l=t[61].min),f(e,"max",n=t[61].max),f(e,"step",r=t[61].step),f(e,"class","input-number svelte-1g5tt44"),f(a,"type","range"),f(a,"min",c=t[61].min),f(a,"max",u=t[61].max),f(a,"step",i=t[61].step),f(a,"class","svelte-1g5tt44")},m(d,b){J(d,e,b),ke(e,t[19][t[0].partName][t[61].name]),J(d,s,b),J(d,a,b),ke(a,t[19][t[0].partName][t[61].name]),m||(h=[G(e,"input",N),G(e,"change",t[21]),G(a,"change",v),G(a,"input",v),G(a,"change",t[21])],m=!0)},p(d,b){t=d,b[0]&32&&l!==(l=t[61].min)&&f(e,"min",l),b[0]&32&&n!==(n=t[61].max)&&f(e,"max",n),b[0]&32&&r!==(r=t[61].step)&&f(e,"step",r),b[0]&524321&&_t(e.value)!==t[19][t[0].partName][t[61].name]&&ke(e,t[19][t[0].partName][t[61].name]),b[0]&32&&c!==(c=t[61].min)&&f(a,"min",c),b[0]&32&&u!==(u=t[61].max)&&f(a,"max",u),b[0]&32&&i!==(i=t[61].step)&&f(a,"step",i),b[0]&524321&&ke(a,t[19][t[0].partName][t[61].name])},d(d){d&&(k(e),k(s),k(a)),m=!1,Ye(h)}}}function Zt(t){let e,l=t[64]+"",n;return{c(){e=_("option"),n=K(l),this.h()},l(r){e=p(r,"OPTION",{});var s=S(e);n=q(s,l),s.forEach(k),this.h()},h(){e.__value=t[66],ke(e,e.__value)},m(r,s){J(r,e,s),o(e,n)},p(r,s){s[0]&32&&l!==(l=r[64]+"")&&ve(n,l)},d(r){r&&k(e)}}}function Ln(t){let e,l;return{c(){e=_("option"),l=K(t[64]),this.h()},l(n){e=p(n,"OPTION",{});var r=S(e);l=q(r,t[64]),r.forEach(k),this.h()},h(){e.__value=t[66],ke(e,e.__value)},m(n,r){J(n,e,r),o(e,l)},p:Ue,d(n){n&&k(e)}}}function Jt(t){let e,l,n=t[60]+1+"",r,s,a=t[63]+1+"",c,u,i,m,h=t[61].name+"",N,v,d,b,T,g=t[61].unit+"",O,D,C,z=t[61].init+"",F,A,w,E=t[61].min+"",U,M,Y,B=t[61].max+"",y,W,te,ee=t[61].step+"",Q,pe,ue;function me(){return t[37](t[61])}function be(se,Z){return se[61].pType===wt.eNumber?En:se[61].pType===wt.eCheckbox?Dn:se[61].pType===wt.eDropdown?Cn:On}let j=be(t),H=j(t);return{c(){e=_("tr"),l=_("td"),r=K(n),s=K("."),c=K(a),u=I(),i=_("td"),m=_("button"),N=K(h),v=I(),d=_("td"),H.c(),b=I(),T=_("td"),O=K(g),D=I(),C=_("td"),F=K(z),A=I(),w=_("td"),U=K(E),M=I(),Y=_("td"),y=K(B),W=I(),te=_("td"),Q=K(ee),this.h()},l(se){e=p(se,"TR",{class:!0});var Z=S(e);l=p(Z,"TD",{class:!0});var re=S(l);r=q(re,n),s=q(re,"."),c=q(re,a),re.forEach(k),u=P(Z),i=p(Z,"TD",{class:!0});var $=S(i);m=p($,"BUTTON",{class:!0});var he=S(m);N=q(he,h),he.forEach(k),$.forEach(k),v=P(Z),d=p(Z,"TD",{class:!0});var ce=S(d);H.l(ce),ce.forEach(k),b=P(Z),T=p(Z,"TD",{class:!0});var fe=S(T);O=q(fe,g),fe.forEach(k),D=P(Z),C=p(Z,"TD",{class:!0});var x=S(C);F=q(x,z),x.forEach(k),A=P(Z),w=p(Z,"TD",{class:!0});var L=S(w);U=q(L,E),L.forEach(k),M=P(Z),Y=p(Z,"TD",{class:!0});var V=S(Y);y=q(V,B),V.forEach(k),W=P(Z),te=p(Z,"TD",{class:!0});var le=S(te);Q=q(le,ee),le.forEach(k),Z.forEach(k),this.h()},h(){f(l,"class","svelte-1g5tt44"),f(m,"class","svelte-1g5tt44"),f(i,"class","svelte-1g5tt44"),f(d,"class","svelte-1g5tt44"),f(T,"class","svelte-1g5tt44"),f(C,"class","svelte-1g5tt44"),f(w,"class","svelte-1g5tt44"),f(Y,"class","svelte-1g5tt44"),f(te,"class","svelte-1g5tt44"),f(e,"class","svelte-1g5tt44"),Be(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},m(se,Z){J(se,e,Z),o(e,l),o(l,r),o(l,s),o(l,c),o(e,u),o(e,i),o(i,m),o(m,N),o(e,v),o(e,d),H.m(d,null),o(e,b),o(e,T),o(T,O),o(e,D),o(e,C),o(C,F),o(e,A),o(e,w),o(w,U),o(e,M),o(e,Y),o(Y,y),o(e,W),o(e,te),o(te,Q),pe||(ue=G(m,"click",me),pe=!0)},p(se,Z){t=se,Z[0]&32&&h!==(h=t[61].name+"")&&ve(N,h),j===(j=be(t))&&H?H.p(t,Z):(H.d(1),H=j(t),H&&(H.c(),H.m(d,null))),Z[0]&32&&g!==(g=t[61].unit+"")&&ve(O,g),Z[0]&32&&z!==(z=t[61].init+"")&&ve(F,z),Z[0]&32&&E!==(E=t[61].min+"")&&ve(U,E),Z[0]&32&&B!==(B=t[61].max+"")&&ve(y,B),Z[0]&32&&ee!==(ee=t[61].step+"")&&ve(Q,ee),Z[0]&524321&&Be(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},d(se){se&&k(e),H.d(),pe=!1,ue()}}}function Qt(t){let e,l,n=t[60]+1+"",r,s,a,c=t[58].sectionName+"",u,i,m,h,N,v,d,b="",T,g,O,D,C;function z(){t[36].call(N,t[58])}let F=Ce(t[58].params),A=[];for(let w=0;w<F.length;w+=1)A[w]=Jt(qt(t,F,w));return{c(){e=_("tr"),l=_("td"),r=K(n),s=I(),a=_("td"),u=K(c),i=I(),m=_("td"),h=_("label"),N=_("input"),v=I(),d=_("span"),d.innerHTML=b,T=I(),g=_("tbody");for(let w=0;w<A.length;w+=1)A[w].c();O=I(),this.h()},l(w){e=p(w,"TR",{class:!0});var E=S(e);l=p(E,"TD",{class:!0});var U=S(l);r=q(U,n),U.forEach(k),s=P(E),a=p(E,"TD",{colspan:!0,class:!0});var M=S(a);u=q(M,c),M.forEach(k),i=P(E),m=p(E,"TD",{colspan:!0,class:!0});var Y=S(m);h=p(Y,"LABEL",{class:!0});var B=S(h);N=p(B,"INPUT",{type:!0,class:!0}),v=P(B),d=p(B,"SPAN",{class:!0,"data-svelte-h":!0}),oe(d)!=="svelte-1qufua2"&&(d.innerHTML=b),B.forEach(k),Y.forEach(k),E.forEach(k),T=P(w),g=p(w,"TBODY",{class:!0});var y=S(g);for(let W=0;W<A.length;W+=1)A[W].l(y);O=P(y),y.forEach(k),this.h()},h(){f(l,"class","svelte-1g5tt44"),f(a,"colspan","4"),f(a,"class","svelte-1g5tt44"),f(N,"type","checkbox"),f(N,"class","svelte-1g5tt44"),f(d,"class","svelte-1g5tt44"),f(h,"class","svelte-1g5tt44"),f(m,"colspan","3"),f(m,"class","svelte-1g5tt44"),f(e,"class","separator svelte-1g5tt44"),f(g,"class","svelte-1g5tt44"),Be(g,"collaps",t[18][t[58].sectionID])},m(w,E){J(w,e,E),o(e,l),o(l,r),o(e,s),o(e,a),o(a,u),o(e,i),o(e,m),o(m,h),o(h,N),N.checked=t[18][t[58].sectionID],o(h,v),o(h,d),J(w,T,E),J(w,g,E);for(let U=0;U<A.length;U+=1)A[U]&&A[U].m(g,null);o(g,O),D||(C=G(N,"change",z),D=!0)},p(w,E){if(t=w,E[0]&32&&c!==(c=t[58].sectionName+"")&&ve(u,c),E[0]&262176&&(N.checked=t[18][t[58].sectionID]),E[0]&271056929){F=Ce(t[58].params);let U;for(U=0;U<F.length;U+=1){const M=qt(t,F,U);A[U]?A[U].p(M,E):(A[U]=Jt(M),A[U].c(),A[U].m(g,O))}for(;U<A.length;U+=1)A[U].d(1);A.length=F.length}E[0]&262176&&Be(g,"collaps",t[18][t[58].sectionID])},d(w){w&&(k(e),k(T),k(g)),Xe(A,w),D=!1,C()}}}function Sn(t){let e,l="Copy this URL and send it to your friends!",n,r,s;return{c(){e=_("p"),e.textContent=l,n=I(),r=_("p"),s=K(t[15]),this.h()},l(a){e=p(a,"P",{"data-svelte-h":!0}),oe(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=P(a),r=p(a,"P",{class:!0});var c=S(r);s=q(c,t[15]),c.forEach(k),this.h()},h(){f(r,"class","cUrl svelte-1g5tt44")},m(a,c){J(a,e,c),J(a,n,c),J(a,r,c),o(r,s)},p(a,c){c[0]&32768&&ve(s,a[15])},d(a){a&&(k(e),k(n),k(r))}}}function jn(t){let e,l,n;function r(a){t[45](a)}let s={pageName:t[0].partName};return t[14]!==void 0&&(s.storeName=t[14]),e=new dn({props:s}),je.push(()=>Ae(e,"storeName",r)),{c(){De(e.$$.fragment)},l(a){Ee(e.$$.fragment,a)},m(a,c){Le(e,a,c),n=!0},p(a,c){const u={};c[0]&1&&(u.pageName=a[0].partName),!l&&c[0]&16384&&(l=!0,u.storeName=a[14],Pe(()=>l=!1)),e.$set(u)},i(a){n||(Te(e.$$.fragment,a),n=!0)},o(a){we(e.$$.fragment,a),n=!1},d(a){Se(e,a)}}}function In(t){let e,l,n="Parameters",r,s,a,c="Load Params from File",u,i,m,h,N="Set Params Default",v,d,b="Load Params from localStorage",T,g,O,D,C,z,F,A,w,E,U,M='<tr class="svelte-1g5tt44"><td class="svelte-1g5tt44">#</td> <td class="svelte-1g5tt44">Parameter name</td> <td class="svelte-1g5tt44">Value</td> <td class="svelte-1g5tt44">Unit</td> <td class="svelte-1g5tt44">Default</td> <td class="svelte-1g5tt44">Min</td> <td class="svelte-1g5tt44">Max</td> <td class="svelte-1g5tt44">Step</td></tr>',Y,B,y,W,te="Comment:",ee,Q,pe,ue,me="Save Parameters to File",be,j,H="Save Parameters as URL",se,Z,re="Save Parameters to localStorage",$,he,ce,fe,x,L,V,le,_e,ge,ie,Oe,Je,Qe,xe,qe,pt,R,ae,Ne,Fe,He;function $e(X){t[33](X)}let rt={okName:"Overwrite Parameters",okFunc:t[24],$$slots:{default:[Tn]},$$scope:{ctx:t}};t[9]!==void 0&&(rt.modalOpen=t[9]),g=new gt({props:rt}),je.push(()=>Ae(g,"modalOpen",$e));function kt(X){t[35](X)}let it={okName:"Load Parameters",okFunc:t[25],$$slots:{default:[wn]},$$scope:{ctx:t}};t[10]!==void 0&&(it.modalOpen=t[10]),C=new gt({props:it}),je.push(()=>Ae(C,"modalOpen",kt));let et=Ce(t[5]),Ie=[];for(let X=0;X<et.length;X+=1)Ie[X]=Qt(Kt(t,et,X));function Lt(X){t[44](X)}let Ve={okName:"Done",okFunc:Pn,sizeLarge:!0,$$slots:{default:[Sn]},$$scope:{ctx:t}};t[11]!==void 0&&(Ve.modalOpen=t[11]),he=new gt({props:Ve}),je.push(()=>Ae(he,"modalOpen",Lt));function Nl(X){t[46](X)}let St={okName:"Save into localStorage",okFunc:t[26],$$slots:{default:[jn]},$$scope:{ctx:t}};t[12]!==void 0&&(St.modalOpen=t[12]),x=new gt({props:St}),je.push(()=>Ae(x,"modalOpen",Nl));function Tl(X){t[47](X)}let jt={svgPath:t[16]};return t[17]!==void 0&&(jt.modalOpen=t[17]),le=new gl({props:jt}),je.push(()=>Ae(le,"modalOpen",Tl)),qe=new Yt({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],zAdjust:t[20],simTime:t[4]}}),ae=new Yt({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],zAdjust:t[3],simTime:t[4]}}),{c(){e=_("section"),l=_("h2"),l.textContent=n,r=I(),s=_("main"),a=_("label"),a.textContent=c,u=I(),i=_("input"),m=I(),h=_("button"),h.textContent=N,v=I(),d=_("button"),d.textContent=b,T=I(),De(g.$$.fragment),D=I(),De(C.$$.fragment),F=I(),A=_("textarea"),w=I(),E=_("table"),U=_("thead"),U.innerHTML=M,Y=I();for(let X=0;X<Ie.length;X+=1)Ie[X].c();B=I(),y=_("div"),W=_("label"),W.textContent=te,ee=I(),Q=_("input"),pe=I(),ue=_("button"),ue.textContent=me,be=I(),j=_("button"),j.textContent=H,se=I(),Z=_("button"),Z.textContent=re,$=I(),De(he.$$.fragment),fe=I(),De(x.$$.fragment),V=I(),De(le.$$.fragment),ge=I(),ie=_("button"),Oe=_("img"),Qe=I(),xe=_("div"),De(qe.$$.fragment),pt=I(),R=_("div"),De(ae.$$.fragment),this.h()},l(X){e=p(X,"SECTION",{class:!0});var ne=S(e);l=p(ne,"H2",{class:!0,"data-svelte-h":!0}),oe(l)!=="svelte-1mc497a"&&(l.textContent=n),r=P(ne),s=p(ne,"MAIN",{class:!0});var de=S(s);a=p(de,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),oe(a)!=="svelte-zt7rok"&&(a.textContent=c),u=P(de),i=p(de,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),m=P(de),h=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(h)!=="svelte-1typ5"&&(h.textContent=N),v=P(de),d=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(d)!=="svelte-187bpo6"&&(d.textContent=b),T=P(de),Ee(g.$$.fragment,de),D=P(de),Ee(C.$$.fragment,de),F=P(de),A=p(de,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(A).forEach(k),w=P(de),E=p(de,"TABLE",{class:!0});var tt=S(E);U=p(tt,"THEAD",{class:!0,"data-svelte-h":!0}),oe(U)!=="svelte-1szl7uo"&&(U.innerHTML=M),Y=P(tt);for(let Ge=0;Ge<Ie.length;Ge+=1)Ie[Ge].l(tt);tt.forEach(k),B=P(de),y=p(de,"DIV",{class:!0});var lt=S(y);W=p(lt,"LABEL",{for:!0,"data-svelte-h":!0}),oe(W)!=="svelte-gqskth"&&(W.textContent=te),ee=P(lt),Q=p(lt,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),lt.forEach(k),pe=P(de),ue=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(ue)!=="svelte-1ny58g0"&&(ue.textContent=me),be=P(de),j=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(j)!=="svelte-11or0m2"&&(j.textContent=H),se=P(de),Z=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(Z)!=="svelte-5zdtrl"&&(Z.textContent=re),$=P(de),Ee(he.$$.fragment,de),fe=P(de),Ee(x.$$.fragment,de),de.forEach(k),V=P(ne),Ee(le.$$.fragment,ne),ge=P(ne),ie=p(ne,"BUTTON",{class:!0});var ut=S(ie);Oe=p(ut,"IMG",{src:!0,alt:!0,class:!0}),ut.forEach(k),Qe=P(ne),xe=p(ne,"DIV",{class:!0});var mt=S(xe);Ee(qe.$$.fragment,mt),mt.forEach(k),pt=P(ne),R=p(ne,"DIV",{class:!0});var nt=S(R);Ee(ae.$$.fragment,nt),nt.forEach(k),ne.forEach(k),this.h()},h(){f(l,"class","svelte-1g5tt44"),f(a,"for","loadFParams"),f(a,"class","fileUpload svelte-1g5tt44"),f(i,"id","loadFParams"),f(i,"type","file"),f(i,"accept","text/plain, application/json"),f(i,"class","svelte-1g5tt44"),f(h,"class","svelte-1g5tt44"),f(d,"class","svelte-1g5tt44"),f(A,"rows","3"),f(A,"cols","80"),A.readOnly=!0,f(A,"wrap","off"),A.value=t[7],f(A,"class","svelte-1g5tt44"),Be(A,"colorWarn",t[8]),f(U,"class","svelte-1g5tt44"),f(E,"class","svelte-1g5tt44"),f(W,"for","inComment"),f(Q,"type","text"),f(Q,"id","inComment"),f(Q,"maxlength","150"),f(Q,"size","70"),f(y,"class","comment svelte-1g5tt44"),f(ue,"class","svelte-1g5tt44"),f(j,"class","svelte-1g5tt44"),f(Z,"class","svelte-1g5tt44"),f(s,"class","svelte-1g5tt44"),ht(Oe.src,Je=t[16])||f(Oe,"src",Je),f(Oe,"alt",t[16]),f(Oe,"class","svelte-1g5tt44"),f(ie,"class","side-img svelte-1g5tt44"),f(xe,"class","mini-canvas svelte-1g5tt44"),f(R,"class","mini-canvas svelte-1g5tt44"),f(e,"class","svelte-1g5tt44")},m(X,ne){J(X,e,ne),o(e,l),o(e,r),o(e,s),o(s,a),o(s,u),o(s,i),o(s,m),o(s,h),o(s,v),o(s,d),o(s,T),Le(g,s,null),o(s,D),Le(C,s,null),o(s,F),o(s,A),o(s,w),o(s,E),o(E,U),o(E,Y);for(let de=0;de<Ie.length;de+=1)Ie[de]&&Ie[de].m(E,null);o(s,B),o(s,y),o(y,W),o(y,ee),o(y,Q),ke(Q,t[6]),o(s,pe),o(s,ue),o(s,be),o(s,j),o(s,se),o(s,Z),o(s,$),Le(he,s,null),o(s,fe),Le(x,s,null),o(e,V),Le(le,e,null),o(e,ge),o(e,ie),o(ie,Oe),o(e,Qe),o(e,xe),Le(qe,xe,null),o(e,pt),o(e,R),Le(ae,R,null),Ne=!0,Fe||(He=[G(i,"change",t[22]),G(h,"click",t[31]),G(d,"click",t[32]),G(Q,"input",t[42]),G(ue,"click",t[23]),G(j,"click",t[27]),G(Z,"click",t[43]),G(ie,"click",t[29])],Fe=!0)},p(X,ne){const de={};ne[2]&64&&(de.$$scope={dirty:ne,ctx:X}),!O&&ne[0]&512&&(O=!0,de.modalOpen=X[9],Pe(()=>O=!1)),g.$set(de);const tt={};if(ne[0]&8193|ne[2]&64&&(tt.$$scope={dirty:ne,ctx:X}),!z&&ne[0]&1024&&(z=!0,tt.modalOpen=X[10],Pe(()=>z=!1)),C.$set(tt),(!Ne||ne[0]&128)&&(A.value=X[7]),(!Ne||ne[0]&256)&&Be(A,"colorWarn",X[8]),ne[0]&271319073){et=Ce(X[5]);let We;for(We=0;We<et.length;We+=1){const It=Kt(X,et,We);Ie[We]?Ie[We].p(It,ne):(Ie[We]=Qt(It),Ie[We].c(),Ie[We].m(E,null))}for(;We<Ie.length;We+=1)Ie[We].d(1);Ie.length=et.length}ne[0]&64&&Q.value!==X[6]&&ke(Q,X[6]);const lt={};ne[0]&32768|ne[2]&64&&(lt.$$scope={dirty:ne,ctx:X}),!ce&&ne[0]&2048&&(ce=!0,lt.modalOpen=X[11],Pe(()=>ce=!1)),he.$set(lt);const ut={};ne[0]&16385|ne[2]&64&&(ut.$$scope={dirty:ne,ctx:X}),!L&&ne[0]&4096&&(L=!0,ut.modalOpen=X[12],Pe(()=>L=!1)),x.$set(ut);const mt={};ne[0]&65536&&(mt.svgPath=X[16]),!_e&&ne[0]&131072&&(_e=!0,mt.modalOpen=X[17],Pe(()=>_e=!1)),le.$set(mt),(!Ne||ne[0]&65536&&!ht(Oe.src,Je=X[16]))&&f(Oe,"src",Je),(!Ne||ne[0]&65536)&&f(Oe,"alt",X[16]);const nt={};ne[0]&1&&(nt.pageName=X[0].partName),ne[0]&2&&(nt.fgeom=X[1]),ne[0]&4&&(nt.selFace=X[2]),ne[0]&16&&(nt.simTime=X[4]),qe.$set(nt);const Ge={};ne[0]&1&&(Ge.pageName=X[0].partName),ne[0]&2&&(Ge.fgeom=X[1]),ne[0]&4&&(Ge.selFace=X[2]),ne[0]&8&&(Ge.zAdjust=X[3]),ne[0]&16&&(Ge.simTime=X[4]),ae.$set(Ge)},i(X){Ne||(Te(g.$$.fragment,X),Te(C.$$.fragment,X),Te(he.$$.fragment,X),Te(x.$$.fragment,X),Te(le.$$.fragment,X),Te(qe.$$.fragment,X),Te(ae.$$.fragment,X),Ne=!0)},o(X){we(g.$$.fragment,X),we(C.$$.fragment,X),we(he.$$.fragment,X),we(x.$$.fragment,X),we(le.$$.fragment,X),we(qe.$$.fragment,X),we(ae.$$.fragment,X),Ne=!1},d(X){X&&k(e),Se(g),Se(C),Xe(Ie,X),Se(he),Se(x),Se(le),Se(qe),Se(ae),Fe=!1,Ye(He)}}}function Pn(){}function An(t){const e={};for(const l of t)e[l.sectionID]=l.sectionVisible;return e}function Un(t,e,l){let n,r;at(t,Ke,R=>l(19,n=R)),at(t,ql,R=>l(48,r=R));const s=ml();let{pDef:a}=e,{fgeom:c}=e,{selFace:u}=e,{zAdjust:i}=e,{simTime:m=0}=e;const h=_l();let N="";function v(){s("paramChg",{foo:"bla"})}function d(R,ae){let Ne="",Fe=!1;R!==a.partName&&(Ne+=`warn361: read partName: '${R}' expected partName: '${a.partName}'
2
+ `,Fe=!0);let He=0,$e=0,rt=0;const kt=[];for(const Ve of a.params)kt.push(Ve.name),Object.hasOwn(ae,Ve.name)?(He+=1,n[a.partName][Ve.name]===ae[Ve.name]?rt+=1:Il(Ke,n[a.partName][Ve.name]=ae[Ve.name],n)):$e+=1;let it=0;for(const Ve of Object.keys(ae))kt.includes(Ve)||(it+=1,Ne+=`warn363: parameter ${Ve} not in the scope of the design (${it})
3
+ `);const et=it>0;return Ne+=`Params loaded at ${new Date().toLocaleTimeString()} :`,Ne+=` def-nb: ${Object.keys(a.params).length}`,Ne+=`, cover-nb: ${He}, uncover-nb: ${$e}
4
+ `,Ne+=` load-nb: ${Object.keys(ae).length}`,Ne+=`, equal-nb: ${rt}, changed-nb: ${He-rt}`,Ne+=`, out-of-scope: ${it}`,[Ne,Fe||et]}let b="",T=!1;function g(){{const R=new URLSearchParams(r.url.search),ae={};for(const[Ne,Fe]of R){const He=Number(Fe);isNaN(He)||(ae[Ne]=He)}Object.keys(ae).length>0&&l(7,[b,T]=d(a.partName,ae),b,l(8,T))}}function O(){g(),v()}Et(()=>{O()});function D(R){try{const[ae]=Fl(R);l(7,[b,T]=d(ae.partName,ae.pVal),b,l(8,T)),l(6,N=ae.comment),v()}catch(ae){let Ne=`err723: error by parsing parameter file
5
+ `;Ne+=ae,l(7,b=Ne),l(8,T=!0)}}async function C(R){const ae=await R.text();D(ae)}function z(R){if(R.target){const ae=R.target.files;ae&&C(ae[0])}}function F(){bl(a.partName,n[a.partName],N)}let A=!1,w=!1,E=!1,U=!1;function M(){const R={};for(const ae of a.params)R[ae.name]=ae.init;l(7,[b,T]=d(a.partName,R),b,l(8,T))}let Y;function B(){if(Y!==void 0&&Y!==""){const R=`${a.partName}_${Y}`;{const ae=window.localStorage.getItem(R);ae===null?(l(7,b=`Warn157: localStorage key ${R} is null`),l(8,T=!0)):D(ae)}}else l(7,b="Warn239: No valid name for loading from localStorage!"),l(8,T=!0)}let y;function W(){if(y!==void 0&&y!==""){const R=`${a.partName}_${y}`,ae=/\..*$/,Fe=hl(new Date().toISOString().replace(ae,""),a.partName,n[a.partName],N);window.localStorage.setItem(R,Fe)}else console.log("Warn639: No valid name for writing to localStorage!")}let te="";function ee(){return kn(r.url.href,n[a.partName]).toString()}function Q(){l(15,te=ee()),l(11,E=!0)}let pe=`${vt}/pgdsvg/default_param_blank.svg`;function ue(R){l(16,pe=`${vt}/pgdsvg/default_param_blank.svg`),Object.keys(a.paramSvg).includes(R)&&l(16,pe=`${vt}/pgdsvg/${a.paramSvg[R]}`)}let me="";function be(R,ae){if(me!==a.partName){const Ne=Object.keys(n[ae]).length;R<Ne&&ue(Object.keys(n[ae])[R])}}let j=!1;function H(){l(17,j=!0)}function se(R){const ae=[];let Fe={sectionName:"main",sectionID:"g0main",sectionVisible:!1,params:[]},He=0;for(const $e of R)$e.pType===wt.eSectionSeparator?(ae.push(Fe),He+=1,Fe={sectionName:$e.name,sectionID:`g${He}${$e.name}`,sectionVisible:!0,params:[]}):Fe.params.push($e);return ae.push(Fe),ae}let Z,re;const $=()=>{l(9,A=!0)},he=()=>{l(10,w=!0)};function ce(R){A=R,l(9,A)}function fe(R){Y=R,l(13,Y)}function x(R){w=R,l(10,w)}function L(R){re[R.sectionID]=this.checked,l(18,re),l(0,a),l(30,me),l(5,Z)}const V=R=>ue(R.name);function le(R){n[a.partName][R.name]=_t(this.value),Ke.set(n)}function _e(R){n[a.partName][R.name]=_t(this.value),Ke.set(n)}function ge(R){n[a.partName][R.name]=Ot(this),Ke.set(n)}function ie(R){n[a.partName][R.name]=Ot(this),Ke.set(n)}function Oe(){N=this.value,l(6,N)}const Je=()=>{l(12,U=!0)};function Qe(R){E=R,l(11,E)}function xe(R){y=R,l(14,y)}function qe(R){U=R,l(12,U)}function pt(R){j=R,l(17,j)}return t.$$set=R=>{"pDef"in R&&l(0,a=R.pDef),"fgeom"in R&&l(1,c=R.fgeom),"selFace"in R&&l(2,u=R.selFace),"zAdjust"in R&&l(3,i=R.zAdjust),"simTime"in R&&l(4,m=R.simTime)},t.$$.update=()=>{t.$$.dirty[0]&1&&be(0,a.partName),t.$$.dirty[0]&1073741857&&(l(5,Z=se(a.params)),me!==a.partName&&(l(30,me=a.partName),l(18,re=An(Z))))},[a,c,u,i,m,Z,N,b,T,A,w,E,U,Y,y,te,pe,j,re,n,h,v,z,F,M,B,W,Q,ue,H,me,$,he,ce,fe,x,L,V,le,_e,ge,ie,Oe,Je,Qe,xe,qe,pt]}class zn extends Me{constructor(e){super(),ye(this,e,Un,In,ze,{pDef:0,fgeom:1,selFace:2,zAdjust:3,simTime:4},null,[-1,-1,-1])}}function Mn(t){let e,l,n="0",r,s,a="<-",c,u,i="|<",m,h,N="||",v,d,b=">|",T,g,O="->",D,C,z,F,A,w;return{c(){e=_("nav"),l=_("button"),l.textContent=n,r=I(),s=_("button"),s.textContent=a,c=I(),u=_("button"),u.textContent=i,m=I(),h=_("button"),h.textContent=N,v=I(),d=_("button"),d.textContent=b,T=I(),g=_("button"),g.textContent=O,D=I(),C=_("input"),z=I(),F=_("input"),this.h()},l(E){e=p(E,"NAV",{class:!0});var U=S(e);l=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(l)!=="svelte-sw7vi1"&&(l.textContent=n),r=P(U),s=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(s)!=="svelte-gbiqvp"&&(s.textContent=a),c=P(U),u=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(u)!=="svelte-10nqggx"&&(u.textContent=i),m=P(U),h=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(h)!=="svelte-1xmh6xn"&&(h.textContent=N),v=P(U),d=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(d)!=="svelte-1wuqlom"&&(d.textContent=b),T=P(U),g=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(g)!=="svelte-1vey426"&&(g.textContent=O),D=P(U),C=p(U,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),z=P(U),F=p(U,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),U.forEach(k),this.h()},h(){f(l,"class","svelte-uw6ahn"),f(s,"class","svelte-uw6ahn"),f(u,"class","svelte-uw6ahn"),f(h,"class","svelte-uw6ahn"),f(d,"class","svelte-uw6ahn"),f(g,"class","svelte-uw6ahn"),f(C,"type","range"),f(C,"min","0"),f(C,"max",t[1]),f(C,"step",t[2]),f(C,"class","svelte-uw6ahn"),f(F,"type","number"),f(F,"min","0"),f(F,"max",t[1]),f(F,"step",t[2]),f(F,"class","svelte-uw6ahn"),f(e,"class","svelte-uw6ahn")},m(E,U){J(E,e,U),o(e,l),o(e,r),o(e,s),o(e,c),o(e,u),o(e,m),o(e,h),o(e,v),o(e,d),o(e,T),o(e,g),o(e,D),o(e,C),ke(C,t[0]),o(e,z),o(e,F),ke(F,t[0]),A||(w=[G(l,"click",t[3]),G(s,"click",t[6]),G(u,"click",t[4]),G(h,"click",t[8]),G(d,"click",t[5]),G(g,"click",t[7]),G(C,"change",t[10]),G(C,"input",t[10]),G(F,"input",t[11])],A=!0)},p(E,[U]){U&2&&f(C,"max",E[1]),U&4&&f(C,"step",E[2]),U&1&&ke(C,E[0]),U&2&&f(F,"max",E[1]),U&4&&f(F,"step",E[2]),U&1&&_t(F.value)!==E[0]&&ke(F,E[0])},i:Ue,o:Ue,d(E){E&&k(e),A=!1,Ye(w)}}}const $t=4;function yn(t,e,l){let{tMax:n=10}=e,{tStep:r=.1}=e,{tUpdate:s=500}=e,{simTime:a=0}=e,c=null,u=0,i;function m(){c!==null&&(clearInterval(c),c=null)}function h(){i<0&&a<=0?l(0,a=n):i>0&&a>=n?l(0,a=0):l(0,a+=i)}function N(){const z=s/2**(Math.abs(u)-1);i=u<0?-r:r,c=setInterval(h,z)}function v(){m(),l(0,a=0),u=0}function d(){m(),u=0,i=-r,h()}function b(){m(),u=0,i=r,h()}function T(){m(),u=Math.max(u-1,-$t),N()}function g(){m(),u=Math.min(u+1,$t),N()}function O(){m(),u=0}Pl(()=>{});function D(){a=_t(this.value),l(0,a)}function C(){a=_t(this.value),l(0,a)}return t.$$set=z=>{"tMax"in z&&l(1,n=z.tMax),"tStep"in z&&l(2,r=z.tStep),"tUpdate"in z&&l(9,s=z.tUpdate),"simTime"in z&&l(0,a=z.simTime)},[a,n,r,v,d,b,T,g,O,s,D,C]}class Fn extends Me{constructor(e){super(),ye(this,e,yn,Mn,ze,{tMax:1,tStep:2,tUpdate:9,simTime:0})}}function Bn(t){let e,l,n='<div class="zero svelte-c549k7"></div>',r,s,a='<div class="zoomin svelte-c549k7"></div>',c,u,i='<div class="zoomout svelte-c549k7"></div>',m,h,N='<div class="arrowleft svelte-c549k7"></div>',v,d,b='<div class="arrowright svelte-c549k7"></div>',T,g,O='<div class="arrowup svelte-c549k7"></div>',D,C,z='<div class="arrowdown svelte-c549k7"></div>',F,A;return{c(){e=_("nav"),l=_("button"),l.innerHTML=n,r=I(),s=_("button"),s.innerHTML=a,c=I(),u=_("button"),u.innerHTML=i,m=I(),h=_("button"),h.innerHTML=N,v=I(),d=_("button"),d.innerHTML=b,T=I(),g=_("button"),g.innerHTML=O,D=I(),C=_("button"),C.innerHTML=z,this.h()},l(w){e=p(w,"NAV",{class:!0});var E=S(e);l=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(l)!=="svelte-nkdg6y"&&(l.innerHTML=n),r=P(E),s=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(s)!=="svelte-nbpwn1"&&(s.innerHTML=a),c=P(E),u=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(u)!=="svelte-toyuqt"&&(u.innerHTML=i),m=P(E),h=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(h)!=="svelte-vbdqb3"&&(h.innerHTML=N),v=P(E),d=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(d)!=="svelte-a55vyt"&&(d.innerHTML=b),T=P(E),g=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(g)!=="svelte-ky9277"&&(g.innerHTML=O),D=P(E),C=p(E,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(C)!=="svelte-1obyap9"&&(C.innerHTML=z),E.forEach(k),this.h()},h(){f(l,"class","svelte-c549k7"),f(s,"class","svelte-c549k7"),f(u,"class","svelte-c549k7"),f(h,"class","svelte-c549k7"),f(d,"class","svelte-c549k7"),f(g,"class","svelte-c549k7"),f(C,"class","svelte-c549k7"),f(e,"class","svelte-c549k7")},m(w,E){J(w,e,E),o(e,l),o(e,r),o(e,s),o(e,c),o(e,u),o(e,m),o(e,h),o(e,v),o(e,d),o(e,T),o(e,g),o(e,D),o(e,C),F||(A=[G(l,"click",t[1]),G(s,"click",t[2]),G(u,"click",t[3]),G(h,"click",t[4]),G(d,"click",t[5]),G(g,"click",t[6]),G(C,"click",t[7])],F=!0)},p:Ue,i:Ue,o:Ue,d(w){w&&k(e),F=!1,Ye(A)}}}function Rn(t){const e=ml();function l(m){e("myevent",{action:m})}return[l,()=>l("zoomInit"),()=>l("zoomIn"),()=>l("zoomOut"),()=>l("moveLeft"),()=>l("moveRight"),()=>l("moveUp"),()=>l("moveDown")]}class Hn extends Me{constructor(e){super(),ye(this,e,Rn,Bn,ze,{})}}function Vn(t){let e,l,n,r,s,a,c,u,i,m,h,N,v,d,b,T,g,O,D,C,z,F,A,w,E,U,M,Y,B,y,W,te,ee,Q,pe,ue,me,be,j,H,se,Z;return{c(){e=_("div"),l=_("label"),n=_("input"),r=K("main part"),s=I(),a=_("label"),c=_("input"),u=K("main skeleton"),i=I(),m=_("label"),h=_("input"),N=K("second parts"),v=I(),d=_("label"),b=_("input"),T=K("second skeletons"),g=I(),O=_("label"),D=_("input"),C=K("dynamics"),z=I(),F=_("label"),A=_("input"),w=K("ruler"),E=I(),U=_("label"),M=_("input"),Y=K("frame of reference"),B=I(),y=_("label"),W=_("input"),te=K("points"),ee=I(),Q=_("label"),pe=_("input"),ue=K("lines"),me=I(),be=_("label"),j=_("input"),H=K("vectors"),this.h()},l(re){e=p(re,"DIV",{class:!0});var $=S(e);l=p($,"LABEL",{class:!0});var he=S(l);n=p(he,"INPUT",{type:!0,class:!0}),r=q(he,"main part"),he.forEach(k),s=P($),a=p($,"LABEL",{class:!0});var ce=S(a);c=p(ce,"INPUT",{type:!0,class:!0}),u=q(ce,"main skeleton"),ce.forEach(k),i=P($),m=p($,"LABEL",{class:!0});var fe=S(m);h=p(fe,"INPUT",{type:!0,class:!0}),N=q(fe,"second parts"),fe.forEach(k),v=P($),d=p($,"LABEL",{class:!0});var x=S(d);b=p(x,"INPUT",{type:!0,class:!0}),T=q(x,"second skeletons"),x.forEach(k),g=P($),O=p($,"LABEL",{class:!0});var L=S(O);D=p(L,"INPUT",{type:!0,class:!0}),C=q(L,"dynamics"),L.forEach(k),z=P($),F=p($,"LABEL",{class:!0});var V=S(F);A=p(V,"INPUT",{type:!0,class:!0}),w=q(V,"ruler"),V.forEach(k),E=P($),U=p($,"LABEL",{class:!0});var le=S(U);M=p(le,"INPUT",{type:!0,class:!0}),Y=q(le,"frame of reference"),le.forEach(k),B=P($),y=p($,"LABEL",{class:!0});var _e=S(y);W=p(_e,"INPUT",{type:!0,class:!0}),te=q(_e,"points"),_e.forEach(k),ee=P($),Q=p($,"LABEL",{class:!0});var ge=S(Q);pe=p(ge,"INPUT",{type:!0,class:!0}),ue=q(ge,"lines"),ge.forEach(k),me=P($),be=p($,"LABEL",{class:!0});var ie=S(be);j=p(ie,"INPUT",{type:!0,class:!0}),H=q(ie,"vectors"),ie.forEach(k),$.forEach(k),this.h()},h(){f(n,"type","checkbox"),f(n,"class","svelte-1rsbkj"),f(l,"class","svelte-1rsbkj"),f(c,"type","checkbox"),f(c,"class","svelte-1rsbkj"),f(a,"class","svelte-1rsbkj"),f(h,"type","checkbox"),f(h,"class","svelte-1rsbkj"),f(m,"class","svelte-1rsbkj"),f(b,"type","checkbox"),f(b,"class","svelte-1rsbkj"),f(d,"class","svelte-1rsbkj"),f(D,"type","checkbox"),f(D,"class","svelte-1rsbkj"),f(O,"class","svelte-1rsbkj"),f(A,"type","checkbox"),f(A,"class","svelte-1rsbkj"),f(F,"class","svelte-1rsbkj"),f(M,"type","checkbox"),f(M,"class","svelte-1rsbkj"),f(U,"class","svelte-1rsbkj"),f(W,"type","checkbox"),f(W,"class","svelte-1rsbkj"),f(y,"class","svelte-1rsbkj"),f(pe,"type","checkbox"),f(pe,"class","svelte-1rsbkj"),f(Q,"class","svelte-1rsbkj"),f(j,"type","checkbox"),f(j,"class","svelte-1rsbkj"),f(be,"class","svelte-1rsbkj"),f(e,"class","svelte-1rsbkj")},m(re,$){J(re,e,$),o(e,l),o(l,n),n.checked=t[0].main,o(l,r),o(e,s),o(e,a),o(a,c),c.checked=t[0].mainB,o(a,u),o(e,i),o(e,m),o(m,h),h.checked=t[0].second,o(m,N),o(e,v),o(e,d),o(d,b),b.checked=t[0].secondB,o(d,T),o(e,g),o(e,O),o(O,D),D.checked=t[0].dynamics,o(O,C),o(e,z),o(e,F),o(F,A),A.checked=t[0].ruler,o(F,w),o(e,E),o(e,U),o(U,M),M.checked=t[0].refframe,o(U,Y),o(e,B),o(e,y),o(y,W),W.checked=t[0].points,o(y,te),o(e,ee),o(e,Q),o(Q,pe),pe.checked=t[0].lines,o(Q,ue),o(e,me),o(e,be),o(be,j),j.checked=t[0].vectors,o(be,H),se||(Z=[G(n,"change",t[1]),G(c,"change",t[2]),G(h,"change",t[3]),G(b,"change",t[4]),G(D,"change",t[5]),G(A,"change",t[6]),G(M,"change",t[7]),G(W,"change",t[8]),G(pe,"change",t[9]),G(j,"change",t[10])],se=!0)},p(re,[$]){$&1&&(n.checked=re[0].main),$&1&&(c.checked=re[0].mainB),$&1&&(h.checked=re[0].second),$&1&&(b.checked=re[0].secondB),$&1&&(D.checked=re[0].dynamics),$&1&&(A.checked=re[0].ruler),$&1&&(M.checked=re[0].refframe),$&1&&(W.checked=re[0].points),$&1&&(pe.checked=re[0].lines),$&1&&(j.checked=re[0].vectors)},i:Ue,o:Ue,d(re){re&&k(e),se=!1,Ye(Z)}}}function Wn(t,e,l){let n;at(t,Re,d=>l(0,n=d));function r(){n.main=this.checked,Re.set(n)}function s(){n.mainB=this.checked,Re.set(n)}function a(){n.second=this.checked,Re.set(n)}function c(){n.secondB=this.checked,Re.set(n)}function u(){n.dynamics=this.checked,Re.set(n)}function i(){n.ruler=this.checked,Re.set(n)}function m(){n.refframe=this.checked,Re.set(n)}function h(){n.points=this.checked,Re.set(n)}function N(){n.lines=this.checked,Re.set(n)}function v(){n.vectors=this.checked,Re.set(n)}return[n,r,s,a,c,u,i,m,h,N,v]}class Xn extends Me{constructor(e){super(),ye(this,e,Wn,Vn,ze,{})}}function xt(t,e,l){const n=t.slice();return n[36]=e[l],n}function el(t){let e,l=t[36]+"",n,r;return{c(){e=_("option"),n=K(l),this.h()},l(s){e=p(s,"OPTION",{});var a=S(e);n=q(a,l),a.forEach(k),this.h()},h(){e.__value=r=t[36],ke(e,e.__value)},m(s,a){J(s,e,a),o(e,n)},p(s,a){a[0]&8&&l!==(l=s[36]+"")&&ve(n,l),a[0]&8&&r!==(r=s[36])&&(e.__value=r,ke(e,e.__value))},d(s){s&&k(e)}}}function Yn(t){let e,l,n,r,s,a,c,u,i,m,h,N,v,d,b,T,g,O,D,C,z,F;bt(t[20]);let A=Ce(t[3]),w=[];for(let M=0;M<A.length;M+=1)w[M]=el(xt(t,A,M));u=new Xn({});function E(M){t[23](M)}let U={tMax:t[2].sim.tMax,tStep:t[2].sim.tStep,tUpdate:t[2].sim.tUpdate};return t[1]!==void 0&&(U.simTime=t[1]),v=new Fn({props:U}),je.push(()=>Ae(v,"simTime",E)),D=new Hn({}),D.$on("myevent",t[8]),{c(){e=_("section"),l=_("h2"),n=K(`Drawing
6
+ `),r=_("select");for(let M=0;M<w.length;M+=1)w[M].c();s=_("option"),a=K("All faces merged"),c=I(),De(u.$$.fragment),i=I(),m=_("div"),h=_("canvas"),N=I(),De(v.$$.fragment),b=I(),T=_("div"),g=_("canvas"),O=I(),De(D.$$.fragment),this.h()},l(M){e=p(M,"SECTION",{class:!0});var Y=S(e);l=p(Y,"H2",{class:!0});var B=S(l);n=q(B,`Drawing
7
+ `),r=p(B,"SELECT",{class:!0});var y=S(r);for(let Q=0;Q<w.length;Q+=1)w[Q].l(y);s=p(y,"OPTION",{});var W=S(s);a=q(W,"All faces merged"),W.forEach(k),y.forEach(k),B.forEach(k),c=P(Y),Ee(u.$$.fragment,Y),i=P(Y),m=p(Y,"DIV",{class:!0});var te=S(m);h=p(te,"CANVAS",{class:!0,width:!0,height:!0}),S(h).forEach(k),N=P(te),Ee(v.$$.fragment,te),te.forEach(k),b=P(Y),T=p(Y,"DIV",{class:!0});var ee=S(T);g=p(ee,"CANVAS",{class:!0,width:!0,height:!0}),S(g).forEach(k),O=P(ee),Ee(D.$$.fragment,ee),ee.forEach(k),Y.forEach(k),this.h()},h(){s.__value=kl,ke(s,s.__value),f(r,"class","svelte-s85el8"),t[0]===void 0&&bt(()=>t[21].call(r)),f(l,"class","svelte-s85el8"),f(h,"class","full svelte-s85el8"),f(h,"width",ft),f(h,"height",ft),f(m,"class","rack svelte-s85el8"),f(g,"class","zoom svelte-s85el8"),f(g,"width",ft),f(g,"height",ft),f(T,"class","rack svelte-s85el8"),f(e,"class","svelte-s85el8")},m(M,Y){J(M,e,Y),o(e,l),o(l,n),o(l,r);for(let B=0;B<w.length;B+=1)w[B]&&w[B].m(r,null);o(r,s),o(s,a),ot(r,t[0],!0),o(e,c),Le(u,e,null),o(e,i),o(e,m),o(m,h),t[22](h),o(m,N),Le(v,m,null),o(e,b),o(e,T),o(T,g),t[24](g),o(T,O),Le(D,T,null),C=!0,z||(F=[G(window,"resize",t[7]),G(window,"resize",t[20]),G(r,"change",t[21]),G(h,"mousedown",t[9]),G(h,"mouseup",t[10]),G(h,"mousemove",t[11]),G(g,"mousedown",t[12]),G(g,"mousemove",t[13]),G(g,"wheel",Al(t[14]))],z=!0)},p(M,Y){if(Y[0]&8){A=Ce(M[3]);let y;for(y=0;y<A.length;y+=1){const W=xt(M,A,y);w[y]?w[y].p(W,Y):(w[y]=el(W),w[y].c(),w[y].m(r,s))}for(;y<w.length;y+=1)w[y].d(1);w.length=A.length}Y[0]&9&&ot(r,M[0]);const B={};Y[0]&4&&(B.tMax=M[2].sim.tMax),Y[0]&4&&(B.tStep=M[2].sim.tStep),Y[0]&4&&(B.tUpdate=M[2].sim.tUpdate),!d&&Y[0]&2&&(d=!0,B.simTime=M[1],Pe(()=>d=!1)),v.$set(B)},i(M){C||(Te(u.$$.fragment,M),Te(v.$$.fragment,M),Te(D.$$.fragment,M),C=!0)},o(M){we(u.$$.fragment,M),we(v.$$.fragment,M),we(D.$$.fragment,M),C=!1},d(M){M&&k(e),Xe(w,M),Se(u),t[22](null),Se(v),t[24](null),Se(D),z=!1,Ye(F)}}}const kl="ParametrixAll",ft=400,Kn=3e3,Tt=10,tl=3;function qn(t,e){let l=e;if(t.length===0)console.log("warn404: Drawing has an empty face list");else{const n=t.slice();n.push(kl),n.includes(l)||(l=t[0])}return l}function Gn(t,e,l){let n,r;at(t,Re,j=>l(18,n=j)),at(t,Ke,j=>l(19,r=j));let{pDef:s}=e,{fgeom:a}=e,{optFaces:c}=e,{selFace:u}=e,{zAdjust:i}=e,{simTime:m=0}=e,h,N,v,d,b;function T(j){const H=N.getContext("2d");H.clearRect(0,0,H.canvas.width,H.canvas.height);try{b=d.getAdjustFull(H.canvas.width,H.canvas.height),d.draw(H,b,j)}catch(se){console.log(se)}}function g(j){const H=v.getContext("2d");H.clearRect(0,0,H.canvas.width,H.canvas.height);try{(i===void 0||i.init===0)&&l(15,i=d.getAdjustZoom(H.canvas.width,H.canvas.height)),d.draw(H,i,j)}catch(se){console.log(se)}}function O(){const j=N.getContext("2d"),H=Math.max(.4*h,ft);j.canvas.width=H,j.canvas.height=H}function D(){O(),T(n),g(n)}let C=0;function z(j,H,se,Z){const re=a(j,H).fig,$=Object.keys(re),he=qn($,se);l(0,u=he),$.includes(he)?d=re[he]:d=dl(re),T(Z),g(Z)}function F(j,H){z(j,r[s.partName],H,n)}Et(()=>{O(),F(m,u),l(17,C=1)});function A(j){switch(j.detail.action){case"zoomInit":l(15,i.init=0,i);break;case"zoomIn":l(15,i=Nt(.7,i));break;case"zoomOut":l(15,i=Nt(1.3,i));break;case"moveLeft":l(15,i.xMin+=-.2*i.xyDiff,i);break;case"moveRight":l(15,i.xMin+=.2*i.xyDiff,i);break;case"moveUp":l(15,i.yMin+=.2*i.xyDiff,i);break;case"moveDown":l(15,i.yMin+=-.2*i.xyDiff,i);break;default:console.log(`ERR423: ${j.detail.action} has no case!`)}g(n)}let w={timestamp:0,offsetX:0,offsetY:0};function E(j){j.button===0&&(w.timestamp=Date.now(),w.offsetX=j.offsetX,w.offsetY=j.offsetY)}function U(j){if(j.button===0)if(Date.now()-w.timestamp<Kn){const H=Math.abs(w.offsetX-j.offsetX),se=Math.abs(w.offsetY-j.offsetY);if(H<Tt&&se<Tt){const[Z,re]=ct(j.offsetX,j.offsetY,b);l(15,i=Bl(Z,re,i)),F(m,u)}if(H>Tt&&se>Tt){const Z=H/se,re=1/Z;if(Z<tl&&re<tl){const[$,he]=ct(j.offsetX,j.offsetY,b),[ce,fe]=ct(w.offsetX,w.offsetY,b);l(15,i=Rl($,he,ce,fe,ft,ft)),F(m,u)}}}else console.log(`Warn205: ignore ${j.offsetX} ${j.offsetY} because too slow`)}function M(j){const H=N.getContext("2d");if(j.buttons===1){const se=j.offsetX-w.offsetX,Z=j.offsetY-w.offsetY;T(n),H.beginPath(),H.rect(w.offsetX,w.offsetY,se,Z),H.strokeStyle=Ct.mouse,H.stroke()}if(n.ruler){const[se,Z]=ct(j.offsetX,j.offsetY,b);H.clearRect(5,5,200,25),H.font="15px Arial",H.fillStyle=Ct.ruler,H.fillText(`x: ${se.toFixed(4)} y: ${Z.toFixed(4)}`,5,20)}}let Y,B,y;function W(j){if(j.button===0){const[H,se]=ct(j.offsetX,j.offsetY,i);Y=H,B=se,y=structuredClone(i)}}function te(j){if(j.buttons===1){const[H,se]=ct(j.offsetX,j.offsetY,y);l(15,i=Hl(Y,B,H,se,y)),g(n)}else if(n.ruler){const H=v.getContext("2d"),[se,Z]=ct(j.offsetX,j.offsetY,i);H.clearRect(5,5,200,25),H.font="15px Arial",H.fillStyle=Ct.ruler,H.fillText(`x: ${se.toFixed(4)} y: ${Z.toFixed(4)}`,5,20)}}function ee(j){j.deltaY>0?l(15,i=Nt(.7,i)):l(15,i=Nt(1.3,i)),g(n)}function Q(){l(4,h=window.innerWidth)}function pe(){u=Ot(this),l(0,u),l(3,c)}function ue(j){je[j?"unshift":"push"](()=>{N=j,l(5,N)})}function me(j){m=j,l(1,m)}function be(j){je[j?"unshift":"push"](()=>{v=j,l(6,v)})}return t.$$set=j=>{"pDef"in j&&l(2,s=j.pDef),"fgeom"in j&&l(16,a=j.fgeom),"optFaces"in j&&l(3,c=j.optFaces),"selFace"in j&&l(0,u=j.selFace),"zAdjust"in j&&l(15,i=j.zAdjust),"simTime"in j&&l(1,m=j.simTime)},t.$$.update=()=>{t.$$.dirty[0]&917511&&C===1&&z(m,r[s.partName],u,n)},[u,m,s,c,h,N,v,D,A,E,U,M,W,te,ee,i,a,C,n,r,Q,pe,ue,me,be]}class Zn extends Me{constructor(e){super(),ye(this,e,Gn,Yn,ze,{pDef:2,fgeom:16,optFaces:3,selFace:0,zAdjust:15,simTime:1},null,[-1,-1])}}function ll(t,e,l){const n=t.slice();return n[10]=e[l],n}function nl(t,e,l){const n=t.slice();return n[13]=e[l],n[15]=l,n}function sl(t){let e,l,n=t[15]+1+"",r,s,a,c=t[13]+"",u,i,m,h=t[0][t[10]].dparam[t[13]].val+"",N,v,d,b,T=t[0][t[10]].dparam[t[13]].init+"",g,O,D,C,z=ol(t[0][t[10]].dparam[t[13]].chg)+"",F,A;return{c(){e=_("tr"),l=_("td"),r=K(n),s=I(),a=_("td"),u=K(c),i=I(),m=_("td"),N=K(h),v=I(),d=_("td"),b=_("i"),g=K(T),O=I(),D=_("td"),C=_("i"),F=K(z),A=I(),this.h()},l(w){e=p(w,"TR",{class:!0});var E=S(e);l=p(E,"TD",{});var U=S(l);r=q(U,n),U.forEach(k),s=P(E),a=p(E,"TD",{});var M=S(a);u=q(M,c),M.forEach(k),i=P(E),m=p(E,"TD",{});var Y=S(m);N=q(Y,h),Y.forEach(k),v=P(E),d=p(E,"TD",{});var B=S(d);b=p(B,"I",{});var y=S(b);g=q(y,T),y.forEach(k),B.forEach(k),O=P(E),D=p(E,"TD",{});var W=S(D);C=p(W,"I",{});var te=S(C);F=q(te,z),te.forEach(k),W.forEach(k),A=P(E),E.forEach(k),this.h()},h(){f(e,"class","svelte-lzdpo0"),Be(e,"changed",t[0][t[10]].dparam[t[13]].chg)},m(w,E){J(w,e,E),o(e,l),o(l,r),o(e,s),o(e,a),o(a,u),o(e,i),o(e,m),o(m,N),o(e,v),o(e,d),o(d,b),o(b,g),o(e,O),o(e,D),o(D,C),o(C,F),o(e,A)},p(w,E){E&5&&c!==(c=w[13]+"")&&ve(u,c),E&5&&h!==(h=w[0][w[10]].dparam[w[13]].val+"")&&ve(N,h),E&5&&T!==(T=w[0][w[10]].dparam[w[13]].init+"")&&ve(g,T),E&5&&z!==(z=ol(w[0][w[10]].dparam[w[13]].chg)+"")&&ve(F,z),E&5&&Be(e,"changed",w[0][w[10]].dparam[w[13]].chg)},d(w){w&&k(e)}}}function al(t){let e,l,n,r,s,a,c,u=t[10]+"",i,m,h,N,v,d=t[1][t[0][t[10]].partName]+"",b,T,g,O="Export parameters",D,C,z,F=Object.keys(t[0][t[10]].dparam).length+"",A,w,E,U=t[0][t[10]].partName+"",M,Y,B=t[5](t[0][t[10]].orientation)+"",y,W,te=t[6](t[0][t[10]].position)+"",ee,Q,pe,ue,me,be="<tr><td>Num</td> <td>Name</td> <td>Value</td> <td>Init</td> <td>Set?</td></tr>",j,H,se,Z,re;function $(){return t[8](t[10])}function he(){return t[9](t[10])}let ce=Ce(Object.keys(t[0][t[10]].dparam)),fe=[];for(let x=0;x<ce.length;x+=1)fe[x]=sl(nl(t,ce,x));return{c(){e=_("li"),l=_("input"),r=I(),s=_("label"),a=_("div"),c=I(),i=K(u),h=I(),N=_("button"),v=K("Go to "),b=K(d),T=I(),g=_("button"),g.textContent=O,D=I(),C=_("div"),z=_("article"),A=K(F),w=K(` parameters of
8
+ `),E=_("strong"),M=K(U),Y=K(`
9
+ with orientation `),y=K(B),W=K(` (degree) at position
10
+ `),ee=K(te),Q=K(" (mm)"),pe=I(),ue=_("table"),me=_("thead"),me.innerHTML=be,j=I(),H=_("tbody");for(let x=0;x<fe.length;x+=1)fe[x].c();se=I(),this.h()},l(x){e=p(x,"LI",{class:!0});var L=S(e);l=p(L,"INPUT",{type:!0,id:!0,class:!0}),r=P(L),s=p(L,"LABEL",{for:!0,class:!0});var V=S(s);a=p(V,"DIV",{class:!0}),S(a).forEach(k),c=P(V),i=q(V,u),V.forEach(k),h=P(L),N=p(L,"BUTTON",{class:!0});var le=S(N);v=q(le,"Go to "),b=q(le,d),le.forEach(k),T=P(L),g=p(L,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(g)!=="svelte-circu6"&&(g.textContent=O),D=P(L),C=p(L,"DIV",{class:!0});var _e=S(C);z=p(_e,"ARTICLE",{class:!0});var ge=S(z);A=q(ge,F),w=q(ge,` parameters of
11
+ `),E=p(ge,"STRONG",{});var ie=S(E);M=q(ie,U),ie.forEach(k),Y=q(ge,`
12
+ with orientation `),y=q(ge,B),W=q(ge,` (degree) at position
13
+ `),ee=q(ge,te),Q=q(ge," (mm)"),ge.forEach(k),pe=P(_e),ue=p(_e,"TABLE",{class:!0});var Oe=S(ue);me=p(Oe,"THEAD",{class:!0,"data-svelte-h":!0}),oe(me)!=="svelte-nhorjb"&&(me.innerHTML=be),j=P(Oe),H=p(Oe,"TBODY",{class:!0});var Je=S(H);for(let Qe=0;Qe<fe.length;Qe+=1)fe[Qe].l(Je);Je.forEach(k),Oe.forEach(k),_e.forEach(k),se=P(L),L.forEach(k),this.h()},h(){f(l,"type","checkbox"),f(l,"id",n="cb_"+t[10]),f(l,"class","toggle svelte-lzdpo0"),l.checked=!1,f(a,"class","arrow svelte-lzdpo0"),f(s,"for",m="cb_"+t[10]),f(s,"class","label svelte-lzdpo0"),f(N,"class","svelte-lzdpo0"),f(g,"class","svelte-lzdpo0"),f(z,"class","svelte-lzdpo0"),f(me,"class","svelte-lzdpo0"),f(H,"class","svelte-lzdpo0"),f(ue,"class","svelte-lzdpo0"),f(C,"class","nested svelte-lzdpo0"),f(e,"class","svelte-lzdpo0")},m(x,L){J(x,e,L),o(e,l),o(e,r),o(e,s),o(s,a),o(s,c),o(s,i),o(e,h),o(e,N),o(N,v),o(N,b),o(e,T),o(e,g),o(e,D),o(e,C),o(C,z),o(z,A),o(z,w),o(z,E),o(E,M),o(z,Y),o(z,y),o(z,W),o(z,ee),o(z,Q),o(C,pe),o(C,ue),o(ue,me),o(ue,j),o(ue,H);for(let V=0;V<fe.length;V+=1)fe[V]&&fe[V].m(H,null);o(e,se),Z||(re=[G(N,"click",$),G(g,"click",he)],Z=!0)},p(x,L){if(t=x,L&4&&n!==(n="cb_"+t[10])&&f(l,"id",n),L&4&&u!==(u=t[10]+"")&&ve(i,u),L&4&&m!==(m="cb_"+t[10])&&f(s,"for",m),L&7&&d!==(d=t[1][t[0][t[10]].partName]+"")&&ve(b,d),L&5&&F!==(F=Object.keys(t[0][t[10]].dparam).length+"")&&ve(A,F),L&5&&U!==(U=t[0][t[10]].partName+"")&&ve(M,U),L&5&&B!==(B=t[5](t[0][t[10]].orientation)+"")&&ve(y,B),L&5&&te!==(te=t[6](t[0][t[10]].position)+"")&&ve(ee,te),L&5){ce=Ce(Object.keys(t[0][t[10]].dparam));let V;for(V=0;V<ce.length;V+=1){const le=nl(t,ce,V);fe[V]?fe[V].p(le,L):(fe[V]=sl(le),fe[V].c(),fe[V].m(H,null))}for(;V<fe.length;V+=1)fe[V].d(1);fe.length=ce.length}},d(x){x&&k(e),Xe(fe,x),Z=!1,Ye(re)}}}function Jn(t){let e,l,n,r,s,a=t[2].length+"",c,u,i,m,h=Ce(t[2]),N=[];for(let v=0;v<h.length;v+=1)N[v]=al(ll(t,h,v));return{c(){e=_("section"),l=_("h2"),n=K(`Sub-designs
14
+ `),r=_("span"),s=K("(Number of sub-instances: "),c=K(a),u=K(")"),i=I(),m=_("ol");for(let v=0;v<N.length;v+=1)N[v].c();this.h()},l(v){e=p(v,"SECTION",{class:!0});var d=S(e);l=p(d,"H2",{class:!0});var b=S(l);n=q(b,`Sub-designs
15
+ `),r=p(b,"SPAN",{class:!0});var T=S(r);s=q(T,"(Number of sub-instances: "),c=q(T,a),u=q(T,")"),T.forEach(k),b.forEach(k),i=P(d),m=p(d,"OL",{class:!0});var g=S(m);for(let O=0;O<N.length;O+=1)N[O].l(g);g.forEach(k),d.forEach(k),this.h()},h(){f(r,"class","svelte-lzdpo0"),f(l,"class","svelte-lzdpo0"),f(m,"class","svelte-lzdpo0"),f(e,"class","svelte-lzdpo0")},m(v,d){J(v,e,d),o(e,l),o(l,n),o(l,r),o(r,s),o(r,c),o(r,u),o(e,i),o(e,m);for(let b=0;b<N.length;b+=1)N[b]&&N[b].m(m,null)},p(v,[d]){if(d&4&&a!==(a=v[2].length+"")&&ve(c,a),d&127){h=Ce(v[2]);let b;for(b=0;b<h.length;b+=1){const T=ll(v,h,b);N[b]?N[b].p(T,d):(N[b]=al(T),N[b].c(),N[b].m(m,null))}for(;b<N.length;b+=1)N[b].d(1);N.length=h.length}},i:Ue,o:Ue,d(v){v&&k(e),Xe(N,v)}}}function ol(t){return t?"Yes":""}function Qn(t,e,l){let{subD:n={}}=e,{origPartName:r=""}=e,{pLink:s}=e,a=[];async function c(v){const d=n[v];pl(d.partName,At(d.dparam),!0);const b=`${vt}${s[d.partName]}`;Cl(b)}function u(v){const d=n[v].partName,b=n[v].dparam,T=`sub-design parameters of ${d} from ${r}`;bl(d,At(b),T)}function i(v){let d="[ ";return d+=`${dt(Dt(v[0]))}, `,d+=`${dt(Dt(v[1]))}, `,d+=`${dt(Dt(v[2]))} ]`,d}function m(v){let d="[ ";return d+=`${dt(v[0])}, `,d+=`${dt(v[1])}, `,d+=`${dt(v[2])} ]`,d}const h=v=>c(v),N=v=>u(v);return t.$$set=v=>{"subD"in v&&l(0,n=v.subD),"origPartName"in v&&l(7,r=v.origPartName),"pLink"in v&&l(1,s=v.pLink)},t.$$.update=()=>{t.$$.dirty&1&&l(2,a=Object.keys(n))},[n,s,a,c,u,i,m,r,h,N]}class $n extends Me{constructor(e){super(),ye(this,e,Qn,Jn,ze,{subD:0,origPartName:7,pLink:1})}}function rl(t,e,l){const n=t.slice();return n[21]=e[l],n}function il(t,e,l){const n=t.slice();return n[21]=e[l],n}function cl(t){let e,l,n=t[21]+"",r,s,a;return{c(){e=_("option"),l=K("face "),r=K(n),s=K(" as svg"),this.h()},l(c){e=p(c,"OPTION",{});var u=S(e);l=q(u,"face "),r=q(u,n),s=q(u," as svg"),u.forEach(k),this.h()},h(){e.__value=a="svg_"+t[21],ke(e,e.__value)},m(c,u){J(c,e,u),o(e,l),o(e,r),o(e,s)},p(c,u){u&8&&n!==(n=c[21]+"")&&ve(r,n),u&8&&a!==(a="svg_"+c[21])&&(e.__value=a,ke(e,e.__value))},d(c){c&&k(e)}}}function fl(t){let e,l,n=t[21]+"",r,s,a;return{c(){e=_("option"),l=K("face "),r=K(n),s=K(" as dxf"),this.h()},l(c){e=p(c,"OPTION",{});var u=S(e);l=q(u,"face "),r=q(u,n),s=q(u," as dxf"),u.forEach(k),this.h()},h(){e.__value=a="dxf_"+t[21],ke(e,e.__value)},m(c,u){J(c,e,u),o(e,l),o(e,r),o(e,s)},p(c,u){u&8&&n!==(n=c[21]+"")&&ve(r,n),u&8&&a!==(a="dxf_"+c[21])&&(e.__value=a,ke(e,e.__value))},d(c){c&&k(e)}}}function xn(t){let e,l,n,r,s="Log",a,c,u,i,m,h,N,v,d,b,T="Export",g,O,D,C="all faces merged as svg",z,F="all faces merged as dxf",A,w="compute.log as log-file",E,U="all faces as pax.json",M,Y="all faces as openscad.scad",B,y="all faces as OpenJScad.js",W,te="all faces and more as zip",ee,Q,pe="Save to File",ue,me,be,j,H;e=new zn({props:{pDef:t[0],fgeom:t[1],selFace:t[5],zAdjust:t[7],simTime:t[6]}}),e.$on("paramChg",t[12]);function se(L){t[14](L)}function Z(L){t[15](L)}function re(L){t[16](L)}let $={pDef:t[0],fgeom:t[1],optFaces:t[3]};t[5]!==void 0&&($.selFace=t[5]),t[7]!==void 0&&($.zAdjust=t[7]),t[6]!==void 0&&($.simTime=t[6]),i=new Zn({props:$}),je.push(()=>Ae(i,"selFace",se)),je.push(()=>Ae(i,"zAdjust",Z)),je.push(()=>Ae(i,"simTime",re));let he=Ce(t[3]),ce=[];for(let L=0;L<he.length;L+=1)ce[L]=cl(il(t,he,L));let fe=Ce(t[3]),x=[];for(let L=0;L<fe.length;L+=1)x[L]=fl(rl(t,fe,L));return me=new $n({props:{subD:t[11],origPartName:t[0].partName,pLink:t[2]}}),{c(){De(e.$$.fragment),l=I(),n=_("section"),r=_("h2"),r.textContent=s,a=I(),c=_("textarea"),u=I(),De(i.$$.fragment),v=I(),d=_("section"),b=_("h2"),b.textContent=T,g=I(),O=_("select");for(let L=0;L<ce.length;L+=1)ce[L].c();D=_("option"),D.textContent=C;for(let L=0;L<x.length;L+=1)x[L].c();z=_("option"),z.textContent=F,A=_("option"),A.textContent=w,E=_("option"),E.textContent=U,M=_("option"),M.textContent=Y,B=_("option"),B.textContent=y,W=_("option"),W.textContent=te,ee=I(),Q=_("button"),Q.textContent=pe,ue=I(),De(me.$$.fragment),this.h()},l(L){Ee(e.$$.fragment,L),l=P(L),n=p(L,"SECTION",{class:!0});var V=S(n);r=p(V,"H2",{class:!0,"data-svelte-h":!0}),oe(r)!=="svelte-4ty0ys"&&(r.textContent=s),a=P(V),c=p(V,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(c).forEach(k),V.forEach(k),u=P(L),Ee(i.$$.fragment,L),v=P(L),d=p(L,"SECTION",{class:!0});var le=S(d);b=p(le,"H2",{class:!0,"data-svelte-h":!0}),oe(b)!=="svelte-1kkpb88"&&(b.textContent=T),g=P(le),O=p(le,"SELECT",{class:!0});var _e=S(O);for(let ge=0;ge<ce.length;ge+=1)ce[ge].l(_e);D=p(_e,"OPTION",{"data-svelte-h":!0}),oe(D)!=="svelte-22of2y"&&(D.textContent=C);for(let ge=0;ge<x.length;ge+=1)x[ge].l(_e);z=p(_e,"OPTION",{"data-svelte-h":!0}),oe(z)!=="svelte-1utjrni"&&(z.textContent=F),A=p(_e,"OPTION",{"data-svelte-h":!0}),oe(A)!=="svelte-1tyn6jo"&&(A.textContent=w),E=p(_e,"OPTION",{"data-svelte-h":!0}),oe(E)!=="svelte-3g91m5"&&(E.textContent=U),M=p(_e,"OPTION",{"data-svelte-h":!0}),oe(M)!=="svelte-1tpsyal"&&(M.textContent=Y),B=p(_e,"OPTION",{"data-svelte-h":!0}),oe(B)!=="svelte-1n2n9j5"&&(B.textContent=y),W=p(_e,"OPTION",{"data-svelte-h":!0}),oe(W)!=="svelte-168w9vd"&&(W.textContent=te),_e.forEach(k),ee=P(le),Q=p(le,"BUTTON",{class:!0,"data-svelte-h":!0}),oe(Q)!=="svelte-kuqug6"&&(Q.textContent=pe),ue=P(le),Ee(me.$$.fragment,le),le.forEach(k),this.h()},h(){f(r,"class","svelte-19nn0vk"),f(c,"rows","5"),f(c,"cols","94"),c.readOnly=!0,f(c,"wrap","off"),c.value=t[8],f(c,"class","svelte-19nn0vk"),Be(c,"colorErr",t[9]),Be(c,"colorWarn",t[10]),f(n,"class","svelte-19nn0vk"),f(b,"class","svelte-19nn0vk"),D.__value="allsvg",ke(D,D.__value),z.__value="alldxf",ke(z,z.__value),A.__value="compute_log",ke(A,A.__value),E.__value="pax",ke(E,E.__value),M.__value="oscad",ke(M,M.__value),B.__value="ojscad",ke(B,B.__value),W.__value="zip",ke(W,W.__value),f(O,"class","svelte-19nn0vk"),t[4]===void 0&&bt(()=>t[17].call(O)),f(Q,"class","svelte-19nn0vk"),f(d,"class","svelte-19nn0vk")},m(L,V){Le(e,L,V),J(L,l,V),J(L,n,V),o(n,r),o(n,a),o(n,c),J(L,u,V),Le(i,L,V),J(L,v,V),J(L,d,V),o(d,b),o(d,g),o(d,O);for(let le=0;le<ce.length;le+=1)ce[le]&&ce[le].m(O,null);o(O,D);for(let le=0;le<x.length;le+=1)x[le]&&x[le].m(O,null);o(O,z),o(O,A),o(O,E),o(O,M),o(O,B),o(O,W),ot(O,t[4],!0),o(d,ee),o(d,Q),o(d,ue),Le(me,d,null),be=!0,j||(H=[G(O,"change",t[17]),G(Q,"click",t[13])],j=!0)},p(L,[V]){const le={};V&1&&(le.pDef=L[0]),V&2&&(le.fgeom=L[1]),V&32&&(le.selFace=L[5]),V&128&&(le.zAdjust=L[7]),V&64&&(le.simTime=L[6]),e.$set(le),(!be||V&256)&&(c.value=L[8]),(!be||V&512)&&Be(c,"colorErr",L[9]),(!be||V&1024)&&Be(c,"colorWarn",L[10]);const _e={};if(V&1&&(_e.pDef=L[0]),V&2&&(_e.fgeom=L[1]),V&8&&(_e.optFaces=L[3]),!m&&V&32&&(m=!0,_e.selFace=L[5],Pe(()=>m=!1)),!h&&V&128&&(h=!0,_e.zAdjust=L[7],Pe(()=>h=!1)),!N&&V&64&&(N=!0,_e.simTime=L[6],Pe(()=>N=!1)),i.$set(_e),V&8){he=Ce(L[3]);let ie;for(ie=0;ie<he.length;ie+=1){const Oe=il(L,he,ie);ce[ie]?ce[ie].p(Oe,V):(ce[ie]=cl(Oe),ce[ie].c(),ce[ie].m(O,D))}for(;ie<ce.length;ie+=1)ce[ie].d(1);ce.length=he.length}if(V&8){fe=Ce(L[3]);let ie;for(ie=0;ie<fe.length;ie+=1){const Oe=rl(L,fe,ie);x[ie]?x[ie].p(Oe,V):(x[ie]=fl(Oe),x[ie].c(),x[ie].m(O,z))}for(;ie<x.length;ie+=1)x[ie].d(1);x.length=fe.length}V&24&&ot(O,L[4]);const ge={};V&2048&&(ge.subD=L[11]),V&1&&(ge.origPartName=L[0].partName),V&4&&(ge.pLink=L[2]),me.$set(ge)},i(L){be||(Te(e.$$.fragment,L),Te(i.$$.fragment,L),Te(me.$$.fragment,L),be=!0)},o(L){we(e.$$.fragment,L),we(i.$$.fragment,L),we(me.$$.fragment,L),be=!1},d(L){L&&(k(l),k(n),k(u),k(v),k(d)),Se(e,L),Se(i,L),Xe(ce,L),Xe(x,L),Se(me),j=!1,Ye(H)}}}function es(t){let e=!0;const l=/warn/i;return t.search(l)<0&&(e=!1),e}function ts(t,e){const l=document.createElement("a"),n=URL.createObjectURL(e);l.setAttribute("href",n),l.setAttribute("download",t),l.click(),l.remove(),URL.revokeObjectURL(n)}function ls(t,e,l){const n=document.createElement("a"),r="data:"+l+";utf-8,"+encodeURIComponent(e);n.setAttribute("href",r),n.setAttribute("download",t),n.click(),n.remove()}function ns(){const t=/[-:]/g,e=/\..*$/;return new Date().toISOString().replace(t,"").replace(e,"").replace("T","_")}function ss(t,e,l){let n;at(t,Ke,w=>l(18,n=w));let{pDef:r}=e,{fgeom:s}=e,{pLink:a}=e,c=[],u,i,m=0,h=_l(),N=`Dummy initial
16
+ Will be replaced during onMount
17
+ `,v=!1,d=!1,b={};function T(w){l(8,N=`Geometry ${w} computed at ${new Date().toLocaleTimeString()}
18
+ `);const U=s(m,n[r.partName]);l(8,N+=U.logstr),l(9,v=U.calcErr),l(10,d=es(U.logstr)),l(3,c=Object.keys(U.fig)),l(4,u="zip"),l(11,b=U.sub)}function g(){T(r.partName)}async function O(w){const E=/^svg_/,U=/^dxf_/;let M=Ze.eSVG,Y="all";w.match(E)?(M=Ze.eSVG,Y=w.replace(E,"")):w.match(U)?(M=Ze.eDXF,Y=w.replace(U,"")):w==="allsvg"?M=Ze.eSVGALL:w==="alldxf"?M=Ze.eDXFALL:w==="compute_log"?M=Ze.eTXTLOG:w==="pax"?M=Ze.ePAX:w==="oscad"?M=Ze.eOPENSCAD:w==="ojscad"?M=Ze.eJSCAD:w==="zip"?M=Ze.eZIP:console.log(`err883: downloadExport iExportFace ${w} invalid`);const B=Xl(M),y=Kl(M),W=Yl(M),te=r.partName+"_"+Y+"_"+ns()+B;if(W){const ee=await Vl(s,m,n[r.partName],r,M);ts(te,ee)}else{const ee=Wl(s,n[r.partName],r,Y,M);ls(te,ee,y)}}async function D(){await O(u)}function C(w){i=w,l(5,i)}function z(w){h=w,l(7,h)}function F(w){m=w,l(6,m)}function A(){u=Ot(this),l(4,u),l(3,c)}return t.$$set=w=>{"pDef"in w&&l(0,r=w.pDef),"fgeom"in w&&l(1,s=w.fgeom),"pLink"in w&&l(2,a=w.pLink)},t.$$.update=()=>{t.$$.dirty&1&&T(r.partName)},[r,s,a,c,u,i,m,h,N,v,d,b,g,D,C,z,F,A]}class as extends Me{constructor(e){super(),ye(this,e,ss,xn,ze,{pDef:0,fgeom:1,pLink:2})}}function os(t){let e,l=t[0].pTitle+"",n,r,s,a,c=t[0].pDef.partName+"",u,i,m=t[0].pDescription+"",h,N,v,d,b,T;return v=new ln({props:{pDef:t[0].pDef}}),b=new as({props:{pDef:t[0].pDef,fgeom:t[0].pGeom,pLink:t[1]}}),{c(){e=_("h1"),n=K(l),r=I(),s=_("article"),a=K("["),u=K(c),i=K("]: "),h=K(m),N=I(),De(v.$$.fragment),d=I(),De(b.$$.fragment),this.h()},l(g){e=p(g,"H1",{class:!0});var O=S(e);n=q(O,l),O.forEach(k),r=P(g),s=p(g,"ARTICLE",{class:!0});var D=S(s);a=q(D,"["),u=q(D,c),i=q(D,"]: "),h=q(D,m),D.forEach(k),N=P(g),Ee(v.$$.fragment,g),d=P(g),Ee(b.$$.fragment,g),this.h()},h(){f(e,"class","svelte-1aya6oa"),f(s,"class","svelte-1aya6oa")},m(g,O){J(g,e,O),o(e,n),J(g,r,O),J(g,s,O),o(s,a),o(s,u),o(s,i),o(s,h),J(g,N,O),Le(v,g,O),J(g,d,O),Le(b,g,O),T=!0},p(g,[O]){(!T||O&1)&&l!==(l=g[0].pTitle+"")&&ve(n,l),(!T||O&1)&&c!==(c=g[0].pDef.partName+"")&&ve(u,c),(!T||O&1)&&m!==(m=g[0].pDescription+"")&&ve(h,m);const D={};O&1&&(D.pDef=g[0].pDef),v.$set(D);const C={};O&1&&(C.pDef=g[0].pDef),O&1&&(C.fgeom=g[0].pGeom),O&2&&(C.pLink=g[1]),b.$set(C)},i(g){T||(Te(v.$$.fragment,g),Te(b.$$.fragment,g),T=!0)},o(g){we(v.$$.fragment,g),we(b.$$.fragment,g),T=!1},d(g){g&&(k(e),k(r),k(s),k(N),k(d)),Se(v,g),Se(b,g)}}}function rs(t,e,l){let{pageDef:n}=e,{pLink:r}=e;return t.$$set=s=>{"pageDef"in s&&l(0,n=s.pageDef),"pLink"in s&&l(1,r=s.pLink)},t.$$.update=()=>{t.$$.dirty&1&&Jl(n)},[n,r]}class is extends Me{constructor(e){super(),ye(this,e,rs,os,ze,{pageDef:0,pLink:1})}}function cs(t){let e,l;return e=new is({props:{pageDef:t[0].pageDef,pLink:t[0].allLink}}),{c(){De(e.$$.fragment)},l(n){Ee(e.$$.fragment,n)},m(n,r){Le(e,n,r),l=!0},p(n,[r]){const s={};r&1&&(s.pageDef=n[0].pageDef),r&1&&(s.pLink=n[0].allLink),e.$set(s)},i(n){l||(Te(e.$$.fragment,n),l=!0)},o(n){we(e.$$.fragment,n),l=!1},d(n){Se(e,n)}}}function fs(t,e,l){let{data:n}=e;return t.$$set=r=>{"data"in r&&l(0,n=r.data)},[n]}class bs extends Me{constructor(e){super(),ye(this,e,fs,cs,ze,{data:0})}}export{bs as component,vs as universal};
@@ -1 +1 @@
1
- {"version":"1712522260966"}
1
+ {"version":"1715107093194"}