designix-uis 0.5.22 → 0.5.23
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 +4 -4
- package/dist/public/_app/immutable/chunks/{entry.4cYjZEkR.js → entry.Bl6R_ECE.js} +1 -1
- package/dist/public/_app/immutable/chunks/{index.D-gTLL5b.js → index.Ozg_X58g.js} +1 -1
- package/dist/public/_app/immutable/chunks/{makeList.OjG4sjHO.js → makeList.DsP0HQAz.js} +1 -1
- package/dist/public/_app/immutable/chunks/paths.BxEKBCXC.js +1 -0
- package/dist/public/_app/immutable/chunks/{stores.DiRE9raP.js → stores.DPmk7KSQ.js} +1 -1
- package/dist/public/_app/immutable/entry/{app.DCW7Wl1o.js → app.zfPGCw9_.js} +2 -2
- package/dist/public/_app/immutable/entry/start.DyFOj44h.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.TaUdkYxo.js → 0.C5XYloI4.js} +1 -1
- package/dist/public/_app/immutable/nodes/{1.CUSF22-X.js → 1.DpY7Fppr.js} +1 -1
- package/dist/public/_app/immutable/nodes/{2.CNisk3eY.js → 2.DmkKM6Kg.js} +1 -1
- package/dist/public/_app/immutable/nodes/{3.hKP56OUw.js → 3.C5ILN9od.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 +4 -4
- package/dist/public/_app/immutable/chunks/paths.B1t63Fye.js +0 -1
- package/dist/public/_app/immutable/entry/start.CBVzKzSB.js +0 -1
package/dist/designix-uis.js
CHANGED
|
@@ -12,7 +12,7 @@ import getport from "get-port";
|
|
|
12
12
|
// package.json
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "designix-uis",
|
|
15
|
-
version: "0.5.
|
|
15
|
+
version: "0.5.23",
|
|
16
16
|
description: "mini-server for static content of designix-ui",
|
|
17
17
|
private: false,
|
|
18
18
|
repository: {
|
|
@@ -96,15 +96,15 @@ var package_default = {
|
|
|
96
96
|
devDependencies: {
|
|
97
97
|
"@types/express": "^4.17.21",
|
|
98
98
|
"@types/fs-extra": "^11.0.4",
|
|
99
|
-
"@types/node": "^20.
|
|
99
|
+
"@types/node": "^20.14.0",
|
|
100
100
|
"@types/yargs": "^17.0.32",
|
|
101
101
|
eslint: "^8.57.0",
|
|
102
102
|
"npm-run-all": "^4.1.5",
|
|
103
103
|
prettier: "^3.3.0",
|
|
104
104
|
shx: "^0.3.4",
|
|
105
|
-
tsup: "^8.0
|
|
105
|
+
tsup: "^8.1.0",
|
|
106
106
|
typescript: "^5.4.5",
|
|
107
|
-
"typescript-eslint": "^7.
|
|
107
|
+
"typescript-eslint": "^7.12.0",
|
|
108
108
|
vitest: "^1.6.0"
|
|
109
109
|
}
|
|
110
110
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as lt,s as ie,x as ce}from"./scheduler.2BOoCPD3.js";import{a as le,b as P}from"./paths.B1t63Fye.js";new URL("sveltekit-internal://");function fe(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ue(t){return t.split("%25").map(decodeURI).join("%25")}function de(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ft({href:t}){return t.split("#")[0]}const he=["href","pathname","search","toString","toJSON"];function pe(t,n,e){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of he)Object.defineProperty(a,r,{get(){return n(),t[r]},enumerable:!0,configurable:!0});return a}const ge="/__data.json",me=".html__data.json";function _e(t){return t.endsWith(".html")?t.replace(/\.html$/,me):t.replace(/\/$/,"")+ge}function ye(...t){let n=5381;for(const e of t)if(typeof e=="string"){let a=e.length;for(;a;)n=n*33^e.charCodeAt(--a)}else if(ArrayBuffer.isView(e)){const a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function we(t){const n=atob(t),e=new Uint8Array(n.length);for(let a=0;a<n.length;a++)e[a]=n.charCodeAt(a);return e.buffer}const Dt=window.fetch;window.fetch=(t,n)=>((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&G.delete(mt(t)),Dt(t,n));const G=new Map;function ve(t,n){const e=mt(t,n),a=document.querySelector(e);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&G.set(e,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=we(r)),Promise.resolve(new Response(r,o))}return window.fetch(t,n)}function be(t,n,e){if(G.size>0){const a=mt(t,e),r=G.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(e==null?void 0:e.cache))return new Response(r.body,r.init);G.delete(a)}}return window.fetch(n,e)}function mt(t,n){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(n!=null&&n.headers||n!=null&&n.body){const r=[];n.headers&&r.push([...new Headers(n.headers)].join(",")),n.body&&(typeof n.body=="string"||ArrayBuffer.isView(n.body))&&r.push(n.body),a+=`[data-hash="${ye(...r)}"]`}return a}const Ee=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ke(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Ae(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ut(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ut(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=Ee.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return ut(c)}).join("")}).join("")}/?$`),params:n}}function Se(t){return!/^\([^)]+\)$/.test(t)}function Ae(t){return t.slice(1).split("/").filter(Se)}function Re(t,n,e){const a={},r=t.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<n.length;s+=1){const c=n[s];let l=r[s-i];if(c.chained&&c.rest&&i&&(l=r.slice(s-i,s+1).filter(u=>u).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||e[c.matcher](l)){a[c.name]=l;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ut(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ie({nodes:t,server_loads:n,dictionary:e,matchers:a}){const r=new Set(n);return Object.entries(e).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=ke(s),d={id:s,exec:_=>{const f=h.exec(_);if(f)return Re(f,g,a)},errors:[1,...u||[]].map(_=>t[_]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[r.has(s),t[s]]}}function Ct(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function Pt(t,n,e=JSON.stringify){const a=e(n);try{sessionStorage[t]=a}catch{}}const O=[];function _t(t,n=lt){let e;const a=new Set;function r(s){if(ie(t,s)&&(t=s,e)){const c=!O.length;for(const l of a)l[1](),O.push(l,t);if(c){for(let l=0;l<O.length;l+=2)O[l][0](O[l+1]);O.length=0}}}function o(s){r(s(t))}function i(s,c=lt){const l=[s,c];return a.add(l),a.size===1&&(e=n(r,o)||lt),s(t),()=>{a.delete(l),a.size===0&&e&&(e(),e=null)}}return{set:r,update:o,subscribe:i}}const Le="1717351833231",Vt="sveltekit:snapshot",Ft="sveltekit:scroll",qt="sveltekit:states",Pe="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},z=location.origin;function Gt(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function yt(){return{x:pageXOffset,y:pageYOffset}}function j(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const xt={...J,"":J.hover};function Ht(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Mt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Ht(t)}}function ht(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!e||!!a||at(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===z&&t.hasAttribute("download");return{url:e,external:r,target:a,download:o}}function W(t){let n=null,e=null,a=null,r=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=j(s,"preload-code")),r===null&&(r=j(s,"preload-data")),n===null&&(n=j(s,"keepfocus")),e===null&&(e=j(s,"noscroll")),o===null&&(o=j(s,"reload")),i===null&&(i=j(s,"replacestate")),s=Ht(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:xt[a??"off"],preload_data:xt[r??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Tt(t){const n=_t(t);let e=!0;function a(){e=!0,n.update(i=>i)}function r(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function xe(){const{set:t,subscribe:n}=_t(!1);let e;async function a(){clearTimeout(e);try{const r=await fetch(`${le}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==Le;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:a}}function at(t,n){return t.origin!==z||!t.pathname.startsWith(n)}const Te=-1,Ue=-2,Ne=-3,Oe=-4,je=-5,$e=-6;function De(t,n){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,a=Array(e.length);function r(o,i=!1){if(o===Te)return;if(o===Ne)return NaN;if(o===Oe)return 1/0;if(o===je)return-1/0;if(o===$e)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=e[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=n==null?void 0:n[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;d<s.length;d+=1)u.add(r(s[d]));break;case"Map":const h=new Map;a[o]=h;for(let d=1;d<s.length;d+=2)h.set(r(s[d]),r(s[d+1]));break;case"RegExp":a[o]=new RegExp(s[1],s[2]);break;case"Object":a[o]=Object(s[1]);break;case"BigInt":a[o]=BigInt(s[1]);break;case"null":const g=Object.create(null);a[o]=g;for(let d=1;d<s.length;d+=2)g[s[d]]=r(s[d+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);a[o]=c;for(let l=0;l<s.length;l+=1){const u=s[l];u!==Ue&&(c[l]=r(u))}}else{const c={};a[o]=c;for(const l in s){const u=s[l];c[l]=r(u)}}return a[o]}return r(0)}const Bt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Bt];const Ce=new Set([...Bt]);[...Ce];function Ve(t){return t.filter(n=>n!=null)}class rt{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Kt{constructor(n,e){this.status=n,this.location=e}}class wt extends Error{constructor(n,e,a){super(a),this.status=n,this.text=e}}const Fe="x-sveltekit-invalidated",qe="x-sveltekit-trailing-slash";function X(t){return t instanceof rt||t instanceof wt?t.status:500}function Ge(t){return t instanceof wt?t.text:"Internal Error"}const N=Ct(Ft)??{},B=Ct(Vt)??{},T={url:Tt({}),page:Tt({}),navigating:_t(null),updated:xe()};function vt(t){N[t]=yt()}function He(t,n){let e=t+1;for(;N[e];)delete N[e],e+=1;for(e=n+1;B[e];)delete B[e],e+=1}function V(t){return location.href=t.href,new Promise(()=>{})}function Ut(){}let ot,pt,Z,x,gt,F;const zt=[],Q=[];let R=null;const Yt=[],Me=[];let $=[],y={branch:[],error:null,url:null},bt=!1,tt=!1,Nt=!0,K=!1,q=!1,Jt=!1,Et=!1,kt,S,L,I,et;const H=new Set;async function nn(t,n,e){var r,o;document.URL!==location.href&&(location.href=location.href),F=t,ot=Ie(t),x=document.documentElement,gt=n,pt=t.nodes[0],Z=t.nodes[1],pt(),Z(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),e?await Ze(gt,e):We(location.href,{replaceState:!0}),Xe()}function Be(){zt.length=0,Et=!1}function Wt(t){Q.some(n=>n==null?void 0:n.snapshot)&&(B[t]=Q.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Xt(t){var n;(n=B[t])==null||n.forEach((e,a)=>{var r,o;(o=(r=Q[a])==null?void 0:r.snapshot)==null||o.restore(e)})}function Ot(){vt(S),Pt(Ft,N),Wt(L),Pt(Vt,B)}async function Zt(t,n,e,a){return Y({type:"goto",url:Gt(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:a,accept:()=>{n.invalidateAll&&(Et=!0)}})}async function Ke(t){if(t.id!==(R==null?void 0:R.id)){const n={};H.add(n),R={id:t.id,token:n,promise:te({...t,preload:n}).then(e=>(H.delete(n),e.type==="loaded"&&e.state.error&&(R=null),e))}}return R.promise}async function dt(t){const n=ot.find(e=>e.exec(ee(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Qt(t,n,e){var o;y=t.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=t.props.page,kt=new F.root({target:n,props:{...t.props,stores:T,components:Q},hydrate:e}),Xt(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};$.forEach(i=>i(r)),tt=!0}async function nt({url:t,params:n,branch:e,status:a,error:r,route:o,form:i}){let s="never";if(P&&(t.pathname===P||t.pathname===P+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=fe(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:r,route:o},props:{constructors:Ve(e).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let l={},u=!I,h=0;for(let d=0;d<Math.max(e.length,y.branch.length);d+=1){const _=e[d],f=y.branch[d];(_==null?void 0:_.data)!==(f==null?void 0:f.data)&&(u=!0),_&&(l={...l,..._.data},u&&(c.props[`data_${h}`]=l),h+=1)}return(!y.url||t.href!==y.url.href||y.error!==r||i!==void 0&&i!==I.form||u)&&(c.props.page={error:r,params:n,route:{id:(o==null?void 0:o.id)??null},state:{},status:a,url:new URL(t),form:i??null,data:u?l:I.data}),c}async function St({loader:t,parent:n,url:e,params:a,route:r,server_data_node:o}){var u,h,g;let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await t();if((u=l.universal)!=null&&u.load){let d=function(...f){for(const m of f){const{href:b}=new URL(m,e);c.dependencies.add(b)}};const _={route:new Proxy(r,{get:(f,m)=>(s&&(c.route=!0),f[m])}),params:new Proxy(a,{get:(f,m)=>(s&&c.params.add(m),f[m])}),data:(o==null?void 0:o.data)??null,url:pe(e,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,m){let b;f instanceof Request?(b=f.url,m={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...m}):b=f;const A=new URL(b,e);return s&&d(A.href),A.origin===e.origin&&(b=A.href.slice(e.origin.length)),tt?be(b,A.href,m):ve(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,_)??null}return{node:l,loader:t,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function jt(t,n,e,a,r,o){if(Et)return!0;if(!r)return!1;if(r.parent&&t||r.route&&n||r.url&&e)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(zt.some(s=>s(new URL(i))))return!0;return!1}function At(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function ze(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const a of e){const r=t.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&e.delete(a)}return e}function $t({error:t,url:n,route:e,params:a}){return{type:"loaded",state:{error:t,url:n,route:e,params:a,branch:[]},props:{page:I,constructors:[]}}}async function te({id:t,invalidating:n,url:e,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===t)return H.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,l=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),l.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?t!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=ze(y.url,e);let _=!1;const f=l.map((p,v)=>{var U;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||jt(_,g,h,d,(U=E.server)==null?void 0:U.uses,a));return k&&(_=!0),k});if(f.some(Boolean)){try{u=await re(e,f)}catch(p){const v=await C(p,{url:e,params:a,route:{id:t}});return H.has(o)?$t({error:v,url:e,params:a,route:r}):st({status:X(p),error:v,url:e,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=l.map(async(p,v)=>{var it;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!jt(b,g,h,d,(it=E.universal)==null?void 0:it.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return St({loader:p[1],url:e,params:a,route:r,parent:async()=>{var Lt;const It={};for(let ct=0;ct<v;ct+=1)Object.assign(It,(Lt=await A[ct])==null?void 0:Lt.data);return It},server_data_node:At(k===void 0&&p[0]?{type:"skip"}:k??null,p[0]?E==null?void 0:E.server:void 0)})});for(const p of A)p.catch(()=>{});const w=[];for(let p=0;p<l.length;p+=1)if(l[p])try{w.push(await A[p])}catch(v){if(v instanceof Kt)return{type:"redirect",location:v.location};if(H.has(o))return $t({error:await C(v,{params:a,url:e,route:{id:r.id}}),url:e,params:a,route:r});let E=X(v),k;if(m!=null&&m.includes(v))E=v.status??E,k=v.error;else if(v instanceof rt)k=v.body;else{if(await T.updated.check())return await V(e);k=await C(v,{params:a,url:e,route:{id:r.id}})}const U=await Ye(p,w,i);return U?await nt({url:e,params:a,branch:w.slice(0,U.idx).concat(U.node),status:E,error:k,route:r}):await ae(e,{id:r.id},k,E)}else w.push(void 0);return await nt({url:e,params:a,branch:w,status:200,error:null,route:r,form:n?void 0:null})}async function Ye(t,n,e){for(;t--;)if(e[t]){let a=t;for(;!n[a];)a-=1;try{return{idx:a+1,node:{node:await e[t](),loader:e[t],data:{},server:null,universal:null}}}catch{continue}}}async function st({status:t,error:n,url:e,route:a}){const r={};let o=null;if(F.server_loads[0]===0)try{const l=await re(e,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(e.origin!==z||e.pathname!==location.pathname||bt)&&await V(e)}const s=await St({loader:pt,url:e,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:At(o)}),c={node:await Z(),loader:Z,universal:null,server:null,data:null};return await nt({url:e,params:r,branch:[s,c],status:t,error:n,route:null})}function Rt(t,n){if(!t||at(t,P))return;let e;try{e=F.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const a=ee(e);for(const r of ot){const o=r.exec(a);if(o)return{id:t.pathname+t.search,invalidating:n,route:r,params:de(o),url:t}}}function ee(t){return ue(t.slice(P.length)||"/")}function ne({url:t,type:n,intent:e,delta:a}){let r=!1;const o=se(y,e,t,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return K||Yt.forEach(s=>s(i)),r?null:o}async function Y({type:t,url:n,popped:e,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ut,block:u=Ut}){const h=Rt(n,!1),g=ne({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=S,_=L;l(),K=!0,tt&&T.navigating.set(g.navigation),et=c;let f=h&&await te(h);if(!f){if(at(n,P))return await V(n);f=await ae(n,{id:null},await C(new wt(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,et!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await st({status:500,error:await C(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Zt(new URL(f.location,n).href,{},s+1,c),!1;else f.props.page.status>=400&&await T.updated.check()&&await V(n);if(Be(),vt(d),Wt(_),f.props.page.url.pathname!==n.pathname&&(n.pathname=f.props.page.url.pathname),i=e?e.state:i,!e){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[qt]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||He(S,L)}if(R=null,f.props.page.state=i,tt){y=f.state,f.props.page&&(f.props.page.url=n);const w=(await Promise.all(Me.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){$=$.filter(v=>!w.includes(v))};w.push(p),$.push(...w)}kt.$set(f.props),Jt=!0}else Qt(f,gt,!1);const{activeElement:m}=document;await ce();const b=e?e.scroll:r?yt():null;if(Nt){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&Qe(),Nt=!0,f.props.page&&(I=f.props.page),K=!1,t==="popstate"&&Xt(L),g.fulfil(void 0),$.forEach(w=>w(g.navigation)),T.navigating.set(null)}async function ae(t,n,e,a){return t.origin===z&&t.pathname===location.pathname&&!bt?await st({status:a,error:e,url:t,route:n}):await V(t)}function Je(){let t;x.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}x.addEventListener("mousedown",n),x.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(dt(i.target.href),e.unobserve(i.target))},{threshold:0});function a(o,i){const s=Mt(o,x);if(!s)return;const{url:c,external:l,download:u}=ht(s,P);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Rt(c,!1);g&&Ke(g)}else i<=h.preload_code&&dt(c.pathname)}function r(){e.disconnect();for(const o of x.querySelectorAll("a")){const{url:i,external:s,download:c}=ht(o,P);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&e.observe(o),l.preload_code===J.eager&&dt(i.pathname))}}$.push(r),r()}function C(t,n){if(t instanceof rt)return t.body;const e=X(t),a=Ge(t);return F.hooks.handleError({error:t,event:n,status:e,message:a})??{message:a}}function We(t,n={}){return t=Gt(t),t.origin!==z?Promise.reject(new Error("goto: invalid URL")):Zt(t,n,0)}function Xe(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let a=!1;if(Ot(),!K){const r=se(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Yt.forEach(i=>i(o))}a?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ot()}),(n=navigator.connection)!=null&&n.saveData||Je(),x.addEventListener("click",async e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const a=Mt(e.composedPath()[0],x);if(!a)return;const{url:r,external:o,target:i,download:s}=ht(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){ne({url:r,type:"link"})?K=!0:e.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ft(location)){const[,d]=y.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(q=!0,vt(S),t(r),!c.replace_state)return;q=!1}e.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),x.addEventListener("submit",e=>{if(e.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(e.target),r=e.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(at(i,P))return;const s=e.target,c=W(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const l=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&l.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var a;if((a=e.state)!=null&&a[D]){const r=e.state[D];if(et={},r===S)return;const o=N[r],i=e.state[qt]??{},s=new URL(e.state[Pe]??location.href),c=e.state[M],l=ft(location)===ft(y.url);if(c===L&&(Jt||l)){t(s),N[S]=yt(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},kt.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:et})}else if(!q){const r=new URL(location.href);t(r)}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&T.navigating.set(null)});function t(e){y.url=e,T.page.set({...I,url:e}),T.page.notify()}}async function Ze(t,{status:n=200,error:e,node_ids:a,params:r,route:o,data:i,form:s}){bt=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Rt(c,!1)||{});let l;try{const u=a.map(async(d,_)=>{const f=i[_];return f!=null&&f.uses&&(f.uses=oe(f.uses)),St({loader:F.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:At(f)})}),h=await Promise.all(u),g=ot.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_<d.length;_++)d[_]||h.splice(_,0,void 0)}l=await nt({url:c,params:r,branch:h,status:n,error:e,form:s,route:g??null})}catch(u){if(u instanceof Kt){await V(new URL(u.location,location.href));return}l=await st({status:X(u),error:await C(u,{url:c,params:r,route:o}),url:c,route:o})}l.props.page&&(l.props.page.state={}),Qt(l,t,!0)}async function re(t,n){var r;const e=new URL(t);e.pathname=_e(t.pathname),t.pathname.endsWith("/")&&e.searchParams.append(qe,"1"),e.searchParams.append(Fe,n.map(o=>o?"1":"0").join(""));const a=await Dt(e.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new rt(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function l(g){return De(g,{Promise:d=>new Promise((_,f)=>{i.set(d,{fulfil:_,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?`
|
|
1
|
+
import{n as lt,s as ie,x as ce}from"./scheduler.2BOoCPD3.js";import{a as le,b as P}from"./paths.BxEKBCXC.js";new URL("sveltekit-internal://");function fe(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ue(t){return t.split("%25").map(decodeURI).join("%25")}function de(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ft({href:t}){return t.split("#")[0]}const he=["href","pathname","search","toString","toJSON"];function pe(t,n,e){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of he)Object.defineProperty(a,r,{get(){return n(),t[r]},enumerable:!0,configurable:!0});return a}const ge="/__data.json",me=".html__data.json";function _e(t){return t.endsWith(".html")?t.replace(/\.html$/,me):t.replace(/\/$/,"")+ge}function ye(...t){let n=5381;for(const e of t)if(typeof e=="string"){let a=e.length;for(;a;)n=n*33^e.charCodeAt(--a)}else if(ArrayBuffer.isView(e)){const a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function we(t){const n=atob(t),e=new Uint8Array(n.length);for(let a=0;a<n.length;a++)e[a]=n.charCodeAt(a);return e.buffer}const Dt=window.fetch;window.fetch=(t,n)=>((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&G.delete(mt(t)),Dt(t,n));const G=new Map;function ve(t,n){const e=mt(t,n),a=document.querySelector(e);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&G.set(e,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=we(r)),Promise.resolve(new Response(r,o))}return window.fetch(t,n)}function be(t,n,e){if(G.size>0){const a=mt(t,e),r=G.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(e==null?void 0:e.cache))return new Response(r.body,r.init);G.delete(a)}}return window.fetch(n,e)}function mt(t,n){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(n!=null&&n.headers||n!=null&&n.body){const r=[];n.headers&&r.push([...new Headers(n.headers)].join(",")),n.body&&(typeof n.body=="string"||ArrayBuffer.isView(n.body))&&r.push(n.body),a+=`[data-hash="${ye(...r)}"]`}return a}const Ee=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ke(t){const n=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Ae(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ut(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ut(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=Ee.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return ut(c)}).join("")}).join("")}/?$`),params:n}}function Se(t){return!/^\([^)]+\)$/.test(t)}function Ae(t){return t.slice(1).split("/").filter(Se)}function Re(t,n,e){const a={},r=t.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<n.length;s+=1){const c=n[s];let l=r[s-i];if(c.chained&&c.rest&&i&&(l=r.slice(s-i,s+1).filter(u=>u).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||e[c.matcher](l)){a[c.name]=l;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ut(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ie({nodes:t,server_loads:n,dictionary:e,matchers:a}){const r=new Set(n);return Object.entries(e).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=ke(s),d={id:s,exec:_=>{const f=h.exec(_);if(f)return Re(f,g,a)},errors:[1,...u||[]].map(_=>t[_]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[r.has(s),t[s]]}}function Ct(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function Pt(t,n,e=JSON.stringify){const a=e(n);try{sessionStorage[t]=a}catch{}}const O=[];function _t(t,n=lt){let e;const a=new Set;function r(s){if(ie(t,s)&&(t=s,e)){const c=!O.length;for(const l of a)l[1](),O.push(l,t);if(c){for(let l=0;l<O.length;l+=2)O[l][0](O[l+1]);O.length=0}}}function o(s){r(s(t))}function i(s,c=lt){const l=[s,c];return a.add(l),a.size===1&&(e=n(r,o)||lt),s(t),()=>{a.delete(l),a.size===0&&e&&(e(),e=null)}}return{set:r,update:o,subscribe:i}}const Le="1717437478962",Vt="sveltekit:snapshot",Ft="sveltekit:scroll",qt="sveltekit:states",Pe="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},z=location.origin;function Gt(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function yt(){return{x:pageXOffset,y:pageYOffset}}function j(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const xt={...J,"":J.hover};function Ht(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Mt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Ht(t)}}function ht(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!e||!!a||at(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===z&&t.hasAttribute("download");return{url:e,external:r,target:a,download:o}}function W(t){let n=null,e=null,a=null,r=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=j(s,"preload-code")),r===null&&(r=j(s,"preload-data")),n===null&&(n=j(s,"keepfocus")),e===null&&(e=j(s,"noscroll")),o===null&&(o=j(s,"reload")),i===null&&(i=j(s,"replacestate")),s=Ht(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:xt[a??"off"],preload_data:xt[r??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Tt(t){const n=_t(t);let e=!0;function a(){e=!0,n.update(i=>i)}function r(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function xe(){const{set:t,subscribe:n}=_t(!1);let e;async function a(){clearTimeout(e);try{const r=await fetch(`${le}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==Le;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:a}}function at(t,n){return t.origin!==z||!t.pathname.startsWith(n)}const Te=-1,Ue=-2,Ne=-3,Oe=-4,je=-5,$e=-6;function De(t,n){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,a=Array(e.length);function r(o,i=!1){if(o===Te)return;if(o===Ne)return NaN;if(o===Oe)return 1/0;if(o===je)return-1/0;if(o===$e)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=e[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=n==null?void 0:n[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;d<s.length;d+=1)u.add(r(s[d]));break;case"Map":const h=new Map;a[o]=h;for(let d=1;d<s.length;d+=2)h.set(r(s[d]),r(s[d+1]));break;case"RegExp":a[o]=new RegExp(s[1],s[2]);break;case"Object":a[o]=Object(s[1]);break;case"BigInt":a[o]=BigInt(s[1]);break;case"null":const g=Object.create(null);a[o]=g;for(let d=1;d<s.length;d+=2)g[s[d]]=r(s[d+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);a[o]=c;for(let l=0;l<s.length;l+=1){const u=s[l];u!==Ue&&(c[l]=r(u))}}else{const c={};a[o]=c;for(const l in s){const u=s[l];c[l]=r(u)}}return a[o]}return r(0)}const Bt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Bt];const Ce=new Set([...Bt]);[...Ce];function Ve(t){return t.filter(n=>n!=null)}class rt{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Kt{constructor(n,e){this.status=n,this.location=e}}class wt extends Error{constructor(n,e,a){super(a),this.status=n,this.text=e}}const Fe="x-sveltekit-invalidated",qe="x-sveltekit-trailing-slash";function X(t){return t instanceof rt||t instanceof wt?t.status:500}function Ge(t){return t instanceof wt?t.text:"Internal Error"}const N=Ct(Ft)??{},B=Ct(Vt)??{},T={url:Tt({}),page:Tt({}),navigating:_t(null),updated:xe()};function vt(t){N[t]=yt()}function He(t,n){let e=t+1;for(;N[e];)delete N[e],e+=1;for(e=n+1;B[e];)delete B[e],e+=1}function V(t){return location.href=t.href,new Promise(()=>{})}function Ut(){}let ot,pt,Z,x,gt,F;const zt=[],Q=[];let R=null;const Yt=[],Me=[];let $=[],y={branch:[],error:null,url:null},bt=!1,tt=!1,Nt=!0,K=!1,q=!1,Jt=!1,Et=!1,kt,S,L,I,et;const H=new Set;async function nn(t,n,e){var r,o;document.URL!==location.href&&(location.href=location.href),F=t,ot=Ie(t),x=document.documentElement,gt=n,pt=t.nodes[0],Z=t.nodes[1],pt(),Z(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),e?await Ze(gt,e):We(location.href,{replaceState:!0}),Xe()}function Be(){zt.length=0,Et=!1}function Wt(t){Q.some(n=>n==null?void 0:n.snapshot)&&(B[t]=Q.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Xt(t){var n;(n=B[t])==null||n.forEach((e,a)=>{var r,o;(o=(r=Q[a])==null?void 0:r.snapshot)==null||o.restore(e)})}function Ot(){vt(S),Pt(Ft,N),Wt(L),Pt(Vt,B)}async function Zt(t,n,e,a){return Y({type:"goto",url:Gt(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:a,accept:()=>{n.invalidateAll&&(Et=!0)}})}async function Ke(t){if(t.id!==(R==null?void 0:R.id)){const n={};H.add(n),R={id:t.id,token:n,promise:te({...t,preload:n}).then(e=>(H.delete(n),e.type==="loaded"&&e.state.error&&(R=null),e))}}return R.promise}async function dt(t){const n=ot.find(e=>e.exec(ee(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Qt(t,n,e){var o;y=t.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=t.props.page,kt=new F.root({target:n,props:{...t.props,stores:T,components:Q},hydrate:e}),Xt(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};$.forEach(i=>i(r)),tt=!0}async function nt({url:t,params:n,branch:e,status:a,error:r,route:o,form:i}){let s="never";if(P&&(t.pathname===P||t.pathname===P+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=fe(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:r,route:o},props:{constructors:Ve(e).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let l={},u=!I,h=0;for(let d=0;d<Math.max(e.length,y.branch.length);d+=1){const _=e[d],f=y.branch[d];(_==null?void 0:_.data)!==(f==null?void 0:f.data)&&(u=!0),_&&(l={...l,..._.data},u&&(c.props[`data_${h}`]=l),h+=1)}return(!y.url||t.href!==y.url.href||y.error!==r||i!==void 0&&i!==I.form||u)&&(c.props.page={error:r,params:n,route:{id:(o==null?void 0:o.id)??null},state:{},status:a,url:new URL(t),form:i??null,data:u?l:I.data}),c}async function St({loader:t,parent:n,url:e,params:a,route:r,server_data_node:o}){var u,h,g;let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await t();if((u=l.universal)!=null&&u.load){let d=function(...f){for(const m of f){const{href:b}=new URL(m,e);c.dependencies.add(b)}};const _={route:new Proxy(r,{get:(f,m)=>(s&&(c.route=!0),f[m])}),params:new Proxy(a,{get:(f,m)=>(s&&c.params.add(m),f[m])}),data:(o==null?void 0:o.data)??null,url:pe(e,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,m){let b;f instanceof Request?(b=f.url,m={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...m}):b=f;const A=new URL(b,e);return s&&d(A.href),A.origin===e.origin&&(b=A.href.slice(e.origin.length)),tt?be(b,A.href,m):ve(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,_)??null}return{node:l,loader:t,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function jt(t,n,e,a,r,o){if(Et)return!0;if(!r)return!1;if(r.parent&&t||r.route&&n||r.url&&e)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(zt.some(s=>s(new URL(i))))return!0;return!1}function At(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function ze(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const a of e){const r=t.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&e.delete(a)}return e}function $t({error:t,url:n,route:e,params:a}){return{type:"loaded",state:{error:t,url:n,route:e,params:a,branch:[]},props:{page:I,constructors:[]}}}async function te({id:t,invalidating:n,url:e,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===t)return H.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,l=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),l.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?t!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=ze(y.url,e);let _=!1;const f=l.map((p,v)=>{var U;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||jt(_,g,h,d,(U=E.server)==null?void 0:U.uses,a));return k&&(_=!0),k});if(f.some(Boolean)){try{u=await re(e,f)}catch(p){const v=await C(p,{url:e,params:a,route:{id:t}});return H.has(o)?$t({error:v,url:e,params:a,route:r}):st({status:X(p),error:v,url:e,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=l.map(async(p,v)=>{var it;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!jt(b,g,h,d,(it=E.universal)==null?void 0:it.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return St({loader:p[1],url:e,params:a,route:r,parent:async()=>{var Lt;const It={};for(let ct=0;ct<v;ct+=1)Object.assign(It,(Lt=await A[ct])==null?void 0:Lt.data);return It},server_data_node:At(k===void 0&&p[0]?{type:"skip"}:k??null,p[0]?E==null?void 0:E.server:void 0)})});for(const p of A)p.catch(()=>{});const w=[];for(let p=0;p<l.length;p+=1)if(l[p])try{w.push(await A[p])}catch(v){if(v instanceof Kt)return{type:"redirect",location:v.location};if(H.has(o))return $t({error:await C(v,{params:a,url:e,route:{id:r.id}}),url:e,params:a,route:r});let E=X(v),k;if(m!=null&&m.includes(v))E=v.status??E,k=v.error;else if(v instanceof rt)k=v.body;else{if(await T.updated.check())return await V(e);k=await C(v,{params:a,url:e,route:{id:r.id}})}const U=await Ye(p,w,i);return U?await nt({url:e,params:a,branch:w.slice(0,U.idx).concat(U.node),status:E,error:k,route:r}):await ae(e,{id:r.id},k,E)}else w.push(void 0);return await nt({url:e,params:a,branch:w,status:200,error:null,route:r,form:n?void 0:null})}async function Ye(t,n,e){for(;t--;)if(e[t]){let a=t;for(;!n[a];)a-=1;try{return{idx:a+1,node:{node:await e[t](),loader:e[t],data:{},server:null,universal:null}}}catch{continue}}}async function st({status:t,error:n,url:e,route:a}){const r={};let o=null;if(F.server_loads[0]===0)try{const l=await re(e,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(e.origin!==z||e.pathname!==location.pathname||bt)&&await V(e)}const s=await St({loader:pt,url:e,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:At(o)}),c={node:await Z(),loader:Z,universal:null,server:null,data:null};return await nt({url:e,params:r,branch:[s,c],status:t,error:n,route:null})}function Rt(t,n){if(!t||at(t,P))return;let e;try{e=F.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const a=ee(e);for(const r of ot){const o=r.exec(a);if(o)return{id:t.pathname+t.search,invalidating:n,route:r,params:de(o),url:t}}}function ee(t){return ue(t.slice(P.length)||"/")}function ne({url:t,type:n,intent:e,delta:a}){let r=!1;const o=se(y,e,t,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return K||Yt.forEach(s=>s(i)),r?null:o}async function Y({type:t,url:n,popped:e,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ut,block:u=Ut}){const h=Rt(n,!1),g=ne({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=S,_=L;l(),K=!0,tt&&T.navigating.set(g.navigation),et=c;let f=h&&await te(h);if(!f){if(at(n,P))return await V(n);f=await ae(n,{id:null},await C(new wt(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,et!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await st({status:500,error:await C(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Zt(new URL(f.location,n).href,{},s+1,c),!1;else f.props.page.status>=400&&await T.updated.check()&&await V(n);if(Be(),vt(d),Wt(_),f.props.page.url.pathname!==n.pathname&&(n.pathname=f.props.page.url.pathname),i=e?e.state:i,!e){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[qt]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||He(S,L)}if(R=null,f.props.page.state=i,tt){y=f.state,f.props.page&&(f.props.page.url=n);const w=(await Promise.all(Me.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){$=$.filter(v=>!w.includes(v))};w.push(p),$.push(...w)}kt.$set(f.props),Jt=!0}else Qt(f,gt,!1);const{activeElement:m}=document;await ce();const b=e?e.scroll:r?yt():null;if(Nt){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&Qe(),Nt=!0,f.props.page&&(I=f.props.page),K=!1,t==="popstate"&&Xt(L),g.fulfil(void 0),$.forEach(w=>w(g.navigation)),T.navigating.set(null)}async function ae(t,n,e,a){return t.origin===z&&t.pathname===location.pathname&&!bt?await st({status:a,error:e,url:t,route:n}):await V(t)}function Je(){let t;x.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}x.addEventListener("mousedown",n),x.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(dt(i.target.href),e.unobserve(i.target))},{threshold:0});function a(o,i){const s=Mt(o,x);if(!s)return;const{url:c,external:l,download:u}=ht(s,P);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Rt(c,!1);g&&Ke(g)}else i<=h.preload_code&&dt(c.pathname)}function r(){e.disconnect();for(const o of x.querySelectorAll("a")){const{url:i,external:s,download:c}=ht(o,P);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&e.observe(o),l.preload_code===J.eager&&dt(i.pathname))}}$.push(r),r()}function C(t,n){if(t instanceof rt)return t.body;const e=X(t),a=Ge(t);return F.hooks.handleError({error:t,event:n,status:e,message:a})??{message:a}}function We(t,n={}){return t=Gt(t),t.origin!==z?Promise.reject(new Error("goto: invalid URL")):Zt(t,n,0)}function Xe(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let a=!1;if(Ot(),!K){const r=se(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Yt.forEach(i=>i(o))}a?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ot()}),(n=navigator.connection)!=null&&n.saveData||Je(),x.addEventListener("click",async e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const a=Mt(e.composedPath()[0],x);if(!a)return;const{url:r,external:o,target:i,download:s}=ht(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){ne({url:r,type:"link"})?K=!0:e.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ft(location)){const[,d]=y.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(q=!0,vt(S),t(r),!c.replace_state)return;q=!1}e.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),x.addEventListener("submit",e=>{if(e.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(e.target),r=e.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(at(i,P))return;const s=e.target,c=W(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const l=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&l.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var a;if((a=e.state)!=null&&a[D]){const r=e.state[D];if(et={},r===S)return;const o=N[r],i=e.state[qt]??{},s=new URL(e.state[Pe]??location.href),c=e.state[M],l=ft(location)===ft(y.url);if(c===L&&(Jt||l)){t(s),N[S]=yt(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},kt.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:et})}else if(!q){const r=new URL(location.href);t(r)}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&T.navigating.set(null)});function t(e){y.url=e,T.page.set({...I,url:e}),T.page.notify()}}async function Ze(t,{status:n=200,error:e,node_ids:a,params:r,route:o,data:i,form:s}){bt=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Rt(c,!1)||{});let l;try{const u=a.map(async(d,_)=>{const f=i[_];return f!=null&&f.uses&&(f.uses=oe(f.uses)),St({loader:F.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:At(f)})}),h=await Promise.all(u),g=ot.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_<d.length;_++)d[_]||h.splice(_,0,void 0)}l=await nt({url:c,params:r,branch:h,status:n,error:e,form:s,route:g??null})}catch(u){if(u instanceof Kt){await V(new URL(u.location,location.href));return}l=await st({status:X(u),error:await C(u,{url:c,params:r,route:o}),url:c,route:o})}l.props.page&&(l.props.page.state={}),Qt(l,t,!0)}async function re(t,n){var r;const e=new URL(t);e.pathname=_e(t.pathname),t.pathname.endsWith("/")&&e.searchParams.append(qe,"1"),e.searchParams.append(Fe,n.map(o=>o?"1":"0").join(""));const a=await Dt(e.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new rt(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function l(g){return De(g,{Promise:d=>new Promise((_,f)=>{i.set(d,{fulfil:_,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?`
|
|
2
2
|
`:c.decode(d,{stream:!0});;){const _=u.indexOf(`
|
|
3
3
|
`);if(_===-1)break;const f=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=oe(m.uses),m.data=l(m.data))}),o(f);else if(f.type==="chunk"){const{id:m,data:b,error:A}=f,w=i.get(m);i.delete(m),A?w.reject(l(A)):w.fulfil(l(b))}}}})}function oe(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}function Qe(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=document.body,e=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),e!==null?n.setAttribute("tabindex",e):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o<a.rangeCount;o+=1)r.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===r.length){for(let o=0;o<a.rangeCount;o+=1){const i=r[o],s=a.getRangeAt(o);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}a.removeAllRanges()}})}}}function se(t,n,e,a){var c,l;let r,o;const i=new Promise((u,h)=>{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:e&&{params:(n==null?void 0:n.params)??null,route:{id:((l=n==null?void 0:n.route)==null?void 0:l.id)??null},url:e},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{rt as H,nn as a,We as g,T as s,_t as w};
|
|
@@ -171,7 +171,7 @@ print(f"outFileName: {outFileName}")
|
|
|
171
171
|
|
|
172
172
|
`}getOneFigure(e,n){let t="";const r=[];for(const[s,i]of e.entries()){const o=`face_${n}_Fa${s}`,u=[];for(const[a,l]of i.entries()){const c=`ctr_${o}_Ctr${a}`;if(l.circle===!0){const h=l;t+=o0(h.cx,h.cy,h.radius,c)}else t+=a0(l.seg,c);u.push(c)}t+=u0(u,o),r.push(o)}return t+=c0(r,n),t}getAllFigures(e,n){let t="";for(const r in e){const s=this.getOneFigure(e[r],`${n}_${r}`);t+=s}return t}getOneExtrude(e){let n=`def fex_${e.outName}():
|
|
173
173
|
FIG = ${e.face}()
|
|
174
|
-
`;return e.extrudeMethod===0?(e.length===void 0&&console.log(`err103: ${e.face} ${e.outName} design error: eLinearOrtho length undefined!`),n+=` VEX = FIG.extrude(App.Vector(0, 0, ${e.length}))`):e.extrudeMethod===1&&(n+=" VEX = FIG.
|
|
174
|
+
`;return e.extrudeMethod===0?(e.length===void 0&&console.log(`err103: ${e.face} ${e.outName} design error: eLinearOrtho length undefined!`),n+=` VEX = FIG.extrude(App.Vector(0, 0, ${e.length}))`):e.extrudeMethod===1&&(n+=" VEX = FIG.revolve(App.Vector(0, 0, 0), App.Vector(0, 1, 0), 360).rotate(App.Vector(0, 0, 0), App.Vector(1, 0, 0), 90)"),n+=`
|
|
175
175
|
VR1 = VEX.rotate(App.Vector(0, 0, 0), App.Vector(1, 0, 0), ${Me(e.rotate[0])})
|
|
176
176
|
VR2 = VR1.rotate(App.Vector(0, 0, 0), App.Vector(0, 1, 0), ${Me(e.rotate[1])})
|
|
177
177
|
VR3 = VR2.rotate(App.Vector(0, 0, 0), App.Vector(0, 0, 1), ${Me(e.rotate[2])})
|
|
@@ -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.Ozg_X58g.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_1jxhyur)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1jxhyur)==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.Bl6R_ECE.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.C5XYloI4.js","_app/immutable/chunks/scheduler.2BOoCPD3.js","_app/immutable/chunks/index.BugmtA6_.js","_app/immutable/chunks/index.Ozg_X58g.js","_app/immutable/chunks/paths.BxEKBCXC.js","_app/immutable/assets/0.BNk8pMG6.css","_app/immutable/nodes/1.DpY7Fppr.js","_app/immutable/chunks/stores.DPmk7KSQ.js","_app/immutable/chunks/entry.Bl6R_ECE.js","_app/immutable/nodes/2.DmkKM6Kg.js","_app/immutable/chunks/makeList.DsP0HQAz.js","_app/immutable/assets/2.CTp7BhB8.css","_app/immutable/nodes/3.C5ILN9od.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.C5XYloI4.js"),__vite__mapDeps([0,1,2,3,4,5])),()=>P(()=>import("../nodes/1.DpY7Fppr.js"),__vite__mapDeps([6,1,2,7,8,4])),()=>P(()=>import("../nodes/2.DmkKM6Kg.js"),__vite__mapDeps([9,1,3,2,10,4,11])),()=>P(()=>import("../nodes/3.C5ILN9od.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.Bl6R_ECE.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.Ozg_X58g.js";import{b as ne}from"../chunks/paths.BxEKBCXC.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.41",geometrix:"^0.5.40",geomui:"^0.5.42"},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.DPmk7KSQ.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.Ozg_X58g.js";import{S,i as $}from"../chunks/index.BugmtA6_.js";import{d as q}from"../chunks/makeList.DsP0HQAz.js";import{b as A}from"../chunks/paths.BxEKBCXC.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.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}'
|
|
1
|
+
import{a as Pt,b as wl}from"../chunks/makeList.DsP0HQAz.js";import{H as Cl,w as ul,g as Ol}from"../chunks/entry.Bl6R_ECE.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.Ozg_X58g.js";import{b as vt}from"../chunks/paths.BxEKBCXC.js";import{p as ql}from"../chunks/stores.DPmk7KSQ.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":"1717437478962"}
|