diff --git a/_app/immutable/chunks/Dashboard.BHt1G0Jv.js b/_app/immutable/chunks/Dashboard.BgrV177_.js similarity index 99% rename from _app/immutable/chunks/Dashboard.BHt1G0Jv.js rename to _app/immutable/chunks/Dashboard.BgrV177_.js index 7b60afd..11d6ffc 100644 --- a/_app/immutable/chunks/Dashboard.BHt1G0Jv.js +++ b/_app/immutable/chunks/Dashboard.BgrV177_.js @@ -5,7 +5,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const hc={fallbackLocale:null,loadingDelay:200,formats:Fc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ka=hc;function Da(){return Ka}function Cc(i){const u=i,{formats:e}=u,a=cc(u,["formats"]);let n=i.fallbackLocale;if(i.initialLocale)try{Ms.resolveLocale(i.initialLocale)&&(n=i.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${i.initialLocale}" is not a valid locale.`)}return a.warnOnMissingMessages&&(delete a.warnOnMissingMessages,a.handleMissingMessage==null?a.handleMissingMessage=kc:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ka,a,{initialLocale:n}),e&&("number"in e&&Object.assign(Ka.formats.number,e.number),"date"in e&&Object.assign(Ka.formats.date,e.date),"time"in e&&Object.assign(Ka.formats.time,e.time)),ca.set(n)}const bn=s0(!1);var gc=Object.defineProperty,Ac=Object.defineProperties,vc=Object.getOwnPropertyDescriptors,o1=Object.getOwnPropertySymbols,fc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,l1=(i,u,e)=>u in i?gc(i,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[u]=e,Bc=(i,u)=>{for(var e in u||(u={}))fc.call(u,e)&&l1(i,e,u[e]);if(o1)for(var e of o1(u))bc.call(u,e)&&l1(i,e,u[e]);return i},pc=(i,u)=>Ac(i,vc(u));let ur;const wi=s0(null);function E1(i){return i.split("-").map((u,e,a)=>a.slice(0,e+1).join("-")).reverse()}function Xa(i,u=Da().fallbackLocale){const e=E1(i);return u?[...new Set([...e,...E1(u)])]:e}function Ke(){return ur??void 0}wi.subscribe(i=>{ur=i??void 0,typeof window<"u"&&i!=null&&document.documentElement.setAttribute("lang",i)});const yc=i=>{if(i&&Ec(i)&&Ti(i)){const{loadingDelay:u}=Da();let e;return typeof window<"u"&&Ke()!=null&&u?e=window.setTimeout(()=>bn.set(!0),u):bn.set(!0),Ts(i).then(()=>{wi.set(i)}).finally(()=>{clearTimeout(e),bn.set(!1)})}return wi.set(i)},ca=pc(Bc({},wi),{set:yc}),zc=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Xi=i=>{const u=Object.create(null);return a=>{const n=JSON.stringify(a);return n in u?u[n]:u[n]=i(a)}};var Sc=Object.defineProperty,Ni=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,s1=(i,u,e)=>u in i?Sc(i,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[u]=e,Ar=(i,u)=>{for(var e in u||(u={}))ws.call(u,e)&&s1(i,e,u[e]);if(Ni)for(var e of Ni(u))Ns.call(u,e)&&s1(i,e,u[e]);return i},Fa=(i,u)=>{var e={};for(var a in i)ws.call(i,a)&&u.indexOf(a)<0&&(e[a]=i[a]);if(i!=null&&Ni)for(var a of Ni(i))u.indexOf(a)<0&&Ns.call(i,a)&&(e[a]=i[a]);return e};const Za=(i,u)=>{const{formats:e}=Da();if(i in e&&u in e[i])return e[i][u];throw new Error(`[svelte-i18n] Unknown "${u}" ${i} format.`)},Mc=Xi(i=>{var u=i,{locale:e,format:a}=u,n=Fa(u,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return a&&(n=Za("number",a)),new Intl.NumberFormat(e,n)}),jc=Xi(i=>{var u=i,{locale:e,format:a}=u,n=Fa(u,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return a?n=Za("date",a):Object.keys(n).length===0&&(n=Za("date","short")),new Intl.DateTimeFormat(e,n)}),_c=Xi(i=>{var u=i,{locale:e,format:a}=u,n=Fa(u,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return a?n=Za("time",a):Object.keys(n).length===0&&(n=Za("time","short")),new Intl.DateTimeFormat(e,n)}),Pc=(i={})=>{var u=i,{locale:e=Ke()}=u,a=Fa(u,["locale"]);return Mc(Ar({locale:e},a))},Tc=(i={})=>{var u=i,{locale:e=Ke()}=u,a=Fa(u,["locale"]);return jc(Ar({locale:e},a))},wc=(i={})=>{var u=i,{locale:e=Ke()}=u,a=Fa(u,["locale"]);return _c(Ar({locale:e},a))},Nc=Xi((i,u=Ke())=>new Ms(i,u,Da().formats,{ignoreTag:Da().ignoreTag})),Kc=(i,u={})=>{var e,a,n,t;let r=u;typeof i=="object"&&(r=i,i=r.id);const{values:o,locale:l=Ke(),default:E}=r;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let s=js(i,l);if(!s)s=(t=(n=(a=(e=Da()).handleMissingMessage)==null?void 0:a.call(e,{locale:l,id:i,defaultValue:E}))!=null?n:E)!=null?t:i;else if(typeof s!="string")return console.warn(`[svelte-i18n] Message with id "${i}" must be of type "string", found: "${typeof s}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),s;if(!o)return s;let D=s;try{D=Nc(s,l).format(o)}catch(x){x instanceof Error&&console.warn(`[svelte-i18n] Message "${i}" has syntax error:`,x.message)}return D},Lc=(i,u)=>wc(u).format(i),Hc=(i,u)=>Tc(u).format(i),Rc=(i,u)=>Pc(u).format(i),Gc=(i,u=Ke())=>js(i,u),f0=le([ca,Qa],()=>Kc);le([ca],()=>Lc);le([ca],()=>Hc);le([ca],()=>Rc);le([ca,Qa],()=>Gc);class un{constructor(u,e,a){Iu(this,"_label");Iu(this,"_icon");Iu(this,"_options");this._label=u,this._icon=e,this._options=a||{}}get label(){return this._label}get icon(){return this._icon}get options(){return this._options}}class Q0 extends un{constructor(e,a,n,t){super(e,a,t);Iu(this,"_callback");this._callback=n}call(e){return this._callback.call(null,e)}}class F0 extends un{constructor(e,a,n,t){super(e,n,t);Iu(this,"_url");this._url=a}url(e={},a="id"){let n=this._url||"";const t=e[a]!==void 0,r=n.match(":id");for(const o in e){let l=e[o];l=l.toString?l.toString():"",l.length&&(n=n.replace(`:${o}`,l.toString()||""))}return t&&!r&&(n+="?id="+(e[a]??"")),`${n}`}}function Ks(){return{defaultLocale:"en",autoCloseSideMenu:!1,rootUrl:"/",head:{appName:"",brandName:""}}}class Ls{constructor(u){Iu(this,"name");Iu(this,"options");Iu(this,"_dashboard",null);var t;const e=u.name;if(this.name=e,!(u!=null&&u.operations.length))throw new Error(`Crud definition "${e}" has no Crud operations set. Did you forget to add an "operations" key when creating your Crud definition?`);const a=u.defaultOperationName||((t=u.operations[0])==null?void 0:t.name);if(!a||!a.length)throw new Error(`Crud definition "${e}" has an invalid default operation name "${a}". You can fix this issue by customizing the "defaultOperationName" option when creating your Crud definition.`);const n=u.operations.filter(r=>r.name===a).shift();if(!n)throw new Error(`Crud definition "${e}" has no default operation named "${a}". -Available operation names: ${u.operations.map(r=>r.name).join(", ")}.`);u.operations.forEach(r=>r.crud=this),u.defaultOperationName=n.name,u.identifierFieldName??(u.identifierFieldName="id"),this.options=u}get dashboard(){if(!this._dashboard)throw new Error("Dashboard is not set in Crud definition: did you try to bypass Crud setup?");return this._dashboard}set dashboard(u){this._dashboard!==u&&(this._dashboard&&console.error("Dashboard was set twice in a Crud definition. If you are using HMR in development, you can ignore this issue."),this.options.operations.forEach(e=>{e.dashboard=u}),this._dashboard=u)}}function Hs(i){const u={},e=i.target;return e?(new FormData(e,i.submitter).forEach((a,n)=>{u[n]=a}),u):(console.error("No form target specified. Did you forget to inject the proper SubmitEvent to the function?"),{})}function Vc(i,u,e){return e.fields.forEach(a=>{a.options.disabled&&(typeof u[a.name]<"u"?i[a.name]=u[a.name]:delete i[a.name])}),i}class ka{constructor(u,e,a,n,t,r={}){Iu(this,"_dashboard",null);Iu(this,"_crud",null);this.name=u,this.label=e,this.displayComponentName=a,this.fields=n,this.actions=t,this.options=r}get dashboard(){if(!this._dashboard)throw new Error("Dashboard is not set in operation: did you try to bypass Crud setup?");return this._dashboard}set dashboard(u){this._dashboard!==u&&(this._dashboard&&console.error("Dashboard was set twice in an operation. If you are using HMR in development, you can ignore this issue."),this._dashboard=u)}get crud(){if(!this._crud)throw new Error("Crud is not set in operation: did you try to bypass Crud setup?");return this._crud}set crud(u){this._crud&&console.error("Crud was set twice in an operation. If you are using HMR in development, you can ignore this issue."),this._crud=u}}const Rs={preventHttpFormSubmit:!0};class Gs extends ka{constructor(u,e=[],a=Rs){super("new","crud.new.label","new",u,e,a)}}class Vs extends ka{constructor(u,e=[],a=Rs){super("edit","crud.edit.label","edit",u,e,a)}}class Ki extends ka{constructor(u,e=[],a={}){a.pagination={...h2(),...a.pagination||{}},a.filters??(a.filters=[]),super("list","crud.list.label","list",u,e,a)}}class vr extends ka{constructor(e,a){super("delete","crud.delete.label","delete",e,[]);Iu(this,"redirectTo");this.redirectTo=a}}let Js=class extends ka{constructor(u){super("view","crud.view.label","view",u,[])}};class Is extends ka{constructor(u="field",e={}){super(u,"","field",[],[],e)}}class Jc{constructor(u){Iu(this,"theme");Iu(this,"adminConfig");Iu(this,"cruds");Iu(this,"localeDictionaries",{});Iu(this,"stores");Iu(this,"options",{});this.theme=u.theme,this.adminConfig={...Ks(),...u.adminConfig||{}},this.cruds=u.cruds,this.localeDictionaries=u.localeDictionaries||{},this.cruds.forEach(e=>e.dashboard=this),this.stores={sideMenu:s0(u.sideMenu||[]),topLeftMenu:s0(u.topLeftMenu||[]),topRightMenu:s0(u.topRightMenu||[])},this.checkUniqueCruds()}get sideMenu(){return kn(this.stores.sideMenu)}get topLeftMenu(){return kn(this.stores.topLeftMenu)}get topRightMenu(){return kn(this.stores.topRightMenu)}getFirstActionUrl(){const u=this.cruds[0],e=u.options.operations[0],a=this.adminConfig.rootUrl.replace(/(^\/*)|(\/*$)/gi,"")||"";return`${a?"/"+a:""}/${u.name}/${e.name}`}checkUniqueCruds(){const u=[];this.cruds.forEach(e=>{if(u.indexOf(e.name)>=0)throw new Error(`Crud name "${e.name}" is used in at least two different Crud objects. Crud names must be unique.`);u.push(e.name)})}}let ui=class{constructor(u,e,a){Iu(this,"field");Iu(this,"label");Iu(this,"options");this.field=u,this.label=e||u,this.options=a||{}}},er=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","text")}},Ic=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","boolean")}},Oc=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","date")}};class Wc extends ui{constructor(){super(...arguments);Iu(this,"componentName","boolean")}}let Zc=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","numeric")}};class Ce{constructor(u,e="",a={}){Iu(this,"formComponent","default");Iu(this,"viewComponent","default");this.name=u,this.label=e,this.options=a,this.label=e||u}}let Uc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","checkbox");Iu(this,"viewComponent","checkbox")}},Os=class{constructor(u,e="",a=[],n={}){Iu(this,"formComponent","column");Iu(this,"viewComponent","column");this.name=u,this.label=e,this.fields=a,this.options=n}},qc=class extends Ce{constructor(e,a="",n){super(e,a,n);Iu(this,"formComponent","crud_entity");Iu(this,"viewComponent","crud_entity")}},$c=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","date");Iu(this,"viewComponent","date")}},D1=class extends Ce{constructor(e,a="",n="",t={}){super(e,a,t);Iu(this,"formComponent","key_value_object");Iu(this,"viewComponent","key_value_object");Iu(this,"propertyPath");this.propertyPath=n}},Yc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","number");Iu(this,"viewComponent","number")}},Ws=class{constructor(u,e="",a=[],n={}){Iu(this,"formComponent","tabs");Iu(this,"viewComponent","tabs");this.name=u,this.label=e,this.fields=a,this.options=n}},Zs=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","textarea");Iu(this,"viewComponent","textarea")}},Ae=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","text");Iu(this,"viewComponent","text")}},Qc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","toggle");Iu(this,"viewComponent","toggle")}},x1=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","url");Iu(this,"viewComponent","url")}};class d1 extends Ce{constructor(e,a="",n,t){super(e,a,t);Iu(this,"formComponent","array");Iu(this,"viewComponent","array");Iu(this,"innerField");this.innerField=n}}const Xc={"crud.header.edit":"Edit","crud.header.new":"New","crud.form.submit":"Submit","crud.list.label":"List of {name}","crud.delete.label":"Delete {name}","crud.new.label":"Create new {name}","crud.edit.label":"Update {name}","crud.view.label":"View {name}","crud.delete.are_you_sure":'Are you sure you want to delete {name} with identifier "{id}"?',"crud.delete.cancel":"No, cancel","crud.delete.yes_delete":"Yes, delete","data_table.items.unsupported_action":'Action type "{action}" not supported.',"error.crud.form.entity_field_list_fetch_error":`An error occurred while fetching a list of elements: +Available operation names: ${u.operations.map(r=>r.name).join(", ")}.`);u.operations.forEach(r=>r.crud=this),u.defaultOperationName=n.name,u.identifierFieldName??(u.identifierFieldName="id"),this.options=u}get dashboard(){if(!this._dashboard)throw new Error("Dashboard is not set in Crud definition: did you try to bypass Crud setup?");return this._dashboard}set dashboard(u){this._dashboard!==u&&(this._dashboard&&console.error("Dashboard was set twice in a Crud definition. If you are using HMR in development, you can ignore this issue."),this.options.operations.forEach(e=>{e.dashboard=u}),this._dashboard=u)}}function Hs(i){const u={},e=i.target;return e?(new FormData(e,i.submitter).forEach((a,n)=>{u[n]=a}),u):(console.error("No form target specified. Did you forget to inject the proper SubmitEvent to the function?"),{})}function Vc(i,u,e){return e.fields.forEach(a=>{a.options.disabled&&(typeof u[a.name]<"u"?i[a.name]=u[a.name]:delete i[a.name])}),i}class ka{constructor(u,e,a,n,t,r={}){Iu(this,"_dashboard",null);Iu(this,"_crud",null);this.name=u,this.label=e,this.displayComponentName=a,this.fields=n,this.actions=t,this.options=r}get dashboard(){if(!this._dashboard)throw new Error("Dashboard is not set in operation: did you try to bypass Crud setup?");return this._dashboard}set dashboard(u){this._dashboard!==u&&(this._dashboard&&console.error("Dashboard was set twice in an operation. If you are using HMR in development, you can ignore this issue."),this._dashboard=u)}get crud(){if(!this._crud)throw new Error("Crud is not set in operation: did you try to bypass Crud setup?");return this._crud}set crud(u){this._crud&&console.error("Crud was set twice in an operation. If you are using HMR in development, you can ignore this issue."),this._crud=u}}const Rs={preventHttpFormSubmit:!0};class Gs extends ka{constructor(u,e=[],a=Rs){super("new","crud.new.label","new",u,e,a)}}class Vs extends ka{constructor(u,e=[],a=Rs){super("edit","crud.edit.label","edit",u,e,a)}}class Ki extends ka{constructor(e,a=[],n={}){n.globalActions??(n.globalActions=[]),n.batchActions??(n.batchActions=[]),n.pagination={...h2(),...n.pagination||{}},n.filters??(n.filters=[]);super("list","crud.list.label","list",e,a,n);Iu(this,"options");this.options=n}}class vr extends ka{constructor(e,a){super("delete","crud.delete.label","delete",e,[]);Iu(this,"redirectTo");this.redirectTo=a}}let Js=class extends ka{constructor(u){super("view","crud.view.label","view",u,[])}};class Is extends ka{constructor(u="field",e={}){super(u,"","field",[],[],e)}}class Jc{constructor(u){Iu(this,"theme");Iu(this,"adminConfig");Iu(this,"cruds");Iu(this,"localeDictionaries",{});Iu(this,"stores");Iu(this,"options",{});this.theme=u.theme,this.adminConfig={...Ks(),...u.adminConfig||{}},this.cruds=u.cruds,this.localeDictionaries=u.localeDictionaries||{},this.cruds.forEach(e=>e.dashboard=this),this.stores={sideMenu:s0(u.sideMenu||[]),topLeftMenu:s0(u.topLeftMenu||[]),topRightMenu:s0(u.topRightMenu||[])},this.checkUniqueCruds()}get sideMenu(){return kn(this.stores.sideMenu)}get topLeftMenu(){return kn(this.stores.topLeftMenu)}get topRightMenu(){return kn(this.stores.topRightMenu)}getFirstActionUrl(){const u=this.cruds[0],e=u.options.operations[0],a=this.adminConfig.rootUrl.replace(/(^\/*)|(\/*$)/gi,"")||"";return`${a?"/"+a:""}/${u.name}/${e.name}`}checkUniqueCruds(){const u=[];this.cruds.forEach(e=>{if(u.indexOf(e.name)>=0)throw new Error(`Crud name "${e.name}" is used in at least two different Crud objects. Crud names must be unique.`);u.push(e.name)})}}let ui=class{constructor(u,e,a){Iu(this,"field");Iu(this,"label");Iu(this,"options");this.field=u,this.label=e||u,this.options=a||{}}},er=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","text")}},Ic=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","boolean")}},Oc=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","date")}};class Wc extends ui{constructor(){super(...arguments);Iu(this,"componentName","boolean")}}let Zc=class extends ui{constructor(){super(...arguments);Iu(this,"componentName","numeric")}};class Ce{constructor(u,e="",a={}){Iu(this,"formComponent","default");Iu(this,"viewComponent","default");this.name=u,this.label=e,this.options=a,this.label=e||u}}let Uc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","checkbox");Iu(this,"viewComponent","checkbox")}},Os=class{constructor(u,e="",a=[],n={}){Iu(this,"formComponent","column");Iu(this,"viewComponent","column");this.name=u,this.label=e,this.fields=a,this.options=n}},qc=class extends Ce{constructor(e,a="",n){super(e,a,n);Iu(this,"formComponent","crud_entity");Iu(this,"viewComponent","crud_entity")}},$c=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","date");Iu(this,"viewComponent","date")}},D1=class extends Ce{constructor(e,a="",n="",t={}){super(e,a,t);Iu(this,"formComponent","key_value_object");Iu(this,"viewComponent","key_value_object");Iu(this,"propertyPath");this.propertyPath=n}},Yc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","number");Iu(this,"viewComponent","number")}},Ws=class{constructor(u,e="",a=[],n={}){Iu(this,"formComponent","tabs");Iu(this,"viewComponent","tabs");this.name=u,this.label=e,this.fields=a,this.options=n}},Zs=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","textarea");Iu(this,"viewComponent","textarea")}},Ae=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","text");Iu(this,"viewComponent","text")}},Qc=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","toggle");Iu(this,"viewComponent","toggle")}},x1=class extends Ce{constructor(){super(...arguments);Iu(this,"formComponent","url");Iu(this,"viewComponent","url")}};class d1 extends Ce{constructor(e,a="",n,t){super(e,a,t);Iu(this,"formComponent","array");Iu(this,"viewComponent","array");Iu(this,"innerField");this.innerField=n}}const Xc={"crud.header.edit":"Edit","crud.header.new":"New","crud.form.submit":"Submit","crud.list.label":"List of {name}","crud.delete.label":"Delete {name}","crud.new.label":"Create new {name}","crud.edit.label":"Update {name}","crud.view.label":"View {name}","crud.delete.are_you_sure":'Are you sure you want to delete {name} with identifier "{id}"?',"crud.delete.cancel":"No, cancel","crud.delete.yes_delete":"Yes, delete","data_table.items.unsupported_action":'Action type "{action}" not supported.',"error.crud.form.entity_field_list_fetch_error":`An error occurred while fetching a list of elements: {message}`,"error.crud.form.entity_field_view_fetch_error":`An error occurred while fetching an element: {message}`,"error.crud.form.object.duplicate_key":"⚠ Key already exists!","error.crud.could_not_find_crud_name":'Could not find a CRUD config with name "{crud}".',"error.crud.no_crud_specified":"No CRUD name was specified when displaying the Dashboard.","error.crud.could_not_find_operation_name":'Could not find a CRUD operation named "{operation}" for CRUD definition named "{crud}".',"error.crud.could_not_find_component":'No template found for operation "{operation}" and CRUD "{crud}".',"error.crud.no_operation_specified":'No CRUD operation was specified when displaying the "{crud}" CRUD.',"error.crud.list.no_elements":"No elements found.","error.crud.list.load_error":"An error occured when loading data.","error.crud.entity.not_found":"No element found with this identifier.","datatable.filters.menu_title":"Filters","datatable.filters.submit_filters":"Filter results","datatable.filters.reset_filters":"Reset filters","filters.date.from":"From this date","filters.date.to":"Up to this date"},u2={"crud.header.edit":"Modifier","crud.header.new":"Créer","crud.form.submit":"Envoyer","crud.list.label":"Liste des {name}","crud.delete.label":"Supprimer {name}","crud.new.label":"Créer {name}","crud.edit.label":"Modifier {name}","crud.view.label":"Voir {name}","crud.delete.are_you_sure":`Voulez-vous vraiment supprimer le {name} à l'identifiant "{id}" ?`,"crud.delete.cancel":"Non, annuler","crud.delete.yes_delete":"Oui, supprimer","data_table.items.unsupported_action":`Type d'action "{operation}" non prise en charge.`,"error.crud.form.entity_field_list_fetch_error":`Une erreur est survenue lors de la récupération d'une liste d'élements: {message}`,"error.crud.form.entity_field_view_fetch_error":`Une erreur est survenue lors de la récupération d'un élement: diff --git a/_app/immutable/chunks/entry.Bh_aE06C.js b/_app/immutable/chunks/entry.CRf9EFxz.js similarity index 86% rename from _app/immutable/chunks/entry.Bh_aE06C.js rename to _app/immutable/chunks/entry.CRf9EFxz.js index 666cfbf..77cb9f0 100644 --- a/_app/immutable/chunks/entry.Bh_aE06C.js +++ b/_app/immutable/chunks/entry.CRf9EFxz.js @@ -1,3 +1,3 @@ -import{C as it}from"./scheduler.CsibrRF_.js";import{w as pe}from"./index.BSedxLou.js";new URL("sveltekit-internal://");function ct(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function lt(e){return e.split("%25").map(decodeURI).join("%25")}function ft(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ut=["href","pathname","search","toString","toJSON"];function dt(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(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 ut)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const ht="/__data.json",pt=".html__data.json";function gt(e){return e.endsWith(".html")?e.replace(/\.html$/,pt):e.replace(/\/$/,"")+ht}function mt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.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 _t(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),$e(e,n));const q=new Map;function yt(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=_t(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function wt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){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,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=vt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function Et(e){return!/^\([^)]+\)$/.test(e)}function kt(e){return e.slice(1).split("/").filter(Et)}function St(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;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 le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function At({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=bt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return St(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].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,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function Ce(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}var je;const P=((je=globalThis.__sveltekit_yexras)==null?void 0:je.base)??"";var De;const Rt=((De=globalThis.__sveltekit_yexras)==null?void 0:De.assets)??P,It="1726206349229",Ve="sveltekit:snapshot",Fe="sveltekit:scroll",qe="sveltekit:states",Lt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Ge(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function Me(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function He(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Me(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Me(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function Pt(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${Rt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==It;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Tt=-1,xt=-2,Ut=-3,Nt=-4,Ot=-5,jt=-6;function Dt(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Tt)return;if(o===Ut)return NaN;if(o===Nt)return 1/0;if(o===Ot)return-1/0;if(o===jt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(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;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Ke{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const Vt="x-sveltekit-invalidated",Ft="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function qt(e){return e instanceof _e?e.text:"Internal Error"}const N=Ce(Fe)??{},H=Ce(Ve)??{},x={url:Pe({}),page:Pe({}),navigating:pe(null),updated:Pt()};function ye(e){N[e]=me()}function Gt(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Ye=[],Z=[];let R=null;const Je=[],Mt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,xe=!0,B=!1,F=!1,We=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function tn(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=At(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),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)),t?await Xt(he,t):Wt(location.href,{replaceState:!0}),zt()}function Ht(){Ye.length=0,ve=!1}function ze(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function Xe(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function Ue(){ye(S),Ie(Fe,N),ze(L),Ie(Ve,H)}async function Ze(e,n,t,a){return Y({type:"goto",url:Ge(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Bt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:et({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(tt(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Qe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:x,components:Z},hydrate:t}),Xe(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()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=ct(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Ct(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:dt(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?wt(b,A.href,m):yt(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)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(Ye.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Kt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function et({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Kt(y.url,t);let _=!1;const l=f.map((p,v)=>{var U;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(U=E.server)==null?void 0:U.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await rt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;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)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=tt(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:ft(o),url:e}}}function tt(e){return lt(e.slice(P.length)||"/")}function nt({url:e,type:n,intent:t,delta:a}){let r=!1;const o=st(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Je.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=nt({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&x.navigating.set(g.navigation),ee=c;let l=h&&await et(h);if(!l){if(ne(n,P))return await C(n);l=await at(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await x.updated.check()&&await C(n);if(Ht(),ye(d),ze(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[qe]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Gt(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Mt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),We=!0}else Qe(l,he,!1);const{activeElement:m}=document;await it();const b=t?t.scroll:r?me():null;if(xe){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&&Zt(),xe=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&Xe(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),x.navigating.set(null)}async function at(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Jt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=He(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Bt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=qt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Wt(e,n={}){return e=Ge(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):Ze(e,n,0)}function zt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(Ue(),!B){const r=st(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Je.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ue()}),(n=navigator.connection)!=null&&n.saveData||Jt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=He(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(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){nt({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.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(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[qe]??{},s=new URL(t.state[Lt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(We||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$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:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(null)});function e(t){y.url=t,x.page.set({...I,url:t}),x.page.notify()}}async function Xt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=ot(l.uses)),Ee({loader:V.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:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await $e(t.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 ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Dt(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{C as it}from"./scheduler.CsibrRF_.js";import{w as pe}from"./index.BSedxLou.js";new URL("sveltekit-internal://");function ct(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function lt(e){return e.split("%25").map(decodeURI).join("%25")}function ft(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ut=["href","pathname","search","toString","toJSON"];function dt(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(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 ut)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const ht="/__data.json",pt=".html__data.json";function gt(e){return e.endsWith(".html")?e.replace(/\.html$/,pt):e.replace(/\/$/,"")+ht}function mt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.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 _t(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),$e(e,n));const q=new Map;function yt(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=_t(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function wt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){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,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=vt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function Et(e){return!/^\([^)]+\)$/.test(e)}function kt(e){return e.slice(1).split("/").filter(Et)}function St(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;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 le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function At({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=bt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return St(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].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,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function Ce(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}var je;const P=((je=globalThis.__sveltekit_nzqlg4)==null?void 0:je.base)??"";var De;const Rt=((De=globalThis.__sveltekit_nzqlg4)==null?void 0:De.assets)??P,It="1726343032017",Ve="sveltekit:snapshot",Fe="sveltekit:scroll",qe="sveltekit:states",Lt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Ge(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...Y,"":Y.hover};function Me(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function He(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Me(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function J(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Me(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function Pt(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${Rt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==It;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Tt=-1,Ut=-2,xt=-3,Nt=-4,Ot=-5,jt=-6;function Dt(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Tt)return;if(o===xt)return NaN;if(o===Nt)return 1/0;if(o===Ot)return-1/0;if(o===jt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(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;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Ke{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const Vt="x-sveltekit-invalidated",Ft="x-sveltekit-trailing-slash";function W(e){return e instanceof ae||e instanceof _e?e.status:500}function qt(e){return e instanceof _e?e.text:"Internal Error"}const N=Ce(Fe)??{},H=Ce(Ve)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:Pt()};function ye(e){N[e]=me()}function Gt(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const ze=[],Z=[];let R=null;const Ye=[],Mt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,Ue=!0,B=!1,F=!1,Je=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function tn(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=At(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),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)),t?await Xt(he,t):Jt(location.href,{replaceState:!0}),Wt()}function Ht(){ze.length=0,ve=!1}function We(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function Xe(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Fe,N),We(L),Ie(Ve,H)}async function Ze(e,n,t,a){return z({type:"goto",url:Ge(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Bt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:et({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(tt(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Qe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Z},hydrate:t}),Xe(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()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=ct(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Ct(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:dt(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?wt(b,A.href,m):yt(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)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(ze.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Kt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function et({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Kt(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await rt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:W(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;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)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=tt(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:ft(o),url:e}}}function tt(e){return lt(e.slice(P.length)||"/")}function nt({url:e,type:n,intent:t,delta:a}){let r=!1;const o=st(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ye.forEach(s=>s(i)),r?null:o}async function z({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=nt({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),ee=c;let l=h&&await et(h);if(!l){if(ne(n,P))return await C(n);l=await at(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Ht(),ye(d),We(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[qe]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Gt(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Mt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Je=!0}else Qe(l,he,!1);const{activeElement:m}=document;await it();const b=t?t.scroll:r?me():null;if(Ue){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&&Zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&Xe(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function at(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Yt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=He(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=J(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Bt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=J(o);f.reload||(f.preload_code===Y.viewport&&t.observe(o),f.preload_code===Y.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=W(e),a=qt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Jt(e,n={}){return e=Ge(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):Ze(e,n,0)}function Wt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=st(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ye.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Yt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=He(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=J(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){nt({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),z({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.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(ne(i,P))return;const s=t.target,c=J(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),z({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[qe]??{},s=new URL(t.state[Lt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Je||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Xt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=ot(l.uses)),Ee({loader:V.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:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await $e(t.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 ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Dt(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const _=u.indexOf(` -`);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=ot(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function ot(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Zt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{tn as a,x as s}; +`);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=ot(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function ot(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Zt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{tn as a,U as s}; diff --git a/_app/immutable/chunks/stores.BPT9GW3P.js b/_app/immutable/chunks/stores.Buyg4sIQ.js similarity index 72% rename from _app/immutable/chunks/stores.BPT9GW3P.js rename to _app/immutable/chunks/stores.Buyg4sIQ.js index f5e9c2f..3c09577 100644 --- a/_app/immutable/chunks/stores.BPT9GW3P.js +++ b/_app/immutable/chunks/stores.Buyg4sIQ.js @@ -1 +1 @@ -import{s as e}from"./entry.Bh_aE06C.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}; +import{s as e}from"./entry.CRf9EFxz.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}; diff --git a/_app/immutable/entry/app.DjRl10Xw.js b/_app/immutable/entry/app.XSO7pTcm.js similarity index 90% rename from _app/immutable/entry/app.DjRl10Xw.js rename to _app/immutable/entry/app.XSO7pTcm.js index 3889f9a..33930d8 100644 --- a/_app/immutable/entry/app.DjRl10Xw.js +++ b/_app/immutable/entry/app.XSO7pTcm.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C5LHGdaT.js","../chunks/scheduler.CsibrRF_.js","../chunks/index.DPiVtm8o.js","../nodes/1.e0-_PYVA.js","../chunks/stores.BPT9GW3P.js","../chunks/entry.Bh_aE06C.js","../chunks/index.BSedxLou.js","../nodes/2.C9tvCAOs.js","../chunks/Dashboard.BHt1G0Jv.js","../chunks/4.BQg5QjmJ.js","../assets/Dashboard.CVUT-I7c.css","../assets/2.BYUlsWcF.css","../nodes/3.CoFOCx6z.js"])))=>i.map(i=>d[i]); -import{_ as A}from"../chunks/4.BQg5QjmJ.js";import{s as S,a as j,v as p,g as q,i as w,f as d,x as z,y as B,e as M,c as U,b as F,z as P,A as m,t as G,d as H,j as J,B as R,w as k,C as K}from"../chunks/scheduler.CsibrRF_.js";import{S as Q,i as W,a as h,c as D,t as g,g as I,b as v,d as V,m as E,e as y}from"../chunks/index.DPiVtm8o.js";const ie={};function X(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[12](null),e&&y(e,t)}}}function Y(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&8215&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[11](null),e&&y(e,t)}}}function Z(o){let e,n,i;var s=o[1][1];function _(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&16&&(a.data=t[4]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[10](null),e&&y(e,t)}}}function L(o){let e,n=o[6]&&N(o);return{c(){e=M("div"),n&&n.c(),this.h()},l(i){e=U(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(d),this.h()},h(){P(e,"id","svelte-announcer"),P(e,"aria-live","assertive"),P(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=N(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&d(e),n&&n.d()}}}function N(o){let e;return{c(){e=G(o[7])},l(n){e=H(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&d(e)}}}function $(o){let e,n,i,s,_;const t=[Y,X],r=[];function a(f,u){return f[1][1]?0:1}e=a(o),n=r[e]=t[e](o);let c=o[5]&&L(o);return{c(){n.c(),i=j(),c&&c.c(),s=p()},l(f){n.l(f),i=q(f),c&&c.l(f),s=p()},m(f,u){r[e].m(f,u),w(f,i,u),c&&c.m(f,u),w(f,s,u),_=!0},p(f,[u]){let b=e;e=a(f),e===b?r[e].p(f,u):(I(),h(r[b],1,1,()=>{r[b]=null}),D(),n=r[e],n?n.p(f,u):(n=r[e]=t[e](f),n.c()),g(n,1),n.m(i.parentNode,i)),f[5]?c?c.p(f,u):(c=L(f),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(f){_||(g(n),_=!0)},o(f){h(n),_=!1},d(f){f&&(d(i),d(s)),r[e].d(f),c&&c.d(f)}}}function x(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:r}=e,{data_0:a=null}=e,{data_1:c=null}=e;z(i.page.notify);let f=!1,u=!1,b=null;B(()=>{const l=i.page.subscribe(()=>{f&&(n(6,u=!0),K().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,f=!0),l});function O(l){R[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function C(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return o.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,r=l.form),"data_0"in l&&n(3,a=l.data_0),"data_1"in l&&n(4,c=l.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,_,r,a,c,f,u,b,i,s,O,T,C]}class se extends Q{constructor(e){super(),W(this,e,x,$,S,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>A(()=>import("../nodes/0.C5LHGdaT.js"),__vite__mapDeps([0,1,2]),import.meta.url),()=>A(()=>import("../nodes/1.e0-_PYVA.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url),()=>A(()=>import("../nodes/2.C9tvCAOs.js"),__vite__mapDeps([7,1,2,8,6,9,10,11]),import.meta.url),()=>A(()=>import("../nodes/3.CoFOCx6z.js"),__vite__mapDeps([12,1,2,4,5,6,8,9,10]),import.meta.url),()=>A(()=>import("../chunks/4.BQg5QjmJ.js").then(o=>o.a),[],import.meta.url)],oe=[],ae={"/":[2],"/admin/[crud]/[operation]":[3],"/docs":[4]},fe={handleError:({error:o})=>{console.error(o)},reroute:()=>{}};export{ae as dictionary,fe as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C5LHGdaT.js","../chunks/scheduler.CsibrRF_.js","../chunks/index.DPiVtm8o.js","../nodes/1.DcI7vTsz.js","../chunks/stores.Buyg4sIQ.js","../chunks/entry.CRf9EFxz.js","../chunks/index.BSedxLou.js","../nodes/2.OTqXHzMW.js","../chunks/Dashboard.BgrV177_.js","../chunks/4.BQg5QjmJ.js","../assets/Dashboard.CVUT-I7c.css","../assets/2.BYUlsWcF.css","../nodes/3.CbvGQKb5.js"])))=>i.map(i=>d[i]); +import{_ as A}from"../chunks/4.BQg5QjmJ.js";import{s as S,a as j,v as p,g as q,i as w,f as d,x as z,y as B,e as M,c as U,b as F,z as P,A as m,t as G,d as H,j as J,B as R,w as k,C as K}from"../chunks/scheduler.CsibrRF_.js";import{S as Q,i as W,a as h,c as D,t as g,g as I,b as v,d as V,m as E,e as y}from"../chunks/index.DPiVtm8o.js";const ie={};function X(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[12](null),e&&y(e,t)}}}function Y(o){let e,n,i;var s=o[1][0];function _(t,r){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&8&&(a.data=t[3]),r&8215&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[11](null),e&&y(e,t)}}}function Z(o){let e,n,i;var s=o[1][1];function _(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&V(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){I();const a=e;h(a.$$.fragment,1,0,()=>{y(a,1)}),D()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const a={};r&16&&(a.data=t[4]),r&4&&(a.form=t[2]),e.$set(a)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&d(n),o[10](null),e&&y(e,t)}}}function L(o){let e,n=o[6]&&N(o);return{c(){e=M("div"),n&&n.c(),this.h()},l(i){e=U(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(d),this.h()},h(){P(e,"id","svelte-announcer"),P(e,"aria-live","assertive"),P(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=N(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&d(e),n&&n.d()}}}function N(o){let e;return{c(){e=G(o[7])},l(n){e=H(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&d(e)}}}function $(o){let e,n,i,s,_;const t=[Y,X],r=[];function a(f,u){return f[1][1]?0:1}e=a(o),n=r[e]=t[e](o);let c=o[5]&&L(o);return{c(){n.c(),i=j(),c&&c.c(),s=p()},l(f){n.l(f),i=q(f),c&&c.l(f),s=p()},m(f,u){r[e].m(f,u),w(f,i,u),c&&c.m(f,u),w(f,s,u),_=!0},p(f,[u]){let b=e;e=a(f),e===b?r[e].p(f,u):(I(),h(r[b],1,1,()=>{r[b]=null}),D(),n=r[e],n?n.p(f,u):(n=r[e]=t[e](f),n.c()),g(n,1),n.m(i.parentNode,i)),f[5]?c?c.p(f,u):(c=L(f),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(f){_||(g(n),_=!0)},o(f){h(n),_=!1},d(f){f&&(d(i),d(s)),r[e].d(f),c&&c.d(f)}}}function x(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:r}=e,{data_0:a=null}=e,{data_1:c=null}=e;z(i.page.notify);let f=!1,u=!1,b=null;B(()=>{const l=i.page.subscribe(()=>{f&&(n(6,u=!0),K().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,f=!0),l});function O(l){R[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function C(l){R[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return o.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,r=l.form),"data_0"in l&&n(3,a=l.data_0),"data_1"in l&&n(4,c=l.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,_,r,a,c,f,u,b,i,s,O,T,C]}class se extends Q{constructor(e){super(),W(this,e,x,$,S,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>A(()=>import("../nodes/0.C5LHGdaT.js"),__vite__mapDeps([0,1,2]),import.meta.url),()=>A(()=>import("../nodes/1.DcI7vTsz.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url),()=>A(()=>import("../nodes/2.OTqXHzMW.js"),__vite__mapDeps([7,1,2,8,6,9,10,11]),import.meta.url),()=>A(()=>import("../nodes/3.CbvGQKb5.js"),__vite__mapDeps([12,1,2,4,5,6,8,9,10]),import.meta.url),()=>A(()=>import("../chunks/4.BQg5QjmJ.js").then(o=>o.a),[],import.meta.url)],oe=[],ae={"/":[2],"/admin/[crud]/[operation]":[3],"/docs":[4]},fe={handleError:({error:o})=>{console.error(o)},reroute:()=>{}};export{ae as dictionary,fe as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; diff --git a/_app/immutable/entry/start.D8mkUuEi.js b/_app/immutable/entry/start.D8mkUuEi.js new file mode 100644 index 0000000..8c248aa --- /dev/null +++ b/_app/immutable/entry/start.D8mkUuEi.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.CRf9EFxz.js";export{t as start}; diff --git a/_app/immutable/entry/start.DF8EyXRc.js b/_app/immutable/entry/start.DF8EyXRc.js deleted file mode 100644 index c487062..0000000 --- a/_app/immutable/entry/start.DF8EyXRc.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.Bh_aE06C.js";export{t as start}; diff --git a/_app/immutable/nodes/1.e0-_PYVA.js b/_app/immutable/nodes/1.DcI7vTsz.js similarity index 92% rename from _app/immutable/nodes/1.e0-_PYVA.js rename to _app/immutable/nodes/1.DcI7vTsz.js index 9dab80e..0ee19d9 100644 --- a/_app/immutable/nodes/1.e0-_PYVA.js +++ b/_app/immutable/nodes/1.DcI7vTsz.js @@ -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.CsibrRF_.js";import{S as q,i as y}from"../chunks/index.DPiVtm8o.js";import{p as C}from"../chunks/stores.BPT9GW3P.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}; +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.CsibrRF_.js";import{S as q,i as y}from"../chunks/index.DPiVtm8o.js";import{p as C}from"../chunks/stores.Buyg4sIQ.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}; diff --git a/_app/immutable/nodes/2.C9tvCAOs.js b/_app/immutable/nodes/2.OTqXHzMW.js similarity index 99% rename from _app/immutable/nodes/2.C9tvCAOs.js rename to _app/immutable/nodes/2.OTqXHzMW.js index c1aa982..ea87124 100644 --- a/_app/immutable/nodes/2.C9tvCAOs.js +++ b/_app/immutable/nodes/2.OTqXHzMW.js @@ -1,4 +1,4 @@ -import{s as Q,o as ue,D as A,e as v,c as b,b as C,f as c,E as $,F as y,i as _,G as B,u as fe,p as ce,q as he,r as de,H as O,I as J,J as H,K,L as T,z as S,M as ee,h as p,n as te,t as M,d as P,j as re,w as se,v as U,k as me,a as z,N as F,g as L,O as _e}from"../chunks/scheduler.CsibrRF_.js";import{S as V,i as W,t as N,a as j,b as q,d as Z,m as D,c as pe,e as Y,g as ge}from"../chunks/index.DPiVtm8o.js";import{g as oe,d as R,i as ve,$ as be,a as Ce,e as le}from"../chunks/Dashboard.BHt1G0Jv.js";function we(a){let e,n,s,l;const o=a[4].default,t=ue(o,a,a[3],null);let i=[a[2]],f={};for(let r=0;r{e=A(A({},e),J(h)),n(2,l=O(e,s)),"nested"in h&&n(0,i=h.nested),"expressive"in h&&n(1,f=h.expressive),"$$scope"in h&&n(3,t=h.$$scope)},[i,f,l,t,o,r,d,k,E]}class ye extends V{constructor(e){super(),W(this,e,xe,we,Q,{nested:0,expressive:1})}}function ne(a){let e,n;return{c(){e=K("title"),n=M(a[1])},l(s){e=T(s,"title",{});var l=C(e);n=P(l,a[1]),l.forEach(c)},m(s,l){_(s,e,l),p(e,n)},p(s,l){l&2&&re(n,s[1])},d(s){s&&c(e)}}}function Ae(a){let e,n,s=a[1]&&ne(a),l=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:a[0]},{height:a[0]},a[2],a[3]],o={};for(let t=0;t{n(5,e=A(A({},e),J(r))),n(3,t=O(e,o)),"size"in r&&n(0,i=r.size),"title"in r&&n(1,f=r.title)},a.$$.update=()=>{n(4,s=e["aria-label"]||e["aria-labelledby"]||f),n(2,l={"aria-hidden":s?void 0:!0,role:s?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=J(e),[i,f,l,t,s]}class Ee extends V{constructor(e){super(),W(this,e,ke,Ae,Q,{size:0,title:1})}}function ie(a,e,n){const s=a.slice();return s[1]=e[n],s}function ae(a){let e,n,s=a[0](a[1].options.label.plural)+"",l,o;return{c(){e=v("li"),n=v("a"),l=M(s),o=z(),this.h()},l(t){e=b(t,"LI",{class:!0});var i=C(e);n=b(i,"A",{href:!0});var f=C(n);l=P(f,s),f.forEach(c),o=L(i),i.forEach(c),this.h()},h(){S(n,"href","/admin/"+a[1].name+"/"+a[1].options.defaultOperationName),S(e,"class","svelte-1fegj08")},m(t,i){_(t,e,i),p(e,n),p(n,l),p(e,o)},p(t,i){i&1&&s!==(s=t[0](t[1].options.label.plural)+"")&&re(l,s)},d(t){t&&c(e)}}}function ze(a){let e,n=le(R.cruds),s=[];for(let l=0;l{e=A(A({},e),J(h)),n(2,l=O(e,s)),"nested"in h&&n(0,i=h.nested),"expressive"in h&&n(1,f=h.expressive),"$$scope"in h&&n(3,t=h.$$scope)},[i,f,l,t,o,r,d,k,E]}class ye extends V{constructor(e){super(),W(this,e,xe,we,Q,{nested:0,expressive:1})}}function ne(a){let e,n;return{c(){e=K("title"),n=M(a[1])},l(s){e=T(s,"title",{});var l=C(e);n=P(l,a[1]),l.forEach(c)},m(s,l){_(s,e,l),p(e,n)},p(s,l){l&2&&re(n,s[1])},d(s){s&&c(e)}}}function Ae(a){let e,n,s=a[1]&&ne(a),l=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:a[0]},{height:a[0]},a[2],a[3]],o={};for(let t=0;t{n(5,e=A(A({},e),J(r))),n(3,t=O(e,o)),"size"in r&&n(0,i=r.size),"title"in r&&n(1,f=r.title)},a.$$.update=()=>{n(4,s=e["aria-label"]||e["aria-labelledby"]||f),n(2,l={"aria-hidden":s?void 0:!0,role:s?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=J(e),[i,f,l,t,s]}class Ee extends V{constructor(e){super(),W(this,e,ke,Ae,Q,{size:0,title:1})}}function ie(a,e,n){const s=a.slice();return s[1]=e[n],s}function ae(a){let e,n,s=a[0](a[1].options.label.plural)+"",l,o;return{c(){e=v("li"),n=v("a"),l=M(s),o=z(),this.h()},l(t){e=b(t,"LI",{class:!0});var i=C(e);n=b(i,"A",{href:!0});var f=C(n);l=P(f,s),f.forEach(c),o=L(i),i.forEach(c),this.h()},h(){S(n,"href","/admin/"+a[1].name+"/"+a[1].options.defaultOperationName),S(e,"class","svelte-1fegj08")},m(t,i){_(t,e,i),p(e,n),p(n,l),p(e,o)},p(t,i){i&1&&s!==(s=t[0](t[1].options.label.plural)+"")&&re(l,s)},d(t){t&&c(e)}}}function ze(a){let e,n=le(R.cruds),s=[];for(let l=0;l{Y(f,1)}),pe()}l?(e=se(l,o(t)),q(e.$$.fragment),N(e.$$.fragment,1),D(e,n.parentNode,n)):e=null}else if(l){const f={};i&17&&(f.$$scope={dirty:i,ctx:t}),e.$set(f)}},i(t){s||(e&&N(e.$$.fragment,t),s=!0)},o(t){e&&j(e.$$.fragment,t),s=!1},d(t){t&&c(n),e&&Y(e,t)}}}function Pe(a,e,n){let s;return me(a,be,l=>n(0,s=l)),ve("fr",{fr:Ce}),[s]}class je extends V{constructor(e){super(),W(this,e,Pe,Me,Q,{})}}export{je as component}; diff --git a/_app/immutable/nodes/3.CoFOCx6z.js b/_app/immutable/nodes/3.CbvGQKb5.js similarity index 91% rename from _app/immutable/nodes/3.CoFOCx6z.js rename to _app/immutable/nodes/3.CbvGQKb5.js index 986d4f4..207f637 100644 --- a/_app/immutable/nodes/3.CoFOCx6z.js +++ b/_app/immutable/nodes/3.CbvGQKb5.js @@ -1 +1 @@ -import{s as b,v as m,i as g,f as k,k as P,w as l,n as q}from"../chunks/scheduler.CsibrRF_.js";import{S as v,i as N,a as p,c as y,t as u,b as _,d as S,m as d,g as w,e as h}from"../chunks/index.DPiVtm8o.js";import{p as j}from"../chunks/stores.BPT9GW3P.js";import{d as f}from"../chunks/Dashboard.BHt1G0Jv.js";function C(s,t){let o={...s.params};return o={...Object.fromEntries(s.url.searchParams),...o},o}function $(s){let t,o,n;var r=f.theme.dashboard;function a(e,i){return{props:{dashboard:f,crud:e[3],operation:e[2],requestParameters:e[1]}}}return r&&(t=l(r,a(s))),{c(){t&&_(t.$$.fragment),o=m()},l(e){t&&S(t.$$.fragment,e),o=m()},m(e,i){t&&d(t,e,i),g(e,o,i),n=!0},p(e,i){if(r!==(r=f.theme.dashboard)){if(t){w();const c=t;p(c.$$.fragment,1,0,()=>{h(c,1)}),y()}r?(t=l(r,a(e)),_(t.$$.fragment),u(t.$$.fragment,1),d(t,o.parentNode,o)):t=null}else if(r){const c={};i&8&&(c.crud=e[3]),i&4&&(c.operation=e[2]),i&2&&(c.requestParameters=e[1]),t.$set(c)}},i(e){n||(t&&u(t.$$.fragment,e),n=!0)},o(e){t&&p(t.$$.fragment,e),n=!1},d(e){e&&k(o),t&&h(t,e)}}}function E(s){let t=s[0],o,n,r=$(s);return{c(){r.c(),o=m()},l(a){r.l(a),o=m()},m(a,e){r.m(a,e),g(a,o,e),n=!0},p(a,[e]){e&1&&b(t,t=a[0])?(w(),p(r,1,1,q),y(),r=$(a),r.c(),u(r,1),r.m(o.parentNode,o)):r.p(a,e)},i(a){n||(u(r),n=!0)},o(a){p(r),n=!1},d(a){a&&k(o),r.d(a)}}}function O(s,t,o){let n,r,a,e;return P(s,j,i=>o(0,e=i)),s.$$.update=()=>{s.$$.dirty&1&&o(3,n=e.params.crud),s.$$.dirty&1&&o(2,r=e.params.operation),s.$$.dirty&1&&o(1,a=C(e))},[e,a,r,n]}class D extends v{constructor(t){super(),N(this,t,O,E,b,{})}}export{D as component}; +import{s as b,v as m,i as g,f as k,k as P,w as l,n as q}from"../chunks/scheduler.CsibrRF_.js";import{S as v,i as N,a as p,c as y,t as u,b as _,d as S,m as d,g as w,e as h}from"../chunks/index.DPiVtm8o.js";import{p as j}from"../chunks/stores.Buyg4sIQ.js";import{d as f}from"../chunks/Dashboard.BgrV177_.js";function C(s,t){let o={...s.params};return o={...Object.fromEntries(s.url.searchParams),...o},o}function $(s){let t,o,n;var r=f.theme.dashboard;function a(e,i){return{props:{dashboard:f,crud:e[3],operation:e[2],requestParameters:e[1]}}}return r&&(t=l(r,a(s))),{c(){t&&_(t.$$.fragment),o=m()},l(e){t&&S(t.$$.fragment,e),o=m()},m(e,i){t&&d(t,e,i),g(e,o,i),n=!0},p(e,i){if(r!==(r=f.theme.dashboard)){if(t){w();const c=t;p(c.$$.fragment,1,0,()=>{h(c,1)}),y()}r?(t=l(r,a(e)),_(t.$$.fragment),u(t.$$.fragment,1),d(t,o.parentNode,o)):t=null}else if(r){const c={};i&8&&(c.crud=e[3]),i&4&&(c.operation=e[2]),i&2&&(c.requestParameters=e[1]),t.$set(c)}},i(e){n||(t&&u(t.$$.fragment,e),n=!0)},o(e){t&&p(t.$$.fragment,e),n=!1},d(e){e&&k(o),t&&h(t,e)}}}function E(s){let t=s[0],o,n,r=$(s);return{c(){r.c(),o=m()},l(a){r.l(a),o=m()},m(a,e){r.m(a,e),g(a,o,e),n=!0},p(a,[e]){e&1&&b(t,t=a[0])?(w(),p(r,1,1,q),y(),r=$(a),r.c(),u(r,1),r.m(o.parentNode,o)):r.p(a,e)},i(a){n||(u(r),n=!0)},o(a){p(r),n=!1},d(a){a&&k(o),r.d(a)}}}function O(s,t,o){let n,r,a,e;return P(s,j,i=>o(0,e=i)),s.$$.update=()=>{s.$$.dirty&1&&o(3,n=e.params.crud),s.$$.dirty&1&&o(2,r=e.params.operation),s.$$.dirty&1&&o(1,a=C(e))},[e,a,r,n]}class D extends v{constructor(t){super(),N(this,t,O,E,b,{})}}export{D as component}; diff --git a/_app/version.json b/_app/version.json index fd689c2..c4f9016 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1726206349229"} \ No newline at end of file +{"version":"1726343032017"} \ No newline at end of file diff --git a/admin/books/delete/index.html b/admin/books/delete/index.html index daed4ed..d344eb0 100644 --- a/admin/books/delete/index.html +++ b/admin/books/delete/index.html @@ -6,24 +6,24 @@ - - + + - + - - - + + + -
Skip to main content Svelte Admin  Demo
+
Skip to main content Svelte Admin  Demo
ListOperationOptions: object & {
    filters?: FilterInterface<FilterOptions>[];
    globalActions?: Action[];
    pagination?: Partial<PaginationOptions>;
}

List

+ListOperationOptions | @orbitale/svelte-admin
ListOperationOptions: object & {
    batchActions: Action[];
    filters: FilterInterface<FilterOptions>[];
    globalActions: Action[];
    pagination: Partial<PaginationOptions>;
}

List

diff --git a/index.html b/index.html index f3a2d00..ee8c8b0 100644 --- a/index.html +++ b/index.html @@ -5,11 +5,11 @@ - - + + - + @@ -17,15 +17,15 @@