@smileid/web-components 11.2.0 → 11.3.0
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/dist/esm/{DocumentCaptureScreens-BbtA-WkX.js → DocumentCaptureScreens-N-0o7eE5.js} +5 -5
- package/dist/esm/{DocumentCaptureScreens-BbtA-WkX.js.map → DocumentCaptureScreens-N-0o7eE5.js.map} +1 -1
- package/dist/esm/{EndUserConsent-HVufMamg.js → EndUserConsent-BgKCCMMn.js} +3 -3
- package/dist/esm/{EndUserConsent-HVufMamg.js.map → EndUserConsent-BgKCCMMn.js.map} +1 -1
- package/dist/esm/{Navigation-B-dqPkZj.js → Navigation-DOFYqTZt.js} +2 -2
- package/dist/esm/{Navigation-B-dqPkZj.js.map → Navigation-DOFYqTZt.js.map} +1 -1
- package/dist/esm/{SelfieCaptureScreens-ChAMfKi3.js → SelfieCaptureScreens-DKd0f7K8.js} +81 -81
- package/dist/esm/SelfieCaptureScreens-DKd0f7K8.js.map +1 -0
- package/dist/esm/{TotpConsent-XxR8TNxy.js → TotpConsent-BQm8j4-u.js} +2 -2
- package/dist/esm/{TotpConsent-XxR8TNxy.js.map → TotpConsent-BQm8j4-u.js.map} +1 -1
- package/dist/esm/combobox.js +1 -1
- package/dist/esm/document.js +1 -1
- package/dist/esm/end-user-consent.js +1 -1
- package/dist/esm/{index-B_ozpejI.js → index-Cjzs1eA_.js} +49 -49
- package/dist/esm/{index-B_ozpejI.js.map → index-Cjzs1eA_.js.map} +1 -1
- package/dist/esm/localisation.js +1 -1
- package/dist/esm/main.js +6 -6
- package/dist/esm/navigation.js +1 -1
- package/dist/esm/{package-u3FEJ3Fm.js → package-KQ2l43v1.js} +3 -3
- package/dist/esm/{package-u3FEJ3Fm.js.map → package-KQ2l43v1.js.map} +1 -1
- package/dist/esm/selfie.js +1 -1
- package/dist/esm/smart-camera-web.js +5 -5
- package/dist/esm/totp-consent.js +1 -1
- package/dist/package.json +1 -1
- package/dist/smart-camera-web.js +2 -2
- package/dist/smart-camera-web.js.map +1 -1
- package/lib/components/signature-pad/package.json +1 -1
- package/package.json +1 -1
- package/dist/esm/SelfieCaptureScreens-ChAMfKi3.js.map +0 -1
package/dist/smart-camera-web.js
CHANGED
|
@@ -1341,7 +1341,7 @@ ${this.hideAttribution?"":`
|
|
|
1341
1341
|
</div>
|
|
1342
1342
|
</div>
|
|
1343
1343
|
${dt(this.themeColor)}
|
|
1344
|
-
`}class H4 extends HTMLElement{constructor(){super(),this.templateString=N4.bind(this),this.render=()=>this.templateString(),this.attachShadow({mode:"open"})}connectedCallback(){var i,r;const t=document.createElement("template");t.innerHTML=this.render(),this.shadowRoot.appendChild(t.content.cloneNode(!0)),this.navigation=this.shadowRoot.querySelector("smileid-navigation"),this.takeDocumentPhotoButton=this.shadowRoot.querySelector("#take-photo"),this.uploadDocumentPhotoButton=this.shadowRoot.querySelector("#upload-photo"),(i=this.navigation)==null||i.addEventListener("navigation.back",()=>{this.handleBackEvents()}),(r=this.navigation)==null||r.addEventListener("navigation.close",()=>{this.handleCloseEvents()}),this.takeDocumentPhotoButton&&this.takeDocumentPhotoButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("document-capture-instructions.capture"))}),this.uploadDocumentPhotoButton&&this.uploadDocumentPhotoButton.addEventListener("change",n=>S(this,null,function*(){this.shadowRoot.querySelector("#error").innerHTML="";try{const{files:o}=n.target,s=yield O4.retrieve(o);this.dispatchEvent(new CustomEvent("document-capture-instructions.upload",{detail:{image:s,previewImage:s}}))}catch(o){this.shadowRoot.querySelector("#error").innerHTML=o.message}}))}get hideBack(){return this.hasAttribute("hide-back-to-host")}get showNavigation(){return this.hasAttribute("show-navigation")}get themeColor(){return this.getAttribute("theme-color")||"#001096"}get hideAttribution(){return this.hasAttribute("hide-attribution")}get documentCaptureModes(){return this.getAttribute("document-capture-modes")||"camera"}get supportBothCaptureModes(){const t=this.documentCaptureModes;return t.includes("camera")&&t.includes("upload")}get title(){return this.getAttribute("title")||y("document.title.front")}get sideOfId(){return(this.getAttribute("side-of-id")||"front").toLowerCase()}get isFrontOfId(){return this.sideOfId==="front"}get isBackOfId(){return!this.isFrontOfId}get direction(){return this.getAttribute("dir")||ut()||"ltr"}handleBackEvents(){this.dispatchEvent(new CustomEvent("document-capture-instructions.cancelled"))}handleCloseEvents(){this.dispatchEvent(new CustomEvent("document-capture-instructions.close"))}}"customElements"in window&&!customElements.get("document-capture-instructions")&&window.customElements.define("document-capture-instructions",H4);const fr={version:"11.
|
|
1344
|
+
`}class H4 extends HTMLElement{constructor(){super(),this.templateString=N4.bind(this),this.render=()=>this.templateString(),this.attachShadow({mode:"open"})}connectedCallback(){var i,r;const t=document.createElement("template");t.innerHTML=this.render(),this.shadowRoot.appendChild(t.content.cloneNode(!0)),this.navigation=this.shadowRoot.querySelector("smileid-navigation"),this.takeDocumentPhotoButton=this.shadowRoot.querySelector("#take-photo"),this.uploadDocumentPhotoButton=this.shadowRoot.querySelector("#upload-photo"),(i=this.navigation)==null||i.addEventListener("navigation.back",()=>{this.handleBackEvents()}),(r=this.navigation)==null||r.addEventListener("navigation.close",()=>{this.handleCloseEvents()}),this.takeDocumentPhotoButton&&this.takeDocumentPhotoButton.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("document-capture-instructions.capture"))}),this.uploadDocumentPhotoButton&&this.uploadDocumentPhotoButton.addEventListener("change",n=>S(this,null,function*(){this.shadowRoot.querySelector("#error").innerHTML="";try{const{files:o}=n.target,s=yield O4.retrieve(o);this.dispatchEvent(new CustomEvent("document-capture-instructions.upload",{detail:{image:s,previewImage:s}}))}catch(o){this.shadowRoot.querySelector("#error").innerHTML=o.message}}))}get hideBack(){return this.hasAttribute("hide-back-to-host")}get showNavigation(){return this.hasAttribute("show-navigation")}get themeColor(){return this.getAttribute("theme-color")||"#001096"}get hideAttribution(){return this.hasAttribute("hide-attribution")}get documentCaptureModes(){return this.getAttribute("document-capture-modes")||"camera"}get supportBothCaptureModes(){const t=this.documentCaptureModes;return t.includes("camera")&&t.includes("upload")}get title(){return this.getAttribute("title")||y("document.title.front")}get sideOfId(){return(this.getAttribute("side-of-id")||"front").toLowerCase()}get isFrontOfId(){return this.sideOfId==="front"}get isBackOfId(){return!this.isFrontOfId}get direction(){return this.getAttribute("dir")||ut()||"ltr"}handleBackEvents(){this.dispatchEvent(new CustomEvent("document-capture-instructions.cancelled"))}handleCloseEvents(){this.dispatchEvent(new CustomEvent("document-capture-instructions.close"))}}"customElements"in window&&!customElements.get("document-capture-instructions")&&window.customElements.define("document-capture-instructions",H4);const fr={version:"11.3.0"},U4=fr.version,H=document.querySelector("smart-camera-web");function Ut(e){return S(this,null,function*(){try{const t=yield $.getMedia({audio:!1,video:$.environmentOptions}),r=(yield navigator.mediaDevices.enumerateDevices()).find(n=>n.kind==="videoinput"&&t.getVideoTracks()[0].getSettings().deviceId===n.deviceId);H==null||H.dispatchEvent(new CustomEvent("metadata.camera-name",{detail:{cameraName:r==null?void 0:r.label}})),e.removeAttribute("data-camera-error"),e.setAttribute("data-camera-ready",!0)}catch(t){e.removeAttribute("data-camera-ready"),e.setAttribute("data-camera-error",$.handleCameraError(t))}})}class Tu extends HTMLElement{constructor(){super(),this.activeScreen=null,this.smartCameraWeb=this.closest("smart-camera-web"),H==null||H.dispatchEvent(new CustomEvent("metadata.initialize"))}connectedCallback(){this.innerHTML=`
|
|
1345
1345
|
${dt(this.themeColor)}
|
|
1346
1346
|
<div style="height: 100%;">
|
|
1347
1347
|
<document-capture-instructions theme-color='${this.themeColor}' id='document-capture-instructions-front' ${this.title}
|
|
@@ -3100,7 +3100,7 @@ ${this.hideAttribution?"":`
|
|
|
3100
3100
|
`}
|
|
3101
3101
|
</div>
|
|
3102
3102
|
</div>
|
|
3103
|
-
`}class J4 extends HTMLElement{constructor(){super(),this.templateString=Y4.bind(this),this.render=()=>this.templateString(),this.attachShadow({mode:"open"})}connectedCallback(){const t=document.createElement("template");t.innerHTML=this.render(),this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(t.content.cloneNode(!0)),this.setUpEventListeners()}static get observedAttributes(){return["hide-back-to-host","show-navigation","data-image","mirror-image"]}get hideBack(){return this.hasAttribute("hide-back-to-host")}get showNavigation(){return this.hasAttribute("show-navigation")}get themeColor(){return this.getAttribute("theme-color")||"#001096"}get hideAttribution(){return this.hasAttribute("hide-attribution")}get imageSrc(){return this.getAttribute("data-image")}get shouldMirror(){return this.getAttribute("mirror-image")!=="false"}get title(){return this.getAttribute("title")||y("selfie.review.title")}get direction(){return this.getAttribute("dir")||ut()||"ltr"}handleBackEvents(){this.dispatchEvent(new CustomEvent("selfie-capture-review.cancelled"))}handleCloseEvents(){this.dispatchEvent(new CustomEvent("selfie-capture-review.close"))}attributeChangedCallback(t){switch(t){case"data-image":case"hide-back-to-host":case"show-navigation":case"mirror-image":this.shadowRoot.innerHTML=this.render(),this.setUpEventListeners();break}}setUpEventListeners(){var t,i;this.selectImage=this.shadowRoot.querySelector("#select-id-image"),this.reCaptureImage=this.shadowRoot.querySelector("#re-capture-image"),this.navigation=this.shadowRoot.querySelector("smileid-navigation"),(t=this.navigation)==null||t.addEventListener("navigation.back",()=>{this.handleBackEvents()}),(i=this.navigation)==null||i.addEventListener("navigation.close",()=>{this.handleCloseEvents()}),this.selectImage.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("selfie-capture-review.accepted",{detail:{}}))}),this.reCaptureImage.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("selfie-capture-review.rejected",{detail:{}}))})}}"customElements"in window&&!customElements.get("selfie-capture-review")&&window.customElements.define("selfie-capture-review",J4);var mr,G,Bu,Du,si,Ru,Ou,Pu,$u,Ys,Js,Qs,gr={},Nu=[],Q4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vr=Array.isArray;function vt(e,t){for(var i in t)e[i]=t[i];return e}function ea(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Lt(e,t,i){var r,n,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?n=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?mr.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return br(e,s,r,n,null)}function br(e,t,i,r,n){var o={type:e,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n==null?++Bu:n,__i:-1,__u:0};return n==null&&G.vnode!=null&&G.vnode(o),o}function qt(e){return e.children}function yr(e,t){this.props=e,this.context=t}function ki(e,t){if(t==null)return e.__?ki(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if((i=e.__k[t])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?ki(e):null}function Hu(e){var t,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((i=e.__k[t])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return Hu(e)}}function Uu(e){(!e.__d&&(e.__d=!0)&&si.push(e)&&!Xr.__r++||Ru!=G.debounceRendering)&&((Ru=G.debounceRendering)||Ou)(Xr)}function Xr(){for(var e,t,i,r,n,o,s,a=1;si.length;)si.length>a&&si.sort(Pu),e=si.shift(),a=si.length,e.__d&&(i=void 0,n=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((i=vt({},r)).__v=r.__v+1,G.vnode&&G.vnode(i),ta(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[n]:null,o,n==null?ki(r):n,!!(32&r.__u),s),i.__v=r.__v,i.__.__k[i.__i]=i,Zu(o,i,s),i.__e!=n&&Hu(i)));Xr.__r=0}function qu(e,t,i,r,n,o,s,a,c,l,d){var u,h,f,p,m,v,g=r&&r.__k||Nu,b=t.length;for(c=ef(i,t,g,c,b),u=0;u<b;u++)(f=i.__k[u])!=null&&(h=f.__i==-1?gr:g[f.__i]||gr,f.__i=u,v=ta(e,f,h,n,o,s,a,c,l,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&ra(h.ref,null,f),d.push(f.ref,f.__c||p,f)),m==null&&p!=null&&(m=p),4&f.__u||h.__k===f.__k?c=Vu(f,c,e):typeof f.type=="function"&&v!==void 0?c=v:p&&(c=p.nextSibling),f.__u&=-7);return i.__e=m,c}function ef(e,t,i,r,n){var o,s,a,c,l,d=i.length,u=d,h=0;for(e.__k=new Array(n),o=0;o<n;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(c=o+h,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?br(null,s,null,null,null):vr(s)?br(qt,{children:s},null,null,null):s.constructor==null&&s.__b>0?br(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=tf(s,i,c,u))!=-1&&(u--,(a=i[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(n>d?h--:n<d&&h++),typeof s.type!="function"&&(s.__u|=4)):l!=c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,s.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(a=i[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=ki(a)),Xu(a,a));return r}function Vu(e,t,i){var r,n;if(typeof e.type=="function"){for(r=e.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=e,t=Vu(r[n],t,i));return t}e.__e!=t&&(t&&e.type&&!i.contains(t)&&(t=ki(e)),i.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ju(e,t){return t=t||[],e==null||typeof e=="boolean"||(vr(e)?e.some(function(i){ju(i,t)}):t.push(e)),t}function tf(e,t,i,r){var n,o,s,a=e.key,c=e.type,l=t[i],d=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||d&&a==l.key&&c==l.type)return i;if(r>(d?1:0)){for(n=i-1,o=i+1;n>=0||o<t.length;)if((l=t[s=n>=0?n--:o++])!=null&&(2&l.__u)==0&&a==l.key&&c==l.type)return s}return-1}function zu(e,t,i){t[0]=="-"?e.setProperty(t,i==null?"":i):e[t]=i==null?"":typeof i!="number"||Q4.test(t)?i:i+"px"}function Kr(e,t,i,r,n){var o,s;e:if(t=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)i&&t in i||zu(e.style,t,"");if(i)for(t in i)r&&i[t]==r[t]||zu(e.style,t,i[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace($u,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=i,i?r?i.u=r.u:(i.u=Ys,e.addEventListener(t,o?Qs:Js,o)):e.removeEventListener(t,o?Qs:Js,o);else{if(n=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=i==null?"":i;break e}catch(a){}typeof i=="function"||(i==null||i===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&i==1?"":i))}}function Gu(e){return function(t){if(this.l){var i=this.l[t.type+e];if(t.t==null)t.t=Ys++;else if(t.t<i.u)return;return i(G.event?G.event(t):t)}}}function ta(e,t,i,r,n,o,s,a,c,l){var d,u,h,f,p,m,v,g,b,_,M,P,x,D,C,R,F,E=t.type;if(t.constructor!=null)return null;128&i.__u&&(c=!!(32&i.__u),o=[a=t.__e=i.__e]),(d=G.__b)&&d(t);e:if(typeof E=="function")try{if(g=t.props,b="prototype"in E&&E.prototype.render,_=(d=E.contextType)&&r[d.__c],M=d?_?_.props.value:d.__:r,i.__c?v=(u=t.__c=i.__c).__=u.__E:(b?t.__c=u=new E(g,M):(t.__c=u=new yr(g,M),u.constructor=E,u.render=nf),_&&_.sub(u),u.props=g,u.state||(u.state={}),u.context=M,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&E.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=vt({},u.__s)),vt(u.__s,E.getDerivedStateFromProps(g,u.__s))),f=u.props,p=u.state,u.__v=t,h)b&&E.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&E.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,M),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,M)===!1||t.__v==i.__v){for(t.__v!=i.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.some(function(j){j&&(j.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,M),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,m)})}if(u.context=M,u.props=g,u.__P=e,u.__e=!1,x=G.__r,D=0,b){for(u.state=u.__s,u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(r=vt(vt({},r),u.getChildContext())),b&&!h&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(f,p)),R=d,d!=null&&d.type===qt&&d.key==null&&(R=Wu(d.props.children)),a=qu(e,vr(R)?R:[R],t,i,r,n,o,s,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),v&&(u.__E=u.__=null)}catch(j){if(t.__v=null,c||o!=null)if(j.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(F=o.length;F--;)ea(o[F]);ia(t)}else t.__e=i.__e,t.__k=i.__k,j.then||ia(t);G.__e(j,t,i)}else o==null&&t.__v==i.__v?(t.__k=i.__k,t.__e=i.__e):a=t.__e=rf(i.__e,t,i,r,n,o,s,c,l);return(d=G.diffed)&&d(t),128&t.__u?void 0:a}function ia(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(ia)}function Zu(e,t,i){for(var r=0;r<i.length;r++)ra(i[r],i[++r],i[++r]);G.__c&&G.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(o){o.call(n)})}catch(o){G.__e(o,n.__v)}})}function Wu(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:vr(e)?e.map(Wu):vt({},e)}function rf(e,t,i,r,n,o,s,a,c){var l,d,u,h,f,p,m,v=i.props,g=t.props,b=t.type;if(b=="svg"?n="http://www.w3.org/2000/svg":b=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(n,b,g.is&&g),a&&(G.__m&&G.__m(t,o),a=!1),o=null}if(b==null)v===g||a&&e.data==g||(e.data=g);else{if(o=o&&mr.call(e.childNodes),v=i.props||gr,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(f=e.attributes[l]).name]=f.value;for(l in v)if(f=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;Kr(e,l,null,f,n)}}for(l in g)f=g[l],l=="children"?h=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?p=f:l=="checked"?m=f:a&&typeof f!="function"||v[l]===f||Kr(e,l,f,v[l],n);if(d)a||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),qu(t.type=="template"?e.content:e,vr(h)?h:[h],t,i,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":n,o,s,o?o[0]:i.__k&&ki(i,0),a,c),o!=null)for(l=o.length;l--;)ea(o[l]);a||(l="value",b=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[l]||b=="progress"&&!p||b=="option"&&p!=v[l])&&Kr(e,l,p,v[l],n),l="checked",m!=null&&m!=e[l]&&Kr(e,l,m,v[l],n))}return e}function ra(e,t,i){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(n){G.__e(n,i)}}function Xu(e,t,i){var r,n;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||ra(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){G.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(n=0;n<r.length;n++)r[n]&&Xu(r[n],t,i||typeof e.type!="function");i||ea(e.__e),e.__c=e.__=e.__e=void 0}function nf(e,t,i){return this.constructor(e,i)}function Yr(e,t,i){var r,n,o,s;t==document&&(t=document.documentElement),G.__&&G.__(e,t),n=(r=typeof i=="function")?null:i&&i.__k||t.__k,o=[],s=[],ta(t,e=(!r&&i||t).__k=Lt(qt,null,[e]),n||gr,gr,t.namespaceURI,!r&&i?[i]:n?null:t.firstChild?mr.call(t.childNodes):null,o,!r&&i?i:n?n.__e:t.firstChild,r,s),Zu(o,e,s)}function Ku(e,t){Yr(e,t,Ku)}function Yu(e,t,i){var r,n,o,s,a=vt({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?n=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?mr.call(arguments,2):i),br(e.type,a,r||e.key,n||e.ref,null)}mr=Nu.slice,G={__e:function(e,t,i,r){for(var n,o,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&o.getDerivedStateFromError!=null&&(n.setState(o.getDerivedStateFromError(e)),s=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,r||{}),s=n.__d),s)return n.__E=n}catch(a){e=a}throw e}},Bu=0,Du=function(e){return e!=null&&e.constructor==null},yr.prototype.setState=function(e,t){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=vt({},this.state),typeof e=="function"&&(e=e(vt({},i),this.props)),e&&vt(i,e),e!=null&&this.__v&&(t&&this._sb.push(t),Uu(this))},yr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Uu(this))},yr.prototype.render=qt,si=[],Ou=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pu=function(e,t){return e.__v.__b-t.__v.__b},Xr.__r=0,$u=/(PointerCapture)$|Capture$/i,Ys=0,Js=Gu(!1),Qs=Gu(!0);var of=0;function N(e,t,i,r,n,o){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--of,__i:-1,__u:0,__source:n,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return G.vnode&&G.vnode(l),l}var _r,he,na,Ju,Jr=0,Qu=[],ve=G,e2=ve.__b,t2=ve.__r,i2=ve.diffed,r2=ve.__c,n2=ve.unmount,o2=ve.__;function oa(e,t){ve.__h&&ve.__h(he,e,Jr||t),Jr=0;var i=he.__H||(he.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({}),i.__[e]}function ai(e){return Jr=1,sf(c2,e)}function sf(e,t,i){var r=oa(_r++,2);if(r.t=e,!r.__c&&(r.__=[c2(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=he,!he.__f)){var n=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!o||o.call(this,a,c,l);var u=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),o&&o.call(this,a,c,l)||u};he.__f=!0;var o=he.shouldComponentUpdate,s=he.componentWillUpdate;he.componentWillUpdate=function(a,c,l){if(this.__e){var d=o;o=void 0,n(a,c,l),o=d}s&&s.call(this,a,c,l)},he.shouldComponentUpdate=n}return r.__N||r.__}function Je(e,t){var i=oa(_r++,3);!ve.__s&&a2(i.__H,t)&&(i.__=e,i.u=t,he.__H.__h.push(i))}function Ae(e){return Jr=5,Qr(function(){return{current:e}},[])}function Qr(e,t){var i=oa(_r++,7);return a2(i.__H,t)&&(i.__=e(),i.__H=t,i.__h=e),i.__}function af(){for(var e;e=Qu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(en),e.__H.__h.forEach(sa),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){he=null,e2&&e2(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),o2&&o2(e,t)},ve.__r=function(e){t2&&t2(e),_r=0;var t=(he=e.__c).__H;t&&(na===he?(t.__h=[],he.__h=[],t.__.forEach(function(i){i.__N&&(i.__=i.__N),i.u=i.__N=void 0})):(t.__h.forEach(en),t.__h.forEach(sa),t.__h=[],_r=0)),na=he},ve.diffed=function(e){i2&&i2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qu.push(t)!==1&&Ju===ve.requestAnimationFrame||((Ju=ve.requestAnimationFrame)||cf)(af)),t.__H.__.forEach(function(i){i.u&&(i.__H=i.u),i.u=void 0})),na=he=null},ve.__c=function(e,t){t.some(function(i){try{i.__h.forEach(en),i.__h=i.__h.filter(function(r){return!r.__||sa(r)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],ve.__e(r,i.__v)}}),r2&&r2(e,t)},ve.unmount=function(e){n2&&n2(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.forEach(function(r){try{en(r)}catch(n){t=n}}),i.__H=void 0,t&&ve.__e(t,i.__v))};var s2=typeof requestAnimationFrame=="function";function cf(e){var t,i=function(){clearTimeout(r),s2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(i,35);s2&&(t=requestAnimationFrame(i))}function en(e){var t=he,i=e.__c;typeof i=="function"&&(e.__c=void 0,i()),he=t}function sa(e){var t=he;e.__c=e.__(),he=t}function a2(e,t){return!e||e.length!==t.length||t.some(function(i,r){return i!==e[r]})}function c2(e,t){return typeof t=="function"?t(e):t}var lf={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const uf=(e,t,i,r)=>{const n=p=>{var m=p,{color:o="currentColor",size:s=24,stroke:a=2,title:c,children:l,className:d="",class:u="",style:h}=m,f=hl(m,["color","size","stroke","title","children","className","class","style"]);return Lt("svg",Re(nr(Re({},lf[e]),{width:String(s),height:String(s),class:["tabler-icon",`tabler-icon-${t}`,u,d].join(" "),"stroke-width":a,stroke:o,style:h}),f),[c&&Lt("title",{},c),...r.map(([v,g])=>Lt(v,g)),...ju(l)])};return n.displayName=`${i}`,n};var df=uf("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);function aa(){return(aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var hf=["context","children"];function ff(e){this.getChildContext=function(){return e.context};var t=e.children,i=function(r,n){if(r==null)return{};var o,s,a={},c=Object.keys(r);for(s=0;s<c.length;s++)n.indexOf(o=c[s])>=0||(a[o]=r[o]);return a}(e,hf);return Yu(t,i)}function pf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Lt(ff,aa({},this._props,{context:e.detail.context}),function t(i,r){if(i.nodeType===3)return i.data;if(i.nodeType!==1)return null;var n=[],o={},s=0,a=i.attributes,c=i.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[l2(a[s].name)]=a[s].value);for(s=c.length;s--;){var l=t(c[s],null),d=c[s].slot;d?o[d]=Lt(u2,{name:d},l):n[s]=l}var u=r?Lt(u2,null,n):n;return Lt(r||i.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ku:Yr)(this._vdom,this._root)}function l2(e){return e.replace(/-(\w)/g,function(t,i){return i?i.toUpperCase():""})}function mf(e,t,i){if(this._vdom){var r={};r[e]=i=i==null?void 0:i,r[l2(e)]=i,this._vdom=Yu(this._vdom,r),Yr(this._vdom,this._root)}}function gf(){Yr(this._vdom=null,this._root)}function u2(e,t){var i=this;return Lt("slot",aa({},e,{ref:function(r){r?(i.ref=r,i._listener||(i._listener=function(n){n.stopPropagation(),n.detail.context=t},r.addEventListener("_preact",i._listener))):i.ref.removeEventListener("_preact",i._listener)}}))}function d2(e,t,i,r){function n(){var o=Reflect.construct(HTMLElement,[],n);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=pf,n.prototype.attributeChangedCallback=mf,n.prototype.disconnectedCallback=gf,i=i||e.observedAttributes||Object.keys(e.propTypes||{}),n.observedAttributes=i,i.forEach(function(o){Object.defineProperty(n.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,n)}const ci=(e,t=!1)=>typeof e=="boolean"?e:typeof e=="string"?e==="true"||e==="":t;var vf=Symbol.for("preact-signals");function tn(){if(Vt>1)Vt--;else{for(var e,t=!1;wr!==void 0;){var i=wr;for(wr=void 0,ca++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&m2(i))try{i.c()}catch(n){t||(e=n,t=!0)}i=r}}if(ca=0,Vt--,t)throw e}}function bf(e){if(Vt>0)return e();Vt++;try{return e()}finally{tn()}}var Z=void 0;function h2(e){var t=Z;Z=void 0;try{return e()}finally{Z=t}}var wr=void 0,Vt=0,ca=0,rn=0;function f2(e){if(Z!==void 0){var t=e.n;if(t===void 0||t.t!==Z)return t={i:0,S:e,p:Z.s,n:void 0,t:Z,e:void 0,x:void 0,r:t},Z.s!==void 0&&(Z.s.n=t),Z.s=t,e.n=t,32&Z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Z.s,t.n=void 0,Z.s.n=t,Z.s=t),t}}function ke(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched}ke.prototype.brand=vf,ke.prototype.h=function(){return!0},ke.prototype.S=function(e){var t=this,i=this.t;i!==e&&e.e===void 0&&(e.x=i,this.t=e,i!==void 0?i.e=e:h2(function(){var r;(r=t.W)==null||r.call(t)}))},ke.prototype.U=function(e){var t=this;if(this.t!==void 0){var i=e.e,r=e.x;i!==void 0&&(i.x=r,e.e=void 0),r!==void 0&&(r.e=i,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&h2(function(){var n;(n=t.Z)==null||n.call(t)}))}},ke.prototype.subscribe=function(e){var t=this;return Cr(function(){var i=t.value,r=Z;Z=void 0;try{e(i)}finally{Z=r}})},ke.prototype.valueOf=function(){return this.value},ke.prototype.toString=function(){return this.value+""},ke.prototype.toJSON=function(){return this.value},ke.prototype.peek=function(){var e=Z;Z=void 0;try{return this.value}finally{Z=e}},Object.defineProperty(ke.prototype,"value",{get:function(){var e=f2(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ca>100)throw new Error("Cycle detected");this.v=e,this.i++,rn++,Vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{tn()}}}});function p2(e,t){return new ke(e,t)}function m2(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function g2(e){for(var t=e.s;t!==void 0;t=t.n){var i=t.S.n;if(i!==void 0&&(t.r=i),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function v2(e){for(var t=e.s,i=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):i=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=i}function li(e,t){ke.call(this,void 0),this.x=e,this.s=void 0,this.g=rn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched}li.prototype=new ke,li.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===rn))return!0;if(this.g=rn,this.f|=1,this.i>0&&!m2(this))return this.f&=-2,!0;var e=Z;try{g2(this),Z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return Z=e,v2(this),this.f&=-2,!0},li.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ke.prototype.S.call(this,e)},li.prototype.U=function(e){if(this.t!==void 0&&(ke.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},li.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(li.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=f2(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function la(e,t){return new li(e,t)}function b2(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Vt++;var i=Z;Z=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,ua(e),r}finally{Z=i,tn()}}}function ua(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,b2(e)}function yf(e){if(Z!==this)throw new Error("Out-of-order effect");v2(this),Z=e,this.f&=-2,8&this.f&&ua(this),tn()}function Ai(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ai.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Ai.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,b2(this),g2(this),Vt++;var e=Z;return Z=this,yf.bind(this,e)},Ai.prototype.N=function(){2&this.f||(this.f|=2,this.o=wr,wr=this)},Ai.prototype.d=function(){this.f|=8,1&this.f||ua(this)},Ai.prototype.dispose=function(){this.d()};function Cr(e){var t=new Ai(e);try{t.c()}catch(r){throw t.d(),r}var i=t.d.bind(t);return i[Symbol.dispose]=i,i}var y2,nn,da,_2=[];Cr(function(){y2=this.N})();function Si(e,t){G[e]=t.bind(null,G[e]||function(){})}function on(e){da&&da(),da=e&&e.S()}function w2(e){var t=this,i=e.data,r=le(i);r.value=i;var n=Qr(function(){for(var a=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=la(function(){var f=r.value.value;return f===0?0:f===!0?"":f||""}),d=la(function(){return!Array.isArray(l.value)&&!Du(l.value)}),u=Cr(function(){if(this.N=C2,d.value){var f=l.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=f)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,l]},[]),o=n[0],s=n[1];return o.value?s.peek():s.value}w2.displayName="_st",Object.defineProperties(ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:w2},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Si("__b",function(e,t){if(typeof t.type=="string"){var i,r=t.props;for(var n in r)if(n!=="children"){var o=r[n];o instanceof ke&&(i||(t.__np=i={}),i[n]=o,r[n]=o.peek())}}e(t)}),Si("__r",function(e,t){if(t.type!==qt){on();var i,r=t.__c;r&&(r.__$f&=-2,(i=r.__$u)===void 0&&(r.__$u=i=function(n){var o;return Cr(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),nn=r,on(i)}e(t)}),Si("__e",function(e,t,i,r){on(),nn=void 0,e(t,i,r)}),Si("diffed",function(e,t){on(),nn=void 0;var i;if(typeof t.type=="string"&&(i=t.__e)){var r=t.__np,n=t.props;if(r){var o=i.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else o={},i.U=o;for(var c in r){var l=o[c],d=r[c];l===void 0?(l=_f(i,c,d,n),o[c]=l):l.o(d,n)}}}e(t)});function _f(e,t,i,r){var n=t in e&&e.ownerSVGElement===void 0,o=p2(i);return{o:function(s,a){o.value=s,r=a},d:Cr(function(){this.N=C2;var s=o.value.value;r[t]!==s&&(r[t]=s,n?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Si("unmount",function(e,t){if(typeof t.type=="string"){var i=t.__e;if(i){var r=i.U;if(r){i.U=void 0;for(var n in r){var o=r[n];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),Si("__h",function(e,t,i,r){(r<3||r===9)&&(t.__$f|=2),e(t,i,r)}),yr.prototype.shouldComponentUpdate=function(e,t){var i=this.__$u,r=i&&i.s!==void 0;for(var n in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(r||o||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function le(e,t){return Qr(function(){return p2(e,t)},[])}function ha(e,t){var i=Ae(e);return i.current=e,nn.__$f|=4,Qr(function(){return la(function(){return i.current()},t)},[])}var wf=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Cf(){bf(function(){for(var e;e=_2.shift();)y2.call(e)})}function C2(){_2.push(this)===1&&(G.requestAnimationFrame||wf)(Cf)}var fa,E2;function Ef(){if(E2)return fa;E2=1;var e=oi(),t=function(){return e.Date.now()};return fa=t,fa}var pa,x2;function xf(){if(x2)return pa;x2=1;var e=/\s/;function t(i){for(var r=i.length;r--&&e.test(i.charAt(r)););return r}return pa=t,pa}var ma,k2;function kf(){if(k2)return ma;k2=1;var e=xf(),t=/^\s+/;function i(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return ma=i,ma}var ga,A2;function Af(){if(A2)return ga;A2=1;var e=ar(),t=Ci(),i="[object Symbol]";function r(n){return typeof n=="symbol"||t(n)&&e(n)==i}return ga=r,ga}var va,S2;function Sf(){if(S2)return va;S2=1;var e=kf(),t=gt(),i=Af(),r=NaN,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(l){if(typeof l=="number")return l;if(i(l))return r;if(t(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=t(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=e(l);var u=o.test(l);return u||s.test(l)?a(l.slice(2),u?2:8):n.test(l)?r:+l}return va=c,va}var ba,L2;function Lf(){if(L2)return ba;L2=1;var e=gt(),t=Ef(),i=Sf(),r="Expected a function",n=Math.max,o=Math.min;function s(a,c,l){var d,u,h,f,p,m,v=0,g=!1,b=!1,_=!0;if(typeof a!="function")throw new TypeError(r);c=i(c)||0,e(l)&&(g=!!l.leading,b="maxWait"in l,h=b?n(i(l.maxWait)||0,c):h,_="trailing"in l?!!l.trailing:_);function M(O){var ae=d,me=u;return d=u=void 0,v=O,f=a.apply(me,ae),f}function P(O){return v=O,p=setTimeout(C,c),g?M(O):f}function x(O){var ae=O-m,me=O-v,Le=c-ae;return b?o(Le,h-me):Le}function D(O){var ae=O-m,me=O-v;return m===void 0||ae>=c||ae<0||b&&me>=h}function C(){var O=t();if(D(O))return R(O);p=setTimeout(C,x(O))}function R(O){return p=void 0,_&&d?M(O):(d=u=void 0,f)}function F(){p!==void 0&&clearTimeout(p),v=0,d=m=u=p=void 0}function E(){return p===void 0?f:R(t())}function j(){var O=t(),ae=D(O);if(d=arguments,u=this,m=O,ae){if(p===void 0)return P(m);if(b)return clearTimeout(p),p=setTimeout(C,c),M(m)}return p===void 0&&(p=setTimeout(C,c)),f}return j.cancel=F,j.flush=E,j}return ba=s,ba}var ya,T2;function Tf(){if(T2)return ya;T2=1;var e=Lf(),t=gt(),i="Expected a function";function r(n,o,s){var a=!0,c=!0;if(typeof n!="function")throw new TypeError(i);return t(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),e(n,o,{leading:a,maxWait:o,trailing:c})}return ya=r,ya}var Mf=Tf();const M2=te(Mf),If=(e="user")=>{var v;const t=Ae(null),i=Ae(null),[r,n]=ai(e),[o,s]=ai(!1),a=Ae(null),c=Ae(!1),l=Ae(new Set),d=g=>{a.current=g};Je(()=>{const g=t.current;if(!g)return;const b=()=>{if(c.current&&a.current){const _=setTimeout(()=>{var M;(M=a.current)==null||M.call(a),c.current=!1,l.current.delete(_)},100);l.current.add(_)}};return g.addEventListener("loadedmetadata",b),()=>{g.removeEventListener("loadedmetadata",b),l.current.forEach(_=>clearTimeout(_)),l.current.clear()}},[(v=t.current)==null?void 0:v.src]),Je(()=>()=>{l.current.forEach(g=>clearTimeout(g)),l.current.clear()},[]);const u=(g,b)=>S(this,null,function*(){try{i.current&&(i.current.getTracks().forEach(F=>F.stop()),i.current=null),t.current&&(t.current.srcObject=null);const _=yield navigator.mediaDevices.getUserMedia({video:{facingMode:g||r}});i.current=_;const x=_.getVideoTracks()[0].getSettings().facingMode;(x&&x!==(g||r)||x&&x!==r)&&n(x);const R=(yield navigator.mediaDevices.enumerateDevices()).find(F=>F.kind==="videoinput"&&_.getVideoTracks()[0].getSettings().deviceId===F.deviceId);b==null||b(R==null?void 0:R.label),t.current&&(t.current.srcObject=_,yield t.current.play())}catch(_){console.error("Failed to start camera:",_)}}),h=()=>S(this,null,function*(){const g=r==="user"?"environment":"user";c.current=!0;const b=r;try{n(g),i.current&&(i.current.getTracks().forEach(_=>_.stop()),i.current=null),yield u(g)}catch(_){n(b),c.current=!1;try{yield u(b)}catch(M){console.error("Failed to restore previous camera:",M)}}}),f=()=>{const g=navigator.userAgent.toLowerCase(),b=g.includes("firefox")||g.includes("gecko")&&!g.includes("chrome")&&!g.includes("edge"),_="mozInnerScreenX"in window||"mozInputSource"in window||"mozPaintCount"in window||typeof window.InstallTrigger!="undefined",M=CSS.supports&&(CSS.supports("-moz-appearance","none")||CSS.supports("-moz-user-select","none"));return{isGecko:b||_||M,isChromium:g.includes("chrome")||g.includes("chromium")||g.includes("edge"),isWebKit:g.includes("webkit")&&!g.includes("chrome")}};return{videoRef:t,streamRef:i,facingMode:r,agentSupported:o,startCamera:u,switchCamera:h,checkAgentSupport:()=>S(this,null,function*(){var g,b;try{if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>1){s(!0);return}const{isGecko:M}=f();let P=null,x=null;try{const C=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"user"}});P=(g=C.getVideoTracks()[0].getSettings().deviceId)!=null?g:null,C.getTracks().forEach(R=>R.stop())}catch(C){}try{const C=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});x=(b=C.getVideoTracks()[0].getSettings().deviceId)!=null?b:null,C.getTracks().forEach(R=>R.stop())}catch(C){}if(!(P&&x&&P!==x)){s(!1);return}s(!M)}catch(_){s(!1)}}),stopCamera:()=>{i.current&&(i.current.getTracks().forEach(g=>g.stop()),i.current=null),t.current&&(t.current.srcObject=null,t.current.load())},registerCameraSwitchCallback:d}};var Li=typeof self!="undefined"?self:{};function ui(){throw Error("Invalid UTF8")}function I2(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let sn,_a;const Ff=typeof TextDecoder!="undefined";let Bf;const Df=typeof TextEncoder!="undefined";function F2(e){if(Df)e=(Bf||(Bf=new TextEncoder)).encode(e);else{let i=0;const r=new Uint8Array(3*e.length);for(let n=0;n<e.length;n++){var t=e.charCodeAt(n);if(t<128)r[i++]=t;else{if(t<2048)r[i++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&n<e.length){const o=e.charCodeAt(++n);if(o>=56320&&o<=57343){t=1024*(t-55296)+o-56320+65536,r[i++]=t>>18|240,r[i++]=t>>12&63|128,r[i++]=t>>6&63|128,r[i++]=63&t|128;continue}n--}t=65533}r[i++]=t>>12|224,r[i++]=t>>6&63|128}r[i++]=63&t|128}}e=i===r.length?r:r.subarray(0,i)}return e}var wa,an;e:{for(var B2=["CLOSURE_FLAGS"],Ca=Li,Ea=0;Ea<B2.length;Ea++)if((Ca=Ca[B2[Ea]])==null){an=null;break e}an=Ca}var Er,D2=an&&an[610401301];wa=D2!=null&&D2;const R2=Li.navigator;function xa(e){return!!wa&&!!Er&&Er.brands.some(({brand:t})=>t&&t.indexOf(e)!=-1)}function Qe(e){var t;return(t=Li.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function jt(){return!!wa&&!!Er&&Er.brands.length>0}function ka(){return jt()?xa("Chromium"):(Qe("Chrome")||Qe("CriOS"))&&!(!jt()&&Qe("Edge"))||Qe("Silk")}function cn(e){return cn[" "](e),e}Er=R2&&R2.userAgentData||null,cn[" "]=function(){};var Rf=!jt()&&(Qe("Trident")||Qe("MSIE"));!Qe("Android")||ka(),ka(),Qe("Safari")&&(ka()||!jt()&&Qe("Coast")||!jt()&&Qe("Opera")||!jt()&&Qe("Edge")||(jt()?xa("Microsoft Edge"):Qe("Edg/"))||jt()&&xa("Opera"));var O2={},xr=null;function Of(e){const t=e.length;let i=3*t/4;i%3?i=Math.floor(i):"=.".indexOf(e[t-1])!=-1&&(i="=.".indexOf(e[t-2])!=-1?i-2:i-1);const r=new Uint8Array(i);let n=0;return function(o,s){function a(l){for(;c<o.length;){const d=o.charAt(c++),u=xr[d];if(u!=null)return u;if(!/^[\s\xa0]*$/.test(d))throw Error("Unknown base64 encoding at char: "+d)}return l}P2();let c=0;for(;;){const l=a(-1),d=a(0),u=a(64),h=a(64);if(h===64&&l===-1)break;s(l<<2|d>>4),u!=64&&(s(d<<4&240|u>>2),h!=64&&s(u<<6&192|h))}}(e,function(o){r[n++]=o}),n!==i?r.subarray(0,n):r}function P2(){if(!xr){xr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let i=0;i<5;i++){const r=e.concat(t[i].split(""));O2[i]=r;for(let n=0;n<r.length;n++){const o=r[n];xr[o]===void 0&&(xr[o]=n)}}}}var $2=typeof Uint8Array!="undefined",N2=!Rf&&typeof btoa=="function";function H2(e){if(!N2){var t;t===void 0&&(t=0),P2(),t=O2[t];var i=Array(Math.floor(e.length/3)),r=t[64]||"";let c=0,l=0;for(;c<e.length-2;c+=3){var n=e[c],o=e[c+1],s=e[c+2],a=t[n>>2];n=t[(3&n)<<4|o>>4],o=t[(15&o)<<2|s>>6],s=t[63&s],i[l++]=a+n+o+s}switch(a=0,s=r,e.length-c){case 2:s=t[(15&(a=e[c+1]))<<2]||r;case 1:e=e[c],i[l]=t[e>>2]+t[(3&e)<<4|a>>4]+s+r}return i.join("")}for(t="",i=0,r=e.length-10240;i<r;)t+=String.fromCharCode.apply(null,e.subarray(i,i+=10240));return t+=String.fromCharCode.apply(null,i?e.subarray(i):e),btoa(t)}const U2=/[-_.]/g,Pf={"-":"+",_:"/",".":"="};function $f(e){return Pf[e]||""}function q2(e){if(!N2)return Of(e);U2.test(e)&&(e=e.replace(U2,$f)),e=atob(e);const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}function di(e){return $2&&e!=null&&e instanceof Uint8Array}var Ti={};function hi(){return Nf||(Nf=new Tt(null,Ti))}function Aa(e){V2(Ti);var t=e.g;return(t=t==null||di(t)?t:typeof t=="string"?q2(t):null)==null?t:e.g=t}var Tt=class{h(){return new Uint8Array(Aa(this)||0)}constructor(e,t){if(V2(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};let Nf,Sa;function V2(e){if(e!==Ti)throw Error("illegal external caller")}function j2(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function La(e){return j2(e=Error(e),"warning"),e}function Ta(e){if(e!=null){var t=Sa!=null?Sa:Sa={},i=t[e]||0;i>=5||(t[e]=i+1,j2(e=Error(),"incident"),function(r){Li.setTimeout(()=>{throw r},0)}(e))}}var ln=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Mi(e,t,i=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?i&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var Hf=Mi("jas",void 0,!0),z2=Mi(void 0,"0di"),kr=Mi(void 0,"1oa"),Ii=Mi(void 0,Symbol()),Uf=Mi(void 0,"0actk"),G2=Mi(void 0,"8utk");const L=ln?Hf:"Ea",Z2={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},W2=Object.defineProperties;function un(e,t){ln||L in e||W2(e,Z2),e[L]|=t}function be(e,t){ln||L in e||W2(e,Z2),e[L]=t}function Fi(e){return un(e,34),e}function qf(e,t){be(t,-15615&(0|e))}function Ma(e,t){be(t,-15581&(34|e))}function dn(){return typeof BigInt=="function"}function Oe(e){return Array.prototype.slice.call(e)}var Ia,Ar={};function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function Fa(e,t){if(e!=null){if(typeof e=="string")e=e?new Tt(e,Ti):hi();else if(e.constructor!==Tt)if(di(e))e=e.length?new Tt(new Uint8Array(e),Ti):hi();else{if(!t)throw Error();e=void 0}}return e}const X2=[];function zt(e){if(2&e)throw Error()}be(X2,55),Ia=Object.freeze(X2);class K2{constructor(t,i,r){this.g=t,this.h=i,this.l=r}next(){const t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}function Ba(e){return Ii?e[Ii]:void 0}var Vf=Object.freeze({});function fn(e){return e.Na=!0,e}var jf=fn(e=>typeof e=="number"),Y2=fn(e=>typeof e=="string"),zf=fn(e=>typeof e=="boolean"),pn=typeof Li.BigInt=="function"&&typeof Li.BigInt(0)=="bigint";function Gt(e){var t=e;if(Y2(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(jf(t)&&!Number.isSafeInteger(t))throw Error(String(t));return pn?BigInt(e):e=zf(e)?e?"1":"0":Y2(e)?e.trim()||"0":String(e)}var Da=fn(e=>pn?e>=Zf&&e<=Xf:e[0]==="-"?J2(e,Gf):J2(e,Wf));const Gf=Number.MIN_SAFE_INTEGER.toString(),Zf=pn?BigInt(Number.MIN_SAFE_INTEGER):void 0,Wf=Number.MAX_SAFE_INTEGER.toString(),Xf=pn?BigInt(Number.MAX_SAFE_INTEGER):void 0;function J2(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let i=0;i<e.length;i++){const r=e[i],n=t[i];if(r>n)return!1;if(r<n)return!0}}const Kf=typeof Uint8Array.prototype.slice=="function";let Q2,Y=0,ue=0;function ed(e){const t=e>>>0;Y=t,ue=(e-t)/4294967296>>>0}function fi(e){if(e<0){ed(-e);const[t,i]=$a(Y,ue);Y=t>>>0,ue=i>>>0}else ed(e)}function Ra(e){const t=Q2||(Q2=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),ue=0,Y=t.getUint32(0,!0)}function Oa(e,t){const i=4294967296*t+(e>>>0);return Number.isSafeInteger(i)?i:Sr(e,t)}function Pa(e,t){const i=2147483648&t;return i&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=Oa(e,t))=="number"?i?-e:e:i?"-"+e:e}function Sr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var i=""+(4294967296*t+e);else dn()?i=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(i=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),i+=8147497*t,t*=2,e>=1e7&&(i+=e/1e7>>>0,e%=1e7),i>=1e7&&(t+=i/1e7>>>0,i%=1e7),i=t+td(i)+td(e));return i}function td(e){return e=String(e),"0000000".slice(e.length)+e}function id(){var e=Y,t=ue;if(2147483648&t)if(dn())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[i,r]=$a(e,t);e="-"+Sr(i,r)}else e=Sr(e,t);return e}function mn(e){if(e.length<16)fi(Number(e));else if(dn())e=BigInt(e),Y=Number(e&BigInt(4294967295))>>>0,ue=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");ue=Y=0;const i=e.length;for(let r=t,n=(i-t)%6+t;n<=i;r=n,n+=6){const o=Number(e.slice(r,n));ue*=1e6,Y=1e6*Y+o,Y>=4294967296&&(ue+=Math.trunc(Y/4294967296),ue>>>=0,Y>>>=0)}if(t){const[r,n]=$a(Y,ue);Y=r,ue=n}}}function $a(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}const Lr=typeof BigInt=="function"?BigInt.asIntN:void 0,Yf=typeof BigInt=="function"?BigInt.asUintN:void 0,Zt=Number.isSafeInteger,gn=Number.isFinite,Bi=Math.trunc,Jf=Gt(0);function Wt(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function rd(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}const Qf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Tr(e){switch(typeof e){case"bigint":return!0;case"number":return gn(e);case"string":return Qf.test(e);default:return!1}}function Di(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gn(e)?0|e:void 0}function nd(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gn(e)?e>>>0:void 0}function od(e){if(e[0]==="-")return!1;const t=e.length;return t<20||t===20&&Number(e.substring(0,6))<184467}function sd(e){const t=e.length;return e[0]==="-"?t<20||t===20&&Number(e.substring(0,7))>-922337:t<19||t===19&&Number(e.substring(0,6))<922337}function ad(e){return sd(e)?e:(mn(e),id())}function Na(e){return e=Bi(e),Zt(e)||(fi(e),e=Pa(Y,ue)),e}function cd(e){var t=Bi(Number(e));return Zt(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),ad(e))}function ld(e){var t=Bi(Number(e));return Zt(t)?Gt(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),dn()?Gt(Lr(64,BigInt(e))):Gt(ad(e)))}function ud(e){if(Zt(e))e=Gt(Na(e));else{if(e=Bi(e),Zt(e))e=String(e);else{const t=String(e);sd(t)?e=t:(fi(e),e=id())}e=Gt(e)}return e}function Ha(e){return e==null?e:typeof e=="bigint"?(Da(e)?e=Number(e):(e=Lr(64,e),e=Da(e)?Number(e):String(e)),e):Tr(e)?typeof e=="number"?Na(e):cd(e):void 0}function ep(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(Yf(64,e));if(Tr(e)){if(t==="string")return t=Bi(Number(e)),Zt(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),od(e)||(mn(e),e=Sr(Y,ue))),e;if(t==="number")return(e=Bi(e))>=0&&Zt(e)?e:function(i){if(i<0){fi(i);var r=Sr(Y,ue);return i=Number(r),Zt(i)?i:r}return od(r=String(i))?r:(fi(i),Oa(Y,ue))}(e)}}function dd(e){if(typeof e!="string")throw Error();return e}function Ri(e){if(e!=null&&typeof e!="string")throw Error();return e}function Oi(e){return e==null||typeof e=="string"?e:void 0}function Ua(e,t,i,r){if(e!=null&&typeof e=="object"&&e.W===Ar)return e;if(!Array.isArray(e))return i?2&r?((e=t[z2])||(Fi((e=new t).u),e=t[z2]=e),t=e):t=new t:t=void 0,t;let n=i=0|e[L];return n===0&&(n|=32&r),n|=2&r,n!==i&&be(e,n),new t(e)}function tp(e,t,i){if(t)e:{if(!Tr(t=e))throw La("int64");switch(typeof t){case"string":t=ld(t);break e;case"bigint":t=Gt(Lr(64,t));break e;default:t=ud(t)}}else e=typeof(t=e),t=t==null?t:e==="bigint"?Gt(Lr(64,t)):Tr(t)?e==="string"?ld(t):ud(t):void 0;return(e=t)==null?i?Jf:void 0:e}function ip(e){return e}const rp={};let np=function(){try{return cn(new class extends Map{constructor(){super()}}),!1}catch(e){return!0}}();class qa{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,i){return this.g.set(t,i),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,i){return this.g.forEach(t,i)}[Symbol.iterator](){return this.entries()}}const op=np?(Object.setPrototypeOf(qa.prototype,Map.prototype),Object.defineProperties(qa.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qa):class extends Map{constructor(){super()}};function hd(e){return e}function Va(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var bt=class extends op{constructor(e,t,i=hd,r=hd){super();let n=0|e[L];n|=64,be(e,n),this.M=n,this.I=t,this.S=i,this.X=this.I?sp:r;for(let o=0;o<e.length;o++){const s=e[o],a=i(s[0],!1,!0);let c=s[1];t?c===void 0&&(c=null):c=r(s[1],!1,!0,void 0,void 0,n),super.set(a,c)}}La(){var e=dp;if(this.size!==0)return Array.from(super.entries(),t=>(t[0]=e(t[0]),t[1]=e(t[1]),t))}da(e=ap){const t=[],i=super.entries();for(var r;!(r=i.next()).done;)(r=r.value)[0]=e(r[0]),r[1]=e(r[1]),t.push(r);return t}clear(){Va(this),super.clear()}delete(e){return Va(this),super.delete(this.S(e,!0,!1))}entries(){if(this.I){var e=super.keys();e=new K2(e,cp,this)}else e=super.entries();return e}values(){if(this.I){var e=super.keys();e=new K2(e,bt.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.I?super.forEach((i,r,n)=>{e.call(t,n.get(r),r,n)}):super.forEach(e,t)}set(e,t){return Va(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.X(t,!0,!0,this.I,!1,this.M))}Ja(e){const t=this.S(e[0],!1,!0);e=e[1],e=this.I?e===void 0?null:e:this.X(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);const t=super.get(e);if(t!==void 0){var i=this.I;return i?((i=this.X(t,!1,!0,i,this.pa,this.M))!==t&&super.set(e,i),i):t}}[Symbol.iterator](){return this.entries()}};function sp(e,t,i,r,n,o){return e=Ua(e,r,i,o),n&&(e=_n(e)),e}function ap(e){return e}function cp(e){return[e,this.get(e)]}let lp,vn,fd,up;function pd(){return lp||(lp=new bt(Fi([]),void 0,void 0,void 0,rp))}function ja(e,t,i,r,n){if(e!=null){if(Array.isArray(e)){const o=0|e[L];return e.length===0&&1&o?void 0:n&&2&o?e:bn(e,t,i,r!==void 0,n)}return t(e,r)}}function bn(e,t,i,r,n){const o=r||i?0|e[L]:0,s=r?!!(32&o):void 0;let a=0;const c=(r=Oe(e)).length;for(let p=0;p<c;p++){var l=r[p];if(p===c-1&&hn(l)){var d=t,u=i,h=s,f=n;let m;for(let v in l){const g=ja(l[v],d,u,h,f);g!=null&&((m!=null?m:m={})[v]=g)}l=m}else l=ja(r[p],t,i,s,n);r[p]=l,l!=null&&(a=p+1)}return a<c&&(r.length=a),i&&((e=Ba(e))&&(r[Ii]=Oe(e)),i(o,r)),r}function dp(e){return ja(e,za,void 0,void 0,!1)}function za(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return Da(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(di(e))return di(e)&&Ta(G2),H2(e);if(e.W===Ar)return md(e);if(e instanceof Tt){const t=e.g;return t==null?"":typeof t=="string"?t:e.g=H2(t)}return e instanceof bt?e.La():void 0}return e}function md(e){var t=e.u;e=bn(t,za,void 0,void 0,!1);var i=0|t[L];if((t=e.length)&&!(512&i)){var r=e[t-1],n=!1;hn(r)?(t--,n=!0):r=void 0;var o=t-(i=512&i?0:-1),s=(vn!=null?vn:ip)(o,i,e,r);if(r&&(e[t]=void 0),o<s&&r){for(var a in o=!0,r){const c=+a;c<=s?(e[n=c+i]=r[a],t=Math.max(n+1,t),n=!1,delete r[a]):o=!1}o&&(r=void 0)}for(o=t-1;t>0;o=t-1)if((a=e[o])==null)t--,n=!0;else{if(!((o-=i)>=s))break;(r!=null?r:r={})[o]=a,t--,n=!0}n&&(e.length=t),r&&e.push(r)}return e}function Xt(e,t,i){return e=gd(e,t[0],t[1],i?1:2),t!==fd&&i&&un(e,8192),e}function gd(e,t,i,r){if(e==null){var n=96;i?(e=[i],n|=512):e=[],t&&(n=-16760833&n|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(8192&(n=0|e[L])||!(64&n)||2&n||Ta(Uf),1024&n)throw Error("farr");if(64&n)return e;if(r===1||r===2||(n|=64),i&&(n|=512,i!==e[0]))throw Error("mid");e:{var o=(i=e).length;if(o){var s=o-1;if(hn(r=i[s])){if((s-=t=512&(n|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var a in r)(o=+a)<s&&(i[o+t]=r[a],delete r[a]);n=-16760833&n|(1023&s)<<14;break e}}if(t){if((a=Math.max(t,o-(512&n?0:-1)))>1024)throw Error("spvt");n=-16760833&n|(1023&a)<<14}}}return be(e,n),e}function Ga(e,t,i=Ma){if(e!=null){if($2&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var r=0|e[L];return 2&r?e:(t&&(t=r===0||!!(32&r)&&!(64&r||!(16&r))),t?(be(e,34|r),4&r&&Object.freeze(e),e):bn(e,Ga,4&r?Ma:i,!0,!0))}return e.W===Ar?e=2&(r=0|(i=e.u)[L])?e:new e.constructor(yn(i,r,!0)):e instanceof bt&&!(2&e.M)&&(i=Fi(e.da(Ga)),e=new bt(i,e.I,e.S,e.X)),e}}function yn(e,t,i){const r=i||2&t?Ma:qf,n=!!(32&t);return e=function(o,s,a){const c=Oe(o);var l=c.length;const d=256&s?c[l-1]:void 0;for(l+=d?-1:0,s=512&s?1:0;s<l;s++)c[s]=a(c[s]);if(d){s=c[s]={};for(const u in d)s[u]=a(d[u])}return(o=Ba(o))&&(c[Ii]=Oe(o)),c}(e,t,o=>Ga(o,n,r)),un(e,32|(i?2:0)),e}function _n(e){const t=e.u,i=0|t[L];return 2&i?new e.constructor(yn(t,i,!1)):e}function Pi(e,t){return Mt(e=e.u,0|e[L],t)}function Mt(e,t,i){if(i===-1)return null;const r=i+(512&t?0:-1),n=e.length-1;return r>=n&&256&t?e[n][i]:r<=n?e[r]:void 0}function Q(e,t,i){const r=e.u;let n=0|r[L];return zt(n),ce(r,n,t,i),e}function ce(e,t,i,r){const n=512&t?0:-1,o=i+n;var s=e.length-1;return o>=s&&256&t?(e[s][i]=r,t):o<=s?(e[o]=r,t):(r!==void 0&&(i>=(s=t>>14&1023||536870912)?r!=null&&(e[s+n]={[i]:r},be(e,t|=256)):e[o]=r),t)}function wn(e,t){let i=0|(e=e.u)[L];const r=Mt(e,i,t),n=Wt(r);return n!=null&&n!==r&&ce(e,i,t,n),n}function vd(e){let t=0|(e=e.u)[L];const i=Mt(e,t,1),r=Fa(i,!0);return r!=null&&r!==i&&ce(e,t,1,r),r}function pi(){return Vf===void 0?2:4}function mi(e,t,i,r,n){const o=e.u,s=2&(e=0|o[L])?1:r;n=!!n;let a=0|(r=Za(o,e,t))[L];if(!(4&a)){4&a&&(r=Oe(r),a=Bt(a,e),e=ce(o,e,t,r));let c=0,l=0;for(;c<r.length;c++){const d=i(r[c]);d!=null&&(r[l++]=d)}l<c&&(r.length=l),a=Wa(a,e),i=-2049&(20|a),a=i&=-4097,be(r,a),2&a&&Object.freeze(r)}return s===1||s===4&&32&a?It(a)||(n=a,a|=2,a!==n&&be(r,a),Object.freeze(r)):(s===2&&It(a)&&(r=Oe(r),a=Bt(a,e),a=Kt(a,e,n),be(r,a),e=ce(o,e,t,r)),It(a)||(t=a,a=Kt(a,e,n),a!==t&&be(r,a))),r}function Za(e,t,i){return e=Mt(e,t,i),Array.isArray(e)?e:Ia}function Wa(e,t){return e===0&&(e=Bt(e,t)),1|e}function It(e){return!!(2&e)&&!!(4&e)||!!(1024&e)}function bd(e){e=Oe(e);for(let t=0;t<e.length;t++){const i=e[t]=Oe(e[t]);Array.isArray(i[1])&&(i[1]=Fi(i[1]))}return e}function Xa(e,t,i,r){let n=0|(e=e.u)[L];zt(n),ce(e,n,t,(r==="0"?Number(i)===0:i===r)?void 0:i)}function $i(e,t,i,r){zt(t);let n=Za(e,t,i);const o=n!==Ia;if(64&t||!(8192&t)||!o){const s=o?0|n[L]:0;let a=s;(!o||2&a||It(a)||4&a&&!(32&a))&&(n=Oe(n),a=Bt(a,t),t=ce(e,t,i,n)),a=-13&Wa(a,t),a=Kt(r?-17&a:16|a,t,!0),a!==s&&be(n,a)}return n}function Ka(e,t){var i=bh;return Ja(Ya(e=e.u),e,0|e[L],i)===t?t:-1}function Ya(e){var i;if(ln)return(i=e[kr])!=null?i:e[kr]=new Map;if(kr in e)return e[kr];const t=new Map;return Object.defineProperty(e,kr,{value:t}),t}function yd(e,t,i,r){const n=Ya(e),o=Ja(n,e,t,i);return o!==r&&(o&&(t=ce(e,t,o)),n.set(i,r)),t}function Ja(e,t,i,r){let n=e.get(r);if(n!=null)return n;n=0;for(let o=0;o<r.length;o++){const s=r[o];Mt(t,i,s)!=null&&(n!==0&&(i=ce(t,i,n)),n=s)}return e.set(r,n),n}function Qa(e,t,i){let r=0|e[L];const n=Mt(e,r,i);let o;if(n!=null&&n.W===Ar)return(t=_n(n))!==n&&ce(e,r,i,t),t.u;if(Array.isArray(n)){const s=0|n[L];o=2&s?Xt(yn(n,s,!1),t,!0):64&s?n:Xt(o,t,!0)}else o=Xt(void 0,t,!0);return o!==n&&ce(e,r,i,o),o}function _d(e,t,i){let r=0|(e=e.u)[L];const n=Mt(e,r,i);return(t=Ua(n,t,!1,r))!==n&&t!=null&&ce(e,r,i,t),t}function V(e,t,i){if((t=_d(e,t,i))==null)return t;let r=0|(e=e.u)[L];if(!(2&r)){const n=_n(t);n!==t&&ce(e,r,i,t=n)}return t}function wd(e,t,i,r,n,o,s){e=e.u;var a=!!(2&t);const c=a?1:n;o=!!o,s&&(s=!a);var l=0|(n=Za(e,t,r))[L];if(!(a=!!(4&l))){var d=n,u=t;const h=!!(2&(l=Wa(l,t)));h&&(u|=2);let f=!h,p=!0,m=0,v=0;for(;m<d.length;m++){const g=Ua(d[m],i,!1,u);if(g instanceof i){if(!h){const b=!!(2&(0|g.u[L]));f&&(f=!b),p&&(p=b)}d[v++]=g}}v<m&&(d.length=v),l|=4,l=p?16|l:-17&l,be(d,l=f?8|l:-9&l),h&&Object.freeze(d)}if(s&&!(8&l||!n.length&&(c===1||c===4&&32&l))){for(It(l)&&(n=Oe(n),l=Bt(l,t),t=ce(e,t,r,n)),i=n,s=l,d=0;d<i.length;d++)(l=i[d])!==(u=_n(l))&&(i[d]=u);s|=8,be(i,s=i.length?-17&s:16|s),l=s}return c===1||c===4&&32&l?It(l)||(t=l,(l|=!n.length||16&l&&(!a||32&l)?2:1024)!==t&&be(n,l),Object.freeze(n)):(c===2&&It(l)&&(be(n=Oe(n),l=Kt(l=Bt(l,t),t,o)),t=ce(e,t,r,n)),It(l)||(r=l,(l=Kt(l,t,o))!==r&&be(n,l))),n}function Ft(e,t,i){const r=0|e.u[L];return wd(e,r,t,i,pi(),!1,!(2&r))}function I(e,t,i,r){return r==null&&(r=void 0),Q(e,i,r)}function Mr(e,t,i,r){r==null&&(r=void 0);e:{let n=0|(e=e.u)[L];if(zt(n),r==null){const o=Ya(e);if(Ja(o,e,n,i)!==t)break e;o.set(i,0)}else n=yd(e,n,i,t);ce(e,n,t,r)}}function Bt(e,t){return-1025&(e=32|(2&t?2|e:-3&e))}function Kt(e,t,i){return 32&t&&i||(e&=-33),e}function Cn(e,t,i){zt(0|e.u[L]),mi(e,t,Oi,2,!0).push(dd(i))}function En(e,t,i,r){const n=0|e.u[L];zt(n),e=wd(e,n,i,t,2,!0),r=r!=null?r:new i,e.push(r),e[L]=2&(0|r.u[L])?-9&e[L]:-17&e[L]}function et(e,t){return Di(Pi(e,t))}function tt(e,t){return Oi(Pi(e,t))}function fe(e,t){var i;return(i=wn(e,t))!=null?i:0}function Ir(e,t,i){if(i!=null&&typeof i!="boolean")throw e=typeof i,Error(`Expected boolean but got ${e!="object"?e:i?Array.isArray(i)?"array":e:"null"}: ${i}`);Q(e,t,i)}function yt(e,t,i){if(i!=null){if(typeof i!="number"||!gn(i))throw La("int32");i|=0}Q(e,t,i)}function A(e,t,i){if(i!=null&&typeof i!="number")throw Error(`Value of float/double field must be a number, found ${typeof i}: ${i}`);Q(e,t,i)}function xn(e,t,i){{const s=e.u;let a=0|s[L];if(zt(a),i==null)ce(s,a,t);else{var r=e=0|i[L],n=It(e),o=n||Object.isFrozen(i);for(n||(e=0),o||(i=Oe(i),r=0,e=Kt(e=Bt(e,a),a,!0),o=!1),e|=21,n=0;n<i.length;n++){const c=i[n],l=dd(c);Object.is(c,l)||(o&&(i=Oe(i),r=0,e=Kt(e=Bt(e,a),a,!0),o=!1),i[n]=l)}e!==r&&(o&&(i=Oe(i),e=Kt(e=Bt(e,a),a,!0)),be(i,e)),ce(s,a,t,i)}}}function Cd(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function ec(){return Error("Failed to read varint, encoding is invalid.")}function Ed(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function tc(e){if(typeof e=="string")return{buffer:q2(e),O:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Uint8Array)return{buffer:e,O:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Tt)return{buffer:Aa(e)||new Uint8Array(0),O:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function ic(e,t){let i,r=0,n=0,o=0;const s=e.h;let a=e.g;do i=s[a++],r|=(127&i)<<o,o+=7;while(o<32&&128&i);for(o>32&&(n|=(127&i)>>4),o=3;o<32&&128&i;o+=7)i=s[a++],n|=(127&i)<<o;if(gi(e,a),i<128)return t(r>>>0,n>>>0);throw ec()}function rc(e){let t=0,i=e.g;const r=i+10,n=e.h;for(;i<r;){const o=n[i++];if(t|=o,(128&o)==0)return gi(e,i),!!(127&t)}throw ec()}function Yt(e){const t=e.h;let i=e.g,r=t[i++],n=127&r;if(128&r&&(r=t[i++],n|=(127&r)<<7,128&r&&(r=t[i++],n|=(127&r)<<14,128&r&&(r=t[i++],n|=(127&r)<<21,128&r&&(r=t[i++],n|=r<<28,128&r&&128&t[i++]&&128&t[i++]&&128&t[i++]&&128&t[i++]&&128&t[i++])))))throw ec();return gi(e,i),n}function Dt(e){return Yt(e)>>>0}function nc(e){var t=e.h;const i=e.g,r=t[i],n=t[i+1],o=t[i+2];return t=t[i+3],gi(e,e.g+4),(r<<0|n<<8|o<<16|t<<24)>>>0}function oc(e){var t=nc(e);e=2*(t>>31)+1;const i=t>>>23&255;return t&=8388607,i==255?t?NaN:e*(1/0):i==0?1401298464324817e-60*e*t:e*Math.pow(2,i-150)*(t+8388608)}function hp(e){return Yt(e)}function sc(e,t,{aa:i=!1}={}){e.aa=i,t&&(t=tc(t),e.h=t.buffer,e.m=t.O,e.j=0,e.l=e.h.length,e.g=e.j)}function gi(e,t){if(e.g=t,t>e.l)throw Ed(e.l,t)}function xd(e,t){if(t<0)throw Error(`Tried to read a negative byte length: ${t}`);const i=e.g,r=i+t;if(r>e.l)throw Ed(t,e.l-i);return e.g=r,i}function kd(e,t){if(t==0)return hi();var i=xd(e,t);return e.aa&&e.m?i=e.h.subarray(i,i+t):(e=e.h,i=i===(t=i+t)?new Uint8Array(0):Kf?e.slice(i,t):new Uint8Array(e.subarray(i,t))),i.length==0?hi():new Tt(i,Ti)}bt.prototype.toJSON=void 0;var Ad=[];function Sd(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var i=Dt(e.g);if(t=i>>>3,!((i&=7)>=0&&i<=5))throw Cd(i,e.l);if(t<1)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=i,!0}function kn(e){switch(e.h){case 0:e.h!=0?kn(e):rc(e.g);break;case 1:gi(e=e.g,e.g+8);break;case 2:if(e.h!=2)kn(e);else{var t=Dt(e.g);gi(e=e.g,e.g+t)}break;case 5:gi(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!Sd(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}kn(e)}break;default:throw Cd(e.h,e.l)}}function Fr(e,t,i){const r=e.g.l,n=Dt(e.g),o=e.g.g+n;let s=o-r;if(s<=0&&(e.g.l=o,i(t,e,void 0,void 0,void 0),s=o-e.g.g),s)throw Error(`Message parsing ended unexpectedly. Expected to read ${n} bytes, instead read ${n-s} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=o,e.g.l=r,t}function ac(e){var t=Dt(e.g),i=xd(e=e.g,t);if(e=e.h,Ff){var r,n=e;(r=_a)||(r=_a=new TextDecoder("utf-8",{fatal:!0})),t=i+t,n=i===0&&t===n.length?n:n.subarray(i,t);try{var o=r.decode(n)}catch(a){if(sn===void 0){try{r.decode(new Uint8Array([128]))}catch(c){}try{r.decode(new Uint8Array([97])),sn=!0}catch(c){sn=!1}}throw!sn&&(_a=void 0),a}}else{t=(o=i)+t,i=[];let a,c=null;for(;o<t;){var s=e[o++];s<128?i.push(s):s<224?o>=t?ui():(a=e[o++],s<194||(192&a)!=128?(o--,ui()):i.push((31&s)<<6|63&a)):s<240?o>=t-1?ui():(a=e[o++],(192&a)!=128||s===224&&a<160||s===237&&a>=160||(192&(r=e[o++]))!=128?(o--,ui()):i.push((15&s)<<12|(63&a)<<6|63&r)):s<=244?o>=t-2?ui():(a=e[o++],(192&a)!=128||a-144+(s<<28)>>30!=0||(192&(r=e[o++]))!=128||(192&(n=e[o++]))!=128?(o--,ui()):(s=(7&s)<<18|(63&a)<<12|(63&r)<<6|63&n,s-=65536,i.push(55296+(s>>10&1023),56320+(1023&s)))):ui(),i.length>=8192&&(c=I2(c,i),i.length=0)}o=I2(c,i)}return o}function Ld(e){const t=Dt(e.g);return kd(e.g,t)}function An(e,t,i){var r=Dt(e.g);for(r=e.g.g+r;e.g.g<r;)i.push(t(e.g))}var Sn=[];function ht(e,t,i){t.g?t.m(e,t.g,t.h,i):t.m(e,t.h,i)}var k=class{constructor(e,t){this.u=gd(e,t)}toJSON(){try{var e=md(this)}finally{vn=void 0}return e}l(){var e=Wp;return e.g?e.l(this,e.g,e.h):e.l(this,e.h,e.defaultValue)}clone(){const e=this.u;return new this.constructor(yn(e,0|e[L],!1))}O(){return!!(2&(0|this.u[L]))}};function Td(e){return e?/^\d+$/.test(e)?(mn(e),new cc(Y,ue)):null:fp||(fp=new cc(0,0))}k.prototype.W=Ar,k.prototype.toString=function(){return this.u.toString()};var cc=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let fp;function Md(e){return e?/^-?\d+$/.test(e)?(mn(e),new lc(Y,ue)):null:pp||(pp=new lc(0,0))}var lc=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let pp;function Ni(e,t,i){for(;i>0||t>127;)e.g.push(127&t|128),t=(t>>>7|i<<25)>>>0,i>>>=7;e.g.push(t)}function Hi(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function Ln(e,t){if(t>=0)Hi(e,t);else{for(let i=0;i<9;i++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function Br(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function Ui(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function He(e,t,i){Hi(e.g,8*t+i)}function uc(e,t){return He(e,t,2),t=e.g.end(),Ui(e,t),t.push(e.h),t}function dc(e,t){var i=t.pop();for(i=e.h+e.g.length()-i;i>127;)t.push(127&i|128),i>>>=7,e.h++;t.push(i),e.h++}function Tn(e,t,i){He(e,t,2),Hi(e.g,i.length),Ui(e,e.g.end()),Ui(e,i)}function Mn(e,t,i,r){i!=null&&(t=uc(e,t),r(i,e),dc(e,t))}function ft(){const e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var hc=ft(),Id=ft(),fc=ft(),pc=ft(),Fd=ft(),Bd=ft(),mc=ft(),Dd=ft(),Rd=ft(),qi=class{constructor(e,t,i){this.g=e,this.h=t,e=hc,this.l=!!e&&i===e||!1}};function In(e,t){return new qi(e,t,hc)}function Od(e,t,i,r,n){Mn(e,i,Hd(t,r),n)}const mp=In(function(e,t,i,r,n){return e.h===2&&(Fr(e,Qa(t,r,i),n),!0)},Od),gp=In(function(e,t,i,r,n){return e.h===2&&(Fr(e,Qa(t,r,i),n),!0)},Od);var Fn=Symbol(),gc=Symbol(),Pd=Symbol(),$d=Symbol();let Bn,Dn;function vi(e,t,i,r){var n=r[e];if(n)return n;(n={}).Ma=r,n.T=function(u){switch(typeof u){case"boolean":return fd||(fd=[0,void 0,!0]);case"number":return u>0?void 0:u===0?up||(up=[0,void 0]):[-u,void 0];case"string":return[0,u];case"object":return u}}(r[0]);var o=r[1];let s=1;o&&o.constructor===Object&&(n.ga=o,typeof(o=r[++s])=="function"&&(n.la=!0,Bn!=null||(Bn=o),Dn!=null||(Dn=r[s+1]),o=r[s+=2]));const a={};for(;o&&Array.isArray(o)&&o.length&&typeof o[0]=="number"&&o[0]>0;){for(var c=0;c<o.length;c++)a[o[c]]=o;o=r[++s]}for(c=1;o!==void 0;){let u;typeof o=="number"&&(c+=o,o=r[++s]);var l=void 0;if(o instanceof qi?u=o:(u=mp,s--),u==null?void 0:u.l){o=r[++s],l=r;var d=s;typeof o=="function"&&(o=o(),l[d]=o),l=o}for(d=c+1,typeof(o=r[++s])=="number"&&o<0&&(d-=o,o=r[++s]);c<d;c++){const h=a[c];l?i(n,c,u,l,h):t(n,c,u,h)}}return r[e]=n}function Nd(e){return Array.isArray(e)?e[0]instanceof qi?e:[gp,e]:[e,void 0]}function Hd(e,t){return e instanceof k?e.u:Array.isArray(e)?Xt(e,t,!1):void 0}function vc(e,t,i,r){const n=i.g;e[t]=r?(o,s,a)=>n(o,s,a,r):n}function bc(e,t,i,r,n){const o=i.g;let s,a;e[t]=(c,l,d)=>o(c,l,d,a||(a=vi(gc,vc,bc,r).T),s||(s=yc(r)),n)}function yc(e){let t=e[Pd];if(t!=null)return t;const i=vi(gc,vc,bc,e);return t=i.la?(r,n)=>Bn(r,n,i):(r,n)=>{const o=0|r[L];for(;Sd(n)&&n.h!=4;){var s=n.m,a=i[s];if(a==null){var c=i.ga;c&&(c=c[s])&&(c=vp(c))!=null&&(a=i[s]=c)}a!=null&&a(n,r,s)||(s=(a=n).l,kn(a),a.fa?a=void 0:(c=a.g.g-s,a.g.g=s,a=kd(a.g,c)),s=r,a&&((c=s[Ii])?c.push(a):s[Ii]=[a]))}return 8192&o&&Fi(r),!0},e[Pd]=t}function vp(e){const t=(e=Nd(e))[0].g;if(e=e[1]){const i=yc(e),r=vi(gc,vc,bc,e).T;return(n,o,s)=>t(n,o,s,r,i)}return t}function Rn(e,t,i){e[t]=i.h}function On(e,t,i,r){let n,o;const s=i.h;e[t]=(a,c,l)=>s(a,c,l,o||(o=vi(Fn,Rn,On,r).T),n||(n=Ud(r)))}function Ud(e){let t=e[$d];if(!t){const i=vi(Fn,Rn,On,e);t=(r,n)=>qd(r,n,i),e[$d]=t}return t}function qd(e,t,i){(function(r,n,o){const s=512&n?0:-1,a=r.length,c=a+((n=64&n?256&n:!!a&&hn(r[a-1]))?-1:0);for(let l=0;l<c;l++)o(l-s,r[l]);if(n){r=r[a-1];for(const l in r)!isNaN(l)&&o(+l,r[l])}})(e,0|e[L]|(i.T[1]?512:0),(r,n)=>{if(n!=null){var o=function(s,a){var c=s[a];if(c)return c;if((c=s.ga)&&(c=c[a])){var l=(c=Nd(c))[0].h;if(c=c[1]){const d=Ud(c),u=vi(Fn,Rn,On,c).T;c=s.la?Dn(u,d):(h,f,p)=>l(h,f,p,u,d)}else c=l;return s[a]=c}}(i,r);o&&o(t,n,r)}}),(e=Ba(e))&&function(r,n){Ui(r,r.g.end());for(let o=0;o<n.length;o++)Ui(r,Aa(n[o])||new Uint8Array(0))}(t,e)}function Vi(e,t){if(Array.isArray(t)){var i=0|t[L];if(4&i)return t;for(var r=0,n=0;r<t.length;r++){const o=e(t[r]);o!=null&&(t[n++]=o)}return n<r&&(t.length=n),be(t,-6145&(5|i)),2&i&&Object.freeze(t),t}}function Me(e,t,i){return new qi(e,t,i)}function ji(e,t,i){return new qi(e,t,i)}function Ie(e,t,i){ce(e,0|e[L],t,i)}var bp=In(function(e,t,i,r,n){return e.h===2&&(e=Fr(e,Xt([void 0,void 0],r,!0),n),zt(r=0|t[L]),(n=Mt(t,r,i))instanceof bt?(2&n.M)!=0?((n=n.da()).push(e),ce(t,r,i,n)):n.Ja(e):Array.isArray(n)?(2&(0|n[L])&&ce(t,r,i,n=bd(n)),n.push(e)):ce(t,r,i,[e]),!0)},function(e,t,i,r,n){if(t instanceof bt)t.forEach((o,s)=>{Mn(e,i,Xt([s,o],r,!1),n)});else if(Array.isArray(t))for(let o=0;o<t.length;o++){const s=t[o];Array.isArray(s)&&Mn(e,i,Xt(s,r,!1),n)}});function Vd(e,t,i){if(t=function(r){if(r==null)return r;const n=typeof r;if(n==="bigint")return String(Lr(64,r));if(Tr(r)){if(n==="string")return cd(r);if(n==="number")return Na(r)}}(t),t!=null&&(typeof t=="string"&&Md(t),t!=null))switch(He(e,i,0),typeof t){case"number":e=e.g,fi(t),Ni(e,Y,ue);break;case"bigint":i=BigInt.asUintN(64,t),i=new lc(Number(i&BigInt(4294967295)),Number(i>>BigInt(32))),Ni(e.g,i.h,i.g);break;default:i=Md(t),Ni(e.g,i.h,i.g)}}function jd(e,t,i){(t=Di(t))!=null&&t!=null&&(He(e,i,0),Ln(e.g,t))}function zd(e,t,i){(t=rd(t))!=null&&(He(e,i,0),e.g.g.push(t?1:0))}function Gd(e,t,i){(t=Oi(t))!=null&&Tn(e,i,F2(t))}function Zd(e,t,i,r,n){Mn(e,i,Hd(t,r),n)}function Wd(e,t,i){t==null||typeof t=="string"||t instanceof Tt||(di(t)?di(t)&&Ta(G2):t=void 0),t!=null&&Tn(e,i,tc(t).buffer)}function Xd(e,t,i){return(e.h===5||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,oc,t):t.push(oc(e.g)),!0)}var Rt=Me(function(e,t,i){if(e.h!==1)return!1;var r=e.g;e=nc(r);const n=nc(r);r=2*(n>>31)+1;const o=n>>>20&2047;return e=4294967296*(1048575&n)+e,Ie(t,i,o==2047?e?NaN:r*(1/0):o==0?5e-324*r*e:r*Math.pow(2,o-1075)*(e+4503599627370496)),!0},function(e,t,i){(t=Wt(t))!=null&&(He(e,i,1),e=e.g,(i=Q2||(Q2=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),Y=i.getUint32(0,!0),ue=i.getUint32(4,!0),Br(e,Y),Br(e,ue))},ft()),ye=Me(function(e,t,i){return e.h===5&&(Ie(t,i,oc(e.g)),!0)},function(e,t,i){(t=Wt(t))!=null&&(He(e,i,5),e=e.g,Ra(t),Br(e,Y))},mc),yp=ji(Xd,function(e,t,i){if((t=Vi(Wt,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&(He(r,n,5),r=r.g,Ra(o),Br(r,Y))}},mc),_c=ji(Xd,function(e,t,i){if((t=Vi(Wt,t))!=null&&t.length){He(e,i,2),Hi(e.g,4*t.length);for(let r=0;r<t.length;r++)i=e.g,Ra(t[r]),Br(i,Y)}},mc),Jt=Me(function(e,t,i){return e.h===0&&(Ie(t,i,ic(e.g,Pa)),!0)},Vd,Bd),wc=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=ic(e.g,Pa))===0?void 0:e),!0)},Vd,Bd),_p=Me(function(e,t,i){return e.h===0&&(Ie(t,i,ic(e.g,Oa)),!0)},function(e,t,i){if((t=ep(t))!=null&&(typeof t=="string"&&Td(t),t!=null))switch(He(e,i,0),typeof t){case"number":e=e.g,fi(t),Ni(e,Y,ue);break;case"bigint":i=BigInt.asUintN(64,t),i=new cc(Number(i&BigInt(4294967295)),Number(i>>BigInt(32))),Ni(e.g,i.h,i.g);break;default:i=Td(t),Ni(e.g,i.h,i.g)}},ft()),de=Me(function(e,t,i){return e.h===0&&(Ie(t,i,Yt(e.g)),!0)},jd,pc),Pn=ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,Yt,t):t.push(Yt(e.g)),!0)},function(e,t,i){if((t=Vi(Di,t))!=null&&t.length){i=uc(e,i);for(let r=0;r<t.length;r++)Ln(e.g,t[r]);dc(e,i)}},pc),zi=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=Yt(e.g))===0?void 0:e),!0)},jd,pc),ne=Me(function(e,t,i){return e.h===0&&(Ie(t,i,rc(e.g)),!0)},zd,Id),Gi=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=rc(e.g))===!1?void 0:e),!0)},zd,Id),Se=ji(function(e,t,i){return e.h===2&&(e=ac(e),$i(t,0|t[L],i,!1).push(e),!0)},function(e,t,i){if((t=Vi(Oi,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&Tn(r,n,F2(o))}},fc),Qt=Me(function(e,t,i){return e.h===2&&(Ie(t,i,(e=ac(e))===""?void 0:e),!0)},Gd,fc),W=Me(function(e,t,i){return e.h===2&&(Ie(t,i,ac(e)),!0)},Gd,fc),we=function(e,t,i=hc){return new qi(e,t,i)}(function(e,t,i,r,n){return e.h===2&&(r=Xt(void 0,r,!0),$i(t,0|t[L],i,!0).push(r),Fr(e,r,n),!0)},function(e,t,i,r,n){if(Array.isArray(t))for(let o=0;o<t.length;o++)Zd(e,t[o],i,r,n)}),X=In(function(e,t,i,r,n,o){return e.h===2&&(yd(t,0|t[L],o,i),Fr(e,t=Qa(t,r,i),n),!0)},Zd),Kd=Me(function(e,t,i){return e.h===2&&(Ie(t,i,Ld(e)),!0)},Wd,Dd),wp=ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,Dt,t):t.push(Dt(e.g)),!0)},function(e,t,i){if((t=Vi(nd,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&(He(r,n,0),Hi(r.g,o))}},Fd),Cp=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=Dt(e.g))===0?void 0:e),!0)},function(e,t,i){(t=nd(t))!=null&&t!=null&&(He(e,i,0),Hi(e.g,t))},Fd),Ue=Me(function(e,t,i){return e.h===0&&(Ie(t,i,Yt(e.g)),!0)},function(e,t,i){(t=Di(t))!=null&&(t=parseInt(t,10),He(e,i,0),Ln(e.g,t))},Rd);class Ep{constructor(t,i){this.h=t,this.g=i,this.l=V,this.m=I,this.defaultValue=void 0}register(){cn(this)}}function pt(e,t){return new Ep(e,t)}function ei(e,t){return(i,r)=>{if(Sn.length){const o=Sn.pop();o.o(r),sc(o.g,i,r),i=o}else i=new class{constructor(o,s){if(Ad.length){const a=Ad.pop();sc(a,o,s),o=a}else o=new class{constructor(a,c){this.h=null,this.m=!1,this.g=this.l=this.j=0,sc(this,a,c)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.aa=!1}}(o,s);this.g=o,this.l=this.g.g,this.h=this.m=-1,this.o(s)}o({fa:o=!1}={}){this.fa=o}}(i,r);try{const o=new e,s=o.u;yc(t)(s,i);var n=o}finally{i.g.clear(),i.m=-1,i.h=-1,Sn.length<100&&Sn.push(i)}return n}}function $n(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const s=this.g;return this.g=[],s}}}};qd(this.u,t,vi(Fn,Rn,On,e)),Ui(t,t.g.end());const i=new Uint8Array(t.h),r=t.l,n=r.length;let o=0;for(let s=0;s<n;s++){const a=r[s];i.set(a,o),o+=a.length}return t.l=[i],i}}var Yd=class extends k{constructor(e){super(e)}},Jd=[0,Qt,Me(function(e,t,i){return e.h===2&&(Ie(t,i,(e=Ld(e))===hi()?void 0:e),!0)},function(e,t,i){if(t!=null){if(t instanceof k){const r=t.Oa;return void(r&&(t=r(t),t!=null&&Tn(e,i,tc(t).buffer)))}if(Array.isArray(t))return}Wd(e,t,i)},Dd)];let Cc,Qd=globalThis.trustedTypes;function eh(e){Cc===void 0&&(Cc=function(){let i=null;if(!Qd)return i;try{const r=n=>n;i=Qd.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch(r){}return i}());var t=Cc;return new class{constructor(i){this.g=i}toString(){return this.g+""}}(t?t.createScriptURL(e):e)}function xp(e,...t){if(t.length===0)return eh(e[0]);let i=e[0];for(let r=0;r<t.length;r++)i+=encodeURIComponent(t[r])+e[r+1];return eh(i)}var th=[0,de,Ue,ne,-1,Pn,Ue,-1],kp=class extends k{constructor(e){super(e)}},ih=[0,ne,W,ne,Ue,-1,ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,hp,t):t.push(Yt(e.g)),!0)},function(e,t,i){if((t=Vi(Di,t))!=null&&t.length){i=uc(e,i);for(let r=0;r<t.length;r++)Ln(e.g,t[r]);dc(e,i)}},Rd),W,-1,[0,ne,-1],Ue,ne,-1],rh=[0,W,-2],nh=class extends k{constructor(e){super(e)}},oh=[0],sh=[0,de,ne,1,ne,-3],qe=class extends k{constructor(e){super(e,2)}},_e={};_e[336783863]=[0,W,ne,-1,de,[0,[1,2,3,4,5,6,7,8,9],X,oh,X,ih,X,rh,X,sh,X,th,X,[0,W,-2],X,[0,W,Ue],X,[0,Ue,W,-1],X,[0,Ue,-1]],[0,W],ne,[0,[1,3],[2,4],X,[0,Pn],-1,X,[0,Se],-1,we,[0,W,-1]],W];var ah=[0,wc,-1,Gi,-3,wc,Pn,Qt,zi,wc,-1,Gi,zi,Gi,-2,Qt];function Ve(e,t){Xa(e,2,Ri(t),"")}function ee(e,t){Cn(e,3,t)}function q(e,t){Cn(e,4,t)}var Fe=class extends k{constructor(e){super(e,500)}o(e){return I(this,0,7,e)}},Dr=[-1,{}],ch=[0,W,1,Dr],lh=[0,W,Se,Dr];function je(e,t){En(e,1,Fe,t)}function ie(e,t){Cn(e,10,t)}function z(e,t){Cn(e,15,t)}var Pe=class extends k{constructor(e){super(e,500)}o(e){return I(this,0,1001,e)}},uh=[-500,we,[-500,Qt,-1,Se,-3,[-2,_e,ne],we,Jd,zi,-1,ch,lh,we,[0,Qt,Gi],Qt,ah,zi,Se,987,Se],4,we,[-500,W,-1,[-1,{}],998,W],we,[-500,W,Se,-1,[-2,{},ne],997,Se,-1],zi,we,[-500,W,Se,Dr,998,Se],Se,zi,ch,lh,we,[0,Qt,-1,Dr],Se,-2,ah,Qt,-1,Gi,[0,Gi,Cp],978,Dr,we,Jd];Pe.prototype.g=$n(uh);var Ap=ei(Pe,uh),Sp=class extends k{constructor(e){super(e)}},dh=class extends k{constructor(e){super(e)}g(){return Ft(this,Sp,1)}},hh=[0,we,[0,de,ye,W,-1]],Nn=ei(dh,hh),Lp=class extends k{constructor(e){super(e)}},Tp=class extends k{constructor(e){super(e)}},Ec=class extends k{constructor(e){super(e)}h(){return V(this,Lp,2)}g(){return Ft(this,Tp,5)}},fh=ei(class extends k{constructor(e){super(e)}},[0,Se,Pn,_c,[0,Ue,[0,de,-3],[0,ye,-3],[0,de,-1,[0,we,[0,de,-2]]],we,[0,ye,-1,W,ye]],W,-1,Jt,we,[0,de,ye],Se,Jt]),ph=class extends k{constructor(e){super(e)}},Zi=ei(class extends k{constructor(e){super(e)}},[0,we,[0,ye,-4]]),mh=class extends k{constructor(e){super(e)}},Rr=ei(class extends k{constructor(e){super(e)}},[0,we,[0,ye,-4]]),Mp=class extends k{constructor(e){super(e)}},Ip=[0,de,-1,_c,Ue],gh=class extends k{constructor(e){super(e)}};gh.prototype.g=$n([0,ye,-4,Jt]);var Fp=class extends k{constructor(e){super(e)}},Bp=ei(class extends k{constructor(e){super(e)}},[0,we,[0,1,de,W,hh],Jt]),vh=class extends k{constructor(e){super(e)}},Dp=class extends k{constructor(e){super(e)}ma(){const e=vd(this);return e==null?hi():e}},Rp=class extends k{constructor(e){super(e)}},bh=[1,2],Op=ei(class extends k{constructor(e){super(e)}},[0,we,[0,bh,X,[0,_c],X,[0,Kd],de,W],Jt]),xc=class extends k{constructor(e){super(e)}},yh=[0,W,de,ye,Se,-1],_h=class extends k{constructor(e){super(e)}},Pp=[0,ne,-1],wh=class extends k{constructor(e){super(e)}},Hn=[1,2,3,4,5],Un=class extends k{constructor(e){super(e)}g(){return vd(this)!=null}h(){return tt(this,2)!=null}},oe=class extends k{constructor(e){super(e)}g(){var e;return(e=rd(Pi(this,2)))!=null?e:!1}},Ch=[0,Kd,W,[0,de,Jt,-1],[0,_p,Jt]],pe=[0,Ch,ne,[0,Hn,X,sh,X,ih,X,th,X,oh,X,rh],Ue],qn=class extends k{constructor(e){super(e)}},kc=[0,pe,ye,-1,de],$p=pt(502141897,qn);_e[502141897]=kc;var Np=ei(class extends k{constructor(e){super(e)}},[0,[0,Ue,-1,yp,wp],Ip]),Eh=class extends k{constructor(e){super(e)}},xh=class extends k{constructor(e){super(e)}},Ac=[0,pe,ye,[0,pe],ne],kh=[0,pe,kc,Ac,ye,[0,[0,Ch]]],Hp=pt(508968150,xh);_e[508968150]=kh,_e[508968149]=Ac;var Ah=class extends k{constructor(e){super(e)}},Up=pt(513916220,Ah);_e[513916220]=[0,pe,kh,de];var Wi=class extends k{constructor(e){super(e)}h(){return V(this,xc,2)}g(){Q(this,2)}},Sh=[0,pe,yh];_e[478825465]=Sh;var qp=class extends k{constructor(e){super(e)}},Lh=class extends k{constructor(e){super(e)}},Sc=class extends k{constructor(e){super(e)}},Lc=class extends k{constructor(e){super(e)}},Th=class extends k{constructor(e){super(e)}},Mh=[0,pe,[0,pe],Sh,-1],Ih=[0,pe,ye,de],Tc=[0,pe,ye],Fh=[0,pe,Ih,Tc,ye],Vp=pt(479097054,Th);_e[479097054]=[0,pe,Fh,Mh],_e[463370452]=Mh,_e[464864288]=Ih;var jp=pt(462713202,Lc);_e[462713202]=Fh,_e[474472470]=Tc;var zp=class extends k{constructor(e){super(e)}},Bh=class extends k{constructor(e){super(e)}},Dh=class extends k{constructor(e){super(e)}},Rh=class extends k{constructor(e){super(e)}},Mc=[0,pe,ye,-1,de],Ic=[0,pe,ye,ne];Rh.prototype.g=$n([0,pe,Tc,[0,pe],kc,Ac,Mc,Ic]);var Oh=class extends k{constructor(e){super(e)}},Gp=pt(456383383,Oh);_e[456383383]=[0,pe,yh];var Ph=class extends k{constructor(e){super(e)}},Zp=pt(476348187,Ph);_e[476348187]=[0,pe,Pp];var $h=class extends k{constructor(e){super(e)}},Nh=class extends k{constructor(e){super(e)}},Hh=[0,Ue,-1],Wp=pt(458105876,class extends k{constructor(e){super(e)}g(){var e=this.u;const t=0|e[L],i=2&t;return e=function(r,n,o){var s=Nh;const a=2&n;let c=!1;if(o==null){if(a)return pd();o=[]}else if(o.constructor===bt){if((2&o.M)==0||a)return o;o=o.da()}else Array.isArray(o)?c=!!(2&(0|o[L])):o=[];if(a){if(!o.length)return pd();c||(c=!0,Fi(o))}else c&&(c=!1,o=bd(o));return c||(64&(0|o[L])?o[L]&=-33:32&n&&un(o,32)),ce(r,n,2,s=new bt(o,s,tp,void 0)),s}(e,t,Mt(e,t,2)),!i&&Nh&&(e.pa=!0),e}});_e[458105876]=[0,Hh,bp,[!0,Jt,[0,W,-1,Se]]];var Fc=class extends k{constructor(e){super(e)}},Uh=pt(458105758,Fc);_e[458105758]=[0,pe,W,Hh];var qh=class extends k{constructor(e){super(e)}},Xp=pt(443442058,qh);_e[443442058]=[0,pe,W,de,ye,Se,-1,ne,ye],_e[514774813]=Mc;var Vh=class extends k{constructor(e){super(e)}},Kp=pt(516587230,Vh);function Bc(e,t){return t=t?t.clone():new xc,e.displayNamesLocale!==void 0?Q(t,1,Ri(e.displayNamesLocale)):e.displayNamesLocale===void 0&&Q(t,1),e.maxResults!==void 0?yt(t,2,e.maxResults):"maxResults"in e&&Q(t,2),e.scoreThreshold!==void 0?A(t,3,e.scoreThreshold):"scoreThreshold"in e&&Q(t,3),e.categoryAllowlist!==void 0?xn(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&Q(t,4),e.categoryDenylist!==void 0?xn(t,5,e.categoryDenylist):"categoryDenylist"in e&&Q(t,5),t}function Dc(e,t=-1,i=""){return{categories:e.map(r=>{var n,o,s,a,c,l,d;return{index:(o=(n=et(r,1))!=null?n:0)!=null?o:-1,score:(s=fe(r,2))!=null?s:0,categoryName:(c=(a=tt(r,3))!=null?a:"")!=null?c:"",displayName:(d=(l=tt(r,4))!=null?l:"")!=null?d:""}}),headIndex:t,headName:i}}function jh(e){var s,a,c,l,d,u,h,f,p,m,v,g,b;var t=mi(e,3,Wt,pi()),i=mi(e,2,Di,pi()),r=mi(e,1,Oi,pi()),n=mi(e,9,Oi,pi());const o={categories:[],keypoints:[]};for(let _=0;_<t.length;_++)o.categories.push({score:t[_],index:(s=i[_])!=null?s:-1,categoryName:(a=r[_])!=null?a:"",displayName:(c=n[_])!=null?c:""});if((t=(l=V(e,Ec,4))==null?void 0:l.h())&&(o.boundingBox={originX:(d=et(t,1))!=null?d:0,originY:(u=et(t,2))!=null?u:0,width:(h=et(t,3))!=null?h:0,height:(f=et(t,4))!=null?f:0,angle:0}),(p=V(e,Ec,4))==null?void 0:p.g().length)for(const _ of V(e,Ec,4).g())o.keypoints.push({x:(m=wn(_,1))!=null?m:0,y:(v=wn(_,2))!=null?v:0,score:(g=wn(_,4))!=null?g:0,label:(b=tt(_,3))!=null?b:""});return o}function Vn(e){var i,r,n,o;const t=[];for(const s of Ft(e,mh,1))t.push({x:(i=fe(s,1))!=null?i:0,y:(r=fe(s,2))!=null?r:0,z:(n=fe(s,3))!=null?n:0,visibility:(o=fe(s,4))!=null?o:0});return t}function Or(e){var i,r,n,o;const t=[];for(const s of Ft(e,ph,1))t.push({x:(i=fe(s,1))!=null?i:0,y:(r=fe(s,2))!=null?r:0,z:(n=fe(s,3))!=null?n:0,visibility:(o=fe(s,4))!=null?o:0});return t}function zh(e){return Array.from(e,t=>t>127?t-256:t)}function Gh(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let i=0,r=0,n=0;for(let o=0;o<e.length;o++)i+=e[o]*t[o],r+=e[o]*e[o],n+=t[o]*t[o];if(r<=0||n<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return i/Math.sqrt(r*n)}let jn;_e[516587230]=[0,pe,Mc,Ic,ye],_e[518928384]=Ic;const Yp=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);function Zh(){return S(this,null,function*(){if(jn===void 0)try{yield WebAssembly.instantiate(Yp),jn=!0}catch(e){jn=!1}return jn})}function Pr(i){return S(this,arguments,function*(e,t=xp``){const r=(yield Zh())?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${r}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}})}var bi=class{};function Wh(){var e=navigator;return typeof OffscreenCanvas!="undefined"&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}function Xh(e){return S(this,null,function*(){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((i,r)=>{t.addEventListener("load",()=>{i()},!1),t.addEventListener("error",n=>{r(n)},!1),document.body.appendChild(t)})}importScripts(e.toString())})}function Kh(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function T(e,t,i){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),i(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function Yh(e,t,i){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(i?e.i._bindTextureToStream(i):e.i._bindTextureToCanvas(),!(i=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1);const[r,n]=Kh(t);return!e.l||r===e.i.canvas.width&&n===e.i.canvas.height||(e.i.canvas.width=r,e.i.canvas.height=n),[r,n]}function Jh(e,t,i){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(t.length);for(let n=0;n<t.length;n++)r[n]=e.i.stringToNewUTF8(t[n]);t=e.i._malloc(4*r.length),e.i.HEAPU32.set(r,t>>2),i(t);for(const n of r)e.i._free(n);e.i._free(t)}function _t(e,t,i){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=i}function ti(e,t,i){let r=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(n,o,s)=>{o?(i(r,s),r=[]):r.push(n)}}bi.forVisionTasks=function(e){return Pr("vision",e)},bi.forTextTasks=function(e){return Pr("text",e)},bi.forGenAiExperimentalTasks=function(e){return Pr("genai_experimental",e)},bi.forGenAiTasks=function(e){return Pr("genai",e)},bi.forAudioTasks=function(e){return Pr("audio",e)},bi.isSimdSupported=function(){return Zh()};function Jp(e,t,i,r){return S(this,null,function*(){return e=yield((n,o,s,a,c)=>S(this,null,function*(){if(o&&(yield Xh(o)),!self.ModuleFactory||s&&(yield Xh(s),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&c&&((o=self.Module).locateFile=c.locateFile,c.mainScriptUrlOrBlob&&(o.mainScriptUrlOrBlob=c.mainScriptUrlOrBlob)),c=yield self.ModuleFactory(self.Module||c),self.ModuleFactory=self.Module=void 0,new n(c,a)}))(e,i.wasmLoaderPath,i.assetLoaderPath,t,{locateFile:n=>n.endsWith(".wasm")?i.wasmBinaryPath.toString():i.assetBinaryPath&&n.endsWith(".data")?i.assetBinaryPath.toString():n}),yield e.o(r),e})}function Rc(e,t){const i=V(e.baseOptions,Un,1)||new Un;typeof t=="string"?(Q(i,2,Ri(t)),Q(i,1)):t instanceof Uint8Array&&(Q(i,1,Fa(t,!1)),Q(i,2)),I(e.baseOptions,0,1,i)}function Qh(e){try{const t=e.G.length;if(t===1)throw Error(e.G[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.G.map(i=>i.message).join(", "))}finally{e.G=[]}}function w(e,t){e.B=Math.max(e.B,t)}function zn(e,t){e.A=new Fe,Ve(e.A,"PassThroughCalculator"),ee(e.A,"free_memory"),q(e.A,"free_memory_unused_out"),ie(t,"free_memory"),je(t,e.A)}function Xi(e,t){ee(e.A,t),q(e.A,t+"_unused_out")}function Gn(e){e.g.addBoolToStream(!0,"free_memory",e.B)}var Oc=class{constructor(e){this.g=e,this.G=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var i,r,n,o,s,a;if(t){const c=e.baseOptions||{};if((i=e.baseOptions)!=null&&i.modelAssetBuffer&&((r=e.baseOptions)!=null&&r.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((n=V(this.baseOptions,Un,1))!=null&&n.g()||(o=V(this.baseOptions,Un,1))!=null&&o.h()||(s=e.baseOptions)!=null&&s.modelAssetBuffer||(a=e.baseOptions)!=null&&a.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(l,d){let u=V(l.baseOptions,wh,3);if(!u){var h=u=new wh,f=new nh;Mr(h,4,Hn,f)}"delegate"in d&&(d.delegate==="GPU"?(d=u,h=new kp,Mr(d,2,Hn,h)):(d=u,h=new nh,Mr(d,4,Hn,h))),I(l.baseOptions,0,3,u)}(this,c),c.modelAssetPath)return fetch(c.modelAssetPath.toString()).then(l=>{if(l.ok)return l.arrayBuffer();throw Error(`Failed to fetch model: ${c.modelAssetPath} (${l.status})`)}).then(l=>{try{this.g.i.FS_unlink("/model.dat")}catch(d){}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(l),!0,!1,!1),Rc(this,"/model.dat"),this.m(),this.J()});if(c.modelAssetBuffer instanceof Uint8Array)Rc(this,c.modelAssetBuffer);else if(c.modelAssetBuffer)return function(l){return S(this,null,function*(){const d=[];for(var u=0;;){const{done:h,value:f}=yield l.read();if(h)break;d.push(f),u+=f.length}if(d.length===0)return new Uint8Array(0);if(d.length===1)return d[0];l=new Uint8Array(u),u=0;for(const h of d)l.set(h,u),u+=h.length;return l})}(c.modelAssetBuffer).then(l=>{Rc(this,l),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ca(){let e;if(this.g.ca(t=>{e=Ap(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((i,r)=>{this.G.push(Error(r))}),this.g.Ha(),this.g.setGraph(e,t),this.A=void 0,Qh(this)}finishProcessing(){this.g.finishProcessing(),Qh(this)}close(){this.A=void 0,this.g.closeGraph()}};function Be(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Oc.prototype.close=Oc.prototype.close;class Qp{constructor(t,i,r,n){this.g=t,this.h=i,this.m=r,this.l=n}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function e0(e,t,i){const r=e.g;if(i=Be(r.createShader(i),"Failed to create WebGL shader"),r.shaderSource(i,t),r.compileShader(i),!r.getShaderParameter(i,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(i)}`);return r.attachShader(e.h,i),i}function t0(e,t){const i=e.g,r=Be(i.createVertexArray(),"Failed to create vertex array");i.bindVertexArray(r);const n=Be(i.createBuffer(),"Failed to create buffer");i.bindBuffer(i.ARRAY_BUFFER,n),i.enableVertexAttribArray(e.P),i.vertexAttribPointer(e.P,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),i.STATIC_DRAW);const o=Be(i.createBuffer(),"Failed to create buffer");return i.bindBuffer(i.ARRAY_BUFFER,o),i.enableVertexAttribArray(e.J),i.vertexAttribPointer(e.J,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),i.STATIC_DRAW),i.bindBuffer(i.ARRAY_BUFFER,null),i.bindVertexArray(null),new Qp(i,r,n,o)}function Pc(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function $r(e,t,i,r){return Pc(e,t),e.h||(e.m(),e.C()),i?(e.s||(e.s=t0(e,!0)),i=e.s):(e.v||(e.v=t0(e,!1)),i=e.v),t.useProgram(e.h),i.bind(),e.l(),e=r(),i.g.bindVertexArray(null),e}function ii(e,t,i){return Pc(e,t),e=Be(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,i!=null?i:t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,i!=null?i:t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function Zn(e,t,i){Pc(e,t),e.A||(e.A=Be(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.A),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0)}function $c(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Ki=class{G(){return`
|
|
3103
|
+
`}class J4 extends HTMLElement{constructor(){super(),this.templateString=Y4.bind(this),this.render=()=>this.templateString(),this.attachShadow({mode:"open"})}connectedCallback(){const t=document.createElement("template");t.innerHTML=this.render(),this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(t.content.cloneNode(!0)),this.setUpEventListeners()}static get observedAttributes(){return["hide-back-to-host","show-navigation","data-image","mirror-image"]}get hideBack(){return this.hasAttribute("hide-back-to-host")}get showNavigation(){return this.hasAttribute("show-navigation")}get themeColor(){return this.getAttribute("theme-color")||"#001096"}get hideAttribution(){return this.hasAttribute("hide-attribution")}get imageSrc(){return this.getAttribute("data-image")}get shouldMirror(){return this.getAttribute("mirror-image")!=="false"}get title(){return this.getAttribute("title")||y("selfie.review.title")}get direction(){return this.getAttribute("dir")||ut()||"ltr"}handleBackEvents(){this.dispatchEvent(new CustomEvent("selfie-capture-review.cancelled"))}handleCloseEvents(){this.dispatchEvent(new CustomEvent("selfie-capture-review.close"))}attributeChangedCallback(t){switch(t){case"data-image":case"hide-back-to-host":case"show-navigation":case"mirror-image":this.shadowRoot.innerHTML=this.render(),this.setUpEventListeners();break}}setUpEventListeners(){var t,i;this.selectImage=this.shadowRoot.querySelector("#select-id-image"),this.reCaptureImage=this.shadowRoot.querySelector("#re-capture-image"),this.navigation=this.shadowRoot.querySelector("smileid-navigation"),(t=this.navigation)==null||t.addEventListener("navigation.back",()=>{this.handleBackEvents()}),(i=this.navigation)==null||i.addEventListener("navigation.close",()=>{this.handleCloseEvents()}),this.selectImage.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("selfie-capture-review.accepted",{detail:{}}))}),this.reCaptureImage.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("selfie-capture-review.rejected",{detail:{}}))})}}"customElements"in window&&!customElements.get("selfie-capture-review")&&window.customElements.define("selfie-capture-review",J4);var mr,G,Bu,Du,si,Ru,Ou,Pu,$u,Ys,Js,Qs,gr={},Nu=[],Q4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vr=Array.isArray;function vt(e,t){for(var i in t)e[i]=t[i];return e}function ea(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Lt(e,t,i){var r,n,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?n=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?mr.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return br(e,s,r,n,null)}function br(e,t,i,r,n){var o={type:e,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n==null?++Bu:n,__i:-1,__u:0};return n==null&&G.vnode!=null&&G.vnode(o),o}function qt(e){return e.children}function yr(e,t){this.props=e,this.context=t}function ki(e,t){if(t==null)return e.__?ki(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if((i=e.__k[t])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?ki(e):null}function Hu(e){var t,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((i=e.__k[t])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return Hu(e)}}function Uu(e){(!e.__d&&(e.__d=!0)&&si.push(e)&&!Xr.__r++||Ru!=G.debounceRendering)&&((Ru=G.debounceRendering)||Ou)(Xr)}function Xr(){for(var e,t,i,r,n,o,s,a=1;si.length;)si.length>a&&si.sort(Pu),e=si.shift(),a=si.length,e.__d&&(i=void 0,r=void 0,n=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((i=vt({},r)).__v=r.__v+1,G.vnode&&G.vnode(i),ta(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[n]:null,o,n==null?ki(r):n,!!(32&r.__u),s),i.__v=r.__v,i.__.__k[i.__i]=i,Zu(o,i,s),r.__e=r.__=null,i.__e!=n&&Hu(i)));Xr.__r=0}function qu(e,t,i,r,n,o,s,a,c,l,d){var u,h,f,p,m,v,g,b=r&&r.__k||Nu,_=t.length;for(c=ef(i,t,b,c,_),u=0;u<_;u++)(f=i.__k[u])!=null&&(h=f.__i==-1?gr:b[f.__i]||gr,f.__i=u,v=ta(e,f,h,n,o,s,a,c,l,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&ra(h.ref,null,f),d.push(f.ref,f.__c||p,f)),m==null&&p!=null&&(m=p),(g=!!(4&f.__u))||h.__k===f.__k?c=Vu(f,c,e,g):typeof f.type=="function"&&v!==void 0?c=v:p&&(c=p.nextSibling),f.__u&=-7);return i.__e=m,c}function ef(e,t,i,r,n){var o,s,a,c,l,d=i.length,u=d,h=0;for(e.__k=new Array(n),o=0;o<n;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(c=o+h,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?br(null,s,null,null,null):vr(s)?br(qt,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?br(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=tf(s,i,c,u))!=-1&&(u--,(a=i[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(n>d?h--:n<d&&h++),typeof s.type!="function"&&(s.__u|=4)):l!=c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,s.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(a=i[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=ki(a)),Xu(a,a));return r}function Vu(e,t,i,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Vu(n[o],t,i,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=ki(e)),i.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ju(e,t){return t=t||[],e==null||typeof e=="boolean"||(vr(e)?e.some(function(i){ju(i,t)}):t.push(e)),t}function tf(e,t,i,r){var n,o,s,a=e.key,c=e.type,l=t[i],d=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||d&&a==l.key&&c==l.type)return i;if(r>(d?1:0)){for(n=i-1,o=i+1;n>=0||o<t.length;)if((l=t[s=n>=0?n--:o++])!=null&&(2&l.__u)==0&&a==l.key&&c==l.type)return s}return-1}function zu(e,t,i){t[0]=="-"?e.setProperty(t,i==null?"":i):e[t]=i==null?"":typeof i!="number"||Q4.test(t)?i:i+"px"}function Kr(e,t,i,r,n){var o,s;e:if(t=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)i&&t in i||zu(e.style,t,"");if(i)for(t in i)r&&i[t]==r[t]||zu(e.style,t,i[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace($u,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=i,i?r?i.u=r.u:(i.u=Ys,e.addEventListener(t,o?Qs:Js,o)):e.removeEventListener(t,o?Qs:Js,o);else{if(n=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=i==null?"":i;break e}catch(a){}typeof i=="function"||(i==null||i===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&i==1?"":i))}}function Gu(e){return function(t){if(this.l){var i=this.l[t.type+e];if(t.t==null)t.t=Ys++;else if(t.t<i.u)return;return i(G.event?G.event(t):t)}}}function ta(e,t,i,r,n,o,s,a,c,l){var d,u,h,f,p,m,v,g,b,_,M,P,x,D,C,R,F,E=t.type;if(t.constructor!==void 0)return null;128&i.__u&&(c=!!(32&i.__u),o=[a=t.__e=i.__e]),(d=G.__b)&&d(t);e:if(typeof E=="function")try{if(g=t.props,b="prototype"in E&&E.prototype.render,_=(d=E.contextType)&&r[d.__c],M=d?_?_.props.value:d.__:r,i.__c?v=(u=t.__c=i.__c).__=u.__E:(b?t.__c=u=new E(g,M):(t.__c=u=new yr(g,M),u.constructor=E,u.render=nf),_&&_.sub(u),u.props=g,u.state||(u.state={}),u.context=M,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&E.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=vt({},u.__s)),vt(u.__s,E.getDerivedStateFromProps(g,u.__s))),f=u.props,p=u.state,u.__v=t,h)b&&E.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&E.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,M),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,M)===!1||t.__v==i.__v){for(t.__v!=i.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.some(function(j){j&&(j.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,M),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,m)})}if(u.context=M,u.props=g,u.__P=e,u.__e=!1,x=G.__r,D=0,b){for(u.state=u.__s,u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(r=vt(vt({},r),u.getChildContext())),b&&!h&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(f,p)),R=d,d!=null&&d.type===qt&&d.key==null&&(R=Wu(d.props.children)),a=qu(e,vr(R)?R:[R],t,i,r,n,o,s,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),v&&(u.__E=u.__=null)}catch(j){if(t.__v=null,c||o!=null)if(j.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(F=o.length;F--;)ea(o[F]);ia(t)}else t.__e=i.__e,t.__k=i.__k,j.then||ia(t);G.__e(j,t,i)}else o==null&&t.__v==i.__v?(t.__k=i.__k,t.__e=i.__e):a=t.__e=rf(i.__e,t,i,r,n,o,s,c,l);return(d=G.diffed)&&d(t),128&t.__u?void 0:a}function ia(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(ia)}function Zu(e,t,i){for(var r=0;r<i.length;r++)ra(i[r],i[++r],i[++r]);G.__c&&G.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(o){o.call(n)})}catch(o){G.__e(o,n.__v)}})}function Wu(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:vr(e)?e.map(Wu):vt({},e)}function rf(e,t,i,r,n,o,s,a,c){var l,d,u,h,f,p,m,v=i.props,g=t.props,b=t.type;if(b=="svg"?n="http://www.w3.org/2000/svg":b=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(n,b,g.is&&g),a&&(G.__m&&G.__m(t,o),a=!1),o=null}if(b==null)v===g||a&&e.data==g||(e.data=g);else{if(o=o&&mr.call(e.childNodes),v=i.props||gr,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(f=e.attributes[l]).name]=f.value;for(l in v)if(f=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;Kr(e,l,null,f,n)}}for(l in g)f=g[l],l=="children"?h=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?p=f:l=="checked"?m=f:a&&typeof f!="function"||v[l]===f||Kr(e,l,f,v[l],n);if(d)a||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),qu(t.type=="template"?e.content:e,vr(h)?h:[h],t,i,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":n,o,s,o?o[0]:i.__k&&ki(i,0),a,c),o!=null)for(l=o.length;l--;)ea(o[l]);a||(l="value",b=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[l]||b=="progress"&&!p||b=="option"&&p!=v[l])&&Kr(e,l,p,v[l],n),l="checked",m!=null&&m!=e[l]&&Kr(e,l,m,v[l],n))}return e}function ra(e,t,i){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(n){G.__e(n,i)}}function Xu(e,t,i){var r,n;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||ra(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){G.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(n=0;n<r.length;n++)r[n]&&Xu(r[n],t,i||typeof e.type!="function");i||ea(e.__e),e.__c=e.__=e.__e=void 0}function nf(e,t,i){return this.constructor(e,i)}function Yr(e,t,i){var r,n,o,s;t==document&&(t=document.documentElement),G.__&&G.__(e,t),n=(r=typeof i=="function")?null:i&&i.__k||t.__k,o=[],s=[],ta(t,e=(!r&&i||t).__k=Lt(qt,null,[e]),n||gr,gr,t.namespaceURI,!r&&i?[i]:n?null:t.firstChild?mr.call(t.childNodes):null,o,!r&&i?i:n?n.__e:t.firstChild,r,s),Zu(o,e,s)}function Ku(e,t){Yr(e,t,Ku)}function Yu(e,t,i){var r,n,o,s,a=vt({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?n=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?mr.call(arguments,2):i),br(e.type,a,r||e.key,n||e.ref,null)}mr=Nu.slice,G={__e:function(e,t,i,r){for(var n,o,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&o.getDerivedStateFromError!=null&&(n.setState(o.getDerivedStateFromError(e)),s=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,r||{}),s=n.__d),s)return n.__E=n}catch(a){e=a}throw e}},Bu=0,Du=function(e){return e!=null&&e.constructor===void 0},yr.prototype.setState=function(e,t){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=vt({},this.state),typeof e=="function"&&(e=e(vt({},i),this.props)),e&&vt(i,e),e!=null&&this.__v&&(t&&this._sb.push(t),Uu(this))},yr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Uu(this))},yr.prototype.render=qt,si=[],Ou=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pu=function(e,t){return e.__v.__b-t.__v.__b},Xr.__r=0,$u=/(PointerCapture)$|Capture$/i,Ys=0,Js=Gu(!1),Qs=Gu(!0);var of=0;function N(e,t,i,r,n,o){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--of,__i:-1,__u:0,__source:n,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return G.vnode&&G.vnode(l),l}var _r,he,na,Ju,Jr=0,Qu=[],ve=G,e2=ve.__b,t2=ve.__r,i2=ve.diffed,r2=ve.__c,n2=ve.unmount,o2=ve.__;function oa(e,t){ve.__h&&ve.__h(he,e,Jr||t),Jr=0;var i=he.__H||(he.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({}),i.__[e]}function ai(e){return Jr=1,sf(c2,e)}function sf(e,t,i){var r=oa(_r++,2);if(r.t=e,!r.__c&&(r.__=[c2(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=he,!he.__f)){var n=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!o||o.call(this,a,c,l);var u=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),o&&o.call(this,a,c,l)||u};he.__f=!0;var o=he.shouldComponentUpdate,s=he.componentWillUpdate;he.componentWillUpdate=function(a,c,l){if(this.__e){var d=o;o=void 0,n(a,c,l),o=d}s&&s.call(this,a,c,l)},he.shouldComponentUpdate=n}return r.__N||r.__}function Je(e,t){var i=oa(_r++,3);!ve.__s&&a2(i.__H,t)&&(i.__=e,i.u=t,he.__H.__h.push(i))}function Ae(e){return Jr=5,Qr(function(){return{current:e}},[])}function Qr(e,t){var i=oa(_r++,7);return a2(i.__H,t)&&(i.__=e(),i.__H=t,i.__h=e),i.__}function af(){for(var e;e=Qu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(en),e.__H.__h.forEach(sa),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){he=null,e2&&e2(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),o2&&o2(e,t)},ve.__r=function(e){t2&&t2(e),_r=0;var t=(he=e.__c).__H;t&&(na===he?(t.__h=[],he.__h=[],t.__.forEach(function(i){i.__N&&(i.__=i.__N),i.u=i.__N=void 0})):(t.__h.forEach(en),t.__h.forEach(sa),t.__h=[],_r=0)),na=he},ve.diffed=function(e){i2&&i2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qu.push(t)!==1&&Ju===ve.requestAnimationFrame||((Ju=ve.requestAnimationFrame)||cf)(af)),t.__H.__.forEach(function(i){i.u&&(i.__H=i.u),i.u=void 0})),na=he=null},ve.__c=function(e,t){t.some(function(i){try{i.__h.forEach(en),i.__h=i.__h.filter(function(r){return!r.__||sa(r)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],ve.__e(r,i.__v)}}),r2&&r2(e,t)},ve.unmount=function(e){n2&&n2(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.forEach(function(r){try{en(r)}catch(n){t=n}}),i.__H=void 0,t&&ve.__e(t,i.__v))};var s2=typeof requestAnimationFrame=="function";function cf(e){var t,i=function(){clearTimeout(r),s2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(i,35);s2&&(t=requestAnimationFrame(i))}function en(e){var t=he,i=e.__c;typeof i=="function"&&(e.__c=void 0,i()),he=t}function sa(e){var t=he;e.__c=e.__(),he=t}function a2(e,t){return!e||e.length!==t.length||t.some(function(i,r){return i!==e[r]})}function c2(e,t){return typeof t=="function"?t(e):t}var lf={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const uf=(e,t,i,r)=>{const n=p=>{var m=p,{color:o="currentColor",size:s=24,stroke:a=2,title:c,children:l,className:d="",class:u="",style:h}=m,f=hl(m,["color","size","stroke","title","children","className","class","style"]);return Lt("svg",Re(nr(Re({},lf[e]),{width:String(s),height:String(s),class:["tabler-icon",`tabler-icon-${t}`,u,d].join(" "),"stroke-width":a,stroke:o,style:h}),f),[c&&Lt("title",{},c),...r.map(([v,g])=>Lt(v,g)),...ju(l)])};return n.displayName=`${i}`,n};var df=uf("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);function aa(){return(aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var hf=["context","children"];function ff(e){this.getChildContext=function(){return e.context};var t=e.children,i=function(r,n){if(r==null)return{};var o,s,a={},c=Object.keys(r);for(s=0;s<c.length;s++)n.indexOf(o=c[s])>=0||(a[o]=r[o]);return a}(e,hf);return Yu(t,i)}function pf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Lt(ff,aa({},this._props,{context:e.detail.context}),function t(i,r){if(i.nodeType===3)return i.data;if(i.nodeType!==1)return null;var n=[],o={},s=0,a=i.attributes,c=i.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[l2(a[s].name)]=a[s].value);for(s=c.length;s--;){var l=t(c[s],null),d=c[s].slot;d?o[d]=Lt(u2,{name:d},l):n[s]=l}var u=r?Lt(u2,null,n):n;return Lt(r||i.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ku:Yr)(this._vdom,this._root)}function l2(e){return e.replace(/-(\w)/g,function(t,i){return i?i.toUpperCase():""})}function mf(e,t,i){if(this._vdom){var r={};r[e]=i=i==null?void 0:i,r[l2(e)]=i,this._vdom=Yu(this._vdom,r),Yr(this._vdom,this._root)}}function gf(){Yr(this._vdom=null,this._root)}function u2(e,t){var i=this;return Lt("slot",aa({},e,{ref:function(r){r?(i.ref=r,i._listener||(i._listener=function(n){n.stopPropagation(),n.detail.context=t},r.addEventListener("_preact",i._listener))):i.ref.removeEventListener("_preact",i._listener)}}))}function d2(e,t,i,r){function n(){var o=Reflect.construct(HTMLElement,[],n);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=pf,n.prototype.attributeChangedCallback=mf,n.prototype.disconnectedCallback=gf,i=i||e.observedAttributes||Object.keys(e.propTypes||{}),n.observedAttributes=i,i.forEach(function(o){Object.defineProperty(n.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,n)}const ci=(e,t=!1)=>typeof e=="boolean"?e:typeof e=="string"?e==="true"||e==="":t;var vf=Symbol.for("preact-signals");function tn(){if(Vt>1)Vt--;else{for(var e,t=!1;wr!==void 0;){var i=wr;for(wr=void 0,ca++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&m2(i))try{i.c()}catch(n){t||(e=n,t=!0)}i=r}}if(ca=0,Vt--,t)throw e}}function bf(e){if(Vt>0)return e();Vt++;try{return e()}finally{tn()}}var Z=void 0;function h2(e){var t=Z;Z=void 0;try{return e()}finally{Z=t}}var wr=void 0,Vt=0,ca=0,rn=0;function f2(e){if(Z!==void 0){var t=e.n;if(t===void 0||t.t!==Z)return t={i:0,S:e,p:Z.s,n:void 0,t:Z,e:void 0,x:void 0,r:t},Z.s!==void 0&&(Z.s.n=t),Z.s=t,e.n=t,32&Z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Z.s,t.n=void 0,Z.s.n=t,Z.s=t),t}}function ke(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched}ke.prototype.brand=vf,ke.prototype.h=function(){return!0},ke.prototype.S=function(e){var t=this,i=this.t;i!==e&&e.e===void 0&&(e.x=i,this.t=e,i!==void 0?i.e=e:h2(function(){var r;(r=t.W)==null||r.call(t)}))},ke.prototype.U=function(e){var t=this;if(this.t!==void 0){var i=e.e,r=e.x;i!==void 0&&(i.x=r,e.e=void 0),r!==void 0&&(r.e=i,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&h2(function(){var n;(n=t.Z)==null||n.call(t)}))}},ke.prototype.subscribe=function(e){var t=this;return Cr(function(){var i=t.value,r=Z;Z=void 0;try{e(i)}finally{Z=r}})},ke.prototype.valueOf=function(){return this.value},ke.prototype.toString=function(){return this.value+""},ke.prototype.toJSON=function(){return this.value},ke.prototype.peek=function(){var e=Z;Z=void 0;try{return this.value}finally{Z=e}},Object.defineProperty(ke.prototype,"value",{get:function(){var e=f2(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ca>100)throw new Error("Cycle detected");this.v=e,this.i++,rn++,Vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{tn()}}}});function p2(e,t){return new ke(e,t)}function m2(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function g2(e){for(var t=e.s;t!==void 0;t=t.n){var i=t.S.n;if(i!==void 0&&(t.r=i),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function v2(e){for(var t=e.s,i=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):i=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=i}function li(e,t){ke.call(this,void 0),this.x=e,this.s=void 0,this.g=rn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched}li.prototype=new ke,li.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===rn))return!0;if(this.g=rn,this.f|=1,this.i>0&&!m2(this))return this.f&=-2,!0;var e=Z;try{g2(this),Z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return Z=e,v2(this),this.f&=-2,!0},li.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ke.prototype.S.call(this,e)},li.prototype.U=function(e){if(this.t!==void 0&&(ke.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},li.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(li.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=f2(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function la(e,t){return new li(e,t)}function b2(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Vt++;var i=Z;Z=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,ua(e),r}finally{Z=i,tn()}}}function ua(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,b2(e)}function yf(e){if(Z!==this)throw new Error("Out-of-order effect");v2(this),Z=e,this.f&=-2,8&this.f&&ua(this),tn()}function Ai(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ai.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Ai.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,b2(this),g2(this),Vt++;var e=Z;return Z=this,yf.bind(this,e)},Ai.prototype.N=function(){2&this.f||(this.f|=2,this.o=wr,wr=this)},Ai.prototype.d=function(){this.f|=8,1&this.f||ua(this)},Ai.prototype.dispose=function(){this.d()};function Cr(e){var t=new Ai(e);try{t.c()}catch(r){throw t.d(),r}var i=t.d.bind(t);return i[Symbol.dispose]=i,i}var y2,nn,da,_2=[];Cr(function(){y2=this.N})();function Si(e,t){G[e]=t.bind(null,G[e]||function(){})}function on(e){da&&da(),da=e&&e.S()}function w2(e){var t=this,i=e.data,r=le(i);r.value=i;var n=Qr(function(){for(var a=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=la(function(){var f=r.value.value;return f===0?0:f===!0?"":f||""}),d=la(function(){return!Array.isArray(l.value)&&!Du(l.value)}),u=Cr(function(){if(this.N=C2,d.value){var f=l.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=f)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,l]},[]),o=n[0],s=n[1];return o.value?s.peek():s.value}w2.displayName="_st",Object.defineProperties(ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:w2},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Si("__b",function(e,t){if(typeof t.type=="string"){var i,r=t.props;for(var n in r)if(n!=="children"){var o=r[n];o instanceof ke&&(i||(t.__np=i={}),i[n]=o,r[n]=o.peek())}}e(t)}),Si("__r",function(e,t){if(t.type!==qt){on();var i,r=t.__c;r&&(r.__$f&=-2,(i=r.__$u)===void 0&&(r.__$u=i=function(n){var o;return Cr(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),nn=r,on(i)}e(t)}),Si("__e",function(e,t,i,r){on(),nn=void 0,e(t,i,r)}),Si("diffed",function(e,t){on(),nn=void 0;var i;if(typeof t.type=="string"&&(i=t.__e)){var r=t.__np,n=t.props;if(r){var o=i.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else o={},i.U=o;for(var c in r){var l=o[c],d=r[c];l===void 0?(l=_f(i,c,d,n),o[c]=l):l.o(d,n)}}}e(t)});function _f(e,t,i,r){var n=t in e&&e.ownerSVGElement===void 0,o=p2(i);return{o:function(s,a){o.value=s,r=a},d:Cr(function(){this.N=C2;var s=o.value.value;r[t]!==s&&(r[t]=s,n?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Si("unmount",function(e,t){if(typeof t.type=="string"){var i=t.__e;if(i){var r=i.U;if(r){i.U=void 0;for(var n in r){var o=r[n];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),Si("__h",function(e,t,i,r){(r<3||r===9)&&(t.__$f|=2),e(t,i,r)}),yr.prototype.shouldComponentUpdate=function(e,t){var i=this.__$u,r=i&&i.s!==void 0;for(var n in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(r||o||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function le(e,t){return Qr(function(){return p2(e,t)},[])}function ha(e,t){var i=Ae(e);return i.current=e,nn.__$f|=4,Qr(function(){return la(function(){return i.current()},t)},[])}var wf=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Cf(){bf(function(){for(var e;e=_2.shift();)y2.call(e)})}function C2(){_2.push(this)===1&&(G.requestAnimationFrame||wf)(Cf)}var fa,E2;function Ef(){if(E2)return fa;E2=1;var e=oi(),t=function(){return e.Date.now()};return fa=t,fa}var pa,x2;function xf(){if(x2)return pa;x2=1;var e=/\s/;function t(i){for(var r=i.length;r--&&e.test(i.charAt(r)););return r}return pa=t,pa}var ma,k2;function kf(){if(k2)return ma;k2=1;var e=xf(),t=/^\s+/;function i(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return ma=i,ma}var ga,A2;function Af(){if(A2)return ga;A2=1;var e=ar(),t=Ci(),i="[object Symbol]";function r(n){return typeof n=="symbol"||t(n)&&e(n)==i}return ga=r,ga}var va,S2;function Sf(){if(S2)return va;S2=1;var e=kf(),t=gt(),i=Af(),r=NaN,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(l){if(typeof l=="number")return l;if(i(l))return r;if(t(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=t(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=e(l);var u=o.test(l);return u||s.test(l)?a(l.slice(2),u?2:8):n.test(l)?r:+l}return va=c,va}var ba,L2;function Lf(){if(L2)return ba;L2=1;var e=gt(),t=Ef(),i=Sf(),r="Expected a function",n=Math.max,o=Math.min;function s(a,c,l){var d,u,h,f,p,m,v=0,g=!1,b=!1,_=!0;if(typeof a!="function")throw new TypeError(r);c=i(c)||0,e(l)&&(g=!!l.leading,b="maxWait"in l,h=b?n(i(l.maxWait)||0,c):h,_="trailing"in l?!!l.trailing:_);function M(O){var ae=d,me=u;return d=u=void 0,v=O,f=a.apply(me,ae),f}function P(O){return v=O,p=setTimeout(C,c),g?M(O):f}function x(O){var ae=O-m,me=O-v,Le=c-ae;return b?o(Le,h-me):Le}function D(O){var ae=O-m,me=O-v;return m===void 0||ae>=c||ae<0||b&&me>=h}function C(){var O=t();if(D(O))return R(O);p=setTimeout(C,x(O))}function R(O){return p=void 0,_&&d?M(O):(d=u=void 0,f)}function F(){p!==void 0&&clearTimeout(p),v=0,d=m=u=p=void 0}function E(){return p===void 0?f:R(t())}function j(){var O=t(),ae=D(O);if(d=arguments,u=this,m=O,ae){if(p===void 0)return P(m);if(b)return clearTimeout(p),p=setTimeout(C,c),M(m)}return p===void 0&&(p=setTimeout(C,c)),f}return j.cancel=F,j.flush=E,j}return ba=s,ba}var ya,T2;function Tf(){if(T2)return ya;T2=1;var e=Lf(),t=gt(),i="Expected a function";function r(n,o,s){var a=!0,c=!0;if(typeof n!="function")throw new TypeError(i);return t(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),e(n,o,{leading:a,maxWait:o,trailing:c})}return ya=r,ya}var Mf=Tf();const M2=te(Mf),If=(e="user")=>{var v;const t=Ae(null),i=Ae(null),[r,n]=ai(e),[o,s]=ai(!1),a=Ae(null),c=Ae(!1),l=Ae(new Set),d=g=>{a.current=g};Je(()=>{const g=t.current;if(!g)return;const b=()=>{if(c.current&&a.current){const _=setTimeout(()=>{var M;(M=a.current)==null||M.call(a),c.current=!1,l.current.delete(_)},100);l.current.add(_)}};return g.addEventListener("loadedmetadata",b),()=>{g.removeEventListener("loadedmetadata",b),l.current.forEach(_=>clearTimeout(_)),l.current.clear()}},[(v=t.current)==null?void 0:v.src]),Je(()=>()=>{l.current.forEach(g=>clearTimeout(g)),l.current.clear()},[]);const u=(g,b)=>S(this,null,function*(){try{i.current&&(i.current.getTracks().forEach(F=>F.stop()),i.current=null),t.current&&(t.current.srcObject=null);const _=yield navigator.mediaDevices.getUserMedia({video:{facingMode:g||r}});i.current=_;const x=_.getVideoTracks()[0].getSettings().facingMode;(x&&x!==(g||r)||x&&x!==r)&&n(x);const R=(yield navigator.mediaDevices.enumerateDevices()).find(F=>F.kind==="videoinput"&&_.getVideoTracks()[0].getSettings().deviceId===F.deviceId);b==null||b(R==null?void 0:R.label),t.current&&(t.current.srcObject=_,yield t.current.play())}catch(_){console.error("Failed to start camera:",_)}}),h=()=>S(this,null,function*(){const g=r==="user"?"environment":"user";c.current=!0;const b=r;try{n(g),i.current&&(i.current.getTracks().forEach(_=>_.stop()),i.current=null),yield u(g)}catch(_){n(b),c.current=!1;try{yield u(b)}catch(M){console.error("Failed to restore previous camera:",M)}}}),f=()=>{const g=navigator.userAgent.toLowerCase(),b=g.includes("firefox")||g.includes("gecko")&&!g.includes("chrome")&&!g.includes("edge"),_="mozInnerScreenX"in window||"mozInputSource"in window||"mozPaintCount"in window||typeof window.InstallTrigger!="undefined",M=CSS.supports&&(CSS.supports("-moz-appearance","none")||CSS.supports("-moz-user-select","none"));return{isGecko:b||_||M,isChromium:g.includes("chrome")||g.includes("chromium")||g.includes("edge"),isWebKit:g.includes("webkit")&&!g.includes("chrome")}};return{videoRef:t,streamRef:i,facingMode:r,agentSupported:o,startCamera:u,switchCamera:h,checkAgentSupport:()=>S(this,null,function*(){var g,b;try{if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>1){s(!0);return}const{isGecko:M}=f();let P=null,x=null;try{const C=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"user"}});P=(g=C.getVideoTracks()[0].getSettings().deviceId)!=null?g:null,C.getTracks().forEach(R=>R.stop())}catch(C){}try{const C=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});x=(b=C.getVideoTracks()[0].getSettings().deviceId)!=null?b:null,C.getTracks().forEach(R=>R.stop())}catch(C){}if(!(P&&x&&P!==x)){s(!1);return}s(!M)}catch(_){s(!1)}}),stopCamera:()=>{i.current&&(i.current.getTracks().forEach(g=>g.stop()),i.current=null),t.current&&(t.current.srcObject=null,t.current.load())},registerCameraSwitchCallback:d}};var Li=typeof self!="undefined"?self:{};function ui(){throw Error("Invalid UTF8")}function I2(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let sn,_a;const Ff=typeof TextDecoder!="undefined";let Bf;const Df=typeof TextEncoder!="undefined";function F2(e){if(Df)e=(Bf||(Bf=new TextEncoder)).encode(e);else{let i=0;const r=new Uint8Array(3*e.length);for(let n=0;n<e.length;n++){var t=e.charCodeAt(n);if(t<128)r[i++]=t;else{if(t<2048)r[i++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&n<e.length){const o=e.charCodeAt(++n);if(o>=56320&&o<=57343){t=1024*(t-55296)+o-56320+65536,r[i++]=t>>18|240,r[i++]=t>>12&63|128,r[i++]=t>>6&63|128,r[i++]=63&t|128;continue}n--}t=65533}r[i++]=t>>12|224,r[i++]=t>>6&63|128}r[i++]=63&t|128}}e=i===r.length?r:r.subarray(0,i)}return e}var wa,an;e:{for(var B2=["CLOSURE_FLAGS"],Ca=Li,Ea=0;Ea<B2.length;Ea++)if((Ca=Ca[B2[Ea]])==null){an=null;break e}an=Ca}var Er,D2=an&&an[610401301];wa=D2!=null&&D2;const R2=Li.navigator;function xa(e){return!!wa&&!!Er&&Er.brands.some(({brand:t})=>t&&t.indexOf(e)!=-1)}function Qe(e){var t;return(t=Li.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function jt(){return!!wa&&!!Er&&Er.brands.length>0}function ka(){return jt()?xa("Chromium"):(Qe("Chrome")||Qe("CriOS"))&&!(!jt()&&Qe("Edge"))||Qe("Silk")}function cn(e){return cn[" "](e),e}Er=R2&&R2.userAgentData||null,cn[" "]=function(){};var Rf=!jt()&&(Qe("Trident")||Qe("MSIE"));!Qe("Android")||ka(),ka(),Qe("Safari")&&(ka()||!jt()&&Qe("Coast")||!jt()&&Qe("Opera")||!jt()&&Qe("Edge")||(jt()?xa("Microsoft Edge"):Qe("Edg/"))||jt()&&xa("Opera"));var O2={},xr=null;function Of(e){const t=e.length;let i=3*t/4;i%3?i=Math.floor(i):"=.".indexOf(e[t-1])!=-1&&(i="=.".indexOf(e[t-2])!=-1?i-2:i-1);const r=new Uint8Array(i);let n=0;return function(o,s){function a(l){for(;c<o.length;){const d=o.charAt(c++),u=xr[d];if(u!=null)return u;if(!/^[\s\xa0]*$/.test(d))throw Error("Unknown base64 encoding at char: "+d)}return l}P2();let c=0;for(;;){const l=a(-1),d=a(0),u=a(64),h=a(64);if(h===64&&l===-1)break;s(l<<2|d>>4),u!=64&&(s(d<<4&240|u>>2),h!=64&&s(u<<6&192|h))}}(e,function(o){r[n++]=o}),n!==i?r.subarray(0,n):r}function P2(){if(!xr){xr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let i=0;i<5;i++){const r=e.concat(t[i].split(""));O2[i]=r;for(let n=0;n<r.length;n++){const o=r[n];xr[o]===void 0&&(xr[o]=n)}}}}var $2=typeof Uint8Array!="undefined",N2=!Rf&&typeof btoa=="function";function H2(e){if(!N2){var t;t===void 0&&(t=0),P2(),t=O2[t];var i=Array(Math.floor(e.length/3)),r=t[64]||"";let c=0,l=0;for(;c<e.length-2;c+=3){var n=e[c],o=e[c+1],s=e[c+2],a=t[n>>2];n=t[(3&n)<<4|o>>4],o=t[(15&o)<<2|s>>6],s=t[63&s],i[l++]=a+n+o+s}switch(a=0,s=r,e.length-c){case 2:s=t[(15&(a=e[c+1]))<<2]||r;case 1:e=e[c],i[l]=t[e>>2]+t[(3&e)<<4|a>>4]+s+r}return i.join("")}for(t="",i=0,r=e.length-10240;i<r;)t+=String.fromCharCode.apply(null,e.subarray(i,i+=10240));return t+=String.fromCharCode.apply(null,i?e.subarray(i):e),btoa(t)}const U2=/[-_.]/g,Pf={"-":"+",_:"/",".":"="};function $f(e){return Pf[e]||""}function q2(e){if(!N2)return Of(e);U2.test(e)&&(e=e.replace(U2,$f)),e=atob(e);const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}function di(e){return $2&&e!=null&&e instanceof Uint8Array}var Ti={};function hi(){return Nf||(Nf=new Tt(null,Ti))}function Aa(e){V2(Ti);var t=e.g;return(t=t==null||di(t)?t:typeof t=="string"?q2(t):null)==null?t:e.g=t}var Tt=class{h(){return new Uint8Array(Aa(this)||0)}constructor(e,t){if(V2(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};let Nf,Sa;function V2(e){if(e!==Ti)throw Error("illegal external caller")}function j2(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function La(e){return j2(e=Error(e),"warning"),e}function Ta(e){if(e!=null){var t=Sa!=null?Sa:Sa={},i=t[e]||0;i>=5||(t[e]=i+1,j2(e=Error(),"incident"),function(r){Li.setTimeout(()=>{throw r},0)}(e))}}var ln=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Mi(e,t,i=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?i&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var Hf=Mi("jas",void 0,!0),z2=Mi(void 0,"0di"),kr=Mi(void 0,"1oa"),Ii=Mi(void 0,Symbol()),Uf=Mi(void 0,"0actk"),G2=Mi(void 0,"8utk");const L=ln?Hf:"Ea",Z2={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},W2=Object.defineProperties;function un(e,t){ln||L in e||W2(e,Z2),e[L]|=t}function be(e,t){ln||L in e||W2(e,Z2),e[L]=t}function Fi(e){return un(e,34),e}function qf(e,t){be(t,-15615&(0|e))}function Ma(e,t){be(t,-15581&(34|e))}function dn(){return typeof BigInt=="function"}function Oe(e){return Array.prototype.slice.call(e)}var Ia,Ar={};function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function Fa(e,t){if(e!=null){if(typeof e=="string")e=e?new Tt(e,Ti):hi();else if(e.constructor!==Tt)if(di(e))e=e.length?new Tt(new Uint8Array(e),Ti):hi();else{if(!t)throw Error();e=void 0}}return e}const X2=[];function zt(e){if(2&e)throw Error()}be(X2,55),Ia=Object.freeze(X2);class K2{constructor(t,i,r){this.g=t,this.h=i,this.l=r}next(){const t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}function Ba(e){return Ii?e[Ii]:void 0}var Vf=Object.freeze({});function fn(e){return e.Na=!0,e}var jf=fn(e=>typeof e=="number"),Y2=fn(e=>typeof e=="string"),zf=fn(e=>typeof e=="boolean"),pn=typeof Li.BigInt=="function"&&typeof Li.BigInt(0)=="bigint";function Gt(e){var t=e;if(Y2(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(jf(t)&&!Number.isSafeInteger(t))throw Error(String(t));return pn?BigInt(e):e=zf(e)?e?"1":"0":Y2(e)?e.trim()||"0":String(e)}var Da=fn(e=>pn?e>=Zf&&e<=Xf:e[0]==="-"?J2(e,Gf):J2(e,Wf));const Gf=Number.MIN_SAFE_INTEGER.toString(),Zf=pn?BigInt(Number.MIN_SAFE_INTEGER):void 0,Wf=Number.MAX_SAFE_INTEGER.toString(),Xf=pn?BigInt(Number.MAX_SAFE_INTEGER):void 0;function J2(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let i=0;i<e.length;i++){const r=e[i],n=t[i];if(r>n)return!1;if(r<n)return!0}}const Kf=typeof Uint8Array.prototype.slice=="function";let Q2,Y=0,ue=0;function ed(e){const t=e>>>0;Y=t,ue=(e-t)/4294967296>>>0}function fi(e){if(e<0){ed(-e);const[t,i]=$a(Y,ue);Y=t>>>0,ue=i>>>0}else ed(e)}function Ra(e){const t=Q2||(Q2=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),ue=0,Y=t.getUint32(0,!0)}function Oa(e,t){const i=4294967296*t+(e>>>0);return Number.isSafeInteger(i)?i:Sr(e,t)}function Pa(e,t){const i=2147483648&t;return i&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=Oa(e,t))=="number"?i?-e:e:i?"-"+e:e}function Sr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var i=""+(4294967296*t+e);else dn()?i=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(i=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),i+=8147497*t,t*=2,e>=1e7&&(i+=e/1e7>>>0,e%=1e7),i>=1e7&&(t+=i/1e7>>>0,i%=1e7),i=t+td(i)+td(e));return i}function td(e){return e=String(e),"0000000".slice(e.length)+e}function id(){var e=Y,t=ue;if(2147483648&t)if(dn())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[i,r]=$a(e,t);e="-"+Sr(i,r)}else e=Sr(e,t);return e}function mn(e){if(e.length<16)fi(Number(e));else if(dn())e=BigInt(e),Y=Number(e&BigInt(4294967295))>>>0,ue=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");ue=Y=0;const i=e.length;for(let r=t,n=(i-t)%6+t;n<=i;r=n,n+=6){const o=Number(e.slice(r,n));ue*=1e6,Y=1e6*Y+o,Y>=4294967296&&(ue+=Math.trunc(Y/4294967296),ue>>>=0,Y>>>=0)}if(t){const[r,n]=$a(Y,ue);Y=r,ue=n}}}function $a(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}const Lr=typeof BigInt=="function"?BigInt.asIntN:void 0,Yf=typeof BigInt=="function"?BigInt.asUintN:void 0,Zt=Number.isSafeInteger,gn=Number.isFinite,Bi=Math.trunc,Jf=Gt(0);function Wt(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function rd(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}const Qf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Tr(e){switch(typeof e){case"bigint":return!0;case"number":return gn(e);case"string":return Qf.test(e);default:return!1}}function Di(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gn(e)?0|e:void 0}function nd(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gn(e)?e>>>0:void 0}function od(e){if(e[0]==="-")return!1;const t=e.length;return t<20||t===20&&Number(e.substring(0,6))<184467}function sd(e){const t=e.length;return e[0]==="-"?t<20||t===20&&Number(e.substring(0,7))>-922337:t<19||t===19&&Number(e.substring(0,6))<922337}function ad(e){return sd(e)?e:(mn(e),id())}function Na(e){return e=Bi(e),Zt(e)||(fi(e),e=Pa(Y,ue)),e}function cd(e){var t=Bi(Number(e));return Zt(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),ad(e))}function ld(e){var t=Bi(Number(e));return Zt(t)?Gt(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),dn()?Gt(Lr(64,BigInt(e))):Gt(ad(e)))}function ud(e){if(Zt(e))e=Gt(Na(e));else{if(e=Bi(e),Zt(e))e=String(e);else{const t=String(e);sd(t)?e=t:(fi(e),e=id())}e=Gt(e)}return e}function Ha(e){return e==null?e:typeof e=="bigint"?(Da(e)?e=Number(e):(e=Lr(64,e),e=Da(e)?Number(e):String(e)),e):Tr(e)?typeof e=="number"?Na(e):cd(e):void 0}function ep(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(Yf(64,e));if(Tr(e)){if(t==="string")return t=Bi(Number(e)),Zt(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),od(e)||(mn(e),e=Sr(Y,ue))),e;if(t==="number")return(e=Bi(e))>=0&&Zt(e)?e:function(i){if(i<0){fi(i);var r=Sr(Y,ue);return i=Number(r),Zt(i)?i:r}return od(r=String(i))?r:(fi(i),Oa(Y,ue))}(e)}}function dd(e){if(typeof e!="string")throw Error();return e}function Ri(e){if(e!=null&&typeof e!="string")throw Error();return e}function Oi(e){return e==null||typeof e=="string"?e:void 0}function Ua(e,t,i,r){if(e!=null&&typeof e=="object"&&e.W===Ar)return e;if(!Array.isArray(e))return i?2&r?((e=t[z2])||(Fi((e=new t).u),e=t[z2]=e),t=e):t=new t:t=void 0,t;let n=i=0|e[L];return n===0&&(n|=32&r),n|=2&r,n!==i&&be(e,n),new t(e)}function tp(e,t,i){if(t)e:{if(!Tr(t=e))throw La("int64");switch(typeof t){case"string":t=ld(t);break e;case"bigint":t=Gt(Lr(64,t));break e;default:t=ud(t)}}else e=typeof(t=e),t=t==null?t:e==="bigint"?Gt(Lr(64,t)):Tr(t)?e==="string"?ld(t):ud(t):void 0;return(e=t)==null?i?Jf:void 0:e}function ip(e){return e}const rp={};let np=function(){try{return cn(new class extends Map{constructor(){super()}}),!1}catch(e){return!0}}();class qa{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,i){return this.g.set(t,i),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,i){return this.g.forEach(t,i)}[Symbol.iterator](){return this.entries()}}const op=np?(Object.setPrototypeOf(qa.prototype,Map.prototype),Object.defineProperties(qa.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qa):class extends Map{constructor(){super()}};function hd(e){return e}function Va(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var bt=class extends op{constructor(e,t,i=hd,r=hd){super();let n=0|e[L];n|=64,be(e,n),this.M=n,this.I=t,this.S=i,this.X=this.I?sp:r;for(let o=0;o<e.length;o++){const s=e[o],a=i(s[0],!1,!0);let c=s[1];t?c===void 0&&(c=null):c=r(s[1],!1,!0,void 0,void 0,n),super.set(a,c)}}La(){var e=dp;if(this.size!==0)return Array.from(super.entries(),t=>(t[0]=e(t[0]),t[1]=e(t[1]),t))}da(e=ap){const t=[],i=super.entries();for(var r;!(r=i.next()).done;)(r=r.value)[0]=e(r[0]),r[1]=e(r[1]),t.push(r);return t}clear(){Va(this),super.clear()}delete(e){return Va(this),super.delete(this.S(e,!0,!1))}entries(){if(this.I){var e=super.keys();e=new K2(e,cp,this)}else e=super.entries();return e}values(){if(this.I){var e=super.keys();e=new K2(e,bt.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.I?super.forEach((i,r,n)=>{e.call(t,n.get(r),r,n)}):super.forEach(e,t)}set(e,t){return Va(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.X(t,!0,!0,this.I,!1,this.M))}Ja(e){const t=this.S(e[0],!1,!0);e=e[1],e=this.I?e===void 0?null:e:this.X(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);const t=super.get(e);if(t!==void 0){var i=this.I;return i?((i=this.X(t,!1,!0,i,this.pa,this.M))!==t&&super.set(e,i),i):t}}[Symbol.iterator](){return this.entries()}};function sp(e,t,i,r,n,o){return e=Ua(e,r,i,o),n&&(e=_n(e)),e}function ap(e){return e}function cp(e){return[e,this.get(e)]}let lp,vn,fd,up;function pd(){return lp||(lp=new bt(Fi([]),void 0,void 0,void 0,rp))}function ja(e,t,i,r,n){if(e!=null){if(Array.isArray(e)){const o=0|e[L];return e.length===0&&1&o?void 0:n&&2&o?e:bn(e,t,i,r!==void 0,n)}return t(e,r)}}function bn(e,t,i,r,n){const o=r||i?0|e[L]:0,s=r?!!(32&o):void 0;let a=0;const c=(r=Oe(e)).length;for(let p=0;p<c;p++){var l=r[p];if(p===c-1&&hn(l)){var d=t,u=i,h=s,f=n;let m;for(let v in l){const g=ja(l[v],d,u,h,f);g!=null&&((m!=null?m:m={})[v]=g)}l=m}else l=ja(r[p],t,i,s,n);r[p]=l,l!=null&&(a=p+1)}return a<c&&(r.length=a),i&&((e=Ba(e))&&(r[Ii]=Oe(e)),i(o,r)),r}function dp(e){return ja(e,za,void 0,void 0,!1)}function za(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return Da(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(di(e))return di(e)&&Ta(G2),H2(e);if(e.W===Ar)return md(e);if(e instanceof Tt){const t=e.g;return t==null?"":typeof t=="string"?t:e.g=H2(t)}return e instanceof bt?e.La():void 0}return e}function md(e){var t=e.u;e=bn(t,za,void 0,void 0,!1);var i=0|t[L];if((t=e.length)&&!(512&i)){var r=e[t-1],n=!1;hn(r)?(t--,n=!0):r=void 0;var o=t-(i=512&i?0:-1),s=(vn!=null?vn:ip)(o,i,e,r);if(r&&(e[t]=void 0),o<s&&r){for(var a in o=!0,r){const c=+a;c<=s?(e[n=c+i]=r[a],t=Math.max(n+1,t),n=!1,delete r[a]):o=!1}o&&(r=void 0)}for(o=t-1;t>0;o=t-1)if((a=e[o])==null)t--,n=!0;else{if(!((o-=i)>=s))break;(r!=null?r:r={})[o]=a,t--,n=!0}n&&(e.length=t),r&&e.push(r)}return e}function Xt(e,t,i){return e=gd(e,t[0],t[1],i?1:2),t!==fd&&i&&un(e,8192),e}function gd(e,t,i,r){if(e==null){var n=96;i?(e=[i],n|=512):e=[],t&&(n=-16760833&n|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(8192&(n=0|e[L])||!(64&n)||2&n||Ta(Uf),1024&n)throw Error("farr");if(64&n)return e;if(r===1||r===2||(n|=64),i&&(n|=512,i!==e[0]))throw Error("mid");e:{var o=(i=e).length;if(o){var s=o-1;if(hn(r=i[s])){if((s-=t=512&(n|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var a in r)(o=+a)<s&&(i[o+t]=r[a],delete r[a]);n=-16760833&n|(1023&s)<<14;break e}}if(t){if((a=Math.max(t,o-(512&n?0:-1)))>1024)throw Error("spvt");n=-16760833&n|(1023&a)<<14}}}return be(e,n),e}function Ga(e,t,i=Ma){if(e!=null){if($2&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var r=0|e[L];return 2&r?e:(t&&(t=r===0||!!(32&r)&&!(64&r||!(16&r))),t?(be(e,34|r),4&r&&Object.freeze(e),e):bn(e,Ga,4&r?Ma:i,!0,!0))}return e.W===Ar?e=2&(r=0|(i=e.u)[L])?e:new e.constructor(yn(i,r,!0)):e instanceof bt&&!(2&e.M)&&(i=Fi(e.da(Ga)),e=new bt(i,e.I,e.S,e.X)),e}}function yn(e,t,i){const r=i||2&t?Ma:qf,n=!!(32&t);return e=function(o,s,a){const c=Oe(o);var l=c.length;const d=256&s?c[l-1]:void 0;for(l+=d?-1:0,s=512&s?1:0;s<l;s++)c[s]=a(c[s]);if(d){s=c[s]={};for(const u in d)s[u]=a(d[u])}return(o=Ba(o))&&(c[Ii]=Oe(o)),c}(e,t,o=>Ga(o,n,r)),un(e,32|(i?2:0)),e}function _n(e){const t=e.u,i=0|t[L];return 2&i?new e.constructor(yn(t,i,!1)):e}function Pi(e,t){return Mt(e=e.u,0|e[L],t)}function Mt(e,t,i){if(i===-1)return null;const r=i+(512&t?0:-1),n=e.length-1;return r>=n&&256&t?e[n][i]:r<=n?e[r]:void 0}function Q(e,t,i){const r=e.u;let n=0|r[L];return zt(n),ce(r,n,t,i),e}function ce(e,t,i,r){const n=512&t?0:-1,o=i+n;var s=e.length-1;return o>=s&&256&t?(e[s][i]=r,t):o<=s?(e[o]=r,t):(r!==void 0&&(i>=(s=t>>14&1023||536870912)?r!=null&&(e[s+n]={[i]:r},be(e,t|=256)):e[o]=r),t)}function wn(e,t){let i=0|(e=e.u)[L];const r=Mt(e,i,t),n=Wt(r);return n!=null&&n!==r&&ce(e,i,t,n),n}function vd(e){let t=0|(e=e.u)[L];const i=Mt(e,t,1),r=Fa(i,!0);return r!=null&&r!==i&&ce(e,t,1,r),r}function pi(){return Vf===void 0?2:4}function mi(e,t,i,r,n){const o=e.u,s=2&(e=0|o[L])?1:r;n=!!n;let a=0|(r=Za(o,e,t))[L];if(!(4&a)){4&a&&(r=Oe(r),a=Bt(a,e),e=ce(o,e,t,r));let c=0,l=0;for(;c<r.length;c++){const d=i(r[c]);d!=null&&(r[l++]=d)}l<c&&(r.length=l),a=Wa(a,e),i=-2049&(20|a),a=i&=-4097,be(r,a),2&a&&Object.freeze(r)}return s===1||s===4&&32&a?It(a)||(n=a,a|=2,a!==n&&be(r,a),Object.freeze(r)):(s===2&&It(a)&&(r=Oe(r),a=Bt(a,e),a=Kt(a,e,n),be(r,a),e=ce(o,e,t,r)),It(a)||(t=a,a=Kt(a,e,n),a!==t&&be(r,a))),r}function Za(e,t,i){return e=Mt(e,t,i),Array.isArray(e)?e:Ia}function Wa(e,t){return e===0&&(e=Bt(e,t)),1|e}function It(e){return!!(2&e)&&!!(4&e)||!!(1024&e)}function bd(e){e=Oe(e);for(let t=0;t<e.length;t++){const i=e[t]=Oe(e[t]);Array.isArray(i[1])&&(i[1]=Fi(i[1]))}return e}function Xa(e,t,i,r){let n=0|(e=e.u)[L];zt(n),ce(e,n,t,(r==="0"?Number(i)===0:i===r)?void 0:i)}function $i(e,t,i,r){zt(t);let n=Za(e,t,i);const o=n!==Ia;if(64&t||!(8192&t)||!o){const s=o?0|n[L]:0;let a=s;(!o||2&a||It(a)||4&a&&!(32&a))&&(n=Oe(n),a=Bt(a,t),t=ce(e,t,i,n)),a=-13&Wa(a,t),a=Kt(r?-17&a:16|a,t,!0),a!==s&&be(n,a)}return n}function Ka(e,t){var i=bh;return Ja(Ya(e=e.u),e,0|e[L],i)===t?t:-1}function Ya(e){var i;if(ln)return(i=e[kr])!=null?i:e[kr]=new Map;if(kr in e)return e[kr];const t=new Map;return Object.defineProperty(e,kr,{value:t}),t}function yd(e,t,i,r){const n=Ya(e),o=Ja(n,e,t,i);return o!==r&&(o&&(t=ce(e,t,o)),n.set(i,r)),t}function Ja(e,t,i,r){let n=e.get(r);if(n!=null)return n;n=0;for(let o=0;o<r.length;o++){const s=r[o];Mt(t,i,s)!=null&&(n!==0&&(i=ce(t,i,n)),n=s)}return e.set(r,n),n}function Qa(e,t,i){let r=0|e[L];const n=Mt(e,r,i);let o;if(n!=null&&n.W===Ar)return(t=_n(n))!==n&&ce(e,r,i,t),t.u;if(Array.isArray(n)){const s=0|n[L];o=2&s?Xt(yn(n,s,!1),t,!0):64&s?n:Xt(o,t,!0)}else o=Xt(void 0,t,!0);return o!==n&&ce(e,r,i,o),o}function _d(e,t,i){let r=0|(e=e.u)[L];const n=Mt(e,r,i);return(t=Ua(n,t,!1,r))!==n&&t!=null&&ce(e,r,i,t),t}function V(e,t,i){if((t=_d(e,t,i))==null)return t;let r=0|(e=e.u)[L];if(!(2&r)){const n=_n(t);n!==t&&ce(e,r,i,t=n)}return t}function wd(e,t,i,r,n,o,s){e=e.u;var a=!!(2&t);const c=a?1:n;o=!!o,s&&(s=!a);var l=0|(n=Za(e,t,r))[L];if(!(a=!!(4&l))){var d=n,u=t;const h=!!(2&(l=Wa(l,t)));h&&(u|=2);let f=!h,p=!0,m=0,v=0;for(;m<d.length;m++){const g=Ua(d[m],i,!1,u);if(g instanceof i){if(!h){const b=!!(2&(0|g.u[L]));f&&(f=!b),p&&(p=b)}d[v++]=g}}v<m&&(d.length=v),l|=4,l=p?16|l:-17&l,be(d,l=f?8|l:-9&l),h&&Object.freeze(d)}if(s&&!(8&l||!n.length&&(c===1||c===4&&32&l))){for(It(l)&&(n=Oe(n),l=Bt(l,t),t=ce(e,t,r,n)),i=n,s=l,d=0;d<i.length;d++)(l=i[d])!==(u=_n(l))&&(i[d]=u);s|=8,be(i,s=i.length?-17&s:16|s),l=s}return c===1||c===4&&32&l?It(l)||(t=l,(l|=!n.length||16&l&&(!a||32&l)?2:1024)!==t&&be(n,l),Object.freeze(n)):(c===2&&It(l)&&(be(n=Oe(n),l=Kt(l=Bt(l,t),t,o)),t=ce(e,t,r,n)),It(l)||(r=l,(l=Kt(l,t,o))!==r&&be(n,l))),n}function Ft(e,t,i){const r=0|e.u[L];return wd(e,r,t,i,pi(),!1,!(2&r))}function I(e,t,i,r){return r==null&&(r=void 0),Q(e,i,r)}function Mr(e,t,i,r){r==null&&(r=void 0);e:{let n=0|(e=e.u)[L];if(zt(n),r==null){const o=Ya(e);if(Ja(o,e,n,i)!==t)break e;o.set(i,0)}else n=yd(e,n,i,t);ce(e,n,t,r)}}function Bt(e,t){return-1025&(e=32|(2&t?2|e:-3&e))}function Kt(e,t,i){return 32&t&&i||(e&=-33),e}function Cn(e,t,i){zt(0|e.u[L]),mi(e,t,Oi,2,!0).push(dd(i))}function En(e,t,i,r){const n=0|e.u[L];zt(n),e=wd(e,n,i,t,2,!0),r=r!=null?r:new i,e.push(r),e[L]=2&(0|r.u[L])?-9&e[L]:-17&e[L]}function et(e,t){return Di(Pi(e,t))}function tt(e,t){return Oi(Pi(e,t))}function fe(e,t){var i;return(i=wn(e,t))!=null?i:0}function Ir(e,t,i){if(i!=null&&typeof i!="boolean")throw e=typeof i,Error(`Expected boolean but got ${e!="object"?e:i?Array.isArray(i)?"array":e:"null"}: ${i}`);Q(e,t,i)}function yt(e,t,i){if(i!=null){if(typeof i!="number"||!gn(i))throw La("int32");i|=0}Q(e,t,i)}function A(e,t,i){if(i!=null&&typeof i!="number")throw Error(`Value of float/double field must be a number, found ${typeof i}: ${i}`);Q(e,t,i)}function xn(e,t,i){{const s=e.u;let a=0|s[L];if(zt(a),i==null)ce(s,a,t);else{var r=e=0|i[L],n=It(e),o=n||Object.isFrozen(i);for(n||(e=0),o||(i=Oe(i),r=0,e=Kt(e=Bt(e,a),a,!0),o=!1),e|=21,n=0;n<i.length;n++){const c=i[n],l=dd(c);Object.is(c,l)||(o&&(i=Oe(i),r=0,e=Kt(e=Bt(e,a),a,!0),o=!1),i[n]=l)}e!==r&&(o&&(i=Oe(i),e=Kt(e=Bt(e,a),a,!0)),be(i,e)),ce(s,a,t,i)}}}function Cd(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function ec(){return Error("Failed to read varint, encoding is invalid.")}function Ed(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function tc(e){if(typeof e=="string")return{buffer:q2(e),O:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Uint8Array)return{buffer:e,O:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Tt)return{buffer:Aa(e)||new Uint8Array(0),O:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function ic(e,t){let i,r=0,n=0,o=0;const s=e.h;let a=e.g;do i=s[a++],r|=(127&i)<<o,o+=7;while(o<32&&128&i);for(o>32&&(n|=(127&i)>>4),o=3;o<32&&128&i;o+=7)i=s[a++],n|=(127&i)<<o;if(gi(e,a),i<128)return t(r>>>0,n>>>0);throw ec()}function rc(e){let t=0,i=e.g;const r=i+10,n=e.h;for(;i<r;){const o=n[i++];if(t|=o,(128&o)==0)return gi(e,i),!!(127&t)}throw ec()}function Yt(e){const t=e.h;let i=e.g,r=t[i++],n=127&r;if(128&r&&(r=t[i++],n|=(127&r)<<7,128&r&&(r=t[i++],n|=(127&r)<<14,128&r&&(r=t[i++],n|=(127&r)<<21,128&r&&(r=t[i++],n|=r<<28,128&r&&128&t[i++]&&128&t[i++]&&128&t[i++]&&128&t[i++]&&128&t[i++])))))throw ec();return gi(e,i),n}function Dt(e){return Yt(e)>>>0}function nc(e){var t=e.h;const i=e.g,r=t[i],n=t[i+1],o=t[i+2];return t=t[i+3],gi(e,e.g+4),(r<<0|n<<8|o<<16|t<<24)>>>0}function oc(e){var t=nc(e);e=2*(t>>31)+1;const i=t>>>23&255;return t&=8388607,i==255?t?NaN:e*(1/0):i==0?1401298464324817e-60*e*t:e*Math.pow(2,i-150)*(t+8388608)}function hp(e){return Yt(e)}function sc(e,t,{aa:i=!1}={}){e.aa=i,t&&(t=tc(t),e.h=t.buffer,e.m=t.O,e.j=0,e.l=e.h.length,e.g=e.j)}function gi(e,t){if(e.g=t,t>e.l)throw Ed(e.l,t)}function xd(e,t){if(t<0)throw Error(`Tried to read a negative byte length: ${t}`);const i=e.g,r=i+t;if(r>e.l)throw Ed(t,e.l-i);return e.g=r,i}function kd(e,t){if(t==0)return hi();var i=xd(e,t);return e.aa&&e.m?i=e.h.subarray(i,i+t):(e=e.h,i=i===(t=i+t)?new Uint8Array(0):Kf?e.slice(i,t):new Uint8Array(e.subarray(i,t))),i.length==0?hi():new Tt(i,Ti)}bt.prototype.toJSON=void 0;var Ad=[];function Sd(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var i=Dt(e.g);if(t=i>>>3,!((i&=7)>=0&&i<=5))throw Cd(i,e.l);if(t<1)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=i,!0}function kn(e){switch(e.h){case 0:e.h!=0?kn(e):rc(e.g);break;case 1:gi(e=e.g,e.g+8);break;case 2:if(e.h!=2)kn(e);else{var t=Dt(e.g);gi(e=e.g,e.g+t)}break;case 5:gi(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!Sd(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}kn(e)}break;default:throw Cd(e.h,e.l)}}function Fr(e,t,i){const r=e.g.l,n=Dt(e.g),o=e.g.g+n;let s=o-r;if(s<=0&&(e.g.l=o,i(t,e,void 0,void 0,void 0),s=o-e.g.g),s)throw Error(`Message parsing ended unexpectedly. Expected to read ${n} bytes, instead read ${n-s} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=o,e.g.l=r,t}function ac(e){var t=Dt(e.g),i=xd(e=e.g,t);if(e=e.h,Ff){var r,n=e;(r=_a)||(r=_a=new TextDecoder("utf-8",{fatal:!0})),t=i+t,n=i===0&&t===n.length?n:n.subarray(i,t);try{var o=r.decode(n)}catch(a){if(sn===void 0){try{r.decode(new Uint8Array([128]))}catch(c){}try{r.decode(new Uint8Array([97])),sn=!0}catch(c){sn=!1}}throw!sn&&(_a=void 0),a}}else{t=(o=i)+t,i=[];let a,c=null;for(;o<t;){var s=e[o++];s<128?i.push(s):s<224?o>=t?ui():(a=e[o++],s<194||(192&a)!=128?(o--,ui()):i.push((31&s)<<6|63&a)):s<240?o>=t-1?ui():(a=e[o++],(192&a)!=128||s===224&&a<160||s===237&&a>=160||(192&(r=e[o++]))!=128?(o--,ui()):i.push((15&s)<<12|(63&a)<<6|63&r)):s<=244?o>=t-2?ui():(a=e[o++],(192&a)!=128||a-144+(s<<28)>>30!=0||(192&(r=e[o++]))!=128||(192&(n=e[o++]))!=128?(o--,ui()):(s=(7&s)<<18|(63&a)<<12|(63&r)<<6|63&n,s-=65536,i.push(55296+(s>>10&1023),56320+(1023&s)))):ui(),i.length>=8192&&(c=I2(c,i),i.length=0)}o=I2(c,i)}return o}function Ld(e){const t=Dt(e.g);return kd(e.g,t)}function An(e,t,i){var r=Dt(e.g);for(r=e.g.g+r;e.g.g<r;)i.push(t(e.g))}var Sn=[];function ht(e,t,i){t.g?t.m(e,t.g,t.h,i):t.m(e,t.h,i)}var k=class{constructor(e,t){this.u=gd(e,t)}toJSON(){try{var e=md(this)}finally{vn=void 0}return e}l(){var e=Wp;return e.g?e.l(this,e.g,e.h):e.l(this,e.h,e.defaultValue)}clone(){const e=this.u;return new this.constructor(yn(e,0|e[L],!1))}O(){return!!(2&(0|this.u[L]))}};function Td(e){return e?/^\d+$/.test(e)?(mn(e),new cc(Y,ue)):null:fp||(fp=new cc(0,0))}k.prototype.W=Ar,k.prototype.toString=function(){return this.u.toString()};var cc=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let fp;function Md(e){return e?/^-?\d+$/.test(e)?(mn(e),new lc(Y,ue)):null:pp||(pp=new lc(0,0))}var lc=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let pp;function Ni(e,t,i){for(;i>0||t>127;)e.g.push(127&t|128),t=(t>>>7|i<<25)>>>0,i>>>=7;e.g.push(t)}function Hi(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function Ln(e,t){if(t>=0)Hi(e,t);else{for(let i=0;i<9;i++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function Br(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function Ui(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function He(e,t,i){Hi(e.g,8*t+i)}function uc(e,t){return He(e,t,2),t=e.g.end(),Ui(e,t),t.push(e.h),t}function dc(e,t){var i=t.pop();for(i=e.h+e.g.length()-i;i>127;)t.push(127&i|128),i>>>=7,e.h++;t.push(i),e.h++}function Tn(e,t,i){He(e,t,2),Hi(e.g,i.length),Ui(e,e.g.end()),Ui(e,i)}function Mn(e,t,i,r){i!=null&&(t=uc(e,t),r(i,e),dc(e,t))}function ft(){const e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var hc=ft(),Id=ft(),fc=ft(),pc=ft(),Fd=ft(),Bd=ft(),mc=ft(),Dd=ft(),Rd=ft(),qi=class{constructor(e,t,i){this.g=e,this.h=t,e=hc,this.l=!!e&&i===e||!1}};function In(e,t){return new qi(e,t,hc)}function Od(e,t,i,r,n){Mn(e,i,Hd(t,r),n)}const mp=In(function(e,t,i,r,n){return e.h===2&&(Fr(e,Qa(t,r,i),n),!0)},Od),gp=In(function(e,t,i,r,n){return e.h===2&&(Fr(e,Qa(t,r,i),n),!0)},Od);var Fn=Symbol(),gc=Symbol(),Pd=Symbol(),$d=Symbol();let Bn,Dn;function vi(e,t,i,r){var n=r[e];if(n)return n;(n={}).Ma=r,n.T=function(u){switch(typeof u){case"boolean":return fd||(fd=[0,void 0,!0]);case"number":return u>0?void 0:u===0?up||(up=[0,void 0]):[-u,void 0];case"string":return[0,u];case"object":return u}}(r[0]);var o=r[1];let s=1;o&&o.constructor===Object&&(n.ga=o,typeof(o=r[++s])=="function"&&(n.la=!0,Bn!=null||(Bn=o),Dn!=null||(Dn=r[s+1]),o=r[s+=2]));const a={};for(;o&&Array.isArray(o)&&o.length&&typeof o[0]=="number"&&o[0]>0;){for(var c=0;c<o.length;c++)a[o[c]]=o;o=r[++s]}for(c=1;o!==void 0;){let u;typeof o=="number"&&(c+=o,o=r[++s]);var l=void 0;if(o instanceof qi?u=o:(u=mp,s--),u==null?void 0:u.l){o=r[++s],l=r;var d=s;typeof o=="function"&&(o=o(),l[d]=o),l=o}for(d=c+1,typeof(o=r[++s])=="number"&&o<0&&(d-=o,o=r[++s]);c<d;c++){const h=a[c];l?i(n,c,u,l,h):t(n,c,u,h)}}return r[e]=n}function Nd(e){return Array.isArray(e)?e[0]instanceof qi?e:[gp,e]:[e,void 0]}function Hd(e,t){return e instanceof k?e.u:Array.isArray(e)?Xt(e,t,!1):void 0}function vc(e,t,i,r){const n=i.g;e[t]=r?(o,s,a)=>n(o,s,a,r):n}function bc(e,t,i,r,n){const o=i.g;let s,a;e[t]=(c,l,d)=>o(c,l,d,a||(a=vi(gc,vc,bc,r).T),s||(s=yc(r)),n)}function yc(e){let t=e[Pd];if(t!=null)return t;const i=vi(gc,vc,bc,e);return t=i.la?(r,n)=>Bn(r,n,i):(r,n)=>{const o=0|r[L];for(;Sd(n)&&n.h!=4;){var s=n.m,a=i[s];if(a==null){var c=i.ga;c&&(c=c[s])&&(c=vp(c))!=null&&(a=i[s]=c)}a!=null&&a(n,r,s)||(s=(a=n).l,kn(a),a.fa?a=void 0:(c=a.g.g-s,a.g.g=s,a=kd(a.g,c)),s=r,a&&((c=s[Ii])?c.push(a):s[Ii]=[a]))}return 8192&o&&Fi(r),!0},e[Pd]=t}function vp(e){const t=(e=Nd(e))[0].g;if(e=e[1]){const i=yc(e),r=vi(gc,vc,bc,e).T;return(n,o,s)=>t(n,o,s,r,i)}return t}function Rn(e,t,i){e[t]=i.h}function On(e,t,i,r){let n,o;const s=i.h;e[t]=(a,c,l)=>s(a,c,l,o||(o=vi(Fn,Rn,On,r).T),n||(n=Ud(r)))}function Ud(e){let t=e[$d];if(!t){const i=vi(Fn,Rn,On,e);t=(r,n)=>qd(r,n,i),e[$d]=t}return t}function qd(e,t,i){(function(r,n,o){const s=512&n?0:-1,a=r.length,c=a+((n=64&n?256&n:!!a&&hn(r[a-1]))?-1:0);for(let l=0;l<c;l++)o(l-s,r[l]);if(n){r=r[a-1];for(const l in r)!isNaN(l)&&o(+l,r[l])}})(e,0|e[L]|(i.T[1]?512:0),(r,n)=>{if(n!=null){var o=function(s,a){var c=s[a];if(c)return c;if((c=s.ga)&&(c=c[a])){var l=(c=Nd(c))[0].h;if(c=c[1]){const d=Ud(c),u=vi(Fn,Rn,On,c).T;c=s.la?Dn(u,d):(h,f,p)=>l(h,f,p,u,d)}else c=l;return s[a]=c}}(i,r);o&&o(t,n,r)}}),(e=Ba(e))&&function(r,n){Ui(r,r.g.end());for(let o=0;o<n.length;o++)Ui(r,Aa(n[o])||new Uint8Array(0))}(t,e)}function Vi(e,t){if(Array.isArray(t)){var i=0|t[L];if(4&i)return t;for(var r=0,n=0;r<t.length;r++){const o=e(t[r]);o!=null&&(t[n++]=o)}return n<r&&(t.length=n),be(t,-6145&(5|i)),2&i&&Object.freeze(t),t}}function Me(e,t,i){return new qi(e,t,i)}function ji(e,t,i){return new qi(e,t,i)}function Ie(e,t,i){ce(e,0|e[L],t,i)}var bp=In(function(e,t,i,r,n){return e.h===2&&(e=Fr(e,Xt([void 0,void 0],r,!0),n),zt(r=0|t[L]),(n=Mt(t,r,i))instanceof bt?(2&n.M)!=0?((n=n.da()).push(e),ce(t,r,i,n)):n.Ja(e):Array.isArray(n)?(2&(0|n[L])&&ce(t,r,i,n=bd(n)),n.push(e)):ce(t,r,i,[e]),!0)},function(e,t,i,r,n){if(t instanceof bt)t.forEach((o,s)=>{Mn(e,i,Xt([s,o],r,!1),n)});else if(Array.isArray(t))for(let o=0;o<t.length;o++){const s=t[o];Array.isArray(s)&&Mn(e,i,Xt(s,r,!1),n)}});function Vd(e,t,i){if(t=function(r){if(r==null)return r;const n=typeof r;if(n==="bigint")return String(Lr(64,r));if(Tr(r)){if(n==="string")return cd(r);if(n==="number")return Na(r)}}(t),t!=null&&(typeof t=="string"&&Md(t),t!=null))switch(He(e,i,0),typeof t){case"number":e=e.g,fi(t),Ni(e,Y,ue);break;case"bigint":i=BigInt.asUintN(64,t),i=new lc(Number(i&BigInt(4294967295)),Number(i>>BigInt(32))),Ni(e.g,i.h,i.g);break;default:i=Md(t),Ni(e.g,i.h,i.g)}}function jd(e,t,i){(t=Di(t))!=null&&t!=null&&(He(e,i,0),Ln(e.g,t))}function zd(e,t,i){(t=rd(t))!=null&&(He(e,i,0),e.g.g.push(t?1:0))}function Gd(e,t,i){(t=Oi(t))!=null&&Tn(e,i,F2(t))}function Zd(e,t,i,r,n){Mn(e,i,Hd(t,r),n)}function Wd(e,t,i){t==null||typeof t=="string"||t instanceof Tt||(di(t)?di(t)&&Ta(G2):t=void 0),t!=null&&Tn(e,i,tc(t).buffer)}function Xd(e,t,i){return(e.h===5||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,oc,t):t.push(oc(e.g)),!0)}var Rt=Me(function(e,t,i){if(e.h!==1)return!1;var r=e.g;e=nc(r);const n=nc(r);r=2*(n>>31)+1;const o=n>>>20&2047;return e=4294967296*(1048575&n)+e,Ie(t,i,o==2047?e?NaN:r*(1/0):o==0?5e-324*r*e:r*Math.pow(2,o-1075)*(e+4503599627370496)),!0},function(e,t,i){(t=Wt(t))!=null&&(He(e,i,1),e=e.g,(i=Q2||(Q2=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),Y=i.getUint32(0,!0),ue=i.getUint32(4,!0),Br(e,Y),Br(e,ue))},ft()),ye=Me(function(e,t,i){return e.h===5&&(Ie(t,i,oc(e.g)),!0)},function(e,t,i){(t=Wt(t))!=null&&(He(e,i,5),e=e.g,Ra(t),Br(e,Y))},mc),yp=ji(Xd,function(e,t,i){if((t=Vi(Wt,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&(He(r,n,5),r=r.g,Ra(o),Br(r,Y))}},mc),_c=ji(Xd,function(e,t,i){if((t=Vi(Wt,t))!=null&&t.length){He(e,i,2),Hi(e.g,4*t.length);for(let r=0;r<t.length;r++)i=e.g,Ra(t[r]),Br(i,Y)}},mc),Jt=Me(function(e,t,i){return e.h===0&&(Ie(t,i,ic(e.g,Pa)),!0)},Vd,Bd),wc=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=ic(e.g,Pa))===0?void 0:e),!0)},Vd,Bd),_p=Me(function(e,t,i){return e.h===0&&(Ie(t,i,ic(e.g,Oa)),!0)},function(e,t,i){if((t=ep(t))!=null&&(typeof t=="string"&&Td(t),t!=null))switch(He(e,i,0),typeof t){case"number":e=e.g,fi(t),Ni(e,Y,ue);break;case"bigint":i=BigInt.asUintN(64,t),i=new cc(Number(i&BigInt(4294967295)),Number(i>>BigInt(32))),Ni(e.g,i.h,i.g);break;default:i=Td(t),Ni(e.g,i.h,i.g)}},ft()),de=Me(function(e,t,i){return e.h===0&&(Ie(t,i,Yt(e.g)),!0)},jd,pc),Pn=ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,Yt,t):t.push(Yt(e.g)),!0)},function(e,t,i){if((t=Vi(Di,t))!=null&&t.length){i=uc(e,i);for(let r=0;r<t.length;r++)Ln(e.g,t[r]);dc(e,i)}},pc),zi=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=Yt(e.g))===0?void 0:e),!0)},jd,pc),ne=Me(function(e,t,i){return e.h===0&&(Ie(t,i,rc(e.g)),!0)},zd,Id),Gi=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=rc(e.g))===!1?void 0:e),!0)},zd,Id),Se=ji(function(e,t,i){return e.h===2&&(e=ac(e),$i(t,0|t[L],i,!1).push(e),!0)},function(e,t,i){if((t=Vi(Oi,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&Tn(r,n,F2(o))}},fc),Qt=Me(function(e,t,i){return e.h===2&&(Ie(t,i,(e=ac(e))===""?void 0:e),!0)},Gd,fc),W=Me(function(e,t,i){return e.h===2&&(Ie(t,i,ac(e)),!0)},Gd,fc),we=function(e,t,i=hc){return new qi(e,t,i)}(function(e,t,i,r,n){return e.h===2&&(r=Xt(void 0,r,!0),$i(t,0|t[L],i,!0).push(r),Fr(e,r,n),!0)},function(e,t,i,r,n){if(Array.isArray(t))for(let o=0;o<t.length;o++)Zd(e,t[o],i,r,n)}),X=In(function(e,t,i,r,n,o){return e.h===2&&(yd(t,0|t[L],o,i),Fr(e,t=Qa(t,r,i),n),!0)},Zd),Kd=Me(function(e,t,i){return e.h===2&&(Ie(t,i,Ld(e)),!0)},Wd,Dd),wp=ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,Dt,t):t.push(Dt(e.g)),!0)},function(e,t,i){if((t=Vi(nd,t))!=null)for(let s=0;s<t.length;s++){var r=e,n=i,o=t[s];o!=null&&(He(r,n,0),Hi(r.g,o))}},Fd),Cp=Me(function(e,t,i){return e.h===0&&(Ie(t,i,(e=Dt(e.g))===0?void 0:e),!0)},function(e,t,i){(t=nd(t))!=null&&t!=null&&(He(e,i,0),Hi(e.g,t))},Fd),Ue=Me(function(e,t,i){return e.h===0&&(Ie(t,i,Yt(e.g)),!0)},function(e,t,i){(t=Di(t))!=null&&(t=parseInt(t,10),He(e,i,0),Ln(e.g,t))},Rd);class Ep{constructor(t,i){this.h=t,this.g=i,this.l=V,this.m=I,this.defaultValue=void 0}register(){cn(this)}}function pt(e,t){return new Ep(e,t)}function ei(e,t){return(i,r)=>{if(Sn.length){const o=Sn.pop();o.o(r),sc(o.g,i,r),i=o}else i=new class{constructor(o,s){if(Ad.length){const a=Ad.pop();sc(a,o,s),o=a}else o=new class{constructor(a,c){this.h=null,this.m=!1,this.g=this.l=this.j=0,sc(this,a,c)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.aa=!1}}(o,s);this.g=o,this.l=this.g.g,this.h=this.m=-1,this.o(s)}o({fa:o=!1}={}){this.fa=o}}(i,r);try{const o=new e,s=o.u;yc(t)(s,i);var n=o}finally{i.g.clear(),i.m=-1,i.h=-1,Sn.length<100&&Sn.push(i)}return n}}function $n(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const s=this.g;return this.g=[],s}}}};qd(this.u,t,vi(Fn,Rn,On,e)),Ui(t,t.g.end());const i=new Uint8Array(t.h),r=t.l,n=r.length;let o=0;for(let s=0;s<n;s++){const a=r[s];i.set(a,o),o+=a.length}return t.l=[i],i}}var Yd=class extends k{constructor(e){super(e)}},Jd=[0,Qt,Me(function(e,t,i){return e.h===2&&(Ie(t,i,(e=Ld(e))===hi()?void 0:e),!0)},function(e,t,i){if(t!=null){if(t instanceof k){const r=t.Oa;return void(r&&(t=r(t),t!=null&&Tn(e,i,tc(t).buffer)))}if(Array.isArray(t))return}Wd(e,t,i)},Dd)];let Cc,Qd=globalThis.trustedTypes;function eh(e){Cc===void 0&&(Cc=function(){let i=null;if(!Qd)return i;try{const r=n=>n;i=Qd.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch(r){}return i}());var t=Cc;return new class{constructor(i){this.g=i}toString(){return this.g+""}}(t?t.createScriptURL(e):e)}function xp(e,...t){if(t.length===0)return eh(e[0]);let i=e[0];for(let r=0;r<t.length;r++)i+=encodeURIComponent(t[r])+e[r+1];return eh(i)}var th=[0,de,Ue,ne,-1,Pn,Ue,-1],kp=class extends k{constructor(e){super(e)}},ih=[0,ne,W,ne,Ue,-1,ji(function(e,t,i){return(e.h===0||e.h===2)&&(t=$i(t,0|t[L],i,!1),e.h==2?An(e,hp,t):t.push(Yt(e.g)),!0)},function(e,t,i){if((t=Vi(Di,t))!=null&&t.length){i=uc(e,i);for(let r=0;r<t.length;r++)Ln(e.g,t[r]);dc(e,i)}},Rd),W,-1,[0,ne,-1],Ue,ne,-1],rh=[0,W,-2],nh=class extends k{constructor(e){super(e)}},oh=[0],sh=[0,de,ne,1,ne,-3],qe=class extends k{constructor(e){super(e,2)}},_e={};_e[336783863]=[0,W,ne,-1,de,[0,[1,2,3,4,5,6,7,8,9],X,oh,X,ih,X,rh,X,sh,X,th,X,[0,W,-2],X,[0,W,Ue],X,[0,Ue,W,-1],X,[0,Ue,-1]],[0,W],ne,[0,[1,3],[2,4],X,[0,Pn],-1,X,[0,Se],-1,we,[0,W,-1]],W];var ah=[0,wc,-1,Gi,-3,wc,Pn,Qt,zi,wc,-1,Gi,zi,Gi,-2,Qt];function Ve(e,t){Xa(e,2,Ri(t),"")}function ee(e,t){Cn(e,3,t)}function q(e,t){Cn(e,4,t)}var Fe=class extends k{constructor(e){super(e,500)}o(e){return I(this,0,7,e)}},Dr=[-1,{}],ch=[0,W,1,Dr],lh=[0,W,Se,Dr];function je(e,t){En(e,1,Fe,t)}function ie(e,t){Cn(e,10,t)}function z(e,t){Cn(e,15,t)}var Pe=class extends k{constructor(e){super(e,500)}o(e){return I(this,0,1001,e)}},uh=[-500,we,[-500,Qt,-1,Se,-3,[-2,_e,ne],we,Jd,zi,-1,ch,lh,we,[0,Qt,Gi],Qt,ah,zi,Se,987,Se],4,we,[-500,W,-1,[-1,{}],998,W],we,[-500,W,Se,-1,[-2,{},ne],997,Se,-1],zi,we,[-500,W,Se,Dr,998,Se],Se,zi,ch,lh,we,[0,Qt,-1,Dr],Se,-2,ah,Qt,-1,Gi,[0,Gi,Cp],978,Dr,we,Jd];Pe.prototype.g=$n(uh);var Ap=ei(Pe,uh),Sp=class extends k{constructor(e){super(e)}},dh=class extends k{constructor(e){super(e)}g(){return Ft(this,Sp,1)}},hh=[0,we,[0,de,ye,W,-1]],Nn=ei(dh,hh),Lp=class extends k{constructor(e){super(e)}},Tp=class extends k{constructor(e){super(e)}},Ec=class extends k{constructor(e){super(e)}h(){return V(this,Lp,2)}g(){return Ft(this,Tp,5)}},fh=ei(class extends k{constructor(e){super(e)}},[0,Se,Pn,_c,[0,Ue,[0,de,-3],[0,ye,-3],[0,de,-1,[0,we,[0,de,-2]]],we,[0,ye,-1,W,ye]],W,-1,Jt,we,[0,de,ye],Se,Jt]),ph=class extends k{constructor(e){super(e)}},Zi=ei(class extends k{constructor(e){super(e)}},[0,we,[0,ye,-4]]),mh=class extends k{constructor(e){super(e)}},Rr=ei(class extends k{constructor(e){super(e)}},[0,we,[0,ye,-4]]),Mp=class extends k{constructor(e){super(e)}},Ip=[0,de,-1,_c,Ue],gh=class extends k{constructor(e){super(e)}};gh.prototype.g=$n([0,ye,-4,Jt]);var Fp=class extends k{constructor(e){super(e)}},Bp=ei(class extends k{constructor(e){super(e)}},[0,we,[0,1,de,W,hh],Jt]),vh=class extends k{constructor(e){super(e)}},Dp=class extends k{constructor(e){super(e)}ma(){const e=vd(this);return e==null?hi():e}},Rp=class extends k{constructor(e){super(e)}},bh=[1,2],Op=ei(class extends k{constructor(e){super(e)}},[0,we,[0,bh,X,[0,_c],X,[0,Kd],de,W],Jt]),xc=class extends k{constructor(e){super(e)}},yh=[0,W,de,ye,Se,-1],_h=class extends k{constructor(e){super(e)}},Pp=[0,ne,-1],wh=class extends k{constructor(e){super(e)}},Hn=[1,2,3,4,5],Un=class extends k{constructor(e){super(e)}g(){return vd(this)!=null}h(){return tt(this,2)!=null}},oe=class extends k{constructor(e){super(e)}g(){var e;return(e=rd(Pi(this,2)))!=null?e:!1}},Ch=[0,Kd,W,[0,de,Jt,-1],[0,_p,Jt]],pe=[0,Ch,ne,[0,Hn,X,sh,X,ih,X,th,X,oh,X,rh],Ue],qn=class extends k{constructor(e){super(e)}},kc=[0,pe,ye,-1,de],$p=pt(502141897,qn);_e[502141897]=kc;var Np=ei(class extends k{constructor(e){super(e)}},[0,[0,Ue,-1,yp,wp],Ip]),Eh=class extends k{constructor(e){super(e)}},xh=class extends k{constructor(e){super(e)}},Ac=[0,pe,ye,[0,pe],ne],kh=[0,pe,kc,Ac,ye,[0,[0,Ch]]],Hp=pt(508968150,xh);_e[508968150]=kh,_e[508968149]=Ac;var Ah=class extends k{constructor(e){super(e)}},Up=pt(513916220,Ah);_e[513916220]=[0,pe,kh,de];var Wi=class extends k{constructor(e){super(e)}h(){return V(this,xc,2)}g(){Q(this,2)}},Sh=[0,pe,yh];_e[478825465]=Sh;var qp=class extends k{constructor(e){super(e)}},Lh=class extends k{constructor(e){super(e)}},Sc=class extends k{constructor(e){super(e)}},Lc=class extends k{constructor(e){super(e)}},Th=class extends k{constructor(e){super(e)}},Mh=[0,pe,[0,pe],Sh,-1],Ih=[0,pe,ye,de],Tc=[0,pe,ye],Fh=[0,pe,Ih,Tc,ye],Vp=pt(479097054,Th);_e[479097054]=[0,pe,Fh,Mh],_e[463370452]=Mh,_e[464864288]=Ih;var jp=pt(462713202,Lc);_e[462713202]=Fh,_e[474472470]=Tc;var zp=class extends k{constructor(e){super(e)}},Bh=class extends k{constructor(e){super(e)}},Dh=class extends k{constructor(e){super(e)}},Rh=class extends k{constructor(e){super(e)}},Mc=[0,pe,ye,-1,de],Ic=[0,pe,ye,ne];Rh.prototype.g=$n([0,pe,Tc,[0,pe],kc,Ac,Mc,Ic]);var Oh=class extends k{constructor(e){super(e)}},Gp=pt(456383383,Oh);_e[456383383]=[0,pe,yh];var Ph=class extends k{constructor(e){super(e)}},Zp=pt(476348187,Ph);_e[476348187]=[0,pe,Pp];var $h=class extends k{constructor(e){super(e)}},Nh=class extends k{constructor(e){super(e)}},Hh=[0,Ue,-1],Wp=pt(458105876,class extends k{constructor(e){super(e)}g(){var e=this.u;const t=0|e[L],i=2&t;return e=function(r,n,o){var s=Nh;const a=2&n;let c=!1;if(o==null){if(a)return pd();o=[]}else if(o.constructor===bt){if((2&o.M)==0||a)return o;o=o.da()}else Array.isArray(o)?c=!!(2&(0|o[L])):o=[];if(a){if(!o.length)return pd();c||(c=!0,Fi(o))}else c&&(c=!1,o=bd(o));return c||(64&(0|o[L])?o[L]&=-33:32&n&&un(o,32)),ce(r,n,2,s=new bt(o,s,tp,void 0)),s}(e,t,Mt(e,t,2)),!i&&Nh&&(e.pa=!0),e}});_e[458105876]=[0,Hh,bp,[!0,Jt,[0,W,-1,Se]]];var Fc=class extends k{constructor(e){super(e)}},Uh=pt(458105758,Fc);_e[458105758]=[0,pe,W,Hh];var qh=class extends k{constructor(e){super(e)}},Xp=pt(443442058,qh);_e[443442058]=[0,pe,W,de,ye,Se,-1,ne,ye],_e[514774813]=Mc;var Vh=class extends k{constructor(e){super(e)}},Kp=pt(516587230,Vh);function Bc(e,t){return t=t?t.clone():new xc,e.displayNamesLocale!==void 0?Q(t,1,Ri(e.displayNamesLocale)):e.displayNamesLocale===void 0&&Q(t,1),e.maxResults!==void 0?yt(t,2,e.maxResults):"maxResults"in e&&Q(t,2),e.scoreThreshold!==void 0?A(t,3,e.scoreThreshold):"scoreThreshold"in e&&Q(t,3),e.categoryAllowlist!==void 0?xn(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&Q(t,4),e.categoryDenylist!==void 0?xn(t,5,e.categoryDenylist):"categoryDenylist"in e&&Q(t,5),t}function Dc(e,t=-1,i=""){return{categories:e.map(r=>{var n,o,s,a,c,l,d;return{index:(o=(n=et(r,1))!=null?n:0)!=null?o:-1,score:(s=fe(r,2))!=null?s:0,categoryName:(c=(a=tt(r,3))!=null?a:"")!=null?c:"",displayName:(d=(l=tt(r,4))!=null?l:"")!=null?d:""}}),headIndex:t,headName:i}}function jh(e){var s,a,c,l,d,u,h,f,p,m,v,g,b;var t=mi(e,3,Wt,pi()),i=mi(e,2,Di,pi()),r=mi(e,1,Oi,pi()),n=mi(e,9,Oi,pi());const o={categories:[],keypoints:[]};for(let _=0;_<t.length;_++)o.categories.push({score:t[_],index:(s=i[_])!=null?s:-1,categoryName:(a=r[_])!=null?a:"",displayName:(c=n[_])!=null?c:""});if((t=(l=V(e,Ec,4))==null?void 0:l.h())&&(o.boundingBox={originX:(d=et(t,1))!=null?d:0,originY:(u=et(t,2))!=null?u:0,width:(h=et(t,3))!=null?h:0,height:(f=et(t,4))!=null?f:0,angle:0}),(p=V(e,Ec,4))==null?void 0:p.g().length)for(const _ of V(e,Ec,4).g())o.keypoints.push({x:(m=wn(_,1))!=null?m:0,y:(v=wn(_,2))!=null?v:0,score:(g=wn(_,4))!=null?g:0,label:(b=tt(_,3))!=null?b:""});return o}function Vn(e){var i,r,n,o;const t=[];for(const s of Ft(e,mh,1))t.push({x:(i=fe(s,1))!=null?i:0,y:(r=fe(s,2))!=null?r:0,z:(n=fe(s,3))!=null?n:0,visibility:(o=fe(s,4))!=null?o:0});return t}function Or(e){var i,r,n,o;const t=[];for(const s of Ft(e,ph,1))t.push({x:(i=fe(s,1))!=null?i:0,y:(r=fe(s,2))!=null?r:0,z:(n=fe(s,3))!=null?n:0,visibility:(o=fe(s,4))!=null?o:0});return t}function zh(e){return Array.from(e,t=>t>127?t-256:t)}function Gh(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let i=0,r=0,n=0;for(let o=0;o<e.length;o++)i+=e[o]*t[o],r+=e[o]*e[o],n+=t[o]*t[o];if(r<=0||n<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return i/Math.sqrt(r*n)}let jn;_e[516587230]=[0,pe,Mc,Ic,ye],_e[518928384]=Ic;const Yp=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);function Zh(){return S(this,null,function*(){if(jn===void 0)try{yield WebAssembly.instantiate(Yp),jn=!0}catch(e){jn=!1}return jn})}function Pr(i){return S(this,arguments,function*(e,t=xp``){const r=(yield Zh())?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${r}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}})}var bi=class{};function Wh(){var e=navigator;return typeof OffscreenCanvas!="undefined"&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}function Xh(e){return S(this,null,function*(){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((i,r)=>{t.addEventListener("load",()=>{i()},!1),t.addEventListener("error",n=>{r(n)},!1),document.body.appendChild(t)})}importScripts(e.toString())})}function Kh(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function T(e,t,i){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),i(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function Yh(e,t,i){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(i?e.i._bindTextureToStream(i):e.i._bindTextureToCanvas(),!(i=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1);const[r,n]=Kh(t);return!e.l||r===e.i.canvas.width&&n===e.i.canvas.height||(e.i.canvas.width=r,e.i.canvas.height=n),[r,n]}function Jh(e,t,i){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(t.length);for(let n=0;n<t.length;n++)r[n]=e.i.stringToNewUTF8(t[n]);t=e.i._malloc(4*r.length),e.i.HEAPU32.set(r,t>>2),i(t);for(const n of r)e.i._free(n);e.i._free(t)}function _t(e,t,i){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=i}function ti(e,t,i){let r=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(n,o,s)=>{o?(i(r,s),r=[]):r.push(n)}}bi.forVisionTasks=function(e){return Pr("vision",e)},bi.forTextTasks=function(e){return Pr("text",e)},bi.forGenAiExperimentalTasks=function(e){return Pr("genai_experimental",e)},bi.forGenAiTasks=function(e){return Pr("genai",e)},bi.forAudioTasks=function(e){return Pr("audio",e)},bi.isSimdSupported=function(){return Zh()};function Jp(e,t,i,r){return S(this,null,function*(){return e=yield((n,o,s,a,c)=>S(this,null,function*(){if(o&&(yield Xh(o)),!self.ModuleFactory||s&&(yield Xh(s),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&c&&((o=self.Module).locateFile=c.locateFile,c.mainScriptUrlOrBlob&&(o.mainScriptUrlOrBlob=c.mainScriptUrlOrBlob)),c=yield self.ModuleFactory(self.Module||c),self.ModuleFactory=self.Module=void 0,new n(c,a)}))(e,i.wasmLoaderPath,i.assetLoaderPath,t,{locateFile:n=>n.endsWith(".wasm")?i.wasmBinaryPath.toString():i.assetBinaryPath&&n.endsWith(".data")?i.assetBinaryPath.toString():n}),yield e.o(r),e})}function Rc(e,t){const i=V(e.baseOptions,Un,1)||new Un;typeof t=="string"?(Q(i,2,Ri(t)),Q(i,1)):t instanceof Uint8Array&&(Q(i,1,Fa(t,!1)),Q(i,2)),I(e.baseOptions,0,1,i)}function Qh(e){try{const t=e.G.length;if(t===1)throw Error(e.G[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.G.map(i=>i.message).join(", "))}finally{e.G=[]}}function w(e,t){e.B=Math.max(e.B,t)}function zn(e,t){e.A=new Fe,Ve(e.A,"PassThroughCalculator"),ee(e.A,"free_memory"),q(e.A,"free_memory_unused_out"),ie(t,"free_memory"),je(t,e.A)}function Xi(e,t){ee(e.A,t),q(e.A,t+"_unused_out")}function Gn(e){e.g.addBoolToStream(!0,"free_memory",e.B)}var Oc=class{constructor(e){this.g=e,this.G=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var i,r,n,o,s,a;if(t){const c=e.baseOptions||{};if((i=e.baseOptions)!=null&&i.modelAssetBuffer&&((r=e.baseOptions)!=null&&r.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((n=V(this.baseOptions,Un,1))!=null&&n.g()||(o=V(this.baseOptions,Un,1))!=null&&o.h()||(s=e.baseOptions)!=null&&s.modelAssetBuffer||(a=e.baseOptions)!=null&&a.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(l,d){let u=V(l.baseOptions,wh,3);if(!u){var h=u=new wh,f=new nh;Mr(h,4,Hn,f)}"delegate"in d&&(d.delegate==="GPU"?(d=u,h=new kp,Mr(d,2,Hn,h)):(d=u,h=new nh,Mr(d,4,Hn,h))),I(l.baseOptions,0,3,u)}(this,c),c.modelAssetPath)return fetch(c.modelAssetPath.toString()).then(l=>{if(l.ok)return l.arrayBuffer();throw Error(`Failed to fetch model: ${c.modelAssetPath} (${l.status})`)}).then(l=>{try{this.g.i.FS_unlink("/model.dat")}catch(d){}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(l),!0,!1,!1),Rc(this,"/model.dat"),this.m(),this.J()});if(c.modelAssetBuffer instanceof Uint8Array)Rc(this,c.modelAssetBuffer);else if(c.modelAssetBuffer)return function(l){return S(this,null,function*(){const d=[];for(var u=0;;){const{done:h,value:f}=yield l.read();if(h)break;d.push(f),u+=f.length}if(d.length===0)return new Uint8Array(0);if(d.length===1)return d[0];l=new Uint8Array(u),u=0;for(const h of d)l.set(h,u),u+=h.length;return l})}(c.modelAssetBuffer).then(l=>{Rc(this,l),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ca(){let e;if(this.g.ca(t=>{e=Ap(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((i,r)=>{this.G.push(Error(r))}),this.g.Ha(),this.g.setGraph(e,t),this.A=void 0,Qh(this)}finishProcessing(){this.g.finishProcessing(),Qh(this)}close(){this.A=void 0,this.g.closeGraph()}};function Be(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Oc.prototype.close=Oc.prototype.close;class Qp{constructor(t,i,r,n){this.g=t,this.h=i,this.m=r,this.l=n}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function e0(e,t,i){const r=e.g;if(i=Be(r.createShader(i),"Failed to create WebGL shader"),r.shaderSource(i,t),r.compileShader(i),!r.getShaderParameter(i,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(i)}`);return r.attachShader(e.h,i),i}function t0(e,t){const i=e.g,r=Be(i.createVertexArray(),"Failed to create vertex array");i.bindVertexArray(r);const n=Be(i.createBuffer(),"Failed to create buffer");i.bindBuffer(i.ARRAY_BUFFER,n),i.enableVertexAttribArray(e.P),i.vertexAttribPointer(e.P,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),i.STATIC_DRAW);const o=Be(i.createBuffer(),"Failed to create buffer");return i.bindBuffer(i.ARRAY_BUFFER,o),i.enableVertexAttribArray(e.J),i.vertexAttribPointer(e.J,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),i.STATIC_DRAW),i.bindBuffer(i.ARRAY_BUFFER,null),i.bindVertexArray(null),new Qp(i,r,n,o)}function Pc(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function $r(e,t,i,r){return Pc(e,t),e.h||(e.m(),e.C()),i?(e.s||(e.s=t0(e,!0)),i=e.s):(e.v||(e.v=t0(e,!1)),i=e.v),t.useProgram(e.h),i.bind(),e.l(),e=r(),i.g.bindVertexArray(null),e}function ii(e,t,i){return Pc(e,t),e=Be(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,i!=null?i:t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,i!=null?i:t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function Zn(e,t,i){Pc(e,t),e.A||(e.A=Be(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.A),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0)}function $c(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Ki=class{G(){return`
|
|
3104
3104
|
precision mediump float;
|
|
3105
3105
|
varying vec2 vTex;
|
|
3106
3106
|
uniform sampler2D inputTexture;
|