designix-uis 0.5.21 → 0.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designix-uis.js +2 -2
- package/dist/public/_app/immutable/chunks/{entry.BD5qRZ97.js → entry.4cYjZEkR.js} +1 -1
- package/dist/public/_app/immutable/chunks/{index.Bw6mlubY.js → index.D-gTLL5b.js} +103 -58
- package/dist/public/_app/immutable/chunks/{makeList.CFiTz2zg.js → makeList.OjG4sjHO.js} +1 -1
- package/dist/public/_app/immutable/chunks/paths.B1t63Fye.js +1 -0
- package/dist/public/_app/immutable/chunks/{stores.Chsu13vt.js → stores.DiRE9raP.js} +1 -1
- package/dist/public/_app/immutable/entry/{app.H9tIVzP-.js → app.DCW7Wl1o.js} +2 -2
- package/dist/public/_app/immutable/entry/start.CBVzKzSB.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.Ca8Vso6D.js → 0.TaUdkYxo.js} +1 -1
- package/dist/public/_app/immutable/nodes/{1.UAklb8Ok.js → 1.CUSF22-X.js} +1 -1
- package/dist/public/_app/immutable/nodes/{2.CbRS1Viw.js → 2.CNisk3eY.js} +1 -1
- package/dist/public/_app/immutable/nodes/{3.aBNHnVGg.js → 3.hKP56OUw.js} +1 -1
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_wheel_wheel.html +14 -14
- package/dist/public/gear/simplified_gear_wheel.html +14 -14
- package/dist/public/heliostat/base.html +14 -14
- package/dist/public/heliostat/haxis_guidance.html +14 -14
- package/dist/public/heliostat/heliostat.html +14 -14
- package/dist/public/heliostat/heliostat_2.html +14 -14
- package/dist/public/heliostat/pole_static.html +14 -14
- package/dist/public/heliostat/rake.html +14 -14
- package/dist/public/heliostat/rake_stopper.html +14 -14
- package/dist/public/heliostat/ring.html +14 -14
- package/dist/public/heliostat/ring_guidance.html +14 -14
- package/dist/public/heliostat/rod.html +14 -14
- package/dist/public/heliostat/spider.html +14 -14
- package/dist/public/heliostat/surface.html +14 -14
- package/dist/public/heliostat/swing.html +14 -14
- package/dist/public/heliostat/trapeze.html +14 -14
- package/dist/public/heliostat/vaxis.html +14 -14
- package/dist/public/heliostat/vaxis_guidance.html +14 -14
- package/dist/public/heliostat/vaxis_holder.html +14 -14
- package/dist/public/index.html +12 -12
- package/package.json +2 -2
- package/dist/public/_app/immutable/chunks/paths.e5GUCUh_.js +0 -1
- package/dist/public/_app/immutable/entry/start.Bbej_rDO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var be=Object.defineProperty;var ke=(s,t,u)=>t in s?be(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var p=(s,t,u)=>(ke(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as Lt,c as xt,i as _t,d as kt,f as L,g as z,E as U,h as dt,j as Ht,k as Dt,l as Pt,m as x,n as rt,t as zt,r as ht,o as Me,q as Ee,s as Z,u as gt,v as wt,w as y,x as ut,y as yt,z as Ot,A as Gt,S as At,B as Ae}from"./index.
|
|
1
|
+
var be=Object.defineProperty;var ke=(s,t,u)=>t in s?be(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var p=(s,t,u)=>(ke(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as Lt,c as xt,i as _t,d as kt,f as L,g as z,E as U,h as dt,j as Ht,k as Dt,l as Pt,m as x,n as rt,t as zt,r as ht,o as Me,q as Ee,s as Z,u as gt,v as wt,w as y,x as ut,y as yt,z as Ot,A as Gt,S as At,B as Ae}from"./index.D-gTLL5b.js";var Re=class{constructor(s,t,u,o,n){p(this,"base_center_x");p(this,"base_center_y");p(this,"base_radius");p(this,"initial_angle");p(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),h=0;for(;Math.abs(n-s)>1e-4;)n<s?u+=o:u-=o,n=this.wFromU(u),o=o/2,h+=1;return console.log(`dbg072: uFromWslow itcnt ${h}`),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,h=this.base_center_x+Math.cos(n)*this.base_radius,i=this.base_center_y+Math.sin(n)*this.base_radius,d=n-this.angleSign()*Math.PI/2,l=u*this.base_radius,g=h+Math.cos(d)*l,a=i+Math.sin(d)*l,r=this.lFromU(u)*o,c=u,_=Math.cos(c)*r,S=Math.sin(c)*r;return[g,a,_,S]}};function bt(s,t,u,o,n){return new Re(s,t,u,o,n)}var Ne=class{constructor(){p(this,"mod",1);p(this,"TN",23);p(this,"as",1);p(this,"cx",0);p(this,"cy",0);p(this,"brr",50);p(this,"blr",50);p(this,"ar",54);p(this,"pr",53);p(this,"dr",52);p(this,"br",51);p(this,"bRound",1);p(this,"adt",.5);p(this,"initAngle",0);p(this,"axisAngle",0);p(this,"involArcPairs",1);p(this,"skinThickness",0);p(this,"involuteR",bt(0,0,50,0,!0));p(this,"involuteL",bt(0,0,50,0,!1));p(this,"rud",0);p(this,"rup",0);p(this,"rua",0);p(this,"rwd",0);p(this,"rwp",0);p(this,"rwa",0);p(this,"lud",0);p(this,"lup",0);p(this,"lua",0);p(this,"lwd",0);p(this,"lwp",0);p(this,"lwa",0);p(this,"msg");p(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"),[x(this.cx,this.cy,this.ar,"Azure"),x(this.cx,this.cy,this.pr,"Azure"),x(this.cx,this.cy,this.dr,"Azure"),x(this.cx,this.cy,this.br,"Azure"),x(this.cx,this.cy,this.brr,"CornFlowerBlue"),x(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=bt(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=bt(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 ${L(o)}
|
|
2
2
|
`;const n=this.as*(1-this.adt),h=this.rwp-this.rwd,i=Math.abs(this.lwp-this.lwd),d=n-h-i;if(d<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${L(d)} compare to bRound ${L(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,h=bt(this.cx,this.cy,this.brr,n-this.rwp,!0),[i,d]=h.ptc(this.rud+0*u),l=z(i,d,"Gold");for(let f=0;f<s;f++){const[r,c]=h.ptc(this.rud+(f+1)*u);l.addSegStrokeA(r,c)}const g=n+this.as*this.adt,a=bt(this.cx,this.cy,this.blr,g-this.lwp,!1);for(let f=0;f<s+1;f++){const[r,c]=a.ptc(this.lud+(s-f)*o);l.addSegStrokeA(r,c)}return l.closeSegStroke(),l}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 ${L(this.bRound)} too large for erdr ${L(u)} and br ${L(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${L(this.bRound)} too large for eldr ${L(o)} and br ${L(this.br)}`;const n=(this.rua-this.rud)/this.involArcPairs,h=(this.lua-this.lud)/this.involArcPairs,i=rt(this.cx,this.cy),d=i.translatePolar(this.initAngle+s,this.br),l=z(d.cx,d.cy);for(let g=0;g<this.TN;g++){const a=this.initAngle+g*this.as,f=i.translatePolar(a+s,this.br);l.addSegStrokeA(f.cx,f.cy).addCornerRounded(this.bRound);const r=bt(this.cx,this.cy,this.brr,a-this.rwp,!0),[c,_]=r.ptc(this.rud),S=r.ptcta(this.rud),H=rt(c,_).translatePolar(S-Math.PI/2,this.skinThickness);l.addSegStrokeA(H.cx,H.cy);for(let $=0;$<this.involArcPairs;$++){const O=this.rud+$*n,[I,k]=r.ptc(O+n),m=r.ptcta(O),G=r.ptcta(O+n)+Math.PI,C=rt(I,k).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(C.cx,C.cy).addSeg2Arcs(m,G)}const N=a+this.as*this.adt,w=bt(this.cx,this.cy,this.blr,N-this.lwp,!1),D=this.lud+this.involArcPairs*h,[E,A]=w.ptc(D),R=w.ptcta(D)+Math.PI,v=rt(E,A).translatePolar(R-Math.PI/2,this.skinThickness);l.addSegStrokeA(v.cx,v.cy);for(let $=0;$<this.involArcPairs;$++){const O=this.lud+(this.involArcPairs-$)*h,[I,k]=w.ptc(O-h),m=w.ptcta(O)+Math.PI,G=w.ptcta(O-h),C=rt(I,k).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(C.cx,C.cy).addSeg2Arcs(m,G)}const b=i.translatePolar(N+t,this.br);l.addSegStrokeA(b.cx,b.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function te(){return new Ne}function Ie(s,t,u,o){s.checkInitStep(1,"helper.gw2center-1"),t.checkInitStep(1,"helper.gw2center-2");const n=s.pr+t.pr+o,h=s.cx+n*Math.cos(u),i=s.cy+n*Math.sin(u);return[h,i,n]}function Ve(s,t,u,o,n,h,i,d,l){s.checkInitStep(3,"helper.baseCircles-1"),t.checkInitStep(3,"helper.baseCircles-2");let g=u,a=n,f=o,r=h;const c=d,_=l;return c===0&&(t.TN>s.TN?(g=s.dr,a=g*t.TN/s.TN):(a=t.dr,g=a*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=g,r=a),[g,f,a,r]}var Ce=class{constructor(s,t,u,o,n,h){p(this,"gw1");p(this,"gw2");p(this,"initAngle1");p(this,"angleCenterCenter");p(this,"interAxis");p(this,"rightLeftCenter2");p(this,"msg");p(this,"apr");p(this,"apl");p(this,"lBDr",0);p(this,"lBDl",0);p(this,"laStartRr1",0);p(this,"laStartRr2",0);p(this,"laStartRl1",0);p(this,"laStartRl2",0);p(this,"aFODr1",0);p(this,"aFODr2",0);p(this,"aFODl1",0);p(this,"aFODl2",0);p(this,"lasr1",0);p(this,"lasr2",0);p(this,"lasl1",0);p(this,"lasl2",0);p(this,"firstToothUr1",0);p(this,"firstToothUl1",0);p(this,"ftdr1",0);p(this,"ftdl1",0);this.gw1=s,this.gw2=t,this.initAngle1=u,this.angleCenterCenter=o,this.interAxis=n,this.rightLeftCenter2=h,this.msg="",this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,"ActionLine.check1-1"),this.gw2.checkInitStep(4,"ActionLine.check1-2"),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${L(this.interAxis)} is too large compare to gw1.ar ${L(this.gw1.ar)} and gw2.ar ${L(this.gw2.ar)}
|
|
4
4
|
`),ut(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${L(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${L(this.gw1.brr)}/${L(this.gw2.brr)} = ${L(this.gw1.brr/this.gw2.brr)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s;const e=((s=globalThis.__sveltekit_rn1ika)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_rn1ika)==null?void 0:a.assets)??e;export{t as a,e as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./entry.
|
|
1
|
+
import{s as e}from"./entry.4cYjZEkR.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,2 +1,2 @@
|
|
|
1
|
-
const __vite__fileDeps=["_app/immutable/nodes/0.
|
|
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.
|
|
1
|
+
const __vite__fileDeps=["_app/immutable/nodes/0.TaUdkYxo.js","_app/immutable/chunks/scheduler.2BOoCPD3.js","_app/immutable/chunks/index.BugmtA6_.js","_app/immutable/chunks/index.D-gTLL5b.js","_app/immutable/chunks/paths.B1t63Fye.js","_app/immutable/assets/0.BNk8pMG6.css","_app/immutable/nodes/1.CUSF22-X.js","_app/immutable/chunks/stores.DiRE9raP.js","_app/immutable/chunks/entry.4cYjZEkR.js","_app/immutable/nodes/2.CNisk3eY.js","_app/immutable/chunks/makeList.OjG4sjHO.js","_app/immutable/assets/2.CTp7BhB8.css","_app/immutable/nodes/3.hKP56OUw.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.TaUdkYxo.js"),__vite__mapDeps([0,1,2,3,4,5])),()=>P(()=>import("../nodes/1.CUSF22-X.js"),__vite__mapDeps([6,1,2,7,8,4])),()=>P(()=>import("../nodes/2.CNisk3eY.js"),__vite__mapDeps([9,1,3,2,10,4,11])),()=>P(()=>import("../nodes/3.hKP56OUw.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.4cYjZEkR.js";export{t as start};
|
|
@@ -1,4 +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.
|
|
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.D-gTLL5b.js";import{b as ne}from"../chunks/paths.B1t63Fye.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.40",geometrix:"^0.5.39",geomui:"^0.5.41"},xe={"@sveltejs/adapter-auto":"^3.2.1","@sveltejs/adapter-static":"^3.0.1","@sveltejs/kit":"^2.5.10","@sveltejs/vite-plugin-svelte":"^3.1.1","@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.39.0","npm-run-all":"^4.1.5",prettier:"^3.3.0","prettier-plugin-svelte":"^3.2.3",sass:"^1.77.4",shx:"^0.3.4",svelte:"^4.2.17","svelte-check":"^3.8.0",tslib:"^2.6.2",typescript:"^5.4.5",vite:"^5.2.12",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
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
3
|
of
|
|
4
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.2BOoCPD3.js";import{S as q,i as y}from"../chunks/index.BugmtA6_.js";import{p as C}from"../chunks/stores.
|
|
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.DiRE9raP.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.2BOoCPD3.js";import{e as E}from"../chunks/index.
|
|
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.D-gTLL5b.js";import{S,i as $}from"../chunks/index.BugmtA6_.js";import{d as q}from"../chunks/makeList.OjG4sjHO.js";import{b as A}from"../chunks/paths.B1t63Fye.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,4 +1,4 @@
|
|
|
1
|
-
import{a as Pt,b as wl}from"../chunks/makeList.CFiTz2zg.js";import{H as Cl,w as ul,g as Ol}from"../chunks/entry.BD5qRZ97.js";import{Q as Dl,s as Me,p as st,i as J,n as ze,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 Ie,a as j,g as I,T as Ae,o as Ke,y as El,t as Y,l as ie,d as K,U as He,z as Ll,A as Sl,B as jl,j as ge,C as qe,V as be,k as at,r as Et,W as ml,X as _t,Y as Ct,Z as Il,H as bt,_ as ot,$ as Pl,a0 as Al}from"../chunks/scheduler.2BOoCPD3.js";import{S as ye,i as Fe,f as Ue,b as Ee,d as Le,m as Se,a as we,t as Oe,e as je,g as Ul,c as zl}from"../chunks/index.BugmtA6_.js";import{e as De,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 Ot,Q as Hl,R as At,f as dt,r as Dt,T as Ge,U as Vl,V as Wl,W as Xl,X as Yl,Y as Kl}from"../chunks/index.Bw6mlubY.js";import{b as vt}from"../chunks/paths.e5GUCUh_.js";import{p as ql}from"../chunks/stores.Chsu13vt.js";function Gl(t,e){throw new Cl(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"})),Ze=ul({});function pl(t,e,l){const n=Dl(Ze);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;Ze.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:ze,o:ze,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 ye{constructor(e){super(),Fe(this,e,$l,Ql,Me,{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=j(),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=I(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}),Ie.push(()=>Ue(l,"modalOpen",a));let u=De(t[0]),i=[];for(let m=0;m<u.length;m+=1)i[m]=Mt(zt(t,u,m));return{c(){e=_("section"),Ee(l.$$.fragment),r=j();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);Le(l.$$.fragment,h),r=I(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),Se(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],Ae(()=>n=!1)),l.$set(N),h&9){u=De(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||(we(l.$$.fragment,m),s=!0)},o(m){Oe(l.$$.fragment,m),s=!1},d(m){m&&k(e),je(l),Ke(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 ye{constructor(e){super(),Fe(this,e,tn,xl,Me,{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=j(),s=_("footer"),a=_("button"),a.textContent=c,u=j(),i=_("button"),m=Y(t[1]),this.h()},l(T){e=p(T,"ASIDE",{class:!0});var g=S(e);l=p(g,"DIV",{class:!0});var C=S(l);n=p(C,"ARTICLE",{class:!0});var D=S(n);b&&b.l(D),D.forEach(k),r=I(C),s=p(C,"FOOTER",{class:!0});var O=S(s);a=p(O,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-hcvk9s"&&(a.textContent=c),u=I(O),i=p(O,"BUTTON",{class:!0});var z=S(i);m=K(z,t[1]),z.forEach(k),O.forEach(k),C.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"),He(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)&&ge(m,T[1]),(!h||g&4)&&He(l,"sizeLarge",T[2])},i(T){h||(we(b,T),h=!0)},o(T){Oe(b,T),h=!1},d(T){T&&k(e),b&&b.d(T),N=!1,qe(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&&we(n,1)):(n=yt(r),n.c(),we(n,1),n.m(e.parentNode,e)):n&&(Ul(),Oe(n,1,1,()=>{n=null}),zl())},i(r){l||(we(n),l=!0)},o(r){Oe(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 ye{constructor(e){super(),Fe(this,e,sn,nn,Me,{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=Y(l),this.h()},l(r){e=p(r,"P",{class:!0});var s=S(e);n=K(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]+"")&&ge(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=De(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=j();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}),ie(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=I(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=De(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)),Ke(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=j(),s=_("td"),a=_("button"),u=Y(c),i=j(),m=_("td"),N=Y(h),v=j(),this.h()},l(C){e=p(C,"TR",{class:!0});var D=S(e);l=p(D,"TD",{});var O=S(l);n=p(O,"INPUT",{type:!0}),O.forEach(k),r=I(D),s=p(D,"TD",{class:!0});var z=S(s);a=p(z,"BUTTON",{class:!0});var F=S(a);u=K(F,c),F.forEach(k),z.forEach(k),i=I(D),m=p(D,"TD",{});var U=S(m);N=K(U,h),U.forEach(k),v=I(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(C,D){J(C,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(C,D){t=C,D&9&&(n.checked=t[3][t[17]]),D&1&&c!==(c=t[17]+"")&&ge(u,c),D&5&&h!==(h=t[2][t[17]]+"")&&ge(N,h)},d(C){C&&k(e),d=!1,qe(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,C="delete all",D,O,z,F,U,w,E;function M(y){t[10](y)}let P={okName:"Confirm",okFunc:t[6],$$slots:{default:[an]},$$scope:{ctx:t}};t[4]!==void 0&&(P.modalOpen=t[4]),s=new gt({props:P}),Ie.push(()=>Ue(s,"modalOpen",M));let X=De(t[0]),R=[];for(let y=0;y<X.length;y+=1)R[y]=Vt(Ft(t,X,y));return{c(){e=_("div"),l=_("button"),l.textContent=n,r=j(),Ee(s.$$.fragment),c=j(),u=_("table"),i=_("thead"),m=_("tr"),m.innerHTML=h,N=j(),v=_("tr"),d=_("td"),b=_("input"),T=j(),g=_("td"),g.textContent=C,D=j(),O=_("td"),z=j(),F=_("tbody");for(let y=0;y<R.length;y+=1)R[y].c();this.h()},l(y){e=p(y,"DIV",{class:!0});var V=S(e);l=p(V,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-1tbm4xl"&&(l.textContent=n),r=I(V),Le(s.$$.fragment,V),c=I(V),u=p(V,"TABLE",{class:!0});var x=S(u);i=p(x,"THEAD",{class:!0});var Z=S(i);m=p(Z,"TR",{"data-svelte-h":!0}),ie(m)!=="svelte-xt53kn"&&(m.innerHTML=h),N=I(Z),v=p(Z,"TR",{});var le=S(v);d=p(le,"TD",{});var _e=S(d);b=p(_e,"INPUT",{type:!0}),_e.forEach(k),T=I(le),g=p(le,"TD",{class:!0,"data-svelte-h":!0}),ie(g)!=="svelte-1s4wssd"&&(g.textContent=C),D=I(le),O=p(le,"TD",{}),S(O).forEach(k),le.forEach(k),Z.forEach(k),z=I(x),F=p(x,"TBODY",{class:!0});var ce=S(F);for(let pe=0;pe<R.length;pe+=1)R[pe].l(ce);ce.forEach(k),x.forEach(k),V.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,V){J(y,e,V),o(e,l),o(e,r),Se(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,O),o(u,z),o(u,F);for(let x=0;x<R.length;x+=1)R[x]&&R[x].m(F,null);U=!0,w||(E=[G(l,"click",t[9]),G(b,"change",t[11])],w=!0)},p(y,[V]){const x={};if(V&4194313&&(x.$$scope={dirty:V,ctx:y}),!a&&V&16&&(a=!0,x.modalOpen=y[4],Ae(()=>a=!1)),s.$set(x),V&2&&(b.checked=y[1]),V&45){X=De(y[0]);let Z;for(Z=0;Z<X.length;Z+=1){const le=Ft(y,X,Z);R[Z]?R[Z].p(le,V):(R[Z]=Vt(le),R[Z].c(),R[Z].m(F,null))}for(;Z<R.length;Z+=1)R[Z].d(1);R.length=X.length}},i(y){U||(we(s.$$.fragment,y),U=!0)},o(y){Oe(s.$$.fragment,y),U=!1},d(y){y&&k(e),je(s),Ke(R,y),w=!1,qe(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 O=[];const z=new RegExp(`^${n}_`);return O=Object.keys(window.localStorage).filter(U=>z.test(U)).map(U=>U.replace(z,"")),O}s=a();function c(O){l(7,r=O)}let u={};function i(O){let z={};for(const F of O){let U="";const w=`${n}_${F}`,E=window.localStorage.getItem(w);E!==null&&(U=JSON.parse(E).lastModif),z[F]=U}return z}u=i(s);let m={};m=rn(s);let h=!1;function N(O){for(const z of s)l(3,m[z]=O,m)}function v(){for(const O of s)if(m[O]){const z=`${n}_${O}`;window.localStorage.removeItem(z)}l(0,s=a())}let d=!1;const b=()=>{l(4,d=!0)};function T(O){d=O,l(4,d)}function g(){h=this.checked,l(1,h)}function C(O){m[O]=this.checked,l(3,m)}const D=O=>c(O);return t.$$set=O=>{"pageName"in O&&l(8,n=O.pageName),"storeName"in O&&l(7,r=O.storeName),"localKeys"in O&&l(0,s=O.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(h)},[s,h,u,m,d,c,v,r,n,b,T,g,C,D]}class vl extends ye{constructor(e){super(),Fe(this,e,cn,on,Me,{pageName:8,storeName:7,localKeys:0})}}function Wt(t){let e,l,n,r;return{c(){e=_("p"),l=Y("Warning: name "),n=Y(t[0]),r=Y(" already used"),this.h()},l(s){e=p(s,"P",{class:!0});var a=S(e);l=K(a,"Warning: name "),n=K(a,t[0]),r=K(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&&ge(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(C){t[5](C)}function b(C){t[6](C)}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}),Ie.push(()=>Ue(e,"storeName",d)),Ie.push(()=>Ue(e,"localKeys",b));let g=t[3]&&Wt(t);return{c(){Ee(e.$$.fragment),r=j(),s=_("div"),a=_("label"),a.textContent=c,u=j(),i=_("input"),m=j(),g&&g.c(),this.h()},l(C){Le(e.$$.fragment,C),r=I(C),s=p(C,"DIV",{class:!0});var D=S(s);a=p(D,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-1vdq35w"&&(a.textContent=c),u=I(D),i=p(D,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),m=I(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(C,D){Se(e,C,D),J(C,r,D),J(C,s,D),o(s,a),o(s,u),o(s,i),be(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(C,[D]){const O={};D&2&&(O.pageName=C[1]),!l&&D&1&&(l=!0,O.storeName=C[0],Ae(()=>l=!1)),!n&&D&4&&(n=!0,O.localKeys=C[2],Ae(()=>n=!1)),e.$set(O),D&1&&i.value!==C[0]&&be(i,C[0]),C[3]?g?g.p(C,D):(g=Wt(C),g.c(),g.m(s,null)):g&&(g.d(1),g=null)},i(C){h||(we(e.$$.fragment,C),h=!0)},o(C){Oe(e.$$.fragment,C),h=!1},d(C){C&&(k(r),k(s)),je(e,C),g&&g.d(),N=!1,qe(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 ye{constructor(e){super(),Fe(this,e,mn,fn,Me,{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}),Ie.push(()=>Ue(e,"storeName",h)),Ie.push(()=>Ue(e,"localKeys",N)),{c(){Ee(e.$$.fragment),r=j(),s=_("div"),a=_("label"),a.textContent=c,u=j(),i=_("input"),this.h()},l(d){Le(e.$$.fragment,d),r=I(d),s=p(d,"DIV",{class:!0});var b=S(s);a=p(b,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-rajgc0"&&(a.textContent=c),u=I(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){Se(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],Ae(()=>l=!1)),!n&&b&4&&(n=!0,T.localKeys=d[2],Ae(()=>n=!1)),e.$set(T),(!m||b&1&&i.value!==d[0])&&(i.value=d[0])},i(d){m||(we(e.$$.fragment,d),m=!0)},o(d){Oe(e.$$.fragment,d),m=!1},d(d){d&&(k(r),k(s)),je(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 ye{constructor(e){super(),Fe(this,e,_n,hn,Me,{pageName:1,storeName:0})}}const Ve=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:ze,i:ze,o:ze,d(l){l&&k(e),t[9](null)}}}const Xt=200;function vn(t,e,l){let n,r;at(t,Ve,T=>l(7,n=T)),at(t,Ze,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 C=yl(g);C.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,C)}catch(O){console.log(O)}}let v=0;function d(T,g,C,D){const O=a(T,g).fig;if(Object.keys(O).includes(C)){const z=O[C];N(z,D)}else{const z=dl(O);N(z,D)}}Et(()=>{d(i,r[s],c,n),l(6,v=1)});function b(T){Ie[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 ye{constructor(e){super(),Fe(this,e,vn,gn,Me,{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=Y("Load the default parameters ?")},l(l){e=K(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}),Ie.push(()=>Ue(e,"storeName",r)),{c(){Ee(e.$$.fragment)},l(a){Le(e.$$.fragment,a)},m(a,c){Se(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],Ae(()=>l=!1)),e.$set(u)},i(a){n||(we(e.$$.fragment,a),n=!0)},o(a){Oe(e.$$.fragment,a),n=!1},d(a){je(e,a)}}}function Cn(t){let e;return{c(){e=Y("unknown")},l(l){e=K(l,"unknown")},m(l,n){J(l,e,n)},p:ze,d(l){l&&k(e)}}}function On(t){let e,l,n,r=De(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=De(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),Ke(s,c),l=!1,n()}}}function Dn(t){let e,l,n,r=De(["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),Ke(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=j(),a=_("input"),this.h()},l(d){e=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=I(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),be(e,t[19][t[0].partName][t[61].name]),J(d,s,b),J(d,a,b),be(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]&&be(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&&be(a,t[19][t[0].partName][t[61].name])},d(d){d&&(k(e),k(s),k(a)),m=!1,qe(h)}}}function Zt(t){let e,l=t[64]+"",n;return{c(){e=_("option"),n=Y(l),this.h()},l(r){e=p(r,"OPTION",{});var s=S(e);n=K(s,l),s.forEach(k),this.h()},h(){e.__value=t[66],be(e,e.__value)},m(r,s){J(r,e,s),o(e,n)},p(r,s){s[0]&32&&l!==(l=r[64]+"")&&ge(n,l)},d(r){r&&k(e)}}}function Ln(t){let e,l;return{c(){e=_("option"),l=Y(t[64]),this.h()},l(n){e=p(n,"OPTION",{});var r=S(e);l=K(r,t[64]),r.forEach(k),this.h()},h(){e.__value=t[66],be(e,e.__value)},m(n,r){J(n,e,r),o(e,l)},p:ze,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+"",C,D,O,z=t[61].init+"",F,U,w,E=t[61].min+"",M,P,X,R=t[61].max+"",y,V,x,Z=t[61].step+"",le,_e,ce;function pe(){return t[37](t[61])}function Ce(ne,q){return ne[61].pType===wt.eNumber?En:ne[61].pType===wt.eCheckbox?Dn:ne[61].pType===wt.eDropdown?On:Cn}let L=Ce(t),B=L(t);return{c(){e=_("tr"),l=_("td"),r=Y(n),s=Y("."),c=Y(a),u=j(),i=_("td"),m=_("button"),N=Y(h),v=j(),d=_("td"),B.c(),b=j(),T=_("td"),C=Y(g),D=j(),O=_("td"),F=Y(z),U=j(),w=_("td"),M=Y(E),P=j(),X=_("td"),y=Y(R),V=j(),x=_("td"),le=Y(Z),this.h()},l(ne){e=p(ne,"TR",{class:!0});var q=S(e);l=p(q,"TD",{class:!0});var fe=S(l);r=K(fe,n),s=K(fe,"."),c=K(fe,a),fe.forEach(k),u=I(q),i=p(q,"TD",{class:!0});var ee=S(i);m=p(ee,"BUTTON",{class:!0});var ke=S(m);N=K(ke,h),ke.forEach(k),ee.forEach(k),v=I(q),d=p(q,"TD",{class:!0});var Te=S(d);B.l(Te),Te.forEach(k),b=I(q),T=p(q,"TD",{class:!0});var ue=S(T);C=K(ue,g),ue.forEach(k),D=I(q),O=p(q,"TD",{class:!0});var Q=S(O);F=K(Q,z),Q.forEach(k),U=I(q),w=p(q,"TD",{class:!0});var oe=S(w);M=K(oe,E),oe.forEach(k),P=I(q),X=p(q,"TD",{class:!0});var $=S(X);y=K($,R),$.forEach(k),V=I(q),x=p(q,"TD",{class:!0});var A=S(x);le=K(A,Z),A.forEach(k),q.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(O,"class","svelte-1g5tt44"),f(w,"class","svelte-1g5tt44"),f(X,"class","svelte-1g5tt44"),f(x,"class","svelte-1g5tt44"),f(e,"class","svelte-1g5tt44"),He(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},m(ne,q){J(ne,e,q),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),B.m(d,null),o(e,b),o(e,T),o(T,C),o(e,D),o(e,O),o(O,F),o(e,U),o(e,w),o(w,M),o(e,P),o(e,X),o(X,y),o(e,V),o(e,x),o(x,le),_e||(ce=G(m,"click",pe),_e=!0)},p(ne,q){t=ne,q[0]&32&&h!==(h=t[61].name+"")&&ge(N,h),L===(L=Ce(t))&&B?B.p(t,q):(B.d(1),B=L(t),B&&(B.c(),B.m(d,null))),q[0]&32&&g!==(g=t[61].unit+"")&&ge(C,g),q[0]&32&&z!==(z=t[61].init+"")&&ge(F,z),q[0]&32&&E!==(E=t[61].min+"")&&ge(M,E),q[0]&32&&R!==(R=t[61].max+"")&&ge(y,R),q[0]&32&&Z!==(Z=t[61].step+"")&&ge(le,Z),q[0]&524321&&He(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},d(ne){ne&&k(e),B.d(),_e=!1,ce()}}}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,C,D,O;function z(){t[36].call(N,t[58])}let F=De(t[58].params),U=[];for(let w=0;w<F.length;w+=1)U[w]=Jt(qt(t,F,w));return{c(){e=_("tr"),l=_("td"),r=Y(n),s=j(),a=_("td"),u=Y(c),i=j(),m=_("td"),h=_("label"),N=_("input"),v=j(),d=_("span"),d.innerHTML=b,T=j(),g=_("tbody");for(let w=0;w<U.length;w+=1)U[w].c();C=j(),this.h()},l(w){e=p(w,"TR",{class:!0});var E=S(e);l=p(E,"TD",{class:!0});var M=S(l);r=K(M,n),M.forEach(k),s=I(E),a=p(E,"TD",{colspan:!0,class:!0});var P=S(a);u=K(P,c),P.forEach(k),i=I(E),m=p(E,"TD",{colspan:!0,class:!0});var X=S(m);h=p(X,"LABEL",{class:!0});var R=S(h);N=p(R,"INPUT",{type:!0,class:!0}),v=I(R),d=p(R,"SPAN",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-1qufua2"&&(d.innerHTML=b),R.forEach(k),X.forEach(k),E.forEach(k),T=I(w),g=p(w,"TBODY",{class:!0});var y=S(g);for(let V=0;V<U.length;V+=1)U[V].l(y);C=I(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"),He(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 M=0;M<U.length;M+=1)U[M]&&U[M].m(g,null);o(g,C),D||(O=G(N,"change",z),D=!0)},p(w,E){if(t=w,E[0]&32&&c!==(c=t[58].sectionName+"")&&ge(u,c),E[0]&262176&&(N.checked=t[18][t[58].sectionID]),E[0]&271056929){F=De(t[58].params);let M;for(M=0;M<F.length;M+=1){const P=qt(t,F,M);U[M]?U[M].p(P,E):(U[M]=Jt(P),U[M].c(),U[M].m(g,C))}for(;M<U.length;M+=1)U[M].d(1);U.length=F.length}E[0]&262176&&He(g,"collaps",t[18][t[58].sectionID])},d(w){w&&(k(e),k(T),k(g)),Ke(U,w),D=!1,O()}}}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=j(),r=_("p"),s=Y(t[15]),this.h()},l(a){e=p(a,"P",{"data-svelte-h":!0}),ie(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=I(a),r=p(a,"P",{class:!0});var c=S(r);s=K(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&&ge(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}),Ie.push(()=>Ue(e,"storeName",r)),{c(){Ee(e.$$.fragment)},l(a){Le(e.$$.fragment,a)},m(a,c){Se(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],Ae(()=>l=!1)),e.$set(u)},i(a){n||(we(e.$$.fragment,a),n=!0)},o(a){Oe(e.$$.fragment,a),n=!1},d(a){je(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,C,D,O,z,F,U,w,E,M,P='<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>',X,R,y,V,x="Comment:",Z,le,_e,ce,pe="Save Parameters to File",Ce,L,B="Save Parameters as URL",ne,q,fe="Save Parameters to localStorage",ee,ke,Te,ue,Q,oe,$,A,te,ae,de,ve,he,Be,xe,Je,pt,H,re,Ne,Re,We;function $e(W){t[33](W)}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}),Ie.push(()=>Ue(g,"modalOpen",$e));function kt(W){t[35](W)}let it={okName:"Load Parameters",okFunc:t[25],$$slots:{default:[wn]},$$scope:{ctx:t}};t[10]!==void 0&&(it.modalOpen=t[10]),O=new gt({props:it}),Ie.push(()=>Ue(O,"modalOpen",kt));let et=De(t[5]),Pe=[];for(let W=0;W<et.length;W+=1)Pe[W]=Qt(Kt(t,et,W));function Lt(W){t[44](W)}let Xe={okName:"Done",okFunc:Pn,sizeLarge:!0,$$slots:{default:[Sn]},$$scope:{ctx:t}};t[11]!==void 0&&(Xe.modalOpen=t[11]),ke=new gt({props:Xe}),Ie.push(()=>Ue(ke,"modalOpen",Lt));function Nl(W){t[46](W)}let St={okName:"Save into localStorage",okFunc:t[26],$$slots:{default:[jn]},$$scope:{ctx:t}};t[12]!==void 0&&(St.modalOpen=t[12]),Q=new gt({props:St}),Ie.push(()=>Ue(Q,"modalOpen",Nl));function Tl(W){t[47](W)}let jt={svgPath:t[16]};return t[17]!==void 0&&(jt.modalOpen=t[17]),A=new gl({props:jt}),Ie.push(()=>Ue(A,"modalOpen",Tl)),Je=new Yt({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],zAdjust:t[20],simTime:t[4]}}),re=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=j(),s=_("main"),a=_("label"),a.textContent=c,u=j(),i=_("input"),m=j(),h=_("button"),h.textContent=N,v=j(),d=_("button"),d.textContent=b,T=j(),Ee(g.$$.fragment),D=j(),Ee(O.$$.fragment),F=j(),U=_("textarea"),w=j(),E=_("table"),M=_("thead"),M.innerHTML=P,X=j();for(let W=0;W<Pe.length;W+=1)Pe[W].c();R=j(),y=_("div"),V=_("label"),V.textContent=x,Z=j(),le=_("input"),_e=j(),ce=_("button"),ce.textContent=pe,Ce=j(),L=_("button"),L.textContent=B,ne=j(),q=_("button"),q.textContent=fe,ee=j(),Ee(ke.$$.fragment),ue=j(),Ee(Q.$$.fragment),$=j(),Ee(A.$$.fragment),ae=j(),de=_("button"),ve=_("img"),Be=j(),xe=_("div"),Ee(Je.$$.fragment),pt=j(),H=_("div"),Ee(re.$$.fragment),this.h()},l(W){e=p(W,"SECTION",{class:!0});var se=S(e);l=p(se,"H2",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-1mc497a"&&(l.textContent=n),r=I(se),s=p(se,"MAIN",{class:!0});var me=S(s);a=p(me,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-zt7rok"&&(a.textContent=c),u=I(me),i=p(me,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),m=I(me),h=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(h)!=="svelte-1typ5"&&(h.textContent=N),v=I(me),d=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-187bpo6"&&(d.textContent=b),T=I(me),Le(g.$$.fragment,me),D=I(me),Le(O.$$.fragment,me),F=I(me),U=p(me,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(U).forEach(k),w=I(me),E=p(me,"TABLE",{class:!0});var tt=S(E);M=p(tt,"THEAD",{class:!0,"data-svelte-h":!0}),ie(M)!=="svelte-1szl7uo"&&(M.innerHTML=P),X=I(tt);for(let Qe=0;Qe<Pe.length;Qe+=1)Pe[Qe].l(tt);tt.forEach(k),R=I(me),y=p(me,"DIV",{class:!0});var lt=S(y);V=p(lt,"LABEL",{for:!0,"data-svelte-h":!0}),ie(V)!=="svelte-gqskth"&&(V.textContent=x),Z=I(lt),le=p(lt,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),lt.forEach(k),_e=I(me),ce=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(ce)!=="svelte-1ny58g0"&&(ce.textContent=pe),Ce=I(me),L=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(L)!=="svelte-11or0m2"&&(L.textContent=B),ne=I(me),q=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(q)!=="svelte-5zdtrl"&&(q.textContent=fe),ee=I(me),Le(ke.$$.fragment,me),ue=I(me),Le(Q.$$.fragment,me),me.forEach(k),$=I(se),Le(A.$$.fragment,se),ae=I(se),de=p(se,"BUTTON",{class:!0});var ut=S(de);ve=p(ut,"IMG",{src:!0,alt:!0,class:!0}),ut.forEach(k),Be=I(se),xe=p(se,"DIV",{class:!0});var mt=S(xe);Le(Je.$$.fragment,mt),mt.forEach(k),pt=I(se),H=p(se,"DIV",{class:!0});var nt=S(H);Le(re.$$.fragment,nt),nt.forEach(k),se.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(U,"rows","3"),f(U,"cols","80"),U.readOnly=!0,f(U,"wrap","off"),U.value=t[7],f(U,"class","svelte-1g5tt44"),He(U,"colorWarn",t[8]),f(M,"class","svelte-1g5tt44"),f(E,"class","svelte-1g5tt44"),f(V,"for","inComment"),f(le,"type","text"),f(le,"id","inComment"),f(le,"maxlength","150"),f(le,"size","70"),f(y,"class","comment svelte-1g5tt44"),f(ce,"class","svelte-1g5tt44"),f(L,"class","svelte-1g5tt44"),f(q,"class","svelte-1g5tt44"),f(s,"class","svelte-1g5tt44"),ht(ve.src,he=t[16])||f(ve,"src",he),f(ve,"alt",t[16]),f(ve,"class","svelte-1g5tt44"),f(de,"class","side-img svelte-1g5tt44"),f(xe,"class","mini-canvas svelte-1g5tt44"),f(H,"class","mini-canvas svelte-1g5tt44"),f(e,"class","svelte-1g5tt44")},m(W,se){J(W,e,se),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),Se(g,s,null),o(s,D),Se(O,s,null),o(s,F),o(s,U),o(s,w),o(s,E),o(E,M),o(E,X);for(let me=0;me<Pe.length;me+=1)Pe[me]&&Pe[me].m(E,null);o(s,R),o(s,y),o(y,V),o(y,Z),o(y,le),be(le,t[6]),o(s,_e),o(s,ce),o(s,Ce),o(s,L),o(s,ne),o(s,q),o(s,ee),Se(ke,s,null),o(s,ue),Se(Q,s,null),o(e,$),Se(A,e,null),o(e,ae),o(e,de),o(de,ve),o(e,Be),o(e,xe),Se(Je,xe,null),o(e,pt),o(e,H),Se(re,H,null),Ne=!0,Re||(We=[G(i,"change",t[22]),G(h,"click",t[31]),G(d,"click",t[32]),G(le,"input",t[42]),G(ce,"click",t[23]),G(L,"click",t[27]),G(q,"click",t[43]),G(de,"click",t[29])],Re=!0)},p(W,se){const me={};se[2]&64&&(me.$$scope={dirty:se,ctx:W}),!C&&se[0]&512&&(C=!0,me.modalOpen=W[9],Ae(()=>C=!1)),g.$set(me);const tt={};if(se[0]&8193|se[2]&64&&(tt.$$scope={dirty:se,ctx:W}),!z&&se[0]&1024&&(z=!0,tt.modalOpen=W[10],Ae(()=>z=!1)),O.$set(tt),(!Ne||se[0]&128)&&(U.value=W[7]),(!Ne||se[0]&256)&&He(U,"colorWarn",W[8]),se[0]&271319073){et=De(W[5]);let Ye;for(Ye=0;Ye<et.length;Ye+=1){const It=Kt(W,et,Ye);Pe[Ye]?Pe[Ye].p(It,se):(Pe[Ye]=Qt(It),Pe[Ye].c(),Pe[Ye].m(E,null))}for(;Ye<Pe.length;Ye+=1)Pe[Ye].d(1);Pe.length=et.length}se[0]&64&&le.value!==W[6]&&be(le,W[6]);const lt={};se[0]&32768|se[2]&64&&(lt.$$scope={dirty:se,ctx:W}),!Te&&se[0]&2048&&(Te=!0,lt.modalOpen=W[11],Ae(()=>Te=!1)),ke.$set(lt);const ut={};se[0]&16385|se[2]&64&&(ut.$$scope={dirty:se,ctx:W}),!oe&&se[0]&4096&&(oe=!0,ut.modalOpen=W[12],Ae(()=>oe=!1)),Q.$set(ut);const mt={};se[0]&65536&&(mt.svgPath=W[16]),!te&&se[0]&131072&&(te=!0,mt.modalOpen=W[17],Ae(()=>te=!1)),A.$set(mt),(!Ne||se[0]&65536&&!ht(ve.src,he=W[16]))&&f(ve,"src",he),(!Ne||se[0]&65536)&&f(ve,"alt",W[16]);const nt={};se[0]&1&&(nt.pageName=W[0].partName),se[0]&2&&(nt.fgeom=W[1]),se[0]&4&&(nt.selFace=W[2]),se[0]&16&&(nt.simTime=W[4]),Je.$set(nt);const Qe={};se[0]&1&&(Qe.pageName=W[0].partName),se[0]&2&&(Qe.fgeom=W[1]),se[0]&4&&(Qe.selFace=W[2]),se[0]&8&&(Qe.zAdjust=W[3]),se[0]&16&&(Qe.simTime=W[4]),re.$set(Qe)},i(W){Ne||(we(g.$$.fragment,W),we(O.$$.fragment,W),we(ke.$$.fragment,W),we(Q.$$.fragment,W),we(A.$$.fragment,W),we(Je.$$.fragment,W),we(re.$$.fragment,W),Ne=!0)},o(W){Oe(g.$$.fragment,W),Oe(O.$$.fragment,W),Oe(ke.$$.fragment,W),Oe(Q.$$.fragment,W),Oe(A.$$.fragment,W),Oe(Je.$$.fragment,W),Oe(re.$$.fragment,W),Ne=!1},d(W){W&&k(e),je(g),je(O),Ke(Pe,W),je(ke),je(Q),je(A),je(Je),je(re),Re=!1,qe(We)}}}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,Ze,H=>l(19,n=H)),at(t,ql,H=>l(48,r=H));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(H,re){let Ne="",Re=!1;H!==a.partName&&(Ne+=`warn361: read partName: '${H}' expected partName: '${a.partName}'
|
|
1
|
+
import{a as Pt,b as wl}from"../chunks/makeList.OjG4sjHO.js";import{H as Cl,w as ul,g as Ol}from"../chunks/entry.4cYjZEkR.js";import{Q as Dl,s as Me,p as st,i as J,n as ze,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 Ie,a as j,g as I,T as Ae,o as Ke,y as El,t as Y,l as ie,d as K,U as He,z as Ll,A as Sl,B as jl,j as ge,C as qe,V as be,k as at,r as Et,W as ml,X as _t,Y as Ct,Z as Il,H as bt,_ as ot,$ as Pl,a0 as Al}from"../chunks/scheduler.2BOoCPD3.js";import{S as ye,i as Fe,f as Ue,b as Ee,d as Le,m as Se,a as we,t as Oe,e as je,g as Ul,c as zl}from"../chunks/index.BugmtA6_.js";import{e as De,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 Ot,Q as Hl,R as At,f as dt,r as Dt,T as Ge,U as Vl,V as Wl,W as Xl,X as Yl,Y as Kl}from"../chunks/index.D-gTLL5b.js";import{b as vt}from"../chunks/paths.B1t63Fye.js";import{p as ql}from"../chunks/stores.DiRE9raP.js";function Gl(t,e){throw new Cl(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"})),Ze=ul({});function pl(t,e,l){const n=Dl(Ze);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;Ze.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:ze,o:ze,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 ye{constructor(e){super(),Fe(this,e,$l,Ql,Me,{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=j(),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=I(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}),Ie.push(()=>Ue(l,"modalOpen",a));let u=De(t[0]),i=[];for(let m=0;m<u.length;m+=1)i[m]=Mt(zt(t,u,m));return{c(){e=_("section"),Ee(l.$$.fragment),r=j();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);Le(l.$$.fragment,h),r=I(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),Se(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],Ae(()=>n=!1)),l.$set(N),h&9){u=De(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||(we(l.$$.fragment,m),s=!0)},o(m){Oe(l.$$.fragment,m),s=!1},d(m){m&&k(e),je(l),Ke(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 ye{constructor(e){super(),Fe(this,e,tn,xl,Me,{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=j(),s=_("footer"),a=_("button"),a.textContent=c,u=j(),i=_("button"),m=Y(t[1]),this.h()},l(T){e=p(T,"ASIDE",{class:!0});var g=S(e);l=p(g,"DIV",{class:!0});var C=S(l);n=p(C,"ARTICLE",{class:!0});var D=S(n);b&&b.l(D),D.forEach(k),r=I(C),s=p(C,"FOOTER",{class:!0});var O=S(s);a=p(O,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-hcvk9s"&&(a.textContent=c),u=I(O),i=p(O,"BUTTON",{class:!0});var z=S(i);m=K(z,t[1]),z.forEach(k),O.forEach(k),C.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"),He(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)&&ge(m,T[1]),(!h||g&4)&&He(l,"sizeLarge",T[2])},i(T){h||(we(b,T),h=!0)},o(T){Oe(b,T),h=!1},d(T){T&&k(e),b&&b.d(T),N=!1,qe(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&&we(n,1)):(n=yt(r),n.c(),we(n,1),n.m(e.parentNode,e)):n&&(Ul(),Oe(n,1,1,()=>{n=null}),zl())},i(r){l||(we(n),l=!0)},o(r){Oe(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 ye{constructor(e){super(),Fe(this,e,sn,nn,Me,{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=Y(l),this.h()},l(r){e=p(r,"P",{class:!0});var s=S(e);n=K(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]+"")&&ge(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=De(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=j();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}),ie(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=I(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=De(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)),Ke(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=j(),s=_("td"),a=_("button"),u=Y(c),i=j(),m=_("td"),N=Y(h),v=j(),this.h()},l(C){e=p(C,"TR",{class:!0});var D=S(e);l=p(D,"TD",{});var O=S(l);n=p(O,"INPUT",{type:!0}),O.forEach(k),r=I(D),s=p(D,"TD",{class:!0});var z=S(s);a=p(z,"BUTTON",{class:!0});var F=S(a);u=K(F,c),F.forEach(k),z.forEach(k),i=I(D),m=p(D,"TD",{});var U=S(m);N=K(U,h),U.forEach(k),v=I(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(C,D){J(C,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(C,D){t=C,D&9&&(n.checked=t[3][t[17]]),D&1&&c!==(c=t[17]+"")&&ge(u,c),D&5&&h!==(h=t[2][t[17]]+"")&&ge(N,h)},d(C){C&&k(e),d=!1,qe(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,C="delete all",D,O,z,F,U,w,E;function M(y){t[10](y)}let P={okName:"Confirm",okFunc:t[6],$$slots:{default:[an]},$$scope:{ctx:t}};t[4]!==void 0&&(P.modalOpen=t[4]),s=new gt({props:P}),Ie.push(()=>Ue(s,"modalOpen",M));let X=De(t[0]),R=[];for(let y=0;y<X.length;y+=1)R[y]=Vt(Ft(t,X,y));return{c(){e=_("div"),l=_("button"),l.textContent=n,r=j(),Ee(s.$$.fragment),c=j(),u=_("table"),i=_("thead"),m=_("tr"),m.innerHTML=h,N=j(),v=_("tr"),d=_("td"),b=_("input"),T=j(),g=_("td"),g.textContent=C,D=j(),O=_("td"),z=j(),F=_("tbody");for(let y=0;y<R.length;y+=1)R[y].c();this.h()},l(y){e=p(y,"DIV",{class:!0});var V=S(e);l=p(V,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-1tbm4xl"&&(l.textContent=n),r=I(V),Le(s.$$.fragment,V),c=I(V),u=p(V,"TABLE",{class:!0});var x=S(u);i=p(x,"THEAD",{class:!0});var Z=S(i);m=p(Z,"TR",{"data-svelte-h":!0}),ie(m)!=="svelte-xt53kn"&&(m.innerHTML=h),N=I(Z),v=p(Z,"TR",{});var le=S(v);d=p(le,"TD",{});var _e=S(d);b=p(_e,"INPUT",{type:!0}),_e.forEach(k),T=I(le),g=p(le,"TD",{class:!0,"data-svelte-h":!0}),ie(g)!=="svelte-1s4wssd"&&(g.textContent=C),D=I(le),O=p(le,"TD",{}),S(O).forEach(k),le.forEach(k),Z.forEach(k),z=I(x),F=p(x,"TBODY",{class:!0});var ce=S(F);for(let pe=0;pe<R.length;pe+=1)R[pe].l(ce);ce.forEach(k),x.forEach(k),V.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,V){J(y,e,V),o(e,l),o(e,r),Se(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,O),o(u,z),o(u,F);for(let x=0;x<R.length;x+=1)R[x]&&R[x].m(F,null);U=!0,w||(E=[G(l,"click",t[9]),G(b,"change",t[11])],w=!0)},p(y,[V]){const x={};if(V&4194313&&(x.$$scope={dirty:V,ctx:y}),!a&&V&16&&(a=!0,x.modalOpen=y[4],Ae(()=>a=!1)),s.$set(x),V&2&&(b.checked=y[1]),V&45){X=De(y[0]);let Z;for(Z=0;Z<X.length;Z+=1){const le=Ft(y,X,Z);R[Z]?R[Z].p(le,V):(R[Z]=Vt(le),R[Z].c(),R[Z].m(F,null))}for(;Z<R.length;Z+=1)R[Z].d(1);R.length=X.length}},i(y){U||(we(s.$$.fragment,y),U=!0)},o(y){Oe(s.$$.fragment,y),U=!1},d(y){y&&k(e),je(s),Ke(R,y),w=!1,qe(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 O=[];const z=new RegExp(`^${n}_`);return O=Object.keys(window.localStorage).filter(U=>z.test(U)).map(U=>U.replace(z,"")),O}s=a();function c(O){l(7,r=O)}let u={};function i(O){let z={};for(const F of O){let U="";const w=`${n}_${F}`,E=window.localStorage.getItem(w);E!==null&&(U=JSON.parse(E).lastModif),z[F]=U}return z}u=i(s);let m={};m=rn(s);let h=!1;function N(O){for(const z of s)l(3,m[z]=O,m)}function v(){for(const O of s)if(m[O]){const z=`${n}_${O}`;window.localStorage.removeItem(z)}l(0,s=a())}let d=!1;const b=()=>{l(4,d=!0)};function T(O){d=O,l(4,d)}function g(){h=this.checked,l(1,h)}function C(O){m[O]=this.checked,l(3,m)}const D=O=>c(O);return t.$$set=O=>{"pageName"in O&&l(8,n=O.pageName),"storeName"in O&&l(7,r=O.storeName),"localKeys"in O&&l(0,s=O.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(h)},[s,h,u,m,d,c,v,r,n,b,T,g,C,D]}class vl extends ye{constructor(e){super(),Fe(this,e,cn,on,Me,{pageName:8,storeName:7,localKeys:0})}}function Wt(t){let e,l,n,r;return{c(){e=_("p"),l=Y("Warning: name "),n=Y(t[0]),r=Y(" already used"),this.h()},l(s){e=p(s,"P",{class:!0});var a=S(e);l=K(a,"Warning: name "),n=K(a,t[0]),r=K(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&&ge(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(C){t[5](C)}function b(C){t[6](C)}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}),Ie.push(()=>Ue(e,"storeName",d)),Ie.push(()=>Ue(e,"localKeys",b));let g=t[3]&&Wt(t);return{c(){Ee(e.$$.fragment),r=j(),s=_("div"),a=_("label"),a.textContent=c,u=j(),i=_("input"),m=j(),g&&g.c(),this.h()},l(C){Le(e.$$.fragment,C),r=I(C),s=p(C,"DIV",{class:!0});var D=S(s);a=p(D,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-1vdq35w"&&(a.textContent=c),u=I(D),i=p(D,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),m=I(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(C,D){Se(e,C,D),J(C,r,D),J(C,s,D),o(s,a),o(s,u),o(s,i),be(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(C,[D]){const O={};D&2&&(O.pageName=C[1]),!l&&D&1&&(l=!0,O.storeName=C[0],Ae(()=>l=!1)),!n&&D&4&&(n=!0,O.localKeys=C[2],Ae(()=>n=!1)),e.$set(O),D&1&&i.value!==C[0]&&be(i,C[0]),C[3]?g?g.p(C,D):(g=Wt(C),g.c(),g.m(s,null)):g&&(g.d(1),g=null)},i(C){h||(we(e.$$.fragment,C),h=!0)},o(C){Oe(e.$$.fragment,C),h=!1},d(C){C&&(k(r),k(s)),je(e,C),g&&g.d(),N=!1,qe(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 ye{constructor(e){super(),Fe(this,e,mn,fn,Me,{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}),Ie.push(()=>Ue(e,"storeName",h)),Ie.push(()=>Ue(e,"localKeys",N)),{c(){Ee(e.$$.fragment),r=j(),s=_("div"),a=_("label"),a.textContent=c,u=j(),i=_("input"),this.h()},l(d){Le(e.$$.fragment,d),r=I(d),s=p(d,"DIV",{class:!0});var b=S(s);a=p(b,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-rajgc0"&&(a.textContent=c),u=I(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){Se(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],Ae(()=>l=!1)),!n&&b&4&&(n=!0,T.localKeys=d[2],Ae(()=>n=!1)),e.$set(T),(!m||b&1&&i.value!==d[0])&&(i.value=d[0])},i(d){m||(we(e.$$.fragment,d),m=!0)},o(d){Oe(e.$$.fragment,d),m=!1},d(d){d&&(k(r),k(s)),je(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 ye{constructor(e){super(),Fe(this,e,_n,hn,Me,{pageName:1,storeName:0})}}const Ve=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:ze,i:ze,o:ze,d(l){l&&k(e),t[9](null)}}}const Xt=200;function vn(t,e,l){let n,r;at(t,Ve,T=>l(7,n=T)),at(t,Ze,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 C=yl(g);C.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,C)}catch(O){console.log(O)}}let v=0;function d(T,g,C,D){const O=a(T,g).fig;if(Object.keys(O).includes(C)){const z=O[C];N(z,D)}else{const z=dl(O);N(z,D)}}Et(()=>{d(i,r[s],c,n),l(6,v=1)});function b(T){Ie[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 ye{constructor(e){super(),Fe(this,e,vn,gn,Me,{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=Y("Load the default parameters ?")},l(l){e=K(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}),Ie.push(()=>Ue(e,"storeName",r)),{c(){Ee(e.$$.fragment)},l(a){Le(e.$$.fragment,a)},m(a,c){Se(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],Ae(()=>l=!1)),e.$set(u)},i(a){n||(we(e.$$.fragment,a),n=!0)},o(a){Oe(e.$$.fragment,a),n=!1},d(a){je(e,a)}}}function Cn(t){let e;return{c(){e=Y("unknown")},l(l){e=K(l,"unknown")},m(l,n){J(l,e,n)},p:ze,d(l){l&&k(e)}}}function On(t){let e,l,n,r=De(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=De(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),Ke(s,c),l=!1,n()}}}function Dn(t){let e,l,n,r=De(["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),Ke(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=j(),a=_("input"),this.h()},l(d){e=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=I(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),be(e,t[19][t[0].partName][t[61].name]),J(d,s,b),J(d,a,b),be(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]&&be(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&&be(a,t[19][t[0].partName][t[61].name])},d(d){d&&(k(e),k(s),k(a)),m=!1,qe(h)}}}function Zt(t){let e,l=t[64]+"",n;return{c(){e=_("option"),n=Y(l),this.h()},l(r){e=p(r,"OPTION",{});var s=S(e);n=K(s,l),s.forEach(k),this.h()},h(){e.__value=t[66],be(e,e.__value)},m(r,s){J(r,e,s),o(e,n)},p(r,s){s[0]&32&&l!==(l=r[64]+"")&&ge(n,l)},d(r){r&&k(e)}}}function Ln(t){let e,l;return{c(){e=_("option"),l=Y(t[64]),this.h()},l(n){e=p(n,"OPTION",{});var r=S(e);l=K(r,t[64]),r.forEach(k),this.h()},h(){e.__value=t[66],be(e,e.__value)},m(n,r){J(n,e,r),o(e,l)},p:ze,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+"",C,D,O,z=t[61].init+"",F,U,w,E=t[61].min+"",M,P,X,R=t[61].max+"",y,V,x,Z=t[61].step+"",le,_e,ce;function pe(){return t[37](t[61])}function Ce(ne,q){return ne[61].pType===wt.eNumber?En:ne[61].pType===wt.eCheckbox?Dn:ne[61].pType===wt.eDropdown?On:Cn}let L=Ce(t),B=L(t);return{c(){e=_("tr"),l=_("td"),r=Y(n),s=Y("."),c=Y(a),u=j(),i=_("td"),m=_("button"),N=Y(h),v=j(),d=_("td"),B.c(),b=j(),T=_("td"),C=Y(g),D=j(),O=_("td"),F=Y(z),U=j(),w=_("td"),M=Y(E),P=j(),X=_("td"),y=Y(R),V=j(),x=_("td"),le=Y(Z),this.h()},l(ne){e=p(ne,"TR",{class:!0});var q=S(e);l=p(q,"TD",{class:!0});var fe=S(l);r=K(fe,n),s=K(fe,"."),c=K(fe,a),fe.forEach(k),u=I(q),i=p(q,"TD",{class:!0});var ee=S(i);m=p(ee,"BUTTON",{class:!0});var ke=S(m);N=K(ke,h),ke.forEach(k),ee.forEach(k),v=I(q),d=p(q,"TD",{class:!0});var Te=S(d);B.l(Te),Te.forEach(k),b=I(q),T=p(q,"TD",{class:!0});var ue=S(T);C=K(ue,g),ue.forEach(k),D=I(q),O=p(q,"TD",{class:!0});var Q=S(O);F=K(Q,z),Q.forEach(k),U=I(q),w=p(q,"TD",{class:!0});var oe=S(w);M=K(oe,E),oe.forEach(k),P=I(q),X=p(q,"TD",{class:!0});var $=S(X);y=K($,R),$.forEach(k),V=I(q),x=p(q,"TD",{class:!0});var A=S(x);le=K(A,Z),A.forEach(k),q.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(O,"class","svelte-1g5tt44"),f(w,"class","svelte-1g5tt44"),f(X,"class","svelte-1g5tt44"),f(x,"class","svelte-1g5tt44"),f(e,"class","svelte-1g5tt44"),He(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},m(ne,q){J(ne,e,q),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),B.m(d,null),o(e,b),o(e,T),o(T,C),o(e,D),o(e,O),o(O,F),o(e,U),o(e,w),o(w,M),o(e,P),o(e,X),o(X,y),o(e,V),o(e,x),o(x,le),_e||(ce=G(m,"click",pe),_e=!0)},p(ne,q){t=ne,q[0]&32&&h!==(h=t[61].name+"")&&ge(N,h),L===(L=Ce(t))&&B?B.p(t,q):(B.d(1),B=L(t),B&&(B.c(),B.m(d,null))),q[0]&32&&g!==(g=t[61].unit+"")&&ge(C,g),q[0]&32&&z!==(z=t[61].init+"")&&ge(F,z),q[0]&32&&E!==(E=t[61].min+"")&&ge(M,E),q[0]&32&&R!==(R=t[61].max+"")&&ge(y,R),q[0]&32&&Z!==(Z=t[61].step+"")&&ge(le,Z),q[0]&524321&&He(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},d(ne){ne&&k(e),B.d(),_e=!1,ce()}}}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,C,D,O;function z(){t[36].call(N,t[58])}let F=De(t[58].params),U=[];for(let w=0;w<F.length;w+=1)U[w]=Jt(qt(t,F,w));return{c(){e=_("tr"),l=_("td"),r=Y(n),s=j(),a=_("td"),u=Y(c),i=j(),m=_("td"),h=_("label"),N=_("input"),v=j(),d=_("span"),d.innerHTML=b,T=j(),g=_("tbody");for(let w=0;w<U.length;w+=1)U[w].c();C=j(),this.h()},l(w){e=p(w,"TR",{class:!0});var E=S(e);l=p(E,"TD",{class:!0});var M=S(l);r=K(M,n),M.forEach(k),s=I(E),a=p(E,"TD",{colspan:!0,class:!0});var P=S(a);u=K(P,c),P.forEach(k),i=I(E),m=p(E,"TD",{colspan:!0,class:!0});var X=S(m);h=p(X,"LABEL",{class:!0});var R=S(h);N=p(R,"INPUT",{type:!0,class:!0}),v=I(R),d=p(R,"SPAN",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-1qufua2"&&(d.innerHTML=b),R.forEach(k),X.forEach(k),E.forEach(k),T=I(w),g=p(w,"TBODY",{class:!0});var y=S(g);for(let V=0;V<U.length;V+=1)U[V].l(y);C=I(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"),He(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 M=0;M<U.length;M+=1)U[M]&&U[M].m(g,null);o(g,C),D||(O=G(N,"change",z),D=!0)},p(w,E){if(t=w,E[0]&32&&c!==(c=t[58].sectionName+"")&&ge(u,c),E[0]&262176&&(N.checked=t[18][t[58].sectionID]),E[0]&271056929){F=De(t[58].params);let M;for(M=0;M<F.length;M+=1){const P=qt(t,F,M);U[M]?U[M].p(P,E):(U[M]=Jt(P),U[M].c(),U[M].m(g,C))}for(;M<U.length;M+=1)U[M].d(1);U.length=F.length}E[0]&262176&&He(g,"collaps",t[18][t[58].sectionID])},d(w){w&&(k(e),k(T),k(g)),Ke(U,w),D=!1,O()}}}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=j(),r=_("p"),s=Y(t[15]),this.h()},l(a){e=p(a,"P",{"data-svelte-h":!0}),ie(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=I(a),r=p(a,"P",{class:!0});var c=S(r);s=K(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&&ge(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}),Ie.push(()=>Ue(e,"storeName",r)),{c(){Ee(e.$$.fragment)},l(a){Le(e.$$.fragment,a)},m(a,c){Se(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],Ae(()=>l=!1)),e.$set(u)},i(a){n||(we(e.$$.fragment,a),n=!0)},o(a){Oe(e.$$.fragment,a),n=!1},d(a){je(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,C,D,O,z,F,U,w,E,M,P='<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>',X,R,y,V,x="Comment:",Z,le,_e,ce,pe="Save Parameters to File",Ce,L,B="Save Parameters as URL",ne,q,fe="Save Parameters to localStorage",ee,ke,Te,ue,Q,oe,$,A,te,ae,de,ve,he,Be,xe,Je,pt,H,re,Ne,Re,We;function $e(W){t[33](W)}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}),Ie.push(()=>Ue(g,"modalOpen",$e));function kt(W){t[35](W)}let it={okName:"Load Parameters",okFunc:t[25],$$slots:{default:[wn]},$$scope:{ctx:t}};t[10]!==void 0&&(it.modalOpen=t[10]),O=new gt({props:it}),Ie.push(()=>Ue(O,"modalOpen",kt));let et=De(t[5]),Pe=[];for(let W=0;W<et.length;W+=1)Pe[W]=Qt(Kt(t,et,W));function Lt(W){t[44](W)}let Xe={okName:"Done",okFunc:Pn,sizeLarge:!0,$$slots:{default:[Sn]},$$scope:{ctx:t}};t[11]!==void 0&&(Xe.modalOpen=t[11]),ke=new gt({props:Xe}),Ie.push(()=>Ue(ke,"modalOpen",Lt));function Nl(W){t[46](W)}let St={okName:"Save into localStorage",okFunc:t[26],$$slots:{default:[jn]},$$scope:{ctx:t}};t[12]!==void 0&&(St.modalOpen=t[12]),Q=new gt({props:St}),Ie.push(()=>Ue(Q,"modalOpen",Nl));function Tl(W){t[47](W)}let jt={svgPath:t[16]};return t[17]!==void 0&&(jt.modalOpen=t[17]),A=new gl({props:jt}),Ie.push(()=>Ue(A,"modalOpen",Tl)),Je=new Yt({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],zAdjust:t[20],simTime:t[4]}}),re=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=j(),s=_("main"),a=_("label"),a.textContent=c,u=j(),i=_("input"),m=j(),h=_("button"),h.textContent=N,v=j(),d=_("button"),d.textContent=b,T=j(),Ee(g.$$.fragment),D=j(),Ee(O.$$.fragment),F=j(),U=_("textarea"),w=j(),E=_("table"),M=_("thead"),M.innerHTML=P,X=j();for(let W=0;W<Pe.length;W+=1)Pe[W].c();R=j(),y=_("div"),V=_("label"),V.textContent=x,Z=j(),le=_("input"),_e=j(),ce=_("button"),ce.textContent=pe,Ce=j(),L=_("button"),L.textContent=B,ne=j(),q=_("button"),q.textContent=fe,ee=j(),Ee(ke.$$.fragment),ue=j(),Ee(Q.$$.fragment),$=j(),Ee(A.$$.fragment),ae=j(),de=_("button"),ve=_("img"),Be=j(),xe=_("div"),Ee(Je.$$.fragment),pt=j(),H=_("div"),Ee(re.$$.fragment),this.h()},l(W){e=p(W,"SECTION",{class:!0});var se=S(e);l=p(se,"H2",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-1mc497a"&&(l.textContent=n),r=I(se),s=p(se,"MAIN",{class:!0});var me=S(s);a=p(me,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(a)!=="svelte-zt7rok"&&(a.textContent=c),u=I(me),i=p(me,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),m=I(me),h=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(h)!=="svelte-1typ5"&&(h.textContent=N),v=I(me),d=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-187bpo6"&&(d.textContent=b),T=I(me),Le(g.$$.fragment,me),D=I(me),Le(O.$$.fragment,me),F=I(me),U=p(me,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(U).forEach(k),w=I(me),E=p(me,"TABLE",{class:!0});var tt=S(E);M=p(tt,"THEAD",{class:!0,"data-svelte-h":!0}),ie(M)!=="svelte-1szl7uo"&&(M.innerHTML=P),X=I(tt);for(let Qe=0;Qe<Pe.length;Qe+=1)Pe[Qe].l(tt);tt.forEach(k),R=I(me),y=p(me,"DIV",{class:!0});var lt=S(y);V=p(lt,"LABEL",{for:!0,"data-svelte-h":!0}),ie(V)!=="svelte-gqskth"&&(V.textContent=x),Z=I(lt),le=p(lt,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),lt.forEach(k),_e=I(me),ce=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(ce)!=="svelte-1ny58g0"&&(ce.textContent=pe),Ce=I(me),L=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(L)!=="svelte-11or0m2"&&(L.textContent=B),ne=I(me),q=p(me,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(q)!=="svelte-5zdtrl"&&(q.textContent=fe),ee=I(me),Le(ke.$$.fragment,me),ue=I(me),Le(Q.$$.fragment,me),me.forEach(k),$=I(se),Le(A.$$.fragment,se),ae=I(se),de=p(se,"BUTTON",{class:!0});var ut=S(de);ve=p(ut,"IMG",{src:!0,alt:!0,class:!0}),ut.forEach(k),Be=I(se),xe=p(se,"DIV",{class:!0});var mt=S(xe);Le(Je.$$.fragment,mt),mt.forEach(k),pt=I(se),H=p(se,"DIV",{class:!0});var nt=S(H);Le(re.$$.fragment,nt),nt.forEach(k),se.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(U,"rows","3"),f(U,"cols","80"),U.readOnly=!0,f(U,"wrap","off"),U.value=t[7],f(U,"class","svelte-1g5tt44"),He(U,"colorWarn",t[8]),f(M,"class","svelte-1g5tt44"),f(E,"class","svelte-1g5tt44"),f(V,"for","inComment"),f(le,"type","text"),f(le,"id","inComment"),f(le,"maxlength","150"),f(le,"size","70"),f(y,"class","comment svelte-1g5tt44"),f(ce,"class","svelte-1g5tt44"),f(L,"class","svelte-1g5tt44"),f(q,"class","svelte-1g5tt44"),f(s,"class","svelte-1g5tt44"),ht(ve.src,he=t[16])||f(ve,"src",he),f(ve,"alt",t[16]),f(ve,"class","svelte-1g5tt44"),f(de,"class","side-img svelte-1g5tt44"),f(xe,"class","mini-canvas svelte-1g5tt44"),f(H,"class","mini-canvas svelte-1g5tt44"),f(e,"class","svelte-1g5tt44")},m(W,se){J(W,e,se),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),Se(g,s,null),o(s,D),Se(O,s,null),o(s,F),o(s,U),o(s,w),o(s,E),o(E,M),o(E,X);for(let me=0;me<Pe.length;me+=1)Pe[me]&&Pe[me].m(E,null);o(s,R),o(s,y),o(y,V),o(y,Z),o(y,le),be(le,t[6]),o(s,_e),o(s,ce),o(s,Ce),o(s,L),o(s,ne),o(s,q),o(s,ee),Se(ke,s,null),o(s,ue),Se(Q,s,null),o(e,$),Se(A,e,null),o(e,ae),o(e,de),o(de,ve),o(e,Be),o(e,xe),Se(Je,xe,null),o(e,pt),o(e,H),Se(re,H,null),Ne=!0,Re||(We=[G(i,"change",t[22]),G(h,"click",t[31]),G(d,"click",t[32]),G(le,"input",t[42]),G(ce,"click",t[23]),G(L,"click",t[27]),G(q,"click",t[43]),G(de,"click",t[29])],Re=!0)},p(W,se){const me={};se[2]&64&&(me.$$scope={dirty:se,ctx:W}),!C&&se[0]&512&&(C=!0,me.modalOpen=W[9],Ae(()=>C=!1)),g.$set(me);const tt={};if(se[0]&8193|se[2]&64&&(tt.$$scope={dirty:se,ctx:W}),!z&&se[0]&1024&&(z=!0,tt.modalOpen=W[10],Ae(()=>z=!1)),O.$set(tt),(!Ne||se[0]&128)&&(U.value=W[7]),(!Ne||se[0]&256)&&He(U,"colorWarn",W[8]),se[0]&271319073){et=De(W[5]);let Ye;for(Ye=0;Ye<et.length;Ye+=1){const It=Kt(W,et,Ye);Pe[Ye]?Pe[Ye].p(It,se):(Pe[Ye]=Qt(It),Pe[Ye].c(),Pe[Ye].m(E,null))}for(;Ye<Pe.length;Ye+=1)Pe[Ye].d(1);Pe.length=et.length}se[0]&64&&le.value!==W[6]&&be(le,W[6]);const lt={};se[0]&32768|se[2]&64&&(lt.$$scope={dirty:se,ctx:W}),!Te&&se[0]&2048&&(Te=!0,lt.modalOpen=W[11],Ae(()=>Te=!1)),ke.$set(lt);const ut={};se[0]&16385|se[2]&64&&(ut.$$scope={dirty:se,ctx:W}),!oe&&se[0]&4096&&(oe=!0,ut.modalOpen=W[12],Ae(()=>oe=!1)),Q.$set(ut);const mt={};se[0]&65536&&(mt.svgPath=W[16]),!te&&se[0]&131072&&(te=!0,mt.modalOpen=W[17],Ae(()=>te=!1)),A.$set(mt),(!Ne||se[0]&65536&&!ht(ve.src,he=W[16]))&&f(ve,"src",he),(!Ne||se[0]&65536)&&f(ve,"alt",W[16]);const nt={};se[0]&1&&(nt.pageName=W[0].partName),se[0]&2&&(nt.fgeom=W[1]),se[0]&4&&(nt.selFace=W[2]),se[0]&16&&(nt.simTime=W[4]),Je.$set(nt);const Qe={};se[0]&1&&(Qe.pageName=W[0].partName),se[0]&2&&(Qe.fgeom=W[1]),se[0]&4&&(Qe.selFace=W[2]),se[0]&8&&(Qe.zAdjust=W[3]),se[0]&16&&(Qe.simTime=W[4]),re.$set(Qe)},i(W){Ne||(we(g.$$.fragment,W),we(O.$$.fragment,W),we(ke.$$.fragment,W),we(Q.$$.fragment,W),we(A.$$.fragment,W),we(Je.$$.fragment,W),we(re.$$.fragment,W),Ne=!0)},o(W){Oe(g.$$.fragment,W),Oe(O.$$.fragment,W),Oe(ke.$$.fragment,W),Oe(Q.$$.fragment,W),Oe(A.$$.fragment,W),Oe(Je.$$.fragment,W),Oe(re.$$.fragment,W),Ne=!1},d(W){W&&k(e),je(g),je(O),Ke(Pe,W),je(ke),je(Q),je(A),je(Je),je(re),Re=!1,qe(We)}}}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,Ze,H=>l(19,n=H)),at(t,ql,H=>l(48,r=H));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(H,re){let Ne="",Re=!1;H!==a.partName&&(Ne+=`warn361: read partName: '${H}' expected partName: '${a.partName}'
|
|
2
2
|
`,Re=!0);let We=0,$e=0,rt=0;const kt=[];for(const Xe of a.params)kt.push(Xe.name),Object.hasOwn(re,Xe.name)?(We+=1,n[a.partName][Xe.name]===re[Xe.name]?rt+=1:Il(Ze,n[a.partName][Xe.name]=re[Xe.name],n)):$e+=1;let it=0;for(const Xe of Object.keys(re))kt.includes(Xe)||(it+=1,Ne+=`warn363: parameter ${Xe} not in the scope of the design (${it})
|
|
3
3
|
`);const et=it>0;return Ne+=`Params loaded at ${new Date().toLocaleTimeString()} :`,Ne+=` def-nb: ${Object.keys(a.params).length}`,Ne+=`, cover-nb: ${We}, uncover-nb: ${$e}
|
|
4
4
|
`,Ne+=` load-nb: ${Object.keys(re).length}`,Ne+=`, equal-nb: ${rt}, changed-nb: ${We-rt}`,Ne+=`, out-of-scope: ${it}`,[Ne,Re||et]}let b="",T=!1;function g(){{const H=new URLSearchParams(r.url.search),re={};for(const[Ne,Re]of H){const We=Number(Re);isNaN(We)||(re[Ne]=We)}Object.keys(re).length>0&&l(7,[b,T]=d(a.partName,re),b,l(8,T))}}function C(){g(),v()}Et(()=>{C()});function D(H){try{const[re]=Fl(H);l(7,[b,T]=d(re.partName,re.pVal),b,l(8,T)),l(6,N=re.comment),v()}catch(re){let Ne=`err723: error by parsing parameter file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1717351833231"}
|