@liip/liipgpt 3.8.0 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/button/liipgpt-button.iife.js +2 -2
  2. package/chat/liipgpt-chat.iife.js +15 -15
  3. package/configurator/_app/env.js +1 -1
  4. package/configurator/_app/immutable/chunks/-qY1__IK.js +2 -0
  5. package/configurator/_app/immutable/chunks/{Dmtfg2Ws.js → Bc0ERhDD.js} +1 -1
  6. package/configurator/_app/immutable/chunks/{BOIpUiEu.js → BcilqXKJ.js} +1 -1
  7. package/configurator/_app/immutable/chunks/{Bj3XiWO_.js → Bk4g5DYk.js} +1 -1
  8. package/configurator/_app/immutable/chunks/{B6tJbgpE.js → Bu_-InX1.js} +1 -1
  9. package/configurator/_app/immutable/chunks/{C0FfTxd-.js → CIPNu9Fk.js} +1 -1
  10. package/configurator/_app/immutable/chunks/D6iQ8Gnz.js +1 -0
  11. package/configurator/_app/immutable/chunks/{-BY7X1Aq.js → DH-xz8L7.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{yN4EeJJX.js → DWCMHgRQ.js} +8 -8
  13. package/configurator/_app/immutable/chunks/{DNrrjGbe.js → De77gmQ_.js} +1 -1
  14. package/configurator/_app/immutable/chunks/{VX_NpfbX.js → DiQywzfZ.js} +2 -2
  15. package/configurator/_app/immutable/chunks/{CQ-dRe_A.js → L40L4-j6.js} +1 -1
  16. package/configurator/_app/immutable/chunks/{C-tzqACx.js → nsvkqtCy.js} +2 -2
  17. package/configurator/_app/immutable/entry/{app.06h3-Tq7.js → app.BlJSbr9t.js} +2 -2
  18. package/configurator/_app/immutable/entry/start.CLLlx-n-.js +1 -0
  19. package/configurator/_app/immutable/nodes/{0.BLZAdPqj.js → 0.CIk9Wfga.js} +3 -3
  20. package/configurator/_app/immutable/nodes/{1.DCQkvjlE.js → 1.OJw9HGOA.js} +1 -1
  21. package/configurator/_app/immutable/nodes/{2.8_Dr_3Uk.js → 2.BWOd_5YZ.js} +7 -7
  22. package/configurator/_app/immutable/nodes/{3.CoGItVAo.js → 3.Bfk8eHXh.js} +2 -2
  23. package/configurator/_app/version.json +1 -1
  24. package/configurator/index.html +6 -6
  25. package/configurator/sidebar.html +6 -6
  26. package/index.cjs +1 -0
  27. package/index.d.ts +2 -0
  28. package/index.js +1 -0
  29. package/package.json +1 -1
  30. package/search-summary/liipgpt-search-summary.iife.js +7 -7
  31. package/configurator/_app/immutable/chunks/BgdzEel3.js +0 -1
  32. package/configurator/_app/immutable/chunks/Bo9qTaZy.js +0 -2
  33. package/configurator/_app/immutable/entry/start.Cgc-JZtS.js +0 -1
@@ -1,6 +1,6 @@
1
- var LiipGPTSearchSummary=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var f={},p=Symbol(),m=`http://www.w3.org/1999/xhtml`,h=`http://www.w3.org/2000/svg`,g=`http://www.w3.org/1998/Math/MathML`,_=Array.isArray,v=Array.prototype.indexOf,y=Array.prototype.includes,b=Array.from,x=Object.keys,S=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyDescriptors,ne=Object.prototype,re=Array.prototype,ie=Object.getPrototypeOf,ae=Object.isExtensible;function C(e){return typeof e==`function`}var w=()=>{};function oe(e){for(var t=0;t<e.length;t++)e[t]()}function se(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var ce=1<<24,le=1024,ue=2048,T=4096,de=8192,fe=16384,pe=32768,me=1<<25,E=65536,he=1<<19,ge=1<<20,_e=1<<25,ve=65536,ye=1<<21,be=1<<22,xe=1<<23,Se=Symbol(`$state`),Ce=Symbol(`legacy props`),we=Symbol(``),Te=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function De(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Oe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ke(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ae(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function je(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Me(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ne(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Pe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Fe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ie(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Le(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Re(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ze(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Be(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ve(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function He(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var D=!1;function Ue(e){D=e}var O;function We(e){if(e===null)throw Be(),f;return O=e}function Ge(){return We(bn(O))}function k(e){if(D){if(bn(O)!==null)throw Be(),f;O=e}}function Ke(e=1){if(D){for(var t=e,n=O;t--;)n=bn(n);O=n}}function qe(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=bn(n);e&&n.remove(),n=i}}function Je(e){if(!e||e.nodeType!==8)throw Be(),f;return e.data}function Ye(e){return e===this.v}function A(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Xe(e){return!A(e,this.v)}var Ze=!1,Qe=!1,j=null;function $e(e){j=e}function et(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:z,l:Qe&&!t?{s:null,u:null,$:[]}:null}}function tt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)zn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function nt(){return!Qe||j!==null&&j.l===null}var rt=[];function it(){var e=rt;rt=[],oe(e)}function at(e){if(rt.length===0&&!St){var t=rt;queueMicrotask(()=>{t===rt&&it()})}rt.push(e)}function ot(){for(;rt.length>0;)it()}function st(e){var t=z;if(t===null)return R.f|=xe,e;if(!(t.f&32768)&&!(t.f&4))throw e;ct(e,t)}function ct(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var lt=~(ue|T|le);function M(e,t){e.f=e.f&lt|t}function ut(e){e.f&512||e.deps===null?M(e,le):M(e,T)}function dt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ve,dt(t.deps))}function ft(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),dt(e.deps),M(e,le)}var pt=[];function mt(e,t=w){let n=null,r=new Set;function i(t){if(A(e,t)&&(e=t,n)){let t=!pt.length;for(let t of r)t[1](),pt.push(t,e);if(t){for(let e=0;e<pt.length;e+=2)pt[e][0](pt[e+1]);pt.length=0}}}function a(t){i(t(e))}function o(o,s=w){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||w),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var ht=!1,gt=!1;function _t(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}var vt=new Set,N=null,yt=null,bt=null,xt=null,St=!1,Ct=!1,wt=null,Tt=null,Et=0,Dt=1,Ot=class e{id=Dt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)M(n,ue),this.schedule(n);for(n of t.m)M(n,T),this.schedule(n)}}#d(){if(Et++>1e3&&(vt.delete(this),kt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),M(e,ue),this.schedule(e);for(let e of this.#s)M(e,T),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=wt=[],r=[],i=Tt=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw It(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(wt=null,Tt=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Ft(e,t)}else{this.#n===0&&vt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),yt=this,jt(r),jt(n),yt=null,this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(vt.add(o),o.#d()),vt.has(this)||this.#m()}#f(e,t,n){e.f^=le;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=le:i&4?t.push(r):Ze&&i&16777224?n.push(r):Tr(r)&&(i&16&&this.#s.add(r),Ar(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)ft(e[t],this.#o,this.#s)}capture(e,t){t!==p&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),bt?.set(e,e.v))}activate(){N=this}deactivate(){N=null,bt=null}flush(){try{Ct=!0,N=this,this.#d()}finally{Et=0,xt=null,wt=null,Tt=null,Ct=!1,N=null,bt=null,tn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),vt.delete(this)}#m(){for(let s of vt){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Mt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,at(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=se()).promise}static ensure(){if(N===null){let t=N=new e;Ct||(vt.add(N),St||at(()=>{N===t&&t.flush()}))}return N}apply(){if(!Ze||!this.is_fork&&vt.size===1){bt=null;return}bt=new Map(this.current);for(let e of vt)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)bt.has(t)||bt.set(t,n)}schedule(e){if(xt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(wt!==null&&t===z&&(Ze||(R===null||!(R.f&2))&&!ht))return;if(n&96){if(!(n&1024))return;t.f^=le}}this.#a.push(t)}};function P(e){var t=St;St=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(ot(),N===null)return n;N.flush()}}finally{St=t}}function kt(){try{Ne()}catch(e){ct(e,xt)}}var At=null;function jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Tr(r)&&(At=new Set,Ar(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&tr(r),At?.size>0)){tn.clear();for(let e of At){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)At.has(n)&&(At.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ar(n)}}At.clear()}}At=null}}function Mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Mt(i,t,n,r):e&4194320&&!(e&2048)&&Nt(i,t,r)&&(M(i,ue),Pt(i))}}function Nt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(y.call(t,r))return!0;if(r.f&2&&Nt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Pt(e){N.schedule(e)}function Ft(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,le);for(var n=e.first;n!==null;)Ft(n,t),n=n.next}}function It(e){M(e,le);for(var t=e.first;t!==null;)It(t),t=t.next}function Lt(e){let t=0,n=rn(0),r;return()=>{In()&&(B(n),Gn(()=>(t===0&&(r=Pr(()=>e(()=>cn(n)))),t+=1,()=>{at(()=>{--t,t===0&&(r?.(),r=void 0,cn(n))})})))}}var Rt=E|he;function zt(e,t,n,r){new Bt(e,t,n,r)}var Bt=class{parent;is_pending=!1;transform_error;#e;#t=D?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Lt(()=>(this.#m=rn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=z;t.b=this,t.f|=128,n(e)},this.parent=z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=qn(()=>{if(D){let e=this.#t;Ge();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Rt),D&&(this.#e=O)}#g(){try{this.#a=Yn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Yn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Yn(()=>e(this.#e)),at(()=>{var e=this.#c=document.createDocumentFragment(),t=vn();e.append(t),this.#a=this.#x(()=>Yn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,nr(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Yn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();or(this.#a,e);let t=this.#n.pending;this.#o=Yn(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){ft(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=z,n=R,r=j;pr(this.#i),fr(this.#i),$e(this.#i.ctx);try{return Ot.ensure(),e()}catch(e){return st(e),null}finally{pr(t),fr(n),$e(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&nr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,at(()=>{this.#d=!1,this.#m&&on(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=($n(this.#a),null),this.#o&&=($n(this.#o),null),this.#s&&=($n(this.#s),null),D&&(We(this.#t),Ke(),We(qe()));var r=!1,i=!1;let a=()=>{if(r){He();return}r=!0,i&&ze(),this.#s!==null&&nr(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){ct(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Yn(()=>{var t=z;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return ct(e,this.#i.parent),null}}))};at(()=>{var t;try{t=this.transform_error(e)}catch(e){ct(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>ct(e,this.#i&&this.#i.parent)):o(t)})}};function Vt(e,t,n,r){let i=nt()?Gt:qt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=z,s=Ht(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||ct(e,o)}Ut()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Wt();function d(){Promise.all(n.map(e=>Kt(e))).then(e=>l([...t.map(i),...e])).catch(e=>ct(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ut()}):d()}function Ht(){var e=z,t=R,n=j,r=N;return function(i=!0){pr(e),fr(t),$e(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ut(e=!0){pr(null),fr(null),$e(null),e&&N?.deactivate()}function Wt(){var e=z.b,t=N,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function Gt(e){var t=2|ue,n=R!==null&&R.f&2?R:null;return z!==null&&(z.f|=he),{ctx:j,deps:null,effects:null,equals:Ye,f:t,fn:e,reactions:null,rv:0,v:p,wv:0,parent:n??z,ac:null}}function Kt(e,t,n){let r=z;r===null&&Oe();var i=void 0,a=rn(p),o=!R,s=new Map;return Wn(()=>{var t=z,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ut)}catch(e){n.reject(e),Ut()}var c=N;if(o){if(t.f&32768)var l=Wt();if(r.b.is_rendered())s.get(c)?.reject(Te),s.delete(c);else{for(let e of s.values())e.reject(Te);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===Te),!(n===Te||t.f&16384)){if(c.activate(),n)a.f|=xe,on(a,n);else{a.f&8388608&&(a.f^=xe),on(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(Te)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),Ln(()=>{for(let e of s.values())e.reject(Te)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function F(e){let t=Gt(e);return Ze||hr(t),t}function qt(e){let t=Gt(e);return t.equals=Xe,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)$n(t[n])}}function Yt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Xt(e){var t,n=z;pr(Yt(e));try{e.f&=~ve,Jt(e),t=Dr(e)}finally{pr(n)}return t}function Zt(e){var t=e.v,n=Xt(e);if(!e.equals(n)&&(e.wv=wr(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t),e.deps===null))){M(e,le);return}lr||(bt===null?ut(e):(In()||N?.is_fork)&&bt.set(e,n))}function Qt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Te),t.teardown=w,t.ac=null,kr(t,0),Zn(t))}function $t(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Ar(t)}var en=new Set,tn=new Map,nn=!1;function rn(e,t){return{f:0,v:e,reactions:null,equals:Ye,rv:0,wv:0}}function I(e,t){let n=rn(e,t);return hr(n),n}function an(e,t=!1,n=!0){let r=rn(e);return t||(r.equals=Xe),Qe&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return R!==null&&(!dr||R.f&131072)&&nt()&&R.f&4325394&&(mr===null||!y.call(mr,e))&&Re(),on(e,n?un(t):t,Tt)}function on(e,t,n=null){if(!e.equals(t)){var r=e.v;lr?tn.set(e,t):tn.set(e,r),e.v=t;var i=Ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Xt(t),bt===null&&ut(t)}e.wv=wr(),ln(e,ue,n),nt()&&z!==null&&z.f&1024&&!(z.f&96)&&(vr===null?yr([e]):vr.push(e)),!i.is_fork&&en.size>0&&!nn&&sn()}return t}function sn(){nn=!1;for(let e of en)e.f&1024&&M(e,T),Tr(e)&&Ar(e);en.clear()}function cn(e){L(e,e.v+1)}function ln(e,t,n){var r=e.reactions;if(r!==null)for(var i=nt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===z)){var l=(c&ue)===0;if(l&&M(s,t),c&2){var u=s;bt?.delete(u),c&65536||(c&512&&(s.f|=ve),ln(u,T,n))}else if(l){var d=s;c&16&&At!==null&&At.add(d),n===null?Pt(d):n.push(d)}}}}function un(e){if(typeof e!=`object`||!e||Se in e)return e;let t=ie(e);if(t!==ne&&t!==re)return e;var n=new Map,r=_(e),i=I(0),a=null,o=Sr,s=e=>{if(Sr===o)return e();var t=R,n=Sr;fr(null),Cr(o);var r=e();return fr(t),Cr(n),r};return r&&n.set(`length`,I(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ie();var i=n.get(t);return i===void 0?s(()=>{var e=I(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>I(p,a));n.set(t,e),cn(i)}}else L(r,p),cn(i);return!0},get(t,r,i){if(r===Se)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||ee(t,r)?.writable)&&(o=s(()=>I(un(c?t[r]:p),a)),n.set(r,o)),o!==void 0){var l=B(o);return l===p?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=B(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==p)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Se)return!0;var r=n.get(t),i=r!==void 0&&r.v!==p||Reflect.has(e,t);return(r!==void 0||z!==null&&(!i||ee(e,t)?.writable))&&(r===void 0&&(r=s(()=>I(i?un(e[t]):p,a)),n.set(t,r)),B(r)===p)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>I(p,a)),n.set(d+``,f)):L(f,p)}if(l===void 0)(!u||ee(e,t)?.writable)&&(l=s(()=>I(void 0,a)),L(l,un(o)),n.set(t,l));else{u=l.v!==p;var m=s(()=>un(o));L(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}cn(i)}return!0},ownKeys(e){B(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==p});for(var[r,a]of n)a.v!==p&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Le()}})}function dn(e){try{if(typeof e==`object`&&e&&Se in e)return e[Se]}catch{}return e}function fn(e,t){return Object.is(dn(e),dn(t))}var pn,mn,hn,gn;function _n(){if(pn===void 0){pn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;hn=ee(t,`firstChild`).get,gn=ee(t,`nextSibling`).get,ae(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ae(n)&&(n.__t=void 0)}}function vn(e=``){return document.createTextNode(e)}function yn(e){return hn.call(e)}function bn(e){return gn.call(e)}function xn(e,t){if(!D)return yn(e);var n=yn(O);if(n===null)n=O.appendChild(vn());else if(t&&n.nodeType!==3){var r=vn();return n?.before(r),We(r),r}return t&&Dn(n),We(n),n}function Sn(e,t=!1){if(!D){var n=yn(e);return n instanceof Comment&&n.data===``?bn(n):n}if(t){if(O?.nodeType!==3){var r=vn();return O?.before(r),We(r),r}Dn(O)}return O}function Cn(e,t=1,n=!1){let r=D?O:e;for(var i;t--;)i=r,r=bn(r);if(!D)return r;if(n){if(r?.nodeType!==3){var a=vn();return r===null?i?.after(a):r.before(a),We(a),a}Dn(r)}return We(r),r}function wn(e){e.textContent=``}function Tn(){return!Ze||At!==null?!1:(z.f&pe)!==0}function En(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Dn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function On(e,t){if(t){let t=document.body;e.autofocus=!0,at(()=>{document.activeElement===t&&e.focus()})}}var kn=!1;function An(){kn||(kn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function jn(e){var t=R,n=z;fr(null),pr(null);try{return e()}finally{fr(t),pr(n)}}function Mn(e,t,n,r=n){e.addEventListener(t,()=>jn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),An()}function Nn(e){z===null&&(R===null&&Me(e),je()),lr&&Ae(e)}function Pn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Fn(e,t){var n=z;n!==null&&n.f&8192&&(e|=de);var r={ctx:j,deps:null,nodes:null,f:e|ue|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)wt===null?Ot.ensure().schedule(r):wt.push(r);else if(t!==null){try{Ar(r)}catch(e){throw $n(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=E))}if(i!==null&&(i.parent=n,n!==null&&Pn(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function In(){return R!==null&&!dr}function Ln(e){let t=Fn(8,null);return M(t,le),t.teardown=e,t}function Rn(e){Nn(`$effect`);var t=z.f;if(!R&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return zn(e)}function zn(e){return Fn(4|ge,e)}function Bn(e){return Nn(`$effect.pre`),Fn(8|ge,e)}function Vn(e){Ot.ensure();let t=Fn(64|he,e);return()=>{$n(t)}}function Hn(e){Ot.ensure();let t=Fn(64|he,e);return(e={})=>new Promise(n=>{e.outro?nr(t,()=>{$n(t),n(void 0)}):($n(t),n(void 0))})}function Un(e){return Fn(4,e)}function Wn(e){return Fn(be|he,e)}function Gn(e,t=0){return Fn(8|t,e)}function Kn(e,t=[],n=[],r=[]){Vt(r,t,n,t=>{Fn(8,()=>e(...t.map(B)))})}function qn(e,t=0){return Fn(16|t,e)}function Jn(e,t=0){return Fn(ce|t,e)}function Yn(e){return Fn(32|he,e)}function Xn(e){var t=e.teardown;if(t!==null){let e=lr,n=R;ur(!0),fr(null);try{t.call(null)}finally{ur(e),fr(n)}}}function Zn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&jn(()=>{e.abort(Te)});var r=n.next;n.f&64?n.parent=null:$n(n,t),n=r}}function Qn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||$n(t),t=n}}function $n(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(er(e.nodes.start,e.nodes.end),n=!0),M(e,me),Zn(e,t&&!n),kr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Xn(e),e.f^=me,e.f|=fe;var i=e.parent;i!==null&&i.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function er(e,t){for(;e!==null;){var n=e===t?null:bn(e);e.remove(),e=n}}function tr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function nr(e,t,n=!0){var r=[];rr(e,r,!0);var i=()=>{n&&$n(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function rr(e,t,n){if(!(e.f&8192)){e.f^=de;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;rr(i,t,o?n:!1),i=a}}}function ir(e){ar(e,!0)}function ar(e,t){if(e.f&8192){e.f^=de,e.f&1024||(M(e,ue),Ot.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;ar(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function or(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:bn(n);t.append(n),n=i}}var sr=null,cr=!1,lr=!1;function ur(e){lr=e}var R=null,dr=!1;function fr(e){R=e}var z=null;function pr(e){z=e}var mr=null;function hr(e){R!==null&&(!Ze||R.f&2)&&(mr===null?mr=[e]:mr.push(e))}var gr=null,_r=0,vr=null;function yr(e){vr=e}var br=1,xr=0,Sr=xr;function Cr(e){Sr=e}function wr(){return++br}function Tr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ve),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Tr(a)&&Zt(a),a.wv>e.wv)return!0}t&512&&bt===null&&M(e,le)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ze&&mr!==null&&y.call(mr,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Er(a,t,!1):t===a&&(n?M(a,ue):a.f&1024&&M(a,T),Pt(a))}}function Dr(e){var t=gr,n=_r,r=vr,i=R,a=mr,o=j,s=dr,c=Sr,l=e.f;gr=null,_r=0,vr=null,R=l&96?null:e,mr=null,$e(e.ctx),dr=!1,Sr=++xr,e.ac!==null&&(jn(()=>{e.ac.abort(Te)}),e.ac=null);try{e.f|=ye;var u=e.fn,d=u();e.f|=pe;var f=e.deps,p=N?.is_fork;if(gr!==null){var m;if(p||kr(e,_r),f!==null&&_r>0)for(f.length=_r+gr.length,m=0;m<gr.length;m++)f[_r+m]=gr[m];else e.deps=f=gr;if(In()&&e.f&512)for(m=_r;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&_r<f.length&&(kr(e,_r),f.length=_r);if(nt()&&vr!==null&&!dr&&f!==null&&!(e.f&6146))for(m=0;m<vr.length;m++)Er(vr[m],e);if(i!==null&&i!==e){if(xr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=xr;if(t!==null)for(let e of t)e.rv=xr;vr!==null&&(r===null?r=vr:r.push(...vr))}return e.f&8388608&&(e.f^=xe),d}catch(e){return st(e)}finally{e.f^=ye,gr=t,_r=n,vr=r,R=i,mr=a,$e(o),dr=s,Sr=c}}function Or(e,t){let n=t.reactions;if(n!==null){var r=v.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(gr===null||!y.call(gr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~ve),ut(a),Qt(a),kr(a,0)}}function kr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Or(e,n[r])}function Ar(e){var t=e.f;if(!(t&16384)){M(e,le);var n=z,r=cr;z=e,cr=!0;try{t&16777232?Qn(e):Zn(e),Xn(e);var i=Dr(e);e.teardown=typeof i==`function`?i:null,e.wv=br}finally{cr=r,z=n}}}async function jr(){if(Ze)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),P()}function B(e){var t=(e.f&2)!=0;if(sr?.add(e),R!==null&&!dr&&!(z!==null&&z.f&16384)&&(mr===null||!y.call(mr,e))){var n=R.deps;if(R.f&2097152)e.rv<xr&&(e.rv=xr,gr===null&&n!==null&&n[_r]===e?_r++:gr===null?gr=[e]:gr.push(e));else{(R.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[R]:y.call(r,R)||r.push(R)}}if(lr&&tn.has(e))return tn.get(e);if(t){var i=e;if(lr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Nr(i))&&(a=Xt(i)),tn.set(i,a),a}var o=(i.f&512)==0&&!dr&&R!==null&&(cr||(R.f&512)!=0),s=(i.f&pe)===0;Tr(i)&&(o&&(i.f|=512),Zt(i)),o&&!s&&($t(i),Mr(i))}if(bt?.has(e))return bt.get(e);if(e.f&8388608)throw e.v;return e.v}function Mr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&($t(t),Mr(t))}function Nr(e){if(e.v===p)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(tn.has(t)||t.f&2&&Nr(t))return!0;return!1}function Pr(e){var t=dr;try{return dr=!0,e()}finally{dr=t}}function Fr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(Se in e)Ir(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&Se in n&&Ir(n)}}}function Ir(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Ir(e[n],t)}catch{}let n=ie(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=te(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Lr=Symbol(`events`),Rr=new Set,zr=new Set;function Br(e,t,n,r={}){function i(e){if(r.capture||Gr.call(t,e),!e.cancelBubble)return jn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?at(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Vr(e,t,n,r,i){var a={capture:r,passive:i},o=Br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ln(()=>{t.removeEventListener(e,o,a)})}function Hr(e,t,n){(t[Lr]??={})[e]=n}function Ur(e){for(var t=0;t<e.length;t++)Rr.add(e[t]);for(var n of zr)n(e)}var Wr=null;function Gr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Wr=e;var o=0,s=Wr===e&&e[Lr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Lr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){S(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=R,d=z;fr(null),pr(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Lr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Lr]=t,delete e.currentTarget,fr(u),pr(d)}}}var Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function qr(e){return Kr?.createHTML(e)??e}function Jr(e){var t=En(`template`);return t.innerHTML=qr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Yr(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Xr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(D)return Yr(O,null),O;i===void 0&&(i=Jr(a?e:`<!>`+e),n||(i=yn(i)));var t=r||mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=yn(t),s=t.lastChild;Yr(o,s)}else Yr(t,t);return t}}function Zr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(D)return Yr(O,null),O;if(!o){var e=yn(Jr(a));if(i)for(o=document.createDocumentFragment();yn(e);)o.appendChild(yn(e));else o=yn(e)}var t=o.cloneNode(!0);if(i){var n=yn(t),r=t.lastChild;Yr(n,r)}else Yr(t,t);return t}}function Qr(e,t){return Zr(e,t,`svg`)}function $r(){if(D)return Yr(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=vn();return e.append(t,n),Yr(t,n),e}function V(e,t){if(D){var n=z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Ge();return}e!==null&&e.before(t)}function ei(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var ti=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function ni(e){return ti.includes(e)}var ri=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),ii={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function ai(e){return e=e.toLowerCase(),ii[e]??e}[...ri];var oi=[`touchstart`,`touchmove`];function si(e){return oi.includes(e)}var ci=[`textarea`,`script`,`style`,`title`];function li(e){return ci.includes(e)}var ui=!0;function di(e){ui=e}function fi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function pi(e,t){return gi(e,t)}function mi(e,t){_n(),t.intro=t.intro??!1;let n=t.target,r=D,i=O;try{for(var a=yn(n);a&&(a.nodeType!==8||a.data!==`[`);)a=bn(a);if(!a)throw f;Ue(!0),We(a);let r=gi(e,{...t,anchor:a});return Ue(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
- `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==f&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Pe(),_n(),wn(n),Ue(!1),pi(e,t)}finally{Ue(r),We(i)}}var hi=new Map;function gi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){_n();var c=void 0,l=Hn(()=>{var l=n??t.appendChild(vn());zt(l,{pending:()=>{}},t=>{et({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),D&&Yr(t,null),ui=o,c=e(t,r)||{},ui=!0,D&&(z.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Be(),f;tt()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=si(r);for(let e of[t,document]){var a=hi.get(e);a===void 0&&(a=new Map,hi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Gr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(b(Rr)),zr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=hi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Gr),r.delete(e),r.size===0&&hi.delete(n)):r.set(e,i)}zr.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return _i.set(c,l),c}var _i=new WeakMap;function vi(e,t){let n=_i.get(e);return n?(_i.delete(e),n(t)):Promise.resolve()}var yi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)ir(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&($n(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();or(r,t),t.append(vn()),this.#n.set(e,{effect:r,fragment:t})}else $n(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),nr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||($n(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Tn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=vn();i.append(a),this.#n.set(e,{effect:Yn(()=>t(a)),fragment:i})}else this.#t.set(e,Yn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else D&&(this.anchor=O),this.#a(n)}};function bi(e){j===null&&De(`onMount`),Qe&&j.l!==null?Si(j).m.push(e):Rn(()=>{let t=Pr(e);if(typeof t==`function`)return t})}function xi(e){j===null&&De(`onDestroy`),bi(()=>()=>Pr(e))}function Si(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Ci(e,t,n=!1){var r;D&&(r=O,Ge());var i=new yi(e),a=n?E:0;function o(e,t){if(D){var n=Je(r);if(e!==parseInt(n.substring(1))){var a=qe();We(a),i.anchor=a,Ue(!1),i.ensure(e,t),Ue(!0);return}}i.ensure(e,t)}qn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function wi(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];nr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Ti(e,b(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;wn(u),u.append(l),e.items.clear()}Ti(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Ti(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=_e,or(a,document.createDocumentFragment())):$n(t[i],n)}}var Ei;function Di(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=D?We(yn(c)):c.appendChild(vn())}D&&Ge();var l=null,u=qt(()=>{var e=n();return _(e)?e:e==null?[]:b(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,ki(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=_e,ji(l,null,o)):ir(l):nr(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:qn(()=>{d=B(u);var e=d.length;let c=!1;D&&Je(o)===`[!`!=(e===0)&&(o=qe(),We(o),Ue(!1),c=!0);for(var g=new Set,_=N,v=Tn(),y=0;y<e;y+=1){D&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,Ue(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&on(S.v,b),S.i&&on(S.i,y),v&&_.unskip_effect(S.e)):(S=Ai(s,p?o:Ei??=vn(),b,x,y,i,t,n),p||(S.e.f|=_e),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=Yn(()=>a(o)):(l=Yn(()=>a(Ei??=vn())),l.f|=_e)),e>g.size&&ke(``,``,``),D&&e>0&&We(qe()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&Ue(!0),B(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,D&&(o=O)}function Oi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ki(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Oi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(ir(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=_e,g===c)ji(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),Mi(e,u,g),Mi(e,g,v),ji(g,v,n),u=g,f=[],p=[],c=Oi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],x;u=y.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)ji(f[x],y,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);Mi(e,S.prev,ee.next),Mi(e,u,S),Mi(e,ee,y),c=y,u=ee,--_,f=[],p=[]}else l.delete(g),ji(g,c,n),Mi(e,g.prev,g.next),Mi(e,g,u===null?e.effect.first:u.next),Mi(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=Oi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=Oi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ti(e,b(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(g of l)g.f&8192||te.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=Oi(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(_=0;_<ne;_+=1)te[_].nodes?.a?.measure();for(_=0;_<ne;_+=1)te[_].nodes?.a?.fix()}wi(e,te,re)}}a&&at(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Ai(e,t,n,r,i,a,o,s){var c=o&1?o&16?rn(n):an(n,!1,!1):null,l=o&2?rn(i):null;return{v:c,i:l,e:Yn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ji(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=bn(r);if(a.before(r),r===i)return;r=o}}function Mi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ni(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;D&&(o=We(yn(c)))}Kn(()=>{var e=z;if(s===(s=t()??``)){D&&Ge();return}if(n&&!D){e.nodes=null,c.innerHTML=s,s!==``&&Yr(yn(c),c.lastChild);return}if(e.nodes!==null&&(er(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(D){for(var a=O.data,l=Ge(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=bn(l);if(l===null)throw Be(),f;Yr(O,u),o=We(l);return}var d=En(r?`svg`:i?`math`:`template`,r?h:i?g:void 0);d.innerHTML=s;var p=r||i?d:d.content;if(Yr(yn(p),p.lastChild),r||i)for(;yn(p);)o.before(yn(p));else o.before(p)}})}var Pi=()=>performance.now(),Fi={tick:e=>requestAnimationFrame(e),now:()=>Pi(),tasks:new Set};function Ii(){let e=Fi.now();Fi.tasks.forEach(t=>{t.c(e)||(Fi.tasks.delete(t),t.f())}),Fi.tasks.size!==0&&Fi.tick(Ii)}function Li(e){let t;return Fi.tasks.size===0&&Fi.tick(Ii),{promise:new Promise(n=>{Fi.tasks.add(t={c:e,f:n})}),abort(){Fi.tasks.delete(t)}}}function Ri(e,t){jn(()=>{e.dispatchEvent(new CustomEvent(t))})}function zi(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Bi(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=zi(n.trim());t[i]=r.trim()}return t}var Vi=e=>e;function Hi(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return jn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=Ui(t,m(),p,1,()=>{Ri(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=Ui(t,m(),f,0,()=>{Ri(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=z;if((g.nodes.t??=[]).push(h),i&&ui){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&Un(()=>{Pr(()=>h.in())})}}function Ui(e,t,n,r,i){var a=r===1;if(C(t)){var o,s=!1;return at(()=>{s||(o=Ui(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return Ri(e,a?`introstart`:`outrostart`),i(),{abort:w,deactivate:w,reset:w,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=Vi}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var p=Bi(l(0,1));f.push(p,p)}var m=()=>1-r,h=e.animate(f,{duration:c,fill:`forwards`});return h.onfinish=()=>{h.cancel(),Ri(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*d(_/g),y=Bi(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),m=()=>{var e=h.currentTime;return o+s*d(e/c)},u&&Li(()=>{if(h.playState!==`running`)return!1;var e=m();return u(e,1-e),!0})}h=e.animate(f,{duration:c,fill:`forwards`}),h.onfinish=()=>{m=()=>r,u?.(r,1-r),i()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=w)},deactivate:()=>{i=w},reset:()=>{r===0&&u?.(1,0)},t:()=>m()}}function Wi(e,t,n,r,i,a){let o=D;D&&Ge();var s=null;D&&O.nodeType===1&&(s=O,Ge());var c=D?O:e,l=new yi(c,!1);qn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?h:void 0;if(e===null){l.ensure(null,null),di(!0);return}return l.ensure(e,t=>{if(e){if(s=D?s:En(e,a),Yr(s,s),r){D&&li(e)&&s.append(document.createComment(``));var n=D?yn(s):s.appendChild(vn());D&&(n===null?Ue(!1):We(n)),r(s,n)}z.nodes.end=s,t.before(s)}D&&We(t)}),di(!0),()=>{e&&di(!1)}},E),Ln(()=>{di(!0)}),o&&(Ue(!0),We(c))}function Gi(e,t,n){Un(()=>{var r=Pr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Gn(()=>{var e=n();Fr(e),i&&A(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ki(e,t){var n=void 0,r;Jn(()=>{n!==(n=t())&&(r&&=($n(r),null),n&&(r=Yn(()=>{Un(()=>n(e))})))})}function qi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ji(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qi(e))&&(r&&(r+=` `),r+=t);return r}function Yi(e){return typeof e==`object`?Ji(e):e??``}var Xi=[...`
3
- \r\f\xA0\v`];function Zi(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Xi.includes(r[o-1]))&&(s===r.length||Xi.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Qi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function $i(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ea(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map($i)),i&&c.push(...Object.keys(i).map($i));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=$i(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Qi(r)),i&&(n+=Qi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ta(e,t,n,r,i,a){var o=e.__className;if(D||o!==n||o===void 0){var s=Zi(n,r,a);(!D||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function na(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ra(e,t,n,r){var i=e.__style;if(D||i!==t){var a=ea(t,r);(!D||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(na(e,n?.[0],r[0]),na(e,n?.[1],r[1],`important`)):na(e,n,r));return r}function ia(e,t,n=!1){if(e.multiple){if(t==null)return;if(!_(t))return Ve();for(var r of e.options)r.selected=t.includes(oa(r));return}for(r of e.options)if(fn(oa(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function aa(e){var t=new MutationObserver(()=>{ia(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Ln(()=>{t.disconnect()})}function oa(e){return`__value`in e?e.__value:e.value}var sa=Symbol(`class`),ca=Symbol(`style`),la=Symbol(`is custom element`),ua=Symbol(`is html`),da=Ee?`link`:`LINK`,fa=Ee?`input`:`INPUT`,pa=Ee?`option`:`OPTION`,ma=Ee?`select`:`SELECT`,ha=Ee?`progress`:`PROGRESS`;function ga(e){if(D){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ya(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ya(e,`checked`,null),e.checked=r}}};e.__on_r=n,at(n),An()}}function _a(e,t){var n=Sa(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==ha)||(e.value=t??``)}function va(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function ya(e,t,n,r){var i=Sa(e);D&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===da)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[we]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&wa(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ba(e,t,n,r,i=!1,a=!1){if(D&&i&&e.nodeName===fa){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ga(o)}var s=Sa(e),c=s[la],l=!s[ua];let u=D&&c;u&&Ue(!1);var d=t||{},f=e.nodeName===pa;for(var m in t)m in n||(n[m]=null);n.class?n.class=Yi(n.class):(r||n[sa])&&(n.class=null),n[ca]&&(n.style??=null);var h=wa(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){ta(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[sa],n[sa]),d[i]=o,d[sa]=n[sa];continue}if(i===`style`){ra(e,o,t?.[ca],n[ca]),d[i]=o,d[ca]=n[ca];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=ni(r);if(ei(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Hr(r,e,o),Ur([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=Br(r,e,a,t)}}else if(i===`style`)ya(e,i,o);else if(i===`autofocus`)On(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)va(e,o);else{var y=i;l||(y=ai(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=p)):typeof o!=`function`&&ya(e,y,o,a)}}}return u&&Ue(!0),d}function xa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Vt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===ma,l=!1;if(Jn(()=>{var u=t(...n.map(B)),d=ba(e,r,u,a,o,s);l&&c&&`value`in u&&ia(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||$n(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&$n(i[t]),i[t]=Yn(()=>Ki(e,()=>f))),d[t]=f}r=d}),c){var u=e;Un(()=>{ia(u,r.value,!0),aa(u)})}l=!0})}function Sa(e){return e.__attributes??={[la]:e.nodeName.includes(`-`),[ua]:e.namespaceURI===m}}var Ca=new Map;function wa(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ca.get(t);if(n)return n;Ca.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=te(i),r)r[o].set&&n.push(o);i=ie(i)}return n}function Ta(e,t,n=t){var r=new WeakSet;Mn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ea(e)?Da(a):a,n(a),N!==null&&r.add(N),await jr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(D&&e.defaultValue!==e.value||Pr(t)==null&&e.value)&&(n(Ea(e)?Da(e.value):e.value),N!==null&&r.add(N)),Gn(()=>{var n=t();if(e===document.activeElement){var i=Ze?yt:N;if(r.has(i))return}Ea(e)&&n===Da(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ea(e){var t=e.type;return t===`number`||t===`range`}function Da(e){return e===``?null:+e}function Oa(e,t){return e===t||e?.[Se]===t}function ka(e={},t,n,r){var i=j.r,a=z;return Un(()=>{var o,s;return Gn(()=>{o=s,s=r?.()||[],Pr(()=>{e!==n(...s)&&(t(e,...s),o&&Oa(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Oa(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Aa={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ja(e,t,n){return new Proxy({props:e,exclude:t},Aa)}var Ma={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(C(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];C(i)&&(i=i());let a=ee(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(C(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=ee(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Se||t===Ce)return!1;for(let n of e.props)if(C(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(C(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Na(...e){return new Proxy({props:e},Ma)}function H(e,t,n,r){var i=!Qe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Pr(r):r),s);let u;if(a){var d=Se in e||Ce in e;u=ee(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=_t(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Fe(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Gt:qt)(()=>(g=!1,m()));a&&B(_);var v=z;return(function(e,t){if(arguments.length>0){let n=t?B(_):i&&a?un(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return lr&&g||v.f&16384?_.v:B(_)})}function Pa(e){return new Fa(e)}var Fa=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=an(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return B(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Ce?!0:(B(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?mi:pi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ze&&(!e?.props?.$$host||e.sync===!1)&&P(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||S(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{vi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ia;typeof HTMLElement==`function`&&(Ia=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=En(`slot`);e!==`default`&&(n.name=e),V(t,n)}}let t={},n=Ra(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=La(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Pa({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vn(()=>{Gn(()=>{this.$$r=!0;for(let e of x(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=La(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=La(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return x(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function La(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Ra(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function za(e,t,n,r,i,a){let o=class extends Ia{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return x(t).map(e=>(t[e].attribute||e).toLowerCase())}};return x(t).forEach(e=>{S(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=La(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(ee(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{S(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Ba(e){return e}function Va(e){return e<.5?4*e*e*e:.5*(2*e-2)**3+1}function Ha(e){return Object.prototype.toString.call(e)===`[object Date]`}function Ua(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>Ua(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(Ha(e)&&Ha(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=Ua(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var Wa=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=I(e),this.#t=I(e),this.#n=t}static of(t,n){let r=new e(t(),n);return Gn(()=>{r.set(t())}),r}set(e,t){L(this.#t,e);let{delay:n=0,duration:r=400,easing:i=Ba,interpolate:a=Ua}={...this.#n,...t};if(r===0)return this.#r?.abort(),L(this.#e,e),Promise.resolve();let o=Fi.now()+n,s,c=!1,l=this.#r;return this.#r=Li(t=>{if(t<o)return!0;if(!c){c=!0;let t=this.#e.v;s=a(t,e),typeof r==`function`&&(r=r(t,e)),l?.abort()}let n=t-o;return n>r?(L(this.#e,e),!1):(L(this.#e,s(i(n/r))),!0)}),this.#r.promise}get current(){return B(this.#e)}get target(){return B(this.#t)}set target(e){this.set(e)}},Ga=RegExp(`([\\p{Ll}\\d])(\\p{Lu})`,`gu`),Ka=RegExp(`(\\p{Lu})([\\p{Lu}][\\p{Ll}])`,`gu`),qa=RegExp(`(\\d)(\\p{Ll})`,`gu`),Ja=RegExp(`(\\p{L})(\\d)`,`gu`),Ya=/[^\p{L}\d]+/giu,Xa=`$1\0$2`,Za=``;function Qa(e,t){let n=e.trim();n=n.replace(Ga,Xa).replace(Ka,Xa),t?.separateNumbers&&(n=n.replace(qa,Xa).replace(Ja,Xa)),n=n.replace(Ya,`\0`);let r=0,i=n.length;for(;n.charAt(r)===`\0`;)r++;if(r===i)return[];for(;n.charAt(i-1)===`\0`;)i--;return n.slice(r,i).split(/\0/g)}function $a(e,t){return ho(e,t?.prefixCharacters)+Qa(e,t).map(uo(t?.locale)).join(t?.delimiter??` `)}function eo(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale),a=t?.mergeAmbiguousCharacters?po(r,i):mo(r,i);return n+Qa(e,t).map((e,t)=>t===0?r(e):a(e,t)).join(t?.delimiter??``)}function to(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale),a=t?.mergeAmbiguousCharacters?po(r,i):mo(r,i);return n+Qa(e,t).map(a).join(t?.delimiter??``)}function no(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale);return n+Qa(e,t).map(po(r,i)).join(t?.delimiter??` `)}function ro(e,t){return ho(e,t?.prefixCharacters)+Qa(e,t).map(fo(t?.locale)).join(t?.delimiter??`_`)}function io(e,t){return $a(e,{delimiter:`.`,...t})}function ao(e,t){return $a(e,{delimiter:`-`,...t})}function oo(e,t){return $a(e,{delimiter:`/`,...t})}function so(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=po(r,fo(t?.locale));return n+Qa(e,t).map((e,t)=>t===0?i(e):r(e)).join(t?.delimiter??` `)}function co(e,t){return $a(e,{delimiter:`_`,...t})}function lo(e,t){return no(e,{delimiter:`-`,...t})}function uo(e){return e===!1?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function fo(e){return e===!1?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function po(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function mo(e,t){return(n,r)=>{let i=n[0];return(r>0&&i>=`0`&&i<=`9`?`_`+i:t(i))+e(n.slice(1))}}function ho(e,t=Za){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(t.includes(i))n+=i;else break}return n}function go(e,t){let n=``;for(let r of e)n+=Math.random()>.5?r.toLocaleUpperCase(t):r.toLocaleLowerCase(t);return n}function _o(e,t){let n=``;for(let r of e){let e=r.toLocaleLowerCase(t);n+=r===e?r.toLocaleUpperCase(t):e}return n}var vo=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,yo=/[^\s:–—-]+|./g,bo=/\s/,xo=/.(?=[A-Z]|\..)/,So=/[A-Za-z0-9\u00C0-\u00FF]/;function Co(e){for(var t=``,n;(n=yo.exec(e))!==null;){var r=n[0],i=n.index;if(!xo.test(r)&&(!vo.test(r)||i===0||i+r.length===e.length)&&(e.charAt(i+r.length)!==`:`||bo.test(e.charAt(i+r.length+1)))){t+=r.replace(So,function(e){return e.toUpperCase()});continue}t+=r}return t}var wo=eo,To=no,Eo=ro,Do=io,Oo=$a,ko=to,Ao=oo,jo=so,Mo=co,No=lo,Po=ao,Fo=go,Io=_o,Lo=Co,Ro=e=>e.toUpperCase(),zo=(e,t)=>e.toLocaleUpperCase(t),Bo=e=>e.toLowerCase(),Vo=(e,t)=>e.toLocaleLowerCase(t),Ho=e=>e.charAt(0).toLowerCase()+e.slice(1),Uo=e=>e.charAt(0).toUpperCase()+e.slice(1),Wo=e=>e===e.toUpperCase(),Go=e=>e===e.toLowerCase(),Ko=class{};Ko.camel=wo,Ko.capital=To,Ko.constant=Eo,Ko.dot=Do,Ko.kebab=Po,Ko.lower=Bo,Ko.lowerFirst=Ho,Ko.localeLower=Vo,Ko.localeUpper=zo,Ko.no=Oo,Ko.pascal=ko,Ko.path=Ao,Ko.sentence=jo,Ko.snake=Mo,Ko.sponge=Fo,Ko.swap=Io,Ko.title=Lo,Ko.train=No,Ko.upper=Ro,Ko.upperFirst=Uo,Ko.isUpper=Wo,Ko.isLower=Go;function U(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}function qo(e){return e&&Object.assign(Xo,e),Xo}var Jo,Yo,Xo,Zo=s((()=>{Object.freeze({status:`aborted`}),Jo=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Yo=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Xo={}}));function Qo(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function $o(e,t=`|`){return e.map(e=>ms(e)).join(t)}function es(e,t){return typeof t==`bigint`?t.toString():t}function ts(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ns(e){return e==null}function rs(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function is(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}function W(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==As)return r===void 0&&(r=As,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function as(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function os(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ss(e){return JSON.stringify(e)}function cs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ls(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function us(e){if(ls(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ls(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ds(e){return us(e)?{...e}:Array.isArray(e)?[...e]:e}function fs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ps(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ms(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function hs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function gs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ps(e,os(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return as(this,`shape`,e),e},checks:[]}))}function _s(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ps(e,os(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return as(this,`shape`,r),r},checks:[]}))}function vs(e,t){if(!us(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return as(this,`shape`,n),n}}))}function ys(e,t){if(!us(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return as(this,`shape`,n),n}}))}function bs(e,t){return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return as(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function xs(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ps(t,os(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return as(this,`shape`,i),i},checks:[]}))}function Ss(e,t,n){return ps(t,os(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return as(this,`shape`,i),i}}))}function Cs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ws(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ts(e){return typeof e==`string`?e:e?.message}function Es(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ts(e.inst?._zod.def?.error?.(e))??Ts(t?.error?.(e))??Ts(n.customError?.(e))??Ts(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Ds(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Os(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function ks(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var As,js,Ms,Ns,Ps,Fs=s((()=>{As=Symbol(`evaluating`),js=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Ms=ts(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ns=new Set([`string`,`number`,`symbol`]),Ps={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}}));function Is(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ls(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var Rs,zs,Bs,Vs=s((()=>{Zo(),Fs(),Rs=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,es,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},zs=U(`$ZodError`,Rs),Bs=U(`$ZodError`,Rs,{Parent:Error})})),Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc=s((()=>{Zo(),Vs(),Fs(),Hs=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Jo;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Es(e,a,qo())));throw js(t,i?.callee),t}return o.value},Us=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Es(e,a,qo())));throw js(t,i?.callee),t}return o.value},Ws=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Jo;return a.issues.length?{success:!1,error:new(e??zs)(a.issues.map(e=>Es(e,i,qo())))}:{success:!0,data:a.value}},Gs=Ws(Bs),Ks=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Es(e,i,qo())))}:{success:!0,data:a.value}},qs=Ks(Bs),Js=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Hs(e)(t,n,i)},Ys=e=>(t,n,r)=>Hs(e)(t,n,r),Xs=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Us(e)(t,n,i)},Zs=e=>async(t,n,r)=>Us(e)(t,n,r),Qs=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ws(e)(t,n,i)},$s=e=>(t,n,r)=>Ws(e)(t,n,r),ec=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ks(e)(t,n,i)},tc=e=>async(t,n,r)=>Ks(e)(t,n,r)}));function rc(){return new RegExp(_c,`u`)}function ic(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ac(e){return RegExp(`^${ic(e)}$`)}function oc(e){let t=ic({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Tc}T(?:${r})$`)}var sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc=s((()=>{sc=/^[cC][^\s-]{8,}$/,cc=/^[0-9a-z]+$/,lc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uc=/^[0-9a-vA-V]{20}$/,dc=/^[A-Za-z0-9]{27}$/,fc=/^[a-zA-Z0-9_-]{21}$/,pc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,hc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_c=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,vc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,yc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,bc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,xc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cc=/^[A-Za-z0-9_-]*$/,wc=/^\+[1-9]\d{6,14}$/,Tc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Ec=RegExp(`^${Tc}$`),Dc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Oc=/^-?\d+$/,kc=/^-?\d+(?:\.\d+)?$/,Ac=/^(?:true|false)$/i,jc=/^[^A-Z]*$/,Mc=/^[^a-z]*$/})),Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc=s((()=>{Zo(),Nc(),Fs(),Pc=U(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Fc={number:`number`,bigint:`bigint`,object:`date`},Ic=U(`$ZodCheckLessThan`,(e,t)=>{Pc.init(e,t);let n=Fc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lc=U(`$ZodCheckGreaterThan`,(e,t)=>{Pc.init(e,t);let n=Fc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rc=U(`$ZodCheckMultipleOf`,(e,t)=>{Pc.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):is(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),zc=U(`$ZodCheckNumberFormat`,(e,t)=>{Pc.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ps[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Oc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Bc=U(`$ZodCheckMaxLength`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Ds(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vc=U(`$ZodCheckMinLength`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ds(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hc=U(`$ZodCheckLengthEquals`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ds(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Uc=U(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Pc.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Wc=U(`$ZodCheckRegex`,(e,t)=>{Uc.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gc=U(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=jc,Uc.init(e,t)}),Kc=U(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Mc,Uc.init(e,t)}),qc=U(`$ZodCheckIncludes`,(e,t)=>{Pc.init(e,t);let n=fs(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Jc=U(`$ZodCheckStartsWith`,(e,t)=>{Pc.init(e,t);let n=RegExp(`^${fs(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Yc=U(`$ZodCheckEndsWith`,(e,t)=>{Pc.init(e,t);let n=RegExp(`.*${fs(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Xc=U(`$ZodCheckOverwrite`,(e,t)=>{Pc.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),Qc,$c=s((()=>{Qc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
1
+ var LiipGPTSearchSummary=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var f={},p=Symbol(),m=`http://www.w3.org/1999/xhtml`,h=`http://www.w3.org/2000/svg`,g=`http://www.w3.org/1998/Math/MathML`,_=Array.isArray,v=Array.prototype.indexOf,y=Array.prototype.includes,b=Array.from,x=Object.keys,S=Object.defineProperty,C=Object.getOwnPropertyDescriptor,ee=Object.getOwnPropertyDescriptors,te=Object.prototype,ne=Array.prototype,w=Object.getPrototypeOf,re=Object.isExtensible;function ie(e){return typeof e==`function`}var T=()=>{};function ae(e){for(var t=0;t<e.length;t++)e[t]()}function oe(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var se=1<<24,ce=1024,le=2048,ue=4096,E=8192,de=16384,fe=32768,pe=1<<25,D=65536,me=1<<19,he=1<<20,ge=1<<25,_e=65536,ve=1<<21,ye=1<<22,be=1<<23,xe=Symbol(`$state`),Se=Symbol(`legacy props`),Ce=Symbol(``),we=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Te=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ee(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function De(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Oe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ke(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ae(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function je(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Me(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ne(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Pe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Fe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ie(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Le(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Re(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ze(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Be(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ve(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var O=!1;function He(e){O=e}var k;function Ue(e){if(e===null)throw ze(),f;return k=e}function We(){return Ue(bn(k))}function A(e){if(O){if(bn(k)!==null)throw ze(),f;k=e}}function Ge(e=1){if(O){for(var t=e,n=k;t--;)n=bn(n);k=n}}function Ke(e=!0){for(var t=0,n=k;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=bn(n);e&&n.remove(),n=i}}function qe(e){if(!e||e.nodeType!==8)throw ze(),f;return e.data}function Je(e){return e===this.v}function Ye(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Xe(e){return!Ye(e,this.v)}var Ze=!1,Qe=!1,j=null;function $e(e){j=e}function et(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:z,l:Qe&&!t?{s:null,u:null,$:[]}:null}}function tt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)zn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function nt(){return!Qe||j!==null&&j.l===null}var rt=[];function it(){var e=rt;rt=[],ae(e)}function at(e){if(rt.length===0&&!St){var t=rt;queueMicrotask(()=>{t===rt&&it()})}rt.push(e)}function ot(){for(;rt.length>0;)it()}function st(e){var t=z;if(t===null)return R.f|=be,e;if(!(t.f&32768)&&!(t.f&4))throw e;ct(e,t)}function ct(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var lt=~(le|ue|ce);function M(e,t){e.f=e.f&lt|t}function ut(e){e.f&512||e.deps===null?M(e,ce):M(e,ue)}function dt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=_e,dt(t.deps))}function ft(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),dt(e.deps),M(e,ce)}var pt=[];function mt(e,t=T){let n=null,r=new Set;function i(t){if(Ye(e,t)&&(e=t,n)){let t=!pt.length;for(let t of r)t[1](),pt.push(t,e);if(t){for(let e=0;e<pt.length;e+=2)pt[e][0](pt[e+1]);pt.length=0}}}function a(t){i(t(e))}function o(o,s=T){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||T),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var ht=!1,gt=!1;function _t(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}var vt=new Set,N=null,yt=null,bt=null,xt=null,St=!1,Ct=!1,wt=null,Tt=null,Et=0,Dt=1,Ot=class e{id=Dt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)M(n,le),this.schedule(n);for(n of t.m)M(n,ue),this.schedule(n)}}#d(){if(Et++>1e3&&(vt.delete(this),kt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),M(e,le),this.schedule(e);for(let e of this.#s)M(e,ue),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=wt=[],r=[],i=Tt=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw It(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(wt=null,Tt=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Ft(e,t)}else{this.#n===0&&vt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),yt=this,jt(r),jt(n),yt=null,this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(vt.add(o),o.#d()),vt.has(this)||this.#m()}#f(e,t,n){e.f^=ce;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=ce:i&4?t.push(r):Ze&&i&16777224?n.push(r):Tr(r)&&(i&16&&this.#s.add(r),Ar(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)ft(e[t],this.#o,this.#s)}capture(e,t){t!==p&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),bt?.set(e,e.v))}activate(){N=this}deactivate(){N=null,bt=null}flush(){try{Ct=!0,N=this,this.#d()}finally{Et=0,xt=null,wt=null,Tt=null,Ct=!1,N=null,bt=null,tn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),vt.delete(this)}#m(){for(let s of vt){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Mt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,at(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=oe()).promise}static ensure(){if(N===null){let t=N=new e;Ct||(vt.add(N),St||at(()=>{N===t&&t.flush()}))}return N}apply(){if(!Ze||!this.is_fork&&vt.size===1){bt=null;return}bt=new Map(this.current);for(let e of vt)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)bt.has(t)||bt.set(t,n)}schedule(e){if(xt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(wt!==null&&t===z&&(Ze||(R===null||!(R.f&2))&&!ht))return;if(n&96){if(!(n&1024))return;t.f^=ce}}this.#a.push(t)}};function P(e){var t=St;St=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(ot(),N===null)return n;N.flush()}}finally{St=t}}function kt(){try{Me()}catch(e){ct(e,xt)}}var At=null;function jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Tr(r)&&(At=new Set,Ar(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&tr(r),At?.size>0)){tn.clear();for(let e of At){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)At.has(n)&&(At.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ar(n)}}At.clear()}}At=null}}function Mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Mt(i,t,n,r):e&4194320&&!(e&2048)&&Nt(i,t,r)&&(M(i,le),Pt(i))}}function Nt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(y.call(t,r))return!0;if(r.f&2&&Nt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Pt(e){N.schedule(e)}function Ft(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,ce);for(var n=e.first;n!==null;)Ft(n,t),n=n.next}}function It(e){M(e,ce);for(var t=e.first;t!==null;)It(t),t=t.next}function Lt(e){let t=0,n=rn(0),r;return()=>{In()&&(B(n),Gn(()=>(t===0&&(r=Pr(()=>e(()=>cn(n)))),t+=1,()=>{at(()=>{--t,t===0&&(r?.(),r=void 0,cn(n))})})))}}var Rt=D|me;function zt(e,t,n,r){new Bt(e,t,n,r)}var Bt=class{parent;is_pending=!1;transform_error;#e;#t=O?k:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Lt(()=>(this.#m=rn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=z;t.b=this,t.f|=128,n(e)},this.parent=z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=qn(()=>{if(O){let e=this.#t;We();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Rt),O&&(this.#e=k)}#g(){try{this.#a=Yn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Yn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Yn(()=>e(this.#e)),at(()=>{var e=this.#c=document.createDocumentFragment(),t=vn();e.append(t),this.#a=this.#x(()=>Yn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,nr(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Yn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();or(this.#a,e);let t=this.#n.pending;this.#o=Yn(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){ft(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=z,n=R,r=j;pr(this.#i),fr(this.#i),$e(this.#i.ctx);try{return Ot.ensure(),e()}catch(e){return st(e),null}finally{pr(t),fr(n),$e(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&nr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,at(()=>{this.#d=!1,this.#m&&on(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=($n(this.#a),null),this.#o&&=($n(this.#o),null),this.#s&&=($n(this.#s),null),O&&(Ue(this.#t),Ge(),Ue(Ke()));var r=!1,i=!1;let a=()=>{if(r){Ve();return}r=!0,i&&Re(),this.#s!==null&&nr(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){ct(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Yn(()=>{var t=z;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return ct(e,this.#i.parent),null}}))};at(()=>{var t;try{t=this.transform_error(e)}catch(e){ct(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>ct(e,this.#i&&this.#i.parent)):o(t)})}};function Vt(e,t,n,r){let i=nt()?Gt:qt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=z,s=Ht(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||ct(e,o)}Ut()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Wt();function d(){Promise.all(n.map(e=>Kt(e))).then(e=>l([...t.map(i),...e])).catch(e=>ct(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ut()}):d()}function Ht(){var e=z,t=R,n=j,r=N;return function(i=!0){pr(e),fr(t),$e(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ut(e=!0){pr(null),fr(null),$e(null),e&&N?.deactivate()}function Wt(){var e=z.b,t=N,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function Gt(e){var t=2|le,n=R!==null&&R.f&2?R:null;return z!==null&&(z.f|=me),{ctx:j,deps:null,effects:null,equals:Je,f:t,fn:e,reactions:null,rv:0,v:p,wv:0,parent:n??z,ac:null}}function Kt(e,t,n){let r=z;r===null&&De();var i=void 0,a=rn(p),o=!R,s=new Map;return Wn(()=>{var t=z,n=oe();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ut)}catch(e){n.reject(e),Ut()}var c=N;if(o){if(t.f&32768)var l=Wt();if(r.b.is_rendered())s.get(c)?.reject(we),s.delete(c);else{for(let e of s.values())e.reject(we);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===we),!(n===we||t.f&16384)){if(c.activate(),n)a.f|=be,on(a,n);else{a.f&8388608&&(a.f^=be),on(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(we)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),Ln(()=>{for(let e of s.values())e.reject(we)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function F(e){let t=Gt(e);return Ze||hr(t),t}function qt(e){let t=Gt(e);return t.equals=Xe,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)$n(t[n])}}function Yt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Xt(e){var t,n=z;pr(Yt(e));try{e.f&=~_e,Jt(e),t=Dr(e)}finally{pr(n)}return t}function Zt(e){var t=e.v,n=Xt(e);if(!e.equals(n)&&(e.wv=wr(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t),e.deps===null))){M(e,ce);return}lr||(bt===null?ut(e):(In()||N?.is_fork)&&bt.set(e,n))}function Qt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(we),t.teardown=T,t.ac=null,kr(t,0),Zn(t))}function $t(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Ar(t)}var en=new Set,tn=new Map,nn=!1;function rn(e,t){return{f:0,v:e,reactions:null,equals:Je,rv:0,wv:0}}function I(e,t){let n=rn(e,t);return hr(n),n}function an(e,t=!1,n=!0){let r=rn(e);return t||(r.equals=Xe),Qe&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return R!==null&&(!dr||R.f&131072)&&nt()&&R.f&4325394&&(mr===null||!y.call(mr,e))&&Le(),on(e,n?un(t):t,Tt)}function on(e,t,n=null){if(!e.equals(t)){var r=e.v;lr?tn.set(e,t):tn.set(e,r),e.v=t;var i=Ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Xt(t),bt===null&&ut(t)}e.wv=wr(),ln(e,le,n),nt()&&z!==null&&z.f&1024&&!(z.f&96)&&(vr===null?yr([e]):vr.push(e)),!i.is_fork&&en.size>0&&!nn&&sn()}return t}function sn(){nn=!1;for(let e of en)e.f&1024&&M(e,ue),Tr(e)&&Ar(e);en.clear()}function cn(e){L(e,e.v+1)}function ln(e,t,n){var r=e.reactions;if(r!==null)for(var i=nt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===z)){var l=(c&le)===0;if(l&&M(s,t),c&2){var u=s;bt?.delete(u),c&65536||(c&512&&(s.f|=_e),ln(u,ue,n))}else if(l){var d=s;c&16&&At!==null&&At.add(d),n===null?Pt(d):n.push(d)}}}}function un(e){if(typeof e!=`object`||!e||xe in e)return e;let t=w(e);if(t!==te&&t!==ne)return e;var n=new Map,r=_(e),i=I(0),a=null,o=Sr,s=e=>{if(Sr===o)return e();var t=R,n=Sr;fr(null),Cr(o);var r=e();return fr(t),Cr(n),r};return r&&n.set(`length`,I(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Fe();var i=n.get(t);return i===void 0?s(()=>{var e=I(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>I(p,a));n.set(t,e),cn(i)}}else L(r,p),cn(i);return!0},get(t,r,i){if(r===xe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||C(t,r)?.writable)&&(o=s(()=>I(un(c?t[r]:p),a)),n.set(r,o)),o!==void 0){var l=B(o);return l===p?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=B(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==p)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===xe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==p||Reflect.has(e,t);return(r!==void 0||z!==null&&(!i||C(e,t)?.writable))&&(r===void 0&&(r=s(()=>I(i?un(e[t]):p,a)),n.set(t,r)),B(r)===p)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>I(p,a)),n.set(d+``,f)):L(f,p)}if(l===void 0)(!u||C(e,t)?.writable)&&(l=s(()=>I(void 0,a)),L(l,un(o)),n.set(t,l));else{u=l.v!==p;var m=s(()=>un(o));L(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}cn(i)}return!0},ownKeys(e){B(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==p});for(var[r,a]of n)a.v!==p&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ie()}})}function dn(e){try{if(typeof e==`object`&&e&&xe in e)return e[xe]}catch{}return e}function fn(e,t){return Object.is(dn(e),dn(t))}var pn,mn,hn,gn;function _n(){if(pn===void 0){pn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;hn=C(t,`firstChild`).get,gn=C(t,`nextSibling`).get,re(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),re(n)&&(n.__t=void 0)}}function vn(e=``){return document.createTextNode(e)}function yn(e){return hn.call(e)}function bn(e){return gn.call(e)}function xn(e,t){if(!O)return yn(e);var n=yn(k);if(n===null)n=k.appendChild(vn());else if(t&&n.nodeType!==3){var r=vn();return n?.before(r),Ue(r),r}return t&&Dn(n),Ue(n),n}function Sn(e,t=!1){if(!O){var n=yn(e);return n instanceof Comment&&n.data===``?bn(n):n}if(t){if(k?.nodeType!==3){var r=vn();return k?.before(r),Ue(r),r}Dn(k)}return k}function Cn(e,t=1,n=!1){let r=O?k:e;for(var i;t--;)i=r,r=bn(r);if(!O)return r;if(n){if(r?.nodeType!==3){var a=vn();return r===null?i?.after(a):r.before(a),Ue(a),a}Dn(r)}return Ue(r),r}function wn(e){e.textContent=``}function Tn(){return!Ze||At!==null?!1:(z.f&fe)!==0}function En(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Dn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function On(e,t){if(t){let t=document.body;e.autofocus=!0,at(()=>{document.activeElement===t&&e.focus()})}}var kn=!1;function An(){kn||(kn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function jn(e){var t=R,n=z;fr(null),pr(null);try{return e()}finally{fr(t),pr(n)}}function Mn(e,t,n,r=n){e.addEventListener(t,()=>jn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),An()}function Nn(e){z===null&&(R===null&&je(e),Ae()),lr&&ke(e)}function Pn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Fn(e,t){var n=z;n!==null&&n.f&8192&&(e|=E);var r={ctx:j,deps:null,nodes:null,f:e|le|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)wt===null?Ot.ensure().schedule(r):wt.push(r);else if(t!==null){try{Ar(r)}catch(e){throw $n(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=D))}if(i!==null&&(i.parent=n,n!==null&&Pn(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function In(){return R!==null&&!dr}function Ln(e){let t=Fn(8,null);return M(t,ce),t.teardown=e,t}function Rn(e){Nn(`$effect`);var t=z.f;if(!R&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return zn(e)}function zn(e){return Fn(4|he,e)}function Bn(e){return Nn(`$effect.pre`),Fn(8|he,e)}function Vn(e){Ot.ensure();let t=Fn(64|me,e);return()=>{$n(t)}}function Hn(e){Ot.ensure();let t=Fn(64|me,e);return(e={})=>new Promise(n=>{e.outro?nr(t,()=>{$n(t),n(void 0)}):($n(t),n(void 0))})}function Un(e){return Fn(4,e)}function Wn(e){return Fn(ye|me,e)}function Gn(e,t=0){return Fn(8|t,e)}function Kn(e,t=[],n=[],r=[]){Vt(r,t,n,t=>{Fn(8,()=>e(...t.map(B)))})}function qn(e,t=0){return Fn(16|t,e)}function Jn(e,t=0){return Fn(se|t,e)}function Yn(e){return Fn(32|me,e)}function Xn(e){var t=e.teardown;if(t!==null){let e=lr,n=R;ur(!0),fr(null);try{t.call(null)}finally{ur(e),fr(n)}}}function Zn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&jn(()=>{e.abort(we)});var r=n.next;n.f&64?n.parent=null:$n(n,t),n=r}}function Qn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||$n(t),t=n}}function $n(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(er(e.nodes.start,e.nodes.end),n=!0),M(e,pe),Zn(e,t&&!n),kr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Xn(e),e.f^=pe,e.f|=de;var i=e.parent;i!==null&&i.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function er(e,t){for(;e!==null;){var n=e===t?null:bn(e);e.remove(),e=n}}function tr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function nr(e,t,n=!0){var r=[];rr(e,r,!0);var i=()=>{n&&$n(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function rr(e,t,n){if(!(e.f&8192)){e.f^=E;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;rr(i,t,o?n:!1),i=a}}}function ir(e){ar(e,!0)}function ar(e,t){if(e.f&8192){e.f^=E,e.f&1024||(M(e,le),Ot.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;ar(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function or(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:bn(n);t.append(n),n=i}}var sr=null,cr=!1,lr=!1;function ur(e){lr=e}var R=null,dr=!1;function fr(e){R=e}var z=null;function pr(e){z=e}var mr=null;function hr(e){R!==null&&(!Ze||R.f&2)&&(mr===null?mr=[e]:mr.push(e))}var gr=null,_r=0,vr=null;function yr(e){vr=e}var br=1,xr=0,Sr=xr;function Cr(e){Sr=e}function wr(){return++br}function Tr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~_e),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Tr(a)&&Zt(a),a.wv>e.wv)return!0}t&512&&bt===null&&M(e,ce)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ze&&mr!==null&&y.call(mr,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Er(a,t,!1):t===a&&(n?M(a,le):a.f&1024&&M(a,ue),Pt(a))}}function Dr(e){var t=gr,n=_r,r=vr,i=R,a=mr,o=j,s=dr,c=Sr,l=e.f;gr=null,_r=0,vr=null,R=l&96?null:e,mr=null,$e(e.ctx),dr=!1,Sr=++xr,e.ac!==null&&(jn(()=>{e.ac.abort(we)}),e.ac=null);try{e.f|=ve;var u=e.fn,d=u();e.f|=fe;var f=e.deps,p=N?.is_fork;if(gr!==null){var m;if(p||kr(e,_r),f!==null&&_r>0)for(f.length=_r+gr.length,m=0;m<gr.length;m++)f[_r+m]=gr[m];else e.deps=f=gr;if(In()&&e.f&512)for(m=_r;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&_r<f.length&&(kr(e,_r),f.length=_r);if(nt()&&vr!==null&&!dr&&f!==null&&!(e.f&6146))for(m=0;m<vr.length;m++)Er(vr[m],e);if(i!==null&&i!==e){if(xr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=xr;if(t!==null)for(let e of t)e.rv=xr;vr!==null&&(r===null?r=vr:r.push(...vr))}return e.f&8388608&&(e.f^=be),d}catch(e){return st(e)}finally{e.f^=ve,gr=t,_r=n,vr=r,R=i,mr=a,$e(o),dr=s,Sr=c}}function Or(e,t){let n=t.reactions;if(n!==null){var r=v.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(gr===null||!y.call(gr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~_e),ut(a),Qt(a),kr(a,0)}}function kr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Or(e,n[r])}function Ar(e){var t=e.f;if(!(t&16384)){M(e,ce);var n=z,r=cr;z=e,cr=!0;try{t&16777232?Qn(e):Zn(e),Xn(e);var i=Dr(e);e.teardown=typeof i==`function`?i:null,e.wv=br}finally{cr=r,z=n}}}async function jr(){if(Ze)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),P()}function B(e){var t=(e.f&2)!=0;if(sr?.add(e),R!==null&&!dr&&!(z!==null&&z.f&16384)&&(mr===null||!y.call(mr,e))){var n=R.deps;if(R.f&2097152)e.rv<xr&&(e.rv=xr,gr===null&&n!==null&&n[_r]===e?_r++:gr===null?gr=[e]:gr.push(e));else{(R.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[R]:y.call(r,R)||r.push(R)}}if(lr&&tn.has(e))return tn.get(e);if(t){var i=e;if(lr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Nr(i))&&(a=Xt(i)),tn.set(i,a),a}var o=(i.f&512)==0&&!dr&&R!==null&&(cr||(R.f&512)!=0),s=(i.f&fe)===0;Tr(i)&&(o&&(i.f|=512),Zt(i)),o&&!s&&($t(i),Mr(i))}if(bt?.has(e))return bt.get(e);if(e.f&8388608)throw e.v;return e.v}function Mr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&($t(t),Mr(t))}function Nr(e){if(e.v===p)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(tn.has(t)||t.f&2&&Nr(t))return!0;return!1}function Pr(e){var t=dr;try{return dr=!0,e()}finally{dr=t}}function Fr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(xe in e)Ir(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&xe in n&&Ir(n)}}}function Ir(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Ir(e[n],t)}catch{}let n=w(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=ee(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Lr=Symbol(`events`),Rr=new Set,zr=new Set;function Br(e,t,n,r={}){function i(e){if(r.capture||Gr.call(t,e),!e.cancelBubble)return jn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?at(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Vr(e,t,n,r,i){var a={capture:r,passive:i},o=Br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ln(()=>{t.removeEventListener(e,o,a)})}function Hr(e,t,n){(t[Lr]??={})[e]=n}function Ur(e){for(var t=0;t<e.length;t++)Rr.add(e[t]);for(var n of zr)n(e)}var Wr=null;function Gr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Wr=e;var o=0,s=Wr===e&&e[Lr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Lr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){S(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=R,d=z;fr(null),pr(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Lr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Lr]=t,delete e.currentTarget,fr(u),pr(d)}}}var Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function qr(e){return Kr?.createHTML(e)??e}function Jr(e){var t=En(`template`);return t.innerHTML=qr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Yr(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Xr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(O)return Yr(k,null),k;i===void 0&&(i=Jr(a?e:`<!>`+e),n||(i=yn(i)));var t=r||mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=yn(t),s=t.lastChild;Yr(o,s)}else Yr(t,t);return t}}function Zr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(O)return Yr(k,null),k;if(!o){var e=yn(Jr(a));if(i)for(o=document.createDocumentFragment();yn(e);)o.appendChild(yn(e));else o=yn(e)}var t=o.cloneNode(!0);if(i){var n=yn(t),r=t.lastChild;Yr(n,r)}else Yr(t,t);return t}}function Qr(e,t){return Zr(e,t,`svg`)}function $r(){if(O)return Yr(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(``),n=vn();return e.append(t,n),Yr(t,n),e}function V(e,t){if(O){var n=z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=k),We();return}e!==null&&e.before(t)}function ei(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var ti=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function ni(e){return ti.includes(e)}var ri=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),ii={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function ai(e){return e=e.toLowerCase(),ii[e]??e}[...ri];var oi=[`touchstart`,`touchmove`];function si(e){return oi.includes(e)}var ci=[`textarea`,`script`,`style`,`title`];function li(e){return ci.includes(e)}var ui=!0;function di(e){ui=e}function fi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function pi(e,t){return gi(e,t)}function mi(e,t){_n(),t.intro=t.intro??!1;let n=t.target,r=O,i=k;try{for(var a=yn(n);a&&(a.nodeType!==8||a.data!==`[`);)a=bn(a);if(!a)throw f;He(!0),Ue(a);let r=gi(e,{...t,anchor:a});return He(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==f&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ne(),_n(),wn(n),He(!1),pi(e,t)}finally{He(r),Ue(i)}}var hi=new Map;function gi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){_n();var c=void 0,l=Hn(()=>{var l=n??t.appendChild(vn());zt(l,{pending:()=>{}},t=>{et({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),O&&Yr(t,null),ui=o,c=e(t,r)||{},ui=!0,O&&(z.nodes.end=k,k===null||k.nodeType!==8||k.data!==`]`))throw ze(),f;tt()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=si(r);for(let e of[t,document]){var a=hi.get(e);a===void 0&&(a=new Map,hi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Gr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(b(Rr)),zr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=hi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Gr),r.delete(e),r.size===0&&hi.delete(n)):r.set(e,i)}zr.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return _i.set(c,l),c}var _i=new WeakMap;function vi(e,t){let n=_i.get(e);return n?(_i.delete(e),n(t)):Promise.resolve()}var yi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)ir(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&($n(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();or(r,t),t.append(vn()),this.#n.set(e,{effect:r,fragment:t})}else $n(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),nr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||($n(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Tn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=vn();i.append(a),this.#n.set(e,{effect:Yn(()=>t(a)),fragment:i})}else this.#t.set(e,Yn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else O&&(this.anchor=k),this.#a(n)}};function bi(e){j===null&&Ee(`onMount`),Qe&&j.l!==null?Si(j).m.push(e):Rn(()=>{let t=Pr(e);if(typeof t==`function`)return t})}function xi(e){j===null&&Ee(`onDestroy`),bi(()=>()=>Pr(e))}function Si(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Ci(e,t,n=!1){var r;O&&(r=k,We());var i=new yi(e),a=n?D:0;function o(e,t){if(O){var n=qe(r);if(e!==parseInt(n.substring(1))){var a=Ke();Ue(a),i.anchor=a,He(!1),i.ensure(e,t),He(!0);return}}i.ensure(e,t)}qn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function wi(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];nr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Ti(e,b(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;wn(u),u.append(l),e.items.clear()}Ti(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Ti(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ge,or(a,document.createDocumentFragment())):$n(t[i],n)}}var Ei;function Di(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=O?Ue(yn(c)):c.appendChild(vn())}O&&We();var l=null,u=qt(()=>{var e=n();return _(e)?e:e==null?[]:b(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,ki(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=ge,ji(l,null,o)):ir(l):nr(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:qn(()=>{d=B(u);var e=d.length;let c=!1;O&&qe(o)===`[!`!=(e===0)&&(o=Ke(),Ue(o),He(!1),c=!0);for(var g=new Set,_=N,v=Tn(),y=0;y<e;y+=1){O&&k.nodeType===8&&k.data===`]`&&(o=k,c=!0,He(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&on(S.v,b),S.i&&on(S.i,y),v&&_.unskip_effect(S.e)):(S=Ai(s,p?o:Ei??=vn(),b,x,y,i,t,n),p||(S.e.f|=ge),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=Yn(()=>a(o)):(l=Yn(()=>a(Ei??=vn())),l.f|=ge)),e>g.size&&Oe(``,``,``),O&&e>0&&Ue(Ke()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&He(!0),B(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,O&&(o=k)}function Oi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ki(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Oi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(ir(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=ge,g===c)ji(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),Mi(e,u,g),Mi(e,g,v),ji(g,v,n),u=g,f=[],p=[],c=Oi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],x;u=y.prev;var S=f[0],C=f[f.length-1];for(x=0;x<f.length;x+=1)ji(f[x],y,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);Mi(e,S.prev,C.next),Mi(e,u,S),Mi(e,C,y),c=y,u=C,--_,f=[],p=[]}else l.delete(g),ji(g,c,n),Mi(e,g.prev,g.next),Mi(e,g,u===null?e.effect.first:u.next),Mi(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=Oi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=Oi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ti(e,b(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var ee=[];if(l!==void 0)for(g of l)g.f&8192||ee.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&ee.push(c),c=Oi(c.next);var te=ee.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(_=0;_<te;_+=1)ee[_].nodes?.a?.measure();for(_=0;_<te;_+=1)ee[_].nodes?.a?.fix()}wi(e,ee,ne)}}a&&at(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Ai(e,t,n,r,i,a,o,s){var c=o&1?o&16?rn(n):an(n,!1,!1):null,l=o&2?rn(i):null;return{v:c,i:l,e:Yn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ji(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=bn(r);if(a.before(r),r===i)return;r=o}}function Mi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ni(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;O&&(o=Ue(yn(c)))}Kn(()=>{var e=z;if(s===(s=t()??``)){O&&We();return}if(n&&!O){e.nodes=null,c.innerHTML=s,s!==``&&Yr(yn(c),c.lastChild);return}if(e.nodes!==null&&(er(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(O){for(var a=k.data,l=We(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=bn(l);if(l===null)throw ze(),f;Yr(k,u),o=Ue(l);return}var d=En(r?`svg`:i?`math`:`template`,r?h:i?g:void 0);d.innerHTML=s;var p=r||i?d:d.content;if(Yr(yn(p),p.lastChild),r||i)for(;yn(p);)o.before(yn(p));else o.before(p)}})}var Pi=()=>performance.now(),Fi={tick:e=>requestAnimationFrame(e),now:()=>Pi(),tasks:new Set};function Ii(){let e=Fi.now();Fi.tasks.forEach(t=>{t.c(e)||(Fi.tasks.delete(t),t.f())}),Fi.tasks.size!==0&&Fi.tick(Ii)}function Li(e){let t;return Fi.tasks.size===0&&Fi.tick(Ii),{promise:new Promise(n=>{Fi.tasks.add(t={c:e,f:n})}),abort(){Fi.tasks.delete(t)}}}function Ri(e,t){jn(()=>{e.dispatchEvent(new CustomEvent(t))})}function zi(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Bi(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=zi(n.trim());t[i]=r.trim()}return t}var Vi=e=>e;function Hi(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return jn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=Ui(t,m(),p,1,()=>{Ri(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=Ui(t,m(),f,0,()=>{Ri(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=z;if((g.nodes.t??=[]).push(h),i&&ui){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&Un(()=>{Pr(()=>h.in())})}}function Ui(e,t,n,r,i){var a=r===1;if(ie(t)){var o,s=!1;return at(()=>{s||(o=Ui(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return Ri(e,a?`introstart`:`outrostart`),i(),{abort:T,deactivate:T,reset:T,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=Vi}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var p=Bi(l(0,1));f.push(p,p)}var m=()=>1-r,h=e.animate(f,{duration:c,fill:`forwards`});return h.onfinish=()=>{h.cancel(),Ri(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*d(_/g),y=Bi(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),m=()=>{var e=h.currentTime;return o+s*d(e/c)},u&&Li(()=>{if(h.playState!==`running`)return!1;var e=m();return u(e,1-e),!0})}h=e.animate(f,{duration:c,fill:`forwards`}),h.onfinish=()=>{m=()=>r,u?.(r,1-r),i()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=T)},deactivate:()=>{i=T},reset:()=>{r===0&&u?.(1,0)},t:()=>m()}}function Wi(e,t,n,r,i,a){let o=O;O&&We();var s=null;O&&k.nodeType===1&&(s=k,We());var c=O?k:e,l=new yi(c,!1);qn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?h:void 0;if(e===null){l.ensure(null,null),di(!0);return}return l.ensure(e,t=>{if(e){if(s=O?s:En(e,a),Yr(s,s),r){O&&li(e)&&s.append(document.createComment(``));var n=O?yn(s):s.appendChild(vn());O&&(n===null?He(!1):Ue(n)),r(s,n)}z.nodes.end=s,t.before(s)}O&&Ue(t)}),di(!0),()=>{e&&di(!1)}},D),Ln(()=>{di(!0)}),o&&(He(!0),Ue(c))}function Gi(e,t,n){Un(()=>{var r=Pr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Gn(()=>{var e=n();Fr(e),i&&Ye(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ki(e,t){var n=void 0,r;Jn(()=>{n!==(n=t())&&(r&&=($n(r),null),n&&(r=Yn(()=>{Un(()=>n(e))})))})}function qi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ji(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qi(e))&&(r&&(r+=` `),r+=t);return r}function Yi(e){return typeof e==`object`?Ji(e):e??``}var Xi=[...`
3
+ \r\f\xA0\v`];function Zi(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Xi.includes(r[o-1]))&&(s===r.length||Xi.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Qi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function $i(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ea(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map($i)),i&&c.push(...Object.keys(i).map($i));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=$i(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Qi(r)),i&&(n+=Qi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ta(e,t,n,r,i,a){var o=e.__className;if(O||o!==n||o===void 0){var s=Zi(n,r,a);(!O||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function na(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ra(e,t,n,r){var i=e.__style;if(O||i!==t){var a=ea(t,r);(!O||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(na(e,n?.[0],r[0]),na(e,n?.[1],r[1],`important`)):na(e,n,r));return r}function ia(e,t,n=!1){if(e.multiple){if(t==null)return;if(!_(t))return Be();for(var r of e.options)r.selected=t.includes(oa(r));return}for(r of e.options)if(fn(oa(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function aa(e){var t=new MutationObserver(()=>{ia(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Ln(()=>{t.disconnect()})}function oa(e){return`__value`in e?e.__value:e.value}var sa=Symbol(`class`),ca=Symbol(`style`),la=Symbol(`is custom element`),ua=Symbol(`is html`),da=Te?`link`:`LINK`,fa=Te?`input`:`INPUT`,pa=Te?`option`:`OPTION`,ma=Te?`select`:`SELECT`,ha=Te?`progress`:`PROGRESS`;function ga(e){if(O){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ya(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ya(e,`checked`,null),e.checked=r}}};e.__on_r=n,at(n),An()}}function _a(e,t){var n=Sa(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==ha)||(e.value=t??``)}function va(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function ya(e,t,n,r){var i=Sa(e);O&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===da)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ce]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&wa(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ba(e,t,n,r,i=!1,a=!1){if(O&&i&&e.nodeName===fa){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ga(o)}var s=Sa(e),c=s[la],l=!s[ua];let u=O&&c;u&&He(!1);var d=t||{},f=e.nodeName===pa;for(var m in t)m in n||(n[m]=null);n.class?n.class=Yi(n.class):(r||n[sa])&&(n.class=null),n[ca]&&(n.style??=null);var h=wa(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){ta(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[sa],n[sa]),d[i]=o,d[sa]=n[sa];continue}if(i===`style`){ra(e,o,t?.[ca],n[ca]),d[i]=o,d[ca]=n[ca];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=ni(r);if(ei(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Hr(r,e,o),Ur([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=Br(r,e,a,t)}}else if(i===`style`)ya(e,i,o);else if(i===`autofocus`)On(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)va(e,o);else{var y=i;l||(y=ai(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=p)):typeof o!=`function`&&ya(e,y,o,a)}}}return u&&He(!0),d}function xa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Vt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===ma,l=!1;if(Jn(()=>{var u=t(...n.map(B)),d=ba(e,r,u,a,o,s);l&&c&&`value`in u&&ia(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||$n(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&$n(i[t]),i[t]=Yn(()=>Ki(e,()=>f))),d[t]=f}r=d}),c){var u=e;Un(()=>{ia(u,r.value,!0),aa(u)})}l=!0})}function Sa(e){return e.__attributes??={[la]:e.nodeName.includes(`-`),[ua]:e.namespaceURI===m}}var Ca=new Map;function wa(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ca.get(t);if(n)return n;Ca.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ee(i),r)r[o].set&&n.push(o);i=w(i)}return n}function Ta(e,t,n=t){var r=new WeakSet;Mn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ea(e)?Da(a):a,n(a),N!==null&&r.add(N),await jr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(O&&e.defaultValue!==e.value||Pr(t)==null&&e.value)&&(n(Ea(e)?Da(e.value):e.value),N!==null&&r.add(N)),Gn(()=>{var n=t();if(e===document.activeElement){var i=Ze?yt:N;if(r.has(i))return}Ea(e)&&n===Da(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ea(e){var t=e.type;return t===`number`||t===`range`}function Da(e){return e===``?null:+e}function Oa(e,t){return e===t||e?.[xe]===t}function ka(e={},t,n,r){var i=j.r,a=z;return Un(()=>{var o,s;return Gn(()=>{o=s,s=r?.()||[],Pr(()=>{e!==n(...s)&&(t(e,...s),o&&Oa(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Oa(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Aa={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ja(e,t,n){return new Proxy({props:e,exclude:t},Aa)}var Ma={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ie(i)&&(i=i());let a=C(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=C(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===xe||t===Se)return!1;for(let n of e.props)if(ie(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ie(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Na(...e){return new Proxy({props:e},Ma)}function H(e,t,n,r){var i=!Qe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Pr(r):r),s);let u;if(a){var d=xe in e||Se in e;u=C(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=_t(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Pe(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Gt:qt)(()=>(g=!1,m()));a&&B(_);var v=z;return(function(e,t){if(arguments.length>0){let n=t?B(_):i&&a?un(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return lr&&g||v.f&16384?_.v:B(_)})}function Pa(e){return new Fa(e)}var Fa=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=an(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return B(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Se?!0:(B(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?mi:pi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ze&&(!e?.props?.$$host||e.sync===!1)&&P(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||S(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{vi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ia;typeof HTMLElement==`function`&&(Ia=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=En(`slot`);e!==`default`&&(n.name=e),V(t,n)}}let t={},n=Ra(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=La(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Pa({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vn(()=>{Gn(()=>{this.$$r=!0;for(let e of x(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=La(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=La(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return x(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function La(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Ra(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function za(e,t,n,r,i,a){let o=class extends Ia{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return x(t).map(e=>(t[e].attribute||e).toLowerCase())}};return x(t).forEach(e=>{S(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=La(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(C(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{S(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Ba(e){return e}function Va(e){return e<.5?4*e*e*e:.5*(2*e-2)**3+1}function Ha(e){return Object.prototype.toString.call(e)===`[object Date]`}function Ua(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>Ua(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(Ha(e)&&Ha(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=Ua(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var Wa=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=I(e),this.#t=I(e),this.#n=t}static of(t,n){let r=new e(t(),n);return Gn(()=>{r.set(t())}),r}set(e,t){L(this.#t,e);let{delay:n=0,duration:r=400,easing:i=Ba,interpolate:a=Ua}={...this.#n,...t};if(r===0)return this.#r?.abort(),L(this.#e,e),Promise.resolve();let o=Fi.now()+n,s,c=!1,l=this.#r;return this.#r=Li(t=>{if(t<o)return!0;if(!c){c=!0;let t=this.#e.v;s=a(t,e),typeof r==`function`&&(r=r(t,e)),l?.abort()}let n=t-o;return n>r?(L(this.#e,e),!1):(L(this.#e,s(i(n/r))),!0)}),this.#r.promise}get current(){return B(this.#e)}get target(){return B(this.#t)}set target(e){this.set(e)}},Ga=RegExp(`([\\p{Ll}\\d])(\\p{Lu})`,`gu`),Ka=RegExp(`(\\p{Lu})([\\p{Lu}][\\p{Ll}])`,`gu`),qa=RegExp(`(\\d)(\\p{Ll})`,`gu`),Ja=RegExp(`(\\p{L})(\\d)`,`gu`),Ya=/[^\p{L}\d]+/giu,Xa=`$1\0$2`,Za=``;function Qa(e,t){let n=e.trim();n=n.replace(Ga,Xa).replace(Ka,Xa),t?.separateNumbers&&(n=n.replace(qa,Xa).replace(Ja,Xa)),n=n.replace(Ya,`\0`);let r=0,i=n.length;for(;n.charAt(r)===`\0`;)r++;if(r===i)return[];for(;n.charAt(i-1)===`\0`;)i--;return n.slice(r,i).split(/\0/g)}function $a(e,t){return ho(e,t?.prefixCharacters)+Qa(e,t).map(uo(t?.locale)).join(t?.delimiter??` `)}function eo(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale),a=t?.mergeAmbiguousCharacters?po(r,i):mo(r,i);return n+Qa(e,t).map((e,t)=>t===0?r(e):a(e,t)).join(t?.delimiter??``)}function to(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale),a=t?.mergeAmbiguousCharacters?po(r,i):mo(r,i);return n+Qa(e,t).map(a).join(t?.delimiter??``)}function no(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=fo(t?.locale);return n+Qa(e,t).map(po(r,i)).join(t?.delimiter??` `)}function ro(e,t){return ho(e,t?.prefixCharacters)+Qa(e,t).map(fo(t?.locale)).join(t?.delimiter??`_`)}function io(e,t){return $a(e,{delimiter:`.`,...t})}function ao(e,t){return $a(e,{delimiter:`-`,...t})}function oo(e,t){return $a(e,{delimiter:`/`,...t})}function so(e,t){let n=ho(e,t?.prefixCharacters),r=uo(t?.locale),i=po(r,fo(t?.locale));return n+Qa(e,t).map((e,t)=>t===0?i(e):r(e)).join(t?.delimiter??` `)}function co(e,t){return $a(e,{delimiter:`_`,...t})}function lo(e,t){return no(e,{delimiter:`-`,...t})}function uo(e){return e===!1?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function fo(e){return e===!1?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function po(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function mo(e,t){return(n,r)=>{let i=n[0];return(r>0&&i>=`0`&&i<=`9`?`_`+i:t(i))+e(n.slice(1))}}function ho(e,t=Za){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(t.includes(i))n+=i;else break}return n}function go(e,t){let n=``;for(let r of e)n+=Math.random()>.5?r.toLocaleUpperCase(t):r.toLocaleLowerCase(t);return n}function _o(e,t){let n=``;for(let r of e){let e=r.toLocaleLowerCase(t);n+=r===e?r.toLocaleUpperCase(t):e}return n}var vo=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,yo=/[^\s:–—-]+|./g,bo=/\s/,xo=/.(?=[A-Z]|\..)/,So=/[A-Za-z0-9\u00C0-\u00FF]/;function Co(e){for(var t=``,n;(n=yo.exec(e))!==null;){var r=n[0],i=n.index;if(!xo.test(r)&&(!vo.test(r)||i===0||i+r.length===e.length)&&(e.charAt(i+r.length)!==`:`||bo.test(e.charAt(i+r.length+1)))){t+=r.replace(So,function(e){return e.toUpperCase()});continue}t+=r}return t}var wo=eo,To=no,Eo=ro,Do=io,Oo=$a,ko=to,Ao=oo,jo=so,Mo=co,No=lo,Po=ao,Fo=go,Io=_o,Lo=Co,Ro=e=>e.toUpperCase(),zo=(e,t)=>e.toLocaleUpperCase(t),Bo=e=>e.toLowerCase(),Vo=(e,t)=>e.toLocaleLowerCase(t),Ho=e=>e.charAt(0).toLowerCase()+e.slice(1),Uo=e=>e.charAt(0).toUpperCase()+e.slice(1),Wo=e=>e===e.toUpperCase(),Go=e=>e===e.toLowerCase(),Ko=class{};Ko.camel=wo,Ko.capital=To,Ko.constant=Eo,Ko.dot=Do,Ko.kebab=Po,Ko.lower=Bo,Ko.lowerFirst=Ho,Ko.localeLower=Vo,Ko.localeUpper=zo,Ko.no=Oo,Ko.pascal=ko,Ko.path=Ao,Ko.sentence=jo,Ko.snake=Mo,Ko.sponge=Fo,Ko.swap=Io,Ko.title=Lo,Ko.train=No,Ko.upper=Ro,Ko.upperFirst=Uo,Ko.isUpper=Wo,Ko.isLower=Go;function U(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}function qo(e){return e&&Object.assign(Xo,e),Xo}var Jo,Yo,Xo,Zo=s((()=>{Object.freeze({status:`aborted`}),Jo=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Yo=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Xo={}}));function Qo(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function $o(e,t=`|`){return e.map(e=>ms(e)).join(t)}function es(e,t){return typeof t==`bigint`?t.toString():t}function ts(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ns(e){return e==null}function rs(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function is(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}function W(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==As)return r===void 0&&(r=As,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function as(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function os(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ss(e){return JSON.stringify(e)}function cs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ls(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function us(e){if(ls(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ls(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ds(e){return us(e)?{...e}:Array.isArray(e)?[...e]:e}function fs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ps(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ms(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function hs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function gs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ps(e,os(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return as(this,`shape`,e),e},checks:[]}))}function _s(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ps(e,os(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return as(this,`shape`,r),r},checks:[]}))}function vs(e,t){if(!us(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return as(this,`shape`,n),n}}))}function ys(e,t){if(!us(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return as(this,`shape`,n),n}}))}function bs(e,t){return ps(e,os(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return as(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function xs(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ps(t,os(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return as(this,`shape`,i),i},checks:[]}))}function Ss(e,t,n){return ps(t,os(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return as(this,`shape`,i),i}}))}function Cs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ws(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ts(e){return typeof e==`string`?e:e?.message}function Es(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ts(e.inst?._zod.def?.error?.(e))??Ts(t?.error?.(e))??Ts(n.customError?.(e))??Ts(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Ds(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Os(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function ks(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var As,js,Ms,Ns,Ps,Fs=s((()=>{As=Symbol(`evaluating`),js=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Ms=ts(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ns=new Set([`string`,`number`,`symbol`]),Ps={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}}));function Is(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ls(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var Rs,zs,Bs,Vs=s((()=>{Zo(),Fs(),Rs=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,es,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},zs=U(`$ZodError`,Rs),Bs=U(`$ZodError`,Rs,{Parent:Error})})),Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc=s((()=>{Zo(),Vs(),Fs(),Hs=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Jo;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Es(e,a,qo())));throw js(t,i?.callee),t}return o.value},Us=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Es(e,a,qo())));throw js(t,i?.callee),t}return o.value},Ws=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Jo;return a.issues.length?{success:!1,error:new(e??zs)(a.issues.map(e=>Es(e,i,qo())))}:{success:!0,data:a.value}},Gs=Ws(Bs),Ks=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Es(e,i,qo())))}:{success:!0,data:a.value}},qs=Ks(Bs),Js=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Hs(e)(t,n,i)},Ys=e=>(t,n,r)=>Hs(e)(t,n,r),Xs=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Us(e)(t,n,i)},Zs=e=>async(t,n,r)=>Us(e)(t,n,r),Qs=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ws(e)(t,n,i)},$s=e=>(t,n,r)=>Ws(e)(t,n,r),ec=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ks(e)(t,n,i)},tc=e=>async(t,n,r)=>Ks(e)(t,n,r)}));function rc(){return new RegExp(_c,`u`)}function ic(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ac(e){return RegExp(`^${ic(e)}$`)}function oc(e){let t=ic({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Tc}T(?:${r})$`)}var sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc=s((()=>{sc=/^[cC][^\s-]{8,}$/,cc=/^[0-9a-z]+$/,lc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uc=/^[0-9a-vA-V]{20}$/,dc=/^[A-Za-z0-9]{27}$/,fc=/^[a-zA-Z0-9_-]{21}$/,pc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,hc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_c=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,vc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,yc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,bc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,xc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Sc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cc=/^[A-Za-z0-9_-]*$/,wc=/^\+[1-9]\d{6,14}$/,Tc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Ec=RegExp(`^${Tc}$`),Dc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Oc=/^-?\d+$/,kc=/^-?\d+(?:\.\d+)?$/,Ac=/^(?:true|false)$/i,jc=/^[^A-Z]*$/,Mc=/^[^a-z]*$/})),Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc=s((()=>{Zo(),Nc(),Fs(),Pc=U(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Fc={number:`number`,bigint:`bigint`,object:`date`},Ic=U(`$ZodCheckLessThan`,(e,t)=>{Pc.init(e,t);let n=Fc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lc=U(`$ZodCheckGreaterThan`,(e,t)=>{Pc.init(e,t);let n=Fc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rc=U(`$ZodCheckMultipleOf`,(e,t)=>{Pc.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):is(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),zc=U(`$ZodCheckNumberFormat`,(e,t)=>{Pc.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ps[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Oc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Bc=U(`$ZodCheckMaxLength`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Ds(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vc=U(`$ZodCheckMinLength`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ds(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Hc=U(`$ZodCheckLengthEquals`,(e,t)=>{var n;Pc.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ns(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ds(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Uc=U(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Pc.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Wc=U(`$ZodCheckRegex`,(e,t)=>{Uc.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gc=U(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=jc,Uc.init(e,t)}),Kc=U(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Mc,Uc.init(e,t)}),qc=U(`$ZodCheckIncludes`,(e,t)=>{Pc.init(e,t);let n=fs(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Jc=U(`$ZodCheckStartsWith`,(e,t)=>{Pc.init(e,t);let n=RegExp(`^${fs(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Yc=U(`$ZodCheckEndsWith`,(e,t)=>{Pc.init(e,t);let n=RegExp(`.*${fs(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Xc=U(`$ZodCheckOverwrite`,(e,t)=>{Pc.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),Qc,$c=s((()=>{Qc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
4
4
  `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
5
5
  `))}}})),el,tl=s((()=>{el={major:4,minor:3,patch:6}}));function nl(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function rl(e){if(!Cc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return nl(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function il(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function al(e,t,n){e.issues.length&&t.issues.push(...ws(n,e.issues)),t.value[n]=e.value}function ol(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...ws(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function sl(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=hs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function cl(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>ol(e,n,i,t,u))):ol(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function ll(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Cs(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Es(e,r,qo())))}),t)}function ul(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(us(e)&&us(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ul(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ul(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function dl(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Cs(e))return e;let o=ul(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function fl(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}function pl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function ml(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function hl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function gl(e){return e.value=Object.freeze(e.value),e}function _l(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ks(e))}}var vl,yl,K,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu=s((()=>{Zc(),Zo(),$c(),nc(),Nc(),Fs(),tl(),vl=U(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=el;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Cs(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Jo;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Cs(e,t))});else{if(e.issues.length===t)continue;r||=Cs(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Cs(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Jo;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Jo;return o.then(e=>t(e,r,a))}return t(o,r,a)}}W(e,`~standard`,()=>({validate:t=>{try{let n=Gs(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return qs(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),yl=U(`$ZodString`,(e,t)=>{vl.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Dc(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),K=U(`$ZodStringFormat`,(e,t)=>{Uc.init(e,t),yl.init(e,t)}),bl=U(`$ZodGUID`,(e,t)=>{t.pattern??=mc,K.init(e,t)}),xl=U(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=hc(e)}else t.pattern??=hc();K.init(e,t)}),Sl=U(`$ZodEmail`,(e,t)=>{t.pattern??=gc,K.init(e,t)}),Cl=U(`$ZodURL`,(e,t)=>{K.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),wl=U(`$ZodEmoji`,(e,t)=>{t.pattern??=rc(),K.init(e,t)}),Tl=U(`$ZodNanoID`,(e,t)=>{t.pattern??=fc,K.init(e,t)}),El=U(`$ZodCUID`,(e,t)=>{t.pattern??=sc,K.init(e,t)}),Dl=U(`$ZodCUID2`,(e,t)=>{t.pattern??=cc,K.init(e,t)}),Ol=U(`$ZodULID`,(e,t)=>{t.pattern??=lc,K.init(e,t)}),kl=U(`$ZodXID`,(e,t)=>{t.pattern??=uc,K.init(e,t)}),Al=U(`$ZodKSUID`,(e,t)=>{t.pattern??=dc,K.init(e,t)}),jl=U(`$ZodISODateTime`,(e,t)=>{t.pattern??=oc(t),K.init(e,t)}),Ml=U(`$ZodISODate`,(e,t)=>{t.pattern??=Ec,K.init(e,t)}),Nl=U(`$ZodISOTime`,(e,t)=>{t.pattern??=ac(t),K.init(e,t)}),Pl=U(`$ZodISODuration`,(e,t)=>{t.pattern??=pc,K.init(e,t)}),Fl=U(`$ZodIPv4`,(e,t)=>{t.pattern??=vc,K.init(e,t),e._zod.bag.format=`ipv4`}),Il=U(`$ZodIPv6`,(e,t)=>{t.pattern??=yc,K.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Ll=U(`$ZodCIDRv4`,(e,t)=>{t.pattern??=bc,K.init(e,t)}),Rl=U(`$ZodCIDRv6`,(e,t)=>{t.pattern??=xc,K.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),zl=U(`$ZodBase64`,(e,t)=>{t.pattern??=Sc,K.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{nl(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Bl=U(`$ZodBase64URL`,(e,t)=>{t.pattern??=Cc,K.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{rl(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Vl=U(`$ZodE164`,(e,t)=>{t.pattern??=wc,K.init(e,t)}),Hl=U(`$ZodJWT`,(e,t)=>{K.init(e,t),e._zod.check=n=>{il(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ul=U(`$ZodNumber`,(e,t)=>{vl.init(e,t),e._zod.pattern=e._zod.bag.pattern??kc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Wl=U(`$ZodNumberFormat`,(e,t)=>{zc.init(e,t),Ul.init(e,t)}),Gl=U(`$ZodBoolean`,(e,t)=>{vl.init(e,t),e._zod.pattern=Ac,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Kl=U(`$ZodUnknown`,(e,t)=>{vl.init(e,t),e._zod.parse=e=>e}),ql=U(`$ZodNever`,(e,t)=>{vl.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Jl=U(`$ZodArray`,(e,t)=>{vl.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>al(t,n,e))):al(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Yl=U(`$ZodObject`,(e,t)=>{if(vl.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ts(()=>sl(t));W(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ls,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>ol(n,t,e,s,r))):ol(i,t,e,s,r)}return i?cl(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Xl=U(`$ZodObjectJIT`,(e,t)=>{Yl.init(e,t);let n=e._zod.parse,r=ts(()=>sl(t)),i=e=>{let t=new Qc([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ss(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ss(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
6
6
  if (${n}.issues.length) {
@@ -38,8 +38,8 @@ var LiipGPTSearchSummary=(function(e){Object.defineProperty(e,Symbol.toStringTag
38
38
 
39
39
  `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ls,s=!Xo.jitless,c=s&&Ms.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?cl([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Zl=U(`$ZodUnion`,(e,t)=>{vl.init(e,t),W(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),W(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),W(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),W(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>rs(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>ll(t,i,e,a)):ll(s,i,e,a)}}),Ql=U(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Zl.init(e,t);let n=e._zod.parse;W(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=ts(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ls(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),$l=U(`$ZodIntersection`,(e,t)=>{vl.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>dl(e,t,n)):dl(e,i,a)}}),eu=U(`$ZodRecord`,(e,t)=>{vl.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!us(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...ws(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...ws(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&kc.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Es(e,r,qo())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ws(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ws(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),tu=U(`$ZodEnum`,(e,t)=>{vl.init(e,t);let n=Qo(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ns.has(typeof e)).map(e=>typeof e==`string`?fs(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),nu=U(`$ZodLiteral`,(e,t)=>{if(vl.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?fs(e):e?fs(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),ru=U(`$ZodTransform`,(e,t)=>{vl.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yo(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Jo;return n.value=i,n}}),iu=U(`$ZodOptional`,(e,t)=>{vl.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${rs(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>fl(t,e.value)):fl(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),au=U(`$ZodExactOptional`,(e,t)=>{iu.init(e,t),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ou=U(`$ZodNullable`,(e,t)=>{vl.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${rs(e.source)}|null)$`):void 0}),W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),su=U(`$ZodDefault`,(e,t)=>{vl.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>pl(e,t)):pl(r,t)}}),cu=U(`$ZodPrefault`,(e,t)=>{vl.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),lu=U(`$ZodNonOptional`,(e,t)=>{vl.init(e,t),W(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ml(t,e)):ml(i,e)}}),uu=U(`$ZodCatch`,(e,t)=>{vl.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Es(e,n,qo()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Es(e,n,qo()))},input:e.value}),e.issues=[]),e)}}),du=U(`$ZodPipe`,(e,t)=>{vl.init(e,t),W(e._zod,`values`,()=>t.in._zod.values),W(e._zod,`optin`,()=>t.in._zod.optin),W(e._zod,`optout`,()=>t.out._zod.optout),W(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>hl(e,t.in,n)):hl(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>hl(e,t.out,n)):hl(r,t.out,n)}}),fu=U(`$ZodReadonly`,(e,t)=>{vl.init(e,t),W(e._zod,`propValues`,()=>t.innerType._zod.propValues),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`optin`,()=>t.innerType?._zod?.optin),W(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(gl):gl(r)}}),pu=U(`$ZodCustom`,(e,t)=>{Pc.init(e,t),vl.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>_l(t,n,r,e));_l(i,n,r,e)}})}));function hu(){return{localeError:gu()}}var gu,_u=s((()=>{Fs(),gu=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=Os(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${ms(e.values[0])}`:`Invalid option: expected one of ${$o(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${$o(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function vu(){return new bu}var yu,bu,xu,Su=s((()=>{bu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(yu=globalThis).__zod_globalRegistry??(yu.__zod_globalRegistry=vu()),xu=globalThis.__zod_globalRegistry}));function Cu(e,t){return new e({type:`string`,...G(t)})}function wu(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...G(t)})}function Tu(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...G(t)})}function Eu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...G(t)})}function Du(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...G(t)})}function Ou(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...G(t)})}function ku(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...G(t)})}function Au(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...G(t)})}function ju(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...G(t)})}function Mu(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...G(t)})}function Nu(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...G(t)})}function Pu(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...G(t)})}function Fu(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...G(t)})}function Iu(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...G(t)})}function Lu(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...G(t)})}function Ru(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...G(t)})}function zu(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...G(t)})}function Bu(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...G(t)})}function Vu(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...G(t)})}function Hu(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...G(t)})}function Uu(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...G(t)})}function Wu(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...G(t)})}function Gu(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...G(t)})}function Ku(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...G(t)})}function qu(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...G(t)})}function Ju(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...G(t)})}function Yu(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...G(t)})}function Xu(e,t){return new e({type:`number`,checks:[],...G(t)})}function Zu(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...G(t)})}function Qu(e,t){return new e({type:`boolean`,...G(t)})}function $u(e){return new e({type:`unknown`})}function ed(e,t){return new e({type:`never`,...G(t)})}function td(e,t){return new Ic({check:`less_than`,...G(t),value:e,inclusive:!1})}function nd(e,t){return new Ic({check:`less_than`,...G(t),value:e,inclusive:!0})}function rd(e,t){return new Lc({check:`greater_than`,...G(t),value:e,inclusive:!1})}function id(e,t){return new Lc({check:`greater_than`,...G(t),value:e,inclusive:!0})}function ad(e,t){return new Rc({check:`multiple_of`,...G(t),value:e})}function od(e,t){return new Bc({check:`max_length`,...G(t),maximum:e})}function sd(e,t){return new Vc({check:`min_length`,...G(t),minimum:e})}function cd(e,t){return new Hc({check:`length_equals`,...G(t),length:e})}function ld(e,t){return new Wc({check:`string_format`,format:`regex`,...G(t),pattern:e})}function ud(e){return new Gc({check:`string_format`,format:`lowercase`,...G(e)})}function dd(e){return new Kc({check:`string_format`,format:`uppercase`,...G(e)})}function fd(e,t){return new qc({check:`string_format`,format:`includes`,...G(t),includes:e})}function pd(e,t){return new Jc({check:`string_format`,format:`starts_with`,...G(t),prefix:e})}function md(e,t){return new Yc({check:`string_format`,format:`ends_with`,...G(t),suffix:e})}function hd(e){return new Xc({check:`overwrite`,tx:e})}function gd(e){return hd(t=>t.normalize(e))}function _d(){return hd(e=>e.trim())}function vd(){return hd(e=>e.toLowerCase())}function yd(){return hd(e=>e.toUpperCase())}function bd(){return hd(e=>cs(e))}function xd(e,t,n){return new e({type:`array`,element:t,...G(n)})}function Sd(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...G(n)})}function Cd(e){let t=wd(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(ks(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(ks(r))}},e(n.value,n)));return t}function wd(e,t){let n=new Pc({check:`custom`,...G(t)});return n._zod.check=e,n}var Td=s((()=>{Zc(),Su(),Fs()}));function Ed(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??xu,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Dd(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Dd(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ad(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Od(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
40
40
 
41
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function kd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Md(t,`input`,e.processors),output:Md(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ad(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ad(r.element,n);if(r.type===`set`)return Ad(r.valueType,n);if(r.type===`lazy`)return Ad(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Ad(r.innerType,n);if(r.type===`intersection`)return Ad(r.left,n)||Ad(r.right,n);if(r.type===`record`||r.type===`map`)return Ad(r.keyType,n)||Ad(r.valueType,n);if(r.type===`pipe`)return Ad(r.in,n)||Ad(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ad(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ad(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ad(e,n))return!0;return!!(r.rest&&Ad(r.rest,n))}return!1}var jd,Md,Nd=s((()=>{Su(),jd=(e,t={})=>n=>{let r=Ed({...n,processors:t});return Dd(e,r),Od(r,e),kd(r,e)},Md=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ed({...i??{},target:a,io:t,processors:n});return Dd(e,o),Od(o,e),kd(o,e)}})),Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf=s((()=>{Nd(),Fs(),Pd={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Fd=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Pd[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Id=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Ld=(e,t,n,r)=>{n.type=`boolean`},Rd=(e,t,n,r)=>{n.not={}},zd=(e,t,n,r)=>{},Bd=(e,t,n,r)=>{let i=e._zod.def,a=Qo(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Vd=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Dd(a.element,t,{...r,path:[...r.path,`items`]})},Gd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Dd(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Dd(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Dd(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qd=(e,t,n,r)=>{let i=e._zod.def,a=Dd(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Dd(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Jd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Dd(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Dd(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Dd(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Yd=(e,t,n,r)=>{let i=e._zod.def,a=Dd(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$d=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ef=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Dd(a,t,r);let o=t.seen.get(e);o.ref=a},tf=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nf=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType}})),af=s((()=>{Zo(),nc(),Vs(),mu(),Zc(),tl(),Fs(),Su(),$c(),Td(),Nd()})),of=s((()=>{af()}));function sf(e){return Ku(df,e)}function cf(e){return qu(ff,e)}function lf(e){return Ju(pf,e)}function uf(e){return Yu(mf,e)}var df,ff,pf,mf,hf=s((()=>{af(),Jp(),df=U(`ZodISODateTime`,(e,t)=>{jl.init(e,t),ip.init(e,t)}),ff=U(`ZodISODate`,(e,t)=>{Ml.init(e,t),ip.init(e,t)}),pf=U(`ZodISOTime`,(e,t)=>{Nl.init(e,t),ip.init(e,t)}),mf=U(`ZodISODuration`,(e,t)=>{Pl.init(e,t),ip.init(e,t)})})),gf,_f,vf=s((()=>{af(),Fs(),gf=(e,t)=>{zs.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ls(e,t)},flatten:{value:t=>Is(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,es,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,es,2)}},isEmpty:{get(){return e.issues.length===0}}})},U(`ZodError`,gf),_f=U(`ZodError`,gf,{Parent:Error})})),yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf=s((()=>{af(),vf(),yf=Hs(_f),bf=Us(_f),xf=Ws(_f),Sf=Ks(_f),Cf=Js(_f),wf=Ys(_f),Tf=Xs(_f),Ef=Zs(_f),Df=Qs(_f),Of=$s(_f),kf=ec(_f),Af=tc(_f)}));function q(e){return Cu(rp,e)}function Mf(e){return Xu(wp,e)}function Nf(e){return Zu(Tp,e)}function J(e){return Qu(Ep,e)}function Pf(){return $u(Dp)}function Ff(e){return ed(Op,e)}function Y(e,t){return xd(kp,e,t)}function X(e,t){return new Ap({type:`object`,shape:e??{},...G(t)})}function If(e,t){return new jp({type:`union`,options:e,...G(t)})}function Lf(e,t,n){return new Mp({type:`union`,options:t,discriminator:e,...G(n)})}function Rf(e,t){return new Np({type:`intersection`,left:e,right:t})}function zf(e,t,n){return new Pp({type:`record`,keyType:e,valueType:t,...G(n)})}function Bf(e,t,n){let r=ps(e);return r._zod.values=void 0,new Pp({type:`record`,keyType:r,valueType:t,...G(n)})}function Vf(e,t){return new Fp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...G(t)})}function Hf(e,t){return new Ip({type:`literal`,values:Array.isArray(e)?e:[e],...G(t)})}function Uf(e){return new Lp({type:`transform`,transform:e})}function Wf(e){return new Rp({type:`optional`,innerType:e})}function Gf(e){return new zp({type:`optional`,innerType:e})}function Kf(e){return new Bp({type:`nullable`,innerType:e})}function qf(e,t){return new Vp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ds(t)}})}function Jf(e,t){return new Hp({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ds(t)}})}function Yf(e,t){return new Up({type:`nonoptional`,innerType:e,...G(t)})}function Xf(e,t){return new Wp({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Zf(e,t){return new Gp({type:`pipe`,in:e,out:t})}function Qf(e){return new Kp({type:`readonly`,innerType:e})}function $f(e,t={}){return Sd(qp,e,t)}function ep(e){return Cd(e)}var tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp=s((()=>{af(),rf(),Nd(),of(),hf(),jf(),tp=U(`ZodType`,(e,t)=>(vl.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Md(e,`input`),output:Md(e,`output`)}}),e.toJSONSchema=jd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(os(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>ps(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>yf(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>xf(e,t,n),e.parseAsync=async(t,n)=>bf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Sf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Cf(e,t,n),e.decode=(t,n)=>wf(e,t,n),e.encodeAsync=async(t,n)=>Tf(e,t,n),e.decodeAsync=async(t,n)=>Ef(e,t,n),e.safeEncode=(t,n)=>Df(e,t,n),e.safeDecode=(t,n)=>Of(e,t,n),e.safeEncodeAsync=async(t,n)=>kf(e,t,n),e.safeDecodeAsync=async(t,n)=>Af(e,t,n),e.refine=(t,n)=>e.check($f(t,n)),e.superRefine=t=>e.check(ep(t)),e.overwrite=t=>e.check(hd(t)),e.optional=()=>Wf(e),e.exactOptional=()=>Gf(e),e.nullable=()=>Kf(e),e.nullish=()=>Wf(Kf(e)),e.nonoptional=t=>Yf(e,t),e.array=()=>Y(e),e.or=t=>If([e,t]),e.and=t=>Rf(e,t),e.transform=t=>Zf(e,Uf(t)),e.default=t=>qf(e,t),e.prefault=t=>Jf(e,t),e.catch=t=>Xf(e,t),e.pipe=t=>Zf(e,t),e.readonly=()=>Qf(e),e.describe=t=>{let n=e.clone();return xu.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return xu.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return xu.get(e);let n=e.clone();return xu.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),np=U(`_ZodString`,(e,t)=>{yl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fd(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ld(...t)),e.includes=(...t)=>e.check(fd(...t)),e.startsWith=(...t)=>e.check(pd(...t)),e.endsWith=(...t)=>e.check(md(...t)),e.min=(...t)=>e.check(sd(...t)),e.max=(...t)=>e.check(od(...t)),e.length=(...t)=>e.check(cd(...t)),e.nonempty=(...t)=>e.check(sd(1,...t)),e.lowercase=t=>e.check(ud(t)),e.uppercase=t=>e.check(dd(t)),e.trim=()=>e.check(_d()),e.normalize=(...t)=>e.check(gd(...t)),e.toLowerCase=()=>e.check(vd()),e.toUpperCase=()=>e.check(yd()),e.slugify=()=>e.check(bd())}),rp=U(`ZodString`,(e,t)=>{yl.init(e,t),np.init(e,t),e.email=t=>e.check(wu(ap,t)),e.url=t=>e.check(Au(cp,t)),e.jwt=t=>e.check(Gu(Cp,t)),e.emoji=t=>e.check(ju(lp,t)),e.guid=t=>e.check(Tu(op,t)),e.uuid=t=>e.check(Eu(sp,t)),e.uuidv4=t=>e.check(Du(sp,t)),e.uuidv6=t=>e.check(Ou(sp,t)),e.uuidv7=t=>e.check(ku(sp,t)),e.nanoid=t=>e.check(Mu(up,t)),e.guid=t=>e.check(Tu(op,t)),e.cuid=t=>e.check(Nu(dp,t)),e.cuid2=t=>e.check(Pu(fp,t)),e.ulid=t=>e.check(Fu(pp,t)),e.base64=t=>e.check(Hu(bp,t)),e.base64url=t=>e.check(Uu(xp,t)),e.xid=t=>e.check(Iu(mp,t)),e.ksuid=t=>e.check(Lu(hp,t)),e.ipv4=t=>e.check(Ru(gp,t)),e.ipv6=t=>e.check(zu(_p,t)),e.cidrv4=t=>e.check(Bu(vp,t)),e.cidrv6=t=>e.check(Vu(yp,t)),e.e164=t=>e.check(Wu(Sp,t)),e.datetime=t=>e.check(sf(t)),e.date=t=>e.check(cf(t)),e.time=t=>e.check(lf(t)),e.duration=t=>e.check(uf(t))}),ip=U(`ZodStringFormat`,(e,t)=>{K.init(e,t),np.init(e,t)}),ap=U(`ZodEmail`,(e,t)=>{Sl.init(e,t),ip.init(e,t)}),op=U(`ZodGUID`,(e,t)=>{bl.init(e,t),ip.init(e,t)}),sp=U(`ZodUUID`,(e,t)=>{xl.init(e,t),ip.init(e,t)}),cp=U(`ZodURL`,(e,t)=>{Cl.init(e,t),ip.init(e,t)}),lp=U(`ZodEmoji`,(e,t)=>{wl.init(e,t),ip.init(e,t)}),up=U(`ZodNanoID`,(e,t)=>{Tl.init(e,t),ip.init(e,t)}),dp=U(`ZodCUID`,(e,t)=>{El.init(e,t),ip.init(e,t)}),fp=U(`ZodCUID2`,(e,t)=>{Dl.init(e,t),ip.init(e,t)}),pp=U(`ZodULID`,(e,t)=>{Ol.init(e,t),ip.init(e,t)}),mp=U(`ZodXID`,(e,t)=>{kl.init(e,t),ip.init(e,t)}),hp=U(`ZodKSUID`,(e,t)=>{Al.init(e,t),ip.init(e,t)}),gp=U(`ZodIPv4`,(e,t)=>{Fl.init(e,t),ip.init(e,t)}),_p=U(`ZodIPv6`,(e,t)=>{Il.init(e,t),ip.init(e,t)}),vp=U(`ZodCIDRv4`,(e,t)=>{Ll.init(e,t),ip.init(e,t)}),yp=U(`ZodCIDRv6`,(e,t)=>{Rl.init(e,t),ip.init(e,t)}),bp=U(`ZodBase64`,(e,t)=>{zl.init(e,t),ip.init(e,t)}),xp=U(`ZodBase64URL`,(e,t)=>{Bl.init(e,t),ip.init(e,t)}),Sp=U(`ZodE164`,(e,t)=>{Vl.init(e,t),ip.init(e,t)}),Cp=U(`ZodJWT`,(e,t)=>{Hl.init(e,t),ip.init(e,t)}),wp=U(`ZodNumber`,(e,t)=>{Ul.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Id(e,t,n,r),e.gt=(t,n)=>e.check(rd(t,n)),e.gte=(t,n)=>e.check(id(t,n)),e.min=(t,n)=>e.check(id(t,n)),e.lt=(t,n)=>e.check(td(t,n)),e.lte=(t,n)=>e.check(nd(t,n)),e.max=(t,n)=>e.check(nd(t,n)),e.int=t=>e.check(Nf(t)),e.safe=t=>e.check(Nf(t)),e.positive=t=>e.check(rd(0,t)),e.nonnegative=t=>e.check(id(0,t)),e.negative=t=>e.check(td(0,t)),e.nonpositive=t=>e.check(nd(0,t)),e.multipleOf=(t,n)=>e.check(ad(t,n)),e.step=(t,n)=>e.check(ad(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Tp=U(`ZodNumberFormat`,(e,t)=>{Wl.init(e,t),wp.init(e,t)}),Ep=U(`ZodBoolean`,(e,t)=>{Gl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r)}),Dp=U(`ZodUnknown`,(e,t)=>{Kl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)}),Op=U(`ZodNever`,(e,t)=>{ql.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r)}),kp=U(`ZodArray`,(e,t)=>{Jl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(sd(t,n)),e.nonempty=t=>e.check(sd(1,t)),e.max=(t,n)=>e.check(od(t,n)),e.length=(t,n)=>e.check(cd(t,n)),e.unwrap=()=>e.element}),Ap=U(`ZodObject`,(e,t)=>{Xl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),W(e,`shape`,()=>t.shape),e.keyof=()=>Vf(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Pf()}),e.loose=()=>e.clone({...e._zod.def,catchall:Pf()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ff()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>vs(e,t),e.safeExtend=t=>ys(e,t),e.merge=t=>bs(e,t),e.pick=t=>gs(e,t),e.omit=t=>_s(e,t),e.partial=(...t)=>xs(Rp,e,t[0]),e.required=(...t)=>Ss(Up,e,t[0])}),jp=U(`ZodUnion`,(e,t)=>{Zl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r),e.options=t.options}),Mp=U(`ZodDiscriminatedUnion`,(e,t)=>{jp.init(e,t),Ql.init(e,t)}),Np=U(`ZodIntersection`,(e,t)=>{$l.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r)}),Pp=U(`ZodRecord`,(e,t)=>{eu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Fp=U(`ZodEnum`,(e,t)=>{tu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Fp({...t,checks:[],...G(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Fp({...t,checks:[],...G(r),entries:i})}}),Ip=U(`ZodLiteral`,(e,t)=>{nu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),Lp=U(`ZodTransform`,(e,t)=>{ru.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yo(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ks(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ks(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Rp=U(`ZodOptional`,(e,t)=>{iu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zp=U(`ZodExactOptional`,(e,t)=>{au.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bp=U(`ZodNullable`,(e,t)=>{ou.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Vp=U(`ZodDefault`,(e,t)=>{su.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Hp=U(`ZodPrefault`,(e,t)=>{cu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Up=U(`ZodNonOptional`,(e,t)=>{lu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Wp=U(`ZodCatch`,(e,t)=>{uu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Gp=U(`ZodPipe`,(e,t)=>{du.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.in=t.in,e.out=t.out}),Kp=U(`ZodReadonly`,(e,t)=>{fu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),qp=U(`ZodCustom`,(e,t)=>{pu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r)})})),Yp,Xp=s((()=>{(function(e){})(Yp||={})})),Zp=s((()=>{Jp(),of(),vf(),jf(),Xp(),af(),_u(),qo(hu())})),Qp=s((()=>{Zp(),Zp()}));Qp();var $p=640,em=1024,tm=null,nm=()=>{if(tm)return tm;if(!globalThis.document)return 16;let e=globalThis.document.querySelector(`:root`);return tm=Number(getComputedStyle(e).fontSize.slice(0,-2)),tm},rm=({minRem:e,maxRem:t})=>{let n=nm(),r=$p/n,i=em/n,a=(t-e)/(i-r);return`clamp( ${e}rem, ${-r*a+e}rem + ${a*100}cqw, ${t}rem )`},im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm=s((()=>{im=X({minRem:Mf(),maxRem:Mf()}),am=im.or(q()),om=X({0:q().optional(),50:q(),100:q(),200:q(),300:q(),400:q(),500:q(),600:q(),700:q(),800:q(),900:q(),950:q(),1e3:q().optional()}),sm=X({color:q().optional(),background:q().optional(),borderWidth:q().optional(),borderColor:q().optional(),boxShadow:q().optional()}),cm=Rf(X({borderRadius:am.optional(),custom:zf(q(),If([q(),Mf()])).optional(),hover:sm.optional(),focus:sm.optional()}),sm),lm=X({family:q().optional()}),um=Vf(`predefinedQuestion.edit.newConversation.voteUp.voteDown.retry.message.messageLoading.thread.submit.abort.expand.help.attach.record.reward.share.audio.copy.dismiss.menu.info.menuClose.chevronDown.chevronUp.chevronTopDown.chevronDownSmall.internalLink.externalLink.liip.avatar.avatarLarge.openChat.speechInput.listUnordered.lightMode.darkMode.settings.settingsClose.sources.model.checkbox.warning.topic.headerLogo.embedAvatar.forward.phone.email`.split(`.`)),dm=zf(um,q()),fm=Bf(um,q()),pm=X({font:lm.optional(),colors:X({brand:om,accent:om.optional(),highlight:om,grey:om}),base:X({fontSizeXs:am.optional(),fontSizeSm:am.optional(),fontSizeBody:am.optional(),fontSizeH3:am.optional(),fontSizeH2:am.optional(),fontSizeH1:am.optional(),fontWeightNormal:q().optional(),fontWeightBold:q().optional(),fontWeightTitle:q().optional(),lineHeightDefault:q().optional(),lineHeightSnug:q().optional(),lineHeightTight:q().optional(),borderRadius:am.optional(),lineColor:q().optional(),boxShadow:q().optional()}),components:zf(q(),cm),svgs:dm}),mm=X({customCSS:q().optional(),fontCSS:q().optional(),fontURLs:q().array().optional(),tokens:pm}),X({light:mm,dark:mm}),hm=X({font:lm.optional(),colors:X({brand:om.partial().optional(),accent:om.partial().optional(),highlight:om.partial().optional(),grey:om.partial().optional()}).optional(),base:X({fontSizeXs:am.optional(),fontSizeSm:am.optional(),fontSizeBody:am.optional(),fontSizeH3:am.optional(),fontSizeH2:am.optional(),fontSizeH1:am.optional(),fontWeightNormal:q().optional(),fontWeightBold:q().optional(),fontWeightTitle:q().optional(),lineHeightDefault:q().optional(),lineHeightSnug:q().optional(),lineHeightTight:q().optional(),borderRadius:am.optional(),lineColor:q().optional(),boxShadow:q().optional()}).optional(),components:zf(q(),cm).optional(),svgs:fm.optional()}),gm=X({customCSS:q().optional(),fontCSS:q().optional(),fontURLs:q().array().optional(),tokens:hm.optional()}),_m=X({light:gm.optional(),dark:gm.optional()})}));vm();var ym=e=>typeof e==`string`?e:typeof e==`number`?String(e):typeof e==`object`?e.minRem===e.maxRem?`${e.minRem}rem`:rm(e):``,bm=(e,t,n,r=!1)=>{let i=``;return n.forEach(n=>{let a=t[n];r&&!a&&n===`borderWidth`&&(a=`0px`),r&&!a&&n===`borderColor`&&(a=`transparent`),a&&(i+=`--${Po(e)}-${Po(n)}:${ym(a)}; `)}),i},xm=(e,t)=>Object.entries(t).map(([t,n])=>`--${e}-${Po(t)}:${ym(n)}`).join(`; `)+`; `,Sm=(e,t)=>{let n=``;return n+=bm(e,t,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`borderRadius`,`color`],!0),t.hover&&(n+=bm(`${e}-hover`,t.hover,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.focus&&(n+=bm(`${e}-focus`,t.focus,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.custom&&(n+=xm(e,t.custom)),n},Cm=(e,t)=>Object.entries(t).map(([t,n])=>`--color-${e}-${t}:${n}`).join(`; `)+`; `,wm=e=>`--font-family: ${e?.family||`inherit`};`,Tm=(e,t={})=>`${t.root??`.chat-app`} {${wm(e.font)} ${Object.entries(e.colors).map(([e,t])=>Cm(e,t)).join(``)} ${xm(`base`,e.base)} ${Object.entries(e.components).map(([e,t])=>Sm(Po(e),t)).join(``)}};`,{entries:Em,setPrototypeOf:Dm,isFrozen:Om,getPrototypeOf:km,getOwnPropertyDescriptor:Am}=Object,{freeze:jm,seal:Mm,create:Nm}=Object,{apply:Pm,construct:Fm}=typeof Reflect<`u`&&Reflect;jm||=function(e){return e},Mm||=function(e){return e},Pm||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},Fm||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var Im=Xm(Array.prototype.forEach),Lm=Xm(Array.prototype.lastIndexOf),Rm=Xm(Array.prototype.pop),zm=Xm(Array.prototype.push),Bm=Xm(Array.prototype.splice),Vm=Xm(String.prototype.toLowerCase),Hm=Xm(String.prototype.toString),Um=Xm(String.prototype.match),Wm=Xm(String.prototype.replace),Gm=Xm(String.prototype.indexOf),Km=Xm(String.prototype.trim),qm=Xm(Object.prototype.hasOwnProperty),Jm=Xm(RegExp.prototype.test),Ym=Zm(TypeError);function Xm(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Pm(e,t,r)}}function Zm(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fm(e,n)}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vm;Dm&&Dm(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Om(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Qm(e){for(let t=0;t<e.length;t++)qm(e,t)||(e[t]=null);return e}function $m(e){let t=Nm(null);for(let[n,r]of Em(e))qm(e,n)&&(Array.isArray(r)?t[n]=Qm(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=$m(r):t[n]=r);return t}function eh(e,t){for(;e!==null;){let n=Am(e,t);if(n){if(n.get)return Xm(n.get);if(typeof n.value==`function`)return Xm(n.value)}e=km(e)}function n(){return null}return n}var th=jm(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),nh=jm(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),rh=jm([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ih=jm([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ah=jm(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),oh=jm([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sh=jm([`#text`]),ch=jm(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),lh=jm(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),uh=jm(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),dh=jm([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),fh=Mm(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ph=Mm(/<%[\w\W]*|[\w\W]*%>/gm),mh=Mm(/\$\{[\w\W]*/gm),hh=Mm(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Mm(/^aria-[\-\w]+$/),_h=Mm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vh=Mm(/^(?:\w+script|data):/i),yh=Mm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bh=Mm(/^html$/i),xh=Mm(/^[a-z][.\w]*(-[.\w]+)+$/i),Sh=Object.freeze({__proto__:null,ARIA_ATTR:gh,ATTR_WHITESPACE:yh,CUSTOM_ELEMENT:xh,DATA_ATTR:hh,DOCTYPE_NAME:bh,ERB_EXPR:ph,IS_ALLOWED_URI:_h,IS_SCRIPT_OR_DATA:vh,MUSTACHE_EXPR:fh,TMPLIT_EXPR:mh}),Ch={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wh=function(){return typeof window>`u`?null:window},Th=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh(),t=e=>Dh(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ch.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=eh(m,`cloneNode`),g=eh(m,`remove`),_=eh(m,`nextSibling`),v=eh(m,`childNodes`),y=eh(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=n,{importNode:re}=r,ie=Eh();t.isSupported=typeof Em==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ae,ERB_EXPR:C,TMPLIT_EXPR:w,DATA_ATTR:oe,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ue}=Sh,{IS_ALLOWED_URI:T}=Sh,de=null,fe=Z({},[...th,...nh,...rh,...ah,...sh]),pe=null,me=Z({},[...ch,...lh,...uh,...dh]),E=Object.seal(Nm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,ge=null,_e=Object.seal(Nm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ve=!0,ye=!0,be=!1,xe=!0,Se=!1,Ce=!0,we=!1,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!1,Ae=!0,je=!1,Me=!0,Ne=!1,Pe={},Fe=null,Ie=Z({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Le=null,Re=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),ze=null,Be=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ve=`http://www.w3.org/1998/Math/MathML`,He=`http://www.w3.org/2000/svg`,D=`http://www.w3.org/1999/xhtml`,Ue=D,O=!1,We=null,Ge=Z({},[Ve,He,D],Hm),k=Z({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ke=Z({},[`annotation-xml`]),qe=Z({},[`title`,`style`,`font`,`a`,`script`]),Je=null,Ye=[`application/xhtml+xml`,`text/html`],A=null,Xe=null,Ze=n.createElement(`form`),Qe=function(e){return e instanceof RegExp||e instanceof Function},j=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===e)){if((!e||typeof e!=`object`)&&(e={}),e=$m(e),Je=Ye.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,A=Je===`application/xhtml+xml`?Hm:Vm,de=qm(e,`ALLOWED_TAGS`)?Z({},e.ALLOWED_TAGS,A):fe,pe=qm(e,`ALLOWED_ATTR`)?Z({},e.ALLOWED_ATTR,A):me,We=qm(e,`ALLOWED_NAMESPACES`)?Z({},e.ALLOWED_NAMESPACES,Hm):Ge,ze=qm(e,`ADD_URI_SAFE_ATTR`)?Z($m(Be),e.ADD_URI_SAFE_ATTR,A):Be,Le=qm(e,`ADD_DATA_URI_TAGS`)?Z($m(Re),e.ADD_DATA_URI_TAGS,A):Re,Fe=qm(e,`FORBID_CONTENTS`)?Z({},e.FORBID_CONTENTS,A):Ie,he=qm(e,`FORBID_TAGS`)?Z({},e.FORBID_TAGS,A):$m({}),ge=qm(e,`FORBID_ATTR`)?Z({},e.FORBID_ATTR,A):$m({}),Pe=qm(e,`USE_PROFILES`)?e.USE_PROFILES:!1,ve=e.ALLOW_ARIA_ATTR!==!1,ye=e.ALLOW_DATA_ATTR!==!1,be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=e.SAFE_FOR_TEMPLATES||!1,Ce=e.SAFE_FOR_XML!==!1,we=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,ke=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ae=e.SANITIZE_DOM!==!1,je=e.SANITIZE_NAMED_PROPS||!1,Me=e.KEEP_CONTENT!==!1,Ne=e.IN_PLACE||!1,T=e.ALLOWED_URI_REGEXP||_h,Ue=e.NAMESPACE||D,k=e.MATHML_TEXT_INTEGRATION_POINTS||k,Ke=e.HTML_INTEGRATION_POINTS||Ke,E=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(E.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(ye=!1),Oe&&(De=!0),Pe&&(de=Z({},sh),pe=Nm(null),Pe.html===!0&&(Z(de,th),Z(pe,ch)),Pe.svg===!0&&(Z(de,nh),Z(pe,lh),Z(pe,dh)),Pe.svgFilters===!0&&(Z(de,rh),Z(pe,lh),Z(pe,dh)),Pe.mathMl===!0&&(Z(de,ah),Z(pe,uh),Z(pe,dh))),qm(e,`ADD_TAGS`)||(_e.tagCheck=null),qm(e,`ADD_ATTR`)||(_e.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?_e.tagCheck=e.ADD_TAGS:(de===fe&&(de=$m(de)),Z(de,e.ADD_TAGS,A))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?_e.attributeCheck=e.ADD_ATTR:(pe===me&&(pe=$m(pe)),Z(pe,e.ADD_ATTR,A))),e.ADD_URI_SAFE_ATTR&&Z(ze,e.ADD_URI_SAFE_ATTR,A),e.FORBID_CONTENTS&&(Fe===Ie&&(Fe=$m(Fe)),Z(Fe,e.FORBID_CONTENTS,A)),e.ADD_FORBID_CONTENTS&&(Fe===Ie&&(Fe=$m(Fe)),Z(Fe,e.ADD_FORBID_CONTENTS,A)),Me&&(de[`#text`]=!0),we&&Z(de,[`html`,`head`,`body`]),de.table&&(Z(de,[`tbody`]),delete he.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ym(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ym(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Th(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));jm&&jm(e),Xe=e}},$e=Z({},[...nh,...rh,...ih]),et=Z({},[...ah,...oh]),tt=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ue,tagName:`template`});let n=Vm(e.tagName),r=Vm(t.tagName);return We[e.namespaceURI]?e.namespaceURI===He?t.namespaceURI===D?n===`svg`:t.namespaceURI===Ve?n===`svg`&&(r===`annotation-xml`||k[r]):!!$e[n]:e.namespaceURI===Ve?t.namespaceURI===D?n===`math`:t.namespaceURI===He?n===`math`&&Ke[r]:!!et[n]:e.namespaceURI===D?t.namespaceURI===He&&!Ke[r]||t.namespaceURI===Ve&&!k[r]?!1:!et[n]&&(qe[n]||!$e[n]):!!(Je===`application/xhtml+xml`&&We[e.namespaceURI]):!1},nt=function(e){zm(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},rt=function(e,n){try{zm(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{zm(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(De||Oe)try{nt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},it=function(e){let t=null,r=null;if(Ee)e=`<remove></remove>`+e;else{let t=Um(e,/^[\r\n\t ]+/);r=t&&t[0]}Je===`application/xhtml+xml`&&Ue===D&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ue===D)try{t=new f().parseFromString(i,Je)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ue,`template`,null);try{t.documentElement.innerHTML=O?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ue===D?ne.call(t,we?`html`:`body`)[0]:we?t.documentElement:a},at=function(e){return ee.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ot=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},st=function(e){return typeof s==`function`&&e instanceof s};function ct(e,n,r){Im(e,e=>{e.call(t,n,r,Xe)})}let lt=function(e){let n=null;if(ct(ie.beforeSanitizeElements,e,null),ot(e))return nt(e),!0;let r=A(e.nodeName);if(ct(ie.uponSanitizeElement,e,{tagName:r,allowedTags:de}),Ce&&e.hasChildNodes()&&!st(e.firstElementChild)&&Jm(/<[/\w!]/g,e.innerHTML)&&Jm(/<[/\w!]/g,e.textContent)||e.nodeType===Ch.progressingInstruction||Ce&&e.nodeType===Ch.comment&&Jm(/<[/\w]/g,e.data))return nt(e),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(r))&&(!de[r]||he[r])){if(!he[r]&&ut(r)&&(E.tagNameCheck instanceof RegExp&&Jm(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r)))return!1;if(Me&&!Fe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return nt(e),!0}return e instanceof c&&!tt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Jm(/<\/no(script|embed|frames)/i,e.innerHTML)?(nt(e),!0):(Se&&e.nodeType===Ch.text&&(n=e.textContent,Im([ae,C,w],e=>{n=Wm(n,e,` `)}),e.textContent!==n&&(zm(t.removed,{element:e.cloneNode()}),e.textContent=n)),ct(ie.afterSanitizeElements,e,null),!1)},M=function(e,t,r){if(ge[t]||Ae&&(t===`id`||t===`name`)&&(r in n||r in Ze))return!1;if(!(ye&&!ge[t]&&Jm(oe,t))&&!(ve&&Jm(se,t))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e))){if(!pe[t]||ge[t]){if(!(ut(e)&&(E.tagNameCheck instanceof RegExp&&Jm(E.tagNameCheck,e)||E.tagNameCheck instanceof Function&&E.tagNameCheck(e))&&(E.attributeNameCheck instanceof RegExp&&Jm(E.attributeNameCheck,t)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(t,e))||t===`is`&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Jm(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r))))return!1}else if(!ze[t]&&!Jm(T,Wm(r,le,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Gm(r,`data:`)===0&&Le[e])&&!(be&&!Jm(ce,Wm(r,le,``)))&&r)return!1}return!0},ut=function(e){return e!==`annotation-xml`&&Um(e,ue)},dt=function(e){ct(ie.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||ot(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:pe,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=A(a),l=s,u=a===`value`?l:Km(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,ct(ie.uponSanitizeAttribute,e,r),u=r.attrValue,je&&(c===`id`||c===`name`)&&(rt(a,e),u=`user-content-`+u),Ce&&Jm(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){rt(a,e);continue}if(c===`attributename`&&Um(u,`href`)){rt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){rt(a,e);continue}if(!xe&&Jm(/\/>/i,u)){rt(a,e);continue}Se&&Im([ae,C,w],e=>{u=Wm(u,e,` `)});let d=A(e.nodeName);if(!M(d,c,u)){rt(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),ot(e)?nt(e):Rm(t.removed)}catch{rt(a,e)}}ct(ie.afterSanitizeAttributes,e,null)},ft=function e(t){let n=null,r=at(t);for(ct(ie.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ct(ie.uponSanitizeShadowNode,n,null),lt(n),dt(n),n.content instanceof a&&e(n.content);ct(ie.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(O=!e,O&&(e=`<!-->`),typeof e!=`string`&&!st(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Ym(`dirty is not a string, aborting`)}else throw Ym(`toString is not a function`);if(!t.isSupported)return e;if(Te||j(n),t.removed=[],typeof e==`string`&&(Ne=!1),Ne){if(e.nodeName){let t=A(e.nodeName);if(!de[t]||he[t])throw Ym(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=it(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ch.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!De&&!Se&&!we&&e.indexOf(`<`)===-1)return b&&ke?b.createHTML(e):e;if(i=it(e),!i)return De?null:ke?x:``}i&&Ee&&nt(i.firstChild);let u=at(Ne?e:i);for(;c=u.nextNode();)lt(c),dt(c),c.content instanceof a&&ft(c.content);if(Ne)return e;if(De){if(Oe)for(l=te.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(pe.shadowroot||pe.shadowrootmode)&&(l=re.call(r,l,!0)),l}let d=we?i.outerHTML:i.innerHTML;return we&&de[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Jm(bh,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
42
- `+d),Se&&Im([ae,C,w],e=>{d=Wm(d,e,` `)}),b&&ke?b.createHTML(d):d},t.setConfig=function(){j(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Te=!0},t.clearConfig=function(){Xe=null,Te=!1},t.isValidAttribute=function(e,t,n){return Xe||j({}),M(A(e),A(t),n)},t.addHook=function(e,t){typeof t==`function`&&zm(ie[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Lm(ie[e],t);return n===-1?void 0:Bm(ie[e],n,1)[0]}return Rm(ie[e])},t.removeHooks=function(e){ie[e]=[]},t.removeAllHooks=function(){ie=Eh()},t}var Oh=Dh();function kh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ah=kh();function jh(e){Ah=e}var Mh={exec:()=>null};function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Nh.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Nh={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},Ph=/^(?:[ \t]*(?:\n|$))+/,Fh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ih=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Lh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zh=/(?:[*+-]|\d{1,9}[.)])/,Bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vh=Q(Bh).replace(/bull/g,zh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Hh=Q(Bh).replace(/bull/g,zh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Uh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Wh=/^[^\n]+/,Gh=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Kh=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Gh).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qh=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,zh).getRegex(),Jh=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Yh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xh=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Yh).replace(`tag`,Jh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zh=Q(Uh).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex(),Qh={blockquote:Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Zh).getRegex(),code:Fh,def:Kh,fences:Ih,heading:Rh,hr:Lh,html:Xh,lheading:Vh,list:qh,newline:Ph,paragraph:Zh,table:Mh,text:Wh},$h=Q(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex(),eg={...Qh,lheading:Hh,table:$h,paragraph:Q(Uh).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,$h).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex()},tg={...Qh,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Yh).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Uh).replace(`hr`,Lh).replace(`heading`,` *#{1,6} *[^
41
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function kd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Md(t,`input`,e.processors),output:Md(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ad(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ad(r.element,n);if(r.type===`set`)return Ad(r.valueType,n);if(r.type===`lazy`)return Ad(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Ad(r.innerType,n);if(r.type===`intersection`)return Ad(r.left,n)||Ad(r.right,n);if(r.type===`record`||r.type===`map`)return Ad(r.keyType,n)||Ad(r.valueType,n);if(r.type===`pipe`)return Ad(r.in,n)||Ad(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ad(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ad(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ad(e,n))return!0;return!!(r.rest&&Ad(r.rest,n))}return!1}var jd,Md,Nd=s((()=>{Su(),jd=(e,t={})=>n=>{let r=Ed({...n,processors:t});return Dd(e,r),Od(r,e),kd(r,e)},Md=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ed({...i??{},target:a,io:t,processors:n});return Dd(e,o),Od(o,e),kd(o,e)}})),Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf=s((()=>{Nd(),Fs(),Pd={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Fd=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Pd[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Id=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Ld=(e,t,n,r)=>{n.type=`boolean`},Rd=(e,t,n,r)=>{n.not={}},zd=(e,t,n,r)=>{},Bd=(e,t,n,r)=>{let i=e._zod.def,a=Qo(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Vd=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Dd(a.element,t,{...r,path:[...r.path,`items`]})},Gd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Dd(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Dd(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Dd(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qd=(e,t,n,r)=>{let i=e._zod.def,a=Dd(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Dd(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Jd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Dd(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Dd(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Dd(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Yd=(e,t,n,r)=>{let i=e._zod.def,a=Dd(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qd=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$d=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ef=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Dd(a,t,r);let o=t.seen.get(e);o.ref=a},tf=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nf=(e,t,n,r)=>{let i=e._zod.def;Dd(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType}})),af=s((()=>{Zo(),nc(),Vs(),mu(),Zc(),tl(),Fs(),Su(),$c(),Td(),Nd()})),of=s((()=>{af()}));function sf(e){return Ku(df,e)}function cf(e){return qu(ff,e)}function lf(e){return Ju(pf,e)}function uf(e){return Yu(mf,e)}var df,ff,pf,mf,hf=s((()=>{af(),Jp(),df=U(`ZodISODateTime`,(e,t)=>{jl.init(e,t),ip.init(e,t)}),ff=U(`ZodISODate`,(e,t)=>{Ml.init(e,t),ip.init(e,t)}),pf=U(`ZodISOTime`,(e,t)=>{Nl.init(e,t),ip.init(e,t)}),mf=U(`ZodISODuration`,(e,t)=>{Pl.init(e,t),ip.init(e,t)})})),gf,_f,vf=s((()=>{af(),Fs(),gf=(e,t)=>{zs.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ls(e,t)},flatten:{value:t=>Is(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,es,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,es,2)}},isEmpty:{get(){return e.issues.length===0}}})},U(`ZodError`,gf),_f=U(`ZodError`,gf,{Parent:Error})})),yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf=s((()=>{af(),vf(),yf=Hs(_f),bf=Us(_f),xf=Ws(_f),Sf=Ks(_f),Cf=Js(_f),wf=Ys(_f),Tf=Xs(_f),Ef=Zs(_f),Df=Qs(_f),Of=$s(_f),kf=ec(_f),Af=tc(_f)}));function q(e){return Cu(rp,e)}function Mf(e){return Xu(wp,e)}function Nf(e){return Zu(Tp,e)}function J(e){return Qu(Ep,e)}function Pf(){return $u(Dp)}function Ff(e){return ed(Op,e)}function Y(e,t){return xd(kp,e,t)}function X(e,t){return new Ap({type:`object`,shape:e??{},...G(t)})}function If(e,t){return new jp({type:`union`,options:e,...G(t)})}function Lf(e,t,n){return new Mp({type:`union`,options:t,discriminator:e,...G(n)})}function Rf(e,t){return new Np({type:`intersection`,left:e,right:t})}function zf(e,t,n){return new Pp({type:`record`,keyType:e,valueType:t,...G(n)})}function Bf(e,t,n){let r=ps(e);return r._zod.values=void 0,new Pp({type:`record`,keyType:r,valueType:t,...G(n)})}function Vf(e,t){return new Fp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...G(t)})}function Hf(e,t){return new Ip({type:`literal`,values:Array.isArray(e)?e:[e],...G(t)})}function Uf(e){return new Lp({type:`transform`,transform:e})}function Wf(e){return new Rp({type:`optional`,innerType:e})}function Gf(e){return new zp({type:`optional`,innerType:e})}function Kf(e){return new Bp({type:`nullable`,innerType:e})}function qf(e,t){return new Vp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ds(t)}})}function Jf(e,t){return new Hp({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ds(t)}})}function Yf(e,t){return new Up({type:`nonoptional`,innerType:e,...G(t)})}function Xf(e,t){return new Wp({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Zf(e,t){return new Gp({type:`pipe`,in:e,out:t})}function Qf(e){return new Kp({type:`readonly`,innerType:e})}function $f(e,t={}){return Sd(qp,e,t)}function ep(e){return Cd(e)}var tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp=s((()=>{af(),rf(),Nd(),of(),hf(),jf(),tp=U(`ZodType`,(e,t)=>(vl.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Md(e,`input`),output:Md(e,`output`)}}),e.toJSONSchema=jd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(os(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>ps(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>yf(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>xf(e,t,n),e.parseAsync=async(t,n)=>bf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Sf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Cf(e,t,n),e.decode=(t,n)=>wf(e,t,n),e.encodeAsync=async(t,n)=>Tf(e,t,n),e.decodeAsync=async(t,n)=>Ef(e,t,n),e.safeEncode=(t,n)=>Df(e,t,n),e.safeDecode=(t,n)=>Of(e,t,n),e.safeEncodeAsync=async(t,n)=>kf(e,t,n),e.safeDecodeAsync=async(t,n)=>Af(e,t,n),e.refine=(t,n)=>e.check($f(t,n)),e.superRefine=t=>e.check(ep(t)),e.overwrite=t=>e.check(hd(t)),e.optional=()=>Wf(e),e.exactOptional=()=>Gf(e),e.nullable=()=>Kf(e),e.nullish=()=>Wf(Kf(e)),e.nonoptional=t=>Yf(e,t),e.array=()=>Y(e),e.or=t=>If([e,t]),e.and=t=>Rf(e,t),e.transform=t=>Zf(e,Uf(t)),e.default=t=>qf(e,t),e.prefault=t=>Jf(e,t),e.catch=t=>Xf(e,t),e.pipe=t=>Zf(e,t),e.readonly=()=>Qf(e),e.describe=t=>{let n=e.clone();return xu.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return xu.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return xu.get(e);let n=e.clone();return xu.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),np=U(`_ZodString`,(e,t)=>{yl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fd(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ld(...t)),e.includes=(...t)=>e.check(fd(...t)),e.startsWith=(...t)=>e.check(pd(...t)),e.endsWith=(...t)=>e.check(md(...t)),e.min=(...t)=>e.check(sd(...t)),e.max=(...t)=>e.check(od(...t)),e.length=(...t)=>e.check(cd(...t)),e.nonempty=(...t)=>e.check(sd(1,...t)),e.lowercase=t=>e.check(ud(t)),e.uppercase=t=>e.check(dd(t)),e.trim=()=>e.check(_d()),e.normalize=(...t)=>e.check(gd(...t)),e.toLowerCase=()=>e.check(vd()),e.toUpperCase=()=>e.check(yd()),e.slugify=()=>e.check(bd())}),rp=U(`ZodString`,(e,t)=>{yl.init(e,t),np.init(e,t),e.email=t=>e.check(wu(ap,t)),e.url=t=>e.check(Au(cp,t)),e.jwt=t=>e.check(Gu(Cp,t)),e.emoji=t=>e.check(ju(lp,t)),e.guid=t=>e.check(Tu(op,t)),e.uuid=t=>e.check(Eu(sp,t)),e.uuidv4=t=>e.check(Du(sp,t)),e.uuidv6=t=>e.check(Ou(sp,t)),e.uuidv7=t=>e.check(ku(sp,t)),e.nanoid=t=>e.check(Mu(up,t)),e.guid=t=>e.check(Tu(op,t)),e.cuid=t=>e.check(Nu(dp,t)),e.cuid2=t=>e.check(Pu(fp,t)),e.ulid=t=>e.check(Fu(pp,t)),e.base64=t=>e.check(Hu(bp,t)),e.base64url=t=>e.check(Uu(xp,t)),e.xid=t=>e.check(Iu(mp,t)),e.ksuid=t=>e.check(Lu(hp,t)),e.ipv4=t=>e.check(Ru(gp,t)),e.ipv6=t=>e.check(zu(_p,t)),e.cidrv4=t=>e.check(Bu(vp,t)),e.cidrv6=t=>e.check(Vu(yp,t)),e.e164=t=>e.check(Wu(Sp,t)),e.datetime=t=>e.check(sf(t)),e.date=t=>e.check(cf(t)),e.time=t=>e.check(lf(t)),e.duration=t=>e.check(uf(t))}),ip=U(`ZodStringFormat`,(e,t)=>{K.init(e,t),np.init(e,t)}),ap=U(`ZodEmail`,(e,t)=>{Sl.init(e,t),ip.init(e,t)}),op=U(`ZodGUID`,(e,t)=>{bl.init(e,t),ip.init(e,t)}),sp=U(`ZodUUID`,(e,t)=>{xl.init(e,t),ip.init(e,t)}),cp=U(`ZodURL`,(e,t)=>{Cl.init(e,t),ip.init(e,t)}),lp=U(`ZodEmoji`,(e,t)=>{wl.init(e,t),ip.init(e,t)}),up=U(`ZodNanoID`,(e,t)=>{Tl.init(e,t),ip.init(e,t)}),dp=U(`ZodCUID`,(e,t)=>{El.init(e,t),ip.init(e,t)}),fp=U(`ZodCUID2`,(e,t)=>{Dl.init(e,t),ip.init(e,t)}),pp=U(`ZodULID`,(e,t)=>{Ol.init(e,t),ip.init(e,t)}),mp=U(`ZodXID`,(e,t)=>{kl.init(e,t),ip.init(e,t)}),hp=U(`ZodKSUID`,(e,t)=>{Al.init(e,t),ip.init(e,t)}),gp=U(`ZodIPv4`,(e,t)=>{Fl.init(e,t),ip.init(e,t)}),_p=U(`ZodIPv6`,(e,t)=>{Il.init(e,t),ip.init(e,t)}),vp=U(`ZodCIDRv4`,(e,t)=>{Ll.init(e,t),ip.init(e,t)}),yp=U(`ZodCIDRv6`,(e,t)=>{Rl.init(e,t),ip.init(e,t)}),bp=U(`ZodBase64`,(e,t)=>{zl.init(e,t),ip.init(e,t)}),xp=U(`ZodBase64URL`,(e,t)=>{Bl.init(e,t),ip.init(e,t)}),Sp=U(`ZodE164`,(e,t)=>{Vl.init(e,t),ip.init(e,t)}),Cp=U(`ZodJWT`,(e,t)=>{Hl.init(e,t),ip.init(e,t)}),wp=U(`ZodNumber`,(e,t)=>{Ul.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Id(e,t,n,r),e.gt=(t,n)=>e.check(rd(t,n)),e.gte=(t,n)=>e.check(id(t,n)),e.min=(t,n)=>e.check(id(t,n)),e.lt=(t,n)=>e.check(td(t,n)),e.lte=(t,n)=>e.check(nd(t,n)),e.max=(t,n)=>e.check(nd(t,n)),e.int=t=>e.check(Nf(t)),e.safe=t=>e.check(Nf(t)),e.positive=t=>e.check(rd(0,t)),e.nonnegative=t=>e.check(id(0,t)),e.negative=t=>e.check(td(0,t)),e.nonpositive=t=>e.check(nd(0,t)),e.multipleOf=(t,n)=>e.check(ad(t,n)),e.step=(t,n)=>e.check(ad(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Tp=U(`ZodNumberFormat`,(e,t)=>{Wl.init(e,t),wp.init(e,t)}),Ep=U(`ZodBoolean`,(e,t)=>{Gl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r)}),Dp=U(`ZodUnknown`,(e,t)=>{Kl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)}),Op=U(`ZodNever`,(e,t)=>{ql.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r)}),kp=U(`ZodArray`,(e,t)=>{Jl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(sd(t,n)),e.nonempty=t=>e.check(sd(1,t)),e.max=(t,n)=>e.check(od(t,n)),e.length=(t,n)=>e.check(cd(t,n)),e.unwrap=()=>e.element}),Ap=U(`ZodObject`,(e,t)=>{Xl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),W(e,`shape`,()=>t.shape),e.keyof=()=>Vf(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Pf()}),e.loose=()=>e.clone({...e._zod.def,catchall:Pf()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ff()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>vs(e,t),e.safeExtend=t=>ys(e,t),e.merge=t=>bs(e,t),e.pick=t=>gs(e,t),e.omit=t=>_s(e,t),e.partial=(...t)=>xs(Rp,e,t[0]),e.required=(...t)=>Ss(Up,e,t[0])}),jp=U(`ZodUnion`,(e,t)=>{Zl.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r),e.options=t.options}),Mp=U(`ZodDiscriminatedUnion`,(e,t)=>{jp.init(e,t),Ql.init(e,t)}),Np=U(`ZodIntersection`,(e,t)=>{$l.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r)}),Pp=U(`ZodRecord`,(e,t)=>{eu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Fp=U(`ZodEnum`,(e,t)=>{tu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Fp({...t,checks:[],...G(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Fp({...t,checks:[],...G(r),entries:i})}}),Ip=U(`ZodLiteral`,(e,t)=>{nu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),Lp=U(`ZodTransform`,(e,t)=>{ru.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yo(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ks(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ks(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Rp=U(`ZodOptional`,(e,t)=>{iu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zp=U(`ZodExactOptional`,(e,t)=>{au.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bp=U(`ZodNullable`,(e,t)=>{ou.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Vp=U(`ZodDefault`,(e,t)=>{su.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Hp=U(`ZodPrefault`,(e,t)=>{cu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Up=U(`ZodNonOptional`,(e,t)=>{lu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Wp=U(`ZodCatch`,(e,t)=>{uu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Gp=U(`ZodPipe`,(e,t)=>{du.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.in=t.in,e.out=t.out}),Kp=U(`ZodReadonly`,(e,t)=>{fu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),qp=U(`ZodCustom`,(e,t)=>{pu.init(e,t),tp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r)})})),Yp,Xp=s((()=>{(function(e){})(Yp||={})})),Zp=s((()=>{Jp(),of(),vf(),jf(),Xp(),af(),_u(),qo(hu())})),Qp=s((()=>{Zp(),Zp()}));Qp();var $p=640,em=1024,tm=null,nm=()=>{if(tm)return tm;if(!globalThis.document)return 16;let e=globalThis.document.querySelector(`:root`);return tm=Number(getComputedStyle(e).fontSize.slice(0,-2)),tm},rm=({minRem:e,maxRem:t})=>{let n=nm(),r=$p/n,i=em/n,a=(t-e)/(i-r);return`clamp( ${e}rem, ${-r*a+e}rem + ${a*100}cqw, ${t}rem )`},im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm=s((()=>{im=X({minRem:Mf(),maxRem:Mf()}),am=im.or(q()),om=X({0:q().optional(),50:q(),100:q(),200:q(),300:q(),400:q(),500:q(),600:q(),700:q(),800:q(),900:q(),950:q(),1e3:q().optional()}),sm=X({color:q().optional(),background:q().optional(),borderWidth:q().optional(),borderColor:q().optional(),boxShadow:q().optional()}),cm=Rf(X({borderRadius:am.optional(),custom:zf(q(),If([q(),Mf()])).optional(),hover:sm.optional(),focus:sm.optional()}),sm),lm=X({family:q().optional()}),um=Vf(`predefinedQuestion.edit.newConversation.voteUp.voteDown.retry.message.messageLoading.thread.submit.abort.expand.help.attach.record.reward.share.audio.copy.dismiss.menu.info.menuClose.chevronDown.chevronUp.chevronTopDown.chevronDownSmall.internalLink.externalLink.liip.avatar.avatarLarge.openChat.speechInput.listUnordered.lightMode.darkMode.settings.settingsClose.sources.model.checkbox.warning.topic.headerLogo.embedAvatar.forward.phone.email`.split(`.`)),dm=zf(um,q()),fm=Bf(um,q()),pm=X({font:lm.optional(),colors:X({brand:om,accent:om.optional(),highlight:om,grey:om}),base:X({fontSizeXs:am.optional(),fontSizeSm:am.optional(),fontSizeBody:am.optional(),fontSizeH3:am.optional(),fontSizeH2:am.optional(),fontSizeH1:am.optional(),fontWeightNormal:q().optional(),fontWeightBold:q().optional(),fontWeightTitle:q().optional(),lineHeightDefault:q().optional(),lineHeightSnug:q().optional(),lineHeightTight:q().optional(),borderRadius:am.optional(),lineColor:q().optional(),boxShadow:q().optional()}),components:zf(q(),cm),svgs:dm}),mm=X({customCSS:q().optional(),fontCSS:q().optional(),fontURLs:q().array().optional(),tokens:pm}),X({light:mm,dark:mm}),hm=X({font:lm.optional(),colors:X({brand:om.partial().optional(),accent:om.partial().optional(),highlight:om.partial().optional(),grey:om.partial().optional()}).optional(),base:X({fontSizeXs:am.optional(),fontSizeSm:am.optional(),fontSizeBody:am.optional(),fontSizeH3:am.optional(),fontSizeH2:am.optional(),fontSizeH1:am.optional(),fontWeightNormal:q().optional(),fontWeightBold:q().optional(),fontWeightTitle:q().optional(),lineHeightDefault:q().optional(),lineHeightSnug:q().optional(),lineHeightTight:q().optional(),borderRadius:am.optional(),lineColor:q().optional(),boxShadow:q().optional()}).optional(),components:zf(q(),cm).optional(),svgs:fm.optional()}),gm=X({customCSS:q().optional(),fontCSS:q().optional(),fontURLs:q().array().optional(),tokens:hm.optional()}),_m=X({light:gm.optional(),dark:gm.optional()})}));vm();var ym=e=>typeof e==`string`?e:typeof e==`number`?String(e):typeof e==`object`?e.minRem===e.maxRem?`${e.minRem}rem`:rm(e):``,bm=(e,t,n,r=!1)=>{let i=``;return n.forEach(n=>{let a=t[n];r&&!a&&n===`borderWidth`&&(a=`0px`),r&&!a&&n===`borderColor`&&(a=`transparent`),a&&(i+=`--${Po(e)}-${Po(n)}:${ym(a)}; `)}),i},xm=(e,t)=>Object.entries(t).map(([t,n])=>`--${e}-${Po(t)}:${ym(n)}`).join(`; `)+`; `,Sm=(e,t)=>{let n=``;return n+=bm(e,t,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`borderRadius`,`color`],!0),t.hover&&(n+=bm(`${e}-hover`,t.hover,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.focus&&(n+=bm(`${e}-focus`,t.focus,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.custom&&(n+=xm(e,t.custom)),n},Cm=(e,t)=>Object.entries(t).map(([t,n])=>`--color-${e}-${t}:${n}`).join(`; `)+`; `,wm=e=>`--font-family: ${e?.family||`inherit`};`,Tm=(e,t={})=>`${t.root??`.chat-app`} {${wm(e.font)} ${Object.entries(e.colors).map(([e,t])=>Cm(e,t)).join(``)} ${xm(`base`,e.base)} ${Object.entries(e.components).map(([e,t])=>Sm(Po(e),t)).join(``)}};`,{entries:Em,setPrototypeOf:Dm,isFrozen:Om,getPrototypeOf:km,getOwnPropertyDescriptor:Am}=Object,{freeze:jm,seal:Mm,create:Nm}=Object,{apply:Pm,construct:Fm}=typeof Reflect<`u`&&Reflect;jm||=function(e){return e},Mm||=function(e){return e},Pm||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},Fm||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var Im=Xm(Array.prototype.forEach),Lm=Xm(Array.prototype.lastIndexOf),Rm=Xm(Array.prototype.pop),zm=Xm(Array.prototype.push),Bm=Xm(Array.prototype.splice),Vm=Xm(String.prototype.toLowerCase),Hm=Xm(String.prototype.toString),Um=Xm(String.prototype.match),Wm=Xm(String.prototype.replace),Gm=Xm(String.prototype.indexOf),Km=Xm(String.prototype.trim),qm=Xm(Object.prototype.hasOwnProperty),Jm=Xm(RegExp.prototype.test),Ym=Zm(TypeError);function Xm(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Pm(e,t,r)}}function Zm(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fm(e,n)}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vm;Dm&&Dm(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Om(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Qm(e){for(let t=0;t<e.length;t++)qm(e,t)||(e[t]=null);return e}function $m(e){let t=Nm(null);for(let[n,r]of Em(e))qm(e,n)&&(Array.isArray(r)?t[n]=Qm(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=$m(r):t[n]=r);return t}function eh(e,t){for(;e!==null;){let n=Am(e,t);if(n){if(n.get)return Xm(n.get);if(typeof n.value==`function`)return Xm(n.value)}e=km(e)}function n(){return null}return n}var th=jm(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),nh=jm(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),rh=jm([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ih=jm([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ah=jm(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),oh=jm([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sh=jm([`#text`]),ch=jm(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),lh=jm(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),uh=jm(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),dh=jm([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),fh=Mm(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ph=Mm(/<%[\w\W]*|[\w\W]*%>/gm),mh=Mm(/\$\{[\w\W]*/gm),hh=Mm(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Mm(/^aria-[\-\w]+$/),_h=Mm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vh=Mm(/^(?:\w+script|data):/i),yh=Mm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bh=Mm(/^html$/i),xh=Mm(/^[a-z][.\w]*(-[.\w]+)+$/i),Sh=Object.freeze({__proto__:null,ARIA_ATTR:gh,ATTR_WHITESPACE:yh,CUSTOM_ELEMENT:xh,DATA_ATTR:hh,DOCTYPE_NAME:bh,ERB_EXPR:ph,IS_ALLOWED_URI:_h,IS_SCRIPT_OR_DATA:vh,MUSTACHE_EXPR:fh,TMPLIT_EXPR:mh}),Ch={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wh=function(){return typeof window>`u`?null:window},Th=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh(),t=e=>Dh(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ch.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=eh(m,`cloneNode`),g=eh(m,`remove`),_=eh(m,`nextSibling`),v=eh(m,`childNodes`),y=eh(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:ee,getElementsByTagName:te}=n,{importNode:ne}=r,w=Eh();t.isSupported=typeof Em==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:re,ERB_EXPR:ie,TMPLIT_EXPR:T,DATA_ATTR:ae,ARIA_ATTR:oe,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:ce,CUSTOM_ELEMENT:le}=Sh,{IS_ALLOWED_URI:ue}=Sh,E=null,de=Z({},[...th,...nh,...rh,...ah,...sh]),fe=null,pe=Z({},[...ch,...lh,...uh,...dh]),D=Object.seal(Nm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,he=null,ge=Object.seal(Nm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_e=!0,ve=!0,ye=!1,be=!0,xe=!1,Se=!0,Ce=!1,we=!1,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!0,Ae=!1,je=!0,Me=!1,Ne={},Pe=null,Fe=Z({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ie=null,Le=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Re=null,ze=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Be=`http://www.w3.org/1998/Math/MathML`,Ve=`http://www.w3.org/2000/svg`,O=`http://www.w3.org/1999/xhtml`,He=O,k=!1,Ue=null,We=Z({},[Be,Ve,O],Hm),A=Z({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ge=Z({},[`annotation-xml`]),Ke=Z({},[`title`,`style`,`font`,`a`,`script`]),qe=null,Je=[`application/xhtml+xml`,`text/html`],Ye=null,Xe=null,Ze=n.createElement(`form`),Qe=function(e){return e instanceof RegExp||e instanceof Function},j=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===e)){if((!e||typeof e!=`object`)&&(e={}),e=$m(e),qe=Je.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Ye=qe===`application/xhtml+xml`?Hm:Vm,E=qm(e,`ALLOWED_TAGS`)?Z({},e.ALLOWED_TAGS,Ye):de,fe=qm(e,`ALLOWED_ATTR`)?Z({},e.ALLOWED_ATTR,Ye):pe,Ue=qm(e,`ALLOWED_NAMESPACES`)?Z({},e.ALLOWED_NAMESPACES,Hm):We,Re=qm(e,`ADD_URI_SAFE_ATTR`)?Z($m(ze),e.ADD_URI_SAFE_ATTR,Ye):ze,Ie=qm(e,`ADD_DATA_URI_TAGS`)?Z($m(Le),e.ADD_DATA_URI_TAGS,Ye):Le,Pe=qm(e,`FORBID_CONTENTS`)?Z({},e.FORBID_CONTENTS,Ye):Fe,me=qm(e,`FORBID_TAGS`)?Z({},e.FORBID_TAGS,Ye):$m({}),he=qm(e,`FORBID_ATTR`)?Z({},e.FORBID_ATTR,Ye):$m({}),Ne=qm(e,`USE_PROFILES`)?e.USE_PROFILES:!1,_e=e.ALLOW_ARIA_ATTR!==!1,ve=e.ALLOW_DATA_ATTR!==!1,ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.SAFE_FOR_XML!==!1,Ce=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,ke=e.SANITIZE_DOM!==!1,Ae=e.SANITIZE_NAMED_PROPS||!1,je=e.KEEP_CONTENT!==!1,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||_h,He=e.NAMESPACE||O,A=e.MATHML_TEXT_INTEGRATION_POINTS||A,Ge=e.HTML_INTEGRATION_POINTS||Ge,D=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(D.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ve=!1),De&&(Ee=!0),Ne&&(E=Z({},sh),fe=Nm(null),Ne.html===!0&&(Z(E,th),Z(fe,ch)),Ne.svg===!0&&(Z(E,nh),Z(fe,lh),Z(fe,dh)),Ne.svgFilters===!0&&(Z(E,rh),Z(fe,lh),Z(fe,dh)),Ne.mathMl===!0&&(Z(E,ah),Z(fe,uh),Z(fe,dh))),qm(e,`ADD_TAGS`)||(ge.tagCheck=null),qm(e,`ADD_ATTR`)||(ge.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ge.tagCheck=e.ADD_TAGS:(E===de&&(E=$m(E)),Z(E,e.ADD_TAGS,Ye))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ge.attributeCheck=e.ADD_ATTR:(fe===pe&&(fe=$m(fe)),Z(fe,e.ADD_ATTR,Ye))),e.ADD_URI_SAFE_ATTR&&Z(Re,e.ADD_URI_SAFE_ATTR,Ye),e.FORBID_CONTENTS&&(Pe===Fe&&(Pe=$m(Pe)),Z(Pe,e.FORBID_CONTENTS,Ye)),e.ADD_FORBID_CONTENTS&&(Pe===Fe&&(Pe=$m(Pe)),Z(Pe,e.ADD_FORBID_CONTENTS,Ye)),je&&(E[`#text`]=!0),Ce&&Z(E,[`html`,`head`,`body`]),E.table&&(Z(E,[`tbody`]),delete me.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ym(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ym(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Th(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));jm&&jm(e),Xe=e}},$e=Z({},[...nh,...rh,...ih]),et=Z({},[...ah,...oh]),tt=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=Vm(e.tagName),r=Vm(t.tagName);return Ue[e.namespaceURI]?e.namespaceURI===Ve?t.namespaceURI===O?n===`svg`:t.namespaceURI===Be?n===`svg`&&(r===`annotation-xml`||A[r]):!!$e[n]:e.namespaceURI===Be?t.namespaceURI===O?n===`math`:t.namespaceURI===Ve?n===`math`&&Ge[r]:!!et[n]:e.namespaceURI===O?t.namespaceURI===Ve&&!Ge[r]||t.namespaceURI===Be&&!A[r]?!1:!et[n]&&(Ke[n]||!$e[n]):!!(qe===`application/xhtml+xml`&&Ue[e.namespaceURI]):!1},nt=function(e){zm(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},rt=function(e,n){try{zm(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{zm(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ee||De)try{nt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},it=function(e){let t=null,r=null;if(Te)e=`<remove></remove>`+e;else{let t=Um(e,/^[\r\n\t ]+/);r=t&&t[0]}qe===`application/xhtml+xml`&&He===O&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(He===O)try{t=new f().parseFromString(i,qe)}catch{}if(!t||!t.documentElement){t=S.createDocument(He,`template`,null);try{t.documentElement.innerHTML=k?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===O?te.call(t,Ce?`html`:`body`)[0]:Ce?t.documentElement:a},at=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ot=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},st=function(e){return typeof s==`function`&&e instanceof s};function ct(e,n,r){Im(e,e=>{e.call(t,n,r,Xe)})}let lt=function(e){let n=null;if(ct(w.beforeSanitizeElements,e,null),ot(e))return nt(e),!0;let r=Ye(e.nodeName);if(ct(w.uponSanitizeElement,e,{tagName:r,allowedTags:E}),Se&&e.hasChildNodes()&&!st(e.firstElementChild)&&Jm(/<[/\w!]/g,e.innerHTML)&&Jm(/<[/\w!]/g,e.textContent)||e.nodeType===Ch.progressingInstruction||Se&&e.nodeType===Ch.comment&&Jm(/<[/\w]/g,e.data))return nt(e),!0;if(!(ge.tagCheck instanceof Function&&ge.tagCheck(r))&&(!E[r]||me[r])){if(!me[r]&&ut(r)&&(D.tagNameCheck instanceof RegExp&&Jm(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r)))return!1;if(je&&!Pe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return nt(e),!0}return e instanceof c&&!tt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Jm(/<\/no(script|embed|frames)/i,e.innerHTML)?(nt(e),!0):(xe&&e.nodeType===Ch.text&&(n=e.textContent,Im([re,ie,T],e=>{n=Wm(n,e,` `)}),e.textContent!==n&&(zm(t.removed,{element:e.cloneNode()}),e.textContent=n)),ct(w.afterSanitizeElements,e,null),!1)},M=function(e,t,r){if(he[t]||ke&&(t===`id`||t===`name`)&&(r in n||r in Ze))return!1;if(!(ve&&!he[t]&&Jm(ae,t))&&!(_e&&Jm(oe,t))&&!(ge.attributeCheck instanceof Function&&ge.attributeCheck(t,e))){if(!fe[t]||he[t]){if(!(ut(e)&&(D.tagNameCheck instanceof RegExp&&Jm(D.tagNameCheck,e)||D.tagNameCheck instanceof Function&&D.tagNameCheck(e))&&(D.attributeNameCheck instanceof RegExp&&Jm(D.attributeNameCheck,t)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(t,e))||t===`is`&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&Jm(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r))))return!1}else if(!Re[t]&&!Jm(ue,Wm(r,ce,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Gm(r,`data:`)===0&&Ie[e])&&!(ye&&!Jm(se,Wm(r,ce,``)))&&r)return!1}return!0},ut=function(e){return e!==`annotation-xml`&&Um(e,le)},dt=function(e){ct(w.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||ot(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:fe,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Ye(a),l=s,u=a===`value`?l:Km(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,ct(w.uponSanitizeAttribute,e,r),u=r.attrValue,Ae&&(c===`id`||c===`name`)&&(rt(a,e),u=`user-content-`+u),Se&&Jm(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){rt(a,e);continue}if(c===`attributename`&&Um(u,`href`)){rt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){rt(a,e);continue}if(!be&&Jm(/\/>/i,u)){rt(a,e);continue}xe&&Im([re,ie,T],e=>{u=Wm(u,e,` `)});let d=Ye(e.nodeName);if(!M(d,c,u)){rt(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),ot(e)?nt(e):Rm(t.removed)}catch{rt(a,e)}}ct(w.afterSanitizeAttributes,e,null)},ft=function e(t){let n=null,r=at(t);for(ct(w.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ct(w.uponSanitizeShadowNode,n,null),lt(n),dt(n),n.content instanceof a&&e(n.content);ct(w.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(k=!e,k&&(e=`<!-->`),typeof e!=`string`&&!st(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Ym(`dirty is not a string, aborting`)}else throw Ym(`toString is not a function`);if(!t.isSupported)return e;if(we||j(n),t.removed=[],typeof e==`string`&&(Me=!1),Me){if(e.nodeName){let t=Ye(e.nodeName);if(!E[t]||me[t])throw Ym(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=it(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ch.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!Ee&&!xe&&!Ce&&e.indexOf(`<`)===-1)return b&&Oe?b.createHTML(e):e;if(i=it(e),!i)return Ee?null:Oe?x:``}i&&Te&&nt(i.firstChild);let u=at(Me?e:i);for(;c=u.nextNode();)lt(c),dt(c),c.content instanceof a&&ft(c.content);if(Me)return e;if(Ee){if(De)for(l=ee.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(fe.shadowroot||fe.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let d=Ce?i.outerHTML:i.innerHTML;return Ce&&E[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Jm(bh,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
42
+ `+d),xe&&Im([re,ie,T],e=>{d=Wm(d,e,` `)}),b&&Oe?b.createHTML(d):d},t.setConfig=function(){j(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),we=!0},t.clearConfig=function(){Xe=null,we=!1},t.isValidAttribute=function(e,t,n){return Xe||j({}),M(Ye(e),Ye(t),n)},t.addHook=function(e,t){typeof t==`function`&&zm(w[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Lm(w[e],t);return n===-1?void 0:Bm(w[e],n,1)[0]}return Rm(w[e])},t.removeHooks=function(e){w[e]=[]},t.removeAllHooks=function(){w=Eh()},t}var Oh=Dh();function kh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ah=kh();function jh(e){Ah=e}var Mh={exec:()=>null};function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Nh.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Nh={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},Ph=/^(?:[ \t]*(?:\n|$))+/,Fh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ih=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Lh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zh=/(?:[*+-]|\d{1,9}[.)])/,Bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vh=Q(Bh).replace(/bull/g,zh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Hh=Q(Bh).replace(/bull/g,zh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Uh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Wh=/^[^\n]+/,Gh=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Kh=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Gh).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qh=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,zh).getRegex(),Jh=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Yh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Xh=Q(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Yh).replace(`tag`,Jh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zh=Q(Uh).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex(),Qh={blockquote:Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Zh).getRegex(),code:Fh,def:Kh,fences:Ih,heading:Rh,hr:Lh,html:Xh,lheading:Vh,list:qh,newline:Ph,paragraph:Zh,table:Mh,text:Wh},$h=Q(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex(),eg={...Qh,lheading:Hh,table:$h,paragraph:Q(Uh).replace(`hr`,Lh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,$h).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Jh).getRegex()},tg={...Qh,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Yh).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Uh).replace(`hr`,Lh).replace(`heading`,` *#{1,6} *[^
43
43
  ]`).replace(`lheading`,Vh).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ng=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ig=/^( {2,}|\\)\n(?!\s*$)/,ag=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,og=/[\p{P}\p{S}]/u,sg=/[\s\p{P}\p{S}]/u,cg=/[^\s\p{P}\p{S}]/u,lg=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,sg).getRegex(),ug=/(?!~)[\p{P}\p{S}]/u,dg=/(?!~)[\s\p{P}\p{S}]/u,fg=/(?:[^\s\p{P}\p{S}]|~)/u,pg=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,mg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hg=Q(mg,`u`).replace(/punct/g,og).getRegex(),gg=Q(mg,`u`).replace(/punct/g,ug).getRegex(),_g=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,vg=Q(_g,`gu`).replace(/notPunctSpace/g,cg).replace(/punctSpace/g,sg).replace(/punct/g,og).getRegex(),yg=Q(_g,`gu`).replace(/notPunctSpace/g,fg).replace(/punctSpace/g,dg).replace(/punct/g,ug).getRegex(),bg=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,cg).replace(/punctSpace/g,sg).replace(/punct/g,og).getRegex(),xg=Q(/\\(punct)/,`gu`).replace(/punct/g,og).getRegex(),Sg=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cg=Q(Yh).replace(`(?:-->|$)`,`-->`).getRegex(),wg=Q(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Cg).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tg=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Eg=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,Tg).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dg=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Tg).replace(`ref`,Gh).getRegex(),Og=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Gh).getRegex(),kg={_backpedal:Mh,anyPunctuation:xg,autolink:Sg,blockSkip:pg,br:ig,code:rg,del:Mh,emStrongLDelim:hg,emStrongRDelimAst:vg,emStrongRDelimUnd:bg,escape:ng,link:Eg,nolink:Og,punctuation:lg,reflink:Dg,reflinkSearch:Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Dg).replace(`nolink`,Og).getRegex(),tag:wg,text:ag,url:Mh},Ag={...kg,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Tg).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Tg).getRegex()},jg={...kg,emStrongRDelimAst:yg,emStrongLDelim:gg,url:Q(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Mg={...jg,br:Q(ig).replace(`{2,}`,`*`).getRegex(),text:Q(jg.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Ng={normal:Qh,gfm:eg,pedantic:tg},Pg={normal:kg,gfm:jg,breaks:Mg,pedantic:Ag},Fg={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ig=e=>Fg[e];function Lg(e,t){if(t){if(Nh.escapeTest.test(e))return e.replace(Nh.escapeReplace,Ig)}else if(Nh.escapeTestNoEncode.test(e))return e.replace(Nh.escapeReplaceNoEncode,Ig);return e}function Rg(e){try{e=encodeURI(e).replace(Nh.percentDecode,`%`)}catch{return null}return e}function zg(e,t){let n=e.replace(Nh.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Nh.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Nh.slashPipe,`|`);return n}function Bg(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Vg(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Hg(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Ug(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
44
44
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
45
45
  `)}var Wg=class{options;rules;lexer;constructor(e){this.options=e||Ah}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Bg(e,`
@@ -98,7 +98,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
98
98
  `+i:t[r]=i)}.bind(this)),t.id!==null&&t.id.indexOf(`\0`)===-1&&(this.lastEventId=t.id),t.retry!==null&&/^[0-9]+$/.test(t.retry)&&(this.reconnectDelay=parseInt(t.retry,10)),t.data===null)return null;let n=new CustomEvent(t.event||`message`);return n.id=t.id,n.data=t.data||``,n.lastEventId=this.lastEventId,n},this._onReadyStateChange=function(){if(this.xhr&&this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED){let e={},t=this.xhr.getAllResponseHeaders().trim().split(`\r
99
99
  `);for(let n of t){let[t,...r]=n.split(`:`),i=r.join(`:`).trim();e[t.trim().toLowerCase()]=e[t.trim().toLowerCase()]||[],e[t.trim().toLowerCase()].push(i)}let n=new CustomEvent(`open`);n.responseCode=this.xhr.status,n.headers=e,this.dispatchEvent(n),this._setReadyState(Av.OPEN)}},this.stream=function(){if(!this.xhr){this._setReadyState(Av.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener(`progress`,this._onStreamProgress.bind(this)),this.xhr.addEventListener(`load`,this._onStreamLoaded.bind(this)),this.xhr.addEventListener(`readystatechange`,this._onReadyStateChange.bind(this)),this.xhr.addEventListener(`error`,this._onStreamFailure.bind(this)),this.xhr.addEventListener(`abort`,this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url);for(let e in this.headers)this.xhr.setRequestHeader(e,this.headers[e]);this.useLastEventId&&this.lastEventId.length>0&&this.xhr.setRequestHeader(`Last-Event-ID`,this.lastEventId),this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)}},this.close=function(){this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this.autoReconnect=!1,this.xhr&&this.xhr.abort()},(t.start===void 0||t.start)&&this.stream()};Av.INITIALIZING=-1,Av.CONNECTING=0,Av.OPEN=1,Av.CLOSED=2;var jv=class{eventSource;triggeredOnClose=!1;constructor(e,t,n){this.options=t,this.payload=n;let r={headers:{"content-type":`application/json`}};n&&(r.payload=JSON.stringify(n)),t.apiKey&&(r.headers[`api-key`]=t.apiKey),this.eventSource=new(t.EventSource??Av)(e,r),this.eventSource.onmessage=e=>{try{let n=JSON.parse(e.data);t.onMessage(n)}catch(e){t.onError(new CustomEvent(`parse-error`,{detail:e}))}},this.eventSource.onerror=e=>{t.onError(e),this.isClosed()&&this.close()}}isClosed(){return this.eventSource.readyState===EventSource.CLOSED}close(){this.isClosed()||this.eventSource.close(),this.triggeredOnClose||(this.triggeredOnClose=!0,this.options.onClose())}},Mv=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null)),Nv=class{constructor(e){this.options=e}getDefaultHeaders(e={}){let t={"Content-Type":`application/json`,...e};return this.options.apiKey&&(t[`api-key`]=this.options.apiKey),t}get speechRecognitionApiKey(){return this.options.speechRecognitionApiKey}async subscribeSse(e,t={},n){let r=Mv(t);return this.options.apiKey&&(n.apiKey=this.options.apiKey),new jv(`${this.options.apiUrl}${e}`,n,r)}async fetchData(e,t,n={},r={}){let i=`${this.options.apiUrl}${e}?${new URLSearchParams(Mv(n)).toString()}`,a={...r,headers:this.getDefaultHeaders(r?.headers)},o=await fetch(i,a);if(!o.ok){let e=await o.text();throw Error(`API request failed: ${o.status} - ${e}`)}let s=await o.json(),{success:c,data:l,error:u}=t.safeParse(s);if(this.options.strict){if(!c)throw console.error(`Server response has wrong type:
100
100
  `,{error:u,url:i,opts:a,data:s}),Error(`Server response has wrong type: ${u.message}`);return l}else return c||console.warn(`Server response has wrong type:
101
- `,{error:u,url:i,opts:a,data:s}),s}async postData(e,t){let n=await fetch(`${this.options.apiUrl}${e}`,{method:`POST`,headers:this.getDefaultHeaders(),body:JSON.stringify(t)});if(!n.ok){let e=await n.text();throw Error(`${n.status} - ${e}`)}return n}async postFormData(e,t){let n=await fetch(`${this.options.apiUrl}${e}`,{method:`POST`,body:t});if(!n.ok){let e=await n.text();throw Error(`${n.status} - ${e}`)}return n}};j_(),Qp();var Pv=X({links:Y(X({url:q().url().optional(),title:q().optional(),considered:J().optional(),orgMetadata:X({authors:Y(q()).optional()}).optional(),type:q().optional(),date:q().datetime().optional(),similarity:Mf().optional(),content:q().optional(),fromFullTextSearch:J().optional(),rerank:X({index:Mf().int().optional(),adjustment:Mf().optional(),score:Mf().optional(),similarityOld:Mf().optional()}).optional()}).or(A_))}),Fv=e=>{if(`metadata`in e)return e;console.warn(`Please upgrade your backend you are currently using an old api feature.`);let t=e.orgMetadata??{};e?.fromFullTextSearch&&(t.fromFullTextSearch=e?.fromFullTextSearch),e?.rerank&&(t.rerank=e?.rerank);let n=[],r=e.title??``;if(e.title&&e.title.includes(` > `)){let t=e.title.split(` > `);r=t.pop()??``,n=t}return{url:e.url??``,title:r,score:e.similarity||0,breadcrumbs:n,metadata:t,description:e.content,date:e.date}},Iv=7,Lv=8,Rv=160,zv=e=>{let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===`<`){let r=e.indexOf(`>`,n);if(r!==-1){t.push({type:`tag`,value:e.slice(n,r+1)}),n=r+1;continue}}if(/\s/.test(r)){let r=n;for(;r<e.length&&/\s/.test(e[r]);)r++;t.push({type:`space`,value:e.slice(n,r)}),n=r;continue}let i=n;for(;i<e.length&&!/\s/.test(e[i])&&e[i]!==`<`;)i++;t.push({type:`word`,value:e.slice(n,i)}),n=i}return t},Bv=e=>{let t=zv(e),n=[],r=``,i=!1;for(let e of t)e.type===`space`&&i?(n.push(r),r=e.value,i=!1):(r+=e.value,e.type===`word`&&(i=!0));return r&&n.push(r),n},Vv=e=>Math.max(Lv,Math.min(Rv,e.length*Iv)),Hv=class{queue=[];timeoutId=null;isProcessing=!1;constructor(e){this.onText=e}ingestText(e){let t=Bv(e);if(t.length>=5){for(let e of t)this.queue.push({kind:`text`,chunk:e,delayMs:Vv(e)});this.kickoff();return}this.runAfterTyping(()=>this.onText(e))}runAfterTyping(e){if(this.queue.length===0&&!this.isProcessing){e();return}this.queue.push({kind:`fn`,fn:e}),this.kickoff()}runWithWarmup(e){this.queue.push({kind:`fn`,fn:e}),this.kickoff()}clear(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.queue=[],this.isProcessing=!1}kickoff(){this.isProcessing||this.timeoutId!==null||(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.processNext()},750))}processNext(){let e=this.queue.shift();if(!e){this.isProcessing=!1;return}this.isProcessing=!0,e.kind===`text`?(this.onText(e.chunk),this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.processNext()},e.delayMs)):(e.fn(),this.processNext())}},Uv=class{constructor(e){this.results=e}};W_(),mv();var Wv=class{internalData;renderers=new Map;markedExtensions=[];_newTabSrText;constructor(e){let t=new Nv({apiUrl:e.apiUrl,apiKey:e.apiKey,speechRecognitionApiKey:e.speechRecognitionApiKey,strict:e.strict??!1,EventSource:e.EventSource??EventSource});this.internalData={restClient:t,metadata:kv(t,e.startParameters),searchResponseMap:new Map,chatResponseMap:new Map,conversationMap:new Map}}setMarkedExtensions(...e){this.markedExtensions=e}setNewTabSrText(e){this._newTabSrText=e}getMetadata(){return this.internalData.metadata}createConversationId(){let e=Cv();return this.renderers.set(e,new t_({extensions:this.markedExtensions,newTabSrText:this._newTabSrText})),e}chat(e,t,n={}){let r=new i_,i=Cv(),a=new r_,o=new c_({id:i,onError:e=>{n.onError?.(e)},onFinish:e=>{r.setValue(e)},markdownRenderer:this.renderers.get(e)??new t_({extensions:this.markedExtensions,newTabSrText:this._newTabSrText}),userQuestion:t}),s=async()=>{await a,(await c).close()},c=new i_,l=new Hv(e=>o.updateText(e));(async()=>{let s=await this.internalData.metadata;if(s.mode===`maintenance`)throw Error(`Can not chat in maintenance mode`);let u=await this.internalData.restClient.subscribeSse(`/assistant/sse`,{query:t,uID:s.userId,cID:e,rID:i,lang:n.lang,feature:n.features?.join(`,`),referrer:n.referrer,source:n.source,...n.selectorValues??{},...n.mode?{mode:n.mode}:{},...n.predefinedQuestionId?{predefinedQuestionId:n.predefinedQuestionId}:{},...n.switchQuestionId?{switchQuestionId:n.switchQuestionId}:{},chat:`true`,version:`2`},{onClose:()=>{l.clear(),o.finishMessage(),a.resolve(),r.cleanup()},onMessage:t=>{let r=t;switch(r.type){case`error`:l.runAfterTyping(()=>o.pushError(r.error));break;case`id`:r.for===`request`&&i!==r.id&&console.warn(`Unexpected request id "${r.id}" expected "${i}"`),r.for===`conversation`&&e!==r.id&&console.warn(`Unexpected conversation id "${r.id}" expected "${e}"`);break;case`state`:r.state===`history-entry-initialized`&&a.resolve();break;case`text`:l.ingestText(r.text);break;case`done`:case`answer-done`:l.runAfterTyping(()=>{o.finishMessage(),a.resolve(),c.then(e=>e.close())});break;case`unexpected-call`:l.runAfterTyping(()=>{console.error(`unexpected-call:`,r),o.pushError(`unexpected-call`)});break;case`jsonld-component`:case`mapped-reference`:l.runAfterTyping(()=>o.addMappedReference(r.reference));break;case`reference`:l.runAfterTyping(()=>o.addOldReference(r.reference));break;case`retrieval-question`:l.runAfterTyping(()=>o.updateRetrievalQuestion(r.question));break;case`no-feedback`:l.runAfterTyping(()=>o.setNoFeedback());break;case`component`:l.runWithWarmup(()=>n.onEmbed?.(r));break}l.runAfterTyping(()=>n.onMessage?.(r))},onError:e=>{console.error(` sse-error:`,e),!(`data`in e&&!e.data&&`responseCode`in e&&e.responseCode===0)&&o.pushError(`sse-error`)}});c.setValue(u)})();let u=new hv({question:t,id:i,content:r,readableStore:o.getReadableStore(),readyForFeedback:a,abort:s,liipgptClientPrimitive:this});return this.internalData.chatResponseMap.set(u.id,u),u}async thumbs(e,t,n){if((await this.internalData.metadata).mode!==`ready`)throw Error(`Can not post feedback unless we are in ready mode`);let r={feedback:n,rID:e,query:t};await this.internalData.restClient.postData(`/quickfeedback`,r)}thumbsUp(e,t){return this.thumbs(e,t,`positive`)}thumbsDown(e,t){return this.thumbs(e,t,`negative`)}async feedback(e,t,n){let r=await this.internalData.metadata;if(r.mode!==`ready`)throw Error(`Can not post feedback unless we are in ready mode`);if(n.message){let i={body:n.message,email:n.email,rID:e,uID:r.userId,query:t};await this.internalData.restClient.postData(`/feedback`,i)}n.classification&&await this.internalData.restClient.postData(`/classification`,{impact:n.classification.impact,quality:n.classification.quality,rID:e})}async submitAnswerForm(e){let t=await this.internalData.metadata;if(t.mode!==`ready`)throw Error(`Can not submit the answer form unless we are in ready mode`);let n={receiverEmail:e.receiverEmail,fields:e.fields,query:e.question,answer:e.answer,rID:e.requestId,uID:t.userId,lang:e.lang};await this.internalData.restClient.postData(`/customform`,n)}async userAction(e,t={}){let n=await this.internalData.metadata;if(n.mode!==`ready`)throw Error(`Can not post user action unless we are in ready mode`);let r={uID:n.userId,cID:t.conversationId,lang:t.lang,userAction:e};await this.internalData.restClient.postData(`/assistant/userAction`,r)}async search(e,t={}){let n=await this.internalData.metadata,r=n.mode===`ready`?n.userId:void 0,{links:i}=await this.internalData.restClient.fetchData(`/assistant/search`,Pv,{modelId:t.model,lang:t.language,query:e,mapResults:`true`,uID:r});return new Uv(i.map(Fv))}async getChatConfig(){return this.internalData.restClient.fetchData(`/chatconfig`,pv)}async getChatHistory(e,t){try{let n=await this.internalData.restClient.postData(`/chathistory`,{cID:e,uID:t}),r=U_.safeParse(await n.json());return r.success?r.data:[]}catch(e){return console.error(`Failed to load chat history:`,e),[]}}async getPredefinedQuestions(e){return(await this.internalData.restClient.fetchData(`/topics/questions`,iv,e)).predefinedQuestions}async transcribeAudio(e,t={}){let n=await this.internalData.metadata,r=t.lang||`de-CH`;if(n.mode===`maintenance`)throw Error(`Can not transcribe audio in maintenance mode`);try{let t=(e=>e.includes(`mp4`)?`mp4`:e.includes(`webm`)?`webm`:(e.includes(`wav`),`wav`))(e.type),n=new FormData;return n.append(`file`,e,`audio.${t}`),n.append(`lang`,r),n.append(`type`,e.type),{transcript:await(await this.internalData.restClient.postFormData(`/speech?key=${this.internalData.restClient.speechRecognitionApiKey||``}&lang=${r}`,n)).text()||``,error:void 0}}catch(e){return console.error(`Error transcribing audio:`,e),{transcript:``,error:e instanceof Error?e.message:`Unknown error`}}}};mv();var Gv=class{clientPrimitive;constructor(e){this.clientPrimitive=new Wv(e)}getMetadata(){return this.clientPrimitive.getMetadata()}createConversation(){return new gv(this.clientPrimitive)}search(e,t={}){return this.clientPrimitive.search(e,t)}getChatConfig(){return this.clientPrimitive.getChatConfig()}getPredefinedQuestions(e){return this.clientPrimitive.getPredefinedQuestions(e)}};W_(),mv();var Kv,qv,Jv,Yv=s((()=>{y_(),Kv=(e,t)=>t.includes(e),qv=(e,t)=>{if(Kv(e,t))return e;let n=Jv();return Kv(n,t)?n:`en`},Jv=()=>navigator.language.split(`-`)[0]}));Yv();var Xv={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`}},Zv=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}`;function Qv(e,t){et(t,!0);let n=H(t,`css`,7),r=ja(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`css`]),i=e=>{Rn(()=>{n()&&(e.innerHTML=n())})};var a={get css(){return n()},set css(e){n(e),P()}},o=$r(),s=Sn(o),c=e=>{var t=$r();Wi(Sn(t),()=>`style`,!1,(e,t)=>{Gi(e,e=>i?.(e)),xa(e,()=>({...r}))}),V(e,t)};return Ci(s,e=>{n()&&e(c)}),V(e,o),tt(a)}za(Qv,{css:{}},[],[],{mode:`open`});var $v=`liipgpt:search-summary:opt-in:`;function ey(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function ty(e){return`${$v}${ey(e??``)}`}function ny(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function ry(e){if(!ny())return!1;try{return window.localStorage.getItem(ty(e))===`1`}catch{return!1}}function iy(e){if(ny())try{window.localStorage.setItem(ty(e),`1`)}catch{}}function ay(e){if(ny())try{window.localStorage.removeItem(ty(e))}catch{}}var oy=new WeakMap;function sy(e,t,n){if(!t)return null;let r=oy.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),oy.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function cy(e,t){if(!t)return;let n=oy.get(t);n&&(t.removeEventListener(`click`,n),oy.delete(t)),e.contains(t)&&e.removeChild(t)}function ly(e){let t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function uy(e){let t=e.match(/^(\d+(?:\.\d+)?)px$/);return t?Number.parseFloat(t[1]):null}function dy(e,t){let n=e.style.height;e.style.height=t;let r=e.offsetHeight;return e.style.height=n,r}var fy=uy(ly(`280`));function py(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var my=`(prefers-reduced-motion: reduce)`;function hy(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(my);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var gy,_y,vy=s((()=>{gy=()=>{let e=localStorage.getItem(`liipgpt-color-scheme`);return e===`light`||e===`dark`?e:`system`},_y=e=>{let t=gy();return t===`system`&&(t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),e.includes(t)?t:e[0]??`light`}})),yy=s((()=>{})),by=c(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),xy,Sy,Cy,wy,Ty=s((()=>{xy=d(by(),1),Sy=e=>typeof e!=`object`||!e,Cy=e=>{if(Sy(e))return e;if(Array.isArray(e))return e.map(Cy);let t=Object.entries(e).filter(([e,t])=>t!==void 0).map(([e,t])=>[e,Cy(t)]);return Object.fromEntries(t)},wy=(e,t)=>(0,xy.default)(e,Cy(t))})),Ey,Dy,Oy,ky=s((()=>{Ty(),Ey={tokens:{font:{family:`-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif`},colors:{brand:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`},highlight:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`},grey:{0:`#ffffff`,50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`,1e3:`#000000`}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:`400`,fontWeightBold:`700`,fontWeightTitle:`700`,lineHeightDefault:`1.5`,lineHeightSnug:`1.375`,lineHeightTight:`1.25`,borderRadius:{minRem:.5,maxRem:.75},lineColor:`color-mix(in srgb, var(--color-brand-950) 20%, transparent)`,boxShadow:`0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`},components:{body:{background:`var(--color-grey-0)`,color:`var(--color-grey-900)`,focus:{color:`var(--color-highlight-500)`},custom:{selectionColor:`var(--color-grey-0)`,selectionBackground:`var(--color-brand-700)`,focusWidth:`var(--spacer-3)`,focusOffset:`var(--spacer-2)`,focusStyle:`solid`}},container:{custom:{maxWidth:`1024px`}},avatar:{color:`var(--color-brand-400)`,background:`var(--color-grey-100)`},anchor:{color:`var(--color-brand-700)`,hover:{color:`var(--color-brand-950)`}},btnPrimary:{color:`var(--color-grey-0)`,background:`var(--color-brand-700)`,borderRadius:`var(--base-border-radius)`,hover:{background:`var(--color-brand-900)`}},btnSecondary:{color:`var(--color-brand-700)`,background:`var(--color-brand-100)`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--color-grey-1000)`,background:`var(--color-brand-200)`}},btnTertiary:{color:`var(--anchor-color)`,background:`transparent`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--anchor-hover-color)`}},card:{color:`var(--color-grey-900)`,background:`var(--color-grey-100)`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,hover:{color:`var(--color-grey-1000)`,background:`var(--color-brand-100)`},custom:{iconColor:`var(--anchor-color)`,iconHoverColor:`var(--anchor-hover-color)`}},input:{background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,custom:{padding:`var(--spacer-r-16) var(--spacer-r-20)`,placeholderColor:`var(--color-grey-500)`,placeholderOpacity:`1`}},label:{color:`var(--color-grey-900)`,custom:{fontWeight:`var(--base-font-weight-bold)`}},hr:{color:`var(--base-line-color)`},checkbox:{color:`transparent`,background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,borderRadius:`0.2em`,custom:{checkedColor:`var(--btn-primary-color)`,checkedBorderColor:`var(--color-brand-700)`,checkedBackground:`var(--color-brand-700)`}},radio:{color:`transparent`,background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,custom:{checkedColor:`var(--btn-primary-color)`,checkedBorderColor:`var(--color-brand-700)`,checkedBackground:`var(--color-brand-700)`}},contextBox:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--base-box-shadow)`,custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:`var(--color-grey-1000)`,titleFontWeight:`var(--base-font-weight-bold)`,separatorColor:`var(--base-line-color)`,errorColor:`var(--message-error-color)`}},contextBoxMenuItem:{background:`transparent`,color:`var(--body-color)`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--btn-secondary-hover-color)`,background:`var(--btn-secondary-hover-background)`},custom:{activeColor:`var(--btn-secondary-hover-color)`,activeBackground:`var(--btn-secondary-hover-background)`}},chatFooter:{color:`var(--color-grey-400)`,background:`var(--body-background)`,borderRadius:`var(--base-border-radius)`,boxShadow:`0px -10px 20px 5px color-mix(in srgb, var(--body-background) 100%, transparent)`},chatInput:{color:`var(--color-grey-700)`,background:`var(--card-background)`,borderRadius:`var(--base-border-radius)`,borderColor:`transparent`,borderWidth:`3px`,hover:{background:`var(--card-hover-background)`},focus:{borderColor:`var(--body-focus-color)`}},chatInputSubmit:{color:`var(--btn-primary-color)`,background:`var(--btn-primary-background)`,borderRadius:`calc(var(--base-border-radius) / 1.25)`,hover:{color:`var(--btn-primary-hover-color)`,background:`var(--btn-primary-hover-background)`},custom:{strokeWidth:`2`,deactivatedBackground:`var(--color-grey-500)`,deactivatedOpacity:`0.25`,deactivatedScale:`0.8`,deactivatedBorderColor:`var(--color-grey-500)`}},chatInputNotification:{background:`#DD135A`,color:`var(--color-grey-0)`,borderColor:`#DD135A`,borderWidth:`1px`,borderRadius:`var(--chat-input-border-radius)`},selectedTopic:{color:`var(--body-color)`,background:`var(--color-brand-100)`,borderColor:`var(--body-background)`,borderWidth:`2px`,borderRadius:`var(--base-border-radius)`,custom:{padding:`var(--spacer-10) var(--spacer-20)`,separatorWidth:`var(--spacer-2)`,labelGap:`var(--spacer-12)`,btnColor:`var(--btn-tertiary-color)`,btnHoverColor:`var(--btn-tertiary-hover-color)`}},dialog:{background:`var(--card-background)`,color:`var(--body-color)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--base-box-shadow)`,custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:`rgba(0, 0, 0, 0.25)`,headerBorderBottomColor:`var(--base-line-color)`}},aside:{background:`var(--card-background)`,custom:{width:`400px`,containerWidthForMobileLayout:1024,backgroundOverlay:`rgba(0, 0, 0, 0.4)`,headerColor:`var(--card-color)`,headerBorderColor:`var(--base-line-color)`,headerBorderWidth:`1px`}},message:{color:`var(--body-color)`,custom:{errorColor:`#C91658`,transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:`var(--base-line-color)`,borderWidth:`1px`,custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageJsonLdMap:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`,custom:{markerColor:`#6658c8`,tileUrl:`https://tile.openstreetmap.org/{z}/{x}/{y}.png`}},messageJsonLdEvent:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`},messageJsonLdCta:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`},messageUser:{color:`var(--body-color)`,background:`var(--card-background)`,boxShadow:`var(--card-box-shadow)`,borderRadius:`var(--card-border-radius)`},openButton:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-background)`,borderWidth:`0`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--card-hover-color)`,background:`var(--card-hover-background)`},custom:{hideTitleWhenCollapsed:0,autoExpandScrollThreshold:0,autoCollapseDelay:0,autoExpandOnce:0}},referencesToggle:{color:`var(--color-brand-700)`,hover:{color:`var(--anchor-hover-color)`}},referenceNumberTrigger:{color:`var(--btn-secondary-color)`,background:`var(--btn-secondary-background)`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--btn-secondary-hover-color)`,background:`var(--btn-secondary-hover-background)`},custom:{padding:`0.25em`}},referenceDomain:{color:`var(--color-brand-700)`,hover:{color:`var(--color-brand-800)`},custom:{padding:`0px`}},referenceNumberContent:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,hover:{color:`var(--card-hover-color)`,background:`var(--card-hover-background)`,borderColor:`var(--card-hover-border-color)`,borderWidth:`var(--card-hover-border-width)`},boxShadow:`var(--base-box-shadow)`,custom:{width:`95cqi`,maxWidth:`450px`,transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,hover:{color:`var(--card-hover-color)`,background:`var(--body-background)`,borderColor:`var(--card-hover-border-color)`,borderWidth:`var(--card-hover-border-width)`}},referenceDescription:{color:`var(--reference-color)`,hover:{color:`var(--reference-hover-color)`}},referenceNumber:{color:`var(--reference-number-trigger-color)`,background:`var(--body-background)`,borderColor:`var(--reference-number-trigger-border-color)`,borderWidth:`var(--reference-number-trigger-border-width)`,borderRadius:`var(--reference-number-trigger-border-radius)`,hover:{color:`var(--reference-number-trigger-color)`,background:`var(--reference-number-trigger-background)`,borderColor:`var(--reference-number-trigger-border-color)`,borderWidth:`var(--reference-number-trigger-border-width)`},custom:{padding:`var(--reference-number-trigger-padding)`}},toast:{background:`var(--card-background)`,color:`var(--body-color)`,boxShadow:`var(--base-box-shadow)`,borderRadius:`var(--card-border-radius)`,custom:{iconSuccessColor:`#22c55e`,iconErrorColor:`#ef4444`,iconWarningColor:`#f97316`,iconInfoColor:`#3b82f6`}},tooltip:{background:`var(--color-grey-200)`,color:`var(--body-color)`,borderRadius:`calc(var(--base-border-radius) / 2)`},flyout:{custom:{backdropColor:`var(--color-brand-800)`,backdropOpacity:`0.4`,backdropDelayIn:`0`,backdropDurationIn:`200`,backdropDelayOut:`0`,backdropDurationOut:`150`,backdropBaseScaleIn:`1`,backdropBaseScaleOut:`1`,backdropTransformOrigin:`center`,backdropScaleDirection:`scale`}},searchSummary:{color:`var(--card-color)`,background:`var(--color-grey-50)`,borderColor:`var(--color-grey-100)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,custom:{padding:`clamp(0.75rem, 0.6364rem + 0.5682cqw, 1rem)`,linkColor:`var(--anchor-color)`,referenceListColor:`var(--anchor-color)`,referenceListFontSize:`1em`,disclaimerLinkColor:`var(--anchor-color)`,errorColor:`var(--message-error-color)`,footerBackground:`var(--search-summary-footer-background)`}}},svgs:{predefinedQuestion:`
101
+ `,{error:u,url:i,opts:a,data:s}),s}async postData(e,t){let n=await fetch(`${this.options.apiUrl}${e}`,{method:`POST`,headers:this.getDefaultHeaders(),body:JSON.stringify(t)});if(!n.ok){let e=await n.text();throw Error(`${n.status} - ${e}`)}return n}async postFormData(e,t){let n=await fetch(`${this.options.apiUrl}${e}`,{method:`POST`,body:t});if(!n.ok){let e=await n.text();throw Error(`${n.status} - ${e}`)}return n}};j_(),Qp();var Pv=X({links:Y(X({url:q().url().optional(),title:q().optional(),considered:J().optional(),orgMetadata:X({authors:Y(q()).optional()}).optional(),type:q().optional(),date:q().datetime().optional(),similarity:Mf().optional(),content:q().optional(),fromFullTextSearch:J().optional(),rerank:X({index:Mf().int().optional(),adjustment:Mf().optional(),score:Mf().optional(),similarityOld:Mf().optional()}).optional()}).or(A_))}),Fv=e=>{if(`metadata`in e)return e;console.warn(`Please upgrade your backend you are currently using an old api feature.`);let t=e.orgMetadata??{};e?.fromFullTextSearch&&(t.fromFullTextSearch=e?.fromFullTextSearch),e?.rerank&&(t.rerank=e?.rerank);let n=[],r=e.title??``;if(e.title&&e.title.includes(` > `)){let t=e.title.split(` > `);r=t.pop()??``,n=t}return{url:e.url??``,title:r,score:e.similarity||0,breadcrumbs:n,metadata:t,description:e.content,date:e.date}},Iv=7,Lv=8,Rv=160,zv=e=>{let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===`<`){let r=e.indexOf(`>`,n);if(r!==-1){t.push({type:`tag`,value:e.slice(n,r+1)}),n=r+1;continue}}if(/\s/.test(r)){let r=n;for(;r<e.length&&/\s/.test(e[r]);)r++;t.push({type:`space`,value:e.slice(n,r)}),n=r;continue}let i=n;for(;i<e.length&&!/\s/.test(e[i])&&e[i]!==`<`;)i++;t.push({type:`word`,value:e.slice(n,i)}),n=i}return t},Bv=e=>{let t=zv(e),n=[],r=``,i=!1;for(let e of t)e.type===`space`&&i?(n.push(r),r=e.value,i=!1):(r+=e.value,e.type===`word`&&(i=!0));return r&&n.push(r),n},Vv=e=>Math.max(Lv,Math.min(Rv,e.length*Iv)),Hv=class{queue=[];timeoutId=null;isProcessing=!1;constructor(e){this.onText=e}ingestText(e){let t=Bv(e);if(t.length>=5){for(let e of t)this.queue.push({kind:`text`,chunk:e,delayMs:Vv(e)});this.kickoff();return}this.runAfterTyping(()=>this.onText(e))}runAfterTyping(e){if(this.queue.length===0&&!this.isProcessing){e();return}this.queue.push({kind:`fn`,fn:e}),this.kickoff()}runWithWarmup(e){this.queue.push({kind:`fn`,fn:e}),this.kickoff()}clear(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.queue=[],this.isProcessing=!1}kickoff(){this.isProcessing||this.timeoutId!==null||(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.processNext()},750))}processNext(){let e=this.queue.shift();if(!e){this.isProcessing=!1;return}this.isProcessing=!0,e.kind===`text`?(this.onText(e.chunk),this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.processNext()},e.delayMs)):(e.fn(),this.processNext())}},Uv=class{constructor(e){this.results=e}};W_(),mv();var Wv=class{internalData;renderers=new Map;markedExtensions=[];_newTabSrText;constructor(e){let t=new Nv({apiUrl:e.apiUrl,apiKey:e.apiKey,speechRecognitionApiKey:e.speechRecognitionApiKey,strict:e.strict??!1,EventSource:e.EventSource??EventSource});this.internalData={restClient:t,metadata:kv(t,e.startParameters),searchResponseMap:new Map,chatResponseMap:new Map,conversationMap:new Map}}setMarkedExtensions(...e){this.markedExtensions=e}setNewTabSrText(e){this._newTabSrText=e}getMetadata(){return this.internalData.metadata}createConversationId(){let e=Cv();return this.renderers.set(e,new t_({extensions:this.markedExtensions,newTabSrText:this._newTabSrText})),e}chat(e,t,n={}){let r=new i_,i=Cv(),a=new r_,o=new c_({id:i,onError:e=>{n.onError?.(e)},onFinish:e=>{r.setValue(e)},markdownRenderer:this.renderers.get(e)??new t_({extensions:this.markedExtensions,newTabSrText:this._newTabSrText}),userQuestion:t}),s=async()=>{await a,(await c).close()},c=new i_,l=new Hv(e=>o.updateText(e));(async()=>{let s=await this.internalData.metadata;if(s.mode===`maintenance`)throw Error(`Can not chat in maintenance mode`);let u=await this.internalData.restClient.subscribeSse(`/assistant/sse`,{query:t,uID:s.userId,cID:e,rID:i,lang:n.lang,feature:n.features?.join(`,`),referrer:n.referrer,source:n.source,...n.selectorValues??{},...n.mode?{mode:n.mode}:{},...n.cache?{cache:!0}:{},...n.predefinedQuestionId?{predefinedQuestionId:n.predefinedQuestionId}:{},...n.switchQuestionId?{switchQuestionId:n.switchQuestionId}:{},chat:`true`,version:`2`},{onClose:()=>{l.clear(),o.finishMessage(),a.resolve(),r.cleanup()},onMessage:t=>{let r=t;switch(r.type){case`error`:l.runAfterTyping(()=>o.pushError(r.error));break;case`id`:r.for===`request`&&i!==r.id&&console.warn(`Unexpected request id "${r.id}" expected "${i}"`),r.for===`conversation`&&e!==r.id&&console.warn(`Unexpected conversation id "${r.id}" expected "${e}"`);break;case`state`:r.state===`history-entry-initialized`&&a.resolve();break;case`text`:l.ingestText(r.text);break;case`done`:case`answer-done`:l.runAfterTyping(()=>{o.finishMessage(),a.resolve(),c.then(e=>e.close())});break;case`unexpected-call`:l.runAfterTyping(()=>{console.error(`unexpected-call:`,r),o.pushError(`unexpected-call`)});break;case`jsonld-component`:case`mapped-reference`:l.runAfterTyping(()=>o.addMappedReference(r.reference));break;case`reference`:l.runAfterTyping(()=>o.addOldReference(r.reference));break;case`retrieval-question`:l.runAfterTyping(()=>o.updateRetrievalQuestion(r.question));break;case`no-feedback`:l.runAfterTyping(()=>o.setNoFeedback());break;case`component`:l.runWithWarmup(()=>n.onEmbed?.(r));break}l.runAfterTyping(()=>n.onMessage?.(r))},onError:e=>{console.error(` sse-error:`,e),!(`data`in e&&!e.data&&`responseCode`in e&&e.responseCode===0)&&o.pushError(`sse-error`)}});c.setValue(u)})();let u=new hv({question:t,id:i,content:r,readableStore:o.getReadableStore(),readyForFeedback:a,abort:s,liipgptClientPrimitive:this});return this.internalData.chatResponseMap.set(u.id,u),u}async thumbs(e,t,n){if((await this.internalData.metadata).mode!==`ready`)throw Error(`Can not post feedback unless we are in ready mode`);let r={feedback:n,rID:e,query:t};await this.internalData.restClient.postData(`/quickfeedback`,r)}thumbsUp(e,t){return this.thumbs(e,t,`positive`)}thumbsDown(e,t){return this.thumbs(e,t,`negative`)}async feedback(e,t,n){let r=await this.internalData.metadata;if(r.mode!==`ready`)throw Error(`Can not post feedback unless we are in ready mode`);if(n.message){let i={body:n.message,email:n.email,rID:e,uID:r.userId,query:t};await this.internalData.restClient.postData(`/feedback`,i)}n.classification&&await this.internalData.restClient.postData(`/classification`,{impact:n.classification.impact,quality:n.classification.quality,rID:e})}async submitAnswerForm(e){let t=await this.internalData.metadata;if(t.mode!==`ready`)throw Error(`Can not submit the answer form unless we are in ready mode`);let n={receiverEmail:e.receiverEmail,fields:e.fields,query:e.question,answer:e.answer,rID:e.requestId,uID:t.userId,lang:e.lang};await this.internalData.restClient.postData(`/customform`,n)}async userAction(e,t={}){let n=await this.internalData.metadata;if(n.mode!==`ready`)throw Error(`Can not post user action unless we are in ready mode`);let r={uID:n.userId,cID:t.conversationId,lang:t.lang,userAction:e};await this.internalData.restClient.postData(`/assistant/userAction`,r)}async search(e,t={}){let n=await this.internalData.metadata,r=n.mode===`ready`?n.userId:void 0,{links:i}=await this.internalData.restClient.fetchData(`/assistant/search`,Pv,{modelId:t.model,lang:t.language,query:e,mapResults:`true`,uID:r});return new Uv(i.map(Fv))}async getChatConfig(){return this.internalData.restClient.fetchData(`/chatconfig`,pv)}async getChatHistory(e,t){try{let n=await this.internalData.restClient.postData(`/chathistory`,{cID:e,uID:t}),r=U_.safeParse(await n.json());return r.success?r.data:[]}catch(e){return console.error(`Failed to load chat history:`,e),[]}}async getPredefinedQuestions(e){return(await this.internalData.restClient.fetchData(`/topics/questions`,iv,e)).predefinedQuestions}async transcribeAudio(e,t={}){let n=await this.internalData.metadata,r=t.lang||`de-CH`;if(n.mode===`maintenance`)throw Error(`Can not transcribe audio in maintenance mode`);try{let t=(e=>e.includes(`mp4`)?`mp4`:e.includes(`webm`)?`webm`:(e.includes(`wav`),`wav`))(e.type),n=new FormData;return n.append(`file`,e,`audio.${t}`),n.append(`lang`,r),n.append(`type`,e.type),{transcript:await(await this.internalData.restClient.postFormData(`/speech?key=${this.internalData.restClient.speechRecognitionApiKey||``}&lang=${r}`,n)).text()||``,error:void 0}}catch(e){return console.error(`Error transcribing audio:`,e),{transcript:``,error:e instanceof Error?e.message:`Unknown error`}}}};mv();var Gv=class{clientPrimitive;constructor(e){this.clientPrimitive=new Wv(e)}getMetadata(){return this.clientPrimitive.getMetadata()}createConversation(){return new gv(this.clientPrimitive)}search(e,t={}){return this.clientPrimitive.search(e,t)}getChatConfig(){return this.clientPrimitive.getChatConfig()}getPredefinedQuestions(e){return this.clientPrimitive.getPredefinedQuestions(e)}};W_(),mv();var Kv,qv,Jv,Yv=s((()=>{y_(),Kv=(e,t)=>t.includes(e),qv=(e,t)=>{if(Kv(e,t))return e;let n=Jv();return Kv(n,t)?n:`en`},Jv=()=>navigator.language.split(`-`)[0]}));Yv();var Xv={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`}},Zv=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}`;function Qv(e,t){et(t,!0);let n=H(t,`css`,7),r=ja(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`css`]),i=e=>{Rn(()=>{n()&&(e.innerHTML=n())})};var a={get css(){return n()},set css(e){n(e),P()}},o=$r(),s=Sn(o),c=e=>{var t=$r();Wi(Sn(t),()=>`style`,!1,(e,t)=>{Gi(e,e=>i?.(e)),xa(e,()=>({...r}))}),V(e,t)};return Ci(s,e=>{n()&&e(c)}),V(e,o),tt(a)}za(Qv,{css:{}},[],[],{mode:`open`});var $v=`liipgpt:search-summary:opt-in:`;function ey(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function ty(e){return`${$v}${ey(e??``)}`}function ny(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function ry(e){if(!ny())return!1;try{return window.localStorage.getItem(ty(e))===`1`}catch{return!1}}function iy(e){if(ny())try{window.localStorage.setItem(ty(e),`1`)}catch{}}function ay(e){if(ny())try{window.localStorage.removeItem(ty(e))}catch{}}var oy=new WeakMap;function sy(e,t,n){if(!t)return null;let r=oy.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),oy.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function cy(e,t){if(!t)return;let n=oy.get(t);n&&(t.removeEventListener(`click`,n),oy.delete(t)),e.contains(t)&&e.removeChild(t)}function ly(e){let t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t}function uy(e){let t=e.match(/^(\d+(?:\.\d+)?)px$/);return t?Number.parseFloat(t[1]):null}function dy(e,t){let n=e.style.height;e.style.height=t;let r=e.offsetHeight;return e.style.height=n,r}var fy=uy(ly(`280`));function py(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var my=`(prefers-reduced-motion: reduce)`;function hy(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(my);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var gy,_y,vy=s((()=>{gy=()=>{let e=localStorage.getItem(`liipgpt-color-scheme`);return e===`light`||e===`dark`?e:`system`},_y=e=>{let t=gy();return t===`system`&&(t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),e.includes(t)?t:e[0]??`light`}})),yy=s((()=>{})),by=c(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),xy,Sy,Cy,wy,Ty=s((()=>{xy=d(by(),1),Sy=e=>typeof e!=`object`||!e,Cy=e=>{if(Sy(e))return e;if(Array.isArray(e))return e.map(Cy);let t=Object.entries(e).filter(([e,t])=>t!==void 0).map(([e,t])=>[e,Cy(t)]);return Object.fromEntries(t)},wy=(e,t)=>(0,xy.default)(e,Cy(t))})),Ey,Dy,Oy,ky=s((()=>{Ty(),Ey={tokens:{font:{family:`-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif`},colors:{brand:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`},highlight:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`},grey:{0:`#ffffff`,50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#2d3748`,900:`#1a202c`,950:`#171923`,1e3:`#000000`}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:`400`,fontWeightBold:`700`,fontWeightTitle:`700`,lineHeightDefault:`1.5`,lineHeightSnug:`1.375`,lineHeightTight:`1.25`,borderRadius:{minRem:.5,maxRem:.75},lineColor:`color-mix(in srgb, var(--color-brand-950) 20%, transparent)`,boxShadow:`0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`},components:{body:{background:`var(--color-grey-0)`,color:`var(--color-grey-900)`,focus:{color:`var(--color-highlight-500)`},custom:{selectionColor:`var(--color-grey-0)`,selectionBackground:`var(--color-brand-700)`,focusWidth:`var(--spacer-3)`,focusOffset:`var(--spacer-2)`,focusStyle:`solid`}},container:{custom:{maxWidth:`1024px`}},avatar:{color:`var(--color-brand-400)`,background:`var(--color-grey-100)`},anchor:{color:`var(--color-brand-700)`,hover:{color:`var(--color-brand-950)`}},btnPrimary:{color:`var(--color-grey-0)`,background:`var(--color-brand-700)`,borderRadius:`var(--base-border-radius)`,hover:{background:`var(--color-brand-900)`}},btnSecondary:{color:`var(--color-brand-700)`,background:`var(--color-brand-100)`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--color-grey-1000)`,background:`var(--color-brand-200)`}},btnTertiary:{color:`var(--anchor-color)`,background:`transparent`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--anchor-hover-color)`}},card:{color:`var(--color-grey-900)`,background:`var(--color-grey-100)`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,hover:{color:`var(--color-grey-1000)`,background:`var(--color-brand-100)`},custom:{iconColor:`var(--anchor-color)`,iconHoverColor:`var(--anchor-hover-color)`}},input:{background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,custom:{padding:`var(--spacer-r-16) var(--spacer-r-20)`,placeholderColor:`var(--color-grey-500)`,placeholderOpacity:`1`}},label:{color:`var(--color-grey-900)`,custom:{fontWeight:`var(--base-font-weight-bold)`}},hr:{color:`var(--base-line-color)`},checkbox:{color:`transparent`,background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,borderRadius:`0.2em`,custom:{checkedColor:`var(--btn-primary-color)`,checkedBorderColor:`var(--color-brand-700)`,checkedBackground:`var(--color-brand-700)`}},radio:{color:`transparent`,background:`var(--color-grey-0)`,borderColor:`var(--color-grey-300)`,borderWidth:`1px`,custom:{checkedColor:`var(--btn-primary-color)`,checkedBorderColor:`var(--color-brand-700)`,checkedBackground:`var(--color-brand-700)`}},contextBox:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--base-box-shadow)`,custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:`var(--color-grey-1000)`,titleFontWeight:`var(--base-font-weight-bold)`,separatorColor:`var(--base-line-color)`,errorColor:`var(--message-error-color)`}},contextBoxMenuItem:{background:`transparent`,color:`var(--body-color)`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--btn-secondary-hover-color)`,background:`var(--btn-secondary-hover-background)`},custom:{activeColor:`var(--btn-secondary-hover-color)`,activeBackground:`var(--btn-secondary-hover-background)`}},chatFooter:{color:`var(--color-grey-400)`,background:`var(--body-background)`,borderRadius:`var(--base-border-radius)`,boxShadow:`0px -10px 20px 5px color-mix(in srgb, var(--body-background) 100%, transparent)`},chatInput:{color:`var(--color-grey-700)`,background:`var(--card-background)`,borderRadius:`var(--base-border-radius)`,borderColor:`transparent`,borderWidth:`3px`,hover:{background:`var(--card-hover-background)`},focus:{borderColor:`var(--body-focus-color)`}},chatInputSubmit:{color:`var(--btn-primary-color)`,background:`var(--btn-primary-background)`,borderRadius:`calc(var(--base-border-radius) / 1.25)`,hover:{color:`var(--btn-primary-hover-color)`,background:`var(--btn-primary-hover-background)`},custom:{strokeWidth:`2`,deactivatedBackground:`var(--color-grey-500)`,deactivatedOpacity:`0.25`,deactivatedScale:`0.8`,deactivatedBorderColor:`var(--color-grey-500)`}},chatInputNotification:{background:`#DD135A`,color:`var(--color-grey-0)`,borderColor:`#DD135A`,borderWidth:`1px`,borderRadius:`var(--chat-input-border-radius)`},selectedTopic:{color:`var(--body-color)`,background:`var(--color-brand-100)`,borderColor:`var(--body-background)`,borderWidth:`2px`,borderRadius:`var(--base-border-radius)`,custom:{padding:`var(--spacer-10) var(--spacer-20)`,separatorWidth:`var(--spacer-2)`,labelGap:`var(--spacer-12)`,btnColor:`var(--btn-tertiary-color)`,btnHoverColor:`var(--btn-tertiary-hover-color)`}},dialog:{background:`var(--card-background)`,color:`var(--body-color)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--base-box-shadow)`,custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:`rgba(0, 0, 0, 0.25)`,headerBorderBottomColor:`var(--base-line-color)`}},aside:{background:`var(--card-background)`,custom:{width:`400px`,containerWidthForMobileLayout:1024,backgroundOverlay:`rgba(0, 0, 0, 0.4)`,headerColor:`var(--card-color)`,headerBorderColor:`var(--base-line-color)`,headerBorderWidth:`1px`}},message:{color:`var(--body-color)`,custom:{errorColor:`#C91658`,transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:`var(--base-line-color)`,borderWidth:`1px`,custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageJsonLdMap:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`,custom:{markerColor:`#6658c8`,tileUrl:`https://tile.openstreetmap.org/{z}/{x}/{y}.png`}},messageJsonLdEvent:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`},messageJsonLdCta:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,boxShadow:`var(--card-box-shadow)`},messageUser:{color:`var(--body-color)`,background:`var(--card-background)`,boxShadow:`var(--card-box-shadow)`,borderRadius:`var(--card-border-radius)`},openButton:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-background)`,borderWidth:`0`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--card-hover-color)`,background:`var(--card-hover-background)`},custom:{hideTitleWhenCollapsed:0,autoExpandScrollThreshold:0,autoCollapseDelay:0,autoExpandOnce:0}},referencesToggle:{color:`var(--color-brand-700)`,hover:{color:`var(--anchor-hover-color)`}},referenceNumberTrigger:{color:`var(--btn-secondary-color)`,background:`var(--btn-secondary-background)`,borderRadius:`calc(var(--base-border-radius) / 2)`,hover:{color:`var(--btn-secondary-hover-color)`,background:`var(--btn-secondary-hover-background)`},custom:{padding:`0.25em`}},referenceDomain:{color:`var(--color-brand-700)`,hover:{color:`var(--color-brand-800)`},custom:{padding:`0px`}},referenceNumberContent:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,hover:{color:`var(--card-hover-color)`,background:`var(--card-hover-background)`,borderColor:`var(--card-hover-border-color)`,borderWidth:`var(--card-hover-border-width)`},boxShadow:`var(--base-box-shadow)`,custom:{width:`95cqi`,maxWidth:`450px`,transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:`var(--card-color)`,background:`var(--card-background)`,borderColor:`var(--card-border-color)`,borderWidth:`var(--card-border-width)`,borderRadius:`var(--card-border-radius)`,hover:{color:`var(--card-hover-color)`,background:`var(--body-background)`,borderColor:`var(--card-hover-border-color)`,borderWidth:`var(--card-hover-border-width)`}},referenceDescription:{color:`var(--reference-color)`,hover:{color:`var(--reference-hover-color)`}},referenceNumber:{color:`var(--reference-number-trigger-color)`,background:`var(--body-background)`,borderColor:`var(--reference-number-trigger-border-color)`,borderWidth:`var(--reference-number-trigger-border-width)`,borderRadius:`var(--reference-number-trigger-border-radius)`,hover:{color:`var(--reference-number-trigger-color)`,background:`var(--reference-number-trigger-background)`,borderColor:`var(--reference-number-trigger-border-color)`,borderWidth:`var(--reference-number-trigger-border-width)`},custom:{padding:`var(--reference-number-trigger-padding)`}},toast:{background:`var(--card-background)`,color:`var(--body-color)`,boxShadow:`var(--base-box-shadow)`,borderRadius:`var(--card-border-radius)`,custom:{iconSuccessColor:`#22c55e`,iconErrorColor:`#ef4444`,iconWarningColor:`#f97316`,iconInfoColor:`#3b82f6`}},tooltip:{background:`var(--color-grey-200)`,color:`var(--body-color)`,borderRadius:`calc(var(--base-border-radius) / 2)`},flyout:{custom:{backdropColor:`var(--color-brand-800)`,backdropOpacity:`0.4`,backdropDelayIn:`0`,backdropDurationIn:`200`,backdropDelayOut:`0`,backdropDurationOut:`150`,backdropBaseScaleIn:`1`,backdropBaseScaleOut:`1`,backdropTransformOrigin:`center`,backdropScaleDirection:`scale`}},searchSummary:{color:`var(--card-color)`,background:`var(--color-grey-50)`,borderColor:`var(--color-grey-100)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,custom:{padding:`clamp(0.75rem, 0.6364rem + 0.5682cqw, 1rem)`,linkColor:`var(--anchor-color)`,referenceListColor:`var(--anchor-color)`,referenceListFontSize:`1em`,disclaimerLinkColor:`var(--anchor-color)`,errorColor:`var(--message-error-color)`,footerBackground:`var(--search-summary-footer-background)`}}},svgs:{predefinedQuestion:`
102
102
  <svg viewBox="0 0 24 24" >
103
103
  <path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
104
104
  <path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
@@ -423,4 +423,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
423
423
  <p>
424
424
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec mauris diam, vestibulum vitae cursus et, hendrerit sed dolor. Sed quis nisl quis ipsum tempus hendrerit. <a href="https://www.liipgpt.ch/" target="_blank">Plus d'informations <span class="sr-only">, (ouvre dans un nouvel onglet)</span></a>
425
425
  </p>
426
- `,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}}})),zy,By,Vy=s((()=>{zy=d(by(),1),Ry(),By=e=>(e??=Ly,{de:(0,zy.default)(Ly.de,e.de??{}),en:(0,zy.default)(Ly.en,e.en??{}),fr:(0,zy.default)(Ly.fr,e.fr??{}),it:(0,zy.default)(Ly.it,e.it??{})})})),Hy,Uy,Wy=s((()=>{yy(),Py(),Iy(),Vy(),Hy=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Uy=e=>{let t;t=e.theme?.fineGrained?Fy(e.theme?.fineGrained):Ny(e?.theme??{});let n=By(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Hy(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r}})),Gy=l({loadChatConfig:()=>Ky});async function Ky({apiUrl:e,lang:t,forceTheme:n}){let r=Uy(await qy(e));return{chatConfig:r,language:qv(t,r.supportedLanguages),colorScheme:_y(Object.keys(r.fullTheme))}}var qy,Jy=s((()=>{vy(),mv(),Wy(),qy=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return pv.parse(t)}}));Yv();var Yy=Xr(`<!> <!> <!>`,1),Xy=Xr(`<div class="search-summary__disclaimer-text"></div>`),Zy=Xr(`<div class="search-summary__opt-in-slot-mount"></div>`),Qy=Xr(`<button type="button"> </button>`),$y=Xr(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),eb=Xr(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),tb=Xr(`<div class="search-summary__error" role="alert"> </div>`),nb=Xr(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),rb=Xr(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),ib=Xr(`<div class="search-summary__follow-up-submit-icon"></div>`),ab=Qr(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),ob=Xr(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),sb=Xr(`<div class="search-summary__expand-slot-mount"></div>`),cb=Xr(`<button type="button"> </button>`),lb=Xr(`<div class="search-summary__opt-out-slot-mount"></div>`),ub=Xr(`<button type="button"> </button>`),db=Xr(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),fb=Xr(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),pb=Xr(`<!> <!> <div><!></div>`,1);function mb(e,t){et(t,!0);function n(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let r=H(t,`lang`,7,`de`),i=H(t,`apiUrl`,7),a=H(t,`apiKey`,7,``),o=H(t,`question`,7),s=H(t,`height`,7,`280`),c=H(t,`maxHeight`,7),l=H(t,`optIn`,7,!1),u=H(t,`optInLabel`,7),d=H(t,`expandLabel`,7),f=H(t,`collapseLabel`,7),p=H(t,`optOutLabel`,7),m=H(t,`useChatConfig`,7,!1),h=H(t,`forceTheme`,7),g=H(t,`disclaimerHtml`,7,``),_=H(t,`labelledBy`,7),v=H(t,`chatUrl`,7),y=H(t,`mode`,7,`search`),b=H(t,`source`,7,`search`),x=H(t,`activateAiButtonSlot`,7,null),S=H(t,`expandAnswerButtonSlot`,7,null),ee=H(t,`deactivateAiButtonSlot`,7,null),te=I(null),ne=I(null),re=I(!1),ie=[`de`,`en`,`fr`,`it`],ae=F(()=>B(ne)?.language??qv(r(),ie)),C=F(()=>({...Xv[B(ae)],...B(te)})),w=I(`loading`),oe=I(null),se=I(null),ce=I(null),le=I(null),ue=I(!1),T=I(!1),de=I(!1),fe=I(un(fy)),pe=F(()=>ly(s())),me=F(()=>uy(B(pe))),E=F(()=>B(me)===null),he=F(()=>B(me)??fy),ge=F(()=>c()===void 0?``:ly(c()));function _e(){if(!B(ge))return null;let e=uy(B(ge));return e===null?B(oe)?dy(B(oe),B(ge)):null:e}let ve=I(!1);Rn(()=>hy(e=>L(ve,e,!0)));function ye(e){return B(ve)?0:e}let be=new Wa(Pr(()=>B(he)),{duration:400,easing:Va}),xe=I(!1);Rn(()=>{if(!B(xe)){if(B(T)){be.set(B(fe),{duration:ye(400)});return}!B(E)&&B(me)!==null&&be.set(B(me),{duration:ye(400)})}});function Se(){return B(oe)?B(me)===null?dy(B(oe),B(pe)):B(me):B(he)}async function Ce(e){L(xe,!0),await be.set(e,{duration:ye(400)}),L(xe,!1)}function we(){if(!B(oe))return Se();if(B(oe).offsetHeight>0)return B(oe).offsetHeight;let e=B(oe).style.height;if(!e)return Se();let t=uy(e);return t===null?dy(B(oe),e):t}let Te=I(``),Ee=I(un([])),De=I(``),Oe=I(null),ke=I(!1),Ae=I(``),je=F(()=>v()&&n(v())?v():void 0),Me=F(()=>!!B(je)&&!!B(Oe)),Ne=F(()=>B(Me)&&B(ke)),Pe=F(()=>!B(T)&&B(ue)),Fe=F(()=>B(w)!==`opt-in`&&B(w)!==`loading`&&B(w)!==`error`&&(B(ue)||B(T))&&!(B(T)&&B(Me))),Ie=F(()=>l()&&B(w)!==`opt-in`),Le=F(()=>B(T)?f()||B(C).searchSummaryCollapse:d()||B(C).searchSummaryExpand),Re=F(()=>B(T)?B(C).ariaSearchSummaryCollapse:B(C).ariaSearchSummaryExpand),ze=I(``),Be=I(``),Ve=null,He=F(()=>B(T)?B(Be)||f()||B(C).searchSummaryCollapse:d()||B(ze)||B(C).searchSummaryExpand),D=F(()=>B(T)?B(Be)||f()||B(C).ariaSearchSummaryCollapse:d()||B(ze)||B(C).ariaSearchSummaryExpand),Ue=F(()=>B(ne)?Tm(B(ne).chatConfig.fullTheme[B(ne).colorScheme].tokens,{root:`.search-summary`}):``),O=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.customCSS?py(B(ne).chatConfig.fullTheme[B(ne).colorScheme].customCSS):``),We=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.fontCSS??``),Ge=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.tokens?.svgs?.submit??``),Ke=F(()=>B(ne)!==null),qe=F(()=>B(Ke)?` search-summary__btn`:``),Je=F(()=>B(Ke)?` search-summary__follow-up--themed`:``);function Ye(){if(!B(oe))return B(he);let e=B(oe).style.height;B(oe).style.height=`auto`;let t=B(se)?.style.flex??``;B(se)&&(B(se).style.flex=`none`);let n=B(oe).scrollHeight;return B(se)&&(B(se).style.flex=t),B(oe).style.height=e,n}function A(){L(ue,(B(se)?.scrollHeight??0)>(B(se)?.offsetHeight??0)+1)}function Xe(){let e=Ye(),t=_e();L(fe,t===null?e:Math.min(e,t),!0),L(de,t!==null&&e>t,!0)}async function Ze(){if(B(oe))if(!B(T))Xe(),be.set(we(),{duration:0}),L(T,!0),L(w,`expanded`),await jr(),A(),Xe(),await Ce(B(fe));else{be.set(we(),{duration:0});let e=Se();L(T,!1),L(w,B(Te)?`done`:`loading`,!0),await jr(),A(),await Ce(e)}}let Qe=I(!1);Bn(()=>{B(Qe)||i()&&(L(w,l()&&!ry(i())?`opt-in`:`loading`,!0),L(Qe,!0))}),Rn(()=>{if(!i()||!m()){L(ne,null),L(te,null),L(re,!0);return}let e=!1;return L(re,!1),Promise.resolve().then(()=>(Jy(),Gy)).then(({loadChatConfig:e})=>e({apiUrl:i(),lang:r(),forceTheme:h()})).then(t=>{e||(L(ne,t,!0),L(te,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(L(ne,null),L(te,null))}).finally(()=>{e||L(re,!0)}),()=>{e=!0}});let j=F(()=>B(Qe)&&B(re)),$e=I(!1);Rn(()=>{if(!B(j)||B($e))return;let e=requestAnimationFrame(()=>L($e,!0));return()=>cancelAnimationFrame(e)}),Rn(()=>{if(!B(oe))return;B(Te),B(Ee).length,B(pe),Xe(),A();let e=new ResizeObserver(()=>{Xe(),A()});return e.observe(B(oe)),B(se)&&e.observe(B(se)),()=>e.disconnect()});function nt(e){return e.classList.add(`search-summary__btn--leaving`),{duration:ye(200)}}function rt(e,t){if(B(ve)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function it(e=null){if(B(ve)){ct();return}e?.classList.add(`search-summary__btn--leaving`),B(se)?.classList.add(`search-summary__content--leaving`),B(ce)?.classList.add(`search-summary__footer--leaving`),B(ce)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=B(se)??e;t?t.addEventListener(`animationend`,ct,{once:!0}):ct()}function at(e){it(e.currentTarget)}function ot(){iy(i()),L(w,`loading`)}function st(){ut?.(),dt&&dt.abort().catch(()=>{}),ut=void 0,dt=void 0,L(Oe,null),L(ke,!1),L(Ae,``),lt=!1,L(Te,``),L(Ee,[],!0),L(De,``),L(T,!1),L(ue,!1)}function ct(){ay(i()),st(),L(w,`opt-in`)}let lt=!1,M,ut,dt;function ft(){if(lt)return;lt=!0,M=o();let e=new Gv({apiUrl:i(),apiKey:a()});try{let t=e.createConversation();L(Oe,t.id,!0),dt=t.chat(o(),{lang:B(ae),mode:y()||void 0,source:b()||void 0})}catch(e){L(De,e instanceof Error&&e.message?e.message:B(C).searchSummaryError,!0),L(w,`error`);return}ut=dt.subscribe(e=>{if(e.errors.length>0){L(De,e.errors.join(`, `)||B(C).searchSummaryError,!0),L(w,`error`);return}if(e.state===`loading`){L(w,`loading`);return}L(Te,e.message.html,!0),L(Ee,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?B(T)||L(w,`answering`):e.state===`done`&&(L(ke,!0),B(T)||L(w,`done`),queueMicrotask(A))})}Rn(()=>{!o()||!i()||B(w)!==`loading`||ft()});function pt(){if(st(),l()&&!ry(i())){L(w,`opt-in`);return}L(w,`loading`),ft()}Rn(()=>{let e=o();!e||!lt||e===M||Pr(()=>pt())}),xi(()=>{ut?.(),dt&&dt.abort().catch(()=>{})}),Rn(()=>{B(le)&&(B(le).innerHTML=B(Te),B(le).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(A))});function mt(e){e.preventDefault();let t=B(Ae).trim();if(!t||!B(je)||!B(Oe))return;let n=new URL(B(je),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${B(Oe)}`,window.location.assign(n.toString())}let ht=I(null),gt=I(null),_t=I(null);Rn(()=>{let e=B(ht),t=x();if(!(!e||!t))return sy(e,t,ot)?.({label:u()||void 0}),()=>cy(e,t)}),Rn(()=>{let e=B(gt),t=S();if(!(!e||!t||!B(Fe)))return Ve!==t&&(Ve=t,L(ze,t.textContent?.trim()??``,!0),L(Be,t.dataset.collapseLabel?.trim()??``,!0)),sy(e,t,Ze)?.({label:B(He),ariaLabel:B(D),ariaExpanded:B(T)}),()=>cy(e,t)}),Rn(()=>{!S()||!B(Fe)||(S().textContent=B(He),S().setAttribute(`aria-label`,B(D)),S().setAttribute(`aria-expanded`,String(B(T))))}),Rn(()=>{let e=B(_t),t=ee();if(!(!e||!t||!B(Ie)))return sy(e,t,()=>it(e))?.({label:p()||void 0,ariaLabel:B(C).ariaSearchSummaryOptOut}),()=>cy(e,t)});var vt={reload:pt,get lang(){return r()},set lang(e=`de`){r(e),P()},get apiUrl(){return i()},set apiUrl(e){i(e),P()},get apiKey(){return a()},set apiKey(e=``){a(e),P()},get question(){return o()},set question(e){o(e),P()},get height(){return s()},set height(e=`280`){s(e),P()},get maxHeight(){return c()},set maxHeight(e){c(e),P()},get optIn(){return l()},set optIn(e=!1){l(e),P()},get optInLabel(){return u()},set optInLabel(e){u(e),P()},get expandLabel(){return d()},set expandLabel(e){d(e),P()},get collapseLabel(){return f()},set collapseLabel(e){f(e),P()},get optOutLabel(){return p()},set optOutLabel(e){p(e),P()},get useChatConfig(){return m()},set useChatConfig(e=!1){m(e),P()},get forceTheme(){return h()},set forceTheme(e){h(e),P()},get disclaimerHtml(){return g()},set disclaimerHtml(e=``){g(e),P()},get labelledBy(){return _()},set labelledBy(e){_(e),P()},get chatUrl(){return v()},set chatUrl(e){v(e),P()},get mode(){return y()},set mode(e=`search`){y(e),P()},get source(){return b()},set source(e=`search`){b(e),P()},get activateAiButtonSlot(){return x()},set activateAiButtonSlot(e=null){x(e),P()},get expandAnswerButtonSlot(){return S()},set expandAnswerButtonSlot(e=null){S(e),P()},get deactivateAiButtonSlot(){return ee()},set deactivateAiButtonSlot(e=null){ee(e),P()}},N=pb(),yt=Sn(N);Qv(yt,{id:`search-summary-css`,get css(){return Zv}});var bt=Cn(yt,2),xt=e=>{var t=Yy(),n=Sn(t);Qv(n,{id:`search-summary-font-css`,get css(){return B(We)}});var r=Cn(n,2);Qv(r,{id:`search-summary-theme-css`,get css(){return B(Ue)}});var i=Cn(r,2),a=e=>{Qv(e,{id:`search-summary-custom-css`,get css(){return B(O)}})};Ci(i,e=>{B(O)&&e(a)}),V(e,t)};Ci(bt,e=>{B(Ke)&&B(Ue)&&e(xt)});var St=Cn(bt,2);let Ct,wt;var Tt=xn(St),Et=e=>{var t=$y(),n=xn(t),r=xn(n),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=Xy();Ni(t,()=>B(C).searchSummaryDisclaimer,!0),k(t),V(e,t)};Ci(n,e=>{B(C).searchSummaryDisclaimer&&e(r)}),V(e,t)},o=e=>{var t=$r();Ni(Sn(t),g),V(e,t)};Ci(i,e=>{m()?e(a):e(o,-1)}),k(r),k(n);var s=Cn(n,2),c=xn(s),l=e=>{var t=Zy();ka(t,e=>L(ht,e),()=>B(ht)),V(e,t)},d=e=>{var t=Qy(),n=xn(t,!0);k(t),Kn(()=>{ta(t,1,`search-summary__opt-in${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),fi(n,u()||B(C).searchSummaryOptInDefault)}),Hr(`click`,t,e=>rt(e,ot)),V(e,t)};Ci(c,e=>{x()?e(l):e(d,-1)}),k(s),k(t),V(e,t)},Dt=e=>{var t=fb(),n=Sn(t);let r;var i=xn(n),a=xn(i),o=e=>{var t=eb(),n=Cn(xn(t),2),r=xn(n,!0);k(n),k(t),Kn(()=>fi(r,B(C).searchSummaryLoading)),V(e,t)};Ci(a,e=>{B(w)===`loading`&&e(o)});var s=Cn(a,2);let c;ka(s,e=>L(le,e),()=>B(le)),k(i);var l=Cn(i,2),u=e=>{var t=tb(),n=xn(t,!0);k(t),Kn(()=>fi(n,B(De)||B(C).searchSummaryError)),V(e,t)};Ci(l,e=>{B(w)===`error`&&e(u)});var d=Cn(l,2),f=e=>{var t=rb(),n=Sn(t),r=xn(n,!0);k(n);var i=Cn(n,2);Di(i,21,()=>B(Ee),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=nb(),r=xn(n),i=xn(r,!0);k(r),k(n),Kn(()=>{_a(n,B(t).referenceIndex.used??void 0),ya(r,`href`,B(t).url),ya(r,`tabindex`,B(Pe)?-1:void 0),fi(i,B(t).display.listItem.title||B(t).display.card.title||B(t).url)}),V(e,n)}),k(i),Kn(()=>fi(r,B(C).referencesTitle)),V(e,t)};Ci(d,e=>{B(Ee).length>0&&e(f)});var m=Cn(d,2),h=e=>{var t=ob(),n=xn(t),r=xn(n,!0);k(n);var i=Cn(n,2),a=xn(i);ga(a);var o=Cn(a,2),s=xn(o),c=xn(s,!0);k(s);var l=Cn(s,2),u=e=>{var t=ib();Ni(t,()=>B(Ge),!0),k(t),V(e,t)},d=e=>{V(e,ab())};Ci(l,e=>{B(Ge)?e(u):e(d,-1)}),k(o),k(i),k(t),Kn(()=>{ta(t,1,`search-summary__follow-up${B(Je)??``}`),t.inert=B(Pe),fi(r,B(C).ariaSearchSummaryFollowUpInput),ya(a,`placeholder`,B(C).searchSummaryFollowUpPlaceholder),ya(a,`aria-label`,B(C).ariaSearchSummaryFollowUpInput),ya(o,`aria-label`,B(C).searchSummaryFollowUpSubmit),fi(c,B(C).searchSummaryFollowUpSubmit)}),Vr(`submit`,t,mt),Ta(a,()=>B(Ae),e=>L(Ae,e)),V(e,t)};Ci(m,e=>{B(Ne)&&e(h)}),k(n),ka(n,e=>L(se,e),()=>B(se));var g=Cn(n,2),_=e=>{var t=db();let n;var r=xn(t),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=sb();ka(t,e=>L(gt,e),()=>B(gt)),Hi(2,t,()=>nt),V(e,t)},i=e=>{var t=cb(),n=xn(t,!0);k(t),Kn(()=>{ta(t,1,`search-summary__expand${B(qe)??``}${B(Ke)?` search-summary__btn--primary`:``}`),ya(t,`aria-expanded`,B(T)),ya(t,`aria-label`,B(Re)),fi(n,B(Le))}),Hr(`click`,t,Ze),Hi(2,t,()=>nt),V(e,t)};Ci(n,e=>{S()?e(r):e(i,-1)}),V(e,t)};Ci(i,e=>{B(Fe)&&e(a)}),k(r);var o=Cn(r,2),s=e=>{var t=$r(),n=Sn(t),r=e=>{var t=lb();ka(t,e=>L(_t,e),()=>B(_t)),V(e,t)},i=e=>{var t=ub(),n=xn(t,!0);k(t),Kn(()=>{ta(t,1,`search-summary__opt-out${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),ya(t,`aria-label`,B(C).ariaSearchSummaryOptOut),fi(n,p()||B(C).searchSummaryOptOut)}),Hr(`click`,t,at),V(e,t)};Ci(n,e=>{ee()?e(r):e(i,-1)}),V(e,t)};Ci(o,e=>{B(Ie)&&e(s)}),k(t),ka(t,e=>L(ce,e),()=>B(ce)),Kn(()=>n=ta(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":B(Ne)})),V(e,t)};Ci(g,e=>{(!B(Ne)||B(Fe)||B(Ie))&&e(_)}),Kn(()=>{r=ta(n,1,`search-summary__content`,null,r,{"search-summary__content--with-follow-up":B(Ne)}),c=ta(s,1,`search-summary__answer`,null,c,{"search-summary__answer--themed":B(Ke)})}),V(e,t)};return Ci(Tt,e=>{B(w)===`opt-in`?e(Et):e(Dt,-1)}),k(St),ka(St,e=>L(oe,e),()=>B(oe)),Kn(()=>{Ct=ta(St,1,`search-summary`,null,Ct,{"search-summary--ready":B($e)}),ya(St,`data-state`,B(w)),ya(St,`data-expanded`,B(T)?`true`:`false`),ya(St,`data-capped`,B(T)&&B(de)?`true`:void 0),ya(St,`role`,_()?`region`:void 0),ya(St,`aria-labelledby`,_()),wt=ra(St,``,wt,{height:B(T)||B(xe)||!B(E)?`${be.current}px`:B(pe),"max-height":B(ge)||null})}),V(e,N),tt(vt)}Ur([`click`]),za(mb,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function hb(e,t){et(t,!0);let n=H(t,`lang`,7),r=H(t,`apiUrl`,7),i=H(t,`apiKey`,7),a=H(t,`question`,7),o=H(t,`height`,7),s=H(t,`maxHeight`,7),c=H(t,`optIn`,7),l=H(t,`optInLabel`,7),u=H(t,`expandLabel`,7),d=H(t,`collapseLabel`,7),f=H(t,`optOutLabel`,7),p=H(t,`useChatConfig`,7),m=H(t,`forceTheme`,7),h=H(t,`wrapperClass`,7),g=H(t,`labelledBy`,7),_=H(t,`chatUrl`,7),v=H(t,`mode`,7),y=H(t,`source`,7),b=F(()=>({lang:n(),apiUrl:r(),apiKey:i(),question:a(),height:o(),maxHeight:s(),optIn:c(),optInLabel:l(),expandLabel:u(),collapseLabel:d(),optOutLabel:f(),useChatConfig:p(),forceTheme:m(),labelledBy:g(),chatUrl:_(),mode:v(),source:y()})),x=I(void 0),S=t.$$host;Rn(()=>{S&&h()&&(S.className=h())}),Rn(()=>{if(!S||!B(x))return;let e=S;return e.reload=()=>B(x)?.reload(),()=>{delete e.reload}});let ee=F(()=>S?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),te=I(null),ne=I(null),re=I(null);return Bn(()=>{if(p()){L(te,null),L(ne,null),L(re,null);return}L(te,S?.querySelector(`[slot="activate-ai-button"]`)??null,!0),L(ne,S?.querySelector(`[slot="expand-answer-button"]`)??null,!0),L(re,S?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),ka(mb(e,Na(()=>B(b),{get disclaimerHtml(){return B(ee)},get activateAiButtonSlot(){return B(te)},get expandAnswerButtonSlot(){return B(ne)},get deactivateAiButtonSlot(){return B(re)}})),e=>L(x,e,!0),()=>B(x)),tt({get lang(){return n()},set lang(e){n(e),P()},get apiUrl(){return r()},set apiUrl(e){r(e),P()},get apiKey(){return i()},set apiKey(e){i(e),P()},get question(){return a()},set question(e){a(e),P()},get height(){return o()},set height(e){o(e),P()},get maxHeight(){return s()},set maxHeight(e){s(e),P()},get optIn(){return c()},set optIn(e){c(e),P()},get optInLabel(){return l()},set optInLabel(e){l(e),P()},get expandLabel(){return u()},set expandLabel(e){u(e),P()},get collapseLabel(){return d()},set collapseLabel(e){d(e),P()},get optOutLabel(){return f()},set optOutLabel(e){f(e),P()},get useChatConfig(){return p()},set useChatConfig(e){p(e),P()},get forceTheme(){return m()},set forceTheme(e){m(e),P()},get wrapperClass(){return h()},set wrapperClass(e){h(e),P()},get labelledBy(){return g()},set labelledBy(e){g(e),P()},get chatUrl(){return _()},set chatUrl(e){_(e),P()},get mode(){return v()},set mode(e){v(e),P()},get source(){return y()},set source(e){y(e),P()}})}return customElements.define(`liipgpt-search-summary`,za(hb,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`}},[],[])),e.LiipGPTSearchSummary=hb,e})({});
426
+ `,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}}})),zy,By,Vy=s((()=>{zy=d(by(),1),Ry(),By=e=>(e??=Ly,{de:(0,zy.default)(Ly.de,e.de??{}),en:(0,zy.default)(Ly.en,e.en??{}),fr:(0,zy.default)(Ly.fr,e.fr??{}),it:(0,zy.default)(Ly.it,e.it??{})})})),Hy,Uy,Wy=s((()=>{yy(),Py(),Iy(),Vy(),Hy=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Uy=e=>{let t;t=e.theme?.fineGrained?Fy(e.theme?.fineGrained):Ny(e?.theme??{});let n=By(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Hy(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r}})),Gy=l({loadChatConfig:()=>Ky});async function Ky({apiUrl:e,lang:t,forceTheme:n}){let r=Uy(await qy(e));return{chatConfig:r,language:qv(t,r.supportedLanguages),colorScheme:_y(Object.keys(r.fullTheme))}}var qy,Jy=s((()=>{vy(),mv(),Wy(),qy=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return pv.parse(t)}}));Yv();var Yy=Xr(`<!> <!> <!>`,1),Xy=Xr(`<div class="search-summary__disclaimer-text"></div>`),Zy=Xr(`<div class="search-summary__opt-in-slot-mount"></div>`),Qy=Xr(`<button type="button"> </button>`),$y=Xr(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),eb=Xr(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),tb=Xr(`<div class="search-summary__error" role="alert"> </div>`),nb=Xr(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),rb=Xr(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),ib=Xr(`<div class="search-summary__follow-up-submit-icon"></div>`),ab=Qr(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),ob=Xr(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),sb=Xr(`<div class="search-summary__expand-slot-mount"></div>`),cb=Xr(`<button type="button"> </button>`),lb=Xr(`<div class="search-summary__opt-out-slot-mount"></div>`),ub=Xr(`<button type="button"> </button>`),db=Xr(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),fb=Xr(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),pb=Xr(`<!> <!> <div><!></div>`,1);function mb(e,t){et(t,!0);function n(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let r=H(t,`lang`,7,`de`),i=H(t,`apiUrl`,7),a=H(t,`apiKey`,7,``),o=H(t,`question`,7),s=H(t,`height`,7,`280`),c=H(t,`maxHeight`,7),l=H(t,`optIn`,7,!1),u=H(t,`optInLabel`,7),d=H(t,`expandLabel`,7),f=H(t,`collapseLabel`,7),p=H(t,`optOutLabel`,7),m=H(t,`useChatConfig`,7,!1),h=H(t,`forceTheme`,7),g=H(t,`disclaimerHtml`,7,``),_=H(t,`labelledBy`,7),v=H(t,`chatUrl`,7),y=H(t,`mode`,7,`search`),b=H(t,`source`,7,`search-summary`),x=H(t,`cache`,7,!1),S=H(t,`activateAiButtonSlot`,7,null),C=H(t,`expandAnswerButtonSlot`,7,null),ee=H(t,`deactivateAiButtonSlot`,7,null),te=I(null),ne=I(null),w=I(!1),re=[`de`,`en`,`fr`,`it`],ie=F(()=>B(ne)?.language??qv(r(),re)),T=F(()=>({...Xv[B(ie)],...B(te)})),ae=I(`loading`),oe=I(null),se=I(null),ce=I(null),le=I(null),ue=I(!1),E=I(!1),de=I(!1),fe=I(un(fy)),pe=F(()=>ly(s())),D=F(()=>uy(B(pe))),me=F(()=>B(D)===null),he=F(()=>B(D)??fy),ge=F(()=>c()===void 0?``:ly(c()));function _e(){if(!B(ge))return null;let e=uy(B(ge));return e===null?B(oe)?dy(B(oe),B(ge)):null:e}let ve=I(!1);Rn(()=>hy(e=>L(ve,e,!0)));function ye(e){return B(ve)?0:e}let be=new Wa(Pr(()=>B(he)),{duration:400,easing:Va}),xe=I(!1);Rn(()=>{if(!B(xe)){if(B(E)){be.set(B(fe),{duration:ye(400)});return}!B(me)&&B(D)!==null&&be.set(B(D),{duration:ye(400)})}});function Se(){return B(oe)?B(D)===null?dy(B(oe),B(pe)):B(D):B(he)}async function Ce(e){L(xe,!0),await be.set(e,{duration:ye(400)}),L(xe,!1)}function we(){if(!B(oe))return Se();if(B(oe).offsetHeight>0)return B(oe).offsetHeight;let e=B(oe).style.height;if(!e)return Se();let t=uy(e);return t===null?dy(B(oe),e):t}let Te=I(``),Ee=I(un([])),De=I(``),Oe=I(null),ke=I(!1),Ae=I(``),je=F(()=>v()&&n(v())?v():void 0),Me=F(()=>!!B(je)&&!!B(Oe)),Ne=F(()=>B(Me)&&B(ke)),Pe=F(()=>!B(E)&&B(ue)),Fe=F(()=>B(ae)!==`opt-in`&&B(ae)!==`loading`&&B(ae)!==`error`&&(B(ue)||B(E))&&!(B(E)&&B(Me))),Ie=F(()=>l()&&B(ae)!==`opt-in`),Le=F(()=>B(E)?f()||B(T).searchSummaryCollapse:d()||B(T).searchSummaryExpand),Re=F(()=>B(E)?B(T).ariaSearchSummaryCollapse:B(T).ariaSearchSummaryExpand),ze=I(``),Be=I(``),Ve=null,O=F(()=>B(E)?B(Be)||f()||B(T).searchSummaryCollapse:d()||B(ze)||B(T).searchSummaryExpand),He=F(()=>B(E)?B(Be)||f()||B(T).ariaSearchSummaryCollapse:d()||B(ze)||B(T).ariaSearchSummaryExpand),k=F(()=>B(ne)?Tm(B(ne).chatConfig.fullTheme[B(ne).colorScheme].tokens,{root:`.search-summary`}):``),Ue=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.customCSS?py(B(ne).chatConfig.fullTheme[B(ne).colorScheme].customCSS):``),We=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.fontCSS??``),Ge=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.tokens?.svgs?.submit??``),Ke=F(()=>B(ne)!==null),qe=F(()=>B(Ke)?` search-summary__btn`:``),Je=F(()=>B(Ke)?` search-summary__follow-up--themed`:``);function Ye(){if(!B(oe))return B(he);let e=B(oe).style.height;B(oe).style.height=`auto`;let t=B(se)?.style.flex??``;B(se)&&(B(se).style.flex=`none`);let n=B(oe).scrollHeight;return B(se)&&(B(se).style.flex=t),B(oe).style.height=e,n}function Xe(){L(ue,(B(se)?.scrollHeight??0)>(B(se)?.offsetHeight??0)+1)}function Ze(){let e=Ye(),t=_e();L(fe,t===null?e:Math.min(e,t),!0),L(de,t!==null&&e>t,!0)}async function Qe(){if(B(oe))if(!B(E))Ze(),be.set(we(),{duration:0}),L(E,!0),L(ae,`expanded`),await jr(),Xe(),Ze(),await Ce(B(fe));else{be.set(we(),{duration:0});let e=Se();L(E,!1),L(ae,B(Te)?`done`:`loading`,!0),await jr(),Xe(),await Ce(e)}}let j=I(!1);Bn(()=>{B(j)||i()&&(L(ae,l()&&!ry(i())?`opt-in`:`loading`,!0),L(j,!0))}),Rn(()=>{if(!i()||!m()){L(ne,null),L(te,null),L(w,!0);return}let e=!1;return L(w,!1),Promise.resolve().then(()=>(Jy(),Gy)).then(({loadChatConfig:e})=>e({apiUrl:i(),lang:r(),forceTheme:h()})).then(t=>{e||(L(ne,t,!0),L(te,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(L(ne,null),L(te,null))}).finally(()=>{e||L(w,!0)}),()=>{e=!0}});let $e=F(()=>B(j)&&B(w)),nt=I(!1);Rn(()=>{if(!B($e)||B(nt))return;let e=requestAnimationFrame(()=>L(nt,!0));return()=>cancelAnimationFrame(e)}),Rn(()=>{if(!B(oe))return;B(Te),B(Ee).length,B(pe),Ze(),Xe();let e=new ResizeObserver(()=>{Ze(),Xe()});return e.observe(B(oe)),B(se)&&e.observe(B(se)),()=>e.disconnect()});function rt(e){return e.classList.add(`search-summary__btn--leaving`),{duration:ye(200)}}function it(e,t){if(B(ve)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function at(e=null){if(B(ve)){lt();return}e?.classList.add(`search-summary__btn--leaving`),B(se)?.classList.add(`search-summary__content--leaving`),B(ce)?.classList.add(`search-summary__footer--leaving`),B(ce)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=B(se)??e;t?t.addEventListener(`animationend`,lt,{once:!0}):lt()}function ot(e){at(e.currentTarget)}function st(){iy(i()),L(ae,`loading`)}function ct(){dt?.(),ft&&ft.abort().catch(()=>{}),dt=void 0,ft=void 0,L(Oe,null),L(ke,!1),L(Ae,``),M=!1,L(Te,``),L(Ee,[],!0),L(De,``),L(E,!1),L(ue,!1)}function lt(){ay(i()),ct(),L(ae,`opt-in`)}let M=!1,ut,dt,ft;function pt(){if(M)return;M=!0,ut=o();let e=new Gv({apiUrl:i(),apiKey:a()});try{let t=e.createConversation();L(Oe,t.id,!0),ft=t.chat(o(),{lang:B(ie),mode:y()||void 0,source:b()||void 0,cache:x()||void 0})}catch(e){L(De,e instanceof Error&&e.message?e.message:B(T).searchSummaryError,!0),L(ae,`error`);return}dt=ft.subscribe(e=>{if(e.errors.length>0){L(De,e.errors.join(`, `)||B(T).searchSummaryError,!0),L(ae,`error`);return}if(e.state===`loading`){L(ae,`loading`);return}L(Te,e.message.html,!0),L(Ee,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?B(E)||L(ae,`answering`):e.state===`done`&&(L(ke,!0),B(E)||L(ae,`done`),queueMicrotask(Xe))})}Rn(()=>{!o()||!i()||B(ae)!==`loading`||pt()});function mt(){if(ct(),l()&&!ry(i())){L(ae,`opt-in`);return}L(ae,`loading`),pt()}Rn(()=>{let e=o();!e||!M||e===ut||Pr(()=>mt())}),xi(()=>{dt?.(),ft&&ft.abort().catch(()=>{})}),Rn(()=>{B(le)&&(B(le).innerHTML=B(Te),B(le).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Xe))});function ht(e){e.preventDefault();let t=B(Ae).trim();if(!t||!B(je)||!B(Oe))return;let n=new URL(B(je),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${B(Oe)}`,window.location.assign(n.toString())}let gt=I(null),_t=I(null),vt=I(null);Rn(()=>{let e=B(gt),t=S();if(!(!e||!t))return sy(e,t,st)?.({label:u()||void 0}),()=>cy(e,t)}),Rn(()=>{let e=B(_t),t=C();if(!(!e||!t||!B(Fe)))return Ve!==t&&(Ve=t,L(ze,t.textContent?.trim()??``,!0),L(Be,t.dataset.collapseLabel?.trim()??``,!0)),sy(e,t,Qe)?.({label:B(O),ariaLabel:B(He),ariaExpanded:B(E)}),()=>cy(e,t)}),Rn(()=>{!C()||!B(Fe)||(C().textContent=B(O),C().setAttribute(`aria-label`,B(He)),C().setAttribute(`aria-expanded`,String(B(E))))}),Rn(()=>{let e=B(vt),t=ee();if(!(!e||!t||!B(Ie)))return sy(e,t,()=>at(e))?.({label:p()||void 0,ariaLabel:B(T).ariaSearchSummaryOptOut}),()=>cy(e,t)});var N={reload:mt,get lang(){return r()},set lang(e=`de`){r(e),P()},get apiUrl(){return i()},set apiUrl(e){i(e),P()},get apiKey(){return a()},set apiKey(e=``){a(e),P()},get question(){return o()},set question(e){o(e),P()},get height(){return s()},set height(e=`280`){s(e),P()},get maxHeight(){return c()},set maxHeight(e){c(e),P()},get optIn(){return l()},set optIn(e=!1){l(e),P()},get optInLabel(){return u()},set optInLabel(e){u(e),P()},get expandLabel(){return d()},set expandLabel(e){d(e),P()},get collapseLabel(){return f()},set collapseLabel(e){f(e),P()},get optOutLabel(){return p()},set optOutLabel(e){p(e),P()},get useChatConfig(){return m()},set useChatConfig(e=!1){m(e),P()},get forceTheme(){return h()},set forceTheme(e){h(e),P()},get disclaimerHtml(){return g()},set disclaimerHtml(e=``){g(e),P()},get labelledBy(){return _()},set labelledBy(e){_(e),P()},get chatUrl(){return v()},set chatUrl(e){v(e),P()},get mode(){return y()},set mode(e=`search`){y(e),P()},get source(){return b()},set source(e=`search-summary`){b(e),P()},get cache(){return x()},set cache(e=!1){x(e),P()},get activateAiButtonSlot(){return S()},set activateAiButtonSlot(e=null){S(e),P()},get expandAnswerButtonSlot(){return C()},set expandAnswerButtonSlot(e=null){C(e),P()},get deactivateAiButtonSlot(){return ee()},set deactivateAiButtonSlot(e=null){ee(e),P()}},yt=pb(),bt=Sn(yt);Qv(bt,{id:`search-summary-css`,get css(){return Zv}});var xt=Cn(bt,2),St=e=>{var t=Yy(),n=Sn(t);Qv(n,{id:`search-summary-font-css`,get css(){return B(We)}});var r=Cn(n,2);Qv(r,{id:`search-summary-theme-css`,get css(){return B(k)}});var i=Cn(r,2),a=e=>{Qv(e,{id:`search-summary-custom-css`,get css(){return B(Ue)}})};Ci(i,e=>{B(Ue)&&e(a)}),V(e,t)};Ci(xt,e=>{B(Ke)&&B(k)&&e(St)});var Ct=Cn(xt,2);let wt,Tt;var Et=xn(Ct),Dt=e=>{var t=$y(),n=xn(t),r=xn(n),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=Xy();Ni(t,()=>B(T).searchSummaryDisclaimer,!0),A(t),V(e,t)};Ci(n,e=>{B(T).searchSummaryDisclaimer&&e(r)}),V(e,t)},o=e=>{var t=$r();Ni(Sn(t),g),V(e,t)};Ci(i,e=>{m()?e(a):e(o,-1)}),A(r),A(n);var s=Cn(n,2),c=xn(s),l=e=>{var t=Zy();ka(t,e=>L(gt,e),()=>B(gt)),V(e,t)},d=e=>{var t=Qy(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-in${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),fi(n,u()||B(T).searchSummaryOptInDefault)}),Hr(`click`,t,e=>it(e,st)),V(e,t)};Ci(c,e=>{S()?e(l):e(d,-1)}),A(s),A(t),V(e,t)},Ot=e=>{var t=fb(),n=Sn(t);let r;var i=xn(n),a=xn(i),o=e=>{var t=eb(),n=Cn(xn(t),2),r=xn(n,!0);A(n),A(t),Kn(()=>fi(r,B(T).searchSummaryLoading)),V(e,t)};Ci(a,e=>{B(ae)===`loading`&&e(o)});var s=Cn(a,2);let c;ka(s,e=>L(le,e),()=>B(le)),A(i);var l=Cn(i,2),u=e=>{var t=tb(),n=xn(t,!0);A(t),Kn(()=>fi(n,B(De)||B(T).searchSummaryError)),V(e,t)};Ci(l,e=>{B(ae)===`error`&&e(u)});var d=Cn(l,2),f=e=>{var t=rb(),n=Sn(t),r=xn(n,!0);A(n);var i=Cn(n,2);Di(i,21,()=>B(Ee),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=nb(),r=xn(n),i=xn(r,!0);A(r),A(n),Kn(()=>{_a(n,B(t).referenceIndex.used??void 0),ya(r,`href`,B(t).url),ya(r,`tabindex`,B(Pe)?-1:void 0),fi(i,B(t).display.listItem.title||B(t).display.card.title||B(t).url)}),V(e,n)}),A(i),Kn(()=>fi(r,B(T).referencesTitle)),V(e,t)};Ci(d,e=>{B(Ee).length>0&&e(f)});var m=Cn(d,2),h=e=>{var t=ob(),n=xn(t),r=xn(n,!0);A(n);var i=Cn(n,2),a=xn(i);ga(a);var o=Cn(a,2),s=xn(o),c=xn(s,!0);A(s);var l=Cn(s,2),u=e=>{var t=ib();Ni(t,()=>B(Ge),!0),A(t),V(e,t)},d=e=>{V(e,ab())};Ci(l,e=>{B(Ge)?e(u):e(d,-1)}),A(o),A(i),A(t),Kn(()=>{ta(t,1,`search-summary__follow-up${B(Je)??``}`),t.inert=B(Pe),fi(r,B(T).ariaSearchSummaryFollowUpInput),ya(a,`placeholder`,B(T).searchSummaryFollowUpPlaceholder),ya(a,`aria-label`,B(T).ariaSearchSummaryFollowUpInput),ya(o,`aria-label`,B(T).searchSummaryFollowUpSubmit),fi(c,B(T).searchSummaryFollowUpSubmit)}),Vr(`submit`,t,ht),Ta(a,()=>B(Ae),e=>L(Ae,e)),V(e,t)};Ci(m,e=>{B(Ne)&&e(h)}),A(n),ka(n,e=>L(se,e),()=>B(se));var g=Cn(n,2),_=e=>{var t=db();let n;var r=xn(t),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=sb();ka(t,e=>L(_t,e),()=>B(_t)),Hi(2,t,()=>rt),V(e,t)},i=e=>{var t=cb(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__expand${B(qe)??``}${B(Ke)?` search-summary__btn--primary`:``}`),ya(t,`aria-expanded`,B(E)),ya(t,`aria-label`,B(Re)),fi(n,B(Le))}),Hr(`click`,t,Qe),Hi(2,t,()=>rt),V(e,t)};Ci(n,e=>{C()?e(r):e(i,-1)}),V(e,t)};Ci(i,e=>{B(Fe)&&e(a)}),A(r);var o=Cn(r,2),s=e=>{var t=$r(),n=Sn(t),r=e=>{var t=lb();ka(t,e=>L(vt,e),()=>B(vt)),V(e,t)},i=e=>{var t=ub(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-out${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),ya(t,`aria-label`,B(T).ariaSearchSummaryOptOut),fi(n,p()||B(T).searchSummaryOptOut)}),Hr(`click`,t,ot),V(e,t)};Ci(n,e=>{ee()?e(r):e(i,-1)}),V(e,t)};Ci(o,e=>{B(Ie)&&e(s)}),A(t),ka(t,e=>L(ce,e),()=>B(ce)),Kn(()=>n=ta(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":B(Ne)})),V(e,t)};Ci(g,e=>{(!B(Ne)||B(Fe)||B(Ie))&&e(_)}),Kn(()=>{r=ta(n,1,`search-summary__content`,null,r,{"search-summary__content--with-follow-up":B(Ne)}),c=ta(s,1,`search-summary__answer`,null,c,{"search-summary__answer--themed":B(Ke)})}),V(e,t)};return Ci(Et,e=>{B(ae)===`opt-in`?e(Dt):e(Ot,-1)}),A(Ct),ka(Ct,e=>L(oe,e),()=>B(oe)),Kn(()=>{wt=ta(Ct,1,`search-summary`,null,wt,{"search-summary--ready":B(nt)}),ya(Ct,`data-state`,B(ae)),ya(Ct,`data-expanded`,B(E)?`true`:`false`),ya(Ct,`data-capped`,B(E)&&B(de)?`true`:void 0),ya(Ct,`role`,_()?`region`:void 0),ya(Ct,`aria-labelledby`,_()),Tt=ra(Ct,``,Tt,{height:B(E)||B(xe)||!B(me)?`${be.current}px`:B(pe),"max-height":B(ge)||null})}),V(e,yt),tt(N)}Ur([`click`]),za(mb,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function hb(e,t){et(t,!0);let n=H(t,`lang`,7),r=H(t,`apiUrl`,7),i=H(t,`apiKey`,7),a=H(t,`question`,7),o=H(t,`height`,7),s=H(t,`maxHeight`,7),c=H(t,`optIn`,7),l=H(t,`optInLabel`,7),u=H(t,`expandLabel`,7),d=H(t,`collapseLabel`,7),f=H(t,`optOutLabel`,7),p=H(t,`useChatConfig`,7),m=H(t,`forceTheme`,7),h=H(t,`wrapperClass`,7),g=H(t,`labelledBy`,7),_=H(t,`chatUrl`,7),v=H(t,`mode`,7),y=H(t,`source`,7),b=H(t,`cache`,7),x=F(()=>({lang:n(),apiUrl:r(),apiKey:i(),question:a(),height:o(),maxHeight:s(),optIn:c(),optInLabel:l(),expandLabel:u(),collapseLabel:d(),optOutLabel:f(),useChatConfig:p(),forceTheme:m(),labelledBy:g(),chatUrl:_(),mode:v(),source:y(),cache:b()})),S=I(void 0),C=t.$$host;Rn(()=>{C&&h()&&(C.className=h())}),Rn(()=>{if(!C||!B(S))return;let e=C;return e.reload=()=>B(S)?.reload(),()=>{delete e.reload}});let ee=F(()=>C?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),te=I(null),ne=I(null),w=I(null);return Bn(()=>{if(p()){L(te,null),L(ne,null),L(w,null);return}L(te,C?.querySelector(`[slot="activate-ai-button"]`)??null,!0),L(ne,C?.querySelector(`[slot="expand-answer-button"]`)??null,!0),L(w,C?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),ka(mb(e,Na(()=>B(x),{get disclaimerHtml(){return B(ee)},get activateAiButtonSlot(){return B(te)},get expandAnswerButtonSlot(){return B(ne)},get deactivateAiButtonSlot(){return B(w)}})),e=>L(S,e,!0),()=>B(S)),tt({get lang(){return n()},set lang(e){n(e),P()},get apiUrl(){return r()},set apiUrl(e){r(e),P()},get apiKey(){return i()},set apiKey(e){i(e),P()},get question(){return a()},set question(e){a(e),P()},get height(){return o()},set height(e){o(e),P()},get maxHeight(){return s()},set maxHeight(e){s(e),P()},get optIn(){return c()},set optIn(e){c(e),P()},get optInLabel(){return l()},set optInLabel(e){l(e),P()},get expandLabel(){return u()},set expandLabel(e){u(e),P()},get collapseLabel(){return d()},set collapseLabel(e){d(e),P()},get optOutLabel(){return f()},set optOutLabel(e){f(e),P()},get useChatConfig(){return p()},set useChatConfig(e){p(e),P()},get forceTheme(){return m()},set forceTheme(e){m(e),P()},get wrapperClass(){return h()},set wrapperClass(e){h(e),P()},get labelledBy(){return g()},set labelledBy(e){g(e),P()},get chatUrl(){return _()},set chatUrl(e){_(e),P()},get mode(){return v()},set mode(e){v(e),P()},get source(){return y()},set source(e){y(e),P()},get cache(){return b()},set cache(e){b(e),P()}})}return customElements.define(`liipgpt-search-summary`,za(hb,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[])),e.LiipGPTSearchSummary=hb,e})({});