designix-uis 0.5.16 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/designix-uis.js +5 -5
  2. package/dist/public/_app/immutable/chunks/{entry.D4XMTNnT.js → entry.DbZ64lxC.js} +1 -1
  3. package/dist/public/_app/immutable/chunks/{index.BLMsg5xO.js → index.25h7ziiG.js} +1 -1
  4. package/dist/public/_app/immutable/chunks/{makeList.CReOpeHP.js → makeList.Zd15bGSd.js} +1 -1
  5. package/dist/public/_app/immutable/chunks/paths.C4SMaBnQ.js +1 -0
  6. package/dist/public/_app/immutable/chunks/{stores.D1ybwCxw.js → stores.8Mp7Yi8p.js} +1 -1
  7. package/dist/public/_app/immutable/entry/{app.CtyJC6_D.js → app.BTmLyfq6.js} +2 -7
  8. package/dist/public/_app/immutable/entry/start.CQxwxLM8.js +1 -0
  9. package/dist/public/_app/immutable/nodes/{0.DIJ9OnKa.js → 0.ropgFOjk.js} +1 -1
  10. package/dist/public/_app/immutable/nodes/{1.C3oMusYD.js → 1.CJcHnz_W.js} +1 -1
  11. package/dist/public/_app/immutable/nodes/{2.CF8QRxsC.js → 2.DsVPKLGV.js} +1 -1
  12. package/dist/public/_app/immutable/nodes/3.D8rSmrcJ.js +18 -0
  13. package/dist/public/_app/version.json +1 -1
  14. package/dist/public/gear/gear_wheel_wheel.html +14 -14
  15. package/dist/public/gear/simplified_gear_wheel.html +14 -14
  16. package/dist/public/heliostat/base.html +14 -14
  17. package/dist/public/heliostat/haxis_guidance.html +14 -14
  18. package/dist/public/heliostat/heliostat.html +14 -14
  19. package/dist/public/heliostat/heliostat_2.html +14 -14
  20. package/dist/public/heliostat/pole_static.html +14 -14
  21. package/dist/public/heliostat/rake.html +14 -14
  22. package/dist/public/heliostat/rake_stopper.html +14 -14
  23. package/dist/public/heliostat/ring.html +14 -14
  24. package/dist/public/heliostat/ring_guidance.html +14 -14
  25. package/dist/public/heliostat/rod.html +14 -14
  26. package/dist/public/heliostat/spider.html +14 -14
  27. package/dist/public/heliostat/surface.html +14 -14
  28. package/dist/public/heliostat/swing.html +14 -14
  29. package/dist/public/heliostat/trapeze.html +14 -14
  30. package/dist/public/heliostat/vaxis.html +14 -14
  31. package/dist/public/heliostat/vaxis_guidance.html +14 -14
  32. package/dist/public/heliostat/vaxis_holder.html +14 -14
  33. package/dist/public/index.html +12 -12
  34. package/package.json +5 -5
  35. package/dist/public/_app/immutable/chunks/paths.DkM5CCyu.js +0 -1
  36. package/dist/public/_app/immutable/entry/start.BZY_cJkR.js +0 -1
  37. package/dist/public/_app/immutable/nodes/3.BYUnCih2.js +0 -18
@@ -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.16",
15
+ version: "0.5.17",
16
16
  description: "mini-server for static content of designix-ui",
17
17
  type: "module",
18
18
  private: false,
@@ -91,16 +91,16 @@ var package_default = {
91
91
  devDependencies: {
92
92
  "@types/express": "^4.17.21",
93
93
  "@types/fs-extra": "^11.0.4",
94
- "@types/node": "^20.12.5",
94
+ "@types/node": "^20.12.7",
95
95
  "@types/yargs": "^17.0.32",
96
96
  eslint: "^8.57.0",
97
97
  "npm-run-all": "^4.1.5",
98
98
  prettier: "^3.2.5",
99
99
  shx: "^0.3.4",
100
100
  tsup: "^8.0.2",
101
- typescript: "^5.4.4",
102
- "typescript-eslint": "^7.5.0",
103
- vitest: "^1.4.0"
101
+ typescript: "^5.4.5",
102
+ "typescript-eslint": "^7.7.0",
103
+ vitest: "^1.5.0"
104
104
  },
105
105
  prettier: {
106
106
  useTabs: true,
@@ -1,3 +1,3 @@
1
- import{n as lt,s as ie,x as ce}from"./scheduler.pWaib8rK.js";import{a as le,b as P}from"./paths.DkM5CCyu.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="1712522260966",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 Ut(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 Ue=-1,Te=-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===Ue)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!==Te&&(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)??{},U={url:Ut({}),page:Ut({}),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 Tt(){}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:U,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 T;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||jt(_,g,h,d,(T=E.server)==null?void 0:T.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 U.updated.check())return await V(e);k=await C(v,{params:a,url:e,route:{id:r.id}})}const T=await Ye(p,w,i);return T?await nt({url:e,params:a,branch:w.slice(0,T.idx).concat(T.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=Tt,block:u=Tt}){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&&U.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 U.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)),U.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",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(),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&&U.navigating.set(null)});function t(e){y.url=e,U.page.set({...I,url:e}),U.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.pWaib8rK.js";import{a as le,b as P}from"./paths.C4SMaBnQ.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="1713299757091",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 Ut(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 Ue=-1,Te=-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===Ue)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!==Te&&(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)??{},U={url:Ut({}),page:Ut({}),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 Tt(){}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:U,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 T;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||jt(_,g,h,d,(T=E.server)==null?void 0:T.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 U.updated.check())return await V(e);k=await C(v,{params:a,url:e,route:{id:r.id}})}const T=await Ye(p,w,i);return T?await nt({url:e,params:a,branch:w.slice(0,T.idx).concat(T.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=Tt,block:u=Tt}){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&&U.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 U.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)),U.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",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(),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&&U.navigating.set(null)});function t(e){y.url=e,U.page.set({...I,url:e}),U.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,U as s,_t as w};
@@ -111,4 +111,4 @@ const ${e.outName} =
111
111
  module.exports = { main };
112
112
  `}getExportFile(e){let n=this.getHeader();return n+=this.getAllFigures(e.faces,e.partName),n+=this.getVolume(e.volume),n+=this.getFooter(e.partName),n}};function ul(){return new dl}var pl=class{constructor(){I(this,"xMin");I(this,"xMax");I(this,"yMin");I(this,"yMax");I(this,"firstDone");this.firstDone=!1,this.xMin=0,this.xMax=0,this.yMin=0,this.yMax=0}addAContour(e){if(e.length>0){const n=[];this.firstDone&&(n.push(V(this.xMin,this.yMin)),n.push(V(this.xMax,this.yMax)));for(const o of e)n.push(...o.generatePoints());const[t,s,r,i]=wi(n);this.xMin=t,this.xMax=s,this.yMin=r,this.yMax=i}}getViewBox(){const e=Math.round((this.xMax-this.xMin)*1.1)+10,n=Math.round((this.yMax-this.yMin)*1.1)+10,t=Math.round(this.xMin-e*.05),s=Math.round(this.yMin-n*.05);return[t,e,s,n]}},hl=class{constructor(){I(this,"minMax");I(this,"groups");I(this,"svg");this.minMax=new pl,this.groups=[],this.svg=Rc()}addAContour(e,n="",t=ie.contour){this.minMax.addAContour(e);const s={gpName:n,gpColor:t,ctrs:e};this.groups.push(s)}makeSvg(e){for(const n of this.groups){n.gpName!==""&&this.svg.addGroup(n.gpName);for(const t of n.ctrs){let s=t.imposedColor;s===""&&(s=n.gpColor),this.svg.addSvgString(t.toSvg(e,s))}n.gpName!==""&&this.svg.closeGroup()}}stringify(){const[e,n,t,s]=this.minMax.getViewBox();return this.svg.addHeader(e,n,t,s),this.makeSvg(this.minMax.yMax+this.minMax.yMin),this.svg.stringify()}};function Ci(){return new hl}function gn(e){const n=Ci();return n.addAContour(e),n.stringify()}function an(e){const n=Ci();return n.addAContour(e.mainList,"main",ie.main),n.addAContour(e.mainBList,"mainB",ie.mainB),n.addAContour(e.secondList,"second",ie.second),n.addAContour(e.secondBList,"secondB",ie.secondB),n.addAContour(e.dynamicsList,"dynamics",ie.dynamics),n.stringify()}function wn(e){const n=Uc();for(const s of e)if(s.circle){const r=s.toDxfSeg()[0];n.addCircle(r.p1x,r.p1y,r.radius)}else for(const r of s.toDxfSeg())r.arc?n.addArc(r.p1x,r.p1y,r.radius,r.a1,r.a2):n.addLine(r.p1x,r.p1y,r.p2x,r.p2y);return n.stringify()}function Li(e,n,t){return Gt().getPaxStr(e,n,t)}function Ii(e){const n=Gt().getPaxJson({},e,En);return ol().getExportFile(n)}function Di(e){const n=Gt().getPaxJson({},e,En);return ul().getExportFile(n)}async function ml(e,n,t,s,r){const i=new qa("application/zip"),o=new ac(i),c=n.partName,a=new ye(JSON.stringify(e,null,2));await o.add(`param_${c}.json`,a);const f=new ye(n.logstr);await o.add(`geom_${c}_log.txt`,f);const l=new ye(s.logstr);await o.add(`geom_${c}_t${t}_log.txt`,l);for(const A in n.fig){const v=new ye(gn(n.fig[A].mainList));await o.add(`face_${c}_${A}.svg`,v);const y=new ye(wn(n.fig[A].mainList));await o.add(`face_${c}_${A}.dxf`,y);const _=new ye(an(n.fig[A]));await o.add(`deco_${c}_${A}.svg`,_);const S=new ye(an(s.fig[A]));await o.add(`deco_${c}_${A}_t${t}.svg`,S)}const p=is(n.fig),m=new ye(gn(p.mainList));await o.add(`face_${c}_all_merged.svg`,m);const x=new ye(wn(p.mainList));await o.add(`face_${c}_all_merged.dxf`,x);const b=new ye(an(p));await o.add(`deco_${c}_all_merged.svg`,b);const d=new ye(an(p));await o.add(`deco_${c}_all_merged_t${t}.svg`,d);const u=new ye(Li(e,n,r));await o.add(`${c}.pax.json`,u);const h=new ye(Ii(n));await o.add(`${c}_noarc_openscad.scad`,h);const g=new ye(Di(n));return await o.add(`${c}_noarc_jscad.js`,g),await o.close(),await i.getData()}var xl=(e=>(e[e.eSVG=0]="eSVG",e[e.eSVGALL=1]="eSVGALL",e[e.eDXF=2]="eDXF",e[e.eDXFALL=3]="eDXFALL",e[e.ePAX=4]="ePAX",e[e.eOPENSCAD=5]="eOPENSCAD",e[e.eJSCAD=6]="eJSCAD",e[e.eZIP=7]="eZIP",e))(xl||{});function zl(e,n,t,s,r){const i=e(0,n);let o="";if(i.calcErr)console.log("err931: error by calling geome ${geome0.calcErr}");else{const c=Object.keys(i.fig);if(r===0)if(c.includes(s)){const a=i.fig[s];o=gn(a.mainList)}else console.log(`err749: fileTextContent eFace ${s} invalid`);else if(r===1){const a=is(i.fig);o=gn(a.mainList)}else if(r===2)if(c.includes(s)){const a=i.fig[s];o=wn(a.mainList)}else console.log(`err759: fileTextContent eFace ${s} invalid`);else if(r===3){const a=is(i.fig);o=wn(a.mainList)}else r===4?o=Li(n,i,t):r===5?o=Ii(i):r===6?o=Di(i):console.log(`err912: unknown exportFormat ${r}`)}return o}async function Jl(e,n,t,s,r){const i=e(0,t),o=e(n,t);let c=new Blob;return!i.calcErr&&!o.calcErr?r===7?c=await ml(t,i,n,o,s):console.log(`err913: unknown exportFormat ${r}`):console.log("err932: error by calling geome ${geome0.calcErr} ${geome1.calcErr}"),c}function Ql(e){let n="";return e===0||e===1?n="image/svg+xml":e===2||e===3?n="application/dxf":e===4?n="application/json":e===5||e===6?n="text/plain":e===7&&(n="application/zip"),n}function e0(e){let n="";return e===0||e===1?n=".svg":e===2||e===3?n=".dxf":e===4?n=".pax.json":e===5?n="_noarc_openscad.scad":e===6?n="_noarc_jscad.js":e===7&&(n=".zip"),n}function t0(e){let n=!1;return e===7&&(n=!0),n}function n0(e,n,t,s){return JSON.stringify({lastModif:e,partName:n,pVal:t,comment:s},null," ")}function s0(e){const n=JSON.parse(e),t="lastModif",s="partName",r="pVal",i="comment";let o="";const c={lastModif:"",partName:"",pVal:{},comment:""};if(Object.hasOwn(n,t)&&(c[t]=n[t]),Object.hasOwn(n,s)&&(c[s]=n[s]),Object.hasOwn(n,r)){const a=n[r];for(const f of Object.keys(a)){const l=a[f];if(isNaN(l))throw`err905: ${l} is not a number!`;c[r][f]=l}o+=`info398: parsing file has found ${Object.keys(c[r]).length} parameters
113
113
  `}else throw`err489: parameter-json-file has no key ${r}
114
- `;return Object.hasOwn(n,i)&&(c[i]=n[i]),[c,o]}function Ri(){return[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]}function Mt(){return[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}function gl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[1][1]=t,n[2][2]=t,n[2][1]=s,n[1][2]=-s,n}function wl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[0][0]=t,n[2][2]=t,n[0][2]=s,n[2][0]=-s,n}function yl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[0][0]=t,n[1][1]=t,n[0][1]=-s,n[1][0]=s,n}function bl(e,n){const t=Ri();for(let s=0;s<4;s++)for(let r=0;r<4;r++){let i=0;for(let o=0;o<4;o++)i+=e[s][o]*n[o][r];t[s][r]=i}return t}function os(e){let n=Mt();for(const t of e)n=bl(t,n);return n}function _l(e,n,t){return os([gl(e),wl(n),yl(t)])}function vl(e,n,t){const s=Mt();return s[0][3]=e,s[1][3]=n,s[2][3]=t,s}function Sl(e){const n=Ri();for(let t=0;t<4;t++)for(let s=0;s<4;s++)n[t][s]=e[t][s];return n}function kl(e,n){const t=[n[0],n[1],n[2],1],s=[0,0,0];for(let r=0;r<3;r++){let i=0;for(let o=0;o<4;o++)i+=e[r][o]*t[o];s[r]=i}return s}function Tl(e){return[e[0][3],e[1][3],e[2][3]]}function Al(e){let n=0,t=0,s=0;const r=e[2][0],i=10**-5;return Math.abs(r-1)<i?(s=0,t=-Math.PI/2,n=-s+Math.atan2(-e[0][1],-e[0][2])):Math.abs(r+1)<i?(s=0,t=Math.PI/2,n=s+Math.atan2(e[0][1],e[0][2])):(n=Math.atan2(e[2][1],e[2][2]),t=Math.atan2(-e[2][0],Math.sqrt(e[2][1]**2+e[2][2]**2)),s=Math.atan2(e[1][0],e[0][0])),[n,t,s]}var Pl=class{constructor(e){I(this,"mmat");this.mmat=Sl(e)}addRotation(e,n,t){const s=_l(e,n,t);this.mmat=os([this.mmat,s])}addTranslation(e,n,t){const s=vl(e,n,t);this.mmat=os([this.mmat,s])}getMatrix(){return this.mmat}getRotation(){return Al(this.mmat)}getTranslation(){return Tl(this.mmat)}transform(e){return kl(this.mmat,e)}},El=Mt();function r0(e=El){return new Pl(e)}function Ml(e,n,t,s,r=0){return xs(e,n).addCornerRounded(r).addSegStrokeR(t,0).addCornerRounded(r).addSegStrokeR(0,s).addCornerRounded(r).addSegStrokeR(-t,0).addCornerRounded(r).closeSegStroke()}function Cl(e,n,t,s,r,i=0){return Ml(e,n,t,s,i).rotate(e,n,r)}function i0(e,n,t,s,r,i=0){const o=s/2*Math.sin(r),c=-s/2*Math.cos(r);return Cl(e+o,n+c,t,s,r,i)}function o0(e,n,t,s,r,i=0){const o=(s-t)/2;return xs(e,n).addCornerRounded(i).addSegStrokeR(t,0).addCornerRounded(i).addSegStrokeR(o,r).addCornerRounded(i).addSegStrokeR(-s,0).addCornerRounded(i).closeSegStroke()}function a0(e,n,t,s,r){if(s<t)throw`err821: Hlength ${s} is too small compare to Vwidth ${t}`;const i=t/2,o=s-t;return xs(i+o,-i).addPointA(i+o,i).addSegArc(i,!1,!0).addSegStrokeA(i,i).addPointA(i,-i).addSegArc(i,!1,!0).closeSegStroke().rotate(0,0,r).translate(e,n)}function c0(e){const n=[];n.push("version details:"),n.push(`${e.name} : ${e.version}`),n.push("dependencies:");const t=Object.keys(e.dependencies);for(const[s,r]of t.entries()){const i=r;n.push(`${s+1} : ${r} : ${e.dependencies[i]}`)}return n}export{Et as A,ne as B,c0 as C,Wl as D,zc as E,is as F,Bl as G,n0 as H,s0 as I,Nl as J,Rl as K,$l as L,Ol as M,ie as N,Fl as O,Gc as P,Xc as Q,xl as R,yc as S,Jl as T,zl as U,e0 as V,t0 as W,Ql as X,Yl as a,Zl as b,Gl as c,Dl as d,Il as e,Ge as f,xs as g,Jc as h,Xl as i,Vl as j,Kl as k,Qc as l,jl as m,V as n,a0 as o,Hl as p,o0 as q,ct as r,i0 as s,r0 as t,Ml as u,Cl as v,Zc as w,z as x,ql as y,Ul as z};
114
+ `;return Object.hasOwn(n,i)&&(c[i]=n[i]),[c,o]}function Ri(){return[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]}function Mt(){return[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}function gl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[1][1]=t,n[2][2]=t,n[2][1]=s,n[1][2]=-s,n}function wl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[0][0]=t,n[2][2]=t,n[0][2]=s,n[2][0]=-s,n}function yl(e){const n=Mt(),t=Math.cos(e),s=Math.sin(e);return n[0][0]=t,n[1][1]=t,n[0][1]=-s,n[1][0]=s,n}function bl(e,n){const t=Ri();for(let s=0;s<4;s++)for(let r=0;r<4;r++){let i=0;for(let o=0;o<4;o++)i+=e[s][o]*n[o][r];t[s][r]=i}return t}function os(e){let n=Mt();for(const t of e)n=bl(t,n);return n}function _l(e,n,t){return os([gl(e),wl(n),yl(t)])}function vl(e,n,t){const s=Mt();return s[0][3]=e,s[1][3]=n,s[2][3]=t,s}function Sl(e){const n=Ri();for(let t=0;t<4;t++)for(let s=0;s<4;s++)n[t][s]=e[t][s];return n}function kl(e,n){const t=[n[0],n[1],n[2],1],s=[0,0,0];for(let r=0;r<3;r++){let i=0;for(let o=0;o<4;o++)i+=e[r][o]*t[o];s[r]=i}return s}function Tl(e){return[e[0][3],e[1][3],e[2][3]]}function Al(e){let n=0,t=0,s=0;const r=e[2][0],i=10**-5;return Math.abs(r-1)<i?(s=0,t=-Math.PI/2,n=-s+Math.atan2(-e[0][1],-e[0][2])):Math.abs(r+1)<i?(s=0,t=Math.PI/2,n=s+Math.atan2(e[0][1],e[0][2])):(n=Math.atan2(e[2][1],e[2][2]),t=Math.atan2(-e[2][0],Math.sqrt(e[2][1]**2+e[2][2]**2)),s=Math.atan2(e[1][0],e[0][0])),[n,t,s]}var Pl=class{constructor(e){I(this,"mmat");this.mmat=Sl(e)}addRotation(e,n,t){const s=_l(e,n,t);this.mmat=os([this.mmat,s])}addTranslation(e,n,t){const s=vl(e,n,t);this.mmat=os([this.mmat,s])}getMatrix(){return this.mmat}getRotation(){return Al(this.mmat)}getTranslation(){return Tl(this.mmat)}transform(e){return kl(this.mmat,e)}},El=Mt();function r0(e=El){return new Pl(e)}function Ml(e,n,t,s,r=0){return xs(e,n).addCornerRounded(r).addSegStrokeR(t,0).addCornerRounded(r).addSegStrokeR(0,s).addCornerRounded(r).addSegStrokeR(-t,0).addCornerRounded(r).closeSegStroke()}function Cl(e,n,t,s,r,i=0){return Ml(e,n,t,s,i).rotate(e,n,r)}function i0(e,n,t,s,r,i=0){const o=s/2*Math.sin(r),c=-s/2*Math.cos(r);return Cl(e+o,n+c,t,s,r,i)}function o0(e,n,t,s,r,i=0){const o=(s-t)/2;return xs(e,n).addCornerRounded(i).addSegStrokeR(t,0).addCornerRounded(i).addSegStrokeR(o,r).addCornerRounded(i).addSegStrokeR(-s,0).addCornerRounded(i).closeSegStroke()}function a0(e,n,t,s,r){if(s<t)throw`err821: Hlength ${s} is too small compare to Vwidth ${t}`;const i=t/2,o=s-t;return xs(i+o,-i).addPointA(i+o,i).addSegArc(i,!1,!0).addSegStrokeA(i,i).addPointA(i,-i).addSegArc(i,!1,!0).closeSegStroke().rotate(0,0,r).translate(e,n)}function c0(e){const n=[];n.push("version details:"),n.push(`${e.name} : ${e.version}`),n.push("dependencies:");const t=Object.keys(e.dependencies);for(const[s,r]of t.entries()){const i=r;n.push(`${s+1} : ${r} : ${e.dependencies[i]}`)}return n}export{Et as A,ne as B,c0 as C,Wl as D,zc as E,is as F,Bl as G,n0 as H,ts as I,s0 as J,Nl as K,Rl as L,$l as M,Ol as N,ie as O,Gc as P,Fl as Q,Xc as R,yc as S,xl as T,Jl as U,zl as V,e0 as W,t0 as X,Ql as Y,Yl as a,Zl as b,Gl as c,Dl as d,Il as e,Ge as f,xs as g,Jc as h,Xl as i,Vl as j,Kl as k,Qc as l,jl as m,V as n,a0 as o,Hl as p,o0 as q,ct as r,i0 as s,r0 as t,Ml as u,Cl as v,Zc as w,z as x,ql as y,Ul as z};
@@ -1,4 +1,4 @@
1
- var ve=Object.defineProperty;var $e=(s,t,u)=>t in s?ve(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var J=(s,t,u)=>($e(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as St,c as xt,i as ut,d as wt,f as S,g as U,E as p,h as nt,j as Lt,k as Ht,l as Dt,m as v,n as lt,t as mt,r as at,o as we,q as Me,s as K,u as gt,v as vt,w as B,x as ht,y as It,z as Bt,A as Ot,S as kt,B as be}from"./index.BLMsg5xO.js";var ke=class{constructor(s,t,u,o,n){J(this,"base_center_x");J(this,"base_center_y");J(this,"base_radius");J(this,"initial_angle");J(this,"right_nleft");this.base_center_x=s,this.base_center_y=t,this.base_radius=u,this.initial_angle=o,this.right_nleft=n}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const t=this.lFromU(s),u=this.w2FromU(s),o=this.base_center_x+Math.cos(u)*t,n=this.base_center_y+Math.sin(u)*t;return[o,n]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let u=Math.PI/3,o=u/2,n=this.wFromU(u),g=0;for(;Math.abs(n-s)>1e-4;)n<s?u+=o:u-=o,n=this.wFromU(u),o=o/2,g+=1;return console.log(`dbg072: uFromWslow itcnt ${g}`),u}laptc(s,t,u,o){if(Math.sign(t)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${t} not compatible with right_nleft ${this.right_nleft}`;const n=s+t,g=this.base_center_x+Math.cos(n)*this.base_radius,i=this.base_center_y+Math.sin(n)*this.base_radius,c=n-this.angleSign()*Math.PI/2,d=u*this.base_radius,a=g+Math.cos(c)*d,h=i+Math.sin(c)*d,r=this.lFromU(u)*o,l=u,_=Math.cos(l)*r,L=Math.sin(l)*r;return[a,h,_,L]}};function $t(s,t,u,o,n){return new ke(s,t,u,o,n)}var Ee=class{constructor(){J(this,"mod",1);J(this,"TN",23);J(this,"as",1);J(this,"cx",0);J(this,"cy",0);J(this,"brr",50);J(this,"blr",50);J(this,"ar",54);J(this,"pr",53);J(this,"dr",52);J(this,"br",51);J(this,"bRound",1);J(this,"adt",.5);J(this,"initAngle",0);J(this,"axisAngle",0);J(this,"involArcPairs",1);J(this,"skinThickness",0);J(this,"involuteR",$t(0,0,50,0,!0));J(this,"involuteL",$t(0,0,50,0,!1));J(this,"rud",0);J(this,"rup",0);J(this,"rua",0);J(this,"rwd",0);J(this,"rwp",0);J(this,"rwa",0);J(this,"lud",0);J(this,"lup",0);J(this,"lua",0);J(this,"lwd",0);J(this,"lwp",0);J(this,"lwa",0);J(this,"msg");J(this,"initStep",0);this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,t){if(this.initStep<s)throw`err835: checkInitStep for ${t} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,t){this.incInitStep(1),this.mod=s,this.TN=t,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,t){this.incInitStep(2),this.cx=s,this.cy=t}set3CircleRadius(s,t,u,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*t,this.br=this.dr-this.mod*u,this.bRound=o}set4BaseCircles(s,t){this.incInitStep(4),this.brr=s,this.blr=t}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,t){this.incInitStep(6),this.initAngle=s,this.axisAngle=t}set7InvoluteDetails(s,t){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=t}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[v(this.cx,this.cy,this.ar,"Azure"),v(this.cx,this.cy,this.pr,"Azure"),v(this.cx,this.cy,this.dr,"Azure"),v(this.cx,this.cy,this.br,"Azure"),v(this.cx,this.cy,this.brr,"CornFlowerBlue"),v(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=$t(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=$t(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.rud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,t=this.rwa-this.rwp,u=Math.abs(this.lwa-this.lwp),o=s-t-u;if(o<0)throw`err554: No remaining Addendum reserve ${S(o)}
1
+ var ve=Object.defineProperty;var $e=(s,t,u)=>t in s?ve(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var J=(s,t,u)=>($e(s,typeof t!="symbol"?t+"":t,u),u);import{p as e,a as W,b as St,c as xt,i as ut,d as wt,f as S,g as U,E as p,h as nt,j as Lt,k as Ht,l as Dt,m as v,n as lt,t as mt,r as at,o as we,q as Me,s as K,u as gt,v as vt,w as B,x as ht,y as It,z as Bt,A as Ot,S as kt,B as be}from"./index.25h7ziiG.js";var ke=class{constructor(s,t,u,o,n){J(this,"base_center_x");J(this,"base_center_y");J(this,"base_radius");J(this,"initial_angle");J(this,"right_nleft");this.base_center_x=s,this.base_center_y=t,this.base_radius=u,this.initial_angle=o,this.right_nleft=n}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const t=this.lFromU(s),u=this.w2FromU(s),o=this.base_center_x+Math.cos(u)*t,n=this.base_center_y+Math.sin(u)*t;return[o,n]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let u=Math.PI/3,o=u/2,n=this.wFromU(u),g=0;for(;Math.abs(n-s)>1e-4;)n<s?u+=o:u-=o,n=this.wFromU(u),o=o/2,g+=1;return console.log(`dbg072: uFromWslow itcnt ${g}`),u}laptc(s,t,u,o){if(Math.sign(t)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${t} not compatible with right_nleft ${this.right_nleft}`;const n=s+t,g=this.base_center_x+Math.cos(n)*this.base_radius,i=this.base_center_y+Math.sin(n)*this.base_radius,c=n-this.angleSign()*Math.PI/2,d=u*this.base_radius,a=g+Math.cos(c)*d,h=i+Math.sin(c)*d,r=this.lFromU(u)*o,l=u,_=Math.cos(l)*r,L=Math.sin(l)*r;return[a,h,_,L]}};function $t(s,t,u,o,n){return new ke(s,t,u,o,n)}var Ee=class{constructor(){J(this,"mod",1);J(this,"TN",23);J(this,"as",1);J(this,"cx",0);J(this,"cy",0);J(this,"brr",50);J(this,"blr",50);J(this,"ar",54);J(this,"pr",53);J(this,"dr",52);J(this,"br",51);J(this,"bRound",1);J(this,"adt",.5);J(this,"initAngle",0);J(this,"axisAngle",0);J(this,"involArcPairs",1);J(this,"skinThickness",0);J(this,"involuteR",$t(0,0,50,0,!0));J(this,"involuteL",$t(0,0,50,0,!1));J(this,"rud",0);J(this,"rup",0);J(this,"rua",0);J(this,"rwd",0);J(this,"rwp",0);J(this,"rwa",0);J(this,"lud",0);J(this,"lup",0);J(this,"lua",0);J(this,"lwd",0);J(this,"lwp",0);J(this,"lwa",0);J(this,"msg");J(this,"initStep",0);this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,t){if(this.initStep<s)throw`err835: checkInitStep for ${t} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,t){this.incInitStep(1),this.mod=s,this.TN=t,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,t){this.incInitStep(2),this.cx=s,this.cy=t}set3CircleRadius(s,t,u,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*t,this.br=this.dr-this.mod*u,this.bRound=o}set4BaseCircles(s,t){this.incInitStep(4),this.brr=s,this.blr=t}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,t){this.incInitStep(6),this.initAngle=s,this.axisAngle=t}set7InvoluteDetails(s,t){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=t}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[v(this.cx,this.cy,this.ar,"Azure"),v(this.cx,this.cy,this.pr,"Azure"),v(this.cx,this.cy,this.dr,"Azure"),v(this.cx,this.cy,this.br,"Azure"),v(this.cx,this.cy,this.brr,"CornFlowerBlue"),v(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=$t(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=$t(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.rud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,t=this.rwa-this.rwp,u=Math.abs(this.lwa-this.lwp),o=s-t-u;if(o<0)throw`err554: No remaining Addendum reserve ${S(o)}
2
2
  `;const n=this.as*(1-this.adt),g=this.rwp-this.rwd,i=Math.abs(this.lwp-this.lwd),c=n-g-i;if(c<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${S(c)} compare to bRound ${S(this.bRound)}
3
3
  `}getToothRef(){const s=6*this.involArcPairs,t=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const u=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,n=this.initAngle+t*this.as,g=$t(this.cx,this.cy,this.brr,n-this.rwp,!0),[i,c]=g.ptc(this.rud+0*u),d=U(i,c,"Gold");for(let f=0;f<s;f++){const[r,l]=g.ptc(this.rud+(f+1)*u);d.addSegStrokeA(r,l)}const a=n+this.as*this.adt,h=$t(this.cx,this.cy,this.blr,a-this.lwp,!1);for(let f=0;f<s+1;f++){const[r,l]=h.ptc(this.lud+(s-f)*o);d.addSegStrokeA(r,l)}return d.closeSegStroke(),d}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,t=this.lwd-this.lwp,u=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>u-this.br)throw`err409: getProfile bRound ${S(this.bRound)} too large for erdr ${S(u)} and br ${S(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${S(this.bRound)} too large for eldr ${S(o)} and br ${S(this.br)}`;const n=(this.rua-this.rud)/this.involArcPairs,g=(this.lua-this.lud)/this.involArcPairs,i=lt(this.cx,this.cy),c=i.translatePolar(this.initAngle+s,this.br),d=U(c.cx,c.cy);for(let a=0;a<this.TN;a++){const h=this.initAngle+a*this.as,f=i.translatePolar(h+s,this.br);d.addSegStrokeA(f.cx,f.cy).addCornerRounded(this.bRound);const r=$t(this.cx,this.cy,this.brr,h-this.rwp,!0),[l,_]=r.ptc(this.rud),L=r.ptcta(this.rud),D=lt(l,_).translatePolar(L-Math.PI/2,this.skinThickness);d.addSegStrokeA(D.cx,D.cy);for(let M=0;M<this.involArcPairs;M++){const G=this.rud+M*n,[x,C]=r.ptc(G+n),Z=r.ptcta(G),m=r.ptcta(G+n)+Math.PI,R=lt(x,C).translatePolar(Z-Math.PI/2,this.skinThickness);d.addPointA(R.cx,R.cy).addSeg2Arcs(Z,m)}const A=h+this.as*this.adt,w=$t(this.cx,this.cy,this.blr,A-this.lwp,!1),H=this.lud+this.involArcPairs*g,[k,$]=w.ptc(H),P=w.ptcta(H)+Math.PI,b=lt(k,$).translatePolar(P-Math.PI/2,this.skinThickness);d.addSegStrokeA(b.cx,b.cy);for(let M=0;M<this.involArcPairs;M++){const G=this.lud+(this.involArcPairs-M)*g,[x,C]=w.ptc(G-g),Z=w.ptcta(G)+Math.PI,m=w.ptcta(G-g),R=lt(x,C).translatePolar(Z-Math.PI/2,this.skinThickness);d.addPointA(R.cx,R.cy).addSeg2Arcs(Z,m)}const V=i.translatePolar(A+t,this.br);d.addSegStrokeA(V.cx,V.cy).addCornerRounded(this.bRound)}return d.closeSegStroke(),d}getMsg(){return this.msg}};function Zt(){return new Ee}function Ae(s,t,u,o){s.checkInitStep(1,"helper.gw2center-1"),t.checkInitStep(1,"helper.gw2center-2");const n=s.pr+t.pr+o,g=s.cx+n*Math.cos(u),i=s.cy+n*Math.sin(u);return[g,i,n]}function Re(s,t,u,o,n,g,i,c,d){s.checkInitStep(3,"helper.baseCircles-1"),t.checkInitStep(3,"helper.baseCircles-2");let a=u,h=n,f=o,r=g;const l=c,_=d;return l===0&&(t.TN>s.TN?(a=s.dr,h=a*t.TN/s.TN):(h=t.dr,a=h*s.TN/t.TN)),_===0&&(t.TN>s.TN?(f=s.dr,r=f*t.TN/s.TN):(r=t.dr,f=r*s.TN/t.TN)),i===1&&(f=a,r=h),[a,f,h,r]}var Ne=class{constructor(s,t,u,o,n,g){J(this,"gw1");J(this,"gw2");J(this,"initAngle1");J(this,"angleCenterCenter");J(this,"interAxis");J(this,"rightLeftCenter2");J(this,"msg");J(this,"apr");J(this,"apl");J(this,"lBDr",0);J(this,"lBDl",0);J(this,"laStartRr1",0);J(this,"laStartRr2",0);J(this,"laStartRl1",0);J(this,"laStartRl2",0);J(this,"aFODr1",0);J(this,"aFODr2",0);J(this,"aFODl1",0);J(this,"aFODl2",0);J(this,"lasr1",0);J(this,"lasr2",0);J(this,"lasl1",0);J(this,"lasl2",0);J(this,"firstToothUr1",0);J(this,"firstToothUl1",0);J(this,"ftdr1",0);J(this,"ftdl1",0);this.gw1=s,this.gw2=t,this.initAngle1=u,this.angleCenterCenter=o,this.interAxis=n,this.rightLeftCenter2=g,this.msg="",this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,"ActionLine.check1-1"),this.gw2.checkInitStep(4,"ActionLine.check1-2"),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${S(this.interAxis)} is too large compare to gw1.ar ${S(this.gw1.ar)} and gw2.ar ${S(this.gw2.ar)}
4
4
  `),ht(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${S(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${S(this.gw1.brr)}/${S(this.gw2.brr)} = ${S(this.gw1.brr/this.gw2.brr)}
@@ -0,0 +1 @@
1
+ var s;const a=((s=globalThis.__sveltekit_1t3qsym)==null?void 0:s.base)??"";var t;const e=((t=globalThis.__sveltekit_1t3qsym)==null?void 0:t.assets)??a;export{e as a,a as b};
@@ -1 +1 @@
1
- import{s as e}from"./entry.D4XMTNnT.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./entry.DbZ64lxC.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,7 +1,2 @@
1
- function __vite__mapDeps(indexes) {
2
- if (!__vite__mapDeps.viteFileDeps) {
3
- __vite__mapDeps.viteFileDeps = ["_app/immutable/nodes/0.DIJ9OnKa.js","_app/immutable/chunks/scheduler.pWaib8rK.js","_app/immutable/chunks/index.DzDRugVt.js","_app/immutable/chunks/index.BLMsg5xO.js","_app/immutable/chunks/paths.DkM5CCyu.js","_app/immutable/assets/0.CEJMiobA.css","_app/immutable/nodes/1.C3oMusYD.js","_app/immutable/chunks/stores.D1ybwCxw.js","_app/immutable/chunks/entry.D4XMTNnT.js","_app/immutable/nodes/2.CF8QRxsC.js","_app/immutable/chunks/makeList.CReOpeHP.js","_app/immutable/assets/2.CTp7BhB8.css","_app/immutable/nodes/3.BYUnCih2.js","_app/immutable/assets/3.Bup7ghXO.css"]
4
- }
5
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6
- }
7
- import{s as N,a as B,p as h,g as U,i as k,f as p,q as j,r as W,e as z,c as F,b as G,m as D,u as d,t as H,d as J,j as K,v as I,w as E,x as Q}from"../chunks/scheduler.pWaib8rK.js";import{S as X,i as Y,t as g,c as S,a as w,g as A,b as y,d as O,m as P,e as R}from"../chunks/index.DzDRugVt.js";const Z="modulepreload",M=function(a){return"/"+a},T={},L=function(e,n,s){let i=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));i=Promise.all(n.map(o=>{if(o=M(o),o in T)return;T[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!s)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return i.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,s;var i=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return i&&(e=E(i,u(a)),a[12](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][0])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[12](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[12](null),e&&R(e,t)}}}function x(a){let e,n,s;var i=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return i&&(e=E(i,u(a)),a[11](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][0])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[11](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[11](null),e&&R(e,t)}}}function ee(a){let e,n,s;var i=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return i&&(e=E(i,u(a)),a[10](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][1])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[10](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[10](null),e&&R(e,t)}}}function V(a){let e,n=a[6]&&q(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(s){e=F(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=G(e);n&&n.l(i),i.forEach(p),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(s,i){k(s,e,i),n&&n.m(e,null)},p(s,i){s[6]?n?n.p(s,i):(n=q(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(s){s&&p(e),n&&n.d()}}}function q(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,s){k(n,e,s)},p(n,s){s&128&&K(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,s,i,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&V(a);return{c(){n.c(),s=B(),f&&f.c(),i=h()},l(l){n.l(l),s=U(l),f&&f.l(l),i=h()},m(l,m){r[e].m(l,m),k(l,s,m),f&&f.m(l,m),k(l,i,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(A(),g(r[_],1,1,()=>{r[_]=null}),S(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(s.parentNode,s)),l[5]?f?f.p(l,m):(f=V(l),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(p(s),p(i)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:s}=e,{page:i}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(s.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=s.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){I[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function C(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,s=c.stores),"page"in c&&n(9,i=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&s.page.set(i)},[t,u,r,o,f,l,m,_,s,i,b,v,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=[()=>L(()=>import("../nodes/0.DIJ9OnKa.js"),__vite__mapDeps([0,1,2,3,4,5])),()=>L(()=>import("../nodes/1.C3oMusYD.js"),__vite__mapDeps([6,1,2,7,8,4])),()=>L(()=>import("../nodes/2.CF8QRxsC.js"),__vite__mapDeps([9,1,3,2,10,4,11])),()=>L(()=>import("../nodes/3.BYUnCih2.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};
1
+ const __vite__fileDeps=["_app/immutable/nodes/0.ropgFOjk.js","_app/immutable/chunks/scheduler.pWaib8rK.js","_app/immutable/chunks/index.DzDRugVt.js","_app/immutable/chunks/index.25h7ziiG.js","_app/immutable/chunks/paths.C4SMaBnQ.js","_app/immutable/assets/0.CEJMiobA.css","_app/immutable/nodes/1.CJcHnz_W.js","_app/immutable/chunks/stores.8Mp7Yi8p.js","_app/immutable/chunks/entry.DbZ64lxC.js","_app/immutable/nodes/2.DsVPKLGV.js","_app/immutable/chunks/makeList.Zd15bGSd.js","_app/immutable/assets/2.CTp7BhB8.css","_app/immutable/nodes/3.D8rSmrcJ.js","_app/immutable/assets/3.Bup7ghXO.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{s as N,a as B,p as h,g as U,i as k,f as p,q as j,r as W,e as z,c as F,b as G,m as D,u as d,t as H,d as J,j as K,v as I,w as E,x as Q}from"../chunks/scheduler.pWaib8rK.js";import{S as X,i as Y,t as g,c as S,a as w,g as A,b as y,d as O,m as P,e as R}from"../chunks/index.DzDRugVt.js";const Z="modulepreload",M=function(a){return"/"+a},T={},L=function(e,n,s){let i=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));i=Promise.all(n.map(o=>{if(o=M(o),o in T)return;T[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!s)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return i.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,s;var i=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return i&&(e=E(i,u(a)),a[12](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][0])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[12](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[12](null),e&&R(e,t)}}}function x(a){let e,n,s;var i=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return i&&(e=E(i,u(a)),a[11](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][0])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[11](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[11](null),e&&R(e,t)}}}function ee(a){let e,n,s;var i=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return i&&(e=E(i,u(a)),a[10](e)),{c(){e&&y(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),k(t,n,r),s=!0},p(t,r){if(r&2&&i!==(i=t[1][1])){if(e){A();const o=e;g(o.$$.fragment,1,0,()=>{R(o,1)}),S()}i?(e=E(i,u(t)),t[10](e),y(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(i){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&w(e.$$.fragment,t),s=!0)},o(t){e&&g(e.$$.fragment,t),s=!1},d(t){t&&p(n),a[10](null),e&&R(e,t)}}}function V(a){let e,n=a[6]&&q(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(s){e=F(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=G(e);n&&n.l(i),i.forEach(p),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(s,i){k(s,e,i),n&&n.m(e,null)},p(s,i){s[6]?n?n.p(s,i):(n=q(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(s){s&&p(e),n&&n.d()}}}function q(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,s){k(n,e,s)},p(n,s){s&128&&K(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,s,i,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&V(a);return{c(){n.c(),s=B(),f&&f.c(),i=h()},l(l){n.l(l),s=U(l),f&&f.l(l),i=h()},m(l,m){r[e].m(l,m),k(l,s,m),f&&f.m(l,m),k(l,i,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(A(),g(r[_],1,1,()=>{r[_]=null}),S(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(s.parentNode,s)),l[5]?f?f.p(l,m):(f=V(l),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(p(s),p(i)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:s}=e,{page:i}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(s.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=s.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){I[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function C(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,s=c.stores),"page"in c&&n(9,i=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&s.page.set(i)},[t,u,r,o,f,l,m,_,s,i,b,v,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=[()=>L(()=>import("../nodes/0.ropgFOjk.js"),__vite__mapDeps([0,1,2,3,4,5])),()=>L(()=>import("../nodes/1.CJcHnz_W.js"),__vite__mapDeps([6,1,2,7,8,4])),()=>L(()=>import("../nodes/2.DsVPKLGV.js"),__vite__mapDeps([9,1,3,2,10,4,11])),()=>L(()=>import("../nodes/3.D8rSmrcJ.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.DbZ64lxC.js";export{t as start};
@@ -1,4 +1,4 @@
1
- import{s as Q,y as V,e as v,a as T,c as h,l as L,g as $,b as O,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.pWaib8rK.js";import{S as ee,i as te,a as se,t as ie}from"../chunks/index.DzDRugVt.js";import{e as W,C as le}from"../chunks/index.BLMsg5xO.js";import{b as ne}from"../chunks/paths.DkM5CCyu.js";const ae=!0,je=Object.freeze(Object.defineProperty({__proto__:null,prerender:ae},Symbol.toStringTag,{value:"Module"})),re="designix-ui",oe="0.5.5",ce="module",pe={type:"git",url:"git+https://github.com/charlyoleg2/parametrix.git"},ue="https://charlyoleg2.github.io/parametrix/",ve={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"},he={designix:"^0.5.34",geometrix:"^0.5.33",geomui:"^0.5.35"},fe={"@sveltejs/adapter-auto":"^3.2.0","@sveltejs/adapter-static":"^3.0.1","@sveltejs/kit":"^2.5.5","@sveltejs/vite-plugin-svelte":"^3.0.2","@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.35.1","npm-run-all":"^4.1.5",prettier:"^3.2.5","prettier-plugin-svelte":"^3.2.2",sass:"^1.74.1",shx:"^0.3.4",svelte:"^4.2.12","svelte-check":"^3.6.9",tslib:"^2.6.2",typescript:"^5.4.4",vite:"^5.2.8",vitest:"^1.4.0"},de={useTabs:!0,singleQuote:!0,trailingComma:"none",printWidth:100,plugins:["prettier-plugin-svelte"],overrides:[{files:"*.svelte",options:{parser:"svelte"}}]},ge={name:re,version:oe,type:ce,private:!0,repository:pe,homepage:ue,scripts:ve,dependencies:he,devDependencies:fe,prettier:de};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=v("br")},l(s){p=Y(s,i),r=h(s,"BR",{})},m(s,g){u(s,p,g),u(s,r,g)},p:Z,d(s){s&&(a(p),a(r))}}}function me(c){let i,p="Welcome to designix-ui",r,s,g=`Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library
1
+ import{s as Q,y as V,e as v,a as T,c as h,l as L,g as $,b as O,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.pWaib8rK.js";import{S as ee,i as te,a as se,t as ie}from"../chunks/index.DzDRugVt.js";import{e as W,C as le}from"../chunks/index.25h7ziiG.js";import{b as ne}from"../chunks/paths.C4SMaBnQ.js";const ae=!0,je=Object.freeze(Object.defineProperty({__proto__:null,prerender:ae},Symbol.toStringTag,{value:"Module"})),re="designix-ui",oe="0.5.5",ce="module",pe={type:"git",url:"git+https://github.com/charlyoleg2/parametrix.git"},ue="https://charlyoleg2.github.io/parametrix/",ve={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"},he={designix:"^0.5.35",geometrix:"^0.5.34",geomui:"^0.5.36"},fe={"@sveltejs/adapter-auto":"^3.2.0","@sveltejs/adapter-static":"^3.0.1","@sveltejs/kit":"^2.5.6","@sveltejs/vite-plugin-svelte":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.0.1","@typescript-eslint/parser":"^7.0.1",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.37.0","npm-run-all":"^4.1.5",prettier:"^3.2.5","prettier-plugin-svelte":"^3.2.3",sass:"^1.75.0",shx:"^0.3.4",svelte:"^4.2.14","svelte-check":"^3.6.9",tslib:"^2.6.2",typescript:"^5.4.5",vite:"^5.2.9",vitest:"^1.5.0"},de={useTabs:!0,singleQuote:!0,trailingComma:"none",printWidth:100,plugins:["prettier-plugin-svelte"],overrides:[{files:"*.svelte",options:{parser:"svelte"}}]},ge={name:re,version:oe,type:ce,private:!0,repository:pe,homepage:ue,scripts:ve,dependencies:he,devDependencies:fe,prettier:de};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=v("br")},l(s){p=Y(s,i),r=h(s,"BR",{})},m(s,g){u(s,p,g),u(s,r,g)},p:Z,d(s){s&&(a(p),a(r))}}}function me(c){let i,p="Welcome to designix-ui",r,s,g=`Showcasing the usage of the <a href="https://svelte.dev/">svelte</a> library
2
2
  <a href="https://www.npmjs.com/">geomui</a>.`,m,d,I=`<a href="${`${ne}/`}" class="svelte-1v6hyjg">index: list of designs</a>`,M,_,A,f,x,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>.`,S,y,w,N="Designix-ui version",z,j,k;const D=c[2].default,o=V(D,c,c[1],null);let C=W(c[0]),l=[];for(let e=0;e<C.length;e+=1)l[e]=F(q(c,C,e));return{c(){i=v("h1"),i.textContent=p,r=T(),s=v("h6"),s.innerHTML=g,m=T(),d=v("nav"),d.innerHTML=I,M=T(),_=v("main"),o&&o.c(),A=T(),f=v("footer"),x=v("article"),x.innerHTML=B,S=T(),y=v("article"),w=v("h3"),w.textContent=N,z=T(),j=v("code");for(let e=0;e<l.length;e+=1)l[e].c();this.h()},l(e){i=h(e,"H1",{class:!0,"data-svelte-h":!0}),L(i)!=="svelte-1ow6r3d"&&(i.textContent=p),r=$(e),s=h(e,"H6",{class:!0,"data-svelte-h":!0}),L(s)!=="svelte-7mn22s"&&(s.innerHTML=g),m=$(e),d=h(e,"NAV",{class:!0,"data-svelte-h":!0}),L(d)!=="svelte-ww4mf0"&&(d.innerHTML=I),M=$(e),_=h(e,"MAIN",{class:!0});var n=O(_);o&&o.l(n),n.forEach(a),A=$(e),f=h(e,"FOOTER",{class:!0});var t=O(f);x=h(t,"ARTICLE",{"data-svelte-h":!0}),L(x)!=="svelte-1pwhz7h"&&(x.innerHTML=B),S=$(t),y=h(t,"ARTICLE",{});var b=O(y);w=h(b,"H3",{"data-svelte-h":!0}),L(w)!=="svelte-18yz28i"&&(w.textContent=N),z=$(b),j=h(b,"CODE",{});var P=O(j);for(let R=0;R<l.length;R+=1)l[R].l(P);P.forEach(a),b.forEach(a),t.forEach(a),this.h()},h(){E(i,"class","svelte-1v6hyjg"),E(s,"class","svelte-1v6hyjg"),E(d,"class","svelte-1v6hyjg"),E(_,"class","svelte-1v6hyjg"),E(f,"class","svelte-1v6hyjg")},m(e,n){u(e,i,n),u(e,r,n),u(e,s,n),u(e,m,n),u(e,d,n),u(e,M,n),u(e,_,n),o&&o.m(_,null),u(e,A,n),u(e,f,n),H(f,x),H(f,S),H(f,y),H(y,w),H(y,z),H(y,j);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(j,null);k=!0},p(e,[n]){if(o&&o.p&&(!k||n&2)&&G(o,D,e,e[1],k?K(D,e[1],n,null):J(e[1]),null),n&1){C=W(e[0]);let t;for(t=0;t<C.length;t+=1){const b=q(e,C,t);l[t]?l[t].p(b,n):(l[t]=F(b),l[t].c(),l[t].m(j,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=C.length}},i(e){k||(se(o,e),k=!0)},o(e){ie(o,e),k=!1},d(e){e&&(a(i),a(r),a(s),a(m),a(d),a(M),a(_),a(A),a(f)),o&&o.d(e),U(l,e)}}}function _e(c,i,p){let{$$slots:r={},$$scope:s}=i;const g=le(ge);return c.$$set=m=>{"$$scope"in m&&p(1,s=m.$$scope)},[g,s,r]}class ke extends ee{constructor(i){super(),te(this,i,_e,me,Q,{})}}export{ke as component,je as universal};
@@ -1 +1 @@
1
- import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.pWaib8rK.js";import{S as q,i as y}from"../chunks/index.DzDRugVt.js";import{p as C}from"../chunks/stores.D1ybwCxw.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component};
1
+ import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.pWaib8rK.js";import{S as q,i as y}from"../chunks/index.DzDRugVt.js";import{p as C}from"../chunks/stores.8Mp7Yi8p.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component};
@@ -1 +1 @@
1
- import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.pWaib8rK.js";import{e as E}from"../chunks/index.BLMsg5xO.js";import{S,i as $}from"../chunks/index.DzDRugVt.js";import{d as q}from"../chunks/makeList.CReOpeHP.js";import{b as A}from"../chunks/paths.DkM5CCyu.js";function H(r,e,l){const o=r.slice();return o[0]=e[l],o}function I(r){let e,l,o;return{c(){e=_("li"),l=_("a"),o=L(r[0]),this.h()},l(a){e=d(a,"LI",{});var n=p(e);l=d(n,"A",{href:!0});var s=p(l);o=k(s,r[0]),s.forEach(c),n.forEach(c),this.h()},h(){v(l,"href",`${A}/${r[0]}`)},m(a,n){f(a,e,n),u(e,l),u(l,o)},p:m,d(a){a&&c(e)}}}function N(r){let e,l="List of designs:",o,a,n=E(q),s=[];for(let t=0;t<n.length;t+=1)s[t]=I(H(r,n,t));return{c(){e=_("h2"),e.textContent=l,o=x(),a=_("ol");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=d(t,"H2",{class:!0,"data-svelte-h":!0}),b(e)!=="svelte-96cxme"&&(e.textContent=l),o=y(t),a=d(t,"OL",{});var h=p(a);for(let i=0;i<s.length;i+=1)s[i].l(h);h.forEach(c),this.h()},h(){v(e,"class","svelte-1r3d1r")},m(t,h){f(t,e,h),f(t,o,h),f(t,a,h);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,null)},p:m,i:m,o:m,d(t){t&&(c(e),c(o),c(a)),C(s,t)}}}class B extends S{constructor(e){super(),$(this,e,null,N,g,{})}}export{B as component};
1
+ import{s as g,e as _,a as x,c as d,l as b,g as y,b as p,f as c,m as v,i as f,n as m,o as C,t as L,d as k,h as u}from"../chunks/scheduler.pWaib8rK.js";import{e as E}from"../chunks/index.25h7ziiG.js";import{S,i as $}from"../chunks/index.DzDRugVt.js";import{d as q}from"../chunks/makeList.Zd15bGSd.js";import{b as A}from"../chunks/paths.C4SMaBnQ.js";function H(r,e,l){const o=r.slice();return o[0]=e[l],o}function I(r){let e,l,o;return{c(){e=_("li"),l=_("a"),o=L(r[0]),this.h()},l(a){e=d(a,"LI",{});var n=p(e);l=d(n,"A",{href:!0});var s=p(l);o=k(s,r[0]),s.forEach(c),n.forEach(c),this.h()},h(){v(l,"href",`${A}/${r[0]}`)},m(a,n){f(a,e,n),u(e,l),u(l,o)},p:m,d(a){a&&c(e)}}}function N(r){let e,l="List of designs:",o,a,n=E(q),s=[];for(let t=0;t<n.length;t+=1)s[t]=I(H(r,n,t));return{c(){e=_("h2"),e.textContent=l,o=x(),a=_("ol");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=d(t,"H2",{class:!0,"data-svelte-h":!0}),b(e)!=="svelte-96cxme"&&(e.textContent=l),o=y(t),a=d(t,"OL",{});var h=p(a);for(let i=0;i<s.length;i+=1)s[i].l(h);h.forEach(c),this.h()},h(){v(e,"class","svelte-1r3d1r")},m(t,h){f(t,e,h),f(t,o,h),f(t,a,h);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,null)},p:m,i:m,o:m,d(t){t&&(c(e),c(o),c(a)),C(s,t)}}}class B extends S{constructor(e){super(),$(this,e,null,N,g,{})}}export{B as component};
@@ -0,0 +1,18 @@
1
+ import{a as Pt,b as wl}from"../chunks/makeList.Zd15bGSd.js";import{H as Dl,w as ul,g as Ol}from"../chunks/entry.DbZ64lxC.js";import{Q as El,s as ze,p as st,i as x,n as Ue,f as k,e as _,c as p,b as S,R as ht,m as f,h as r,S as Z,v as Le,a as I,g as P,T as Ie,o as Xe,y as Cl,t as q,l as re,d as G,U as Be,z as Ll,A as Sl,B as jl,j as pe,C as Ye,V as ve,k as at,r as Ct,W as ml,X as _t,Y as Dt,Z as Il,H as bt,_ as ot,$ as Pl,a0 as Al}from"../chunks/scheduler.pWaib8rK.js";import{S as Me,i as Fe,f as Pe,b as De,d as Oe,m as Ee,a as be,t as Ne,e as Ce,g as Ul,c as zl}from"../chunks/index.DzDRugVt.js";import{e as we,D as Ml,F as dl,G as Fl,H as hl,I as _l,P as wt,J as yl,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 Et,T as $e,U as Vl,V as Wl,W as Xl,X as Yl,Y as Kl}from"../chunks/index.25h7ziiG.js";import{b as vt}from"../chunks/paths.C4SMaBnQ.js";import{p as ql}from"../chunks/stores.8Mp7Yi8p.js";function Gl(t,e){throw new Dl(t,e)}new TextEncoder;function Zl({params:t}){const e=t.design;if(Object.keys(Pt).includes(e))return{pageDef:Pt[e],allLink:wl};Gl(404,"Design undefined!")}const vs=Object.freeze(Object.defineProperty({__proto__:null,load:Zl},Symbol.toStringTag,{value:"Module"})),Ke=ul({});function pl(t,e,l){const n=El(Ke);if(Object.keys(n).includes(t)){const s=n[t],a=Object.keys(s);for(const c of Object.keys(e))a.includes(c)?l&&(s[c]=e[c]):s[c]=e[c];n[t]=s}else n[t]=e;Ke.set(n)}function Jl(t){const e=t.pDef.partName,l={};for(const n of t.pDef.params)l[n.name]=n.init;pl(e,l,!1)}function Ut(t){let e,l,n,o,s,a,c;return{c(){e=_("aside"),l=_("div"),n=_("button"),o=_("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);o=p(h,"IMG",{src:!0,alt:!0}),h.forEach(k),m.forEach(k),i.forEach(k),this.h()},h(){ht(o.src,s=t[1])||f(o,"src",s),f(o,"alt",t[1]),f(n,"class","svelte-sjxf1e"),f(l,"class","dialog svelte-sjxf1e"),f(e,"class","backdrop svelte-sjxf1e")},m(u,i){x(u,e,i),r(e,l),r(l,n),r(n,o),a||(c=Z(n,"click",t[2]),a=!0)},p(u,i){i&2&&!ht(o.src,s=u[1])&&f(o,"src",s),i&2&&f(o,"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,o){l&&l.m(n,o),x(n,e,o)},p(n,[o]){n[0]?l?l.p(n,o):(l=Ut(n),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(n){n&&k(e),l&&l.d(n)}}}function $l(t,e,l){let{svgPath:n}=e,{modalOpen:o}=e;function s(){l(0,o=!1)}return t.$$set=a=>{"svgPath"in a&&l(1,n=a.svgPath),"modalOpen"in a&&l(0,o=a.modalOpen)},[o,n,s]}class gl extends Me{constructor(e){super(),Fe(this,e,$l,Ql,ze,{svgPath:1,modalOpen:0})}}function zt(t,e,l){const n=t.slice();return n[8]=e[l],n}function Mt(t){let e,l,n,o,s,a,c;function u(){return t[6](t[8])}return{c(){e=_("button"),l=_("img"),s=I(),this.h()},l(i){e=p(i,"BUTTON",{class:!0});var m=S(e);l=p(m,"IMG",{src:!0,alt:!0,class:!0}),s=P(m),m.forEach(k),this.h()},h(){ht(l.src,n=t[8])||f(l,"src",n),f(l,"alt",o=t[8]),f(l,"class","svelte-fxmnfh"),f(e,"class","svelte-fxmnfh")},m(i,m){x(i,e,m),r(e,l),r(e,s),a||(c=Z(e,"click",u),a=!0)},p(i,m){t=i,m&1&&!ht(l.src,n=t[8])&&f(l,"src",n),m&1&&o!==(o=t[8])&&f(l,"alt",o)},d(i){i&&k(e),a=!1,c()}}}function xl(t){let e,l,n,o,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}),Le.push(()=>Pe(l,"modalOpen",a));let u=we(t[0]),i=[];for(let m=0;m<u.length;m+=1)i[m]=Mt(zt(t,u,m));return{c(){e=_("section"),De(l.$$.fragment),o=I();for(let m=0;m<i.length;m+=1)i[m].c();this.h()},l(m){e=p(m,"SECTION",{class:!0});var h=S(e);Oe(l.$$.fragment,h),o=P(h);for(let N=0;N<i.length;N+=1)i[N].l(h);h.forEach(k),this.h()},h(){f(e,"class","svelte-fxmnfh")},m(m,h){x(m,e,h),Ee(l,e,null),r(e,o);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],Ie(()=>n=!1)),l.$set(N),h&9){u=we(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||(be(l.$$.fragment,m),s=!0)},o(m){Ne(l.$$.fragment,m),s=!1},d(m){m&&k(e),Ce(l),Xe(i,m)}}}function en(t){const e=[];for(const l of Object.values(t.paramSvg))e.includes(l)||e.push(l);return e}function tn(t,e,l){let{pDef:n}=e;function o(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=o(n.partName))},[s,a,c,u,n,i,m]}class ln extends Me{constructor(e){super(),Fe(this,e,tn,xl,ze,{pDef:4})}}function Ft(t){let e,l,n,o,s,a,c="Cancel",u,i,m,h,N,v;const d=t[7].default,b=Cl(d,t,t[6],null);return{c(){e=_("aside"),l=_("div"),n=_("article"),b&&b.c(),o=I(),s=_("footer"),a=_("button"),a.textContent=c,u=I(),i=_("button"),m=q(t[1]),this.h()},l(T){e=p(T,"ASIDE",{class:!0});var g=S(e);l=p(g,"DIV",{class:!0});var D=S(l);n=p(D,"ARTICLE",{class:!0});var E=S(n);b&&b.l(E),E.forEach(k),o=P(D),s=p(D,"FOOTER",{class:!0});var O=S(s);a=p(O,"BUTTON",{class:!0,"data-svelte-h":!0}),re(a)!=="svelte-hcvk9s"&&(a.textContent=c),u=P(O),i=p(O,"BUTTON",{class:!0});var z=S(i);m=G(z,t[1]),z.forEach(k),O.forEach(k),D.forEach(k),g.forEach(k),this.h()},h(){f(n,"class","question svelte-weruk7"),f(a,"class","cancel svelte-weruk7"),f(i,"class","ok svelte-weruk7"),f(s,"class","svelte-weruk7"),f(l,"class","dialog svelte-weruk7"),Be(l,"sizeLarge",t[2]),f(e,"class","backdrop svelte-weruk7")},m(T,g){x(T,e,g),r(e,l),r(l,n),b&&b.m(n,null),r(l,o),r(l,s),r(s,a),r(s,u),r(s,i),r(i,m),h=!0,N||(v=[Z(a,"click",t[3]),Z(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)&&pe(m,T[1]),(!h||g&4)&&Be(l,"sizeLarge",T[2])},i(T){h||(be(b,T),h=!0)},o(T){Ne(b,T),h=!1},d(T){T&&k(e),b&&b.d(T),N=!1,Ye(v)}}}function nn(t){let e,l,n=t[0]&&Ft(t);return{c(){n&&n.c(),e=st()},l(o){n&&n.l(o),e=st()},m(o,s){n&&n.m(o,s),x(o,e,s),l=!0},p(o,[s]){o[0]?n?(n.p(o,s),s&1&&be(n,1)):(n=Ft(o),n.c(),be(n,1),n.m(e.parentNode,e)):n&&(Ul(),Ne(n,1,1,()=>{n=null}),zl())},i(o){l||(be(n),l=!0)},o(o){Ne(n),l=!1},d(o){o&&k(e),n&&n.d(o)}}}function sn(t,e,l){let{$$slots:n={},$$scope:o}=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,o=h.$$scope)},[c,s,u,i,m,a,o,n]}class gt extends Me{constructor(e){super(),Fe(this,e,sn,nn,ze,{okName:1,okFunc:5,modalOpen:0,sizeLarge:2})}}function yt(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=q(l),this.h()},l(o){e=p(o,"P",{class:!0});var s=S(e);n=G(s,l),s.forEach(k),this.h()},h(){f(e,"class","diagItem svelte-12dj9tj")},m(o,s){x(o,e,s),r(e,n)},p(o,s){s&1&&l!==(l=o[17]+"")&&pe(n,l)},d(o){o&&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,o){l&&l.m(n,o),x(n,e,o)},p(n,o){n[3][n[17]]?l?l.p(n,o):(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,o,s=we(t[0]),a=[];for(let c=0;c<s.length;c+=1)a[c]=Ht(Bt(t,s,c));return{c(){e=_("p"),e.textContent=l,n=I();for(let c=0;c<a.length;c+=1)a[c].c();o=st(),this.h()},l(c){e=p(c,"P",{class:!0,"data-svelte-h":!0}),re(e)!=="svelte-12r0p0q"&&(e.textContent=l),n=P(c);for(let u=0;u<a.length;u+=1)a[u].l(c);o=st(),this.h()},h(){f(e,"class","diagTitle svelte-12dj9tj")},m(c,u){x(c,e,u),x(c,n,u);for(let i=0;i<a.length;i+=1)a[i]&&a[i].m(c,u);x(c,o,u)},p(c,u){if(u&9){s=we(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(o.parentNode,o))}for(;i<a.length;i+=1)a[i].d(1);a.length=s.length}},d(c){c&&(k(e),k(n),k(o)),Xe(a,c)}}}function Vt(t){let e,l,n,o,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"),o=I(),s=_("td"),a=_("button"),u=q(c),i=I(),m=_("td"),N=q(h),v=I(),this.h()},l(D){e=p(D,"TR",{class:!0});var E=S(e);l=p(E,"TD",{});var O=S(l);n=p(O,"INPUT",{type:!0}),O.forEach(k),o=P(E),s=p(E,"TD",{class:!0});var z=S(s);a=p(z,"BUTTON",{class:!0});var y=S(a);u=G(y,c),y.forEach(k),z.forEach(k),i=P(E),m=p(E,"TD",{});var A=S(m);N=G(A,h),A.forEach(k),v=P(E),E.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(D,E){x(D,e,E),r(e,l),r(l,n),n.checked=t[3][t[17]],r(e,o),r(e,s),r(s,a),r(a,u),r(e,i),r(e,m),r(m,N),r(e,v),d||(b=[Z(n,"change",T),Z(a,"click",g)],d=!0)},p(D,E){t=D,E&9&&(n.checked=t[3][t[17]]),E&1&&c!==(c=t[17]+"")&&pe(u,c),E&5&&h!==(h=t[2][t[17]]+"")&&pe(N,h)},d(D){D&&k(e),d=!1,Ye(b)}}}function on(t){let e,l,n="Delete",o,s,a,c,u,i,m,h="<td>Delete</td> <td>Key name</td> <td>Last modification</td>",N,v,d,b,T,g,D="delete all",E,O,z,y,A,w,C;function U(F){t[10](F)}let M={okName:"Confirm",okFunc:t[6],$$slots:{default:[an]},$$scope:{ctx:t}};t[4]!==void 0&&(M.modalOpen=t[4]),s=new gt({props:M}),Le.push(()=>Pe(s,"modalOpen",U));let X=we(t[0]),B=[];for(let F=0;F<X.length;F+=1)B[F]=Vt(yt(t,X,F));return{c(){e=_("div"),l=_("button"),l.textContent=n,o=I(),De(s.$$.fragment),c=I(),u=_("table"),i=_("thead"),m=_("tr"),m.innerHTML=h,N=I(),v=_("tr"),d=_("td"),b=_("input"),T=I(),g=_("td"),g.textContent=D,E=I(),O=_("td"),z=I(),y=_("tbody");for(let F=0;F<B.length;F+=1)B[F].c();this.h()},l(F){e=p(F,"DIV",{class:!0});var J=S(e);l=p(J,"BUTTON",{class:!0,"data-svelte-h":!0}),re(l)!=="svelte-1tbm4xl"&&(l.textContent=n),o=P(J),Oe(s.$$.fragment,J),c=P(J),u=p(J,"TABLE",{class:!0});var $=S(u);i=p($,"THEAD",{class:!0});var te=S(i);m=p(te,"TR",{"data-svelte-h":!0}),re(m)!=="svelte-xt53kn"&&(m.innerHTML=h),N=P(te),v=p(te,"TR",{});var le=S(v);d=p(le,"TD",{});var ue=S(d);b=p(ue,"INPUT",{type:!0}),ue.forEach(k),T=P(le),g=p(le,"TD",{class:!0,"data-svelte-h":!0}),re(g)!=="svelte-1s4wssd"&&(g.textContent=D),E=P(le),O=p(le,"TD",{}),S(O).forEach(k),le.forEach(k),te.forEach(k),z=P($),y=p($,"TBODY",{class:!0});var ie=S(y);for(let _e=0;_e<B.length;_e+=1)B[_e].l(ie);ie.forEach(k),$.forEach(k),J.forEach(k),this.h()},h(){f(l,"class","svelte-12dj9tj"),f(b,"type","checkbox"),f(g,"class","instruction"),f(i,"class","svelte-12dj9tj"),f(y,"class","svelte-12dj9tj"),f(u,"class","svelte-12dj9tj"),f(e,"class","deleteKeys svelte-12dj9tj")},m(F,J){x(F,e,J),r(e,l),r(e,o),Ee(s,e,null),r(e,c),r(e,u),r(u,i),r(i,m),r(i,N),r(i,v),r(v,d),r(d,b),b.checked=t[1],r(v,T),r(v,g),r(v,E),r(v,O),r(u,z),r(u,y);for(let $=0;$<B.length;$+=1)B[$]&&B[$].m(y,null);A=!0,w||(C=[Z(l,"click",t[9]),Z(b,"change",t[11])],w=!0)},p(F,[J]){const $={};if(J&4194313&&($.$$scope={dirty:J,ctx:F}),!a&&J&16&&(a=!0,$.modalOpen=F[4],Ie(()=>a=!1)),s.$set($),J&2&&(b.checked=F[1]),J&45){X=we(F[0]);let te;for(te=0;te<X.length;te+=1){const le=yt(F,X,te);B[te]?B[te].p(le,J):(B[te]=Vt(le),B[te].c(),B[te].m(y,null))}for(;te<B.length;te+=1)B[te].d(1);B.length=X.length}},i(F){A||(be(s.$$.fragment,F),A=!0)},o(F){Ne(s.$$.fragment,F),A=!1},d(F){F&&k(e),Ce(s),Xe(B,F),w=!1,Ye(C)}}}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:o}=e,{localKeys:s}=e;function a(){let O=[];const z=new RegExp(`^${n}_`);return O=Object.keys(window.localStorage).filter(A=>z.test(A)).map(A=>A.replace(z,"")),O}s=a();function c(O){l(7,o=O)}let u={};function i(O){let z={};for(const y of O){let A="";const w=`${n}_${y}`,C=window.localStorage.getItem(w);C!==null&&(A=JSON.parse(C).lastModif),z[y]=A}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 D(O){m[O]=this.checked,l(3,m)}const E=O=>c(O);return t.$$set=O=>{"pageName"in O&&l(8,n=O.pageName),"storeName"in O&&l(7,o=O.storeName),"localKeys"in O&&l(0,s=O.localKeys)},t.$$.update=()=>{t.$$.dirty&2&&N(h)},[s,h,u,m,d,c,v,o,n,b,T,g,D,E]}class vl extends Me{constructor(e){super(),Fe(this,e,cn,on,ze,{pageName:8,storeName:7,localKeys:0})}}function Wt(t){let e,l,n,o;return{c(){e=_("p"),l=q("Warning: name "),n=q(t[0]),o=q(" already used"),this.h()},l(s){e=p(s,"P",{class:!0});var a=S(e);l=G(a,"Warning: name "),n=G(a,t[0]),o=G(a," already used"),a.forEach(k),this.h()},h(){f(e,"class","warnMsg svelte-1rkdwo")},m(s,a){x(s,e,a),r(e,l),r(e,n),r(e,o)},p(s,a){a&1&&pe(n,s[0])},d(s){s&&k(e)}}}function fn(t){let e,l,n,o,s,a,c="Give a name to your parameter-set:",u,i,m,h,N,v;function d(D){t[5](D)}function b(D){t[6](D)}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}),Le.push(()=>Pe(e,"storeName",d)),Le.push(()=>Pe(e,"localKeys",b));let g=t[3]&&Wt(t);return{c(){De(e.$$.fragment),o=I(),s=_("div"),a=_("label"),a.textContent=c,u=I(),i=_("input"),m=I(),g&&g.c(),this.h()},l(D){Oe(e.$$.fragment,D),o=P(D),s=p(D,"DIV",{class:!0});var E=S(s);a=p(E,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),re(a)!=="svelte-1vdq35w"&&(a.textContent=c),u=P(E),i=p(E,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),m=P(E),g&&g.l(E),E.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(D,E){Ee(e,D,E),x(D,o,E),x(D,s,E),r(s,a),r(s,u),r(s,i),ve(i,t[0]),r(s,m),g&&g.m(s,null),h=!0,N||(v=[Z(i,"input",t[7]),Z(i,"input",t[4])],N=!0)},p(D,[E]){const O={};E&2&&(O.pageName=D[1]),!l&&E&1&&(l=!0,O.storeName=D[0],Ie(()=>l=!1)),!n&&E&4&&(n=!0,O.localKeys=D[2],Ie(()=>n=!1)),e.$set(O),E&1&&i.value!==D[0]&&ve(i,D[0]),D[3]?g?g.p(D,E):(g=Wt(D),g.c(),g.m(s,null)):g&&(g.d(1),g=null)},i(D){h||(be(e.$$.fragment,D),h=!0)},o(D){Ne(e.$$.fragment,D),h=!1},d(D){D&&(k(o),k(s)),Ce(e,D),g&&g.d(),N=!1,Ye(v)}}}function un(t){const e=/[-:]/g,l=/\..*$/;return`${t}_${new Date().toISOString().replace(e,"").replace(l,"").replace("T","_")}`}function mn(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];o=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){o=N,l(0,o)}function m(N){s=N,l(2,s)}function h(){o=this.value,l(0,o)}return t.$$set=N=>{"pageName"in N&&l(1,n=N.pageName),"storeName"in N&&l(0,o=N.storeName)},t.$$.update=()=>{t.$$.dirty&1&&c(o)},[o,n,s,a,u,i,m,h]}class dn extends Me{constructor(e){super(),Fe(this,e,mn,fn,ze,{pageName:1,storeName:0})}}function hn(t){let e,l,n,o,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}),Le.push(()=>Pe(e,"storeName",h)),Le.push(()=>Pe(e,"localKeys",N)),{c(){De(e.$$.fragment),o=I(),s=_("div"),a=_("label"),a.textContent=c,u=I(),i=_("input"),this.h()},l(d){Oe(e.$$.fragment,d),o=P(d),s=p(d,"DIV",{class:!0});var b=S(s);a=p(b,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),re(a)!=="svelte-rajgc0"&&(a.textContent=c),u=P(b),i=p(b,"INPUT",{type:!0,id:!0,minlength:!0,maxlength:!0,size:!0,class:!0}),b.forEach(k),this.h()},h(){f(a,"for","storName"),f(a,"class","svelte-1ozd0ey"),f(i,"type","text"),f(i,"id","storName"),i.value=t[0],i.readOnly=!0,f(i,"minlength","4"),f(i,"maxlength","30"),f(i,"size","32"),f(i,"class","svelte-1ozd0ey"),f(s,"class","svelte-1ozd0ey")},m(d,b){Ee(e,d,b),x(d,o,b),x(d,s,b),r(s,a),r(s,u),r(s,i),m=!0},p(d,[b]){const T={};b&2&&(T.pageName=d[1]),!l&&b&1&&(l=!0,T.storeName=d[0],Ie(()=>l=!1)),!n&&b&4&&(n=!0,T.localKeys=d[2],Ie(()=>n=!1)),e.$set(T),(!m||b&1&&i.value!==d[0])&&(i.value=d[0])},i(d){m||(be(e.$$.fragment,d),m=!0)},o(d){Ne(e.$$.fragment,d),m=!1},d(d){d&&(k(o),k(s)),Ce(e,d)}}}function _n(t,e,l){let{pageName:n}=e,{storeName:o}=e,s=[];function a(i){let m=o;return!i.includes(m)&&(i.length>0?m=i[0]:m=""),m}function c(i){o=i,l(0,o),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,o=i.storeName)},t.$$.update=()=>{t.$$.dirty&4&&l(0,o=a(s))},[o,n,s,c,u]}class pn extends Me{constructor(e){super(),Fe(this,e,_n,hn,ze,{pageName:1,storeName:0})}}const Re=ul(Ml());function gn(t){let e;return{c(){e=_("canvas"),this.h()},l(l){e=p(l,"CANVAS",{class:!0,width:!0,height:!0}),S(e).forEach(k),this.h()},h(){f(e,"class","mini svelte-z8e4tz"),f(e,"width",Xt),f(e,"height",Xt)},m(l,n){x(l,e,n),t[9](e)},p:Ue,i:Ue,o:Ue,d(l){l&&k(e),t[9](null)}}}const Xt=200;function vn(t,e,l){let n,o;at(t,Re,T=>l(7,n=T)),at(t,Ke,T=>l(8,o=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 D=Fl(g);D.ruler=!1;const E=m.getContext("2d");E.clearRect(0,0,E.canvas.width,E.canvas.height);try{u.init===0?h=T.getAdjustFull(E.canvas.width,E.canvas.height):h=u,T.draw(E,h,D)}catch(O){console.log(O)}}let v=0;function d(T,g,D,E){const O=a(T,g).fig;if(Object.keys(O).includes(D)){const z=O[D];N(z,E)}else{const z=dl(O);N(z,E)}}Ct(()=>{d(i,o[s],c,n),l(6,v=1)});function b(T){Le[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,o[s],c,n)},[m,s,a,c,u,i,v,n,o,b]}class Yt extends Me{constructor(e){super(),Fe(this,e,vn,gn,ze,{pageName:1,fgeom:2,selFace:3,zAdjust:4,simTime:5})}}function bn(t,e){const l=document.createElement("a");l.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),l.setAttribute("download",t),l.click(),l.remove()}function bl(t,e,l){const n=/[-:]/g,o=/\..*$/,s=new Date().toISOString().replace(n,"").replace(o,"").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),o=2e3;let s=n.toString().length;for(const a of Object.keys(e)){const c=e[a].toString(),u=2+a.length+c.length;(!l||s+u<o)&&n.searchParams.append(encodeURIComponent(a),encodeURIComponent(c)),s+=u}return s>=o&&console.log(`warn547: generateUrl: strLength ${s} larger than strLengthLimit ${o}`),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=q("Load the default parameters ?")},l(l){e=G(l,"Load the default parameters ?")},m(l,n){x(l,e,n)},d(l){l&&k(e)}}}function wn(t){let e,l,n;function o(a){t[34](a)}let s={pageName:t[0].partName};return t[13]!==void 0&&(s.storeName=t[13]),e=new pn({props:s}),Le.push(()=>Pe(e,"storeName",o)),{c(){De(e.$$.fragment)},l(a){Oe(e.$$.fragment,a)},m(a,c){Ee(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],Ie(()=>l=!1)),e.$set(u)},i(a){n||(be(e.$$.fragment,a),n=!0)},o(a){Ne(e.$$.fragment,a),n=!1},d(a){Ce(e,a)}}}function Dn(t){let e;return{c(){e=q("unknown")},l(l){e=G(l,"unknown")},m(l,n){x(l,e,n)},p:Ue,d(l){l&&k(e)}}}function On(t){let e,l,n,o=we(t[61].dropdown),s=[];for(let c=0;c<o.length;c+=1)s[c]=Zt(Gt(t,o,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){x(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=Z(e,"change",a),l=!0)},p(c,u){if(t=c,u[0]&32){o=we(t[61].dropdown);let i;for(i=0;i<o.length;i+=1){const m=Gt(t,o,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=o.length}u[0]&524321&&ot(e,t[19][t[0].partName][t[61].name])},d(c){c&&k(e),Xe(s,c),l=!1,n()}}}function En(t){let e,l,n,o=we(["Off","On"]),s=[];for(let c=0;c<2;c+=1)s[c]=Ln(Nn(t,o,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){x(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=Z(e,"change",a),l=!0)},p(c,u){t=c,u[0]&524321&&ot(e,t[19][t[0].partName][t[61].name])},d(c){c&&k(e),Xe(s,c),l=!1,n()}}}function Cn(t){let e,l,n,o,s,a,c,u,i,m,h;function N(){t[38].call(e,t[61])}function v(){t[39].call(a,t[61])}return{c(){e=_("input"),s=I(),a=_("input"),this.h()},l(d){e=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),s=P(d),a=p(d,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),this.h()},h(){f(e,"type","number"),f(e,"min",l=t[61].min),f(e,"max",n=t[61].max),f(e,"step",o=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){x(d,e,b),ve(e,t[19][t[0].partName][t[61].name]),x(d,s,b),x(d,a,b),ve(a,t[19][t[0].partName][t[61].name]),m||(h=[Z(e,"input",N),Z(e,"change",t[21]),Z(a,"change",v),Z(a,"input",v),Z(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&&o!==(o=t[61].step)&&f(e,"step",o),b[0]&524321&&_t(e.value)!==t[19][t[0].partName][t[61].name]&&ve(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&&ve(a,t[19][t[0].partName][t[61].name])},d(d){d&&(k(e),k(s),k(a)),m=!1,Ye(h)}}}function Zt(t){let e,l=t[64]+"",n;return{c(){e=_("option"),n=q(l),this.h()},l(o){e=p(o,"OPTION",{});var s=S(e);n=G(s,l),s.forEach(k),this.h()},h(){e.__value=t[66],ve(e,e.__value)},m(o,s){x(o,e,s),r(e,n)},p(o,s){s[0]&32&&l!==(l=o[64]+"")&&pe(n,l)},d(o){o&&k(e)}}}function Ln(t){let e,l;return{c(){e=_("option"),l=q(t[64]),this.h()},l(n){e=p(n,"OPTION",{});var o=S(e);l=G(o,t[64]),o.forEach(k),this.h()},h(){e.__value=t[66],ve(e,e.__value)},m(n,o){x(n,e,o),r(e,l)},p:Ue,d(n){n&&k(e)}}}function Jt(t){let e,l,n=t[60]+1+"",o,s,a=t[63]+1+"",c,u,i,m,h=t[61].name+"",N,v,d,b,T,g=t[61].unit+"",D,E,O,z=t[61].init+"",y,A,w,C=t[61].min+"",U,M,X,B=t[61].max+"",F,J,$,te=t[61].step+"",le,ue,ie;function _e(){return t[37](t[61])}function Te(se,Y){return se[61].pType===wt.eNumber?Cn:se[61].pType===wt.eCheckbox?En:se[61].pType===wt.eDropdown?On:Dn}let j=Te(t),H=j(t);return{c(){e=_("tr"),l=_("td"),o=q(n),s=q("."),c=q(a),u=I(),i=_("td"),m=_("button"),N=q(h),v=I(),d=_("td"),H.c(),b=I(),T=_("td"),D=q(g),E=I(),O=_("td"),y=q(z),A=I(),w=_("td"),U=q(C),M=I(),X=_("td"),F=q(B),J=I(),$=_("td"),le=q(te),this.h()},l(se){e=p(se,"TR",{class:!0});var Y=S(e);l=p(Y,"TD",{class:!0});var ae=S(l);o=G(ae,n),s=G(ae,"."),c=G(ae,a),ae.forEach(k),u=P(Y),i=p(Y,"TD",{class:!0});var K=S(i);m=p(K,"BUTTON",{class:!0});var he=S(m);N=G(he,h),he.forEach(k),K.forEach(k),v=P(Y),d=p(Y,"TD",{class:!0});var fe=S(d);H.l(fe),fe.forEach(k),b=P(Y),T=p(Y,"TD",{class:!0});var L=S(T);D=G(L,g),L.forEach(k),E=P(Y),O=p(Y,"TD",{class:!0});var V=S(O);y=G(V,z),V.forEach(k),A=P(Y),w=p(Y,"TD",{class:!0});var Q=S(w);U=G(Q,C),Q.forEach(k),M=P(Y),X=p(Y,"TD",{class:!0});var ee=S(X);F=G(ee,B),ee.forEach(k),J=P(Y),$=p(Y,"TD",{class:!0});var me=S($);le=G(me,te),me.forEach(k),Y.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($,"class","svelte-1g5tt44"),f(e,"class","svelte-1g5tt44"),Be(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},m(se,Y){x(se,e,Y),r(e,l),r(l,o),r(l,s),r(l,c),r(e,u),r(e,i),r(i,m),r(m,N),r(e,v),r(e,d),H.m(d,null),r(e,b),r(e,T),r(T,D),r(e,E),r(e,O),r(O,y),r(e,A),r(e,w),r(w,U),r(e,M),r(e,X),r(X,F),r(e,J),r(e,$),r($,le),ue||(ie=Z(m,"click",_e),ue=!0)},p(se,Y){t=se,Y[0]&32&&h!==(h=t[61].name+"")&&pe(N,h),j===(j=Te(t))&&H?H.p(t,Y):(H.d(1),H=j(t),H&&(H.c(),H.m(d,null))),Y[0]&32&&g!==(g=t[61].unit+"")&&pe(D,g),Y[0]&32&&z!==(z=t[61].init+"")&&pe(y,z),Y[0]&32&&C!==(C=t[61].min+"")&&pe(U,C),Y[0]&32&&B!==(B=t[61].max+"")&&pe(F,B),Y[0]&32&&te!==(te=t[61].step+"")&&pe(le,te),Y[0]&524321&&Be(e,"changed",t[19][t[0].partName][t[61].name]!==t[61].init)},d(se){se&&k(e),H.d(),ue=!1,ie()}}}function Qt(t){let e,l,n=t[60]+1+"",o,s,a,c=t[58].sectionName+"",u,i,m,h,N,v,d,b="",T,g,D,E,O;function z(){t[36].call(N,t[58])}let y=we(t[58].params),A=[];for(let w=0;w<y.length;w+=1)A[w]=Jt(qt(t,y,w));return{c(){e=_("tr"),l=_("td"),o=q(n),s=I(),a=_("td"),u=q(c),i=I(),m=_("td"),h=_("label"),N=_("input"),v=I(),d=_("span"),d.innerHTML=b,T=I(),g=_("tbody");for(let w=0;w<A.length;w+=1)A[w].c();D=I(),this.h()},l(w){e=p(w,"TR",{class:!0});var C=S(e);l=p(C,"TD",{class:!0});var U=S(l);o=G(U,n),U.forEach(k),s=P(C),a=p(C,"TD",{colspan:!0,class:!0});var M=S(a);u=G(M,c),M.forEach(k),i=P(C),m=p(C,"TD",{colspan:!0,class:!0});var X=S(m);h=p(X,"LABEL",{class:!0});var B=S(h);N=p(B,"INPUT",{type:!0,class:!0}),v=P(B),d=p(B,"SPAN",{class:!0,"data-svelte-h":!0}),re(d)!=="svelte-1qufua2"&&(d.innerHTML=b),B.forEach(k),X.forEach(k),C.forEach(k),T=P(w),g=p(w,"TBODY",{class:!0});var F=S(g);for(let J=0;J<A.length;J+=1)A[J].l(F);D=P(F),F.forEach(k),this.h()},h(){f(l,"class","svelte-1g5tt44"),f(a,"colspan","4"),f(a,"class","svelte-1g5tt44"),f(N,"type","checkbox"),f(N,"class","svelte-1g5tt44"),f(d,"class","svelte-1g5tt44"),f(h,"class","svelte-1g5tt44"),f(m,"colspan","3"),f(m,"class","svelte-1g5tt44"),f(e,"class","separator svelte-1g5tt44"),f(g,"class","svelte-1g5tt44"),Be(g,"collaps",t[18][t[58].sectionID])},m(w,C){x(w,e,C),r(e,l),r(l,o),r(e,s),r(e,a),r(a,u),r(e,i),r(e,m),r(m,h),r(h,N),N.checked=t[18][t[58].sectionID],r(h,v),r(h,d),x(w,T,C),x(w,g,C);for(let U=0;U<A.length;U+=1)A[U]&&A[U].m(g,null);r(g,D),E||(O=Z(N,"change",z),E=!0)},p(w,C){if(t=w,C[0]&32&&c!==(c=t[58].sectionName+"")&&pe(u,c),C[0]&262176&&(N.checked=t[18][t[58].sectionID]),C[0]&271056929){y=we(t[58].params);let U;for(U=0;U<y.length;U+=1){const M=qt(t,y,U);A[U]?A[U].p(M,C):(A[U]=Jt(M),A[U].c(),A[U].m(g,D))}for(;U<A.length;U+=1)A[U].d(1);A.length=y.length}C[0]&262176&&Be(g,"collaps",t[18][t[58].sectionID])},d(w){w&&(k(e),k(T),k(g)),Xe(A,w),E=!1,O()}}}function Sn(t){let e,l="Copy this URL and send it to your friends!",n,o,s;return{c(){e=_("p"),e.textContent=l,n=I(),o=_("p"),s=q(t[15]),this.h()},l(a){e=p(a,"P",{"data-svelte-h":!0}),re(e)!=="svelte-1kscrpk"&&(e.textContent=l),n=P(a),o=p(a,"P",{class:!0});var c=S(o);s=G(c,t[15]),c.forEach(k),this.h()},h(){f(o,"class","cUrl svelte-1g5tt44")},m(a,c){x(a,e,c),x(a,n,c),x(a,o,c),r(o,s)},p(a,c){c[0]&32768&&pe(s,a[15])},d(a){a&&(k(e),k(n),k(o))}}}function jn(t){let e,l,n;function o(a){t[45](a)}let s={pageName:t[0].partName};return t[14]!==void 0&&(s.storeName=t[14]),e=new dn({props:s}),Le.push(()=>Pe(e,"storeName",o)),{c(){De(e.$$.fragment)},l(a){Oe(e.$$.fragment,a)},m(a,c){Ee(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],Ie(()=>l=!1)),e.$set(u)},i(a){n||(be(e.$$.fragment,a),n=!0)},o(a){Ne(e.$$.fragment,a),n=!1},d(a){Ce(e,a)}}}function In(t){let e,l,n="Parameters",o,s,a,c="Load Params from File",u,i,m,h,N="Set Params Default",v,d,b="Load Params from localStorage",T,g,D,E,O,z,y,A,w,C,U,M='<tr class="svelte-1g5tt44"><td class="svelte-1g5tt44">#</td> <td class="svelte-1g5tt44">Parameter name</td> <td class="svelte-1g5tt44">Value</td> <td class="svelte-1g5tt44">Unit</td> <td class="svelte-1g5tt44">Default</td> <td class="svelte-1g5tt44">Min</td> <td class="svelte-1g5tt44">Max</td> <td class="svelte-1g5tt44">Step</td></tr>',X,B,F,J,$="Comment:",te,le,ue,ie,_e="Save Parameters to File",Te,j,H="Save Parameters as URL",se,Y,ae="Save Parameters to localStorage",K,he,fe,L,V,Q,ee,me,ce,ke,Ae,je,Ze,Je,xe,qe,pt,R,oe,ge,ye,He;function Qe(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}),Le.push(()=>Pe(g,"modalOpen",Qe));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}),Le.push(()=>Pe(O,"modalOpen",kt));let et=we(t[5]),Se=[];for(let W=0;W<et.length;W+=1)Se[W]=Qt(Kt(t,et,W));function Lt(W){t[44](W)}let Ve={okName:"Done",okFunc:Pn,sizeLarge:!0,$$slots:{default:[Sn]},$$scope:{ctx:t}};t[11]!==void 0&&(Ve.modalOpen=t[11]),he=new gt({props:Ve}),Le.push(()=>Pe(he,"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]),V=new gt({props:St}),Le.push(()=>Pe(V,"modalOpen",Nl));function Tl(W){t[47](W)}let jt={svgPath:t[16]};return t[17]!==void 0&&(jt.modalOpen=t[17]),me=new gl({props:jt}),Le.push(()=>Pe(me,"modalOpen",Tl)),qe=new Yt({props:{pageName:t[0].partName,fgeom:t[1],selFace:t[2],zAdjust:t[20],simTime:t[4]}}),oe=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,o=I(),s=_("main"),a=_("label"),a.textContent=c,u=I(),i=_("input"),m=I(),h=_("button"),h.textContent=N,v=I(),d=_("button"),d.textContent=b,T=I(),De(g.$$.fragment),E=I(),De(O.$$.fragment),y=I(),A=_("textarea"),w=I(),C=_("table"),U=_("thead"),U.innerHTML=M,X=I();for(let W=0;W<Se.length;W+=1)Se[W].c();B=I(),F=_("div"),J=_("label"),J.textContent=$,te=I(),le=_("input"),ue=I(),ie=_("button"),ie.textContent=_e,Te=I(),j=_("button"),j.textContent=H,se=I(),Y=_("button"),Y.textContent=ae,K=I(),De(he.$$.fragment),L=I(),De(V.$$.fragment),ee=I(),De(me.$$.fragment),ke=I(),Ae=_("button"),je=_("img"),Je=I(),xe=_("div"),De(qe.$$.fragment),pt=I(),R=_("div"),De(oe.$$.fragment),this.h()},l(W){e=p(W,"SECTION",{class:!0});var ne=S(e);l=p(ne,"H2",{class:!0,"data-svelte-h":!0}),re(l)!=="svelte-1mc497a"&&(l.textContent=n),o=P(ne),s=p(ne,"MAIN",{class:!0});var de=S(s);a=p(de,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),re(a)!=="svelte-zt7rok"&&(a.textContent=c),u=P(de),i=p(de,"INPUT",{id:!0,type:!0,accept:!0,class:!0}),m=P(de),h=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),re(h)!=="svelte-1typ5"&&(h.textContent=N),v=P(de),d=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),re(d)!=="svelte-187bpo6"&&(d.textContent=b),T=P(de),Oe(g.$$.fragment,de),E=P(de),Oe(O.$$.fragment,de),y=P(de),A=p(de,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(A).forEach(k),w=P(de),C=p(de,"TABLE",{class:!0});var tt=S(C);U=p(tt,"THEAD",{class:!0,"data-svelte-h":!0}),re(U)!=="svelte-1szl7uo"&&(U.innerHTML=M),X=P(tt);for(let Ge=0;Ge<Se.length;Ge+=1)Se[Ge].l(tt);tt.forEach(k),B=P(de),F=p(de,"DIV",{class:!0});var lt=S(F);J=p(lt,"LABEL",{for:!0,"data-svelte-h":!0}),re(J)!=="svelte-gqskth"&&(J.textContent=$),te=P(lt),le=p(lt,"INPUT",{type:!0,id:!0,maxlength:!0,size:!0}),lt.forEach(k),ue=P(de),ie=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),re(ie)!=="svelte-1ny58g0"&&(ie.textContent=_e),Te=P(de),j=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),re(j)!=="svelte-11or0m2"&&(j.textContent=H),se=P(de),Y=p(de,"BUTTON",{class:!0,"data-svelte-h":!0}),re(Y)!=="svelte-5zdtrl"&&(Y.textContent=ae),K=P(de),Oe(he.$$.fragment,de),L=P(de),Oe(V.$$.fragment,de),de.forEach(k),ee=P(ne),Oe(me.$$.fragment,ne),ke=P(ne),Ae=p(ne,"BUTTON",{class:!0});var ut=S(Ae);je=p(ut,"IMG",{src:!0,alt:!0,class:!0}),ut.forEach(k),Je=P(ne),xe=p(ne,"DIV",{class:!0});var mt=S(xe);Oe(qe.$$.fragment,mt),mt.forEach(k),pt=P(ne),R=p(ne,"DIV",{class:!0});var nt=S(R);Oe(oe.$$.fragment,nt),nt.forEach(k),ne.forEach(k),this.h()},h(){f(l,"class","svelte-1g5tt44"),f(a,"for","loadFParams"),f(a,"class","fileUpload svelte-1g5tt44"),f(i,"id","loadFParams"),f(i,"type","file"),f(i,"accept","text/plain, application/json"),f(i,"class","svelte-1g5tt44"),f(h,"class","svelte-1g5tt44"),f(d,"class","svelte-1g5tt44"),f(A,"rows","3"),f(A,"cols","80"),A.readOnly=!0,f(A,"wrap","off"),A.value=t[7],f(A,"class","svelte-1g5tt44"),Be(A,"colorWarn",t[8]),f(U,"class","svelte-1g5tt44"),f(C,"class","svelte-1g5tt44"),f(J,"for","inComment"),f(le,"type","text"),f(le,"id","inComment"),f(le,"maxlength","150"),f(le,"size","70"),f(F,"class","comment svelte-1g5tt44"),f(ie,"class","svelte-1g5tt44"),f(j,"class","svelte-1g5tt44"),f(Y,"class","svelte-1g5tt44"),f(s,"class","svelte-1g5tt44"),ht(je.src,Ze=t[16])||f(je,"src",Ze),f(je,"alt",t[16]),f(je,"class","svelte-1g5tt44"),f(Ae,"class","side-img svelte-1g5tt44"),f(xe,"class","mini-canvas svelte-1g5tt44"),f(R,"class","mini-canvas svelte-1g5tt44"),f(e,"class","svelte-1g5tt44")},m(W,ne){x(W,e,ne),r(e,l),r(e,o),r(e,s),r(s,a),r(s,u),r(s,i),r(s,m),r(s,h),r(s,v),r(s,d),r(s,T),Ee(g,s,null),r(s,E),Ee(O,s,null),r(s,y),r(s,A),r(s,w),r(s,C),r(C,U),r(C,X);for(let de=0;de<Se.length;de+=1)Se[de]&&Se[de].m(C,null);r(s,B),r(s,F),r(F,J),r(F,te),r(F,le),ve(le,t[6]),r(s,ue),r(s,ie),r(s,Te),r(s,j),r(s,se),r(s,Y),r(s,K),Ee(he,s,null),r(s,L),Ee(V,s,null),r(e,ee),Ee(me,e,null),r(e,ke),r(e,Ae),r(Ae,je),r(e,Je),r(e,xe),Ee(qe,xe,null),r(e,pt),r(e,R),Ee(oe,R,null),ge=!0,ye||(He=[Z(i,"change",t[22]),Z(h,"click",t[31]),Z(d,"click",t[32]),Z(le,"input",t[42]),Z(ie,"click",t[23]),Z(j,"click",t[27]),Z(Y,"click",t[43]),Z(Ae,"click",t[29])],ye=!0)},p(W,ne){const de={};ne[2]&64&&(de.$$scope={dirty:ne,ctx:W}),!D&&ne[0]&512&&(D=!0,de.modalOpen=W[9],Ie(()=>D=!1)),g.$set(de);const tt={};if(ne[0]&8193|ne[2]&64&&(tt.$$scope={dirty:ne,ctx:W}),!z&&ne[0]&1024&&(z=!0,tt.modalOpen=W[10],Ie(()=>z=!1)),O.$set(tt),(!ge||ne[0]&128)&&(A.value=W[7]),(!ge||ne[0]&256)&&Be(A,"colorWarn",W[8]),ne[0]&271319073){et=we(W[5]);let We;for(We=0;We<et.length;We+=1){const It=Kt(W,et,We);Se[We]?Se[We].p(It,ne):(Se[We]=Qt(It),Se[We].c(),Se[We].m(C,null))}for(;We<Se.length;We+=1)Se[We].d(1);Se.length=et.length}ne[0]&64&&le.value!==W[6]&&ve(le,W[6]);const lt={};ne[0]&32768|ne[2]&64&&(lt.$$scope={dirty:ne,ctx:W}),!fe&&ne[0]&2048&&(fe=!0,lt.modalOpen=W[11],Ie(()=>fe=!1)),he.$set(lt);const ut={};ne[0]&16385|ne[2]&64&&(ut.$$scope={dirty:ne,ctx:W}),!Q&&ne[0]&4096&&(Q=!0,ut.modalOpen=W[12],Ie(()=>Q=!1)),V.$set(ut);const mt={};ne[0]&65536&&(mt.svgPath=W[16]),!ce&&ne[0]&131072&&(ce=!0,mt.modalOpen=W[17],Ie(()=>ce=!1)),me.$set(mt),(!ge||ne[0]&65536&&!ht(je.src,Ze=W[16]))&&f(je,"src",Ze),(!ge||ne[0]&65536)&&f(je,"alt",W[16]);const nt={};ne[0]&1&&(nt.pageName=W[0].partName),ne[0]&2&&(nt.fgeom=W[1]),ne[0]&4&&(nt.selFace=W[2]),ne[0]&16&&(nt.simTime=W[4]),qe.$set(nt);const Ge={};ne[0]&1&&(Ge.pageName=W[0].partName),ne[0]&2&&(Ge.fgeom=W[1]),ne[0]&4&&(Ge.selFace=W[2]),ne[0]&8&&(Ge.zAdjust=W[3]),ne[0]&16&&(Ge.simTime=W[4]),oe.$set(Ge)},i(W){ge||(be(g.$$.fragment,W),be(O.$$.fragment,W),be(he.$$.fragment,W),be(V.$$.fragment,W),be(me.$$.fragment,W),be(qe.$$.fragment,W),be(oe.$$.fragment,W),ge=!0)},o(W){Ne(g.$$.fragment,W),Ne(O.$$.fragment,W),Ne(he.$$.fragment,W),Ne(V.$$.fragment,W),Ne(me.$$.fragment,W),Ne(qe.$$.fragment,W),Ne(oe.$$.fragment,W),ge=!1},d(W){W&&k(e),Ce(g),Ce(O),Xe(Se,W),Ce(he),Ce(V),Ce(me),Ce(qe),Ce(oe),ye=!1,Ye(He)}}}function Pn(){}function An(t){const e={};for(const l of t)e[l.sectionID]=l.sectionVisible;return e}function Un(t,e,l){let n,o;at(t,Ke,R=>l(19,n=R)),at(t,ql,R=>l(48,o=R));const s=ml();let{pDef:a}=e,{fgeom:c}=e,{selFace:u}=e,{zAdjust:i}=e,{simTime:m=0}=e;const h=_l();let N="";function v(){s("paramChg",{foo:"bla"})}function d(R,oe){let ge="",ye=!1;R!==a.partName&&(ge+=`warn361: read partName: '${R}' expected partName: '${a.partName}'
2
+ `,ye=!0);let He=0,Qe=0,rt=0;const kt=[];for(const Ve of a.params)kt.push(Ve.name),Object.hasOwn(oe,Ve.name)?(He+=1,n[a.partName][Ve.name]===oe[Ve.name]?rt+=1:Il(Ke,n[a.partName][Ve.name]=oe[Ve.name],n)):Qe+=1;let it=0;for(const Ve of Object.keys(oe))kt.includes(Ve)||(it+=1,ge+=`warn363: parameter ${Ve} not in the scope of the design (${it})
3
+ `);const et=it>0;return ge+=`Params loaded at ${new Date().toLocaleTimeString()} :`,ge+=` def-nb: ${Object.keys(a.params).length}`,ge+=`, cover-nb: ${He}, uncover-nb: ${Qe}
4
+ `,ge+=` load-nb: ${Object.keys(oe).length}`,ge+=`, equal-nb: ${rt}, changed-nb: ${He-rt}`,ge+=`, out-of-scope: ${it}`,[ge,ye||et]}let b="",T=!1;function g(){{const R=new URLSearchParams(o.url.search),oe={};for(const[ge,ye]of R){const He=Number(ye);isNaN(He)||(oe[ge]=He)}Object.keys(oe).length>0&&l(7,[b,T]=d(a.partName,oe),b,l(8,T))}}function D(){g(),v()}Ct(()=>{D()});function E(R){try{const[oe]=yl(R);l(7,[b,T]=d(oe.partName,oe.pVal),b,l(8,T)),l(6,N=oe.comment),v()}catch(oe){let ge=`err723: error by parsing parameter file
5
+ `;ge+=oe,l(7,b=ge),l(8,T=!0)}}async function O(R){const oe=await R.text();E(oe)}function z(R){if(R.target){const oe=R.target.files;oe&&O(oe[0])}}function y(){bl(a.partName,n[a.partName],N)}let A=!1,w=!1,C=!1,U=!1;function M(){const R={};for(const oe of a.params)R[oe.name]=oe.init;l(7,[b,T]=d(a.partName,R),b,l(8,T))}let X;function B(){if(X!==void 0&&X!==""){const R=`${a.partName}_${X}`;{const oe=window.localStorage.getItem(R);oe===null?(l(7,b=`Warn157: localStorage key ${R} is null`),l(8,T=!0)):E(oe)}}else l(7,b="Warn239: No valid name for loading from localStorage!"),l(8,T=!0)}let F;function J(){if(F!==void 0&&F!==""){const R=`${a.partName}_${F}`,oe=/\..*$/,ye=hl(new Date().toISOString().replace(oe,""),a.partName,n[a.partName],N);window.localStorage.setItem(R,ye)}else console.log("Warn639: No valid name for writing to localStorage!")}let $="";function te(){return kn(o.url.href,n[a.partName],!1).toString()}function le(){l(15,$=te()),l(11,C=!0)}let ue=`${vt}/pgdsvg/default_param_blank.svg`;function ie(R){l(16,ue=`${vt}/pgdsvg/default_param_blank.svg`),Object.keys(a.paramSvg).includes(R)&&l(16,ue=`${vt}/pgdsvg/${a.paramSvg[R]}`)}let _e="";function Te(R,oe){if(_e!==a.partName){const ge=Object.keys(n[oe]).length;R<ge&&ie(Object.keys(n[oe])[R])}}let j=!1;function H(){l(17,j=!0)}function se(R){const oe=[];let ye={sectionName:"main",sectionID:"g0main",sectionVisible:!1,params:[]},He=0;for(const Qe of R)Qe.pType===wt.eSectionSeparator?(oe.push(ye),He+=1,ye={sectionName:Qe.name,sectionID:`g${He}${Qe.name}`,sectionVisible:!0,params:[]}):ye.params.push(Qe);return oe.push(ye),oe}let Y,ae;const K=()=>{l(9,A=!0)},he=()=>{l(10,w=!0)};function fe(R){A=R,l(9,A)}function L(R){X=R,l(13,X)}function V(R){w=R,l(10,w)}function Q(R){ae[R.sectionID]=this.checked,l(18,ae),l(0,a),l(30,_e),l(5,Y)}const ee=R=>ie(R.name);function me(R){n[a.partName][R.name]=_t(this.value),Ke.set(n)}function ce(R){n[a.partName][R.name]=_t(this.value),Ke.set(n)}function ke(R){n[a.partName][R.name]=Dt(this),Ke.set(n)}function Ae(R){n[a.partName][R.name]=Dt(this),Ke.set(n)}function je(){N=this.value,l(6,N)}const Ze=()=>{l(12,U=!0)};function Je(R){C=R,l(11,C)}function xe(R){F=R,l(14,F)}function qe(R){U=R,l(12,U)}function pt(R){j=R,l(17,j)}return t.$$set=R=>{"pDef"in R&&l(0,a=R.pDef),"fgeom"in R&&l(1,c=R.fgeom),"selFace"in R&&l(2,u=R.selFace),"zAdjust"in R&&l(3,i=R.zAdjust),"simTime"in R&&l(4,m=R.simTime)},t.$$.update=()=>{t.$$.dirty[0]&1&&Te(0,a.partName),t.$$.dirty[0]&1073741857&&(l(5,Y=se(a.params)),_e!==a.partName&&(l(30,_e=a.partName),l(18,ae=An(Y))))},[a,c,u,i,m,Y,N,b,T,A,w,C,U,X,F,$,ue,j,ae,n,h,v,z,y,M,B,J,le,ie,H,_e,K,he,fe,L,V,Q,ee,me,ce,ke,Ae,je,Ze,Je,xe,qe,pt]}class zn extends Me{constructor(e){super(),Fe(this,e,Un,In,ze,{pDef:0,fgeom:1,selFace:2,zAdjust:3,simTime:4},null,[-1,-1,-1])}}function Mn(t){let e,l,n="0",o,s,a="<-",c,u,i="|<",m,h,N="||",v,d,b=">|",T,g,D="->",E,O,z,y,A,w;return{c(){e=_("nav"),l=_("button"),l.textContent=n,o=I(),s=_("button"),s.textContent=a,c=I(),u=_("button"),u.textContent=i,m=I(),h=_("button"),h.textContent=N,v=I(),d=_("button"),d.textContent=b,T=I(),g=_("button"),g.textContent=D,E=I(),O=_("input"),z=I(),y=_("input"),this.h()},l(C){e=p(C,"NAV",{class:!0});var U=S(e);l=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(l)!=="svelte-sw7vi1"&&(l.textContent=n),o=P(U),s=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(s)!=="svelte-gbiqvp"&&(s.textContent=a),c=P(U),u=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(u)!=="svelte-10nqggx"&&(u.textContent=i),m=P(U),h=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(h)!=="svelte-1xmh6xn"&&(h.textContent=N),v=P(U),d=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(d)!=="svelte-1wuqlom"&&(d.textContent=b),T=P(U),g=p(U,"BUTTON",{class:!0,"data-svelte-h":!0}),re(g)!=="svelte-1vey426"&&(g.textContent=D),E=P(U),O=p(U,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),z=P(U),y=p(U,"INPUT",{type:!0,min:!0,max:!0,step:!0,class:!0}),U.forEach(k),this.h()},h(){f(l,"class","svelte-uw6ahn"),f(s,"class","svelte-uw6ahn"),f(u,"class","svelte-uw6ahn"),f(h,"class","svelte-uw6ahn"),f(d,"class","svelte-uw6ahn"),f(g,"class","svelte-uw6ahn"),f(O,"type","range"),f(O,"min","0"),f(O,"max",t[1]),f(O,"step",t[2]),f(O,"class","svelte-uw6ahn"),f(y,"type","number"),f(y,"min","0"),f(y,"max",t[1]),f(y,"step",t[2]),f(y,"class","svelte-uw6ahn"),f(e,"class","svelte-uw6ahn")},m(C,U){x(C,e,U),r(e,l),r(e,o),r(e,s),r(e,c),r(e,u),r(e,m),r(e,h),r(e,v),r(e,d),r(e,T),r(e,g),r(e,E),r(e,O),ve(O,t[0]),r(e,z),r(e,y),ve(y,t[0]),A||(w=[Z(l,"click",t[3]),Z(s,"click",t[6]),Z(u,"click",t[4]),Z(h,"click",t[8]),Z(d,"click",t[5]),Z(g,"click",t[7]),Z(O,"change",t[10]),Z(O,"input",t[10]),Z(y,"input",t[11])],A=!0)},p(C,[U]){U&2&&f(O,"max",C[1]),U&4&&f(O,"step",C[2]),U&1&&ve(O,C[0]),U&2&&f(y,"max",C[1]),U&4&&f(y,"step",C[2]),U&1&&_t(y.value)!==C[0]&&ve(y,C[0])},i:Ue,o:Ue,d(C){C&&k(e),A=!1,Ye(w)}}}const $t=4;function Fn(t,e,l){let{tMax:n=10}=e,{tStep:o=.1}=e,{tUpdate:s=500}=e,{simTime:a=0}=e,c=null,u=0,i;function m(){c!==null&&(clearInterval(c),c=null)}function h(){i<0&&a<=0?l(0,a=n):i>0&&a>=n?l(0,a=0):l(0,a+=i)}function N(){const z=s/2**(Math.abs(u)-1);i=u<0?-o:o,c=setInterval(h,z)}function v(){m(),l(0,a=0),u=0}function d(){m(),u=0,i=-o,h()}function b(){m(),u=0,i=o,h()}function T(){m(),u=Math.max(u-1,-$t),N()}function g(){m(),u=Math.min(u+1,$t),N()}function D(){m(),u=0}Pl(()=>{});function E(){a=_t(this.value),l(0,a)}function O(){a=_t(this.value),l(0,a)}return t.$$set=z=>{"tMax"in z&&l(1,n=z.tMax),"tStep"in z&&l(2,o=z.tStep),"tUpdate"in z&&l(9,s=z.tUpdate),"simTime"in z&&l(0,a=z.simTime)},[a,n,o,v,d,b,T,g,D,s,E,O]}class yn extends Me{constructor(e){super(),Fe(this,e,Fn,Mn,ze,{tMax:1,tStep:2,tUpdate:9,simTime:0})}}function Bn(t){let e,l,n='<div class="zero svelte-c549k7"></div>',o,s,a='<div class="zoomin svelte-c549k7"></div>',c,u,i='<div class="zoomout svelte-c549k7"></div>',m,h,N='<div class="arrowleft svelte-c549k7"></div>',v,d,b='<div class="arrowright svelte-c549k7"></div>',T,g,D='<div class="arrowup svelte-c549k7"></div>',E,O,z='<div class="arrowdown svelte-c549k7"></div>',y,A;return{c(){e=_("nav"),l=_("button"),l.innerHTML=n,o=I(),s=_("button"),s.innerHTML=a,c=I(),u=_("button"),u.innerHTML=i,m=I(),h=_("button"),h.innerHTML=N,v=I(),d=_("button"),d.innerHTML=b,T=I(),g=_("button"),g.innerHTML=D,E=I(),O=_("button"),O.innerHTML=z,this.h()},l(w){e=p(w,"NAV",{class:!0});var C=S(e);l=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(l)!=="svelte-nkdg6y"&&(l.innerHTML=n),o=P(C),s=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(s)!=="svelte-nbpwn1"&&(s.innerHTML=a),c=P(C),u=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(u)!=="svelte-toyuqt"&&(u.innerHTML=i),m=P(C),h=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(h)!=="svelte-vbdqb3"&&(h.innerHTML=N),v=P(C),d=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(d)!=="svelte-a55vyt"&&(d.innerHTML=b),T=P(C),g=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(g)!=="svelte-ky9277"&&(g.innerHTML=D),E=P(C),O=p(C,"BUTTON",{class:!0,"data-svelte-h":!0}),re(O)!=="svelte-1obyap9"&&(O.innerHTML=z),C.forEach(k),this.h()},h(){f(l,"class","svelte-c549k7"),f(s,"class","svelte-c549k7"),f(u,"class","svelte-c549k7"),f(h,"class","svelte-c549k7"),f(d,"class","svelte-c549k7"),f(g,"class","svelte-c549k7"),f(O,"class","svelte-c549k7"),f(e,"class","svelte-c549k7")},m(w,C){x(w,e,C),r(e,l),r(e,o),r(e,s),r(e,c),r(e,u),r(e,m),r(e,h),r(e,v),r(e,d),r(e,T),r(e,g),r(e,E),r(e,O),y||(A=[Z(l,"click",t[1]),Z(s,"click",t[2]),Z(u,"click",t[3]),Z(h,"click",t[4]),Z(d,"click",t[5]),Z(g,"click",t[6]),Z(O,"click",t[7])],y=!0)},p:Ue,i:Ue,o:Ue,d(w){w&&k(e),y=!1,Ye(A)}}}function Rn(t){const e=ml();function l(m){e("myevent",{action:m})}return[l,()=>l("zoomInit"),()=>l("zoomIn"),()=>l("zoomOut"),()=>l("moveLeft"),()=>l("moveRight"),()=>l("moveUp"),()=>l("moveDown")]}class Hn extends Me{constructor(e){super(),Fe(this,e,Rn,Bn,ze,{})}}function Vn(t){let e,l,n,o,s,a,c,u,i,m,h,N,v,d,b,T,g,D,E,O,z,y,A,w,C,U,M,X,B,F,J,$,te,le,ue,ie,_e,Te,j,H,se,Y;return{c(){e=_("div"),l=_("label"),n=_("input"),o=q("main part"),s=I(),a=_("label"),c=_("input"),u=q("main skeleton"),i=I(),m=_("label"),h=_("input"),N=q("second parts"),v=I(),d=_("label"),b=_("input"),T=q("second skeletons"),g=I(),D=_("label"),E=_("input"),O=q("dynamics"),z=I(),y=_("label"),A=_("input"),w=q("ruler"),C=I(),U=_("label"),M=_("input"),X=q("frame of reference"),B=I(),F=_("label"),J=_("input"),$=q("points"),te=I(),le=_("label"),ue=_("input"),ie=q("lines"),_e=I(),Te=_("label"),j=_("input"),H=q("vectors"),this.h()},l(ae){e=p(ae,"DIV",{class:!0});var K=S(e);l=p(K,"LABEL",{class:!0});var he=S(l);n=p(he,"INPUT",{type:!0,class:!0}),o=G(he,"main part"),he.forEach(k),s=P(K),a=p(K,"LABEL",{class:!0});var fe=S(a);c=p(fe,"INPUT",{type:!0,class:!0}),u=G(fe,"main skeleton"),fe.forEach(k),i=P(K),m=p(K,"LABEL",{class:!0});var L=S(m);h=p(L,"INPUT",{type:!0,class:!0}),N=G(L,"second parts"),L.forEach(k),v=P(K),d=p(K,"LABEL",{class:!0});var V=S(d);b=p(V,"INPUT",{type:!0,class:!0}),T=G(V,"second skeletons"),V.forEach(k),g=P(K),D=p(K,"LABEL",{class:!0});var Q=S(D);E=p(Q,"INPUT",{type:!0,class:!0}),O=G(Q,"dynamics"),Q.forEach(k),z=P(K),y=p(K,"LABEL",{class:!0});var ee=S(y);A=p(ee,"INPUT",{type:!0,class:!0}),w=G(ee,"ruler"),ee.forEach(k),C=P(K),U=p(K,"LABEL",{class:!0});var me=S(U);M=p(me,"INPUT",{type:!0,class:!0}),X=G(me,"frame of reference"),me.forEach(k),B=P(K),F=p(K,"LABEL",{class:!0});var ce=S(F);J=p(ce,"INPUT",{type:!0,class:!0}),$=G(ce,"points"),ce.forEach(k),te=P(K),le=p(K,"LABEL",{class:!0});var ke=S(le);ue=p(ke,"INPUT",{type:!0,class:!0}),ie=G(ke,"lines"),ke.forEach(k),_e=P(K),Te=p(K,"LABEL",{class:!0});var Ae=S(Te);j=p(Ae,"INPUT",{type:!0,class:!0}),H=G(Ae,"vectors"),Ae.forEach(k),K.forEach(k),this.h()},h(){f(n,"type","checkbox"),f(n,"class","svelte-1rsbkj"),f(l,"class","svelte-1rsbkj"),f(c,"type","checkbox"),f(c,"class","svelte-1rsbkj"),f(a,"class","svelte-1rsbkj"),f(h,"type","checkbox"),f(h,"class","svelte-1rsbkj"),f(m,"class","svelte-1rsbkj"),f(b,"type","checkbox"),f(b,"class","svelte-1rsbkj"),f(d,"class","svelte-1rsbkj"),f(E,"type","checkbox"),f(E,"class","svelte-1rsbkj"),f(D,"class","svelte-1rsbkj"),f(A,"type","checkbox"),f(A,"class","svelte-1rsbkj"),f(y,"class","svelte-1rsbkj"),f(M,"type","checkbox"),f(M,"class","svelte-1rsbkj"),f(U,"class","svelte-1rsbkj"),f(J,"type","checkbox"),f(J,"class","svelte-1rsbkj"),f(F,"class","svelte-1rsbkj"),f(ue,"type","checkbox"),f(ue,"class","svelte-1rsbkj"),f(le,"class","svelte-1rsbkj"),f(j,"type","checkbox"),f(j,"class","svelte-1rsbkj"),f(Te,"class","svelte-1rsbkj"),f(e,"class","svelte-1rsbkj")},m(ae,K){x(ae,e,K),r(e,l),r(l,n),n.checked=t[0].main,r(l,o),r(e,s),r(e,a),r(a,c),c.checked=t[0].mainB,r(a,u),r(e,i),r(e,m),r(m,h),h.checked=t[0].second,r(m,N),r(e,v),r(e,d),r(d,b),b.checked=t[0].secondB,r(d,T),r(e,g),r(e,D),r(D,E),E.checked=t[0].dynamics,r(D,O),r(e,z),r(e,y),r(y,A),A.checked=t[0].ruler,r(y,w),r(e,C),r(e,U),r(U,M),M.checked=t[0].refframe,r(U,X),r(e,B),r(e,F),r(F,J),J.checked=t[0].points,r(F,$),r(e,te),r(e,le),r(le,ue),ue.checked=t[0].lines,r(le,ie),r(e,_e),r(e,Te),r(Te,j),j.checked=t[0].vectors,r(Te,H),se||(Y=[Z(n,"change",t[1]),Z(c,"change",t[2]),Z(h,"change",t[3]),Z(b,"change",t[4]),Z(E,"change",t[5]),Z(A,"change",t[6]),Z(M,"change",t[7]),Z(J,"change",t[8]),Z(ue,"change",t[9]),Z(j,"change",t[10])],se=!0)},p(ae,[K]){K&1&&(n.checked=ae[0].main),K&1&&(c.checked=ae[0].mainB),K&1&&(h.checked=ae[0].second),K&1&&(b.checked=ae[0].secondB),K&1&&(E.checked=ae[0].dynamics),K&1&&(A.checked=ae[0].ruler),K&1&&(M.checked=ae[0].refframe),K&1&&(J.checked=ae[0].points),K&1&&(ue.checked=ae[0].lines),K&1&&(j.checked=ae[0].vectors)},i:Ue,o:Ue,d(ae){ae&&k(e),se=!1,Ye(Y)}}}function Wn(t,e,l){let n;at(t,Re,d=>l(0,n=d));function o(){n.main=this.checked,Re.set(n)}function s(){n.mainB=this.checked,Re.set(n)}function a(){n.second=this.checked,Re.set(n)}function c(){n.secondB=this.checked,Re.set(n)}function u(){n.dynamics=this.checked,Re.set(n)}function i(){n.ruler=this.checked,Re.set(n)}function m(){n.refframe=this.checked,Re.set(n)}function h(){n.points=this.checked,Re.set(n)}function N(){n.lines=this.checked,Re.set(n)}function v(){n.vectors=this.checked,Re.set(n)}return[n,o,s,a,c,u,i,m,h,N,v]}class Xn extends Me{constructor(e){super(),Fe(this,e,Wn,Vn,ze,{})}}function xt(t,e,l){const n=t.slice();return n[36]=e[l],n}function el(t){let e,l=t[36]+"",n,o;return{c(){e=_("option"),n=q(l),this.h()},l(s){e=p(s,"OPTION",{});var a=S(e);n=G(a,l),a.forEach(k),this.h()},h(){e.__value=o=t[36],ve(e,e.__value)},m(s,a){x(s,e,a),r(e,n)},p(s,a){a[0]&8&&l!==(l=s[36]+"")&&pe(n,l),a[0]&8&&o!==(o=s[36])&&(e.__value=o,ve(e,e.__value))},d(s){s&&k(e)}}}function Yn(t){let e,l,n,o,s,a,c,u,i,m,h,N,v,d,b,T,g,D,E,O,z,y;bt(t[20]);let A=we(t[3]),w=[];for(let M=0;M<A.length;M+=1)w[M]=el(xt(t,A,M));u=new Xn({});function C(M){t[23](M)}let U={tMax:t[2].sim.tMax,tStep:t[2].sim.tStep,tUpdate:t[2].sim.tUpdate};return t[1]!==void 0&&(U.simTime=t[1]),v=new yn({props:U}),Le.push(()=>Pe(v,"simTime",C)),E=new Hn({}),E.$on("myevent",t[8]),{c(){e=_("section"),l=_("h2"),n=q(`Drawing
6
+ `),o=_("select");for(let M=0;M<w.length;M+=1)w[M].c();s=_("option"),a=q("All faces merged"),c=I(),De(u.$$.fragment),i=I(),m=_("div"),h=_("canvas"),N=I(),De(v.$$.fragment),b=I(),T=_("div"),g=_("canvas"),D=I(),De(E.$$.fragment),this.h()},l(M){e=p(M,"SECTION",{class:!0});var X=S(e);l=p(X,"H2",{class:!0});var B=S(l);n=G(B,`Drawing
7
+ `),o=p(B,"SELECT",{class:!0});var F=S(o);for(let le=0;le<w.length;le+=1)w[le].l(F);s=p(F,"OPTION",{});var J=S(s);a=G(J,"All faces merged"),J.forEach(k),F.forEach(k),B.forEach(k),c=P(X),Oe(u.$$.fragment,X),i=P(X),m=p(X,"DIV",{class:!0});var $=S(m);h=p($,"CANVAS",{class:!0,width:!0,height:!0}),S(h).forEach(k),N=P($),Oe(v.$$.fragment,$),$.forEach(k),b=P(X),T=p(X,"DIV",{class:!0});var te=S(T);g=p(te,"CANVAS",{class:!0,width:!0,height:!0}),S(g).forEach(k),D=P(te),Oe(E.$$.fragment,te),te.forEach(k),X.forEach(k),this.h()},h(){s.__value=kl,ve(s,s.__value),f(o,"class","svelte-s85el8"),t[0]===void 0&&bt(()=>t[21].call(o)),f(l,"class","svelte-s85el8"),f(h,"class","full svelte-s85el8"),f(h,"width",ft),f(h,"height",ft),f(m,"class","rack svelte-s85el8"),f(g,"class","zoom svelte-s85el8"),f(g,"width",ft),f(g,"height",ft),f(T,"class","rack svelte-s85el8"),f(e,"class","svelte-s85el8")},m(M,X){x(M,e,X),r(e,l),r(l,n),r(l,o);for(let B=0;B<w.length;B+=1)w[B]&&w[B].m(o,null);r(o,s),r(s,a),ot(o,t[0],!0),r(e,c),Ee(u,e,null),r(e,i),r(e,m),r(m,h),t[22](h),r(m,N),Ee(v,m,null),r(e,b),r(e,T),r(T,g),t[24](g),r(T,D),Ee(E,T,null),O=!0,z||(y=[Z(window,"resize",t[7]),Z(window,"resize",t[20]),Z(o,"change",t[21]),Z(h,"mousedown",t[9]),Z(h,"mouseup",t[10]),Z(h,"mousemove",t[11]),Z(g,"mousedown",t[12]),Z(g,"mousemove",t[13]),Z(g,"wheel",Al(t[14]))],z=!0)},p(M,X){if(X[0]&8){A=we(M[3]);let F;for(F=0;F<A.length;F+=1){const J=xt(M,A,F);w[F]?w[F].p(J,X):(w[F]=el(J),w[F].c(),w[F].m(o,s))}for(;F<w.length;F+=1)w[F].d(1);w.length=A.length}X[0]&9&&ot(o,M[0]);const B={};X[0]&4&&(B.tMax=M[2].sim.tMax),X[0]&4&&(B.tStep=M[2].sim.tStep),X[0]&4&&(B.tUpdate=M[2].sim.tUpdate),!d&&X[0]&2&&(d=!0,B.simTime=M[1],Ie(()=>d=!1)),v.$set(B)},i(M){O||(be(u.$$.fragment,M),be(v.$$.fragment,M),be(E.$$.fragment,M),O=!0)},o(M){Ne(u.$$.fragment,M),Ne(v.$$.fragment,M),Ne(E.$$.fragment,M),O=!1},d(M){M&&k(e),Xe(w,M),Ce(u),t[22](null),Ce(v),t[24](null),Ce(E),z=!1,Ye(y)}}}const kl="ParametrixAll",ft=400,Kn=3e3,Tt=10,tl=3;function qn(t,e){let l=e;if(t.length===0)console.log("warn404: Drawing has an empty face list");else{const n=t.slice();n.push(kl),n.includes(l)||(l=t[0])}return l}function Gn(t,e,l){let n,o;at(t,Re,j=>l(18,n=j)),at(t,Ke,j=>l(19,o=j));let{pDef:s}=e,{fgeom:a}=e,{optFaces:c}=e,{selFace:u}=e,{zAdjust:i}=e,{simTime:m=0}=e,h,N,v,d,b;function T(j){const H=N.getContext("2d");H.clearRect(0,0,H.canvas.width,H.canvas.height);try{b=d.getAdjustFull(H.canvas.width,H.canvas.height),d.draw(H,b,j)}catch(se){console.log(se)}}function g(j){const H=v.getContext("2d");H.clearRect(0,0,H.canvas.width,H.canvas.height);try{(i===void 0||i.init===0)&&l(15,i=d.getAdjustZoom(H.canvas.width,H.canvas.height)),d.draw(H,i,j)}catch(se){console.log(se)}}function D(){const j=N.getContext("2d"),H=Math.max(.4*h,ft);j.canvas.width=H,j.canvas.height=H}function E(){D(),T(n),g(n)}let O=0;function z(j,H,se,Y){const ae=a(j,H).fig,K=Object.keys(ae),he=qn(K,se);l(0,u=he),K.includes(he)?d=ae[he]:d=dl(ae),T(Y),g(Y)}function y(j,H){z(j,o[s.partName],H,n)}Ct(()=>{D(),y(m,u),l(17,O=1)});function A(j){switch(j.detail.action){case"zoomInit":l(15,i.init=0,i);break;case"zoomIn":l(15,i=Nt(.7,i));break;case"zoomOut":l(15,i=Nt(1.3,i));break;case"moveLeft":l(15,i.xMin+=-.2*i.xyDiff,i);break;case"moveRight":l(15,i.xMin+=.2*i.xyDiff,i);break;case"moveUp":l(15,i.yMin+=.2*i.xyDiff,i);break;case"moveDown":l(15,i.yMin+=-.2*i.xyDiff,i);break;default:console.log(`ERR423: ${j.detail.action} has no case!`)}g(n)}let w={timestamp:0,offsetX:0,offsetY:0};function C(j){j.button===0&&(w.timestamp=Date.now(),w.offsetX=j.offsetX,w.offsetY=j.offsetY)}function U(j){if(j.button===0)if(Date.now()-w.timestamp<Kn){const H=Math.abs(w.offsetX-j.offsetX),se=Math.abs(w.offsetY-j.offsetY);if(H<Tt&&se<Tt){const[Y,ae]=ct(j.offsetX,j.offsetY,b);l(15,i=Bl(Y,ae,i)),y(m,u)}if(H>Tt&&se>Tt){const Y=H/se,ae=1/Y;if(Y<tl&&ae<tl){const[K,he]=ct(j.offsetX,j.offsetY,b),[fe,L]=ct(w.offsetX,w.offsetY,b);l(15,i=Rl(K,he,fe,L,ft,ft)),y(m,u)}}}else console.log(`Warn205: ignore ${j.offsetX} ${j.offsetY} because too slow`)}function M(j){const H=N.getContext("2d");if(j.buttons===1){const se=j.offsetX-w.offsetX,Y=j.offsetY-w.offsetY;T(n),H.beginPath(),H.rect(w.offsetX,w.offsetY,se,Y),H.strokeStyle=Ot.mouse,H.stroke()}if(n.ruler){const[se,Y]=ct(j.offsetX,j.offsetY,b);H.clearRect(5,5,200,25),H.font="15px Arial",H.fillStyle=Ot.ruler,H.fillText(`x: ${se.toFixed(4)} y: ${Y.toFixed(4)}`,5,20)}}let X,B,F;function J(j){if(j.button===0){const[H,se]=ct(j.offsetX,j.offsetY,i);X=H,B=se,F=structuredClone(i)}}function $(j){if(j.buttons===1){const[H,se]=ct(j.offsetX,j.offsetY,F);l(15,i=Hl(X,B,H,se,F)),g(n)}else if(n.ruler){const H=v.getContext("2d"),[se,Y]=ct(j.offsetX,j.offsetY,i);H.clearRect(5,5,200,25),H.font="15px Arial",H.fillStyle=Ot.ruler,H.fillText(`x: ${se.toFixed(4)} y: ${Y.toFixed(4)}`,5,20)}}function te(j){j.deltaY>0?l(15,i=Nt(.7,i)):l(15,i=Nt(1.3,i)),g(n)}function le(){l(4,h=window.innerWidth)}function ue(){u=Dt(this),l(0,u),l(3,c)}function ie(j){Le[j?"unshift":"push"](()=>{N=j,l(5,N)})}function _e(j){m=j,l(1,m)}function Te(j){Le[j?"unshift":"push"](()=>{v=j,l(6,v)})}return t.$$set=j=>{"pDef"in j&&l(2,s=j.pDef),"fgeom"in j&&l(16,a=j.fgeom),"optFaces"in j&&l(3,c=j.optFaces),"selFace"in j&&l(0,u=j.selFace),"zAdjust"in j&&l(15,i=j.zAdjust),"simTime"in j&&l(1,m=j.simTime)},t.$$.update=()=>{t.$$.dirty[0]&917511&&O===1&&z(m,o[s.partName],u,n)},[u,m,s,c,h,N,v,E,A,C,U,M,J,$,te,i,a,O,n,o,le,ue,ie,_e,Te]}class Zn extends Me{constructor(e){super(),Fe(this,e,Gn,Yn,ze,{pDef:2,fgeom:16,optFaces:3,selFace:0,zAdjust:15,simTime:1},null,[-1,-1])}}function ll(t,e,l){const n=t.slice();return n[10]=e[l],n}function nl(t,e,l){const n=t.slice();return n[13]=e[l],n[15]=l,n}function sl(t){let e,l,n=t[15]+1+"",o,s,a,c=t[13]+"",u,i,m,h=t[0][t[10]].dparam[t[13]].val+"",N,v,d,b,T=t[0][t[10]].dparam[t[13]].init+"",g,D,E,O,z=ol(t[0][t[10]].dparam[t[13]].chg)+"",y,A;return{c(){e=_("tr"),l=_("td"),o=q(n),s=I(),a=_("td"),u=q(c),i=I(),m=_("td"),N=q(h),v=I(),d=_("td"),b=_("i"),g=q(T),D=I(),E=_("td"),O=_("i"),y=q(z),A=I(),this.h()},l(w){e=p(w,"TR",{class:!0});var C=S(e);l=p(C,"TD",{});var U=S(l);o=G(U,n),U.forEach(k),s=P(C),a=p(C,"TD",{});var M=S(a);u=G(M,c),M.forEach(k),i=P(C),m=p(C,"TD",{});var X=S(m);N=G(X,h),X.forEach(k),v=P(C),d=p(C,"TD",{});var B=S(d);b=p(B,"I",{});var F=S(b);g=G(F,T),F.forEach(k),B.forEach(k),D=P(C),E=p(C,"TD",{});var J=S(E);O=p(J,"I",{});var $=S(O);y=G($,z),$.forEach(k),J.forEach(k),A=P(C),C.forEach(k),this.h()},h(){f(e,"class","svelte-lzdpo0"),Be(e,"changed",t[0][t[10]].dparam[t[13]].chg)},m(w,C){x(w,e,C),r(e,l),r(l,o),r(e,s),r(e,a),r(a,u),r(e,i),r(e,m),r(m,N),r(e,v),r(e,d),r(d,b),r(b,g),r(e,D),r(e,E),r(E,O),r(O,y),r(e,A)},p(w,C){C&5&&c!==(c=w[13]+"")&&pe(u,c),C&5&&h!==(h=w[0][w[10]].dparam[w[13]].val+"")&&pe(N,h),C&5&&T!==(T=w[0][w[10]].dparam[w[13]].init+"")&&pe(g,T),C&5&&z!==(z=ol(w[0][w[10]].dparam[w[13]].chg)+"")&&pe(y,z),C&5&&Be(e,"changed",w[0][w[10]].dparam[w[13]].chg)},d(w){w&&k(e)}}}function al(t){let e,l,n,o,s,a,c,u=t[10]+"",i,m,h,N,v,d=t[1][t[0][t[10]].partName]+"",b,T,g,D="Export parameters",E,O,z,y=Object.keys(t[0][t[10]].dparam).length+"",A,w,C,U=t[0][t[10]].partName+"",M,X,B=t[5](t[0][t[10]].orientation)+"",F,J,$=t[6](t[0][t[10]].position)+"",te,le,ue,ie,_e,Te="<tr><td>Num</td> <td>Name</td> <td>Value</td> <td>Init</td> <td>Set?</td></tr>",j,H,se,Y,ae;function K(){return t[8](t[10])}function he(){return t[9](t[10])}let fe=we(Object.keys(t[0][t[10]].dparam)),L=[];for(let V=0;V<fe.length;V+=1)L[V]=sl(nl(t,fe,V));return{c(){e=_("li"),l=_("input"),o=I(),s=_("label"),a=_("div"),c=I(),i=q(u),h=I(),N=_("button"),v=q("Go to "),b=q(d),T=I(),g=_("button"),g.textContent=D,E=I(),O=_("div"),z=_("article"),A=q(y),w=q(` parameters of
8
+ `),C=_("strong"),M=q(U),X=q(`
9
+ with orientation `),F=q(B),J=q(` (degree) at position
10
+ `),te=q($),le=q(" (mm)"),ue=I(),ie=_("table"),_e=_("thead"),_e.innerHTML=Te,j=I(),H=_("tbody");for(let V=0;V<L.length;V+=1)L[V].c();se=I(),this.h()},l(V){e=p(V,"LI",{class:!0});var Q=S(e);l=p(Q,"INPUT",{type:!0,id:!0,class:!0}),o=P(Q),s=p(Q,"LABEL",{for:!0,class:!0});var ee=S(s);a=p(ee,"DIV",{class:!0}),S(a).forEach(k),c=P(ee),i=G(ee,u),ee.forEach(k),h=P(Q),N=p(Q,"BUTTON",{class:!0});var me=S(N);v=G(me,"Go to "),b=G(me,d),me.forEach(k),T=P(Q),g=p(Q,"BUTTON",{class:!0,"data-svelte-h":!0}),re(g)!=="svelte-circu6"&&(g.textContent=D),E=P(Q),O=p(Q,"DIV",{class:!0});var ce=S(O);z=p(ce,"ARTICLE",{class:!0});var ke=S(z);A=G(ke,y),w=G(ke,` parameters of
11
+ `),C=p(ke,"STRONG",{});var Ae=S(C);M=G(Ae,U),Ae.forEach(k),X=G(ke,`
12
+ with orientation `),F=G(ke,B),J=G(ke,` (degree) at position
13
+ `),te=G(ke,$),le=G(ke," (mm)"),ke.forEach(k),ue=P(ce),ie=p(ce,"TABLE",{class:!0});var je=S(ie);_e=p(je,"THEAD",{class:!0,"data-svelte-h":!0}),re(_e)!=="svelte-nhorjb"&&(_e.innerHTML=Te),j=P(je),H=p(je,"TBODY",{class:!0});var Ze=S(H);for(let Je=0;Je<L.length;Je+=1)L[Je].l(Ze);Ze.forEach(k),je.forEach(k),ce.forEach(k),se=P(Q),Q.forEach(k),this.h()},h(){f(l,"type","checkbox"),f(l,"id",n="cb_"+t[10]),f(l,"class","toggle svelte-lzdpo0"),l.checked=!1,f(a,"class","arrow svelte-lzdpo0"),f(s,"for",m="cb_"+t[10]),f(s,"class","label svelte-lzdpo0"),f(N,"class","svelte-lzdpo0"),f(g,"class","svelte-lzdpo0"),f(z,"class","svelte-lzdpo0"),f(_e,"class","svelte-lzdpo0"),f(H,"class","svelte-lzdpo0"),f(ie,"class","svelte-lzdpo0"),f(O,"class","nested svelte-lzdpo0"),f(e,"class","svelte-lzdpo0")},m(V,Q){x(V,e,Q),r(e,l),r(e,o),r(e,s),r(s,a),r(s,c),r(s,i),r(e,h),r(e,N),r(N,v),r(N,b),r(e,T),r(e,g),r(e,E),r(e,O),r(O,z),r(z,A),r(z,w),r(z,C),r(C,M),r(z,X),r(z,F),r(z,J),r(z,te),r(z,le),r(O,ue),r(O,ie),r(ie,_e),r(ie,j),r(ie,H);for(let ee=0;ee<L.length;ee+=1)L[ee]&&L[ee].m(H,null);r(e,se),Y||(ae=[Z(N,"click",K),Z(g,"click",he)],Y=!0)},p(V,Q){if(t=V,Q&4&&n!==(n="cb_"+t[10])&&f(l,"id",n),Q&4&&u!==(u=t[10]+"")&&pe(i,u),Q&4&&m!==(m="cb_"+t[10])&&f(s,"for",m),Q&7&&d!==(d=t[1][t[0][t[10]].partName]+"")&&pe(b,d),Q&5&&y!==(y=Object.keys(t[0][t[10]].dparam).length+"")&&pe(A,y),Q&5&&U!==(U=t[0][t[10]].partName+"")&&pe(M,U),Q&5&&B!==(B=t[5](t[0][t[10]].orientation)+"")&&pe(F,B),Q&5&&$!==($=t[6](t[0][t[10]].position)+"")&&pe(te,$),Q&5){fe=we(Object.keys(t[0][t[10]].dparam));let ee;for(ee=0;ee<fe.length;ee+=1){const me=nl(t,fe,ee);L[ee]?L[ee].p(me,Q):(L[ee]=sl(me),L[ee].c(),L[ee].m(H,null))}for(;ee<L.length;ee+=1)L[ee].d(1);L.length=fe.length}},d(V){V&&k(e),Xe(L,V),Y=!1,Ye(ae)}}}function Jn(t){let e,l,n,o,s,a=t[2].length+"",c,u,i,m,h=we(t[2]),N=[];for(let v=0;v<h.length;v+=1)N[v]=al(ll(t,h,v));return{c(){e=_("section"),l=_("h2"),n=q(`Sub-designs
14
+ `),o=_("span"),s=q("(Number of sub-instances: "),c=q(a),u=q(")"),i=I(),m=_("ol");for(let v=0;v<N.length;v+=1)N[v].c();this.h()},l(v){e=p(v,"SECTION",{class:!0});var d=S(e);l=p(d,"H2",{class:!0});var b=S(l);n=G(b,`Sub-designs
15
+ `),o=p(b,"SPAN",{class:!0});var T=S(o);s=G(T,"(Number of sub-instances: "),c=G(T,a),u=G(T,")"),T.forEach(k),b.forEach(k),i=P(d),m=p(d,"OL",{class:!0});var g=S(m);for(let D=0;D<N.length;D+=1)N[D].l(g);g.forEach(k),d.forEach(k),this.h()},h(){f(o,"class","svelte-lzdpo0"),f(l,"class","svelte-lzdpo0"),f(m,"class","svelte-lzdpo0"),f(e,"class","svelte-lzdpo0")},m(v,d){x(v,e,d),r(e,l),r(l,n),r(l,o),r(o,s),r(o,c),r(o,u),r(e,i),r(e,m);for(let b=0;b<N.length;b+=1)N[b]&&N[b].m(m,null)},p(v,[d]){if(d&4&&a!==(a=v[2].length+"")&&pe(c,a),d&127){h=we(v[2]);let b;for(b=0;b<h.length;b+=1){const T=ll(v,h,b);N[b]?N[b].p(T,d):(N[b]=al(T),N[b].c(),N[b].m(m,null))}for(;b<N.length;b+=1)N[b].d(1);N.length=h.length}},i:Ue,o:Ue,d(v){v&&k(e),Xe(N,v)}}}function ol(t){return t?"Yes":""}function Qn(t,e,l){let{subD:n={}}=e,{origPartName:o=""}=e,{pLink:s}=e,a=[];async function c(v){const d=n[v];pl(d.partName,At(d.dparam),!0);const b=`${vt}${s[d.partName]}`;Ol(b)}function u(v){const d=n[v].partName,b=n[v].dparam,T=`sub-design parameters of ${d} from ${o}`;bl(d,At(b),T)}function i(v){let d="[ ";return d+=`${dt(Et(v[0]))}, `,d+=`${dt(Et(v[1]))}, `,d+=`${dt(Et(v[2]))} ]`,d}function m(v){let d="[ ";return d+=`${dt(v[0])}, `,d+=`${dt(v[1])}, `,d+=`${dt(v[2])} ]`,d}const h=v=>c(v),N=v=>u(v);return t.$$set=v=>{"subD"in v&&l(0,n=v.subD),"origPartName"in v&&l(7,o=v.origPartName),"pLink"in v&&l(1,s=v.pLink)},t.$$.update=()=>{t.$$.dirty&1&&l(2,a=Object.keys(n))},[n,s,a,c,u,i,m,o,h,N]}class $n extends Me{constructor(e){super(),Fe(this,e,Qn,Jn,ze,{subD:0,origPartName:7,pLink:1})}}function rl(t,e,l){const n=t.slice();return n[21]=e[l],n}function il(t,e,l){const n=t.slice();return n[21]=e[l],n}function cl(t){let e,l,n=t[21]+"",o,s,a;return{c(){e=_("option"),l=q("face "),o=q(n),s=q(" as svg"),this.h()},l(c){e=p(c,"OPTION",{});var u=S(e);l=G(u,"face "),o=G(u,n),s=G(u," as svg"),u.forEach(k),this.h()},h(){e.__value=a="svg_"+t[21],ve(e,e.__value)},m(c,u){x(c,e,u),r(e,l),r(e,o),r(e,s)},p(c,u){u&8&&n!==(n=c[21]+"")&&pe(o,n),u&8&&a!==(a="svg_"+c[21])&&(e.__value=a,ve(e,e.__value))},d(c){c&&k(e)}}}function fl(t){let e,l,n=t[21]+"",o,s,a;return{c(){e=_("option"),l=q("face "),o=q(n),s=q(" as dxf"),this.h()},l(c){e=p(c,"OPTION",{});var u=S(e);l=G(u,"face "),o=G(u,n),s=G(u," as dxf"),u.forEach(k),this.h()},h(){e.__value=a="dxf_"+t[21],ve(e,e.__value)},m(c,u){x(c,e,u),r(e,l),r(e,o),r(e,s)},p(c,u){u&8&&n!==(n=c[21]+"")&&pe(o,n),u&8&&a!==(a="dxf_"+c[21])&&(e.__value=a,ve(e,e.__value))},d(c){c&&k(e)}}}function xn(t){let e,l,n,o,s="Log",a,c,u,i,m,h,N,v,d,b,T="Export",g,D,E,O="all faces merged as svg",z,y="all faces merged as dxf",A,w="all faces as pax.json",C,U="all faces as openscad.scad",M,X="all faces as OpenJScad.js",B,F="all faces and more as zip",J,$,te="Save to File",le,ue,ie,_e,Te;e=new zn({props:{pDef:t[0],fgeom:t[1],selFace:t[5],zAdjust:t[7],simTime:t[6]}}),e.$on("paramChg",t[12]);function j(L){t[14](L)}function H(L){t[15](L)}function se(L){t[16](L)}let Y={pDef:t[0],fgeom:t[1],optFaces:t[3]};t[5]!==void 0&&(Y.selFace=t[5]),t[7]!==void 0&&(Y.zAdjust=t[7]),t[6]!==void 0&&(Y.simTime=t[6]),i=new Zn({props:Y}),Le.push(()=>Pe(i,"selFace",j)),Le.push(()=>Pe(i,"zAdjust",H)),Le.push(()=>Pe(i,"simTime",se));let ae=we(t[3]),K=[];for(let L=0;L<ae.length;L+=1)K[L]=cl(il(t,ae,L));let he=we(t[3]),fe=[];for(let L=0;L<he.length;L+=1)fe[L]=fl(rl(t,he,L));return ue=new $n({props:{subD:t[11],origPartName:t[0].partName,pLink:t[2]}}),{c(){De(e.$$.fragment),l=I(),n=_("section"),o=_("h2"),o.textContent=s,a=I(),c=_("textarea"),u=I(),De(i.$$.fragment),v=I(),d=_("section"),b=_("h2"),b.textContent=T,g=I(),D=_("select");for(let L=0;L<K.length;L+=1)K[L].c();E=_("option"),E.textContent=O;for(let L=0;L<fe.length;L+=1)fe[L].c();z=_("option"),z.textContent=y,A=_("option"),A.textContent=w,C=_("option"),C.textContent=U,M=_("option"),M.textContent=X,B=_("option"),B.textContent=F,J=I(),$=_("button"),$.textContent=te,le=I(),De(ue.$$.fragment),this.h()},l(L){Oe(e.$$.fragment,L),l=P(L),n=p(L,"SECTION",{class:!0});var V=S(n);o=p(V,"H2",{class:!0,"data-svelte-h":!0}),re(o)!=="svelte-4ty0ys"&&(o.textContent=s),a=P(V),c=p(V,"TEXTAREA",{rows:!0,cols:!0,wrap:!0,class:!0}),S(c).forEach(k),V.forEach(k),u=P(L),Oe(i.$$.fragment,L),v=P(L),d=p(L,"SECTION",{class:!0});var Q=S(d);b=p(Q,"H2",{class:!0,"data-svelte-h":!0}),re(b)!=="svelte-1kkpb88"&&(b.textContent=T),g=P(Q),D=p(Q,"SELECT",{class:!0});var ee=S(D);for(let me=0;me<K.length;me+=1)K[me].l(ee);E=p(ee,"OPTION",{"data-svelte-h":!0}),re(E)!=="svelte-22of2y"&&(E.textContent=O);for(let me=0;me<fe.length;me+=1)fe[me].l(ee);z=p(ee,"OPTION",{"data-svelte-h":!0}),re(z)!=="svelte-1utjrni"&&(z.textContent=y),A=p(ee,"OPTION",{"data-svelte-h":!0}),re(A)!=="svelte-3g91m5"&&(A.textContent=w),C=p(ee,"OPTION",{"data-svelte-h":!0}),re(C)!=="svelte-1tpsyal"&&(C.textContent=U),M=p(ee,"OPTION",{"data-svelte-h":!0}),re(M)!=="svelte-1n2n9j5"&&(M.textContent=X),B=p(ee,"OPTION",{"data-svelte-h":!0}),re(B)!=="svelte-168w9vd"&&(B.textContent=F),ee.forEach(k),J=P(Q),$=p(Q,"BUTTON",{class:!0,"data-svelte-h":!0}),re($)!=="svelte-kuqug6"&&($.textContent=te),le=P(Q),Oe(ue.$$.fragment,Q),Q.forEach(k),this.h()},h(){f(o,"class","svelte-19nn0vk"),f(c,"rows","5"),f(c,"cols","94"),c.readOnly=!0,f(c,"wrap","off"),c.value=t[8],f(c,"class","svelte-19nn0vk"),Be(c,"colorErr",t[9]),Be(c,"colorWarn",t[10]),f(n,"class","svelte-19nn0vk"),f(b,"class","svelte-19nn0vk"),E.__value="allsvg",ve(E,E.__value),z.__value="alldxf",ve(z,z.__value),A.__value="pax",ve(A,A.__value),C.__value="oscad",ve(C,C.__value),M.__value="ojscad",ve(M,M.__value),B.__value="zip",ve(B,B.__value),f(D,"class","svelte-19nn0vk"),t[4]===void 0&&bt(()=>t[17].call(D)),f($,"class","svelte-19nn0vk"),f(d,"class","svelte-19nn0vk")},m(L,V){Ee(e,L,V),x(L,l,V),x(L,n,V),r(n,o),r(n,a),r(n,c),x(L,u,V),Ee(i,L,V),x(L,v,V),x(L,d,V),r(d,b),r(d,g),r(d,D);for(let Q=0;Q<K.length;Q+=1)K[Q]&&K[Q].m(D,null);r(D,E);for(let Q=0;Q<fe.length;Q+=1)fe[Q]&&fe[Q].m(D,null);r(D,z),r(D,A),r(D,C),r(D,M),r(D,B),ot(D,t[4],!0),r(d,J),r(d,$),r(d,le),Ee(ue,d,null),ie=!0,_e||(Te=[Z(D,"change",t[17]),Z($,"click",t[13])],_e=!0)},p(L,[V]){const Q={};V&1&&(Q.pDef=L[0]),V&2&&(Q.fgeom=L[1]),V&32&&(Q.selFace=L[5]),V&128&&(Q.zAdjust=L[7]),V&64&&(Q.simTime=L[6]),e.$set(Q),(!ie||V&256)&&(c.value=L[8]),(!ie||V&512)&&Be(c,"colorErr",L[9]),(!ie||V&1024)&&Be(c,"colorWarn",L[10]);const ee={};if(V&1&&(ee.pDef=L[0]),V&2&&(ee.fgeom=L[1]),V&8&&(ee.optFaces=L[3]),!m&&V&32&&(m=!0,ee.selFace=L[5],Ie(()=>m=!1)),!h&&V&128&&(h=!0,ee.zAdjust=L[7],Ie(()=>h=!1)),!N&&V&64&&(N=!0,ee.simTime=L[6],Ie(()=>N=!1)),i.$set(ee),V&8){ae=we(L[3]);let ce;for(ce=0;ce<ae.length;ce+=1){const ke=il(L,ae,ce);K[ce]?K[ce].p(ke,V):(K[ce]=cl(ke),K[ce].c(),K[ce].m(D,E))}for(;ce<K.length;ce+=1)K[ce].d(1);K.length=ae.length}if(V&8){he=we(L[3]);let ce;for(ce=0;ce<he.length;ce+=1){const ke=rl(L,he,ce);fe[ce]?fe[ce].p(ke,V):(fe[ce]=fl(ke),fe[ce].c(),fe[ce].m(D,z))}for(;ce<fe.length;ce+=1)fe[ce].d(1);fe.length=he.length}V&24&&ot(D,L[4]);const me={};V&2048&&(me.subD=L[11]),V&1&&(me.origPartName=L[0].partName),V&4&&(me.pLink=L[2]),ue.$set(me)},i(L){ie||(be(e.$$.fragment,L),be(i.$$.fragment,L),be(ue.$$.fragment,L),ie=!0)},o(L){Ne(e.$$.fragment,L),Ne(i.$$.fragment,L),Ne(ue.$$.fragment,L),ie=!1},d(L){L&&(k(l),k(n),k(u),k(v),k(d)),Ce(e,L),Ce(i,L),Xe(K,L),Xe(fe,L),Ce(ue),_e=!1,Ye(Te)}}}function es(t){let e=!0;const l=/warn/i;return t.search(l)<0&&(e=!1),e}function ts(t,e){const l=document.createElement("a"),n=URL.createObjectURL(e);l.setAttribute("href",n),l.setAttribute("download",t),l.click(),l.remove(),URL.revokeObjectURL(n)}function ls(t,e,l){const n=document.createElement("a"),o="data:"+l+";utf-8,"+encodeURIComponent(e);n.setAttribute("href",o),n.setAttribute("download",t),n.click(),n.remove()}function ns(){const t=/[-:]/g,e=/\..*$/;return new Date().toISOString().replace(t,"").replace(e,"").replace("T","_")}function ss(t,e,l){let n;at(t,Ke,w=>l(18,n=w));let{pDef:o}=e,{fgeom:s}=e,{pLink:a}=e,c=[],u,i,m=0,h=_l(),N=`Dummy initial
16
+ Will be replaced during onMount
17
+ `,v=!1,d=!1,b={};function T(w){l(8,N=`Geometry ${w} computed at ${new Date().toLocaleTimeString()}
18
+ `);const U=s(m,n[o.partName]);l(8,N+=U.logstr),l(9,v=U.calcErr),l(10,d=es(U.logstr)),l(3,c=Object.keys(U.fig)),l(4,u="zip"),l(11,b=U.sub)}function g(){T(o.partName)}async function D(w){const C=/^svg_/,U=/^dxf_/;let M=$e.eSVG,X="all";w.match(C)?(M=$e.eSVG,X=w.replace(C,"")):w.match(U)?(M=$e.eDXF,X=w.replace(U,"")):w==="allsvg"?M=$e.eSVGALL:w==="alldxf"?M=$e.eDXFALL:w==="pax"?M=$e.ePAX:w==="oscad"?M=$e.eOPENSCAD:w==="ojscad"?M=$e.eJSCAD:w==="zip"?M=$e.eZIP:console.log(`err883: downloadExport iExportFace ${w} invalid`);const B=Xl(M),F=Kl(M),J=Yl(M),$=o.partName+"_"+X+"_"+ns()+B;if(J){const te=await Vl(s,m,n[o.partName],o,M);ts($,te)}else{const te=Wl(s,n[o.partName],o,X,M);ls($,te,F)}}async function E(){await D(u)}function O(w){i=w,l(5,i)}function z(w){h=w,l(7,h)}function y(w){m=w,l(6,m)}function A(){u=Dt(this),l(4,u),l(3,c)}return t.$$set=w=>{"pDef"in w&&l(0,o=w.pDef),"fgeom"in w&&l(1,s=w.fgeom),"pLink"in w&&l(2,a=w.pLink)},t.$$.update=()=>{t.$$.dirty&1&&T(o.partName)},[o,s,a,c,u,i,m,h,N,v,d,b,g,E,O,z,y,A]}class as extends Me{constructor(e){super(),Fe(this,e,ss,xn,ze,{pDef:0,fgeom:1,pLink:2})}}function os(t){let e,l=t[0].pTitle+"",n,o,s,a,c=t[0].pDef.partName+"",u,i,m=t[0].pDescription+"",h,N,v,d,b,T;return v=new ln({props:{pDef:t[0].pDef}}),b=new as({props:{pDef:t[0].pDef,fgeom:t[0].pGeom,pLink:t[1]}}),{c(){e=_("h1"),n=q(l),o=I(),s=_("article"),a=q("["),u=q(c),i=q("]: "),h=q(m),N=I(),De(v.$$.fragment),d=I(),De(b.$$.fragment),this.h()},l(g){e=p(g,"H1",{class:!0});var D=S(e);n=G(D,l),D.forEach(k),o=P(g),s=p(g,"ARTICLE",{class:!0});var E=S(s);a=G(E,"["),u=G(E,c),i=G(E,"]: "),h=G(E,m),E.forEach(k),N=P(g),Oe(v.$$.fragment,g),d=P(g),Oe(b.$$.fragment,g),this.h()},h(){f(e,"class","svelte-1aya6oa"),f(s,"class","svelte-1aya6oa")},m(g,D){x(g,e,D),r(e,n),x(g,o,D),x(g,s,D),r(s,a),r(s,u),r(s,i),r(s,h),x(g,N,D),Ee(v,g,D),x(g,d,D),Ee(b,g,D),T=!0},p(g,[D]){(!T||D&1)&&l!==(l=g[0].pTitle+"")&&pe(n,l),(!T||D&1)&&c!==(c=g[0].pDef.partName+"")&&pe(u,c),(!T||D&1)&&m!==(m=g[0].pDescription+"")&&pe(h,m);const E={};D&1&&(E.pDef=g[0].pDef),v.$set(E);const O={};D&1&&(O.pDef=g[0].pDef),D&1&&(O.fgeom=g[0].pGeom),D&2&&(O.pLink=g[1]),b.$set(O)},i(g){T||(be(v.$$.fragment,g),be(b.$$.fragment,g),T=!0)},o(g){Ne(v.$$.fragment,g),Ne(b.$$.fragment,g),T=!1},d(g){g&&(k(e),k(o),k(s),k(N),k(d)),Ce(v,g),Ce(b,g)}}}function rs(t,e,l){let{pageDef:n}=e,{pLink:o}=e;return t.$$set=s=>{"pageDef"in s&&l(0,n=s.pageDef),"pLink"in s&&l(1,o=s.pLink)},t.$$.update=()=>{t.$$.dirty&1&&Jl(n)},[n,o]}class is extends Me{constructor(e){super(),Fe(this,e,rs,os,ze,{pageDef:0,pLink:1})}}function cs(t){let e,l;return e=new is({props:{pageDef:t[0].pageDef,pLink:t[0].allLink}}),{c(){De(e.$$.fragment)},l(n){Oe(e.$$.fragment,n)},m(n,o){Ee(e,n,o),l=!0},p(n,[o]){const s={};o&1&&(s.pageDef=n[0].pageDef),o&1&&(s.pLink=n[0].allLink),e.$set(s)},i(n){l||(be(e.$$.fragment,n),l=!0)},o(n){Ne(e.$$.fragment,n),l=!1},d(n){Ce(e,n)}}}function fs(t,e,l){let{data:n}=e;return t.$$set=o=>{"data"in o&&l(0,n=o.data)},[n]}class bs extends Me{constructor(e){super(),Fe(this,e,fs,cs,ze,{data:0})}}export{bs as component,vs as universal};
@@ -1 +1 @@
1
- {"version":"1712522260966"}
1
+ {"version":"1713299757091"}