diff --git a/.gitignore b/.gitignore index f45574e..45cd386 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,11 @@ # npm node_modules/ +# Port réel du dev server Vite, écrit par le plugin dev-port-file (vite.config.js) +.vite-dev-port +# Sourcemaps du build watch en dev (sourcemap: 'hidden' ; en prod le plugin +# Sentry les upload puis les supprime) : jamais commités. +web/themes/custom/leshed/assets/dist/*.map *.patch # Keep our project patches tracked diff --git a/web/themes/custom/leshed/assets/dist/main.js b/web/themes/custom/leshed/assets/dist/main.js index f888b1f..61b0a4e 100644 --- a/web/themes/custom/leshed/assets/dist/main.js +++ b/web/themes/custom/leshed/assets/dist/main.js @@ -1,4 +1,4 @@ -var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);(function(){try{var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="bbcb9b46-522a-40c8-ad0c-a976530c2700",o._sentryDebugIdIdentifier="sentry-dbid-bbcb9b46-522a-40c8-ad0c-a976530c2700")}catch{}})();function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! +var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*! * GSAP 3.15.0 * https://gsap.com * diff --git a/web/themes/custom/leshed/assets/dist/sentry.js b/web/themes/custom/leshed/assets/dist/sentry.js index b6da18b..4934286 100644 --- a/web/themes/custom/leshed/assets/dist/sentry.js +++ b/web/themes/custom/leshed/assets/dist/sentry.js @@ -1,4 +1,4 @@ -(function(){try{var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="95dc776a-e9cd-4f71-80df-824f468190eb",t._sentryDebugIdIdentifier="sentry-dbid-95dc776a-e9cd-4f71-80df-824f468190eb")}catch{}})();const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,Ot="11.20.0";function st(){return pt(_),_}function pt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"11.20.0",e[Ot]=e["11.20.0"]||{}}function Dt(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Ot]=r["11.20.0"]||{};return s[t]||(s[t]=e())}const Ln=["debug","info","warn","error","log","assert","trace"],Fr="Sentry Logger ",Rt={};function B(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(Rt);r.forEach(s=>{const o=Rt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function jr(){Ee().enabled=!0}function Ur(){Ee().enabled=!1}function Pn(){return Ee().enabled}function Br(...t){Se("log",...t)}function Hr(...t){Se("warn",...t)}function Wr(...t){Se("error",...t)}function Se(t,...e){h&&Pn()&&B(()=>{_.console[t](`${Fr}[${t}]:`,...e)})}function Ee(){return h?Dt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:jr,disable:Ur,isEnabled:Pn,log:Br,warn:Hr,error:Wr},$n=50,Q="?",Pe=/\(error: (.*)\)/,$e=/captureMessage|captureException/;function Mn(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` +const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,Ot="11.20.0";function st(){return pt(_),_}function pt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"11.20.0",e[Ot]=e["11.20.0"]||{}}function Dt(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Ot]=r["11.20.0"]||{};return s[t]||(s[t]=e())}const Ln=["debug","info","warn","error","log","assert","trace"],Fr="Sentry Logger ",Rt={};function B(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(Rt);r.forEach(s=>{const o=Rt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function jr(){Ee().enabled=!0}function Ur(){Ee().enabled=!1}function Pn(){return Ee().enabled}function Br(...t){Se("log",...t)}function Hr(...t){Se("warn",...t)}function Wr(...t){Se("error",...t)}function Se(t,...e){h&&Pn()&&B(()=>{_.console[t](`${Fr}[${t}]:`,...e)})}function Ee(){return h?Dt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:jr,disable:Ur,isEnabled:Pn,log:Br,warn:Hr,error:Wr},$n=50,Q="?",Pe=/\(error: (.*)\)/,$e=/captureMessage|captureException/;function Mn(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` `);for(let a=r;a1024&&(c=c.slice(0,1024));const u=Pe.test(c)?c.replace(Pe,"$1"):c;if(!u.includes("Error: ")){for(const f of e){const l=f(u);if(l){o.push(l);break}}if(o.length>=$n+s)break}}return qr(o.slice(s))}}function Gr(t){return Array.isArray(t)?Mn(...t):t}function qr(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(bt(e).function||"")&&e.pop(),e.reverse(),$e.test(bt(e).function||"")&&(e.pop(),$e.test(bt(e).function||"")&&e.pop()),e.slice(0,$n).map(n=>({...n,filename:n.filename||bt(e).filename,function:n.function||"?"}))}function bt(t){return t[t.length-1]||{}}const jt="";function j(t){try{return!t||typeof t!="function"?jt:t.name||jt}catch{return jt}}function Me(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ct={},Fe={};function q(t,e){return ct[t]=ct[t]||[],ct[t].push(e),()=>{const n=ct[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}}function z(t,e){if(!Fe[t]){Fe[t]=!0;try{e()}catch(n){h&&p.error(`Error while instrumenting ${t}`,n)}}}function N(t,e){const n=t&&ct[t];if(n)for(const r of n)try{r(e)}catch(s){h&&p.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${j(r)} @@ -12,4 +12,4 @@ Event: ${W(t)}`),!0;if(la(t,e.denyUrls))return h&&p.warn(`Event dropped due to b Event: ${W(t)}. Url: ${Ct(t)}`),!0;if(!da(t,e.allowUrls))return h&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${W(t)}. -Url: ${Ct(t)}`),!0}return!1}function ua(t,e){return e!=null&&e.length?gr(t).some(n=>_t(n,e)):!1}function fa(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?_t(n,e):!1}function la(t,e){if(!(e!=null&&e.length))return!1;const n=Ct(t);return n?_t(n,e):!1}function da(t,e){if(!(e!=null&&e.length))return!0;const n=Ct(t);return n?_t(n,e):!0}function pa(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Ct(t){var e,n,r;try{const s=(r=(n=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(o=>{var i,a,c;return((i=o.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return s?pa(s):null}catch{return h&&p.error(`Cannot extract url for event ${W(t)}`),null}}function ha(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function ma(t,e,n,r,s,o){var a;if(!((a=s.exception)!=null&&a.values)||!o||!D(o.originalException))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Tt(t,e,r,o.originalException,n,s.exception.values,i,0))}function Tt(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(D(r[s])){zt(i,a,r);const u=t(e,r[s]),f=c.length;Yt(u,s,f,a),c=Tt(t,e,n,r[s],s,[u,...c],u,f)}return kr(r)&&r.errors.forEach((u,f)=>{if(c.length{const f=r[u];if(c.length{for(const e of t)Nt.delete(e)}}const bn=new Set;function ba(){"console"in _&&Ln.forEach(function(t){bn.has(t)||!(t in _.console)||(bn.add(t),k(_.console,t,function(e){return Rt[t]=e,function(...n){const r=n[0],s=Rt[t],o=Nt.size&&typeof r=="string"&&_t(r,Nt);o||N("console",{args:n,level:t}),(!o||h&&p.isEnabled())&&(s==null||s.apply(_.console,n))}}))})}function va(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Ia="Dedupe",Ta=()=>{let t;return{name:Ia,processEvent(e){if(e.type)return e;try{if(ka(e,t))return h&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},wa=C(Ta);function ka(t,e){return e?!!(Oa(t,e)||Ra(t,e)):!1}function Oa(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rr(t,e)||!Or(t,e))}function Ra(t,e){const n=vn(e),r=vn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rr(t,e)||!Or(t,e))}function Or(t,e){const n=Me(t),r=Me(e);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let s=0;s{const e=new Set(t.levels||Ln);return{name:Ca,setup(n){const r=Sa(({args:s,level:o})=>{b()!==n||!e.has(o)||Da(o,s)});if(n.registerCleanup(r),t.filter){const s=Ea(t.filter);n.registerCleanup(s)}}}});function Da(t,e){const n={category:"console",data:{arguments:e,logger:"console"},level:va(t),message:In(e)};if(t==="assert")if(e[0]===!1){const r=e.slice(1);n.message=r.length>0?`Assertion failed: ${In(r)}`:"Assertion failed",n.data.arguments=r}else return;G(n,{input:e,level:t})}function In(t){return"util"in _&&typeof _.util.format=="function"?_.util.format(...t):us(t," ")}const Aa="ConversationId",xa=()=>({name:Aa,setup(t){t.on("spanStart",e=>{const n=x().getScopeData(),r=K().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=$t(e);if(!(o!=null&&o.startsWith("gen_ai."))&&!i["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;e.setAttribute(js,s)}})}}),La=C(xa),fe=_;function Pa(){if(!("fetch"in fe))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function le(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function $a(){var n;if(typeof EdgeRuntime=="string")return!0;if(!Pa())return!1;if(le(fe.fetch))return!0;let t=!1;const e=fe.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=le(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){h&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ma(t){const e="fetch",n=q(e,t);return z(e,()=>Fa()),n}function Fa(t){pr()&&!$a()||k(_,"fetch",function(e){return new Proxy(e,{apply(n,r,s){const o=new Error,{method:i,url:a}=ja(s),c={args:s,fetchData:{method:i,url:a},startTimestamp:A()*1e3,virtualError:o,headers:Ua(s)};return N("fetch",{...c}),Reflect.apply(n,_,s).then(async u=>(N("fetch",{...c,endTimestamp:A()*1e3,response:u}),u),u=>{var l,d;N("fetch",{...c,endTimestamp:A()*1e3,error:u}),D(u)&&u.stack===void 0&&(u.stack=o.stack,U(u,"framesToPop",1));const f=((l=b())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&D(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(c.fetchData.url,(d=_.location)==null?void 0:d.href).host;m&&(f==="always"?u.message=`${u.message} (${m})`:U(u,"__sentry_fetch_url_host__",m))}catch{}throw u})}})})}function wt(t,e){return At(t)&&!!t[e]}function Tn(t){return typeof t=="string"?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}function ja(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Tn(n),method:wt(r,"method")?String(r.method).toUpperCase():Un(n)&&wt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Tn(e),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}function Ua(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Un(e))return new Headers(e.headers)}catch{}}function Cr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const de=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E=_,Ba=80,H={};try{typeof Node<"u"&&(H.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(H.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,H.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,H.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,H.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(H.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function F(t,e,n){const r=H[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return typeof s=="function"?s.call(t,n):s}function Nr(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=3;let u;const f=Array.isArray(e)?e:e.keyAttrs,l=Array.isArray(e)?void 0:e.maskAttributeFn,d=!Array.isArray(e)&&e.maxStringLength||Ba;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=F(n,"parentNode");return s.reverse().join(a)}catch{return""}}function Ha(t,e,n){const r=[],s=F(t,"tagName");if(!s)return"";if(typeof HTMLElement<"u"&&t instanceof HTMLElement){const i=F(t,"dataset");if(i){if(i.sentryComponent)return n?n("data-sentry-component",i.sentryComponent,t):i.sentryComponent;if(i.sentryElement)return n?n("data-sentry-element",i.sentryElement,t):i.sentryElement}}r.push(s.toLowerCase());const o=e!=null&&e.length?e.filter(i=>F(t,"getAttribute",i)).map(i=>[i,F(t,"getAttribute",i)]):null;if(o!=null&&o.length)o.forEach(([i,a])=>{r.push(`[${i}="${n&&a?n(i,a,t):a}"]`)});else{const i=F(t,"id");i&&r.push(`#${n?n("id",i,t):i}`);const a=F(t,"className");if(a&&$(a)){const c=(n?n("class",a,t):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const i of["aria-label","type","name","title","alt"]){const a=F(t,"getAttribute",i);a&&r.push(`[${i}="${n?n(i,a,t):a}"]`)}return r.join("")}function Wa(t,e,n){E.document&&E.addEventListener(t,e,n)}function Ga(t,e,n){E.document&&E.removeEventListener(t,e,n)}const qa=t=>{var n;const e=E.requestIdleCallback||E.setTimeout;if(((n=E.document)==null?void 0:n.visibilityState)==="hidden")t();else{let r=!1;const s=()=>{r||(t(),r=!0)};Wa("visibilitychange",s,{once:!0,capture:!0}),e(()=>{s(),Ga("visibilitychange",s,{capture:!0})})}};function za(t,e=5){if(!_.HTMLElement)return null;let n=t;for(let r=0;r{var s,o;const r=(s=E[n])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(k(r,"addEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=kn(u);if(!l.handler){const y=On(t);l.handler=y,l.capture=d,i.call(this,a,y,l.capture)}const m=l[d?"captureListeners":"bubbleListeners"];m.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(m.add(c),l.listenerCount++))}catch{}return i.call(this,a,c,u)}}),k(r,"removeEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[kn(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(i.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function Qa(t){if(t.type!==pe)return!1;try{if(!t.target||t.target._sentryId!==he)return!1}catch{}return!0}function Za(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function On(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=tc(n);if(Za(n.type,r))return;U(n,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",R());const s=n.type==="keypress"?"input":n.type;Qa(n)||(t({event:n,name:s,global:e}),pe=n.type,he=r?r._sentryId:void 0),clearTimeout(wn),wn=E.setTimeout(()=>{he=void 0,pe=void 0},Va)}}function tc(t){try{return t.target}catch{return null}}let vt;function ec(){return"history"in E&&!!E.history}function Ar(t){const e="history";q(e,t),z(e,nc)}function nc(){if(E.addEventListener("popstate",()=>{const e=E.location.href,n=vt;vt=e,n!==e&&N("history",{from:n,to:e})}),!ec())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=vt,o=rc(String(r));if(vt=o,s===o)return e.apply(this,n);N("history",{from:s,to:o})}return e.apply(this,n)}}k(E.history,"pushState",t),k(E.history,"replaceState",t)}function rc(t){try{return new URL(t,E.location.origin).toString()}catch{return t}}const kt={};function sc(t){const e=kt[t];if(e)return e;let n=E[t];if(le(n))return kt[t]=n.bind(E);const r=E.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){de&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(kt[t]=n.bind(E))}function oc(t){kt[t]=void 0}const ut="__sentry_xhr_v3__";function ic(t){const e="xhr";q(e,t),z(e,ac)}function ac(){if(!E.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let s=new Error;const o=A()*1e3,i=$(r[0])?r[0].toUpperCase():void 0,a=cc(r[1]);if(!i||a===void 0)return e.apply(n,r);n[ut]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[ut];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:A()*1e3,startTimestamp:o,xhr:n,virtualError:s};N("xhr",f),s=void 0,n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,m]=l,y=f[ut];return y&&$(d)&&$(m)&&(y.request_headers[d.toLowerCase()]=m),u.apply(f,l)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[ut];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:A()*1e3,xhr:n};return N("xhr",o),e.apply(n,r)}})}function cc(t){if($(t))return t;try{return t.toString()}catch{}}function uc(t){if(typeof Element>"u")return!1;try{return t instanceof Element}catch{return!1}}const g=_;let me=0;const Rn=[];function xr(t){if(me>0)return!0;const e=t?Rn.findIndex(n=>fc(n,t)):-1;return e===-1?!1:(Rn.splice(e,1),!0)}function fc(t,e){return t.msg===e.msg&&t.url===e.url&&t.line===e.line&&t.column===e.column}function lc(){me++,setTimeout(()=>{me--})}function rt(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const s=t.__sentry_wrapped__;return typeof s=="function"?s:t}if(Ie(t))return t}catch{return t}const r=function(...s){_._sentryWrappedDepth=(_._sentryWrappedDepth||0)+1;try{const o=s.map(i=>rt(i,e));return t.apply(this,o)}catch(o){throw lc(),Ls(i=>{i.addEventProcessor(a=>(e.mechanism&&(Qt(a,void 0),J(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),pi(o)}),o}finally{_._sentryWrappedDepth=(_._sentryWrappedDepth||0)-1}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}Bn(r,t),U(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Cn(t){const e=Ne(),{referrer:n}=g.document||{},{userAgent:r}=g.navigator||{};return{url:e,headers:{...n&&{Referer:nt(n,t)},...r&&{"User-Agent":r}}}}function De(t,e){const n=Ft(t,e),r={type:_c(e),value:gc(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dc(t,e,n,r){var c;const s=(c=b())==null?void 0:c.getOptions().normalizeDepth,o=vc(e),i={__serialized__:Gn(e,s)};if(o)return{exception:{values:[De(t,o)]},extra:i};const a={exception:{values:[{type:xt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ec(e,{isUnhandledRejection:r})}]},extra:i};if(n){const u=Ft(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Kt(t,e){return{exception:{values:[De(t,e)]}}}function Ft(t,e){const n=e.stacktrace||e.stack||"",r=hc(e),s=mc(e);try{return t(n,r,s)}catch{}return[]}const pc=/Minified React error #\d+;/i;function hc(t){return t&&pc.test(t.message)?1:0}function mc(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Lr(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function _c(t){const e=t==null?void 0:t.name;return!e&&Lr(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function gc(t){const e=t==null?void 0:t.message;return Lr(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?En(e.error):En(t):"No error message"}function yc(t,e,n,r){const s=Ae(t,e,(n==null?void 0:n.syntheticException)||void 0,r);return J(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),St(s)}function Sc(t,e,n="info",r,s){const o=_e(t,e,(r==null?void 0:r.syntheticException)||void 0,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),St(o)}function Ae(t,e,n,r,s){var a,c;let o;if(jn(e)&&e.error)return Kt(t,e.error);if(je(e)||Xr(e)){const u=e;if("stack"in e){o=Kt(t,e);const f=(c=(a=o.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=Ft(t,n);l.length&&(f.stacktrace={frames:l},J(o,{synthetic:!0}))}}else{const f=u.name||(je(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;o=_e(t,l,n,r),Qt(o,l)}return o}if(D(e))return Kt(t,e);if(ht(e)||xt(e))return o=dc(t,e,n,s),J(o,{synthetic:!0}),o;const i=String(e);return o=_e(t,i,n,r),Qt(o,i),J(o,{synthetic:!0}),o}function _e(t,e,n,r){const s={};if(r&&n){const o=Ft(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),J(s,{synthetic:!0})}if(be(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Ec(t,{isUnhandledRejection:e}){const n=Qr(t),r=e?"promise rejection":"exception";return jn(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:xt(t)?`Event \`${bc(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bc(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function vc(t){return Object.values(t).find(D)}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Pr(t){const{tunnel:e,dsn:n,transportOptions:r}=t;if(!e)return{tunnel:e,transportOptions:r};if(typeof e=="string")return{tunnel:e,transportOptions:Ic(e)?Nn(r):r};const s=e===!0?{}:e,o=n&&ke(n),i=s.path??(o&&Ki(o));if(!i)return{tunnel:void 0,transportOptions:r};const a=`${Vi(s.basePath)}${i}${s.trailingSlash?"/":""}`;return Et&&p.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Nn(r)}}function Nn(t){return{...t,headers:{"Content-Type":"application/x-sentry-envelope",...t==null?void 0:t.headers}}}function Ic(t){var n,r;const e=qi(t,(n=g.location)==null?void 0:n.href);return e?Gi(e)||e.origin===((r=g.location)==null?void 0:r.origin):!1}var Tc=class extends Li{constructor(t){var a;const e=wc({...t,...Pr(t)}),n=g.SENTRY_SDK_SOURCE||zo();Zi(e,"browser",["browser"],n),super(e),e.routeProvider&&Ya(e.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=e._metadata)!=null&&a.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options,o=()=>{A()},i=[[g.document,"visibilitychange",()=>{o(),g.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[g.document,"freeze",o],[g.document,"resume",o],[g,"pagehide",o],[g,"pageshow",o]];i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",Xi)}eventFromException(t,e){return yc(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Sc(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function wc(t){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t,release:t.release??kc()}}function kc(){var t;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Oc()??((t=g.SENTRY_RELEASE)==null?void 0:t.id)}function Oc(){var t,e,n;return((n=(e=(t=g.document)==null?void 0:t.querySelector)==null?void 0:e.call(t,`meta[name="${ta}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Rc=40;function Cc(t,e=sc("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw oc("fetch"),c}finally{n-=i,r--}}return wi(t,s,Ce(t.bufferSize||Rc))}const Nc=30,Dc=50;function ge(t,e,n,r){const s={filename:t,function:e===""?Q:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ac=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pc=/at (.+?) ?\(data:(.+?),/,$c=t=>{var s;const e=t.match(Pc);if(e)return{filename:``,function:e[1]};const n=Ac.exec(t);if(n){const[,o,i,a]=n;return ge(o,Q,+i,+a)}const r=xc.exec(t);if(r){if(((s=r[2])==null?void 0:s.indexOf("eval"))===0){const a=Lc.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=$r(r[1]||Q,r[2]);return ge(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mc=[Nc,$c],Fc=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Uc=t=>{const e=Fc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=jc.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||Q;return[r,n]=$r(r,n),ge(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Bc=[Dc,Uc],Hc=[Mc,Bc],Wc=Mn(...Hc),$r=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Q,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},It=1024,Gc="Breadcrumbs",qc=(t={})=>{const e={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Gc,setup(n){e.dom&&Xa(Kc(n,e.dom)),e.xhr&&ic(Vc(n)),e.fetch&&Ma(Xc(n)),e.history&&Ar(Jc(n)),e.sentry&&n.on("beforeSendEvent",Yc(n))}}},zc=C(qc);function Yc(t){return function(n){b()===t&&G({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:W(n)},{event:n})}}function Kc(t,e){return function(r){if(b()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>It&&(Et&&p.warn(`\`dom.maxStringLength\` cannot exceed ${It}, but a value of ${a} was configured. Sentry will use ${It} instead.`),a=It),typeof i=="string"&&(i=[i]);try{const u=r.event,f=Qc(u)?u.target:u;s=Nr(f,{keyAttrs:i,maxStringLength:a}),o=za(f)}catch{s=""}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),G(c,{event:r.event,name:r.name,global:r.global})}}function Vc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ut];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:ye(a,t),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d={category:"xhr",data:f,type:"http",level:Cr(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),G(d,l)}}function Xc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:{...n.fetchData,url:ye(n.fetchData.url,t)},level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),G(i,o)}else{const o=n.response,i={...n.fetchData,url:ye(n.fetchData.url,t),status_code:o==null?void 0:o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:Cr(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),G(c,a)}}}function Jc(t){return function(n){if(b()!==t)return;let r=n.from,s=n.to;const o=qt(g.location.href);let i=r?qt(r):void 0;const a=qt(s);i!=null&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),G({category:"navigation",data:{from:nt(r),to:nt(s)}})}}function ye(t,e){var r;const n=t===""?(r=g.location)==null?void 0:r.href:void 0;return nt(n?n.split("#")[0]??"":t,e)}function Qc(t){return!!t&&!!t.target}const Zc="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),tu="BrowserApiErrors",eu=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:tu,setupOnce(){e.setTimeout&&k(g,"setTimeout",Dn),e.setInterval&&k(g,"setInterval",Dn),e.requestAnimationFrame&&k(g,"requestAnimationFrame",ru),e.XMLHttpRequest&&"XMLHttpRequest"in g&&k(XMLHttpRequest.prototype,"send",su);const n=e.eventTarget;n&&(Array.isArray(n)?n:Zc).forEach(r=>ou(r,e))}}},nu=C(eu);function Dn(t){return function(...e){const n=e[0];return e[0]=rt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${j(t)}`}}),t.apply(this,e)}}function ru(t){return function(e){return t.apply(this,[rt(e,{mechanism:{data:{handler:j(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function su(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&k(n,r,function(s){const o={mechanism:{data:{handler:j(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},i=Ie(s);return i&&(o.mechanism.data.handler=j(i)),rt(s,o)})}),t.apply(this,e)}}function ou(t,e){var r,s;const n=(r=g[t])==null?void 0:r.prototype;(s=n==null?void 0:n.hasOwnProperty)!=null&&s.call(n,"addEventListener")&&(k(n,"addEventListener",function(o){return function(i,a,c){try{iu(a)&&(a.handleEvent=rt(a.handleEvent,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&au(this,i,a),o.apply(this,[i,rt(a,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),k(n,"removeEventListener",function(o){return function(i,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&o.call(this,i,u,c)}}catch{}return o.call(this,i,a,c)}}))}function iu(t){return typeof t.handleEvent=="function"}function au(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const cu=C((t={})=>{const e=t.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof g.document>"u"){Et&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ln({ignoreDuration:!0});let n=!1;qa(()=>{n||(Gt(),n=!0)});const r=K();let s=r.getUser();r.addScopeListener(o=>{const i=o.getUser();((s==null?void 0:s.id)!==(i==null?void 0:i.id)||(s==null?void 0:s.ip_address)!==(i==null?void 0:i.ip_address))&&(s=i,n&&Gt())}),e==="route"&&Ar(({from:o,to:i})=>{o!==i&&(ln({ignoreDuration:!0}),Gt(),n=!0)})}}}),uu="CultureContext",fu=()=>({name:uu,preprocessEvent(t){var n;const e=An();e&&(t.contexts={...t.contexts,culture:{...e,...(n=t.contexts)==null?void 0:n.culture}})},processSegmentSpan(t){const e=An();e&&fr(t,{[Ms]:e.locale,[Fs]:e.timezone,[$s]:e.calendar})}}),lu=C(fu);function An(){try{const t=g.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const du="GlobalHandlers",pu=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:du,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(mu(n),xn("onerror")),e.onunhandledrejection&&(_u(n),xn("onunhandledrejection"))}}},hu=C(pu);function mu(t){zr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr(e))return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Su(Ae(n,c||s,void 0,r,!1),o,i,a);u.level="error",yr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _u(t){Kr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr())return;const s=gu(e),o=it(s)?yu(s):Ae(n,s,void 0,r,!0);o.level="error",yr(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function gu(t){if(it(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function yu(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Su(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Eu(e)??Ne(),function:Q,in_app:!0}),t}function xn(t){Et&&p.log(`Global Handler attached: ${t}`)}function Mr(){var t;return((t=b())==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Eu(t){if(!(!$(t)||t.length===0))return t.startsWith("data:")?`<${zi(t,!1)}>`:t}const bu=C(()=>({name:"HttpContext",preprocessEvent(t,e,n){var c;if(!g.navigator&&!g.location&&!g.document)return;const{url:r,headers:s}=Cn(n),o=n.getDataCollectionOptions().httpHeaders.request,i=Object.entries(((c=t.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in s)),a={...se(s,o),...Object.fromEntries(i)};t.request={url:nt(r,n),...t.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(t,e){var a;if(!g.navigator&&!g.location&&!g.document)return;const n=Cn(e),r=se(n.headers,e.getDataCollectionOptions().httpHeaders.request),s=r.Referer,{hostname:o,protocol:i}=g.location||{};fr(t,{[qs]:r["User-Agent"],[Bs]:i==="file:"||o==="localhost"||o==="127.0.0.1"||o==="[::1]"||!!(o!=null&&o.endsWith(".localhost")),...t.is_segment&&{[Gs]:((a=t.attributes)==null?void 0:a[tr])!=="http.client"?nt(n.url):void 0,[`${Us}.referer`]:s?[s]:void 0}})}})),vu="cause",Iu=5,Tu="LinkedErrors",wu=(t={})=>{const e=t.limit||Iu,n=t.key||vu;return{name:Tu,preprocessEvent(r,s,o){const i=o.getOptions();ma(De,i.stackParser,n,e,r,s)}}},ku=C(wu),Ou=/^HTML(\w*)Element$/;function Ru(t){if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uc(t)){const e=Cu(t);if(Ou.test(e))return`[HTMLElement: ${Nr(t)}]`}}function Cu(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function Nu(){return Du()?(Et&&B(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Du(){var n,r;if(typeof g.window>"u")return!1;const t=g;if(t.nw||!((r=(n=t.chrome||t.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const e=Ne();return!(g===g.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}function Au(t){return[aa(),sa(),La(),nu(),zc(),Na(),hu(),ku(),wa(),bu(),lu(),cu()]}function xu(t={}){const e=Qi(t),n=!e.skipBrowserExtensionCheck&&Nu();let r=e.defaultIntegrations==null?Au():e.defaultIntegrations;const s=Io({integrations:e.integrations,defaultIntegrations:r}),o={...e,...Pr(e),enabled:n?!1:e.enabled,stackParser:Gr(e.stackParser||Wc),integrations:s,transport:e.transport||Cc};return rs(Ru),$i(Tc,o)}xu({dsn:"https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3",environment:"production",release:"3b288c2578a660059a2ce03dce5502547cef4f45",sendDefaultPii:!1}); +Url: ${Ct(t)}`),!0}return!1}function ua(t,e){return e!=null&&e.length?gr(t).some(n=>_t(n,e)):!1}function fa(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?_t(n,e):!1}function la(t,e){if(!(e!=null&&e.length))return!1;const n=Ct(t);return n?_t(n,e):!1}function da(t,e){if(!(e!=null&&e.length))return!0;const n=Ct(t);return n?_t(n,e):!0}function pa(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Ct(t){var e,n,r;try{const s=(r=(n=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(o=>{var i,a,c;return((i=o.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return s?pa(s):null}catch{return h&&p.error(`Cannot extract url for event ${W(t)}`),null}}function ha(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function ma(t,e,n,r,s,o){var a;if(!((a=s.exception)!=null&&a.values)||!o||!D(o.originalException))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Tt(t,e,r,o.originalException,n,s.exception.values,i,0))}function Tt(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(D(r[s])){zt(i,a,r);const u=t(e,r[s]),f=c.length;Yt(u,s,f,a),c=Tt(t,e,n,r[s],s,[u,...c],u,f)}return kr(r)&&r.errors.forEach((u,f)=>{if(c.length{const f=r[u];if(c.length{for(const e of t)Nt.delete(e)}}const bn=new Set;function ba(){"console"in _&&Ln.forEach(function(t){bn.has(t)||!(t in _.console)||(bn.add(t),k(_.console,t,function(e){return Rt[t]=e,function(...n){const r=n[0],s=Rt[t],o=Nt.size&&typeof r=="string"&&_t(r,Nt);o||N("console",{args:n,level:t}),(!o||h&&p.isEnabled())&&(s==null||s.apply(_.console,n))}}))})}function va(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Ia="Dedupe",Ta=()=>{let t;return{name:Ia,processEvent(e){if(e.type)return e;try{if(ka(e,t))return h&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},wa=C(Ta);function ka(t,e){return e?!!(Oa(t,e)||Ra(t,e)):!1}function Oa(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rr(t,e)||!Or(t,e))}function Ra(t,e){const n=vn(e),r=vn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rr(t,e)||!Or(t,e))}function Or(t,e){const n=Me(t),r=Me(e);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let s=0;s{const e=new Set(t.levels||Ln);return{name:Ca,setup(n){const r=Sa(({args:s,level:o})=>{b()!==n||!e.has(o)||Da(o,s)});if(n.registerCleanup(r),t.filter){const s=Ea(t.filter);n.registerCleanup(s)}}}});function Da(t,e){const n={category:"console",data:{arguments:e,logger:"console"},level:va(t),message:In(e)};if(t==="assert")if(e[0]===!1){const r=e.slice(1);n.message=r.length>0?`Assertion failed: ${In(r)}`:"Assertion failed",n.data.arguments=r}else return;G(n,{input:e,level:t})}function In(t){return"util"in _&&typeof _.util.format=="function"?_.util.format(...t):us(t," ")}const Aa="ConversationId",xa=()=>({name:Aa,setup(t){t.on("spanStart",e=>{const n=x().getScopeData(),r=K().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=$t(e);if(!(o!=null&&o.startsWith("gen_ai."))&&!i["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;e.setAttribute(js,s)}})}}),La=C(xa),fe=_;function Pa(){if(!("fetch"in fe))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function le(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function $a(){var n;if(typeof EdgeRuntime=="string")return!0;if(!Pa())return!1;if(le(fe.fetch))return!0;let t=!1;const e=fe.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=le(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){h&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Ma(t){const e="fetch",n=q(e,t);return z(e,()=>Fa()),n}function Fa(t){pr()&&!$a()||k(_,"fetch",function(e){return new Proxy(e,{apply(n,r,s){const o=new Error,{method:i,url:a}=ja(s),c={args:s,fetchData:{method:i,url:a},startTimestamp:A()*1e3,virtualError:o,headers:Ua(s)};return N("fetch",{...c}),Reflect.apply(n,_,s).then(async u=>(N("fetch",{...c,endTimestamp:A()*1e3,response:u}),u),u=>{var l,d;N("fetch",{...c,endTimestamp:A()*1e3,error:u}),D(u)&&u.stack===void 0&&(u.stack=o.stack,U(u,"framesToPop",1));const f=((l=b())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&D(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(c.fetchData.url,(d=_.location)==null?void 0:d.href).host;m&&(f==="always"?u.message=`${u.message} (${m})`:U(u,"__sentry_fetch_url_host__",m))}catch{}throw u})}})})}function wt(t,e){return At(t)&&!!t[e]}function Tn(t){return typeof t=="string"?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}function ja(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Tn(n),method:wt(r,"method")?String(r.method).toUpperCase():Un(n)&&wt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Tn(e),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}function Ua(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Un(e))return new Headers(e.headers)}catch{}}function Cr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const de=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,E=_,Ba=80,H={};try{typeof Node<"u"&&(H.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(H.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,H.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,H.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,H.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(H.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function F(t,e,n){const r=H[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return typeof s=="function"?s.call(t,n):s}function Nr(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=3;let u;const f=Array.isArray(e)?e:e.keyAttrs,l=Array.isArray(e)?void 0:e.maskAttributeFn,d=!Array.isArray(e)&&e.maxStringLength||Ba;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=F(n,"parentNode");return s.reverse().join(a)}catch{return""}}function Ha(t,e,n){const r=[],s=F(t,"tagName");if(!s)return"";if(typeof HTMLElement<"u"&&t instanceof HTMLElement){const i=F(t,"dataset");if(i){if(i.sentryComponent)return n?n("data-sentry-component",i.sentryComponent,t):i.sentryComponent;if(i.sentryElement)return n?n("data-sentry-element",i.sentryElement,t):i.sentryElement}}r.push(s.toLowerCase());const o=e!=null&&e.length?e.filter(i=>F(t,"getAttribute",i)).map(i=>[i,F(t,"getAttribute",i)]):null;if(o!=null&&o.length)o.forEach(([i,a])=>{r.push(`[${i}="${n&&a?n(i,a,t):a}"]`)});else{const i=F(t,"id");i&&r.push(`#${n?n("id",i,t):i}`);const a=F(t,"className");if(a&&$(a)){const c=(n?n("class",a,t):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const i of["aria-label","type","name","title","alt"]){const a=F(t,"getAttribute",i);a&&r.push(`[${i}="${n?n(i,a,t):a}"]`)}return r.join("")}function Wa(t,e,n){E.document&&E.addEventListener(t,e,n)}function Ga(t,e,n){E.document&&E.removeEventListener(t,e,n)}const qa=t=>{var n;const e=E.requestIdleCallback||E.setTimeout;if(((n=E.document)==null?void 0:n.visibilityState)==="hidden")t();else{let r=!1;const s=()=>{r||(t(),r=!0)};Wa("visibilitychange",s,{once:!0,capture:!0}),e(()=>{s(),Ga("visibilitychange",s,{capture:!0})})}};function za(t,e=5){if(!_.HTMLElement)return null;let n=t;for(let r=0;r{var s,o;const r=(s=E[n])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(k(r,"addEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=kn(u);if(!l.handler){const y=On(t);l.handler=y,l.capture=d,i.call(this,a,y,l.capture)}const m=l[d?"captureListeners":"bubbleListeners"];m.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(m.add(c),l.listenerCount++))}catch{}return i.call(this,a,c,u)}}),k(r,"removeEventListener",function(i){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[kn(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(i.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function Qa(t){if(t.type!==pe)return!1;try{if(!t.target||t.target._sentryId!==he)return!1}catch{}return!0}function Za(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function On(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=tc(n);if(Za(n.type,r))return;U(n,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",R());const s=n.type==="keypress"?"input":n.type;Qa(n)||(t({event:n,name:s,global:e}),pe=n.type,he=r?r._sentryId:void 0),clearTimeout(wn),wn=E.setTimeout(()=>{he=void 0,pe=void 0},Va)}}function tc(t){try{return t.target}catch{return null}}let vt;function ec(){return"history"in E&&!!E.history}function Ar(t){const e="history";q(e,t),z(e,nc)}function nc(){if(E.addEventListener("popstate",()=>{const e=E.location.href,n=vt;vt=e,n!==e&&N("history",{from:n,to:e})}),!ec())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=vt,o=rc(String(r));if(vt=o,s===o)return e.apply(this,n);N("history",{from:s,to:o})}return e.apply(this,n)}}k(E.history,"pushState",t),k(E.history,"replaceState",t)}function rc(t){try{return new URL(t,E.location.origin).toString()}catch{return t}}const kt={};function sc(t){const e=kt[t];if(e)return e;let n=E[t];if(le(n))return kt[t]=n.bind(E);const r=E.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){de&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(kt[t]=n.bind(E))}function oc(t){kt[t]=void 0}const ut="__sentry_xhr_v3__";function ic(t){const e="xhr";q(e,t),z(e,ac)}function ac(){if(!E.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let s=new Error;const o=A()*1e3,i=$(r[0])?r[0].toUpperCase():void 0,a=cc(r[1]);if(!i||a===void 0)return e.apply(n,r);n[ut]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[ut];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:A()*1e3,startTimestamp:o,xhr:n,virtualError:s};N("xhr",f),s=void 0,n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,m]=l,y=f[ut];return y&&$(d)&&$(m)&&(y.request_headers[d.toLowerCase()]=m),u.apply(f,l)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[ut];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:A()*1e3,xhr:n};return N("xhr",o),e.apply(n,r)}})}function cc(t){if($(t))return t;try{return t.toString()}catch{}}function uc(t){if(typeof Element>"u")return!1;try{return t instanceof Element}catch{return!1}}const g=_;let me=0;const Rn=[];function xr(t){if(me>0)return!0;const e=t?Rn.findIndex(n=>fc(n,t)):-1;return e===-1?!1:(Rn.splice(e,1),!0)}function fc(t,e){return t.msg===e.msg&&t.url===e.url&&t.line===e.line&&t.column===e.column}function lc(){me++,setTimeout(()=>{me--})}function rt(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const s=t.__sentry_wrapped__;return typeof s=="function"?s:t}if(Ie(t))return t}catch{return t}const r=function(...s){_._sentryWrappedDepth=(_._sentryWrappedDepth||0)+1;try{const o=s.map(i=>rt(i,e));return t.apply(this,o)}catch(o){throw lc(),Ls(i=>{i.addEventProcessor(a=>(e.mechanism&&(Qt(a,void 0),J(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),pi(o)}),o}finally{_._sentryWrappedDepth=(_._sentryWrappedDepth||0)-1}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}Bn(r,t),U(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Cn(t){const e=Ne(),{referrer:n}=g.document||{},{userAgent:r}=g.navigator||{};return{url:e,headers:{...n&&{Referer:nt(n,t)},...r&&{"User-Agent":r}}}}function De(t,e){const n=Ft(t,e),r={type:_c(e),value:gc(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dc(t,e,n,r){var c;const s=(c=b())==null?void 0:c.getOptions().normalizeDepth,o=vc(e),i={__serialized__:Gn(e,s)};if(o)return{exception:{values:[De(t,o)]},extra:i};const a={exception:{values:[{type:xt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ec(e,{isUnhandledRejection:r})}]},extra:i};if(n){const u=Ft(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Kt(t,e){return{exception:{values:[De(t,e)]}}}function Ft(t,e){const n=e.stacktrace||e.stack||"",r=hc(e),s=mc(e);try{return t(n,r,s)}catch{}return[]}const pc=/Minified React error #\d+;/i;function hc(t){return t&&pc.test(t.message)?1:0}function mc(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Lr(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function _c(t){const e=t==null?void 0:t.name;return!e&&Lr(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function gc(t){const e=t==null?void 0:t.message;return Lr(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?En(e.error):En(t):"No error message"}function yc(t,e,n,r){const s=Ae(t,e,(n==null?void 0:n.syntheticException)||void 0,r);return J(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),St(s)}function Sc(t,e,n="info",r,s){const o=_e(t,e,(r==null?void 0:r.syntheticException)||void 0,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),St(o)}function Ae(t,e,n,r,s){var a,c;let o;if(jn(e)&&e.error)return Kt(t,e.error);if(je(e)||Xr(e)){const u=e;if("stack"in e){o=Kt(t,e);const f=(c=(a=o.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=Ft(t,n);l.length&&(f.stacktrace={frames:l},J(o,{synthetic:!0}))}}else{const f=u.name||(je(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;o=_e(t,l,n,r),Qt(o,l)}return o}if(D(e))return Kt(t,e);if(ht(e)||xt(e))return o=dc(t,e,n,s),J(o,{synthetic:!0}),o;const i=String(e);return o=_e(t,i,n,r),Qt(o,i),J(o,{synthetic:!0}),o}function _e(t,e,n,r){const s={};if(r&&n){const o=Ft(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),J(s,{synthetic:!0})}if(be(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Ec(t,{isUnhandledRejection:e}){const n=Qr(t),r=e?"promise rejection":"exception";return jn(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:xt(t)?`Event \`${bc(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bc(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function vc(t){return Object.values(t).find(D)}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Pr(t){const{tunnel:e,dsn:n,transportOptions:r}=t;if(!e)return{tunnel:e,transportOptions:r};if(typeof e=="string")return{tunnel:e,transportOptions:Ic(e)?Nn(r):r};const s=e===!0?{}:e,o=n&&ke(n),i=s.path??(o&&Ki(o));if(!i)return{tunnel:void 0,transportOptions:r};const a=`${Vi(s.basePath)}${i}${s.trailingSlash?"/":""}`;return Et&&p.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Nn(r)}}function Nn(t){return{...t,headers:{"Content-Type":"application/x-sentry-envelope",...t==null?void 0:t.headers}}}function Ic(t){var n,r;const e=qi(t,(n=g.location)==null?void 0:n.href);return e?Gi(e)||e.origin===((r=g.location)==null?void 0:r.origin):!1}var Tc=class extends Li{constructor(t){var a;const e=wc({...t,...Pr(t)}),n=g.SENTRY_SDK_SOURCE||zo();Zi(e,"browser",["browser"],n),super(e),e.routeProvider&&Ya(e.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=e._metadata)!=null&&a.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options,o=()=>{A()},i=[[g.document,"visibilitychange",()=>{o(),g.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[g.document,"freeze",o],[g.document,"resume",o],[g,"pagehide",o],[g,"pageshow",o]];i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>i.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",Xi)}eventFromException(t,e){return yc(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Sc(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function wc(t){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t,release:t.release??kc()}}function kc(){var t;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Oc()??((t=g.SENTRY_RELEASE)==null?void 0:t.id)}function Oc(){var t,e,n;return((n=(e=(t=g.document)==null?void 0:t.querySelector)==null?void 0:e.call(t,`meta[name="${ta}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Rc=40;function Cc(t,e=sc("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw oc("fetch"),c}finally{n-=i,r--}}return wi(t,s,Ce(t.bufferSize||Rc))}const Nc=30,Dc=50;function ge(t,e,n,r){const s={filename:t,function:e===""?Q:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ac=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pc=/at (.+?) ?\(data:(.+?),/,$c=t=>{var s;const e=t.match(Pc);if(e)return{filename:``,function:e[1]};const n=Ac.exec(t);if(n){const[,o,i,a]=n;return ge(o,Q,+i,+a)}const r=xc.exec(t);if(r){if(((s=r[2])==null?void 0:s.indexOf("eval"))===0){const a=Lc.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=$r(r[1]||Q,r[2]);return ge(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mc=[Nc,$c],Fc=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Uc=t=>{const e=Fc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=jc.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||Q;return[r,n]=$r(r,n),ge(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Bc=[Dc,Uc],Hc=[Mc,Bc],Wc=Mn(...Hc),$r=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Q,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},It=1024,Gc="Breadcrumbs",qc=(t={})=>{const e={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Gc,setup(n){e.dom&&Xa(Kc(n,e.dom)),e.xhr&&ic(Vc(n)),e.fetch&&Ma(Xc(n)),e.history&&Ar(Jc(n)),e.sentry&&n.on("beforeSendEvent",Yc(n))}}},zc=C(qc);function Yc(t){return function(n){b()===t&&G({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:W(n)},{event:n})}}function Kc(t,e){return function(r){if(b()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>It&&(Et&&p.warn(`\`dom.maxStringLength\` cannot exceed ${It}, but a value of ${a} was configured. Sentry will use ${It} instead.`),a=It),typeof i=="string"&&(i=[i]);try{const u=r.event,f=Qc(u)?u.target:u;s=Nr(f,{keyAttrs:i,maxStringLength:a}),o=za(f)}catch{s=""}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),G(c,{event:r.event,name:r.name,global:r.global})}}function Vc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ut];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:ye(a,t),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d={category:"xhr",data:f,type:"http",level:Cr(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),G(d,l)}}function Xc(t){return function(n){if(b()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:{...n.fetchData,url:ye(n.fetchData.url,t)},level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),G(i,o)}else{const o=n.response,i={...n.fetchData,url:ye(n.fetchData.url,t),status_code:o==null?void 0:o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:Cr(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),G(c,a)}}}function Jc(t){return function(n){if(b()!==t)return;let r=n.from,s=n.to;const o=qt(g.location.href);let i=r?qt(r):void 0;const a=qt(s);i!=null&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),G({category:"navigation",data:{from:nt(r),to:nt(s)}})}}function ye(t,e){var r;const n=t===""?(r=g.location)==null?void 0:r.href:void 0;return nt(n?n.split("#")[0]??"":t,e)}function Qc(t){return!!t&&!!t.target}const Zc="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),tu="BrowserApiErrors",eu=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:tu,setupOnce(){e.setTimeout&&k(g,"setTimeout",Dn),e.setInterval&&k(g,"setInterval",Dn),e.requestAnimationFrame&&k(g,"requestAnimationFrame",ru),e.XMLHttpRequest&&"XMLHttpRequest"in g&&k(XMLHttpRequest.prototype,"send",su);const n=e.eventTarget;n&&(Array.isArray(n)?n:Zc).forEach(r=>ou(r,e))}}},nu=C(eu);function Dn(t){return function(...e){const n=e[0];return e[0]=rt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${j(t)}`}}),t.apply(this,e)}}function ru(t){return function(e){return t.apply(this,[rt(e,{mechanism:{data:{handler:j(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function su(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&k(n,r,function(s){const o={mechanism:{data:{handler:j(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},i=Ie(s);return i&&(o.mechanism.data.handler=j(i)),rt(s,o)})}),t.apply(this,e)}}function ou(t,e){var r,s;const n=(r=g[t])==null?void 0:r.prototype;(s=n==null?void 0:n.hasOwnProperty)!=null&&s.call(n,"addEventListener")&&(k(n,"addEventListener",function(o){return function(i,a,c){try{iu(a)&&(a.handleEvent=rt(a.handleEvent,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&au(this,i,a),o.apply(this,[i,rt(a,{mechanism:{data:{handler:j(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),k(n,"removeEventListener",function(o){return function(i,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&o.call(this,i,u,c)}}catch{}return o.call(this,i,a,c)}}))}function iu(t){return typeof t.handleEvent=="function"}function au(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const cu=C((t={})=>{const e=t.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof g.document>"u"){Et&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ln({ignoreDuration:!0});let n=!1;qa(()=>{n||(Gt(),n=!0)});const r=K();let s=r.getUser();r.addScopeListener(o=>{const i=o.getUser();((s==null?void 0:s.id)!==(i==null?void 0:i.id)||(s==null?void 0:s.ip_address)!==(i==null?void 0:i.ip_address))&&(s=i,n&&Gt())}),e==="route"&&Ar(({from:o,to:i})=>{o!==i&&(ln({ignoreDuration:!0}),Gt(),n=!0)})}}}),uu="CultureContext",fu=()=>({name:uu,preprocessEvent(t){var n;const e=An();e&&(t.contexts={...t.contexts,culture:{...e,...(n=t.contexts)==null?void 0:n.culture}})},processSegmentSpan(t){const e=An();e&&fr(t,{[Ms]:e.locale,[Fs]:e.timezone,[$s]:e.calendar})}}),lu=C(fu);function An(){try{const t=g.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const du="GlobalHandlers",pu=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:du,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(mu(n),xn("onerror")),e.onunhandledrejection&&(_u(n),xn("onunhandledrejection"))}}},hu=C(pu);function mu(t){zr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr(e))return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Su(Ae(n,c||s,void 0,r,!1),o,i,a);u.level="error",yr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _u(t){Kr(e=>{const{stackParser:n,attachStacktrace:r}=Mr();if(b()!==t||xr())return;const s=gu(e),o=it(s)?yu(s):Ae(n,s,void 0,r,!0);o.level="error",yr(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function gu(t){if(it(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function yu(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Su(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Eu(e)??Ne(),function:Q,in_app:!0}),t}function xn(t){Et&&p.log(`Global Handler attached: ${t}`)}function Mr(){var t;return((t=b())==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Eu(t){if(!(!$(t)||t.length===0))return t.startsWith("data:")?`<${zi(t,!1)}>`:t}const bu=C(()=>({name:"HttpContext",preprocessEvent(t,e,n){var c;if(!g.navigator&&!g.location&&!g.document)return;const{url:r,headers:s}=Cn(n),o=n.getDataCollectionOptions().httpHeaders.request,i=Object.entries(((c=t.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in s)),a={...se(s,o),...Object.fromEntries(i)};t.request={url:nt(r,n),...t.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(t,e){var a;if(!g.navigator&&!g.location&&!g.document)return;const n=Cn(e),r=se(n.headers,e.getDataCollectionOptions().httpHeaders.request),s=r.Referer,{hostname:o,protocol:i}=g.location||{};fr(t,{[qs]:r["User-Agent"],[Bs]:i==="file:"||o==="localhost"||o==="127.0.0.1"||o==="[::1]"||!!(o!=null&&o.endsWith(".localhost")),...t.is_segment&&{[Gs]:((a=t.attributes)==null?void 0:a[tr])!=="http.client"?nt(n.url):void 0,[`${Us}.referer`]:s?[s]:void 0}})}})),vu="cause",Iu=5,Tu="LinkedErrors",wu=(t={})=>{const e=t.limit||Iu,n=t.key||vu;return{name:Tu,preprocessEvent(r,s,o){const i=o.getOptions();ma(De,i.stackParser,n,e,r,s)}}},ku=C(wu),Ou=/^HTML(\w*)Element$/;function Ru(t){if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(uc(t)){const e=Cu(t);if(Ou.test(e))return`[HTMLElement: ${Nr(t)}]`}}function Cu(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function Nu(){return Du()?(Et&&B(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Du(){var n,r;if(typeof g.window>"u")return!1;const t=g;if(t.nw||!((r=(n=t.chrome||t.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const e=Ne();return!(g===g.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}function Au(t){return[aa(),sa(),La(),nu(),zc(),Na(),hu(),ku(),wa(),bu(),lu(),cu()]}function xu(t={}){const e=Qi(t),n=!e.skipBrowserExtensionCheck&&Nu();let r=e.defaultIntegrations==null?Au():e.defaultIntegrations;const s=Io({integrations:e.integrations,defaultIntegrations:r}),o={...e,...Pr(e),enabled:n?!1:e.enabled,stackParser:Gr(e.stackParser||Wc),integrations:s,transport:e.transport||Cc};return rs(Ru),$i(Tc,o)}xu({dsn:"https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3",environment:"production",release:"519433fdf1773a2878bb85aa4b6fbd25ff965159",sendDefaultPii:!1}); diff --git a/web/themes/custom/leshed/assets/dist/titles.js b/web/themes/custom/leshed/assets/dist/titles.js index a46e7d6..f09e33f 100644 --- a/web/themes/custom/leshed/assets/dist/titles.js +++ b/web/themes/custom/leshed/assets/dist/titles.js @@ -1 +1 @@ -(function(){try{var i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new i.Error().stack;f&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[f]="505962d8-a453-4692-9bd3-59f971deaa20",i._sentryDebugIdIdentifier="sentry-dbid-505962d8-a453-4692-9bd3-59f971deaa20")}catch{}})();var B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ot={exports:{}};(function(i,f){(function(r,d){i.exports=d()})(B,function(){var r=document,d=r.createTextNode.bind(r);function h(t,e,n){t.style.setProperty(e,n)}function w(t,e){return t.appendChild(e)}function p(t,e,n,u){var c=r.createElement("span");return e&&(c.className=e),n&&(!u&&c.setAttribute("data-"+e,n),c.textContent=n),t&&w(t,c)||c}function S(t,e){return t.getAttribute("data-"+e)}function E(t,e){return!t||t.length==0?[]:t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(e||r).querySelectorAll(t))}function M(t){for(var e=[];t--;)e[t]=[];return e}function A(t,e){t&&t.some(e)}function U(t){return function(e){return t[e]}}function K(t,e,n){var u="--"+e,c=u+"-index";A(n,function(g,v){Array.isArray(g)?A(g,function(b){h(b,c,v)}):h(g,c,v)}),h(t,u+"-total",n.length)}var q={};function W(t,e,n){var u=n.indexOf(t);if(u==-1){n.unshift(t);var c=q[t];if(!c)throw new Error("plugin not loaded: "+t);A(c.depends,function(v){W(v,t,n)})}else{var g=n.indexOf(e);n.splice(u,1),n.splice(g,0,t)}return n}function _(t,e,n,u){return{by:t,depends:e,key:n,split:u}}function Q(t){return W(t,0,[]).map(U(q))}function L(t){q[t.by]=t}function k(t,e,n,u,c){t.normalize();var g=[],v=document.createDocumentFragment();u&&g.push(t.previousSibling);var b=[];return E(t.childNodes).some(function(T){if(T.tagName&&!T.hasChildNodes()){b.push(T);return}if(T.childNodes&&T.childNodes.length){b.push(T),g.push.apply(g,k(T,e,n,u,c));return}var x=T.wholeText||"",j=x.trim();if(j.length){x[0]===" "&&b.push(d(" "));var ut=n===""&&typeof Intl.Segmenter=="function";A(ut?Array.from(new Intl.Segmenter().segment(j)).map(function(et){return et.segment}):j.split(n),function(et,ct){ct&&c&&b.push(p(v,"whitespace"," ",c));var nt=p(v,e,et);g.push(nt),b.push(nt)}),x[x.length-1]===" "&&b.push(d(" "))}}),A(b,function(T){w(v,T)}),t.innerHTML="",w(t,v),g}var I=0;function Z(t,e){for(var n in e)t[n]=e[n];return t}var D="words",V=_(D,I,"word",function(t){return k(t,"word",/\s+/,0,1)}),Y="chars",O=_(Y,[D],"char",function(t,e,n){var u=[];return A(n[D],function(c,g){u.push.apply(u,k(c,"char","",e.whitespace&&g))}),u});function F(t){t=t||{};var e=t.key;return E(t.target||"[data-splitting]").map(function(n){var u=n["🍌"];if(!t.force&&u)return u;u=n["🍌"]={el:n};var c=t.by||S(n,"splitting");(!c||c=="true")&&(c=Y);var g=Q(c),v=Z({},t);return A(g,function(b){if(b.split){var T=b.by,x=(e?"-"+e:"")+b.key,j=b.split(n,v,u);x&&K(n,x,j),u[T]=j,n.classList.add(T)}}),n.classList.add("splitting"),u})}function P(t){t=t||{};var e=t.target=p();return e.innerHTML=t.content,F(t),e.outerHTML}F.html=P,F.add=L;function G(t,e,n){var u=E(e.matching||t.children,t),c={};return A(u,function(g){var v=Math.round(g[n]);(c[v]||(c[v]=[])).push(g)}),Object.keys(c).map(Number).sort($).map(U(c))}function $(t,e){return t-e}var tt=_("lines",[D],"line",function(t,e,n){return G(t,{matching:n[D]},"offsetTop")}),a=_("items",I,"item",function(t,e){return E(e.matching||t.children,t)}),s=_("rows",I,"row",function(t,e){return G(t,e,"offsetTop")}),o=_("cols",I,"col",function(t,e){return G(t,e,"offsetLeft")}),l=_("grid",["rows","cols"]),m="layout",y=_(m,I,I,function(t,e){var n=e.rows=+(e.rows||S(t,"rows")||1),u=e.columns=+(e.columns||S(t,"columns")||1);if(e.image=e.image||S(t,"image")||t.currentSrc||t.src,e.image){var c=E("img",t)[0];e.image=c&&(c.currentSrc||c.src)}e.image&&h(t,"background-image","url("+e.image+")");for(var g=n*u,v=[],b=p(I,"cell-grid");g--;){var T=p(b,"cell");p(T,"cell-inner"),v.push(T)}return w(t,b),v}),N=_("cellRows",[m],"row",function(t,e,n){var u=e.rows,c=M(u);return A(n[m],function(g,v,b){c[Math.floor(v/(b.length/u))].push(g)}),c}),H=_("cellColumns",[m],"col",function(t,e,n){var u=e.columns,c=M(u);return A(n[m],function(g,v){c[v%u].push(g)}),c}),C=_("cells",["cellRows","cellColumns"],"cell",function(t,e,n){return n[m]});return L(V),L(O),L(tt),L(a),L(s),L(o),L(l),L(y),L(N),L(H),L(C),F})})(ot);var ht=ot.exports;const mt=ft(ht);var at={exports:{}};(function(i){(function(f,r){i.exports?i.exports=r():f.createHyphenator=r()})(B,function(){function f(a){var s="",o="",l=0,m=a();return function(y){for(;l"&&(s(),a=!1):o[0]==="<"&&(!r(o[1])||o[1]==="/")&&(a=!0),a}}function h(a){var s=!1;return function(o,l){return s?!r(l[0])&&r(l[1])&&(o(),s=!1):!r(l[0])&&l[1]===a&&(s=!0),s}}function w(a,s){return function(){var o="",l="";function m(){o+=l,l=""}function y(N){return o="",l="",N}return function(N,H){l+=N;var C=a.reduce(function(t,e){return t||e(m,[N,H])},!1);if(!C&&(r(N)&&!r(H)&&m(),!r(N)&&r(H))){if(l.length>=s)return y([o,l]);m()}if(H==="")return(l.length1)for(var m=0,y=1;y-1;)m.push(l);return s[o.toLocaleLowerCase().replace(/\-/g,"")]=m,s},{})}function M(a){var s=0;function o(){return a[s++]}return o}function A(a){var s=0,o=a;function l(){if(o=a.slice(s++),!(o.length<3))return o}function m(){return s===2}return[l,m]}function U(a,y,o,l){for(var m=new Array(a.length+1),y=("."+y+".").split(""),N,H,C,t,e,n,u=-1,c,g,v,b,T=m.length;T--;)m[T]=0;for(c=A(y),g=c[0],v=c[1];N=g();)for(u++,v()&&u--,C=l,b=M(N);(H=b())&&(t=C[H])!==void 0;){switch(C={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":C=t[0],e=t[1];break;case"[object Object]":C=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=o[e];for(var x=0;x>0,e=P(s,Z,_),n=P(s,I,W,F),u=N+t;if(y[u]={},a[2]&&(y[u]=G(a[2],N),m=a[2]),n&&n.length&&(y[u]=O(y[u],$(n,N)),m=O(m,E(n))),l[u]=O({},y[u]),o&&!("Promise"in Y))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(c,g){g=g||{};var v=P(g,D,N),b=P(g,V,t)>>0,T=P(g,I,W,F),x=v+b;return!y[x]&&a[2]&&(y[x]=G(a[2],v),l[x]=O(l[x],y[x])),T&&T.length&&(y[x]=O(y[x],$(T,v)),m=O(m,E(T)),l[x]=O(l[x],y[x])),K(c,H,C,l[x],m,v,e,b,o)}}return tt})})(at);var dt=at.exports,z=dt,gt=function(i){return{hyphenate:z(i,{async:!0}),hyphenateHTML:z(i,{async:!0,html:!0}),hyphenateHTMLSync:z(i,{html:!0}),hyphenateSync:z(i),patterns:i}},lt={exports:{}};(function(i){(function(f,r){i.exports?i.exports=r:f.hyphenationPatternsFr=r})(B,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(lt);var pt=lt.exports,vt=gt(pt);const yt=".variable-title",R={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3,wghtStep:25};function X(i,f){return Math.floor(Math.random()*(f-i))+i}const wt=1.5,bt=8;function Tt(){const i=Array.from(document.querySelectorAll(yt)),f=window.innerHeight*wt,r=[],d=[];for(const h of i){const w=h.getBoundingClientRect();(w.bottom>=0&&w.top<=f?r:d).push(h)}r.forEach(st),J(r),xt(d,()=>{document.dispatchEvent(new CustomEvent("leshed:titles-ready"))}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>{J(i.filter(h=>h.classList.contains("is-ready")))})}function st(i){const f=mt({target:i,by:"chars"});for(const r of f[0].words){const d=Array.from(r.getElementsByClassName("char"));St(d),Nt(d),Ct(d)}i.classList.add("is-ready")}function xt(i,f){if(!i.length){f();return}const r=window.requestIdleCallback?h=>window.requestIdleCallback(h,{timeout:1e3}):h=>setTimeout(h,16),d=()=>{const h=performance.now()+bt,w=[];for(;i.length&&performance.now()0&&r.setAttribute("data-overflow-lines",Math.ceil(S/h))}(!d.complete||!d.naturalWidth)&&!rt.has(d)&&(rt.add(d),d.addEventListener("load",()=>J([r]),{once:!0}))}}}function Et({min:i,max:f}){const r=R.wghtStep;return i+r*X(0,Math.floor((f-i)/r)+1)}function it(i,f,r=new Set){const d=new Set;for(let h=0;h{let E,M;return r.has(S)?(E=R.wghtBold,M=R.italicOnBold):d.has(S)?(E=R.wghtMedium,M=R.italicOnMedium):(E=R.wghtThin,M=R.italicOnThin),{char:p,wght:Et(E),ital:Math.random()p.ital)){const p=[...r,...d],S=p.length?p[X(0,p.length)]:X(0,f);h[S].ital=!0}let w=0;for(const p of h)p.ital?(w+=1,w>2&&(p.ital=!1,w=0)):w=0;for(const{char:p,wght:S,ital:E}of h)p.style.fontVariationSettings=`'wght' ${S}`,p.style.fontStyle=E?"italic":"normal",p.classList.toggle("italic",E),p.classList.toggle("normal",!E)}function Nt(i){if(i.length<5)return;const f="­",r=i.map(w=>w.textContent).join(""),d=vt.hyphenateSync(r);if(!d.includes(f))return;let h=0;for(const w of d)if(w===f){const p=i[h];h>0&&p&&p.parentNode&&p.parentNode.insertBefore(document.createTextNode(f),p)}else h++}function Ct(i){for(let f=0;f"&&(s(),o=!1):i[0]==="<"&&(!r(i[1])||i[1]==="/")&&(o=!0),o}}function f(o){var s=!1;return function(i,a){return s?!r(a[0])&&r(a[1])&&(i(),s=!1):!r(a[0])&&a[1]===o&&(s=!0),s}}function w(o,s){return function(){var i="",a="";function h(){i+=a,a=""}function y(N){return i="",a="",N}return function(N,M){a+=N;var C=o.reduce(function(t,e){return t||e(h,[N,M])},!1);if(!C&&(r(N)&&!r(M)&&h(),!r(N)&&r(M))){if(a.length>=s)return y([i,a]);h()}if(M==="")return(a.length1)for(var h=0,y=1;y-1;)h.push(a);return s[i.toLocaleLowerCase().replace(/\-/g,"")]=h,s},{})}function A(o){var s=0;function i(){return o[s++]}return i}function _(o){var s=0,i=o;function a(){if(i=o.slice(s++),!(i.length<3))return i}function h(){return s===2}return[a,h]}function U(o,y,i,a){for(var h=new Array(o.length+1),y=("."+y+".").split(""),N,M,C,t,e,n,u=-1,c,g,v,T,b=h.length;b--;)h[b]=0;for(c=_(y),g=c[0],v=c[1];N=g();)for(u++,v()&&u--,C=a,T=A(N);(M=T())&&(t=C[M])!==void 0;){switch(C={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":C=t[0],e=t[1];break;case"[object Object]":C=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=i[e];for(var x=0;x>0,e=I(s,Z,H),n=I(s,P,W,G),u=N+t;if(y[u]={},o[2]&&(y[u]=j(o[2],N),h=o[2]),n&&n.length&&(y[u]=O(y[u],$(n,N)),h=O(h,E(n))),a[u]=O({},y[u]),i&&!("Promise"in Y))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(c,g){g=g||{};var v=I(g,F,N),T=I(g,V,t)>>0,b=I(g,P,W,G),x=v+T;return!y[x]&&o[2]&&(y[x]=j(o[2],v),a[x]=O(a[x],y[x])),b&&b.length&&(y[x]=O(y[x],$(b,v)),h=O(h,E(b)),a[x]=O(a[x],y[x])),K(c,M,C,a[x],h,v,e,T,i)}}return tt})})(at);var dt=at.exports,z=dt,gt=function(l){return{hyphenate:z(l,{async:!0}),hyphenateHTML:z(l,{async:!0,html:!0}),hyphenateHTMLSync:z(l,{html:!0}),hyphenateSync:z(l),patterns:l}},lt={exports:{}};(function(l){(function(m,r){l.exports?l.exports=r:m.hyphenationPatternsFr=r})(B,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(lt);var pt=lt.exports,vt=gt(pt);const yt=".variable-title",R={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3,wghtStep:25};function X(l,m){return Math.floor(Math.random()*(m-l))+l}const wt=1.5,Tt=8;function bt(){const l=Array.from(document.querySelectorAll(yt)),m=window.innerHeight*wt,r=[],d=[];for(const f of l){const w=f.getBoundingClientRect();(w.bottom>=0&&w.top<=m?r:d).push(f)}r.forEach(st),J(r),xt(d,()=>{document.dispatchEvent(new CustomEvent("leshed:titles-ready"))}),document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>{J(l.filter(f=>f.classList.contains("is-ready")))})}function st(l){const m=mt({target:l,by:"chars"});for(const r of m[0].words){const d=Array.from(r.getElementsByClassName("char"));St(d),Nt(d),Ct(d)}l.classList.add("is-ready")}function xt(l,m){if(!l.length){m();return}const r=window.requestIdleCallback?f=>window.requestIdleCallback(f,{timeout:1e3}):f=>setTimeout(f,16),d=()=>{const f=performance.now()+Tt,w=[];for(;l.length&&performance.now()0&&r.setAttribute("data-overflow-lines",Math.ceil(S/f))}(!d.complete||!d.naturalWidth)&&!rt.has(d)&&(rt.add(d),d.addEventListener("load",()=>J([r]),{once:!0}))}}}function Et({min:l,max:m}){const r=R.wghtStep;return l+r*X(0,Math.floor((m-l)/r)+1)}function it(l,m,r=new Set){const d=new Set;for(let f=0;f{let E,A;return r.has(S)?(E=R.wghtBold,A=R.italicOnBold):d.has(S)?(E=R.wghtMedium,A=R.italicOnMedium):(E=R.wghtThin,A=R.italicOnThin),{char:p,wght:Et(E),ital:Math.random()p.ital)){const p=[...r,...d],S=p.length?p[X(0,p.length)]:X(0,m);f[S].ital=!0}let w=0;for(const p of f)p.ital?(w+=1,w>2&&(p.ital=!1,w=0)):w=0;for(const{char:p,wght:S,ital:E}of f)p.style.fontVariationSettings=`'wght' ${S}`,p.style.fontStyle=E?"italic":"normal",p.classList.toggle("italic",E),p.classList.toggle("normal",!E)}function Nt(l){if(l.length<5)return;const m="­",r=l.map(w=>w.textContent).join(""),d=vt.hyphenateSync(r);if(!d.includes(m))return;let f=0;for(const w of d)if(w===m){const p=l[f];f>0&&p&&p.parentNode&&p.parentNode.insertBefore(document.createTextNode(m),p)}else f++}function Ct(l){for(let m=0;m 'http://localhost:5173/@vite/client', 'type' => 'module'],'vite-client']; - // $page['#attached']['library'][] = 'http://localhost:5173/@vite/client'; - // $attachments['#attached']['html_head'][] = [['src' => 'http://localhost:5173/assets/js/main.js', 'type' => 'module'],'vite-main']; - // $page['#attached']['library'][] = 'http://localhost:5173/assets/js/main.js'; - $page['#attached']['library'][] = 'leshed/sentry_hmr'; - $page['#attached']['library'][] = 'leshed/vitehmr'; - $page['#attached']['library'][] = 'leshed/titles_hmr'; + // Port réel du dev server Vite, écrit par le plugin devPortFilePlugin + // (vite.config.js) dans .vite-dev-port + // (premier port libre à partir de 5173, strictPort: false) : permet de + // lancer plusieurs sites sur le même modèle de thème en même temps. + $port = (int) trim((string) @file_get_contents(__DIR__ . '/.vite-dev-port')); + if ($port <= 0) { + $port = 5173; + } + // Scripts du dev server, attachés directement en html_head (pas de + // librairie statique : le port est dynamique). Ordre : @vite/client, + // sentry.js (Glitchtip, avant tout pour capturer tôt), titles.js, main.js. + foreach (['@vite/client', 'assets/js/sentry.js', 'assets/js/titles.js', 'assets/js/main.js'] as $i => $path) { + $page['#attached']['html_head'][] = [ + [ + '#type' => 'html_tag', + '#tag' => 'script', + '#attributes' => ['type' => 'module', 'src' => "https://localhost:{$port}/{$path}"], + ], + 'vite-dev-' . $i, + ]; + } // CSS compilée en render-blocking : sans elle, la page se peint // sans styles pendant le chargement des modules Vite (qui portent la CSS - // en dev). Le build --watch tient assets/dist/main.css frais ; les styles - // injectés ensuite par Vite, plus tardifs dans la cascade, prennent le - // dessus sur les égalités. + // en dev). Le build watch lancé par le plugin dev-port-file tient + // assets/dist/main.css frais ; + // les styles injectés ensuite par Vite, plus tardifs dans la cascade, + // prennent le dessus sur les égalités. $page['#attached']['library'][] = 'leshed/base_css'; }else{ $page['#attached']['library'][] = 'leshed/sentry'; diff --git a/web/themes/custom/leshed/package-lock.json b/web/themes/custom/leshed/package-lock.json index 32c19e5..429c78c 100644 --- a/web/themes/custom/leshed/package-lock.json +++ b/web/themes/custom/leshed/package-lock.json @@ -20,7 +20,6 @@ "devDependencies": { "@sentry/vite-plugin": "^11.20.0", "@vitejs/plugin-vue": "^5.0.5", - "concurrently": "^10.0.5", "sass": "^1.77.8", "vite": "^5.3.1" } @@ -1815,32 +1814,6 @@ "node": ">= 6.0.0" } }, - "node_modules/ansi-regex": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", - "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -1895,19 +1868,6 @@ "node": ">= 0.4" } }, - "node_modules/chalk": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", - "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", @@ -1924,21 +1884,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/cliui": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", - "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^7.2.0", - "strip-ansi": "^7.1.0", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=20" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -1951,31 +1896,6 @@ "node": ">= 0.8" } }, - "node_modules/concurrently": { - "version": "10.0.5", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-10.0.5.tgz", - "integrity": "sha512-JaP/CoftUrCcAFW/g//RbgEGwlelnEae6cfBLgH6ZdO6s8jPkn6p9SB9u6pdVxYXoiSnFqseOlHfrEfF82TVOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "5.6.2", - "rxjs": "7.8.2", - "shell-quote": "1.9.0", - "supports-color": "10.2.2", - "tree-kill": "1.2.2", - "yargs": "18.0.0" - }, - "bin": { - "conc": "dist/bin/index.js", - "concurrently": "dist/bin/index.js" - }, - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" - } - }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -2046,13 +1966,6 @@ "node": ">= 0.4" } }, - "node_modules/emoji-regex": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", - "dev": true, - "license": "MIT" - }, "node_modules/entities": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", @@ -2149,16 +2062,6 @@ "@esbuild/win32-x64": "0.21.5" } }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", @@ -2231,29 +2134,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-east-asian-width": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", - "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -2726,16 +2606,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/rxjs": { - "version": "7.8.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", - "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.1.0" - } - }, "node_modules/sass": { "version": "1.101.0", "resolved": "https://registry.npmjs.org/sass/-/sass-1.101.0.tgz", @@ -2770,19 +2640,6 @@ "node": ">=20.0" } }, - "node_modules/shell-quote": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.9.0.tgz", - "integrity": "sha512-Iov+JwFv/2HcTpcwNMKd8+IWNb8tboQJNQTkAY/LLVK7gGH9jy+LGkVqPxfekHl+yMmiqXszdGWXgkfml7hjqA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -2798,70 +2655,6 @@ "integrity": "sha512-6Tj+4mvlSti4DUu1yl0PnkHIIoLchFYJHqz2DnwYkvEehXbjrR2epa4ds/xdto6ZdZsC+NP5IOOehi9VGjNlMQ==", "license": "MIT" }, - "node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.2.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/supports-color": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", - "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true, - "license": "MIT", - "bin": { - "tree-kill": "cli.js" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, - "license": "0BSD" - }, "node_modules/vite": { "version": "5.4.21", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", @@ -2948,62 +2741,6 @@ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-6.2.3.tgz", "integrity": "sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==", "license": "Apache-2.0" - }, - "node_modules/wrap-ansi": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", - "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", - "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^9.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "string-width": "^7.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^22.0.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=23" - } - }, - "node_modules/yargs-parser": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", - "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=23" - } } } } diff --git a/web/themes/custom/leshed/package.json b/web/themes/custom/leshed/package.json index eb44286..cd7ce77 100644 --- a/web/themes/custom/leshed/package.json +++ b/web/themes/custom/leshed/package.json @@ -4,8 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "concurrently -k -n hmr,build -c cyan,magenta \"vite\" \"vite build --watch\"", - "dev:server": "vite", + "dev": "vite", "build": "vite build", "preview": "vite preview" }, @@ -22,7 +21,6 @@ "devDependencies": { "@sentry/vite-plugin": "^11.20.0", "@vitejs/plugin-vue": "^5.0.5", - "concurrently": "^10.0.5", "sass": "^1.77.8", "vite": "^5.3.1" } diff --git a/web/themes/custom/leshed/vite.config.js b/web/themes/custom/leshed/vite.config.js index 97f7ce6..834384a 100644 --- a/web/themes/custom/leshed/vite.config.js +++ b/web/themes/custom/leshed/vite.config.js @@ -1,8 +1,8 @@ -import { defineConfig } from 'vite' +import { defineConfig, build } from 'vite' import vue from '@vitejs/plugin-vue' import { sentryVitePlugin } from '@sentry/vite-plugin' import { fileURLToPath, URL } from 'node:url' -import { readFileSync } from 'node:fs' +import { readFileSync, writeFileSync, unlinkSync } from 'node:fs' import { execSync } from 'node:child_process' // Certificat mkcert wildcard du reverse-proxy (SAN: localhost, 127.0.0.1, @@ -11,6 +11,46 @@ import { execSync } from 'node:child_process' const TLS_CERT = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost.pem', import.meta.url)) const TLS_KEY = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost-key.pem', import.meta.url)) +// En dev uniquement : écrit le port réellement écouté par le dev server +// dans .vite-dev-port (leshed.theme lit ce fichier pour charger le bon +// @vite/client). Avec strictPort: false, Vite prend le premier port libre +// à partir de 5173 : plusieurs sites sur le même modèle de thème peuvent +// tourner `npm run dev` en même temps. Le client HMR se connecte ensuite +// sur importMetaUrl (host:port du