/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const dt=window,Zt=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xt=Symbol(),ae=new WeakMap;let Te=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Xt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Zt&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=ae.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ae.set(n,t))}return t}toString(){return this.cssText}};const cn=e=>new Te(typeof e=="string"?e:e+"",void 0,Xt),sr=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((i,r,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[s+1],e[0]);return new Te(n,e,Xt)},un=(e,t)=>{Zt?e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const i=document.createElement("style"),r=dt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,e.appendChild(i)})},le=Zt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return cn(n)})(e):e;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var Tt;const gt=window,ce=gt.trustedTypes,hn=ce?ce.emptyScript:"",ue=gt.reactiveElementPolyfillSupport,xt={toAttribute(e,t){switch(t){case Boolean:e=e?hn:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Pe=(e,t)=>t!==e&&(t==t||e==e),Pt={attribute:!0,type:String,converter:xt,reflect:!1,hasChanged:Pe},Vt="finalized";let x=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((n,i)=>{const r=this._$Ep(i,n);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,n=Pt){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,n);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,n,i){return{get(){return this[n]},set(r){const s=this[t];this[n]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Pt}static finalize(){if(this.hasOwnProperty(Vt))return!1;this[Vt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const n=this.properties,i=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const r of i)this.createProperty(r,n[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)n.unshift(le(r))}else t!==void 0&&n.push(le(t));return n}static _$Ep(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(n=>n(this))}addController(t){var n,i;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var t;const n=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return un(n,this.constructor.elementStyles),n}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var i;return(i=n.hostConnected)===null||i===void 0?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var i;return(i=n.hostDisconnected)===null||i===void 0?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EO(t,n,i=Pt){var r;const s=this.constructor._$Ep(t,i);if(s!==void 0&&i.reflect===!0){const o=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:xt).toAttribute(n,i.type);this._$El=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(t,n){var i;const r=this.constructor,s=r._$Ev.get(t);if(s!==void 0&&this._$El!==s){const o=r.getPropertyOptions(s),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:xt;this._$El=s,this[s]=l.fromAttribute(n,o.type),this._$El=null}}requestUpdate(t,n,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Pe)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,s)=>this[s]=r),this._$Ei=void 0);let n=!1;const i=this._$AL;try{n=this.shouldUpdate(i),n?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostUpdate)===null||s===void 0?void 0:s.call(r)}),this.update(i)):this._$Ek()}catch(r){throw n=!1,this._$Ek(),r}n&&this._$AE(i)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)===null||n===void 0||n.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((n,i)=>this._$EO(i,this[i],n)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};x[Vt]=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},ue==null||ue({ReactiveElement:x}),((Tt=gt.reactiveElementVersions)!==null&&Tt!==void 0?Tt:gt.reactiveElementVersions=[]).push("1.6.3");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var Bt;const pt=window,K=pt.trustedTypes,he=K?K.createPolicy("lit-html",{createHTML:e=>e}):void 0,jt="$lit$",U=`lit$${(Math.random()+"").slice(9)}$`,Be="?"+U,dn=`<${Be}>`,H=document,nt=()=>H.createComment(""),it=e=>e===null||typeof e!="object"&&typeof e!="function",Me=Array.isArray,fn=e=>Me(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Mt=`[ \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,fe=/>/g,k=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,pe=/"/g,Ne=/^(?:script|style|textarea|title)$/i,Re=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),ar=Re(1),lr=Re(2),z=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),me=new WeakMap,F=H.createTreeWalker(H,129,null,!1);function Ie(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return he!==void 0?he.createHTML(t):t}const gn=(e,t)=>{const n=e.length-1,i=[];let r,s=t===2?"":"",o=Z;for(let l=0;l"?(o=r??Z,f=-1):u[1]===void 0?f=-2:(f=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?k:u[3]==='"'?pe:ge):o===pe||o===ge?o=k:o===de||o===fe?o=Z:(o=k,r=void 0);const d=o===k&&e[l+1].startsWith("/>")?" ":"";s+=o===Z?a+dn:f>=0?(i.push(c),a.slice(0,f)+jt+a.slice(f)+U+d):a+U+(f===-2?(i.push(void 0),l):d)}return[Ie(e,s+(e[n]||"")+(t===2?"":"")),i]};class rt{constructor({strings:t,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const l=t.length-1,a=this.parts,[c,u]=gn(t,n);if(this.el=rt.createElement(c,i),F.currentNode=this.el.content,n===2){const f=this.el.content,h=f.firstChild;h.remove(),f.append(...h.childNodes)}for(;(r=F.nextNode())!==null&&a.length0){r.textContent=K?K.emptyScript:"";for(let d=0;d2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=J(this,t,n,0),o=!it(t)||t!==this._$AH&&t!==z,o&&(this._$AH=t);else{const l=t;let a,c;for(t=s[0],a=0;a{var i,r;const s=(i=n==null?void 0:n.renderBefore)!==null&&i!==void 0?i:t;let o=s._$litPart$;if(o===void 0){const l=(r=n==null?void 0:n.renderBefore)!==null&&r!==void 0?r:null;s._$litPart$=o=new at(t.insertBefore(nt(),l),l,void 0,n??{})}return o._$AI(e),o};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var Nt,Rt;class ft extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const i=super.createRenderRoot();return(t=(n=this.renderOptions).renderBefore)!==null&&t!==void 0||(n.renderBefore=i.firstChild),i}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wn(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return z}}ft.finalized=!0,ft._$litElement$=!0,(Nt=globalThis.litElementHydrateSupport)===null||Nt===void 0||Nt.call(globalThis,{LitElement:ft});const Ae=globalThis.litElementPolyfillSupport;Ae==null||Ae({LitElement:ft});((Rt=globalThis.litElementVersions)!==null&&Rt!==void 0?Rt:globalThis.litElementVersions=[]).push("3.3.3");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const cr=e=>t=>typeof t=="function"?((n,i)=>(customElements.define(n,i),i))(e,t):((n,i)=>{const{kind:r,elements:s}=i;return{kind:r,elements:s,finisher(o){customElements.define(n,o)}}})(e,t);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const $n=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}},_n=(e,t,n)=>{t.constructor.createProperty(n,e)};function Cn(e){return(t,n)=>n!==void 0?_n(e,t,n):$n(e,t)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function ur(e){return Cn({...e,state:!0})}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var It;((It=window.HTMLSlotElement)===null||It===void 0?void 0:It.prototype.assignedElements)!=null;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Sn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},bn=e=>(...t)=>({_$litDirective$:e,values:t});class Tn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const hr=bn(class extends Tn{constructor(e){var t;if(super(e),e.type!==Sn.ATTRIBUTE||e.name!=="class"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,i;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!(!((n=this.nt)===null||n===void 0)&&n.has(s))&&this.it.add(s);return this.render(t)}const r=e.element.classList;this.it.forEach(s=>{s in t||(r.remove(s),this.it.delete(s))});for(const s in t){const o=!!t[s];o===this.it.has(s)||!((i=this.nt)===null||i===void 0)&&i.has(s)||(o?(r.add(s),this.it.add(s)):(r.remove(s),this.it.delete(s)))}return z}});function Pn(e,t){e.indexOf(t)===-1&&e.push(t)}const Ue=(e,t,n)=>Math.min(Math.max(n,e),t),N={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},mt=e=>typeof e=="number",j=e=>Array.isArray(e)&&!mt(e[0]),Bn=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e};function Mn(e,t){return j(e)?e[Bn(0,e.length,t)]:e}const Le=(e,t,n)=>-n*e+n*t+e,De=()=>{},D=e=>e,te=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function Oe(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=te(0,t,i);e.push(Le(n,1,r))}}function Nn(e){const t=[0];return Oe(t,e-1),t}function Rn(e,t=Nn(e.length),n=D){const i=e.length,r=i-t.length;return r>0&&Oe(t,r),s=>{let o=0;for(;oArray.isArray(e)&&mt(e[0]),Kt=e=>typeof e=="object"&&!!e.createAnimation,Y=e=>typeof e=="function",In=e=>typeof e=="string",tt={ms:e=>e*1e3,s:e=>e/1e3},Fe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Un=1e-7,Ln=12;function Dn(e,t,n,i,r){let s,o,l=0;do o=t+(n-t)/2,s=Fe(o,i,r)-e,s>0?n=o:t=o;while(Math.abs(s)>Un&&++lDn(s,0,1,e,n);return s=>s===0||s===1?s:Fe(r(s),t,i)}const On=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*e,r=t==="end"?Math.floor(i):Math.ceil(i);return Ue(0,1,r/e)},kn={ease:X(.25,.1,.25,1),"ease-in":X(.42,0,1,1),"ease-in-out":X(.42,0,.58,1),"ease-out":X(0,0,.58,1)},Fn=/\((.*?)\)/;function Ee(e){if(Y(e))return e;if(ke(e))return X(...e);const t=kn[e];if(t)return t;if(e.startsWith("steps")){const n=Fn.exec(e);if(n){const i=n[1].split(",");return On(parseFloat(i[0]),i[1].trim())}}return D}class He{constructor(t,n=[0,1],{easing:i,duration:r=N.duration,delay:s=N.delay,endDelay:o=N.endDelay,repeat:l=N.repeat,offset:a,direction:c="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=D,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,d)=>{this.resolve=h,this.reject=d}),i=i||N.easing,Kt(i)){const h=i.createAnimation(n);i=h.easing,n=h.keyframes||n,r=h.duration||r}this.repeat=l,this.easing=j(i)?D:Ee(i),this.updateDuration(r);const f=Rn(n,a,j(i)?i.map(Ee):D);this.tick=h=>{var d;s=s;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(h-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-s,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);const A=g/this.duration;let S=Math.floor(A),m=A%1;!m&&A>=1&&(m=1),m===1&&S--;const E=S%2;(c==="reverse"||c==="alternate"&&E||c==="alternate-reverse"&&!E)&&(m=1-m);const y=g>=this.totalDuration?1:Math.min(m,1),p=f(this.easing(y));t(p),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+o)?(this.playState="finished",(d=this.resolve)===null||d===void 0||d.call(this,p)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Hn{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Ut=new WeakMap;function ze(e){return Ut.has(e)||Ut.set(e,{transforms:[],values:new Map}),Ut.get(e)}function zn(e,t){return e.has(t)||e.set(t,new Hn),e.get(t)}const xn=["","X","Y","Z"],Vn=["translate","scale","rotate","skew"],yt={x:"translateX",y:"translateY",z:"translateZ"},ve={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},jn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:ve,scale:{syntax:"",initialValue:1,toDefaultUnit:D},skew:ve},st=new Map,ee=e=>`--motion-${e}`,At=["x","y","z"];Vn.forEach(e=>{xn.forEach(t=>{At.push(e+t),st.set(ee(e+t),jn[e])})});const Kn=(e,t)=>At.indexOf(e)-At.indexOf(t),Jn=new Set(At),xe=e=>Jn.has(e),Yn=(e,t)=>{yt[t]&&(t=yt[t]);const{transforms:n}=ze(e);Pn(n,t),e.style.transform=qn(n)},qn=e=>e.sort(Kn).reduce(Gn,"").trim(),Gn=(e,t)=>`${e} ${t}(var(${ee(t)}))`,Jt=e=>e.startsWith("--"),we=new Set;function Wn(e){if(!we.has(e)){we.add(e);try{const{syntax:t,initialValue:n}=st.has(e)?st.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch{}}}const Lt=(e,t)=>document.createElement("div").animate(e,t),$e={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Lt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Lt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Lt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Dt={},V={};for(const e in $e)V[e]=()=>(Dt[e]===void 0&&(Dt[e]=$e[e]()),Dt[e]);const Qn=.015,Zn=(e,t)=>{let n="";const i=Math.round(t/Qn);for(let r=0;rY(e)?V.linearEasing()?`linear(${Zn(e,t)})`:N.easing:ke(e)?Xn(e):e,Xn=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`;function ti(e,t){for(let n=0;nArray.isArray(e)?e:[e];function Yt(e){return yt[e]&&(e=yt[e]),xe(e)?ee(e):e}const ct={get:(e,t)=>{t=Yt(t);let n=Jt(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const i=st.get(t);i&&(n=i.initialValue)}return n},set:(e,t,n)=>{t=Yt(t),Jt(t)?e.style.setProperty(t,n):e.style[t]=n}};function Ve(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function ni(e,t){var n;let i=(t==null?void 0:t.toDefaultUnit)||D;const r=e[e.length-1];if(In(r)){const s=((n=r.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";s&&(i=o=>o+s)}return i}function ii(){return window.__MOTION_DEV_TOOLS_RECORD}function ri(e,t,n,i={},r){const s=ii(),o=i.record!==!1&&s;let l,{duration:a=N.duration,delay:c=N.delay,endDelay:u=N.endDelay,repeat:f=N.repeat,easing:h=N.easing,persist:d=!1,direction:g,offset:A,allowWebkitAcceleration:S=!1,autoplay:m=!0}=i;const E=ze(e),y=xe(t);let p=V.waapi();y&&Yn(e,t);const v=Yt(t),$=zn(E.values,v),_=st.get(v);return Ve($.animation,!(Kt(h)&&$.generator)&&i.record!==!1),()=>{const P=()=>{var C,I;return(I=(C=ct.get(e,v))!==null&&C!==void 0?C:_==null?void 0:_.initialValue)!==null&&I!==void 0?I:0};let w=ti(ei(n),P);const B=ni(w,_);if(Kt(h)){const C=h.createAnimation(w,t!=="opacity",P,v,$);h=C.easing,w=C.keyframes||w,a=C.duration||a}if(Jt(v)&&(V.cssRegisterProperty()?Wn(v):p=!1),y&&!V.linearEasing()&&(Y(h)||j(h)&&h.some(Y))&&(p=!1),p){_&&(w=w.map(T=>mt(T)?_.toDefaultUnit(T):T)),w.length===1&&(!V.partialKeyframes()||o)&&w.unshift(P());const C={delay:tt.ms(c),duration:tt.ms(a),endDelay:tt.ms(u),easing:j(h)?void 0:_e(h,a),direction:g,iterations:f+1,fill:"both"};l=e.animate({[v]:w,offset:A,easing:j(h)?h.map(T=>_e(T,a)):void 0},C),l.finished||(l.finished=new Promise((T,ln)=>{l.onfinish=T,l.oncancel=ln}));const I=w[w.length-1];l.finished.then(()=>{d||(ct.set(e,v,I),l.cancel())}).catch(De),S||(l.playbackRate=1.000001)}else if(r&&y)w=w.map(C=>typeof C=="string"?parseFloat(C):C),w.length===1&&w.unshift(parseFloat(P())),l=new r(C=>{ct.set(e,v,B?B(C):C)},w,Object.assign(Object.assign({},i),{duration:a,easing:h}));else{const C=w[w.length-1];ct.set(e,v,_&&mt(C)?_.toDefaultUnit(C):C)}return o&&s(e,t,w,{duration:a,delay:c,easing:h,repeat:f,offset:A},"motion-one"),$.setAnimation(l),l&&!m&&l.pause(),l}}const si=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function oi(e,t){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const ai=e=>e(),je=(e,t,n=N.duration)=>new Proxy({animations:e.map(ai).filter(Boolean),duration:n,options:t},ci),li=e=>e.animations[0],ci={get:(e,t)=>{const n=li(e);switch(t){case"duration":return e.duration;case"currentTime":return tt.s((n==null?void 0:n[t])||0);case"playbackRate":case"playState":return n==null?void 0:n[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(ui)).catch(De)),e.finished;case"stop":return()=>{e.animations.forEach(i=>Ve(i))};case"forEachNative":return i=>{e.animations.forEach(r=>i(r,e))};default:return typeof(n==null?void 0:n[t])>"u"?void 0:()=>e.animations.forEach(i=>i[t]())}},set:(e,t,n)=>{switch(t){case"currentTime":n=tt.ms(n);case"playbackRate":for(let i=0;ie.finished;function hi(e,t,n){return Y(e)?e(t,n):e}function di(e){return function(n,i,r={}){n=oi(n);const s=n.length,o=[];for(let l=0;l{const n=new He(e,[0,1],t);return n.finished.catch(()=>{}),n}],t,t.duration)}function dr(e,t,n){return(Y(e)?gi:fi)(e,t,n)}var $t={},pi=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ke={},M={};let ne;const mi=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];M.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};M.getSymbolTotalCodewords=function(t){return mi[t]};M.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};M.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');ne=t};M.isKanjiModeEnabled=function(){return typeof ne<"u"};M.toSJIS=function(t){return ne(t)};var _t={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},e.from=function(i,r){if(e.isValid(i))return i;try{return t(i)}catch{return r}}})(_t);function Je(){this.buffer=[],this.length=0}Je.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var yi=Je;function lt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}lt.prototype.set=function(e,t,n,i){const r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)};lt.prototype.get=function(e,t){return this.data[e*this.size+t]};lt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};lt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ai=lt,Ye={};(function(e){const t=M.getSymbolSize;e.getRowColCoords=function(i){if(i===1)return[];const r=Math.floor(i/7)+2,s=t(i),o=s===145?26:Math.ceil((s-13)/(2*r-2))*2,l=[s-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const s=r.size;let o=0,l=0,a=0,c=null,u=null;for(let f=0;f=5&&(o+=t.N1+(l-5)),c=d,l=1),d=r.get(h,f),d===u?a++:(a>=5&&(o+=t.N1+(a-5)),u=d,a=1)}l>=5&&(o+=t.N1+(l-5)),a>=5&&(o+=t.N1+(a-5))}return o},e.getPenaltyN2=function(r){const s=r.size;let o=0;for(let l=0;l=10&&(l===1488||l===93)&&o++,a=a<<1&2047|r.get(u,c),u>=10&&(a===1488||a===93)&&o++}return o*t.N3},e.getPenaltyN4=function(r){let s=0;const o=r.data.length;for(let a=0;a=0;){const o=s[0];for(let a=0;a0){const s=new Uint8Array(this.degree);return s.set(i,r),s}return i};var vi=ie,Ze={},O={},re={};re.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var R={};const Xe="[0-9]+",wi="[A-Z $%*+\\-./:]+";let ot="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ot=ot.replace(/u/g,"\\u");const $i="(?:(?![A-Z0-9 $%*+\\-./:]|"+ot+`)(?:.|[\r ]))+`;R.KANJI=new RegExp(ot,"g");R.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");R.BYTE=new RegExp($i,"g");R.NUMERIC=new RegExp(Xe,"g");R.ALPHANUMERIC=new RegExp(wi,"g");const _i=new RegExp("^"+ot+"$"),Ci=new RegExp("^"+Xe+"$"),Si=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");R.testKanji=function(t){return _i.test(t)};R.testNumeric=function(t){return Ci.test(t)};R.testAlphanumeric=function(t){return Si.test(t)};(function(e){const t=re,n=R;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return n.testNumeric(s)?e.NUMERIC:n.testAlphanumeric(s)?e.ALPHANUMERIC:n.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function i(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(s,o){if(e.isValid(s))return s;try{return i(s)}catch{return o}}})(O);(function(e){const t=M,n=Ct,i=_t,r=O,s=re,o=7973,l=t.getBCHDigit(o);function a(h,d,g){for(let A=1;A<=40;A++)if(d<=e.getCapacity(A,g,h))return A}function c(h,d){return r.getCharCountIndicator(h,d)+4}function u(h,d){let g=0;return h.forEach(function(A){const S=c(A.mode,d);g+=S+A.getBitsLength()}),g}function f(h,d){for(let g=1;g<=40;g++)if(u(h,g)<=e.getCapacity(g,d,r.MIXED))return g}e.from=function(d,g){return s.isValid(d)?parseInt(d,10):g},e.getCapacity=function(d,g,A){if(!s.isValid(d))throw new Error("Invalid QR Code version");typeof A>"u"&&(A=r.BYTE);const S=t.getSymbolTotalCodewords(d),m=n.getTotalCodewordsCount(d,g),E=(S-m)*8;if(A===r.MIXED)return E;const y=E-c(A,d);switch(A){case r.NUMERIC:return Math.floor(y/10*3);case r.ALPHANUMERIC:return Math.floor(y/11*2);case r.KANJI:return Math.floor(y/13);case r.BYTE:default:return Math.floor(y/8)}},e.getBestVersionForData=function(d,g){let A;const S=i.from(g,i.M);if(Array.isArray(d)){if(d.length>1)return f(d,S);if(d.length===0)return 1;A=d[0]}else A=d;return a(A.mode,A.getLength(),S)},e.getEncodedBits=function(d){if(!s.isValid(d)||d<7)throw new Error("Invalid QR Code version");let g=d<<12;for(;t.getBCHDigit(g)-l>=0;)g^=o<=0;)r^=en<0&&(i=this.data.substr(n),r=parseInt(i,10),t.put(r,s*3+1))};var Pi=q;const Bi=O,Ot=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function G(e){this.mode=Bi.ALPHANUMERIC,this.data=e}G.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};G.prototype.getLength=function(){return this.data.length};G.prototype.getBitsLength=function(){return G.getBitsLength(this.data.length)};G.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let i=Ot.indexOf(this.data[n])*45;i+=Ot.indexOf(this.data[n+1]),t.put(i,11)}this.data.length%2&&t.put(Ot.indexOf(this.data[n]),6)};var Mi=G,Ni=function(t){for(var n=[],i=t.length,r=0;r=55296&&s<=56319&&i>r+1){var o=t.charCodeAt(r+1);o>=56320&&o<=57343&&(s=(s-55296)*1024+o-56320+65536,r+=1)}if(s<128){n.push(s);continue}if(s<2048){n.push(s>>6|192),n.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128);continue}if(s>=65536&&s<=1114111){n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Ri=Ni,Ii=O;function W(e){this.mode=Ii.BYTE,typeof e=="string"&&(e=Ri(e)),this.data=new Uint8Array(e)}W.getBitsLength=function(t){return t*8};W.prototype.getLength=function(){return this.data.length};W.prototype.getBitsLength=function(){return W.getBitsLength(this.data.length)};W.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Oi=Q,rn={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,i,r){var s={},o={};o[i]=0;var l=t.PriorityQueue.make();l.push(i,0);for(var a,c,u,f,h,d,g,A,S;!l.empty();){a=l.pop(),c=a.value,f=a.cost,h=n[c]||{};for(u in h)h.hasOwnProperty(u)&&(d=h[u],g=f+d,A=o[u],S=typeof o[u]>"u",(S||A>g)&&(o[u]=g,l.push(u,g),s[u]=c))}if(typeof r<"u"&&typeof o[r]>"u"){var m=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(m)}return s},extract_shortest_path_from_predecessor_list:function(n,i){for(var r=[],s=i;s;)r.push(s),n[s],s=n[s];return r.reverse(),r},find_path:function(n,i,r){var s=t.single_source_shortest_paths(n,i,r);return t.extract_shortest_path_from_predecessor_list(s,r)},PriorityQueue:{make:function(n){var i=t.PriorityQueue,r={},s;n=n||{};for(s in i)i.hasOwnProperty(s)&&(r[s]=i[s]);return r.queue=[],r.sorter=n.sorter||i.default_sorter,r},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var r={value:n,cost:i};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(rn);var ki=rn.exports;(function(e){const t=O,n=Pi,i=Mi,r=Ui,s=Oi,o=R,l=M,a=ki;function c(m){return unescape(encodeURIComponent(m)).length}function u(m,E,y){const p=[];let v;for(;(v=m.exec(y))!==null;)p.push({data:v[0],index:v.index,mode:E,length:v[0].length});return p}function f(m){const E=u(o.NUMERIC,t.NUMERIC,m),y=u(o.ALPHANUMERIC,t.ALPHANUMERIC,m);let p,v;return l.isKanjiModeEnabled()?(p=u(o.BYTE,t.BYTE,m),v=u(o.KANJI,t.KANJI,m)):(p=u(o.BYTE_KANJI,t.BYTE,m),v=[]),E.concat(y,p,v).sort(function(_,P){return _.index-P.index}).map(function(_){return{data:_.data,mode:_.mode,length:_.length}})}function h(m,E){switch(E){case t.NUMERIC:return n.getBitsLength(m);case t.ALPHANUMERIC:return i.getBitsLength(m);case t.KANJI:return s.getBitsLength(m);case t.BYTE:return r.getBitsLength(m)}}function d(m){return m.reduce(function(E,y){const p=E.length-1>=0?E[E.length-1]:null;return p&&p.mode===y.mode?(E[E.length-1].data+=y.data,E):(E.push(y),E)},[])}function g(m){const E=[];for(let y=0;y=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(s+l,o+a,!0,!0):e.set(s+l,o+a,!1,!0))}}function Yi(e){const t=e.size;for(let n=8;n>l&1)===1,e.set(r,s,o,!0),e.set(s,r,o,!0)}function Ht(e,t,n){const i=e.size,r=ji.getEncodedBits(t,n);let s,o;for(s=0;s<15;s++)o=(r>>s&1)===1,s<6?e.set(s,8,o,!0):s<8?e.set(s+1,8,o,!0):e.set(i-15+s,8,o,!0),s<8?e.set(8,i-s-1,o,!0):s<9?e.set(8,15-s-1+1,o,!0):e.set(8,15-s-1,o,!0);e.set(i-8,8,1,!0)}function Wi(e,t){const n=e.size;let i=-1,r=n-1,s=7,o=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,l-a)){let c=!1;o>>s&1)===1),e.set(r,l-a,c),s--,s===-1&&(o++,s=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}function Qi(e,t,n){const i=new Fi;n.forEach(function(a){i.put(a.mode.bit,4),i.put(a.getLength(),Ki.getCharCountIndicator(a.mode,e)),a.write(i)});const r=bt.getSymbolTotalCodewords(e),s=Wt.getTotalCodewordsCount(e,t),o=(r-s)*8;for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const l=(o-i.getLengthInBits())/8;for(let a=0;a=7&&Gi(a,t),Wi(a,o),isNaN(i)&&(i=Gt.getBestMask(a,Ht.bind(null,a,n))),Gt.applyMask(i,a),Ht(a,n,i),{modules:a,version:t,errorCorrectionLevel:n,maskPattern:i,segments:r}}Ke.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let i=kt.M,r,s;return typeof n<"u"&&(i=kt.from(n.errorCorrectionLevel,kt.M),r=vt.from(n.version),s=Gt.from(n.maskPattern),n.toSJISFunc&&bt.setToSJISFunction(n.toSJISFunc)),Xi(t,r,i,s)};var sn={},se={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(s){return[s,s]}))),i.length===6&&i.push("F","F");const r=parseInt(i.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+i.slice(0,6).join("")}}e.getOptions=function(i){i||(i={}),i.color||(i.color={});const r=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,s=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:s,scale:s?4:o,margin:r,color:{dark:t(i.color.dark||"#000000ff"),light:t(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},e.getScale=function(i,r){return r.width&&r.width>=i+r.margin*2?r.width/(i+r.margin*2):r.scale},e.getImageWidth=function(i,r){const s=e.getScale(i,r);return Math.floor((i+r.margin*2)*s)},e.qrToImageData=function(i,r,s){const o=r.modules.size,l=r.modules.data,a=e.getScale(o,s),c=Math.floor((o+s.margin*2)*a),u=s.margin*a,f=[s.color.light,s.color.dark];for(let h=0;h=u&&d>=u&&h"u"&&(!o||!o.getContext)&&(a=o,o=void 0),o||(c=i()),a=t.getOptions(a);const u=t.getImageWidth(s.modules.size,a),f=c.getContext("2d"),h=f.createImageData(u,u);return t.qrToImageData(h.data,s,a),n(f,c,u),f.putImageData(h,0,0),c},e.renderToDataURL=function(s,o,l){let a=l;typeof a>"u"&&(!o||!o.getContext)&&(a=o,o=void 0),a||(a={});const c=e.render(s,o,a),u=a.type||"image/png",f=a.rendererOpts||{};return c.toDataURL(u,f.quality)}})(sn);var on={};const tr=se;function be(e,t){const n=e.a/255,i=t+'="'+e.hex+'"';return n<1?i+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function zt(e,t,n){let i=e+t;return typeof n<"u"&&(i+=" "+n),i}function er(e,t,n){let i="",r=0,s=!1,o=0;for(let l=0;l0&&a>0&&e[l-1]||(i+=s?zt("M",a+n,.5+c+n):zt("m",r,0),r=0,s=!1),a+1':"",c="',u='viewBox="0 0 '+l+" "+l+'"',h=''+a+c+` `;return typeof i=="function"&&i(null,h),h};const nr=pi,Qt=Ke,an=sn,ir=on;function oe(e,t,n,i,r){const s=[].slice.call(arguments,1),o=s.length,l=typeof s[o-1]=="function";if(!l&&!nr())throw new Error("Callback required as last argument");if(l){if(o<2)throw new Error("Too few arguments provided");o===2?(r=n,n=t,t=i=void 0):o===3&&(t.getContext&&typeof r>"u"?(r=i,i=void 0):(r=i,i=n,n=t,t=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(n=t,t=i=void 0):o===2&&!t.getContext&&(i=n,n=t,t=void 0),new Promise(function(a,c){try{const u=Qt.create(n,i);a(e(u,t,i))}catch(u){c(u)}})}try{const a=Qt.create(n,i);r(null,e(a,t,i))}catch(a){r(a)}}$t.create=Qt.create;$t.toCanvas=oe.bind(null,an.render);$t.toDataURL=oe.bind(null,an.renderToDataURL);$t.toString=oe.bind(null,function(e,t,n){return ir.render(e,n)});/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const fr=e=>e??b;export{dr as a,lr as b,$t as c,cr as e,sr as i,fr as l,Cn as n,hr as o,ft as s,ur as t,ar as x};