@liip/liipgpt 3.12.1 → 3.12.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.
- package/chat/liipgpt-chat.iife.js +1 -1
- package/chat/liipgpt-chat.js +1 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{C7SVO0yB.js → B1Joifa9.js} +1 -1
- package/configurator/_app/immutable/chunks/{BzwH5m-K.js → BpZBEnLx.js} +1 -1
- package/configurator/_app/immutable/chunks/{CrAgD5Zd.js → C7GamMay.js} +1 -1
- package/configurator/_app/immutable/chunks/{BgPvdYLz.js → CYSkUxy-.js} +1 -1
- package/configurator/_app/immutable/chunks/{DmafQ_KV.js → DK5x2wSR.js} +1 -1
- package/configurator/_app/immutable/chunks/{lj2Jt22R.js → W0DG3qIi.js} +1 -1
- package/configurator/_app/immutable/chunks/nkdIuSLi.js +1 -0
- package/configurator/_app/immutable/chunks/{BGriYQSA.js → q8gaG5yu.js} +1 -1
- package/configurator/_app/immutable/chunks/{CxsmcPPu.js → wBAqx-SG.js} +1 -1
- package/configurator/_app/immutable/entry/{app.CFqiYWk3.js → app.N8qcqFkp.js} +2 -2
- package/configurator/_app/immutable/entry/start.C7KBUclR.js +1 -0
- package/configurator/_app/immutable/nodes/{0.DwmuWxZI.js → 0.DnB99G2N.js} +1 -1
- package/configurator/_app/immutable/nodes/{1.Bjv1gqx4.js → 1.DaqCyvgg.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.CyWhas6h.js → 2.F3TuebRJ.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.BlXQFvKY.js → 3.BbNw4LYP.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/search-summary/liipgpt-search-summary.iife.js +1 -1
- package/search-summary/liipgpt-search-summary.js +1 -1
- package/configurator/_app/immutable/chunks/BOogcmRI.js +0 -1
- package/configurator/_app/immutable/entry/start.CT4FgDr_.js +0 -1
|
@@ -54,7 +54,7 @@ ${e}</tr>
|
|
|
54
54
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
55
55
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${J(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Ut(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+J(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ut(e);if(i===null)return J(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${J(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:J(e.text)}},Zt=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},X=class e{options;renderer;textRenderer;constructor(e){this.options=e||O,this.options.renderer=this.options.renderer||new Xt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zt}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
56
56
|
`+this.renderer.text(i);t?n+=this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Qt=class{options;block;constructor(e){this.options=e||O}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Y.lex:Y.lexInline}provideParser(){return this.block?X.parse:X.parseInline}},$t=class{defaults=et();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=X;Renderer=Xt;TextRenderer=Zt;Lexer=Y;Tokenizer=Yt;Hooks=Qt;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Xt(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Yt(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Qt;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Qt.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Y.lex(e,t??this.defaults)}parser(e,t){return X.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Y.lex:Y.lexInline,s=i.hooks?i.hooks.provideParser():e?X.parse:X.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
57
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+J(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},en=new $t;function Z(e,t){return en.parse(e,t)}Z.options=Z.setOptions=function(e){return en.setOptions(e),Z.defaults=en.defaults,tt(Z.defaults),Z},Z.getDefaults=et,Z.defaults=O,Z.use=function(...e){return en.use(...e),Z.defaults=en.defaults,tt(Z.defaults),Z},Z.walkTokens=function(e,t){return en.walkTokens(e,t)},Z.parseInline=en.parseInline,Z.Parser=X,Z.parser=X.parse,Z.Renderer=Xt,Z.TextRenderer=Zt,Z.Lexer=Y,Z.lexer=Y.lex,Z.Tokenizer=Yt,Z.Hooks=Qt,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,X.parse,Y.lex;var tn=e=>(Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n&&typeof n==`object`&&tn(n)}),Object.freeze(e)),nn=tn({all:[],used:[],unused:[]}),rn=(e,t)=>{let n=$e(e);return n.addHook(`uponSanitizeElement`,function(e,t){let n=t.tagName||e.nodeName.toLowerCase();n.startsWith(`liipgpt-`)&&(t.allowedTags[n]=!0)}),n.addHook(`afterSanitizeAttributes`,function(e){if(e.tagName!==`A`||!e.getAttribute(`href`)?.startsWith(`http`)||(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`),!t||e.querySelector(`.sr-only`)))return;let n=e.ownerDocument.createElement(`span`);n.className=`sr-only`,n.textContent=` ${t}`,e.appendChild(n)}),n},an=class{marked;currentReferences=nn;lastUsedIndex=0;DomPurity;constructor(e={}){this.marked=new $t({async:!1,breaks:!0}).use(this.createFootnoteExtension(),...e.extensions??[]),this.DomPurity=rn(e.window,e.newTabSrText)}createFootnoteExtension=()=>{let e=this;return{extensions:[{name:`footnote`,level:`inline`,start(e){return e.match(/\[\^(\d+(?:\.\d+)?)\]/)?.index},tokenizer(e){let t=/^\[\^(\d+(?:\.\d+)?)\]/.exec(e);if(t){let[e,n]=t;return{type:`footnote`,raw:e,refNumber:n}}},renderer(t){if(t.type===`footnote`){let n=e.currentReferences.all,r=n.some(e=>e.citationId!==void 0)?n.findIndex(e=>e.citationId===t.refNumber):/^\d+$/.test(t.refNumber)?Number(t.refNumber)-1:-1,i=e.currentReferences.all[r];if(!i)return console.error(`Could not find ref for citation:`,t.refNumber),``;let a;return i?.referenceIndex.used?a=i.referenceIndex.used:(e.currentReferences.used.push(i),e.lastUsedIndex++,a=e.lastUsedIndex,i.referenceIndex.used=a),` <liipgpt-reference-number data-all-index="${r}" data-used-index="${a}" data-source="${JSON.stringify(i).replace(/"/g,`"`)}"></liipgpt-reference-number>`}}}]}};parse(e){return this.DomPurity.sanitize(this.marked.parse(e),{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0,mathMl:!0},FORBID_TAGS:[`hr`],ADD_ATTR:[`target`]})}toHTML(e,t){this.currentReferences=t;let n=this.parse(e);return this.currentReferences=nn,n}};function on(){let e,t;return{promise:new Promise((n,r)=>{t=n,e=r}),reject:e,resolve:t}}var sn=class{promise;resolve;reject;constructor(){let{promise:e,resolve:t,reject:n}=on();this.promise=e,this.resolve=t,this.reject=n}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}toPromise(){return this.promise}[Symbol.toStringTag]=`Flag`},cn=class{hasValue=new sn;currentValue;setValue(e){this.currentValue=e,this.hasValue.resolve()}cleanup(e){this.hasValue.reject(e)}getCurrentValue(){return this.currentValue}async toPromise(){return await this.hasValue,this.currentValue}then(e,t){return this.toPromise().then(e,t)}catch(e){return this.toPromise().catch(e)}finally(e){return this.toPromise().finally(e)}[Symbol.toStringTag]=`FutureValue`},ln=e=>{try{return new URL(e).hostname}catch{return e}};function un(e){return e.replace(/<[^>]*>/g,``).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var dn=({citationId:e,url:t,considered:n,title:r,description:i,summary:a})=>{let o=ln(t),s=i||a;return{...e?{citationId:e}:{},url:t,considered:n,referenceIndex:{},score:0,metadata:{},display:{card:{title:r,description:s,badge:t},listItem:{title:r,badge:o}}}},fn=class{store;content=new cn;backendSendsMappedRefs=!1;constructor(e){this.options=e,this.store=n({id:e.id,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]},retrievalQuestion:e.userQuestion})}pushError(e,t){this.options.onError?.(e,t),this.store.update(t=>({...t,errors:[...t.errors,e]}))}updateRequestId(e){this.store.update(t=>({...t,id:e}))}updateText(e){this.store.update(t=>{let n=t.message.markdown+e,r=this.options.markdownRenderer.toHTML(n,t.references);return{...t,state:`streaming`,message:{markdown:n,html:r,text:``}}})}finishMessage(){this.store.update(e=>{let t={...e,state:`done`};return t.references.unused=t.references.all.filter(e=>e.referenceIndex.used===void 0),t.message.text=un(t.message.html),this.options?.onFinish?.(t),this.content.setValue(t),t})}addReference(e){this.store.update(t=>{let n=t.references.all,r=n.length,i=[...n,{...e,referenceIndex:{all:r}}];return{...t,references:{used:t.references.used,all:i}}})}addMappedReference(e){this.backendSendsMappedRefs=!0,this.addReference(e)}addOldReference(e){this.backendSendsMappedRefs||this.addReference(dn(e))}updateRetrievalQuestion(e){this.store.update(t=>({...t,retrievalQuestion:e}))}setNoFeedback(){this.store.update(e=>({...e,noFeedback:!0}))}getReadableStore(){return{subscribe:this.store.subscribe}}getPromise(){return this.content.toPromise()}},pn=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756\.\d{4}\.\d{4}\.\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],mn=e=>{for(let t of pn)if(t.check(e))return t.type},hn=class{id;constructor(e){this.chatResponseData=e,this.id=this.chatResponseData.id}async isReadyForFeedback(){return await this.chatResponseData.readyForFeedback.toPromise(),!0}subscribe(e,t){return this.chatResponseData.readableStore.subscribe(e,t)}getContent(){return this.chatResponseData.content.toPromise()}abort(){return this.chatResponseData.abort()}async thumbsUp(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsUp(this.id,this.chatResponseData.question)}async thumbsDown(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsDown(this.id,this.chatResponseData.question)}async feedback(e){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.feedback(this.id,this.chatResponseData.question,e)}},gn=class{latestRequest=new cn;state=n({state:`idle`});id;history=[];constructor(e){this.clientPrimitive=e,this.id=e.createConversationId()}subscribe(e){return this.state.subscribe(e)}chat(e,t={}){let n=this.clientPrimitive.chat(this.id,e,t);return this.history.push(n),this.latestRequest.setValue({question:e,response:n}),n}async abort(){let e=this.history.map(e=>e.abort());await Promise.all(e)}async thumbsUp(){let{question:e,response:t}=await this.latestRequest;await t.isReadyForFeedback(),await this.clientPrimitive.thumbsUp(t.id,e)}async thumbsDown(){let{question:e,response:t}=await this.latestRequest;await t.isReadyForFeedback(),await this.clientPrimitive.thumbsDown(t.id,e)}async feedback(e){let{question:t,response:n}=await this.latestRequest;await n.isReadyForFeedback(),await this.clientPrimitive.feedback(n.id,t,e)}},Q=[];for(let e=0;e<256;++e)Q.push((e+256).toString(16).slice(1));function _n(e,t=0){return(Q[e[t+0]]+Q[e[t+1]]+Q[e[t+2]]+Q[e[t+3]]+`-`+Q[e[t+4]]+Q[e[t+5]]+`-`+Q[e[t+6]]+Q[e[t+7]]+`-`+Q[e[t+8]]+Q[e[t+9]]+`-`+Q[e[t+10]]+Q[e[t+11]]+Q[e[t+12]]+Q[e[t+13]]+Q[e[t+14]]+Q[e[t+15]]).toLowerCase()}var vn,yn=new Uint8Array(16);function bn(){if(!vn){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);vn=crypto.getRandomValues.bind(crypto)}return vn(yn)}var xn={};function Sn(e,t,n){let r;if(e)r=wn(e.random??e.rng?.()??bn(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=bn();Cn(xn,e,i),r=wn(i,xn.msecs,xn.seq,t,n)}return t??_n(r)}function Cn(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function wn(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}var Tn=new Map,En=class{get length(){return Tn.size}clear(){Tn.clear()}getItem(e){return Tn.get(e)||null}key(e){return Array.from(Tn.keys())[e]||null}removeItem(e){Tn.delete(e)}setItem(e,t){Tn.set(e,String(t))}},Dn=globalThis.localStorage??new En,On=async(e,t)=>{try{let n=Dn.getItem(`liipgpt:uID`)||Dn.getItem(`uID`),r={method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({referrer:globalThis?.document?.referrer||null,uID:n,...t?{startParameters:t}:{}})},i=await e.fetchData(`/login`,ne,{},r).catch(t=>(console.log(`Failed to /login use /log`,t),e.fetchData(`/log`,ne,{},r)));if(`maintenance`in i&&i.maintenance)return{mode:`maintenance`};if(!(`id`in i))throw Error(`Invalid response format: missing user id`);return Dn.setItem(`liipgpt:uID`,i.id),{mode:`ready`,userId:i.id}}catch(e){throw console.error(`Failed to fetch user data:`,e),e}},$=function(e,t){if(!(this instanceof $))return new $(e,t);this.url=e,t||={},this.headers=t.headers||{},this.payload=t.payload===void 0?``:t.payload,this.method=t.method||this.payload&&`POST`||`GET`,this.withCredentials=!!t.withCredentials,this.debug=!!t.debug,this.autoReconnect=t.autoReconnect===void 0?!1:t.autoReconnect,this.reconnectDelay=t.reconnectDelay===void 0?3e3:t.reconnectDelay,this.maxRetries=t.maxRetries===void 0?null:t.maxRetries,this.retryCount=0,this.reconnectTimer=null,this.useLastEventId=t.useLastEventId===void 0?!0:t.useLastEventId,this.FIELD_SEPARATOR=`:`,this.listeners={},this.xhr=null,this.readyState=$.INITIALIZING,this.progress=0,this.chunk=``,this.lastEventId=``,this._hasParsedBom=!1,this.addEventListener=function(e,t){this.listeners[e]===void 0&&(this.listeners[e]=[]),this.listeners[e].indexOf(t)===-1&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(this.listeners[e]===void 0)return;let n=[];this.listeners[e].forEach(function(e){e!==t&&n.push(e)}),n.length===0?delete this.listeners[e]:this.listeners[e]=n},this.dispatchEvent=function(e){if(!e)return!0;this.debug&&console.debug(e),e.source=this;let t=`on`+e.type;return this.hasOwnProperty(t)&&(this[t].call(this,e),e.defaultPrevented)?!1:this.listeners[e.type]?this.listeners[e.type].every(function(t){return t(e),!e.defaultPrevented}):!0},this._markClosed=function(){if(this.xhr=null,this.progress=0,this.chunk=``,this._setReadyState($.CLOSED),this.autoReconnect){if(this.maxRetries!==null&&this.retryCount>=this.maxRetries){this.debug&&console.debug(`SSE max retries (${this.maxRetries}) reached, stopping reconnection attempts`),this.autoReconnect=!1,this.close();return}this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.debug&&console.debug(`SSE will attempt to reconnect in ${this.reconnectDelay}ms (attempt ${this.retryCount+1}${this.maxRetries?`/`+this.maxRetries:``})`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.retryCount++,this.stream()},this.reconnectDelay)}},this._setReadyState=function(e){let t=new CustomEvent(`readystatechange`);t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){let t=new CustomEvent(`error`);t.responseCode=e.currentTarget.status,t.data=e.currentTarget.response,this.dispatchEvent(t),this._markClosed()},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent(`abort`)),this._markClosed()},this._onStreamProgress=function(e){if(!this.xhr)return;if(this.xhr.status<200||this.xhr.status>=300){this._onStreamFailure(e);return}this.retryCount=0;let t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,!this._hasParsedBom&&this.chunk.length===0&&(t.charCodeAt(0)===65279&&(t=t.substring(1)),this._hasParsedBom=!0);let n=(this.chunk+t).split(/(\r\n\r\n|\r\r|\n\n)/g),r=n.pop();n.forEach(function(e){e.trim().length>0&&this.dispatchEvent(this._parseEventChunk(e))}.bind(this)),this.chunk=r},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=``,this._markClosed()},this._parseEventChunk=function(e){if(!e||e.length===0)return null;this.debug&&console.debug(e);let t={id:null,retry:null,data:null,event:null};if(e.split(/\n|\r\n|\r/).forEach(function(e){let n=e.indexOf(this.FIELD_SEPARATOR),r,i;if(n>0){let t=e[n+1]===` `?2:1;r=e.substring(0,n),i=e.substring(n+t)}else if(n<0)r=e,i=``;else return;r in t&&(r===`data`&&t[r]!==null?t.data+=`
|
|
57
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+J(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},en=new $t;function Z(e,t){return en.parse(e,t)}Z.options=Z.setOptions=function(e){return en.setOptions(e),Z.defaults=en.defaults,tt(Z.defaults),Z},Z.getDefaults=et,Z.defaults=O,Z.use=function(...e){return en.use(...e),Z.defaults=en.defaults,tt(Z.defaults),Z},Z.walkTokens=function(e,t){return en.walkTokens(e,t)},Z.parseInline=en.parseInline,Z.Parser=X,Z.parser=X.parse,Z.Renderer=Xt,Z.TextRenderer=Zt,Z.Lexer=Y,Z.lexer=Y.lex,Z.Tokenizer=Yt,Z.Hooks=Qt,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,X.parse,Y.lex;var tn=e=>(Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n&&typeof n==`object`&&tn(n)}),Object.freeze(e)),nn=tn({all:[],used:[],unused:[]}),rn=(e,t)=>{let n=$e(e);return n.addHook(`uponSanitizeElement`,function(e,t){let n=t.tagName||e.nodeName.toLowerCase();n.startsWith(`liipgpt-`)&&(t.allowedTags[n]=!0)}),n.addHook(`afterSanitizeAttributes`,function(e){if(e.tagName!==`A`||!e.getAttribute(`href`)?.startsWith(`http`)||(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`),!t||e.querySelector(`.sr-only`)))return;let n=e.ownerDocument.createElement(`span`);n.className=`sr-only`,n.textContent=` ${t}`,e.appendChild(n)}),n},an=class{marked;currentReferences=nn;lastUsedIndex=0;DomPurity;constructor(e={}){this.marked=new $t({async:!1,breaks:!0}).use(this.createFootnoteExtension(),...e.extensions??[]),this.DomPurity=rn(e.window,e.newTabSrText)}createFootnoteExtension=()=>{let e=this;return{extensions:[{name:`footnote`,level:`inline`,start(e){return e.match(/\[\^(\d+(?:\.\d+)?)\]/)?.index},tokenizer(e){let t=/^\[\^(\d+(?:\.\d+)?)\]/.exec(e);if(t){let[e,n]=t;return{type:`footnote`,raw:e,refNumber:n}}},renderer(t){if(t.type===`footnote`){let n=e.currentReferences.all,r=n.some(e=>e.citationId!==void 0)?n.findIndex(e=>e.citationId===t.refNumber):/^\d+$/.test(t.refNumber)?Number(t.refNumber)-1:-1,i=e.currentReferences.all[r];if(!i)return console.error(`Could not find ref for citation:`,t.refNumber),``;let a;return i?.referenceIndex.used?a=i.referenceIndex.used:(e.currentReferences.used.push(i),e.lastUsedIndex++,a=e.lastUsedIndex,i.referenceIndex.used=a),` <liipgpt-reference-number data-all-index="${r}" data-used-index="${a}" data-source="${JSON.stringify(i).replace(/"/g,`"`)}"></liipgpt-reference-number>`}}}]}};parse(e){return this.DomPurity.sanitize(this.marked.parse(e),{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0,mathMl:!0},FORBID_TAGS:[`hr`],ADD_ATTR:[`target`]})}toHTML(e,t){this.currentReferences=t;let n=this.parse(e);return this.currentReferences=nn,n}};function on(){let e,t;return{promise:new Promise((n,r)=>{t=n,e=r}),reject:e,resolve:t}}var sn=class{promise;resolve;reject;constructor(){let{promise:e,resolve:t,reject:n}=on();this.promise=e,this.resolve=t,this.reject=n}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}toPromise(){return this.promise}[Symbol.toStringTag]=`Flag`},cn=class{hasValue=new sn;currentValue;setValue(e){this.currentValue=e,this.hasValue.resolve()}cleanup(e){this.hasValue.reject(e)}getCurrentValue(){return this.currentValue}async toPromise(){return await this.hasValue,this.currentValue}then(e,t){return this.toPromise().then(e,t)}catch(e){return this.toPromise().catch(e)}finally(e){return this.toPromise().finally(e)}[Symbol.toStringTag]=`FutureValue`},ln=e=>{try{return new URL(e).hostname}catch{return e}};function un(e){return e.replace(/<[^>]*>/g,``).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var dn=({citationId:e,url:t,considered:n,title:r,description:i,summary:a})=>{let o=ln(t),s=i||a;return{...e?{citationId:e}:{},url:t,considered:n,referenceIndex:{},score:0,metadata:{},display:{card:{title:r,description:s,badge:t},listItem:{title:r,badge:o}}}},fn=class{store;content=new cn;backendSendsMappedRefs=!1;constructor(e){this.options=e,this.store=n({id:e.id,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]},retrievalQuestion:e.userQuestion})}pushError(e,t){this.options.onError?.(e,t),this.store.update(t=>({...t,errors:[...t.errors,e]}))}updateRequestId(e){this.store.update(t=>({...t,id:e}))}updateText(e){this.store.update(t=>{let n=t.message.markdown+e,r=this.options.markdownRenderer.toHTML(n,t.references);return{...t,state:`streaming`,message:{markdown:n,html:r,text:``}}})}finishMessage(){this.store.update(e=>{let t={...e,state:`done`};return t.references.unused=t.references.all.filter(e=>e.referenceIndex.used===void 0),t.message.text=un(t.message.html),this.options?.onFinish?.(t),this.content.setValue(t),t})}addReference(e){this.store.update(t=>{let n=t.references.all,r=n.length,i=[...n,{...e,referenceIndex:{all:r}}];return{...t,references:{used:t.references.used,all:i}}})}addMappedReference(e){this.backendSendsMappedRefs=!0,this.addReference(e)}addOldReference(e){this.backendSendsMappedRefs||this.addReference(dn(e))}updateRetrievalQuestion(e){this.store.update(t=>({...t,retrievalQuestion:e}))}setNoFeedback(){this.store.update(e=>({...e,noFeedback:!0}))}getReadableStore(){return{subscribe:this.store.subscribe}}getPromise(){return this.content.toPromise()}},pn=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756[.\s-]?\d{2,4}[.\s-]?\d{2,4}[.\s-]?\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],mn=e=>{for(let t of pn)if(t.check(e))return t.type},hn=class{id;constructor(e){this.chatResponseData=e,this.id=this.chatResponseData.id}async isReadyForFeedback(){return await this.chatResponseData.readyForFeedback.toPromise(),!0}subscribe(e,t){return this.chatResponseData.readableStore.subscribe(e,t)}getContent(){return this.chatResponseData.content.toPromise()}abort(){return this.chatResponseData.abort()}async thumbsUp(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsUp(this.id,this.chatResponseData.question)}async thumbsDown(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsDown(this.id,this.chatResponseData.question)}async feedback(e){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.feedback(this.id,this.chatResponseData.question,e)}},gn=class{latestRequest=new cn;state=n({state:`idle`});id;history=[];constructor(e){this.clientPrimitive=e,this.id=e.createConversationId()}subscribe(e){return this.state.subscribe(e)}chat(e,t={}){let n=this.clientPrimitive.chat(this.id,e,t);return this.history.push(n),this.latestRequest.setValue({question:e,response:n}),n}async abort(){let e=this.history.map(e=>e.abort());await Promise.all(e)}async thumbsUp(){let{question:e,response:t}=await this.latestRequest;await t.isReadyForFeedback(),await this.clientPrimitive.thumbsUp(t.id,e)}async thumbsDown(){let{question:e,response:t}=await this.latestRequest;await t.isReadyForFeedback(),await this.clientPrimitive.thumbsDown(t.id,e)}async feedback(e){let{question:t,response:n}=await this.latestRequest;await n.isReadyForFeedback(),await this.clientPrimitive.feedback(n.id,t,e)}},Q=[];for(let e=0;e<256;++e)Q.push((e+256).toString(16).slice(1));function _n(e,t=0){return(Q[e[t+0]]+Q[e[t+1]]+Q[e[t+2]]+Q[e[t+3]]+`-`+Q[e[t+4]]+Q[e[t+5]]+`-`+Q[e[t+6]]+Q[e[t+7]]+`-`+Q[e[t+8]]+Q[e[t+9]]+`-`+Q[e[t+10]]+Q[e[t+11]]+Q[e[t+12]]+Q[e[t+13]]+Q[e[t+14]]+Q[e[t+15]]).toLowerCase()}var vn,yn=new Uint8Array(16);function bn(){if(!vn){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);vn=crypto.getRandomValues.bind(crypto)}return vn(yn)}var xn={};function Sn(e,t,n){let r;if(e)r=wn(e.random??e.rng?.()??bn(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=bn();Cn(xn,e,i),r=wn(i,xn.msecs,xn.seq,t,n)}return t??_n(r)}function Cn(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function wn(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}var Tn=new Map,En=class{get length(){return Tn.size}clear(){Tn.clear()}getItem(e){return Tn.get(e)||null}key(e){return Array.from(Tn.keys())[e]||null}removeItem(e){Tn.delete(e)}setItem(e,t){Tn.set(e,String(t))}},Dn=globalThis.localStorage??new En,On=async(e,t)=>{try{let n=Dn.getItem(`liipgpt:uID`)||Dn.getItem(`uID`),r={method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({referrer:globalThis?.document?.referrer||null,uID:n,...t?{startParameters:t}:{}})},i=await e.fetchData(`/login`,ne,{},r).catch(t=>(console.log(`Failed to /login use /log`,t),e.fetchData(`/log`,ne,{},r)));if(`maintenance`in i&&i.maintenance)return{mode:`maintenance`};if(!(`id`in i))throw Error(`Invalid response format: missing user id`);return Dn.setItem(`liipgpt:uID`,i.id),{mode:`ready`,userId:i.id}}catch(e){throw console.error(`Failed to fetch user data:`,e),e}},$=function(e,t){if(!(this instanceof $))return new $(e,t);this.url=e,t||={},this.headers=t.headers||{},this.payload=t.payload===void 0?``:t.payload,this.method=t.method||this.payload&&`POST`||`GET`,this.withCredentials=!!t.withCredentials,this.debug=!!t.debug,this.autoReconnect=t.autoReconnect===void 0?!1:t.autoReconnect,this.reconnectDelay=t.reconnectDelay===void 0?3e3:t.reconnectDelay,this.maxRetries=t.maxRetries===void 0?null:t.maxRetries,this.retryCount=0,this.reconnectTimer=null,this.useLastEventId=t.useLastEventId===void 0?!0:t.useLastEventId,this.FIELD_SEPARATOR=`:`,this.listeners={},this.xhr=null,this.readyState=$.INITIALIZING,this.progress=0,this.chunk=``,this.lastEventId=``,this._hasParsedBom=!1,this.addEventListener=function(e,t){this.listeners[e]===void 0&&(this.listeners[e]=[]),this.listeners[e].indexOf(t)===-1&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(this.listeners[e]===void 0)return;let n=[];this.listeners[e].forEach(function(e){e!==t&&n.push(e)}),n.length===0?delete this.listeners[e]:this.listeners[e]=n},this.dispatchEvent=function(e){if(!e)return!0;this.debug&&console.debug(e),e.source=this;let t=`on`+e.type;return this.hasOwnProperty(t)&&(this[t].call(this,e),e.defaultPrevented)?!1:this.listeners[e.type]?this.listeners[e.type].every(function(t){return t(e),!e.defaultPrevented}):!0},this._markClosed=function(){if(this.xhr=null,this.progress=0,this.chunk=``,this._setReadyState($.CLOSED),this.autoReconnect){if(this.maxRetries!==null&&this.retryCount>=this.maxRetries){this.debug&&console.debug(`SSE max retries (${this.maxRetries}) reached, stopping reconnection attempts`),this.autoReconnect=!1,this.close();return}this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.debug&&console.debug(`SSE will attempt to reconnect in ${this.reconnectDelay}ms (attempt ${this.retryCount+1}${this.maxRetries?`/`+this.maxRetries:``})`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.retryCount++,this.stream()},this.reconnectDelay)}},this._setReadyState=function(e){let t=new CustomEvent(`readystatechange`);t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){let t=new CustomEvent(`error`);t.responseCode=e.currentTarget.status,t.data=e.currentTarget.response,this.dispatchEvent(t),this._markClosed()},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent(`abort`)),this._markClosed()},this._onStreamProgress=function(e){if(!this.xhr)return;if(this.xhr.status<200||this.xhr.status>=300){this._onStreamFailure(e);return}this.retryCount=0;let t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,!this._hasParsedBom&&this.chunk.length===0&&(t.charCodeAt(0)===65279&&(t=t.substring(1)),this._hasParsedBom=!0);let n=(this.chunk+t).split(/(\r\n\r\n|\r\r|\n\n)/g),r=n.pop();n.forEach(function(e){e.trim().length>0&&this.dispatchEvent(this._parseEventChunk(e))}.bind(this)),this.chunk=r},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=``,this._markClosed()},this._parseEventChunk=function(e){if(!e||e.length===0)return null;this.debug&&console.debug(e);let t={id:null,retry:null,data:null,event:null};if(e.split(/\n|\r\n|\r/).forEach(function(e){let n=e.indexOf(this.FIELD_SEPARATOR),r,i;if(n>0){let t=e[n+1]===` `?2:1;r=e.substring(0,n),i=e.substring(n+t)}else if(n<0)r=e,i=``;else return;r in t&&(r===`data`&&t[r]!==null?t.data+=`
|
|
58
58
|
`+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
|
|
59
59
|
`);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($.OPEN)}},this.stream=function(){if(!this.xhr){this._setReadyState($.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()};$.INITIALIZING=-1,$.CONNECTING=0,$.OPEN=1,$.CLOSED=2;var kn=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??$)(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())}},An=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null)),jn=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=An(t);return this.options.apiKey&&(n.apiKey=this.options.apiKey),new kn(`${this.options.apiUrl}${e}`,n,r)}async fetchData(e,t,n={},r={}){let i=`${this.options.apiUrl}${e}?${new URLSearchParams(An(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:
|
|
60
60
|
`,{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:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./DK3lEKRX.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,`searchParams`,{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder,new TextDecoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),ee(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=_(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function te(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function re(e){let t=[];return{pattern:e===`/`?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_kvl68p?.base??`/configurator`,de=globalThis.__sveltekit_kvl68p?.assets??x??``,fe=`1788984576380`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_kvl68p?.data&&globalThis.__sveltekit_kvl68p.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&<(t))}}W.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Ot(e,t={}){return e=new URL(_e(e)),e.origin===ge?st(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function kt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function At(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ot(),!q){let e=Ft(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ot()}),navigator.connection?.saveData||Dt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=be(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=xe(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Tt({url:r,type:`link`,event:t})?q=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(J=!0,ze(Y),e(r),!s.replace_state)return;J=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Nt)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Z={},n===Y)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===X&&(Ze||s)){i!==k.state&&(k.state=i),e(a),N[Y]=T(),r&&scrollTo(r.x,r.y),Y=n;return}let c=n-Y;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{Y=n,X=o},block:()=>{history.go(-c)},nav_token:Z,event:t})}else J||(e(new URL(location.href)),z.hash&&location.reload())}),addEventListener(`hashchange`,()=>{J&&(J=!1,history.replaceState({...history.state,[S]:++Y,[C]:X},``,location.href))});for(let e of document.querySelectorAll(`link`))Re.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(A.current=null)});function e(e){G.url=k.url=e,F.page.set(It(k)),F.page.notify()}}async function jt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await St(u,!1)||{}),d=Ue.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Mt(r.uses)),ft({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:ht(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await dt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await bt({status:ke(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await ut(f,e,p)}function Mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Nt=!1;function Pt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Rt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Nt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Nt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Ft(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function It(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Lt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,A as i,nt as n,j as o,F as r,Te as s,Ot as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Ct as r,D as i,Dt as a,E as o,Gt as s,H as c,I as l,J as u,K as d,L as f,Lt as p,M as m,Mt as h,N as g,Ot as _,Q as v,R as y,Rt as b,S as x,St as S,T as C,Tt as w,U as T,V as E,X as D,Y as O,Z as k,_ as A,_t as j,bt as M,c as ee,ct as te,d as ne,dt as re,g as N,h as P,ht as F,i as I,it as ie,j as ae,k as oe,kt as L,l as R,lt as se,m as ce,mt as z,nt as B,o as V,ot as H,p as le,qt as U,r as ue,rt as W,s as de,tt as G,u as fe,v as K,x as pe,xt as q,y as me,yt as he,z as ge}from"./DK3lEKRX.js";import{n as _e}from"./CsGLkWF6.js";import{i as ve}from"./BJVrdkuG.js";import{i as ye,o as be,v as xe}from"./lj2Jt22R.js";import{A as Se,C as J,D as Ce,E as we,F as Te,G as Ee,H as Y,I as De,J as Oe,K as X,M as ke,N as Ae,O as je,P as Me,S as Ne,T as Pe,U as Z,V as Fe,W as Ie,Y as Le,_ as Re,a as ze,b as Be,c as Ve,f as He,g as Ue,h as We,i as Ge,j as Ke,k as qe,l as Je,m as Ye,n as Xe,o as Ze,p as Qe,q as $e,r as et,s as tt,t as Q,u as nt,v as rt,w as it,x as at,y as ot}from"./CrAgD5Zd.js";import{n as $}from"./DHHLckcz.js";import{n as st,t as ct}from"./I5DxyXWx.js";import{t as lt}from"./DmZKIk3Y.js";var ut=Array(12).fill(0),dt=D(`<div class="sonner-loading-bar"></div>`),ft=D(`<div><div class="sonner-spinner"></div></div>`);function pt(e,t){b(t,!0);let r=V(t,`visible`,7),a=V(t,`class`,7);var c={get visible(){return r()},set visible(e){r(e),h()},get class(){return a()},set class(e){a(e),h()}},l=ft(),d=M(l);return n(d,23,()=>ut,(e,t)=>`spinner-bar-${t}`,(e,t)=>{u(e,dt())}),s(d),s(l),z(e=>{o(l,1,e),K(l,`data-visible`,r())},[()=>i([`sonner-loading-wrapper`,a()].filter(Boolean).join(` `))]),u(e,l),p(c)}I(pt,{visible:{},class:{}},[],[],{mode:`open`});function mt(e){return e.label!==void 0}function ht(){let e=a(r(typeof document<`u`?document.hidden:!1));return F(()=>ie(document,`visibilitychange`,()=>{w(e,document.hidden,!0)})),{get current(){return H(e)}}}var gt=4e3,_t=14,vt=45,yt=200,bt=.05,xt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function St(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ct(e){return 1/(1.5+Math.abs(e)/20)}var wt=D(`<div><!></div>`),Tt=D(`<button data-close-button=""><!></button>`),Et=D(`<div data-icon=""><!> <!></div>`),Dt=D(`<div data-description=""><!></div>`),Ot=D(`<button data-button="" data-cancel=""> </button>`),kt=D(`<button data-button=""> </button>`),At=D(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),jt=D(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Mt(t,n){b(n,!0);let r=e=>{var t=O(),n=q(t),r=e=>{var t=wt();f(M(t),N),s(t),z(e=>{o(t,1,e),K(t,`data-visible`,H(Y)===`loading`)},[()=>i(Oe(H(ze)?.loader,c()?.classes?.loader,`sonner-loader`))]),u(e,t)},a=e=>{{let t=L(()=>Oe(H(ze)?.loader,c().classes?.loader)),n=L(()=>H(Y)===`loading`);pt(e,{get class(){return H(t)},get visible(){return H(n)}})}};T(n,e=>{N()?e(r):e(a,-1)}),u(e,t)},c=V(n,`toast`,7),m=V(n,`index`,7),g=V(n,`expanded`,7),_=V(n,`invert`,7),v=V(n,`position`,7),y=V(n,`visibleToasts`,7),x=V(n,`expandByDefault`,7),E=V(n,`closeButton`,7),D=V(n,`interacting`,7),k=V(n,`cancelButtonStyle`,7,``),A=V(n,`actionButtonStyle`,7,``),j=V(n,`duration`,7),te=V(n,`descriptionClass`,7,``),ne=V(n,`classes`,7),re=V(n,`unstyled`,7,!1),N=V(n,`loadingIcon`,7),P=V(n,`successIcon`,7),I=V(n,`errorIcon`,7),ie=V(n,`warningIcon`,7),ae=V(n,`closeIcon`,7),oe=V(n,`infoIcon`,7),R=V(n,`defaultRichColors`,7,!1),ce=V(n,`swipeDirections`,7),le=V(n,`closeButtonAriaLabel`,7),G=V(n,`pauseWhenPageIsHidden`,7);de(n,`$$slots.$$events.$$legacy.$$host.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`));let pe={...xt},me=a(!1),he=a(!1),ge=a(!1),_e=a(!1),ve=a(!1),ye=a(0),be=a(0),xe=c().duration||j()||gt,Se=a(null),J=a(void 0),Ce=a(null),we=a(null),Te=L(()=>m()===0),Ee=L(()=>m()+1<=y()),Y=L(()=>c().type),De=L(()=>c().dismissible===void 0?c().dismissable!==!1:c().dismissible!==!1),ke=L(()=>c().class||``),Ae=L(()=>c().descriptionClass||``),je=L(()=>X.heights.findIndex(e=>e.toastId===c().id)||0),Me=L(()=>c().closeButton??E()),Ne=L(()=>c().duration??j()??gt),Pe=null,Z=L(()=>v().split(`-`)),Fe=L(()=>X.heights.reduce((e,t,n)=>n>=H(je)?e:e+t.height,0)),Ie=ht(),Le=L(()=>c().invert||_()),Re=L(()=>H(Y)===`loading`),ze=L(()=>({...pe,...ne()})),Be=L(()=>c().title),Ve=L(()=>c().description),He=a(0),Ue=a(0),We=L(()=>Math.round(H(je)*_t+H(Fe)));F(()=>{H(Be),H(Ve);let e;e=g()||x()?1:1-m()*bt;let t=se(()=>H(J));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,r=t.getBoundingClientRect().height,i=Math.round(r/e+2**-52&100)/100;t.style.removeProperty(`height`);let a;a=Math.abs(i-n)<1?i:n,w(be,a,!0),X.setHeight({toastId:c().id,height:a})});function Ge(){w(he,!0),w(ye,H(We),!0),X.removeHeight(c().id),setTimeout(()=>{X.remove(c().id)},yt)}let Ke,qe=L(()=>c().promise&&H(Y)===`loading`||c().duration===1/0);function Je(){w(He,new Date().getTime(),!0),Ke=setTimeout(()=>{c().onAutoClose?.(c()),Ge()},xe)}function Ye(){if(H(Ue)<H(He)){let e=new Date().getTime()-H(He);xe-=e}w(Ue,new Date().getTime(),!0)}F(()=>{c().updated&&(clearTimeout(Ke),xe=H(Ne),Je())}),F(()=>(H(qe)||(g()||D()||G()&&Ie.current?Ye():Je()),()=>clearTimeout(Ke))),ue(()=>{w(me,!0);let e=H(J)?.getBoundingClientRect().height;return w(be,e,!0),X.setHeight({toastId:c().id,height:e}),()=>{X.removeHeight(c().id)}}),F(()=>{c().delete&&se(()=>{Ge(),c().onDismiss?.(c())})});let Xe=e=>{if(H(Re))return;w(ye,H(We),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(w(ge,!0),Pe={x:e.clientX,y:e.clientY})},Ze=()=>{if(H(_e)||!H(De))return;Pe=null;let e=Number(H(J)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(H(J)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(H(Se)?.getTime()??0),r=H(Ce)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=vt||i>.11){w(ye,H(We),!0),c().onDismiss?.(c()),H(Ce)===`x`?w(we,e>0?`right`:`left`,!0):w(we,t>0?`down`:`up`,!0),Ge(),w(_e,!0);return}else H(J)?.style.setProperty(`--swipe-amount-x`,`0px`),H(J)?.style.setProperty(`--swipe-amount-y`,`0px`);w(ve,!1),w(ge,!1),w(Ce,null)},Qe=e=>{if(!Pe||!H(De)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Pe.y,n=e.clientX-Pe.x,r=ce()??St(v());!H(Ce)&&(Math.abs(n)>1||Math.abs(t)>1)&&w(Ce,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(H(Ce)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*Ct(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(H(Ce)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*Ct(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&w(ve,!0),H(J)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),H(J)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},$e=()=>{w(ge,!1),w(Ce,null),Pe=null},et=L(()=>c().icon?c().icon:H(Y)===`success`?P():H(Y)===`error`?I():H(Y)===`warning`?ie():H(Y)===`info`?oe():H(Y)===`loading`?N():null);var tt={get toast(){return c()},set toast(e){c(e),h()},get index(){return m()},set index(e){m(e),h()},get expanded(){return g()},set expanded(e){g(e),h()},get invert(){return _()},set invert(e){_(e),h()},get position(){return v()},set position(e){v(e),h()},get visibleToasts(){return y()},set visibleToasts(e){y(e),h()},get expandByDefault(){return x()},set expandByDefault(e){x(e),h()},get closeButton(){return E()},set closeButton(e){E(e),h()},get interacting(){return D()},set interacting(e){D(e),h()},get cancelButtonStyle(){return k()},set cancelButtonStyle(e=``){k(e),h()},get actionButtonStyle(){return A()},set actionButtonStyle(e=``){A(e),h()},get duration(){return j()},set duration(e){j(e),h()},get descriptionClass(){return te()},set descriptionClass(e=``){te(e),h()},get classes(){return ne()},set classes(e){ne(e),h()},get unstyled(){return re()},set unstyled(e=!1){re(e),h()},get loadingIcon(){return N()},set loadingIcon(e){N(e),h()},get successIcon(){return P()},set successIcon(e){P(e),h()},get errorIcon(){return I()},set errorIcon(e){I(e),h()},get warningIcon(){return ie()},set warningIcon(e){ie(e),h()},get closeIcon(){return ae()},set closeIcon(e){ae(e),h()},get infoIcon(){return oe()},set infoIcon(e){oe(e),h()},get defaultRichColors(){return R()},set defaultRichColors(e=!1){R(e),h()},get swipeDirections(){return ce()},set swipeDirections(e){ce(e),h()},get closeButtonAriaLabel(){return le()},set closeButtonAriaLabel(e){le(e),h()},get pauseWhenPageIsHidden(){return G()},set pauseWhenPageIsHidden(e){G(e),h()}},Q=jt();K(Q,`tabindex`,0);let nt;var rt=M(Q),it=e=>{var t=Tt();f(M(t),()=>ae()??U),s(t),z(e=>{K(t,`aria-label`,le()),K(t,`data-disabled`,H(Re)),o(t,1,e)},[()=>i(Oe(H(ze)?.closeButton,c()?.classes?.closeButton))]),B(`click`,t,()=>{H(Re)||!H(De)||(Ge(),c().onDismiss?.(c()))}),u(e,t)};T(rt,e=>{H(Me)&&!c().component&&H(Y)!==`loading`&&ae()!==null&&e(it)});var at=S(rt,2),ot=e=>{let t=L(()=>c().component);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps,{closeToast:Ge}))}),u(e,n)},$=t=>{var n=At(),a=q(n),p=e=>{var t=Et(),n=M(t),a=e=>{var t=O(),n=q(t),i=e=>{var t=O();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{r(e)};T(n,e=>{c().icon?e(i):e(a,-1)}),u(e,t)};T(n,e=>{(c().promise||H(Y)===`loading`)&&e(a)});var d=S(n,2),p=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},i=e=>{var t=O();f(q(t),()=>P()??U),u(e,t)},a=e=>{var t=O();f(q(t),()=>I()??U),u(e,t)},o=e=>{var t=O();f(q(t),()=>ie()??U),u(e,t)},s=e=>{var t=O();f(q(t),()=>oe()??U),u(e,t)};T(n,e=>{c().icon?e(r):H(Y)===`success`?e(i,1):H(Y)===`error`?e(a,2):H(Y)===`warning`?e(o,3):H(Y)===`info`&&e(s,4)}),u(e,t)};T(d,e=>{c().type!==`loading`&&e(p)}),s(t),z(e=>o(t,1,e),[()=>i(Oe(H(ze)?.icon,c()?.classes?.icon))]),u(e,t)};T(a,e=>{(H(Y)||c().icon||c().promise)&&c().icon!==null&&(H(et)!==null||c().icon)&&e(p)});var m=S(a,2),h=M(m),g=M(h),_=t=>{var n=O(),r=q(n),i=e=>{let t=L(()=>c().title);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps))}),u(e,n)},a=t=>{var n=e();z(()=>d(n,c().title)),u(t,n)};T(r,e=>{typeof c().title==`string`?e(a,-1):e(i)}),u(t,n)};T(g,e=>{c().title&&e(_)}),s(h);var v=S(h,2),y=t=>{var n=Dt(),r=M(n),a=e=>{let t=L(()=>c().description);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps))}),u(e,n)},f=t=>{var n=e();z(()=>d(n,c().description)),u(t,n)};T(r,e=>{typeof c().description==`string`?e(f,-1):e(a)}),s(n),z(e=>o(n,1,e),[()=>i(Oe(te(),H(Ae),H(ze)?.description,c().classes?.description))]),u(t,n)};T(v,e=>{c().description&&e(y)}),s(m);var b=S(m,2),x=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().cancel,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Ot(),n=M(t,!0);s(t),z(e=>{C(t,c().cancelButtonStyle??k()),o(t,1,e),d(n,c().cancel.label)},[()=>i(Oe(H(ze)?.cancelButton,c()?.classes?.cancelButton))]),B(`click`,t,e=>{mt(c().cancel)&&H(De)&&(c().cancel?.onClick?.(e),Ge())}),u(e,t)},f=L(()=>mt(c().cancel));T(n,e=>{typeof c().cancel==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};T(b,e=>{c().cancel&&e(x)});var w=S(b,2),E=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().action,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=kt(),n=M(t,!0);s(t),z(e=>{C(t,c().actionButtonStyle??A()),o(t,1,e),d(n,c().action.label)},[()=>i(Oe(H(ze)?.actionButton,c()?.classes?.actionButton))]),B(`click`,t,e=>{mt(c().action)&&(c().action?.onClick(e),!e.defaultPrevented&&Ge())}),u(e,t)},f=L(()=>mt(c().action));T(n,e=>{typeof c().action==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};T(w,e=>{c().action&&e(E)}),z((e,t)=>{o(m,1,e),o(h,1,t)},[()=>i(Oe(H(ze)?.content,c()?.classes?.content)),()=>i(Oe(H(ze)?.title,c()?.classes?.title))]),u(t,n)};return T(at,e=>{c().component?e(ot):e($,-1)}),s(Q),fe(Q,e=>w(J,e),()=>H(J)),z((e,t,r)=>{o(Q,1,e),K(Q,`aria-live`,c().important?`assertive`:`polite`),K(Q,`data-rich-colors`,c().richColors??R()),K(Q,`data-styled`,!(c().component||c().unstyled||re())),K(Q,`data-mounted`,H(me)),K(Q,`data-promise`,t),K(Q,`data-swiped`,H(ve)),K(Q,`data-removed`,H(he)),K(Q,`data-visible`,H(Ee)),K(Q,`data-y-position`,H(Z)[0]),K(Q,`data-x-position`,H(Z)[1]),K(Q,`data-index`,m()),K(Q,`data-front`,H(Te)),K(Q,`data-swiping`,H(ge)),K(Q,`data-dismissible`,H(De)),K(Q,`data-type`,H(Y)),K(Q,`data-invert`,H(Le)),K(Q,`data-swipe-out`,H(_e)),K(Q,`data-swipe-direction`,H(we)),K(Q,`data-expanded`,r),nt=C(Q,`${n.style} ${c().style}`,nt,{"--index":m(),"--toasts-before":m(),"--z-index":X.toasts.length-m(),"--offset":`${H(he)?H(ye):H(We)}px`,"--initial-height":x()?`auto`:`${H(be)}px`})},[()=>i(Oe(n.class,H(ke),H(ze)?.toast,c()?.classes?.toast,H(ze)?.[H(Y)],c()?.classes?.[H(Y)])),()=>!!c().promise,()=>!!(g()||x()&&H(me))]),B(`pointermove`,Q,Qe),B(`pointerup`,Q,Ze),B(`pointerdown`,Q,Xe),W(`dragend`,Q,$e),u(t,Q),p(tt)}G([`pointermove`,`pointerup`,`pointerdown`,`click`]),I(Mt,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`});var Nt=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function Pt(e){u(e,Nt())}I(Pt,{},[],[],{mode:`open`});var Ft=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function It(e){u(e,Ft())}I(It,{},[],[],{mode:`open`});var Lt=k(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function Rt(e){u(e,Lt())}I(Rt,{},[],[],{mode:`open`});var zt=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function Bt(e){u(e,zt())}I(Bt,{},[],[],{mode:`open`});var Vt=k(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function Ht(e){u(e,Vt())}I(Ht,{},[],[],{mode:`open`});var Ut=3,Wt=`24px`,Gt=`16px`,Kt=4e3,qt=356,Jt=14,Yt=`dark`,Xt=`light`;function Zt(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Gt:Wt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var Qt=D(`<ol></ol>`),$t=D(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),en={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
|
|
1
|
+
import{$ as e,A as t,B as n,Ct as r,D as i,Dt as a,E as o,Gt as s,H as c,I as l,J as u,K as d,L as f,Lt as p,M as m,Mt as h,N as g,Ot as _,Q as v,R as y,Rt as b,S as x,St as S,T as C,Tt as w,U as T,V as E,X as D,Y as O,Z as k,_ as A,_t as j,bt as M,c as ee,ct as te,d as ne,dt as re,g as N,h as P,ht as F,i as I,it as ie,j as ae,k as oe,kt as L,l as R,lt as se,m as ce,mt as z,nt as B,o as V,ot as H,p as le,qt as U,r as ue,rt as W,s as de,tt as G,u as fe,v as K,x as pe,xt as q,y as me,yt as he,z as ge}from"./DK3lEKRX.js";import{n as _e}from"./CsGLkWF6.js";import{i as ve}from"./BJVrdkuG.js";import{i as ye,o as be,v as xe}from"./W0DG3qIi.js";import{A as Se,C as J,D as Ce,E as we,F as Te,G as Ee,H as Y,I as De,J as Oe,K as X,M as ke,N as Ae,O as je,P as Me,S as Ne,T as Pe,U as Z,V as Fe,W as Ie,Y as Le,_ as Re,a as ze,b as Be,c as Ve,f as He,g as Ue,h as We,i as Ge,j as Ke,k as qe,l as Je,m as Ye,n as Xe,o as Ze,p as Qe,q as $e,r as et,s as tt,t as Q,u as nt,v as rt,w as it,x as at,y as ot}from"./C7GamMay.js";import{n as $}from"./DHHLckcz.js";import{n as st,t as ct}from"./I5DxyXWx.js";import{t as lt}from"./DmZKIk3Y.js";var ut=Array(12).fill(0),dt=D(`<div class="sonner-loading-bar"></div>`),ft=D(`<div><div class="sonner-spinner"></div></div>`);function pt(e,t){b(t,!0);let r=V(t,`visible`,7),a=V(t,`class`,7);var c={get visible(){return r()},set visible(e){r(e),h()},get class(){return a()},set class(e){a(e),h()}},l=ft(),d=M(l);return n(d,23,()=>ut,(e,t)=>`spinner-bar-${t}`,(e,t)=>{u(e,dt())}),s(d),s(l),z(e=>{o(l,1,e),K(l,`data-visible`,r())},[()=>i([`sonner-loading-wrapper`,a()].filter(Boolean).join(` `))]),u(e,l),p(c)}I(pt,{visible:{},class:{}},[],[],{mode:`open`});function mt(e){return e.label!==void 0}function ht(){let e=a(r(typeof document<`u`?document.hidden:!1));return F(()=>ie(document,`visibilitychange`,()=>{w(e,document.hidden,!0)})),{get current(){return H(e)}}}var gt=4e3,_t=14,vt=45,yt=200,bt=.05,xt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function St(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Ct(e){return 1/(1.5+Math.abs(e)/20)}var wt=D(`<div><!></div>`),Tt=D(`<button data-close-button=""><!></button>`),Et=D(`<div data-icon=""><!> <!></div>`),Dt=D(`<div data-description=""><!></div>`),Ot=D(`<button data-button="" data-cancel=""> </button>`),kt=D(`<button data-button=""> </button>`),At=D(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),jt=D(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Mt(t,n){b(n,!0);let r=e=>{var t=O(),n=q(t),r=e=>{var t=wt();f(M(t),N),s(t),z(e=>{o(t,1,e),K(t,`data-visible`,H(Y)===`loading`)},[()=>i(Oe(H(ze)?.loader,c()?.classes?.loader,`sonner-loader`))]),u(e,t)},a=e=>{{let t=L(()=>Oe(H(ze)?.loader,c().classes?.loader)),n=L(()=>H(Y)===`loading`);pt(e,{get class(){return H(t)},get visible(){return H(n)}})}};T(n,e=>{N()?e(r):e(a,-1)}),u(e,t)},c=V(n,`toast`,7),m=V(n,`index`,7),g=V(n,`expanded`,7),_=V(n,`invert`,7),v=V(n,`position`,7),y=V(n,`visibleToasts`,7),x=V(n,`expandByDefault`,7),E=V(n,`closeButton`,7),D=V(n,`interacting`,7),k=V(n,`cancelButtonStyle`,7,``),A=V(n,`actionButtonStyle`,7,``),j=V(n,`duration`,7),te=V(n,`descriptionClass`,7,``),ne=V(n,`classes`,7),re=V(n,`unstyled`,7,!1),N=V(n,`loadingIcon`,7),P=V(n,`successIcon`,7),I=V(n,`errorIcon`,7),ie=V(n,`warningIcon`,7),ae=V(n,`closeIcon`,7),oe=V(n,`infoIcon`,7),R=V(n,`defaultRichColors`,7,!1),ce=V(n,`swipeDirections`,7),le=V(n,`closeButtonAriaLabel`,7),G=V(n,`pauseWhenPageIsHidden`,7);de(n,`$$slots.$$events.$$legacy.$$host.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`));let pe={...xt},me=a(!1),he=a(!1),ge=a(!1),_e=a(!1),ve=a(!1),ye=a(0),be=a(0),xe=c().duration||j()||gt,Se=a(null),J=a(void 0),Ce=a(null),we=a(null),Te=L(()=>m()===0),Ee=L(()=>m()+1<=y()),Y=L(()=>c().type),De=L(()=>c().dismissible===void 0?c().dismissable!==!1:c().dismissible!==!1),ke=L(()=>c().class||``),Ae=L(()=>c().descriptionClass||``),je=L(()=>X.heights.findIndex(e=>e.toastId===c().id)||0),Me=L(()=>c().closeButton??E()),Ne=L(()=>c().duration??j()??gt),Pe=null,Z=L(()=>v().split(`-`)),Fe=L(()=>X.heights.reduce((e,t,n)=>n>=H(je)?e:e+t.height,0)),Ie=ht(),Le=L(()=>c().invert||_()),Re=L(()=>H(Y)===`loading`),ze=L(()=>({...pe,...ne()})),Be=L(()=>c().title),Ve=L(()=>c().description),He=a(0),Ue=a(0),We=L(()=>Math.round(H(je)*_t+H(Fe)));F(()=>{H(Be),H(Ve);let e;e=g()||x()?1:1-m()*bt;let t=se(()=>H(J));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,r=t.getBoundingClientRect().height,i=Math.round(r/e+2**-52&100)/100;t.style.removeProperty(`height`);let a;a=Math.abs(i-n)<1?i:n,w(be,a,!0),X.setHeight({toastId:c().id,height:a})});function Ge(){w(he,!0),w(ye,H(We),!0),X.removeHeight(c().id),setTimeout(()=>{X.remove(c().id)},yt)}let Ke,qe=L(()=>c().promise&&H(Y)===`loading`||c().duration===1/0);function Je(){w(He,new Date().getTime(),!0),Ke=setTimeout(()=>{c().onAutoClose?.(c()),Ge()},xe)}function Ye(){if(H(Ue)<H(He)){let e=new Date().getTime()-H(He);xe-=e}w(Ue,new Date().getTime(),!0)}F(()=>{c().updated&&(clearTimeout(Ke),xe=H(Ne),Je())}),F(()=>(H(qe)||(g()||D()||G()&&Ie.current?Ye():Je()),()=>clearTimeout(Ke))),ue(()=>{w(me,!0);let e=H(J)?.getBoundingClientRect().height;return w(be,e,!0),X.setHeight({toastId:c().id,height:e}),()=>{X.removeHeight(c().id)}}),F(()=>{c().delete&&se(()=>{Ge(),c().onDismiss?.(c())})});let Xe=e=>{if(H(Re))return;w(ye,H(We),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(w(ge,!0),Pe={x:e.clientX,y:e.clientY})},Ze=()=>{if(H(_e)||!H(De))return;Pe=null;let e=Number(H(J)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(H(J)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(H(Se)?.getTime()??0),r=H(Ce)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=vt||i>.11){w(ye,H(We),!0),c().onDismiss?.(c()),H(Ce)===`x`?w(we,e>0?`right`:`left`,!0):w(we,t>0?`down`:`up`,!0),Ge(),w(_e,!0);return}else H(J)?.style.setProperty(`--swipe-amount-x`,`0px`),H(J)?.style.setProperty(`--swipe-amount-y`,`0px`);w(ve,!1),w(ge,!1),w(Ce,null)},Qe=e=>{if(!Pe||!H(De)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Pe.y,n=e.clientX-Pe.x,r=ce()??St(v());!H(Ce)&&(Math.abs(n)>1||Math.abs(t)>1)&&w(Ce,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(H(Ce)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*Ct(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(H(Ce)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*Ct(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&w(ve,!0),H(J)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),H(J)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},$e=()=>{w(ge,!1),w(Ce,null),Pe=null},et=L(()=>c().icon?c().icon:H(Y)===`success`?P():H(Y)===`error`?I():H(Y)===`warning`?ie():H(Y)===`info`?oe():H(Y)===`loading`?N():null);var tt={get toast(){return c()},set toast(e){c(e),h()},get index(){return m()},set index(e){m(e),h()},get expanded(){return g()},set expanded(e){g(e),h()},get invert(){return _()},set invert(e){_(e),h()},get position(){return v()},set position(e){v(e),h()},get visibleToasts(){return y()},set visibleToasts(e){y(e),h()},get expandByDefault(){return x()},set expandByDefault(e){x(e),h()},get closeButton(){return E()},set closeButton(e){E(e),h()},get interacting(){return D()},set interacting(e){D(e),h()},get cancelButtonStyle(){return k()},set cancelButtonStyle(e=``){k(e),h()},get actionButtonStyle(){return A()},set actionButtonStyle(e=``){A(e),h()},get duration(){return j()},set duration(e){j(e),h()},get descriptionClass(){return te()},set descriptionClass(e=``){te(e),h()},get classes(){return ne()},set classes(e){ne(e),h()},get unstyled(){return re()},set unstyled(e=!1){re(e),h()},get loadingIcon(){return N()},set loadingIcon(e){N(e),h()},get successIcon(){return P()},set successIcon(e){P(e),h()},get errorIcon(){return I()},set errorIcon(e){I(e),h()},get warningIcon(){return ie()},set warningIcon(e){ie(e),h()},get closeIcon(){return ae()},set closeIcon(e){ae(e),h()},get infoIcon(){return oe()},set infoIcon(e){oe(e),h()},get defaultRichColors(){return R()},set defaultRichColors(e=!1){R(e),h()},get swipeDirections(){return ce()},set swipeDirections(e){ce(e),h()},get closeButtonAriaLabel(){return le()},set closeButtonAriaLabel(e){le(e),h()},get pauseWhenPageIsHidden(){return G()},set pauseWhenPageIsHidden(e){G(e),h()}},Q=jt();K(Q,`tabindex`,0);let nt;var rt=M(Q),it=e=>{var t=Tt();f(M(t),()=>ae()??U),s(t),z(e=>{K(t,`aria-label`,le()),K(t,`data-disabled`,H(Re)),o(t,1,e)},[()=>i(Oe(H(ze)?.closeButton,c()?.classes?.closeButton))]),B(`click`,t,()=>{H(Re)||!H(De)||(Ge(),c().onDismiss?.(c()))}),u(e,t)};T(rt,e=>{H(Me)&&!c().component&&H(Y)!==`loading`&&ae()!==null&&e(it)});var at=S(rt,2),ot=e=>{let t=L(()=>c().component);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps,{closeToast:Ge}))}),u(e,n)},$=t=>{var n=At(),a=q(n),p=e=>{var t=Et(),n=M(t),a=e=>{var t=O(),n=q(t),i=e=>{var t=O();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{r(e)};T(n,e=>{c().icon?e(i):e(a,-1)}),u(e,t)};T(n,e=>{(c().promise||H(Y)===`loading`)&&e(a)});var d=S(n,2),p=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},i=e=>{var t=O();f(q(t),()=>P()??U),u(e,t)},a=e=>{var t=O();f(q(t),()=>I()??U),u(e,t)},o=e=>{var t=O();f(q(t),()=>ie()??U),u(e,t)},s=e=>{var t=O();f(q(t),()=>oe()??U),u(e,t)};T(n,e=>{c().icon?e(r):H(Y)===`success`?e(i,1):H(Y)===`error`?e(a,2):H(Y)===`warning`?e(o,3):H(Y)===`info`&&e(s,4)}),u(e,t)};T(d,e=>{c().type!==`loading`&&e(p)}),s(t),z(e=>o(t,1,e),[()=>i(Oe(H(ze)?.icon,c()?.classes?.icon))]),u(e,t)};T(a,e=>{(H(Y)||c().icon||c().promise)&&c().icon!==null&&(H(et)!==null||c().icon)&&e(p)});var m=S(a,2),h=M(m),g=M(h),_=t=>{var n=O(),r=q(n),i=e=>{let t=L(()=>c().title);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps))}),u(e,n)},a=t=>{var n=e();z(()=>d(n,c().title)),u(t,n)};T(r,e=>{typeof c().title==`string`?e(a,-1):e(i)}),u(t,n)};T(g,e=>{c().title&&e(_)}),s(h);var v=S(h,2),y=t=>{var n=Dt(),r=M(n),a=e=>{let t=L(()=>c().description);var n=O();l(q(n),()=>H(t),(e,t)=>{t(e,ee(()=>c().componentProps))}),u(e,n)},f=t=>{var n=e();z(()=>d(n,c().description)),u(t,n)};T(r,e=>{typeof c().description==`string`?e(f,-1):e(a)}),s(n),z(e=>o(n,1,e),[()=>i(Oe(te(),H(Ae),H(ze)?.description,c().classes?.description))]),u(t,n)};T(v,e=>{c().description&&e(y)}),s(m);var b=S(m,2),x=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().cancel,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Ot(),n=M(t,!0);s(t),z(e=>{C(t,c().cancelButtonStyle??k()),o(t,1,e),d(n,c().cancel.label)},[()=>i(Oe(H(ze)?.cancelButton,c()?.classes?.cancelButton))]),B(`click`,t,e=>{mt(c().cancel)&&H(De)&&(c().cancel?.onClick?.(e),Ge())}),u(e,t)},f=L(()=>mt(c().cancel));T(n,e=>{typeof c().cancel==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};T(b,e=>{c().cancel&&e(x)});var w=S(b,2),E=e=>{var t=O(),n=q(t),r=e=>{var t=O();l(q(t),()=>c().action,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=kt(),n=M(t,!0);s(t),z(e=>{C(t,c().actionButtonStyle??A()),o(t,1,e),d(n,c().action.label)},[()=>i(Oe(H(ze)?.actionButton,c()?.classes?.actionButton))]),B(`click`,t,e=>{mt(c().action)&&(c().action?.onClick(e),!e.defaultPrevented&&Ge())}),u(e,t)},f=L(()=>mt(c().action));T(n,e=>{typeof c().action==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};T(w,e=>{c().action&&e(E)}),z((e,t)=>{o(m,1,e),o(h,1,t)},[()=>i(Oe(H(ze)?.content,c()?.classes?.content)),()=>i(Oe(H(ze)?.title,c()?.classes?.title))]),u(t,n)};return T(at,e=>{c().component?e(ot):e($,-1)}),s(Q),fe(Q,e=>w(J,e),()=>H(J)),z((e,t,r)=>{o(Q,1,e),K(Q,`aria-live`,c().important?`assertive`:`polite`),K(Q,`data-rich-colors`,c().richColors??R()),K(Q,`data-styled`,!(c().component||c().unstyled||re())),K(Q,`data-mounted`,H(me)),K(Q,`data-promise`,t),K(Q,`data-swiped`,H(ve)),K(Q,`data-removed`,H(he)),K(Q,`data-visible`,H(Ee)),K(Q,`data-y-position`,H(Z)[0]),K(Q,`data-x-position`,H(Z)[1]),K(Q,`data-index`,m()),K(Q,`data-front`,H(Te)),K(Q,`data-swiping`,H(ge)),K(Q,`data-dismissible`,H(De)),K(Q,`data-type`,H(Y)),K(Q,`data-invert`,H(Le)),K(Q,`data-swipe-out`,H(_e)),K(Q,`data-swipe-direction`,H(we)),K(Q,`data-expanded`,r),nt=C(Q,`${n.style} ${c().style}`,nt,{"--index":m(),"--toasts-before":m(),"--z-index":X.toasts.length-m(),"--offset":`${H(he)?H(ye):H(We)}px`,"--initial-height":x()?`auto`:`${H(be)}px`})},[()=>i(Oe(n.class,H(ke),H(ze)?.toast,c()?.classes?.toast,H(ze)?.[H(Y)],c()?.classes?.[H(Y)])),()=>!!c().promise,()=>!!(g()||x()&&H(me))]),B(`pointermove`,Q,Qe),B(`pointerup`,Q,Ze),B(`pointerdown`,Q,Xe),W(`dragend`,Q,$e),u(t,Q),p(tt)}G([`pointermove`,`pointerup`,`pointerdown`,`click`]),I(Mt,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`});var Nt=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function Pt(e){u(e,Nt())}I(Pt,{},[],[],{mode:`open`});var Ft=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function It(e){u(e,Ft())}I(It,{},[],[],{mode:`open`});var Lt=k(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function Rt(e){u(e,Lt())}I(Rt,{},[],[],{mode:`open`});var zt=k(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function Bt(e){u(e,zt())}I(Bt,{},[],[],{mode:`open`});var Vt=k(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function Ht(e){u(e,Vt())}I(Ht,{},[],[],{mode:`open`});var Ut=3,Wt=`24px`,Gt=`16px`,Kt=4e3,qt=356,Jt=14,Yt=`dark`,Xt=`light`;function Zt(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Gt:Wt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var Qt=D(`<ol></ol>`),$t=D(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),en={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
|
|
2
2
|
[data-sonner-toaster][dir='ltr'] {--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%);}html[dir='rtl'],
|
|
3
3
|
[data-sonner-toaster][dir='rtl'] {--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%);}[data-sonner-toaster] {position:fixed;width:var(--width);font-family:ui-sans-serif,
|
|
4
4
|
system-ui,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DK3lEKRX.js";import{a as e,i as t,r as n}from"./
|
|
1
|
+
import"./DK3lEKRX.js";import{a as e,i as t,r as n}from"./nkdIuSLi.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DnB99G2N.js","../chunks/CibALFW0.js","../chunks/B1Joifa9.js","../chunks/DK3lEKRX.js","../chunks/CsGLkWF6.js","../chunks/BaFk5JeE.js","../chunks/CFKVnMbq.js","../chunks/CLWqXHLZ.js","../chunks/BFwiU0IZ.js","../nodes/1.DaqCyvgg.js","../chunks/nkdIuSLi.js","../chunks/wBAqx-SG.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../nodes/2.F3TuebRJ.js","../chunks/DjVmpym-.js","../chunks/C7GamMay.js","../chunks/W0DG3qIi.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/DHHLckcz.js","../chunks/BpZBEnLx.js","../chunks/I5DxyXWx.js","../nodes/3.BbNw4LYP.js","../chunks/q8gaG5yu.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.DnB99G2N.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.DaqCyvgg.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.F3TuebRJ.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,4,20,21,11,22,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.BbNw4LYP.js`),__vite__mapDeps([23,10,3,1,2,16,15,17,5,18,19,4,20,21,11,24,22,25,26,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/DK3lEKRX.js";import{n as e,s as t}from"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/BaFk5JeE.js";import"../chunks/BFwiU0IZ.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
|
|
2
2
|
* @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
|
|
3
3
|
*/
|
|
4
4
|
const CHAT_CONFIG_OVERRIDE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/
|
|
1
|
+
import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DUHuqsF-.js";import{t as f}from"../chunks/wBAqx-SG.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,Jt as l,K as u,Lt as d,Mt as f,N as p,Rt as m,St as h,T as g,Tt as _,U as v,V as y,Wt as b,X as x,Y as S,b as C,bt as w,c as ee,dt as T,ht as E,i as D,j as te,k as O,kt as k,lt as A,mt as j,o as M,ot as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/DK3lEKRX.js";import{t as z}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DK5x2wSR.js","../chunks/C7GamMay.js","../chunks/CibALFW0.js","../chunks/DjVmpym-.js","../chunks/DK3lEKRX.js","../chunks/W0DG3qIi.js","../chunks/BaFk5JeE.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/CsGLkWF6.js","../chunks/DHHLckcz.js","../chunks/q8gaG5yu.js","../chunks/I5DxyXWx.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js","../chunks/CFKVnMbq.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../chunks/CNNudH1c.js","../chunks/BndQp4ie.js","../chunks/CYSkUxy-.js","../chunks/BFwiU0IZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,Jt as l,K as u,Lt as d,Mt as f,N as p,Rt as m,St as h,T as g,Tt as _,U as v,V as y,Wt as b,X as x,Y as S,b as C,bt as w,c as ee,dt as T,ht as E,i as D,j as te,k as O,kt as k,lt as A,mt as j,o as M,ot as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/DK3lEKRX.js";import{t as z}from"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import{t as B}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{c as ie,i as V,l as H,o as U}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import{t as ae}from"../chunks/wBAqx-SG.js";import{t as oe}from"../chunks/BpZBEnLx.js";import"../chunks/W0DG3qIi.js";import{B as se,H as W,I as G,L as K,R as ce,U as q,V as J,a as le,d as ue,h as de,i as fe,n as pe,o as me,r as he,s as ge,t as _e,u as ve,z as ye}from"../chunks/C7GamMay.js";import{n as Y}from"../chunks/DHHLckcz.js";import{n as X,t as be}from"../chunks/I5DxyXWx.js";var Z=x(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={hash:`svelte-1inuijp`,code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
|
|
3
3
|
|
|
4
4
|
@media (min-width: 768px) {display:block;
|
|
5
5
|
}}`};function Se(t,n){m(n,!1),e(t,xe);let r=M(n,`name`,12),i=M(n,`key`,12),a=M(n,`value`,12);var s={get name(){return r()},set name(e){r(e),f()},get key(){return i()},set key(e){i(e),f()},get value(){return a()},set value(e){a(e),f()}},l=Z(),p=w(l),_=h(p,2),v=w(_,!0);return o(_),o(l),j(()=>{I(l,`title`,`Color ${i()}: ${a()}`),g(p,`background-color: var(--color-${r()??``}-${i()??``});`),u(v,i())}),c(t,l),d(s)}D(Se,{name:{},key:{},value:{}},[],[],{mode:`open`});var Ce=x(`<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon="" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>`);function we(e){c(e,Ce())}D(we,{},[],[],{mode:`open`});var Te=x(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-4x0tmq">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
|
|
@@ -47,4 +47,4 @@ CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.559
|
|
|
47
47
|
|
|
48
48
|
/* Keep widget hidden until the component marks itself ready (avoids barebone/unthemed flash) */liipgpt-search-summary .search-summary:not(.search-summary--ready) {opacity:0;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
|
|
49
49
|
#chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
|
|
50
|
-
/* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),e(n,We);let u=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=k(()=>l.data);E(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>N(f).options?.esm?.value?`/build/${e}/liipgpt-${e}.js`:`/build/${e}/liipgpt-${e}.iife.js`,g=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),y=async e=>{e===`build`&&(await B(()=>import(p(`chat`)),[],import.meta.url),await B(()=>import(p(`button`)),[],import.meta.url),await B(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/
|
|
50
|
+
/* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),e(n,We);let u=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=k(()=>l.data);E(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>N(f).options?.esm?.value?`/build/${e}/liipgpt-${e}.js`:`/build/${e}/liipgpt-${e}.iife.js`,g=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),y=async e=>{e===`build`&&(await B(()=>import(p(`chat`)),[],import.meta.url),await B(()=>import(p(`button`)),[],import.meta.url),await B(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/DK5x2wSR.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url),await B(()=>import(`../chunks/BndQp4ie.js`),__vite__mapDeps([19,12,4,2,9,6,13,8,7,10,14,15,18]),import.meta.url),await B(()=>import(`../chunks/CYSkUxy-.js`),__vite__mapDeps([20,3,12,4,2,5,6,7,15,17,21]),import.meta.url)),e===`server`&&(B(()=>import(U(l.data.options,`chat`)),[],import.meta.url),B(()=>import(U(l.data.options,`button`)),[],import.meta.url),B(()=>import(U(l.data.options,`search-summary`)),[],import.meta.url))},x=k(()=>l.data.options?.[`preview-mode`]?.value??`server`);E(()=>{y(N(x))});let C=`./sidebar${ae.url.search}`,D=i(void 0),O=i(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};E(()=>{N(D)&&A(N(D),N(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),E(()=>{N(O)&&N(f).embedTab===`chat`?A(N(O),N(f).options.onclosechat.value||``):N(O)&&N(O).replaceChildren()});let M=k(()=>N(f)&&N(f).options[`preview-components`].value),ne=k(()=>N(f).embedTab===`chat`),se=k(()=>N(f).embedTab===`search-summary`);E(()=>{if(!N(se)){H();return}let e=N(f).options[`use-chat-config`]?.value?``:N(f).options[`host-css`]?.value??``;e?ie(e):H()});var W=Ue();te(`1uha8ag`,e=>{var t=S(),n=R(t),r=e=>{T(()=>{L.title=`LiipGPT Configurator | Components`})},i=e=>{T(()=>{L.title=`LiipGPT Configurator`})};v(n,e=>{N(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var G=w(W);let K;var ce=w(G),q=e=>{var t=ze();j(()=>I(t,`src`,C)),c(e,t)};v(ce,e=>{N(f).options[`hide-sidebar`].value||e(q)}),o(G);var J=h(G,2),le=e=>{oe(e,{mode:`show`})};v(J,e=>{N(f).options[`hide-sidebar`].value&&e(le)}),s(h(J,2),()=>N(f),e=>{var n=S(),r=R(n),i=e=>{var n=S();t(R(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,ee(()=>u))}),c(e,n)},s=e=>{var t=He();let n;var r=w(t),i=e=>{var t=Be(),n=h(w(t),6),r=w(n),i=h(w(r),6),a=h(w(i),2),s=h(w(a),14),l=h(w(s),2),u=w(l);u.value=u.__value=``;var d=h(u);d.value=d.__value=`ch`;var f=h(d);f.value=f.__value=`de`;var p=h(f);p.value=p.__value=`at`,o(l),o(s);var m=h(s,12),g=h(w(m),2),_=w(g);_.value=_.__value=``;var v=h(_);v.value=v.__value=`a`;var y=h(v);y.value=y.__value=`b`;var x=h(y);x.value=x.__value=`c`,o(g),o(m),b(2),o(a),o(i),b(16),o(r),b(2),o(n),o(t),c(e,t)};v(r,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-form`].value&&e(i)});var s=h(r,2),l=e=>{var t=S(),n=R(t),r=e=>{var t=Ve();j(()=>I(t,`src`,N(f).options[`preview-background`].value)),c(e,t)},i=k(()=>g(N(f).options[`preview-background`].value));v(n,e=>{N(i)&&e(r)}),c(e,t)};v(s,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-background`].value&&e(l)});var u=h(s,2);F(u,e=>_(D,e),()=>N(D));var d=h(u,2);re(d,()=>V(N(f).options,N(f).embedTab,!1,!0)),F(h(d,2),e=>_(O,e),()=>N(O)),o(t),j(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":N(f).options.flyout.value&&N(f).options[`preview-background`].value&&g(N(f).options[`preview-background`].value),"search-summary-preview":N(se)})]),c(e,t)};v(r,e=>{N(M)?e(i):e(s,-1)}),c(e,n)}),o(W),j(()=>{a(W,1,r([{"components-preview":N(M)}]),`svelte-1uha8ag`),K=a(G,1,`sidebar-slot svelte-1uha8ag`,null,K,{"sidebar-slot--hidden":N(f).options[`hide-sidebar`].value})}),c(n,W),d()}D($,{},[],[],{mode:`open`});export{$ as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/DK3lEKRX.js";import"../chunks/
|
|
1
|
+
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/DK3lEKRX.js";import"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/CLWqXHLZ.js";import{a as se,i as ce}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import"../chunks/wBAqx-SG.js";import{n as le,r as ue,t as de}from"../chunks/BpZBEnLx.js";import"../chunks/W0DG3qIi.js";import"../chunks/C7GamMay.js";import"../chunks/q8gaG5yu.js";import"../chunks/DHHLckcz.js";import"../chunks/I5DxyXWx.js";import"../chunks/DmZKIk3Y.js";import"../chunks/MqTIsSeD.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case I:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=M(e[o]);r?r.nodes.push(n):t.push(n);break}case ne:case re:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ne&&a!==re&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=P(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===I)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=N(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case te:{let e=n.pop();if(i.length>0){let t=M(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(M(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new j(()=>new Set),o=new j(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new j(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:F(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
|
|
4
4
|
`,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1788984576380"}
|
package/configurator/index.html
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.C7KBUclR.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/nkdIuSLi.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/DK3lEKRX.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.N8qcqFkp.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_kvl68p = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.C7KBUclR.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.N8qcqFkp.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.C7KBUclR.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/nkdIuSLi.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/DK3lEKRX.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.N8qcqFkp.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_kvl68p = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.C7KBUclR.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.N8qcqFkp.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/index.cjs
CHANGED
package/index.js
CHANGED