From 1eec64b45ad6c005a7503fd02ea60bcc27f32f8b Mon Sep 17 00:00:00 2001 From: corsacca Date: Mon, 27 Apr 2026 12:38:19 +0100 Subject: [PATCH] switch feedback widget to remote bundle, hide by default load feedback-web-component.iife.js from support.gospelambition.org rename tag to and update isCustomElement set showByDefault: false so widget only shows with ?feedback=true delete local public/assets/feedback-widget/ files --- .gitignore | 3 +- app/components/FeedbackWidget.vue | 3 +- nuxt.config.ts | 7 ++- .../feedback-widget/feedback-widget-map.css | 45 ------------------- .../feedback-widget/feedback-widget-slot.css | 32 ------------- .../feedback-widget/feedback-widget.iife.js | 28 ------------ 6 files changed, 7 insertions(+), 111 deletions(-) delete mode 100644 public/assets/feedback-widget/feedback-widget-map.css delete mode 100644 public/assets/feedback-widget/feedback-widget-slot.css delete mode 100644 public/assets/feedback-widget/feedback-widget.iife.js diff --git a/.gitignore b/.gitignore index c3fda6c7..b82b0f99 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ logs !.env.example plans -.claude \ No newline at end of file +.claude +.vscode diff --git a/app/components/FeedbackWidget.vue b/app/components/FeedbackWidget.vue index f832e4c5..d184be9d 100644 --- a/app/components/FeedbackWidget.vue +++ b/app/components/FeedbackWidget.vue @@ -1,6 +1,6 @@ @@ -11,6 +11,7 @@ const profileConfig = JSON.stringify({ profile: 'chat-bubble', apiBase: pub.feedbackApiBase, enabled: true, + showByDefault: false, instanceId: 'fb-doxa-life-parent', projectId: pub.feedbackProjectId }) diff --git a/nuxt.config.ts b/nuxt.config.ts index c8be6edc..41eef3f6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -57,11 +57,10 @@ export default defineNuxtConfig({ link: [ { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon/cropped-Favicon-light-doxa-01-32x32.png' }, { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/favicon/cropped-Favicon-light-doxa-01-192x192.png' }, - { rel: 'apple-touch-icon', href: '/favicon/cropped-Favicon-light-doxa-01-180x180.png' }, - { rel: 'stylesheet', href: '/assets/feedback-widget/feedback-widget-slot.css' } + { rel: 'apple-touch-icon', href: '/favicon/cropped-Favicon-light-doxa-01-180x180.png' } ], script: [ - { src: '/assets/feedback-widget/feedback-widget.iife.js', defer: true } + { src: 'https://support.gospelambition.org/js/feedback-web-component.iife.js', defer: true } ], meta: [ { name: 'msapplication-TileImage', content: '/favicon/cropped-Favicon-light-doxa-01-270x270.png' } @@ -155,7 +154,7 @@ export default defineNuxtConfig({ vue: { compilerOptions: { - isCustomElement: (tag: string) => ['feedback-widget'].includes(tag) + isCustomElement: (tag: string) => ['feedback-web-component'].includes(tag) } }, diff --git a/public/assets/feedback-widget/feedback-widget-map.css b/public/assets/feedback-widget/feedback-widget-map.css deleted file mode 100644 index ee646ce7..00000000 --- a/public/assets/feedback-widget/feedback-widget-map.css +++ /dev/null @@ -1,45 +0,0 @@ -/* - * feedback-widget-map.css — theme overrides for the - * when it's embedded INSIDE a .doxa-map-slot container. - * - * The widget's own slot.css defaults the wrapper to `position: fixed` - * (bottom-right of the viewport). When nested in a map, we want it - * anchored to the map card instead, so it rides with the map. - * - * Conventions: - * .feedback-widget-slot — required base class (ships with widget) - * .feedback-widget-slot--{page} — per-page modifier (adopt / pray / home). - * Add per-page overrides here if a map - * needs different placement (e.g. bottom-left). - */ - -/* Widget slot → anchored to the MAP card's bottom-right (not viewport). - * - * .doxa-map-slot is already position:relative (see map-app-slot.css), so - * the widget's wrapper — when inside that slot — is absolutely positioned - * within the map card. The max z-index keeps it above and any - * Mapbox controls. - * - * NOTE: .doxa-map-slot has overflow:hidden. When the bubble is closed (the - * 52x52 circle), it fits comfortably at right:16 bottom:16. When the user - * opens the chat panel (360px wide), the panel expands upward from the - * bubble; if the map is tall enough (>=780px desktop) the panel fits. On - * very narrow mobile (aspect-ratio 1/2), the panel may get clipped at the - * top. If that becomes a problem, we can use :has() to unset overflow: - * .doxa-map-slot:has(.feedback-widget-slot) { overflow: visible } - */ -.doxa-map-slot .feedback-widget-slot { - position: absolute; - right: 16px; - bottom: 16px; - left: auto; - top: auto; - z-index: 2147483647 !important; -} - -/* Per-instance hooks — empty on purpose. Add page-specific placement here. - Example: move the home-page widget to the bottom-left: - .feedback-widget-slot--home { right: auto; left: 16px; } */ -.feedback-widget-slot--home { /* inherits default; customise here if needed */ } -.feedback-widget-slot--pray { /* inherits default */ } -.feedback-widget-slot--adopt { /* inherits default */ } diff --git a/public/assets/feedback-widget/feedback-widget-slot.css b/public/assets/feedback-widget/feedback-widget-slot.css deleted file mode 100644 index 476314e1..00000000 --- a/public/assets/feedback-widget/feedback-widget-slot.css +++ /dev/null @@ -1,32 +0,0 @@ -/* - * feedback-widget-slot.css — host-page wrapper CSS. - * - * The itself is position:relative inside its Shadow DOM; the - * SLOT wrapper owns where on the page the widget appears. Default position is - * bottom-right floating, but any host can override by re-declaring the class - * or by inline-styling the wrapper element. - * - * Drop-in (floating chat bubble): - * - * - * Move it to the bottom-left: - * - */ - -.feedback-widget-slot { - position: fixed; - right: 20px; - bottom: 20px; - z-index: 2147483000; -} - -/* Variant: inline in document flow (for future inline-form profile). */ -.feedback-widget-slot.inline { - position: static; - width: 100%; - max-width: 480px; -} diff --git a/public/assets/feedback-widget/feedback-widget.iife.js b/public/assets/feedback-widget/feedback-widget.iife.js deleted file mode 100644 index 96ec4d25..00000000 --- a/public/assets/feedback-widget/feedback-widget.iife.js +++ /dev/null @@ -1,28 +0,0 @@ -var FeedbackWidget=function(){"use strict"; -/** - * @vue/shared v3.5.32 - * (c) 2018-present Yuxi (Evan) You and Vue contributors - * @license MIT - **/function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const t={},n=[],o=()=>{},s=()=>!1,r=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),l=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,u=(e,t)=>c.call(e,t),f=Array.isArray,d=e=>"[object Map]"===w(e),p=e=>"[object Set]"===w(e),h=e=>"[object Date]"===w(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,m=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||g(e))&&g(e.then)&&g(e.catch),y=Object.prototype.toString,w=e=>y.call(e),x=e=>"[object Object]"===w(e),k=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-\w/g,E=C(e=>e.replace(A,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,T=C(e=>e.replace(j,"-$1").toLowerCase()),O=C(e=>e.charAt(0).toUpperCase()+e.slice(1)),P=C(e=>e?`on${O(e)}`:""),M=(e,t)=>!Object.is(e,t),L=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t},I=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let $;const N=()=>$||($="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function V(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(U);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function z(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;nK(e,t))}const Z=e=>!(!e||!0!==e.__v_isRef),G=e=>v(e)?e:null==e?"":f(e)||b(e)&&(e.toString===y||!g(e.toString))?Z(e)?G(e.value):JSON.stringify(e,Y,2):String(e),Y=(e,t)=>Z(t)?Y(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[X(t,o)+" =>"]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>X(e))}:m(t)?X(t):!b(t)||f(t)||x(t)?t:String(t),X=(e,t="")=>{var n;return m(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}; -/** - * @vue/reactivity v3.5.32 - * (c) 2018-present Yuxi (Evan) You and Vue contributors - * @license MIT - **/ -let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Q,!e&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e0&&0===--this._on&&(Q=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t0)return;if(le){let e=le;for(le=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let n=ie;for(ie=void 0;n;){const o=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=o}}if(e)throw e}function de(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pe(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),ve(o),me(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function he(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ge(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ke)return;if(e.globalVersion=ke,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!he(e)))return;e.flags|=2;const t=e.dep,n=ee,o=be;ee=e,be=!0;try{de(e);const n=e.fn(e._value);(0===t.version||M(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(s){throw t.version++,s}finally{ee=n,be=o,pe(e),e.flags&=-3}}function ve(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ve(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function me(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let be=!0;const _e=[];function ye(){_e.push(be),be=!1}function we(){const e=_e.pop();be=void 0===e||e}function xe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ee;ee=void 0;try{t()}finally{ee=e}}}let ke=0;class Se{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ce{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ee||!be||ee===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ee)t=this.activeLink=new Se(ee,this),ee.deps?(t.prevDep=ee.depsTail,ee.depsTail.nextDep=t,ee.depsTail=t):ee.deps=ee.depsTail=t,Ae(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ee.depsTail,t.nextDep=void 0,ee.depsTail.nextDep=t,ee.depsTail=t,ee.deps===t&&(ee.deps=e)}return t}trigger(e){this.version++,ke++,this.notify(e)}notify(e){ue();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{fe()}}}function Ae(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ae(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ee=new WeakMap,je=Symbol(""),Te=Symbol(""),Oe=Symbol("");function Pe(e,t,n){if(be&&ee){let t=Ee.get(e);t||Ee.set(e,t=new Map);let o=t.get(n);o||(t.set(n,o=new Ce),o.map=t,o.key=n),o.track()}}function Me(e,t,n,o,s,r){const i=Ee.get(e);if(!i)return void ke++;const l=e=>{e&&e.trigger()};if(ue(),"clear"===t)i.forEach(l);else{const s=f(e),r=s&&k(n);if(s&&"length"===n){const e=Number(o);i.forEach((t,n)=>{("length"===n||n===Oe||!m(n)&&n>=e)&&l(t)})}else switch((void 0!==n||i.has(void 0))&&l(i.get(n)),r&&l(i.get(Oe)),t){case"add":s?r&&l(i.get("length")):(l(i.get(je)),d(e)&&l(i.get(Te)));break;case"delete":s||(l(i.get(je)),d(e)&&l(i.get(Te)));break;case"set":d(e)&&l(i.get(je))}}fe()}function Le(e){const t=_t(e);return t===e?t:(Pe(t,0,Oe),mt(e)?t:t.map(wt))}function Fe(e){return Pe(e=_t(e),0,Oe),e}function Re(e,t){return vt(e)?xt(gt(e)?wt(t):t):wt(t)}const Ie={__proto__:null,[Symbol.iterator](){return $e(this,Symbol.iterator,e=>Re(this,e))},concat(...e){return Le(this).concat(...e.map(e=>f(e)?Le(e):e))},entries(){return $e(this,"entries",e=>(e[1]=Re(this,e[1]),e))},every(e,t){return Ve(this,"every",e,t,void 0,arguments)},filter(e,t){return Ve(this,"filter",e,t,e=>e.map(e=>Re(this,e)),arguments)},find(e,t){return Ve(this,"find",e,t,e=>Re(this,e),arguments)},findIndex(e,t){return Ve(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ve(this,"findLast",e,t,e=>Re(this,e),arguments)},findLastIndex(e,t){return Ve(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ve(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ue(this,"includes",e)},indexOf(...e){return Ue(this,"indexOf",e)},join(e){return Le(this).join(e)},lastIndexOf(...e){return Ue(this,"lastIndexOf",e)},map(e,t){return Ve(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return De(this,"reduce",e,t)},reduceRight(e,...t){return De(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Ve(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return Le(this).toReversed()},toSorted(e){return Le(this).toSorted(e)},toSpliced(...e){return Le(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return $e(this,"values",e=>Re(this,e))}};function $e(e,t,n){const o=Fe(e),s=o[t]();return o===e||mt(e)||(s._next=s.next,s.next=()=>{const e=s._next();return e.done||(e.value=n(e.value)),e}),s}const Ne=Array.prototype;function Ve(e,t,n,o,s,r){const i=Fe(e),l=i!==e&&!mt(e),a=i[t];if(a!==Ne[t]){const t=a.apply(e,r);return l?wt(t):t}let c=n;i!==e&&(l?c=function(t,o){return n.call(this,Re(e,t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=a.call(i,c,o);return l&&s?s(u):u}function De(e,t,n,o){const s=Fe(e);let r=n,i=!1;s!==e&&(s!==e&&!mt(e)?(i=0===o.length,r=function(t,o,s){return i&&(i=!1,t=Re(e,t)),n.call(this,t,Re(e,o),s,e)}):n.length>3&&(r=function(t,o,s){return n.call(this,t,o,s,e)}));const l=s[t](r,...o);return i?Re(e,l):l}function Ue(e,t,n){const o=_t(e);Pe(o,0,Oe);const s=o[t](...n);return-1!==s&&!1!==s||!bt(n[0])?s:(n[0]=_t(n[0]),o[t](...n))}function Be(e,t,n=[]){ye(),ue();const o=_t(e)[t].apply(e,n);return fe(),we(),o}const qe=e("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(m));function We(e){m(e)||(e=String(e));const t=_t(this);return Pe(t,0,e),t.hasOwnProperty(e)}class He{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(o?s?ct:at:s?lt:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=f(e);if(!o){let e;if(r&&(e=Ie[t]))return e;if("hasOwnProperty"===t)return We}const i=Reflect.get(e,t,kt(e)?e:n);if(m(t)?ze.has(t):qe(t))return i;if(o||Pe(e,0,t),s)return i;if(kt(i)){const e=r&&k(t)?i:i.value;return o&&b(e)?pt(e):e}return b(i)?o?pt(i):ft(i):i}}class Ke extends He{constructor(e=!1){super(!1,e)}set(e,t,n,o){let s=e[t];const r=f(e)&&k(t);if(!this._isShallow){const e=vt(s);if(mt(n)||vt(n)||(s=_t(s),n=_t(n)),!r&&kt(s)&&!kt(n))return e||(s.value=n),!0}const i=r?Number(t)e,Qe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const n={get(n){const o=this.__v_raw,s=_t(o),r=_t(n);e||(M(n,r)&&Pe(s,0,n),Pe(s,0,r));const{has:i}=Qe(s),l=t?Xe:e?xt:wt;return i.call(s,n)?l(o.get(n)):i.call(s,r)?l(o.get(r)):void(o!==s&&o.get(n))},get size(){const t=this.__v_raw;return!e&&Pe(_t(t),0,je),t.size},has(t){const n=this.__v_raw,o=_t(n),s=_t(t);return e||(M(t,s)&&Pe(o,0,t),Pe(o,0,s)),t===s?n.has(t):n.has(t)||n.has(s)},forEach(n,o){const s=this,r=s.__v_raw,i=t?Xe:e?xt:wt;return!e&&Pe(_t(r),0,je),r.forEach((e,t)=>n.call(o,i(e),i(t),s))}};l(n,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){const n=_t(this),o=Qe(n),s=_t(e),r=t||mt(e)||vt(e)?e:s;return o.has.call(n,r)||M(e,r)&&o.has.call(n,e)||M(s,r)&&o.has.call(n,s)||(n.add(r),Me(n,"add",r,r)),this},set(e,n){t||mt(n)||vt(n)||(n=_t(n));const o=_t(this),{has:s,get:r}=Qe(o);let i=s.call(o,e);i||(e=_t(e),i=s.call(o,e));const l=r.call(o,e);return o.set(e,n),i?M(n,l)&&Me(o,"set",e,n):Me(o,"add",e,n),this},delete(e){const t=_t(this),{has:n,get:o}=Qe(t);let s=n.call(t,e);s||(e=_t(e),s=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return s&&Me(t,"delete",e,void 0),r},clear(){const e=_t(this),t=0!==e.size,n=e.clear();return t&&Me(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const s=this.__v_raw,r=_t(s),i=d(r),a="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,u=s[e](...o),f=n?Xe:t?xt:wt;return!t&&Pe(r,0,c?Te:je),l(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[f(e[0]),f(e[1])]:f(e),done:t}}})}}(o,e,t)}),n}function nt(e,t){const n=tt(e,t);return(t,o,s)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(u(n,o)&&o in t?n:t,o,s)}const ot={get:nt(!1,!1)},st={get:nt(!1,!0)},rt={get:nt(!0,!1)},it=new WeakMap,lt=new WeakMap,at=new WeakMap,ct=new WeakMap;function ut(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>w(e).slice(8,-1))(e))}function ft(e){return vt(e)?e:ht(e,!1,Ze,ot,it)}function dt(e){return ht(e,!1,Ye,st,lt)}function pt(e){return ht(e,!0,Ge,rt,at)}function ht(e,t,n,o,s){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=ut(e);if(0===r)return e;const i=s.get(e);if(i)return i;const l=new Proxy(e,2===r?o:n);return s.set(e,l),l}function gt(e){return vt(e)?gt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function bt(e){return!!e&&!!e.__v_raw}function _t(e){const t=e&&e.__v_raw;return t?_t(t):e}function yt(e){return!u(e,"__v_skip")&&Object.isExtensible(e)&&F(e,"__v_skip",!0),e}const wt=e=>b(e)?ft(e):e,xt=e=>b(e)?pt(e):e;function kt(e){return!!e&&!0===e.__v_isRef}function St(e){return function(e,t){if(kt(e))return e;return new Ct(e,t)}(e,!1)}class Ct{constructor(e,t){this.dep=new Ce,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:_t(e),this._value=t?e:wt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||vt(e);M(e=n?e:_t(e),t)&&(this._rawValue=e,this._value=n?e:wt(e),this.dep.trigger())}}function At(e){return kt(e)?e.value:e}const Et={get:(e,t,n)=>"__v_raw"===t?e:At(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return kt(s)&&!kt(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function jt(e){return gt(e)?e:new Proxy(e,Et)}function Tt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Pt(e,n);return t}class Ot{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=m(t)?t:String(t),this._raw=_t(e);let o=!0,s=e;if(!f(e)||m(this._key)||!k(this._key))do{o=!bt(s)||mt(s)}while(o&&(s=s.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=At(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&kt(this._raw[this._key])){const t=this._object[this._key];if(kt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Ee.get(e);return n&&n.get(t)}(this._raw,this._key)}}function Pt(e,t,n){return new Ot(e,t,n)}class Mt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&ee!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Lt(e,t,n=!1){let o,s;g(e)?o=e:(o=e.get,s=e.set);return new Mt(o,s,n)}const Ft={},Rt=new WeakMap;let It;function $t(e,n,s=t){const{immediate:r,deep:i,once:l,scheduler:c,augmentJob:u,call:d}=s,p=e=>i?e:mt(e)||!1===i||0===i?Nt(e,1):Nt(e);let h,v,m,b,_=!1,y=!1;if(kt(e)?(v=()=>e.value,_=mt(e)):gt(e)?(v=()=>p(e),_=!0):f(e)?(y=!0,_=e.some(e=>gt(e)||mt(e)),v=()=>e.map(e=>kt(e)?e.value:gt(e)?p(e):g(e)?d?d(e,2):e():void 0)):v=g(e)?n?d?()=>d(e,2):e:()=>{if(m){ye();try{m()}finally{we()}}const t=It;It=h;try{return d?d(e,3,[b]):e(b)}finally{It=t}}:o,n&&i){const e=v,t=!0===i?1/0:i;v=()=>Nt(e(),t)}const w=oe(),x=()=>{h.stop(),w&&w.active&&a(w.effects,h)};if(l&&n){const e=n;n=(...t)=>{e(...t),x()}}let k=y?new Array(e.length).fill(Ft):Ft;const S=e=>{if(1&h.flags&&(h.dirty||e))if(n){const e=h.run();if(i||_||(y?e.some((e,t)=>M(e,k[t])):M(e,k))){m&&m();const t=It;It=h;try{const t=[e,k===Ft?void 0:y&&k[0]===Ft?[]:k,b];k=e,d?d(n,3,t):n(...t)}finally{It=t}}}else h.run()};return u&&u(S),h=new re(v),h.scheduler=c?()=>c(S,!1):S,b=e=>function(e,t=!1,n=It){if(n){let t=Rt.get(n);t||Rt.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=>{const e=Rt.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Rt.delete(h)}},n?r?S(!0):k=h.run():c?c(S.bind(null,!0),!0):h.run(),x.pause=h.pause.bind(h),x.resume=h.resume.bind(h),x.stop=x,x}function Nt(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,kt(e))Nt(e.value,t,n);else if(f(e))for(let o=0;o{Nt(e,t,n)});else if(x(e)){for(const o in e)Nt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Nt(e[o],t,n)}return e} -/** - * @vue/runtime-core v3.5.32 - * (c) 2018-present Yuxi (Evan) You and Vue contributors - * @license MIT - **/function Vt(e,t,n,o){try{return o?e(...o):e()}catch(s){Ut(s,t,n)}}function Dt(e,t,n,o){if(g(e)){const s=Vt(e,t,n,o);return s&&_(s)&&s.catch(e=>{Ut(e,t,n)}),s}if(f(e)){const s=[];for(let r=0;r=en(n)?Bt.push(e):Bt.splice(function(e){let t=qt+1,n=Bt.length;for(;t>>1,s=Bt[o],r=en(s);ren(e)-en(t));if(zt.length=0,Wt)return void Wt.push(...e);for(Wt=e,Ht=0;Htnull==e.id?2&e.flags?-1:1/0:e.id;function tn(e){try{for(qt=0;qt{o._d&&vs(-1);const s=sn(t);let r;try{r=e(...n)}finally{sn(s),o._d&&vs(1)}return r};return o._n=!0,o._c=!0,o._d=!0,o}function ln(e,n){if(null===nn)return e;const o=Hs(nn),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&g(t)?t.call(o&&o.proxy):t}}const fn=Symbol.for("v-scx");function dn(e,t,n){return pn(e,t,n)}function pn(e,n,s=t){const{immediate:r,deep:i,flush:a,once:c}=s,u=l({},s),f=n&&r||!n&&"post"!==a;let d;if(Bs)if("sync"===a){const e=un(fn);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!f){const e=()=>{};return e.stop=o,e.resume=o,e.pause=o,e}const p=Rs;u.call=(e,t,n)=>Dt(e,p,t,n);let h=!1;"post"===a?u.scheduler=e=>{Qo(e,p&&p.suspense)}:"sync"!==a&&(h=!0,u.scheduler=(e,t)=>{t?e():Gt(e)}),u.augmentJob=e=>{n&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const g=$t(e,n,u);return Bs&&(d?d.push(g):f&&g()),g}function hn(e,t,n){const o=this.proxy,s=v(e)?e.includes(".")?gn(o,e):()=>o[e]:e.bind(o,o);let r;g(t)?r=t:(r=t.handler,n=t);const i=Vs(this),l=pn(s,r.bind(o),n);return i(),l}function gn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;ee.__isTeleport,bn=Symbol("_leaveCb"),_n=Symbol("_enterCb");const yn=[Function,Array],wn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yn,onEnter:yn,onAfterEnter:yn,onEnterCancelled:yn,onBeforeLeave:yn,onLeave:yn,onAfterLeave:yn,onLeaveCancelled:yn,onBeforeAppear:yn,onAppear:yn,onAfterAppear:yn,onAppearCancelled:yn},xn=e=>{const t=e.subTree;return t.component?xn(t.component):t};function kn(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==us){t=n;break}return t}const Sn={name:"BaseTransition",props:wn,setup(e,{slots:t}){const n=Is(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zn(()=>{e.isMounted=!0}),Xn(()=>{e.isUnmounting=!0}),e}();return()=>{const s=t.default&&On(t.default(),!0);if(!s||!s.length)return;const r=kn(s),i=_t(e),{mode:l}=i;if(o.isLeaving)return En(r);const a=jn(r);if(!a)return En(r);let c=An(a,i,o,n,e=>c=e);a.type!==us&&Tn(a,c);let u=n.subTree&&jn(n.subTree);if(u&&u.type!==us&&!ws(u,a)&&xn(n).type!==us){let e=An(u,i,o,n);if(Tn(u,e),"out-in"===l&&a.type!==us)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},En(r);"in-out"===l&&a.type!==us?e.delayLeave=(e,t,n)=>{Cn(o,u)[String(u.key)]=u,e[bn]=()=>{t(),e[bn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function Cn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function An(e,t,n,o,s){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:b,onAfterAppear:_,onAppearCancelled:y}=t,w=String(e.key),x=Cn(n,e),k=(e,t)=>{e&&Dt(e,o,9,t)},S=(e,t)=>{const n=t[1];k(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:i,persisted:l,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[bn]&&t[bn](!0);const s=x[w];s&&ws(e,s)&&s.el[bn]&&s.el[bn](),k(o,[t])},enter(t){if(x[w]===e)return;let o=c,s=u,i=d;if(!n.isMounted){if(!r)return;o=b||c,s=_||u,i=y||d}let l=!1;t[_n]=e=>{l||(l=!0,k(e?i:s,[t]),C.delayedLeave&&C.delayedLeave(),t[_n]=void 0)};const a=t[_n].bind(null,!1);o?S(o,[t,a]):a()},leave(t,o){const s=String(e.key);if(t[_n]&&t[_n](!0),n.isUnmounting)return o();k(p,[t]);let r=!1;t[bn]=n=>{r||(r=!0,o(),k(n?v:g,[t]),t[bn]=void 0,x[s]===e&&delete x[s])};const i=t[bn].bind(null,!1);x[s]=e,h?S(h,[t,i]):i()},clone(e){const r=An(e,t,n,o,s);return s&&s(r),r}};return C}function En(e){if(Un(e))return(e=As(e)).children=null,e}function jn(e){if(!Un(e))return mn(e.type)&&e.children?kn(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&g(n.default))return n.default()}}function Tn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Tn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function On(e,t=!1,n){let o=[],s=0;for(let r=0;r1)for(let r=0;rl({name:e.name},t,{setup:e}))():e}function Mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ln(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Fn=new WeakMap;function Rn(e,n,o,r,i=!1){if(f(e))return void e.forEach((e,t)=>Rn(e,n&&(f(n)?n[t]:n),o,r,i));if(Nn(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&Rn(e,n,o,r.component.subTree));const l=4&r.shapeFlag?Hs(r.component):r.el,c=i?null:l,{i:d,r:p}=e,h=n&&n.r,m=d.refs===t?d.refs={}:d.refs,b=d.setupState,_=_t(b),y=b===t?s:e=>!Ln(m,e)&&u(_,e),w=(e,t)=>!t||!Ln(m,t);if(null!=h&&h!==p)if(In(n),v(h))m[h]=null,y(h)&&(b[h]=null);else if(kt(h)){const e=n;w(0,e.k)&&(h.value=null),e.k&&(m[e.k]=null)}if(g(p))Vt(p,d,12,[c,m]);else{const t=v(p),n=kt(p);if(t||n){const s=()=>{if(e.f){const n=t?y(p)?b[p]:m[p]:w()||!e.k?p.value:m[e.k];if(i)f(n)&&a(n,l);else if(f(n))n.includes(l)||n.push(l);else if(t)m[p]=[l],y(p)&&(b[p]=m[p]);else{const t=[l];w(0,e.k)&&(p.value=t),e.k&&(m[e.k]=t)}}else t?(m[p]=c,y(p)&&(b[p]=c)):n&&(w(0,e.k)&&(p.value=c),e.k&&(m[e.k]=c))};if(c){const t=()=>{s(),Fn.delete(e)};t.id=-1,Fn.set(e,t),Qo(t,o)}else In(e),s()}}}function In(e){const t=Fn.get(e);t&&(t.flags|=8,Fn.delete(e))}const $n=e=>8===e.nodeType;N().requestIdleCallback,N().cancelIdleCallback;const Nn=e=>!!e.type.__asyncLoader;function Vn(e){g(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:s=200,hydrate:r,timeout:i,suspensible:l=!0,onError:a}=e;let c,u=null,f=0;const d=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t((f++,u=null,d())),()=>n(e),f+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return Pn({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(e,t,n){let o=!1;(t.bu||(t.bu=[])).push(()=>o=!0);const s=()=>{o||n()},i=r?()=>{const n=r(s,t=>function(e,t){if($n(e)&&"["===e.data){let n=1,o=e.nextSibling;for(;o;){if(1===o.nodeType){if(!1===t(o))break}else if($n(o))if("]"===o.data){if(0===--n)break}else"["===o.data&&n++;o=o.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:s;c?i():d().then(()=>!t.isUnmounted&&i())},get __asyncResolved(){return c},setup(){const e=Rs;if(Mn(e),c)return()=>Dn(c,e);const t=t=>{u=null,Ut(t,e,13,!o)};if(l&&e.suspense||Bs)return d().then(t=>()=>Dn(t,e)).catch(e=>(t(e),()=>o?Cs(o,{error:e}):null));const r=St(!1),a=St(),f=St(!!s);return s&&setTimeout(()=>{f.value=!1},s),null!=i&&setTimeout(()=>{if(!r.value&&!a.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),a.value=e}},i),d().then(()=>{r.value=!0,e.parent&&Un(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),a.value=e}),()=>r.value&&c?Dn(c,e):a.value&&o?Cs(o,{error:a.value}):n&&!f.value?Dn(n,e):void 0}})}function Dn(e,t){const{ref:n,props:o,children:s,ce:r}=t.vnode,i=Cs(e,o,s);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const Un=e=>e.type.__isKeepAlive;function Bn(e,t){zn(e,"a",t)}function qn(e,t){zn(e,"da",t)}function zn(e,t,n=Rs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Hn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Un(e.parent.vnode)&&Wn(o,t,n,e),e=e.parent}}function Wn(e,t,n,o){const s=Hn(t,e,o,!0);Qn(()=>{a(o[t],s)},n)}function Hn(e,t,n=Rs,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{ye();const s=Vs(n),r=Dt(t,n,e,o);return s(),we(),r});return o?s.unshift(r):s.push(r),r}}const Kn=e=>(t,n=Rs)=>{Bs&&"sp"!==e||Hn(e,(...e)=>t(...e),n)},Jn=Kn("bm"),Zn=Kn("m"),Gn=Kn("bu"),Yn=Kn("u"),Xn=Kn("bum"),Qn=Kn("um"),eo=Kn("sp"),to=Kn("rtg"),no=Kn("rtc");function oo(e,t=Rs){Hn("ec",e,t)}const so=Symbol.for("v-ndc");function ro(e){return v(e)?function(e,t,n=!0,o=!1){const s=nn||Rs;if(s){const n=s.type;{const e=Ks(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}const r=io(s[e]||n[e],t)||io(s.appContext[e],t);return!r&&o?n:r}}("components",e,!1)||e:e||so}function io(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}function lo(e,t,n,o){let s;const r=n,i=f(e);if(i||v(e)){let n=!1,o=!1;i&>(e)&&(n=!mt(e),o=vt(e),e=Fe(e)),s=new Array(e.length);for(let i=0,l=e.length;it(e,n,void 0,r));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,i=n.length;oe?Us(e)?Hs(e):ao(e.parent):null,co=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ao(e.parent),$root:e=>ao(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bo(e),$forceUpdate:e=>e.f||(e.f=()=>{Gt(e.update)}),$nextTick:e=>e.n||(e.n=Zt.bind(e.proxy)),$watch:e=>hn.bind(e)}),uo=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),fo={get({_:e},n){if("__v_skip"===n)return!0;const{ctx:o,setupState:s,data:r,props:i,accessCache:l,type:a,appContext:c}=e;if("$"!==n[0]){const e=l[n];if(void 0!==e)switch(e){case 1:return s[n];case 2:return r[n];case 4:return o[n];case 3:return i[n]}else{if(uo(s,n))return l[n]=1,s[n];if(r!==t&&u(r,n))return l[n]=2,r[n];if(u(i,n))return l[n]=3,i[n];if(o!==t&&u(o,n))return l[n]=4,o[n];ho&&(l[n]=0)}}const f=co[n];let d,p;return f?("$attrs"===n&&Pe(e.attrs,0,""),f(e)):(d=a.__cssModules)&&(d=d[n])?d:o!==t&&u(o,n)?(l[n]=4,o[n]):(p=c.config.globalProperties,u(p,n)?p[n]:void 0)},set({_:e},n,o){const{data:s,setupState:r,ctx:i}=e;return uo(r,n)?(r[n]=o,!0):s!==t&&u(s,n)?(s[n]=o,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(i[n]=o,!0))},has({_:{data:e,setupState:n,accessCache:o,ctx:s,appContext:r,props:i,type:l}},a){let c;return!!(o[a]||e!==t&&"$"!==a[0]&&u(e,a)||uo(n,a)||u(i,a)||u(s,a)||u(co,a)||u(r.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function po(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let ho=!0;function go(e){const t=bo(e),n=e.proxy,s=e.ctx;ho=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:v,updated:m,activated:_,deactivated:y,beforeDestroy:w,beforeUnmount:x,destroyed:k,unmounted:S,render:C,renderTracked:A,renderTriggered:E,errorCaptured:j,serverPrefetch:T,expose:O,inheritAttrs:P,components:M,directives:L,filters:F}=t;if(u&&function(e,t){f(e)&&(e=xo(e));for(const n in e){const o=e[n];let s;s=b(o)?"default"in o?un(o.from||n,o.default,!0):un(o.from||n):un(o),kt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,s,null),l)for(const o in l){const e=l[o];g(e)&&(s[o]=e.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ft(t))}if(ho=!0,i)for(const f in i){const e=i[f],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):o,r=!g(e)&&g(e.set)?e.set.bind(n):o,l=Js({get:t,set:r});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(a)for(const o in a)mo(a[o],s,n,o);if(c){const e=g(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{cn(t,e[t])})}function R(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&vo(d,e,"c"),R(Jn,p),R(Zn,h),R(Gn,v),R(Yn,m),R(Bn,_),R(qn,y),R(oo,j),R(no,A),R(to,E),R(Xn,x),R(Qn,S),R(eo,T),f(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===o&&(e.render=C),null!=P&&(e.inheritAttrs=P),M&&(e.components=M),L&&(e.directives=L),T&&Mn(e)}function vo(e,t,n){Dt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function mo(e,t,n,o){let s=o.includes(".")?gn(n,o):()=>n[o];if(v(e)){const n=t[e];g(n)&&dn(s,n)}else if(g(e))dn(s,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>mo(e,t,n,o));else{const o=g(e.handler)?e.handler.bind(n):t[e.handler];g(o)&&dn(s,o,e)}}function bo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:s.length||n||o?(a={},s.length&&s.forEach(e=>_o(a,e,i,!0)),_o(a,t,i)):a=t,b(t)&&r.set(t,a),a}function _o(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&_o(e,r,n,!0),s&&s.forEach(t=>_o(e,t,n,!0));for(const i in t)if(o&&"expose"===i);else{const o=yo[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const yo={data:wo,props:Co,emits:Co,methods:So,computed:So,beforeCreate:ko,created:ko,beforeMount:ko,mounted:ko,beforeUpdate:ko,updated:ko,beforeDestroy:ko,beforeUnmount:ko,destroyed:ko,unmounted:ko,activated:ko,deactivated:ko,errorCaptured:ko,serverPrefetch:ko,components:So,directives:So,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const o in t)n[o]=ko(e[o],t[o]);return n},provide:wo,inject:function(e,t){return So(xo(e),xo(t))}};function wo(e,t){return t?e?function(){return l(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function xo(e){if(f(e)){const t={};for(let n=0;n(s.has(e)||(e&&g(e.install)?(s.add(e),e.install(a,...t)):g(e)&&(s.add(e),e(a,...t))),a),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),a),component:(e,t)=>t?(o.components[e]=t,a):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,a):o.directives[e],mount(s,r,l){if(!i){const r=a._ceVNode||Cs(t,n);return r.appContext=o,!0===l?l="svg":!1===l&&(l=void 0),e(r,s,l),i=!0,a._container=s,s.__vue_app__=a,Hs(r.component)}},onUnmount(e){r.push(e)},unmount(){i&&(Dt(r,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,a),runWithContext(e){const t=To;To=a;try{return e()}finally{To=t}}};return a}}let To=null;function Oo(e,n,...o){if(e.isUnmounted)return;const s=e.vnode.props||t;let r=o;const i=n.startsWith("update:"),l=i&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${T(t)}Modifiers`])(s,n.slice(7));let a;l&&(l.trim&&(r=o.map(e=>v(e)?e.trim():e)),l.number&&(r=o.map(R)));let c=s[a=P(n)]||s[a=P(E(n))];!c&&i&&(c=s[a=P(T(n))]),c&&Dt(c,e,6,r);const u=s[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Dt(u,e,6,r)}}const Po=new WeakMap;function Mo(e,t,n=!1){const o=n?Po:t.emitsCache,s=o.get(e);if(void 0!==s)return s;const r=e.emits;let i={},a=!1;if(!g(e)){const o=e=>{const n=Mo(e,t,!0);n&&(a=!0,l(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return r||a?(f(r)?r.forEach(e=>i[e]=null):l(i,r),b(e)&&o.set(e,i),i):(b(e)&&o.set(e,null),null)}function Lo(e,t){return!(!e||!r(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,T(t))||u(e,t))}function Fo(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:l,attrs:a,emit:c,render:u,renderCache:f,props:d,data:p,setupState:h,ctx:g,inheritAttrs:v}=e,m=sn(e);let b,_;try{if(4&n.shapeFlag){const e=s||o,t=e;b=Ts(u.call(t,e,f,d,h,p,g)),_=a}else{const e=t;0,b=Ts(e.length>1?e(d,{attrs:a,slots:l,emit:c}):e(d,null)),_=t.props?a:Ro(a)}}catch(w){ds.length=0,Ut(w,e,1),b=Cs(us)}let y=b;if(_&&!1!==v){const e=Object.keys(_),{shapeFlag:t}=y;e.length&&7&t&&(r&&e.some(i)&&(_=Io(_,r)),y=As(y,_,!1,!0))}return n.dirs&&(y=As(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Tn(y,n.transition),b=y,sn(m),b}const Ro=e=>{let t;for(const n in e)("class"===n||"style"===n||r(n))&&((t||(t={}))[n]=e[n]);return t},Io=(e,t)=>{const n={};for(const o in e)i(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function $o(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Vo),Uo=e=>Object.getPrototypeOf(e)===Vo;function Bo(e,n,o,s){const[r,i]=e.propsOptions;let l,a=!1;if(n)for(let t in n){if(S(t))continue;const c=n[t];let f;r&&u(r,f=E(t))?i&&i.includes(f)?(l||(l={}))[f]=c:o[f]=c:Lo(e.emitsOptions,t)||t in s&&c===s[t]||(s[t]=c,a=!0)}if(i){const n=_t(o),s=l||t;for(let t=0;t{p=!0;const[t,n]=Wo(e,o,!0);l(c,t),n&&d.push(...n)};!s&&o.mixins.length&&o.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!a&&!p)return b(e)&&r.set(e,n),n;if(f(a))for(let n=0;n"_"===e||"_ctx"===e||"$stable"===e,Jo=e=>f(e)?e.map(Ts):[Ts(e)],Zo=(e,t,n)=>{if(t._n)return t;const o=rn((...e)=>Jo(t(...e)),n);return o._c=!1,o},Go=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Ko(s))continue;const n=e[s];if(g(n))t[s]=Zo(0,n,o);else if(null!=n){const e=Jo(n);t[s]=()=>e}}},Yo=(e,t)=>{const n=Jo(t);e.slots.default=()=>n},Xo=(e,t,n)=>{for(const o in t)!n&&Ko(o)||(e[o]=t[o])},Qo=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?zt.push(...n):Wt&&-1===n.id?Wt.splice(Ht+1,0,n):1&n.flags||(zt.push(n),n.flags|=1),Yt());var n};function es(e){return function(e){N().__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:l,createText:a,createComment:c,setText:f,setElementText:d,parentNode:p,nextSibling:h,setScopeId:g=o,insertStaticContent:v}=e,m=(e,t,n,o=null,s=null,r=null,i=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!ws(e,t)&&(o=X(e),K(e,s,r,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:f}=t;switch(c){case cs:b(e,t,n,o);break;case us:y(e,t,n,o);break;case fs:null==e&&w(t,n,o,i);break;case as:I(e,t,n,o,s,r,i,l,a);break;default:1&f?C(e,t,n,o,s,r,i,l,a):6&f?$(e,t,n,o,s,r,i,l,a):(64&f||128&f)&&c.process(e,t,n,o,s,r,i,l,a,ne)}null!=u&&s?Rn(u,e&&e.ref,r,t||e,!t):null==u&&e&&null!=e.ref&&Rn(e.ref,null,r,e,!0)},b=(e,t,n,o)=>{if(null==e)s(t.el=a(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},y=(e,t,n,o)=>{null==e?s(t.el=c(t.children||""),n,o):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=({el:e,anchor:t},n,o)=>{let r;for(;e&&e!==t;)r=h(e),s(e,n,o),e=r;s(t,n,o)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),r(e),e=n;r(t)},C=(e,t,n,o,s,r,i,l,a)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)A(t,n,o,s,r,i,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,s,r,i,l,a)}finally{n&&n._endPatch()}}},A=(e,t,n,o,r,a,c,u)=>{let f,p;const{props:h,shapeFlag:g,transition:v,dirs:m}=e;if(f=e.el=l(e.type,a,h&&h.is,h),8&g?d(f,e.children):16&g&&O(e.children,f,null,o,r,ts(e,a),c,u),m&&an(e,null,o,"created"),j(f,e,e.scopeId,c,o),h){for(const e in h)"value"===e||S(e)||i(f,e,null,h[e],a,o);"value"in h&&i(f,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&Ms(p,o,e)}m&&an(e,null,o,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,v);b&&v.beforeEnter(f),s(f,t,n),((p=h&&h.onVnodeMounted)||b||m)&&Qo(()=>{try{p&&Ms(p,o,e),b&&v.enter(f),m&&an(e,null,o,"mounted")}finally{}},r)},j=(e,t,n,o,s)=>{if(n&&g(e,n),o)for(let r=0;r{for(let c=a;c{const c=n.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=n;u|=16&e.patchFlag;const h=e.props||t,g=n.props||t;let v;if(o&&ns(o,!1),(v=g.onVnodeBeforeUpdate)&&Ms(v,o,n,e),p&&an(n,e,o,"beforeUpdate"),o&&ns(o,!0),(h.innerHTML&&null==g.innerHTML||h.textContent&&null==g.textContent)&&d(c,""),f?M(e.dynamicChildren,f,c,o,s,ts(n,r),l):a||q(e,n,c,null,o,s,ts(n,r),l,!1),u>0){if(16&u)R(c,h,g,o,r);else if(2&u&&h.class!==g.class&&i(c,"class",null,g.class,r),4&u&&i(c,"style",h.style,g.style,r),8&u){const e=n.dynamicProps;for(let t=0;t{v&&Ms(v,o,n,e),p&&an(n,e,o,"updated")},s)},M=(e,t,n,o,s,r,i)=>{for(let l=0;l{if(n!==o){if(n!==t)for(const t in n)S(t)||t in o||i(e,t,n[t],null,r,s);for(const t in o){if(S(t))continue;const l=o[t],a=n[t];l!==a&&"value"!==t&&i(e,t,a,l,r,s)}"value"in o&&i(e,"value",n.value,o.value,r)}},I=(e,t,n,o,r,i,l,c,u)=>{const f=t.el=e?e.el:a(""),d=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(s(f,n,o),s(d,n,o),O(t.children||[],n,d,r,i,l,c,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(M(e.dynamicChildren,h,n,r,i,l,c),(null!=t.key||r&&t===r.subTree)&&os(e,t,!0)):q(e,t,n,d,r,i,l,c,u)},$=(e,t,n,o,s,r,i,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?s.ctx.activate(t,n,o,i,a):V(t,n,o,s,r,i,a):D(e,t,a)},V=(e,n,o,s,r,i,l)=>{const a=e.component=function(e,n,o){const s=e.type,r=(n?n.appContext:e.appContext)||Ls,i={uid:Fs++,vnode:e,type:s,parent:n,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(r.provides),ids:n?n.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wo(s,r),emitsOptions:Mo(s,r),emit:null,emitted:null,propsDefaults:t,inheritAttrs:s.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=n?n.root:i,i.emit=Oo.bind(null,i),e.ce&&e.ce(i);return i}(e,s,r);if(Un(e)&&(a.ctx.renderer=ne),function(e,t=!1,n=!1){t&&Ns(t);const{props:o,children:s}=e.vnode,r=Us(e);(function(e,t,n,o=!1){const s={},r=Do();e.propsDefaults=Object.create(null),Bo(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:dt(s):e.type.props?e.props=s:e.props=r,e.attrs=r})(e,o,r,t),((e,t,n)=>{const o=e.slots=Do();if(32&e.vnode.shapeFlag){const e=t._;e?(Xo(o,t,n),n&&F(o,"_",e,!0)):Go(t,o)}else t&&Yo(e,t)})(e,s,n||t);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fo);const{setup:o}=n;if(o){ye();const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ws),slots:e.slots,emit:e.emit,expose:t}}(e):null,s=Vs(e),r=Vt(o,e,0,[e.props,n]),i=_(r);if(we(),s(),!i&&!e.sp||Nn(e)||Mn(e),i){if(r.then(Ds,Ds),t)return r.then(t=>{qs(e,t)}).catch(t=>{Ut(t,e,0)});e.asyncDep=r}else qs(e,r)}else zs(e)}(e,t):void 0;t&&Ns(!1)}(a,!1,l),a.asyncDep){if(r&&r.registerDep(a,U,l),!e.el){const t=a.subTree=Cs(us);y(null,t,n,o),e.placeholder=t.el}}else U(a,e,n,o,r,i,l)},D=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!s&&!l||l&&l.$stable)||o!==i&&(o?!i||$o(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?$o(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=ss(e);if(n)return t&&(t.el=a.el,B(e,t,i)),void n.asyncDep.then(()=>{Qo(()=>{e.isUnmounted||c()},s)})}let u,f=t;ns(e,!1),t?(t.el=a.el,B(e,t,i)):t=a,n&&L(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Ms(u,l,t,a),ns(e,!0);const d=Fo(e),h=e.subTree;e.subTree=d,m(h,d,p(h.el),X(h),e,s,r),t.el=d.el,null===f&&function({vnode:e,parent:t,suspense:n},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=o,e=n),n!==e)break;(e=t.vnode).el=o,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=o)}(e,d.el),o&&Qo(o,s),(u=t.props&&t.props.onVnodeUpdated)&&Qo(()=>Ms(u,l,t,a),s)}else{let i;const{el:l,props:a}=t,{bm:c,m:u,parent:f,root:d,type:p}=e,h=Nn(t);ns(e,!1),c&&L(c),!h&&(i=a&&a.onVnodeBeforeMount)&&Ms(i,f,t),ns(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const i=e.subTree=Fo(e);m(null,i,n,o,e,s,r),t.el=i.el}if(u&&Qo(u,s),!h&&(i=a&&a.onVnodeMounted)){const e=t;Qo(()=>Ms(i,f,e),s)}(256&t.shapeFlag||f&&Nn(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Qo(e.a,s),e.isMounted=!0,t=n=o=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>Gt(u),ns(e,!0),c()},B=(e,n,o)=>{n.component=e;const s=e.vnode.props;e.vnode=n,e.next=null,function(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=_t(s),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Bo(e,t,s,r)&&(c=!0);for(const r in l)t&&(u(t,r)||(o=T(r))!==r&&u(t,o))||(a?!n||void 0===n[r]&&void 0===n[o]||(s[r]=qo(a,l,r,void 0,e,!0)):delete s[r]);if(r!==l)for(const e in r)t&&u(t,e)||(delete r[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:s,slots:r}=e;let i=!0,l=t;if(32&s.shapeFlag){const e=n._;e?o&&1===e?i=!1:Xo(r,n,o):(i=!n.$stable,Go(n,r)),l=n}else n&&(Yo(e,n),l={default:1});if(i)for(const t in r)Ko(t)||null!=l[t]||delete r[t]})(e,n.children,o),ye(),Xt(e),we()},q=(e,t,n,o,s,r,i,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void W(c,f,n,o,s,r,i,l,a);if(256&p)return void z(c,f,n,o,s,r,i,l,a)}8&h?(16&u&&Y(c,s,r),f!==c&&d(n,f)):16&u?16&h?W(c,f,n,o,s,r,i,l,a):Y(c,s,r,!0):(8&u&&d(n,""),16&h&&O(f,n,o,s,r,i,l,a))},z=(e,t,o,s,r,i,l,a,c)=>{t=t||n;const u=(e=e||n).length,f=t.length,d=Math.min(u,f);let p;for(p=0;pf?Y(e,r,i,!0,!1,d):O(t,o,s,r,i,l,a,c,d)},W=(e,t,o,s,r,i,l,a,c)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const n=e[u],s=t[u]=c?Os(t[u]):Ts(t[u]);if(!ws(n,s))break;m(n,s,o,null,r,i,l,a,c),u++}for(;u<=d&&u<=p;){const n=e[d],s=t[p]=c?Os(t[p]):Ts(t[p]);if(!ws(n,s))break;m(n,s,o,null,r,i,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,n=ep)for(;u<=d;)K(e[u],r,i,!0),u++;else{const h=u,g=u,v=new Map;for(u=g;u<=p;u++){const e=t[u]=c?Os(t[u]):Ts(t[u]);null!=e.key&&v.set(e.key,u)}let b,_=0;const y=p-g+1;let w=!1,x=0;const k=new Array(y);for(u=0;u=y){K(n,r,i,!0);continue}let s;if(null!=n.key)s=v.get(n.key);else for(b=g;b<=p;b++)if(0===k[b-g]&&ws(n,t[b])){s=b;break}void 0===s?K(n,r,i,!0):(k[s-g]=u+1,s>=x?x=s:w=!0,m(n,t[s],o,null,r,i,l,a,c),_++)}const S=w?function(e){const t=e.slice(),n=[0];let o,s,r,i,l;const a=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[r-1]),n[r]=o)}}r=n.length,i=n[r-1];for(;r-- >0;)n[r]=i,i=t[i];return n}(k):n;for(b=S.length-1,u=y-1;u>=0;u--){const e=g+u,n=t[e],d=t[e+1],p=e+1{const{el:l,type:a,transition:c,children:u,shapeFlag:f}=e;if(6&f)return void H(e.component.subTree,t,n,o);if(128&f)return void e.suspense.move(t,n,o);if(64&f)return void a.move(e,t,n,ne);if(a===as){s(l,t,n);for(let e=0;ec.enter(l),i);else{const{leave:o,delayLeave:i,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?r(l):s(l,t,n)},f=()=>{l._isLeaving&&l[bn](!0),o(l,()=>{u(),a&&a()})};i?i(l,u,f):f()}else s(l,t,n)},K=(e,t,n,o=!1,s=!1)=>{const{type:r,props:i,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:f,dirs:d,cacheIndex:p,memo:h}=e;if(-2===f&&(s=!1),null!=l&&(ye(),Rn(l,null,n,e,!0),we()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const g=1&u&&d,v=!Nn(e);let m;if(v&&(m=i&&i.onVnodeBeforeUnmount)&&Ms(m,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);g&&an(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ne,o):c&&!c.hasOnce&&(r!==as||f>0&&64&f)?Y(c,t,n,!1,!0):(r===as&&384&f||!s&&16&u)&&Y(a,t,n),o&&J(e)}const b=null!=h&&null==p;(v&&(m=i&&i.onVnodeUnmounted)||g||b)&&Qo(()=>{m&&Ms(m,t,e),g&&an(e,null,t,"unmounted"),b&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===as)return void Z(n,o);if(t===fs)return void k(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},Z=(e,t)=>{let n;for(;e!==t;)n=h(e),r(e),e=n;r(t)},G=(e,t,n)=>{const{bum:o,scope:s,job:r,subTree:i,um:l,m:a,a:c}=e;rs(a),rs(c),o&&L(o),s.stop(),r&&(r.flags|=8,K(i,e,t,n)),l&&Qo(l,t),Qo(()=>{e.isUnmounted=!0},t)},Y=(e,t,n,o=!1,s=!1,r=0)=>{for(let i=r;i{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[vn];return n?h(n):t};let Q=!1;const ee=(e,t,n)=>{let o;null==e?t._vnode&&(K(t._vnode,null,null,!0),o=t._vnode.component):m(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Xt(o),Qt(),Q=!1)},ne={p:m,um:K,m:H,r:J,mt:V,mc:O,pc:q,pbc:M,n:X,o:e};let oe;return{render:ee,hydrate:oe,createApp:jo(ee)}}(e)}function ts({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ns({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function os(e,t,n=!1){const o=e.children,s=t.children;if(f(o)&&f(s))for(let r=0;re.__isSuspense;const as=Symbol.for("v-fgt"),cs=Symbol.for("v-txt"),us=Symbol.for("v-cmt"),fs=Symbol.for("v-stc"),ds=[];let ps=null;function hs(e=!1){ds.push(ps=e?null:[])}let gs=1;function vs(e,t=!1){gs+=e,e<0&&ps&&t&&(ps.hasOnce=!0)}function ms(e){return e.dynamicChildren=gs>0?ps||n:null,ds.pop(),ps=ds[ds.length-1]||null,gs>0&&ps&&ps.push(e),e}function bs(e,t,n,o,s,r){return ms(Ss(e,t,n,o,s,r,!0))}function _s(e,t,n,o,s){return ms(Cs(e,t,n,o,s,!0))}function ys(e){return!!e&&!0===e.__v_isVNode}function ws(e,t){return e.type===t.type&&e.key===t.key}const xs=({key:e})=>null!=e?e:null,ks=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||kt(e)||g(e)?{i:nn,r:e,k:t,f:!!n}:e:null);function Ss(e,t=null,n=null,o=0,s=null,r=(e===as?0:1),i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xs(t),ref:t&&ks(t),scopeId:on,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:nn};return l?(Ps(a,n),128&r&&e.normalize(a)):n&&(a.shapeFlag|=v(n)?8:16),gs>0&&!i&&ps&&(a.patchFlag>0||6&r)&&32!==a.patchFlag&&ps.push(a),a}const Cs=function(e,t=null,n=null,o=0,s=null,r=!1){e&&e!==so||(e=us);if(ys(e)){const o=As(e,t,!0);return n&&Ps(o,n),gs>0&&!r&&ps&&(6&o.shapeFlag?ps[ps.indexOf(e)]=o:ps.push(o)),o.patchFlag=-2,o}i=e,g(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?bt(e)||Uo(e)?l({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=z(e)),b(n)&&(bt(n)&&!f(n)&&(n=l({},n)),t.style=V(n))}const a=v(e)?1:ls(e)?128:mn(e)?64:b(e)?4:g(e)?2:0;return Ss(e,t,n,o,s,a,r,!0)};function As(e,t,n=!1,o=!1){const{props:s,ref:l,patchFlag:a,children:c,transition:u}=e,d=t?function(...e){const t={};for(let n=0;nRs||nn;let $s,Ns;{const e=N(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};$s=t("__VUE_INSTANCE_SETTERS__",e=>Rs=e),Ns=t("__VUE_SSR_SETTERS__",e=>Bs=e)}const Vs=e=>{const t=Rs;return $s(e),e.scope.on(),()=>{e.scope.off(),$s(t)}},Ds=()=>{Rs&&Rs.scope.off(),$s(null)};function Us(e){return 4&e.vnode.shapeFlag}let Bs=!1;function qs(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=jt(t)),zs(e)}function zs(e,t,n){const s=e.type;e.render||(e.render=s.render||o);{const t=Vs(e);ye();try{go(e)}finally{we(),t()}}}const Ws={get:(e,t)=>(Pe(e,0,""),e[t])};function Hs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(jt(yt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in co?co[n](e):void 0,has:(e,t)=>t in e||t in co})):e.proxy}function Ks(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const Js=(e,t)=>Lt(e,0,Bs);const Zs="3.5.32"; -/** - * @vue/runtime-dom v3.5.32 - * (c) 2018-present Yuxi (Evan) You and Vue contributors - * @license MIT - **/let Gs;const Ys="undefined"!=typeof window&&window.trustedTypes;if(Ys)try{Gs=Ys.createPolicy("vue",{createHTML:e=>e})}catch(Vl){}const Xs=Gs?e=>Gs.createHTML(e):e=>e,Qs="undefined"!=typeof document?document:null,er=Qs&&Qs.createElement("template"),tr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s="svg"===t?Qs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Qs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Qs.createElement(e,{is:n}):Qs.createElement(e);return"select"===e&&o&&null!=o.multiple&&s.setAttribute("multiple",o.multiple),s},createText:e=>Qs.createTextNode(e),createComment:e=>Qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const i=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),s!==r&&(s=s.nextSibling););else{er.innerHTML=Xs("svg"===o?`${e}`:"mathml"===o?`${e}`:e);const s=er.content;if("svg"===o||"mathml"===o){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},nr="transition",or="animation",sr=Symbol("_vtc"),rr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ir=l({},wn,rr),lr=(e=>(e.displayName="Transition",e.props=ir,e))((e,{slots:t})=>function(e,t,n){try{vs(-1);const o=arguments.length;return 2===o?b(t)&&!f(t)?ys(t)?Cs(e,null,[t]):Cs(e,t):Cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ys(n)&&(n=[n]),Cs(e,t,n))}finally{vs(1)}}(Sn,function(e){const t={};for(const l in e)l in rr||(t[l]=e[l]);if(!1===e.css)return t;const{name:n="v",type:o,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=i,appearToClass:f=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(b(e))return[ur(e.enter),ur(e.leave)];{const t=ur(e);return[t,t]}}(s),v=g&&g[0],m=g&&g[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:w,onLeave:x,onLeaveCancelled:k,onBeforeAppear:S=_,onAppear:C=y,onAppearCancelled:A=w}=t,E=(e,t,n,o)=>{e._enterCancelled=o,dr(e,t?f:a),dr(e,t?u:i),n&&n()},j=(e,t)=>{e._isLeaving=!1,dr(e,d),dr(e,h),dr(e,p),t&&t()},T=e=>(t,n)=>{const s=e?C:y,i=()=>E(t,e,n);ar(s,[t,i]),pr(()=>{dr(t,e?c:r),fr(t,e?f:a),cr(s)||gr(t,o,v,i)})};return l(t,{onBeforeEnter(e){ar(_,[e]),fr(e,r),fr(e,i)},onBeforeAppear(e){ar(S,[e]),fr(e,c),fr(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>j(e,t);fr(e,d),e._enterCancelled?(fr(e,p),br(e)):(br(e),fr(e,p)),pr(()=>{e._isLeaving&&(dr(e,d),fr(e,h),cr(x)||gr(e,o,m,n))}),ar(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),ar(w,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),ar(A,[e])},onLeaveCancelled(e){j(e),ar(k,[e])}})}(e),t)),ar=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},cr=e=>!!e&&(f(e)?e.some(e=>e.length>1):e.length>1);function ur(e){return I(e)}function fr(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[sr]||(e[sr]=new Set)).add(t)}function dr(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[sr];n&&(n.delete(t),n.size||(e[sr]=void 0))}function pr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hr=0;function gr(e,t,n,o){const s=e._endId=++hr,r=()=>{s===e._endId&&o()};if(null!=n)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),s=o(`${nr}Delay`),r=o(`${nr}Duration`),i=vr(s,r),l=o(`${or}Delay`),a=o(`${or}Duration`),c=vr(l,a);let u=null,f=0,d=0;t===nr?i>0&&(u=nr,f=i,d=r.length):t===or?c>0&&(u=or,f=c,d=a.length):(f=Math.max(i,c),u=f>0?i>c?nr:or:null,d=u?u===nr?r.length:a.length:0);const p=u===nr&&/\b(?:transform|all)(?:,|$)/.test(o(`${nr}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}(e,t);if(!i)return o();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),r()},d=t=>{t.target===e&&++u>=a&&f()};setTimeout(()=>{umr(t)+mr(e[n])))}function mr(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function br(e){return(e?e.ownerDocument:document).body.offsetHeight}const _r=Symbol("_vod"),yr=Symbol("_vsh"),wr=Symbol(""),xr=/(?:^|;)\s*display\s*:/;const kr=/\s*!important$/;function Sr(e,t,n){if(f(n))n.forEach(n=>Sr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ar[t];if(n)return n;let o=E(t);if("filter"!==o&&o in e)return Ar[t]=o;o=O(o);for(let s=0;s{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Dt(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ir(),n}(o,s);Or(e,n,i,l)}else i&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),r[t]=void 0)}}const Lr=/(?:Once|Passive|Capture)$/;let Fr=0;const Rr=Promise.resolve(),Ir=()=>Fr||(Rr.then(()=>Fr=0),Fr=Date.now());const $r=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Nr={};function Vr(e,t,n){let o=Pn(e,t);x(o)&&(o=l({},o,t));class s extends Ur{constructor(e){super(o,e,n)}}return s.def=o,s}const Dr="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ur extends Dr{constructor(e,t={},n=si){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==si?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(l({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Ur){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Zt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:o}=e;let s;if(n&&!f(n))for(const r in n){const e=n[r];(e===Number||e&&e.type===Number)&&(r in this._props&&(this._props[r]=I(this._props[r])),(s||(s=Object.create(null)))[E(r)]=!0)}this._numberProps=s,this._resolveProps(e),this.shadowRoot&&this._applyStyles(o),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)u(this,n)||Object.defineProperty(this,n,{get:()=>At(t[n])})}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const o of Object.keys(this))"_"!==o[0]&&n.includes(o)&&this._setProp(o,this[o]);for(const o of n.map(E))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(e){this._setProp(o,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Nr;const o=E(e);t&&this._numberProps&&this._numberProps[o]&&(n=I(n)),this._setProp(o,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Nr?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),o&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(T(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(T(e),t+""):t||this.removeAttribute(T(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),oi(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Cs(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,x(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),T(e)!==e&&t(T(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const o=this._nonce,s=this.shadowRoot,r=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(s);let i=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");o&&a.setAttribute("nonce",o),a.textContent=e[l],s.insertBefore(a,i||r),i=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>L(t,e):t};function qr(e){e.target.composing=!0}function zr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wr=Symbol("_assign");function Hr(e,t,n){return t&&(e=e.trim()),n&&(e=R(e)),e}const Kr={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Wr]=Br(s);const r=o||s.props&&"number"===s.props.type;Or(e,t?"change":"input",t=>{t.target.composing||e[Wr](Hr(e.value,n,r))}),(n||r)&&Or(e,"change",()=>{e.value=Hr(e.value,n,r)}),t||(Or(e,"compositionstart",qr),Or(e,"compositionend",zr),Or(e,"change",zr))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},i){if(e[Wr]=Br(i),e.composing)return;const l=null==t?"":t;if((!r&&"number"!==e.type||/^0\d/.test(e.value)?e.value:R(e.value))===l)return;const a=e.getRootNode();if((a instanceof Document||a instanceof ShadowRoot)&&a.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(s&&e.value.trim()===l)return}e.value=l}},Jr={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=p(t);Or(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?R(Gr(e)):Gr(e));e[Wr](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,Zt(()=>{e._assigning=!1})}),e[Wr]=Br(o)},mounted(e,{value:t}){Zr(e,t)},beforeUpdate(e,t,n){e[Wr]=Br(n)},updated(e,{value:t}){e._assigning||Zr(e,t)}};function Zr(e,t){const n=e.multiple,o=f(t);if(!n||o||p(t)){for(let s=0,r=e.options.length;sString(e)===String(i)):J(t,i)>-1}else r.selected=t.has(i);else if(K(Gr(r),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Gr(e){return"_value"in e?e._value:e.value}const Yr=["ctrl","shift","alt","meta"],Xr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Yr.some(n=>e[`${n}Key`]&&!t.includes(n))},Qr=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const a="svg"===s;"class"===t?function(e,t,n){const o=e[sr];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,a):"style"===t?function(e,t,n){const o=e.style,s=v(n);let r=!1;if(n&&!s){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Sr(o,t,"")}else for(const e in t)null==n[e]&&Sr(o,e,"");for(const e in n)"display"===e&&(r=!0),Sr(o,e,n[e])}else if(s){if(t!==n){const e=o[wr];e&&(n+=";"+e),o.cssText=n,r=xr.test(n)}}else t&&e.removeAttribute("style");_r in e&&(e[_r]=r?o.display:"",e[yr]&&(o.display="none"))}(e,n,o):r(t)?i(t)||Mr(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&$r(t)&&g(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if($r(t)&&v(n))return!1;return t in e}(e,t,o,a))?(Tr(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||jr(e,t,o,a,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const o=E(t);return Array.isArray(n)?n.some(e=>E(e)===o):Object.keys(n).some(e=>E(e)===o)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(o)))?Tr(e,E(t),o,0,t):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),jr(e,t,o,a))}},tr);let ti;function ni(){return ti||(ti=es(ei))}const oi=(...e)=>{ni().render(...e)},si=(...e)=>{const t=ni().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(v(e)){return document.querySelector(e)}return e} -/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */(e);if(!o)return;const s=t._component;g(s)||s.render||s.template||(s.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};let ri;const ii=e=>ri=e,li=Symbol();function ai(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ci,ui;(ui=ci||(ci={})).direct="direct",ui.patchObject="patch object",ui.patchFunction="patch function";const fi=()=>{};function di(e,t,n,o=fi){e.push(t);const s=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};var r;return!n&&oe()&&(r=s,Q&&Q.cleanups.push(r)),s}function pi(e,...t){e.slice().forEach(e=>{e(...t)})}const hi=e=>e(),gi=Symbol(),vi=Symbol();function mi(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];ai(s)&&ai(o)&&e.hasOwnProperty(n)&&!kt(o)&&!gt(o)?e[n]=mi(s,o):e[n]=o}return e}const bi=Symbol();function _i(e){return!ai(e)||!e.hasOwnProperty(bi)}const{assign:yi}=Object;function wi(e){return!(!kt(e)||!e.effect)}function xi(e,t,n={},o,s,r){let i;const l=yi({actions:{}},n),a={deep:!0};let c,u,f,d=[],p=[];const h=o.state.value[e];let g;function v(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:ci.patchFunction,storeId:e,events:f}):(mi(o.state.value[e],t),n={type:ci.patchObject,payload:t,storeId:e,events:f});const s=g=Symbol();Zt().then(()=>{g===s&&(c=!0)}),u=!0,pi(d,n,o.state.value[e])}r||h||(o.state.value[e]={});const m=r?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{yi(e,t)})}:fi;const b=(t,n="")=>{if(gi in t)return t[vi]=n,t;const s=function(){ii(o);const n=Array.from(arguments),r=[],i=[];let l;pi(p,{args:n,name:s[vi],store:_,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{l=t.apply(this&&this.$id===e?this:_,n)}catch(a){throw pi(i,a),a}return l instanceof Promise?l.then(e=>(pi(r,e),e)).catch(e=>(pi(i,e),Promise.reject(e))):(pi(r,l),l)};return s[gi]=!0,s[vi]=n,s},_=ft({_p:o,$id:e,$onAction:di.bind(null,p),$patch:v,$reset:m,$subscribe(t,n={}){const s=di(d,t,n.detached,()=>r()),r=i.run(()=>dn(()=>o.state.value[e],o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:ci.direct,events:f},o)},yi({},a,n)));return s},$dispose:function(){i.stop(),d=[],p=[],o._s.delete(e)}});o._s.set(e,_);const y=(o._a&&o._a.runWithContext||hi)(()=>o._e.run(()=>(i=ne()).run(()=>t({action:b}))));for(const w in y){const t=y[w];if(kt(t)&&!wi(t)||gt(t))r||(h&&_i(t)&&(kt(t)?t.value=h[w]:mi(t,h[w])),o.state.value[e][w]=t);else if("function"==typeof t){const e=b(t,w);y[w]=e,l.actions[w]=t}}return yi(_,y),yi(_t(_),y),Object.defineProperty(_,"$state",{get:()=>o.state.value[e],set:e=>{v(t=>{yi(t,e)})}}),o._p.forEach(e=>{yi(_,i.run(()=>e({store:_,app:o._a,pinia:o,options:l})))}),h&&r&&n.hydrate&&n.hydrate(_.$state,h),c=!0,u=!0,_} -/*! #__NO_SIDE_EFFECTS__ */function ki(e,t,n){let o,s;const r="function"==typeof t;function i(e,n){const i=!(!Is()&&!To);(e=e||(i?un(li,null):null))&&ii(e),(e=ri)._s.has(o)||(r?xi(o,t,s,e):function(e,t,n){const{state:o,actions:s,getters:r}=t,i=n.state.value[e];let l;l=xi(e,function(){i||(n.state.value[e]=o?o():{});const t=Tt(n.state.value[e]);return yi(t,s,Object.keys(r||{}).reduce((t,o)=>(t[o]=yt(Js(()=>{ii(n);const t=n._s.get(e);return r[o].call(t,t)})),t),{}))},t,n,0,!0)}(o,s,e));return e._s.get(o)}return o=e,s=r?n:t,i.$id=o,i}const Si=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Ci={key:0,class:"fw-loader"},Ai={key:0,class:"fw-loader-error"},Ei={key:1,class:"fw-loader-error"},ji=Vr(Si({__name:"ProfileLoader",props:{profileConfig:{type:String,default:""}},setup(e){const t=e,n=Js(()=>{if(!t.profileConfig)return null;try{return JSON.parse(t.profileConfig)}catch(Vl){return console.error("[feedback-widget] Invalid profile-config JSON:",t.profileConfig),null}}),o=Js(()=>{var e;return(null==(e=n.value)?void 0:e.profile)||"chat-bubble"}),s=Js(()=>{var e;return(null==(e=n.value)?void 0:e.projectId)||""}),r=Js(()=>{var e;return(null==(e=n.value)?void 0:e.apiBase)||""}),i=Js(()=>{var e;const t=null==(e=n.value)?void 0:e.enabled;return void 0===t||Boolean(t)}),l=Js(()=>{var e;return(null==(e=n.value)?void 0:e.instanceId)||"fb-"+Math.random().toString(36).slice(2,9)}),a=Object.assign({"./app-profiles/chat-bubble.vue":()=>Promise.resolve().then(()=>Nl)}),c=Js(()=>{if(!n.value)return null;const e=`./app-profiles/${o.value}.vue`;return a[e]?Vn(a[e]):(console.error(`[feedback-widget] Profile not found: "${o.value}". Available:`,Object.keys(a)),null)});return cn("projectId",s),cn("apiBase",r),cn("enabled",i),cn("instanceId",l),cn("profileConfig",n),(e,t)=>n.value&&i.value?(hs(),bs("div",Ci,[c.value?(hs(),_s(ro(c.value),{key:1})):(hs(),bs("div",Ai,[Ss("p",null,[t[0]||(t[0]=Es("⚠️ feedback-widget: profile ",-1)),Ss("strong",null,'"'+G(o.value)+'"',1),t[1]||(t[1]=Es(" not found.",-1))])]))])):n.value?js("",!0):(hs(),bs("div",Ei,[...t[2]||(t[2]=[Ss("p",null,[Es("⚠️ feedback-widget: missing or invalid "),Ss("code",null,"profile-config"),Es(" prop.")],-1),Ss("p",null,"Example:",-1),Ss("pre",null,'profile-config=\'{"profile":"chat-bubble","projectId":"...","apiBase":"https://..."}\'',-1)])]))}},[["styles",[".fw-loader[data-v-ff8ed6a3]{width:100%;height:100%}.fw-loader-error[data-v-ff8ed6a3]{padding:10px 12px;background:#fef3c7;border:1px solid #fcd34d;border-radius:6px;font-family:monospace;font-size:12px;color:#78350f;max-width:360px}.fw-loader-error pre[data-v-ff8ed6a3]{background:#0000000d;padding:6px 8px;border-radius:4px;margin:6px 0 0;overflow-x:auto;white-space:pre-wrap;word-break:break-all}"]],["__scopeId","data-v-ff8ed6a3"]]),{configureApp(e){e.use(function(){const e=ne(!0),t=e.run(()=>St({}));let n=[],o=[];const s=yt({install(e){ii(s),s._a=e,e.provide(li,s),e.config.globalProperties.$pinia=s,o.forEach(e=>n.push(e)),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}())}});customElements.get("feedback-widget")||customElements.define("feedback-widget",ji);const Ti="fw-token";function Oi(){try{return localStorage.getItem(Ti)||""}catch{return""}}const Pi=ki("auth",{state:()=>({token:Oi(),user:null,authChecking:!1,authError:""}),getters:{isAuthed:e=>Boolean(e.user)},actions:{setToken(e){this.token=e||"";try{e?localStorage.setItem(Ti,e):localStorage.removeItem(Ti)}catch{}},setUser(e){this.user=e},reset(){this.setToken(""),this.user=null,this.authError=""}}});function Mi(){const e=un("apiBase"),t=Pi();function n(t){return`${((null==e?void 0:e.value)||"").replace(/\/$/,"")}${t}`}return{request:async function(e,{method:o="GET",body:s}={}){const r={"Content-Type":"application/json"};t.token&&(r.Authorization=`Bearer ${t.token}`);const i=await fetch(n(e),{method:o,headers:r,body:s?JSON.stringify(s):void 0});if(204===i.status)return null;const l=await i.text(),a=l?function(e){try{return JSON.parse(e)}catch{return null}}(l):null;if(!i.ok){const e=new Error((null==a?void 0:a.statusMessage)||(null==a?void 0:a.message)||`HTTP ${i.status}`);throw e.status=i.status,e.data=a,e}return a},url:n}}const Li=["data-project"],Fi={key:0,class:"fw-panel",role:"dialog","aria-label":"Feedback"},Ri={class:"fw-header"},Ii={class:"fw-title"},$i=["title"],Ni={class:"fw-header-right"},Vi={key:0,class:"fw-user"},Di=["aria-expanded"],Ui=["title"],Bi={key:0,class:"fw-alert fw-alert-error fw-alert-inline"},qi={key:0,class:"fw-alert fw-alert-error fw-alert-inline"},zi={key:1,class:"fw-project-banner"},Wi={key:2,class:"fw-body fw-auth"},Hi={class:"fw-auth-tabs"},Ki={class:"fw-field"},Ji={class:"fw-field"},Zi={key:0,class:"fw-alert fw-alert-error"},Gi=["disabled"],Yi={class:"fw-field"},Xi={class:"fw-field"},Qi={class:"fw-field"},el={key:0,class:"fw-alert fw-alert-error"},tl=["disabled"],nl={class:"fw-tabs",role:"tablist"},ol=["aria-selected"],sl=["aria-selected"],rl={key:0,class:"fw-count"},il={key:0,class:"fw-body"},ll={class:"fw-field"},al=["value"],cl={class:"fw-field"},ul={class:"fw-field"},fl={class:"fw-field"},dl={class:"fw-field"},pl={key:0,class:"fw-alert fw-alert-error"},hl={key:1,class:"fw-alert fw-alert-ok"},gl=["disabled"],vl={key:1,class:"fw-body"},ml={key:0,class:"fw-signin-cta"},bl={class:"fw-signin-cta-actions"},_l={key:1,class:"fw-empty"},yl={key:2,class:"fw-alert fw-alert-error"},wl={key:3,class:"fw-empty"},xl={key:4,class:"fw-list"},kl=["onClick"],Sl={class:"fw-item-title"},Cl={class:"fw-item-meta"},Al={key:0,class:"fw-item-body"},El={key:0},jl={key:1},Tl={key:2},Ol={key:3},Pl={key:4},Ml={key:5},Ll=["aria-expanded"],Fl={key:0,xmlns:"http://www.w3.org/2000/svg",height:"32",viewBox:"0 -960 960 960",width:"32",fill:"#1f1f1f",style:{display:"block",margin:"auto"}},Rl={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},Il=2e3,$l=Si({__name:"chat-bubble",setup(e){const t=un("projectId"),n=function(){const e=Pi(),t=Mi(),n=un("projectId"),o=St([]),s=St(!1),r=St(""),i=St(null),l=St("");async function a(){if(e.token){e.authChecking=!0,e.authError="";try{const n=await t.request("/api/auth/me");e.setUser(n.user)}catch(Vl){401===Vl.status?e.reset():e.authError=Vl.message}finally{e.authChecking=!1}}else e.setUser(null)}async function c(){if(e.isAuthed&&(null==n?void 0:n.value)){s.value=!0,r.value="";try{const e=await t.request(`/api/v1/feedback?project_id=${encodeURIComponent(n.value)}`);o.value=Array.isArray(e)?e:[]}catch(Vl){r.value=Vl.message||"Failed to load submissions"}finally{s.value=!1}}else o.value=[]}return{auth:e,projectId:Js(()=>(null==n?void 0:n.value)||""),project:i,projectError:l,loadProject:async function(){if(i.value=null,l.value="",null==n?void 0:n.value)try{const e=await t.request(`/api/v1/project/${encodeURIComponent(n.value)}`);i.value=e}catch(Vl){l.value=404===Vl.status?"Unknown project — check the projectId in profile-config.":Vl.message||"Failed to load project"}},submissions:o,submissionsLoading:s,submissionsError:r,refreshMe:a,login:async function({email:n,password:o}){const s=await t.request("/api/auth/login",{method:"POST",body:{email:n,password:o}});if(!(null==s?void 0:s.token))throw new Error("Server did not return a token");return e.setToken(s.token),e.setUser(s.user),s},register:async function({email:n,password:o,display_name:s}){const r=await t.request("/api/auth/register",{method:"POST",body:{email:n,password:o,display_name:s}});return(null==r?void 0:r.autoLoggedIn)&&r.token&&(e.setToken(r.token),e.setUser(r.user)),r},logout:function(){e.reset(),o.value=[]},loadSubmissions:c,submit:async function(o){if(!(null==n?void 0:n.value))throw new Error("Missing projectId");const s={project_id:n.value,...o,page_url:window.location.href,page_path:window.location.pathname,locale:navigator.language,referrer:document.referrer,client_context:{viewport:{w:window.innerWidth,h:window.innerHeight},screen:{w:screen.width,h:screen.height},dpr:window.devicePixelRatio,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,language:navigator.language,color_scheme:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",connection:(null==(r=navigator.connection)?void 0:r.effectiveType)||null,query:window.location.search,hash:window.location.hash}};var r;await t.request("/api/v1/feedback",{method:"POST",body:s}),e.isAuthed&&await c()},bindStorageSync:function(){const t=t=>{t.key===Ti&&(e.token=t.newValue||"",t.newValue?a().then(()=>e.isAuthed&&c()):(e.setUser(null),o.value=[]))};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}}}(),{auth:o,project:s,projectError:r,loadProject:i,submissions:l,submissionsLoading:a,submissionsError:c,refreshMe:u,login:f,register:d,logout:p,loadSubmissions:h,submit:g,bindStorageSync:v}=n,m=St(!1),b=St("submit"),_=St("tabs"),y=St("login"),w=St(!1),x=St(null),k=St(!1),S=St(""),C=St(!1),A=St(!1);function E(e="login"){y.value=e,o.authError="",_.value="auth"}function j(){_.value="tabs",o.authError=""}const T=[{value:"bug",label:"Bug Fix"},{value:"feature_addition",label:"New Feature Request"},{value:"feature_change",label:"Change Request to Existing Feature"}],O={new:"New",triage_needed:"Triage",in_progress:"In progress",rejected:"Rejected",accepted:"Accepted"},P=ft({email:"",password:""}),M=ft({email:"",password:"",display_name:""}),L=ft({feedback_sub_type:"bug",reported_element:"",problem_description:"",suggested_fix:"",tags:""}),F=un("apiBase"),R=Js(()=>Boolean(null==F?void 0:F.value));async function I(){w.value=!0,o.authError="";try{await f({email:P.email,password:P.password}),P.password="",_.value="tabs",b.value="mine",await h()}catch(Vl){o.authError=Vl.message||"Login failed"}finally{w.value=!1}}async function $(){w.value=!0,o.authError="";try{const e=await d({email:M.email,password:M.password,display_name:M.display_name});(null==e?void 0:e.requiresVerification)&&!e.autoLoggedIn?(o.authError="Check your email to verify, then log in.",y.value="login",P.email=M.email):(null==e?void 0:e.autoLoggedIn)&&(_.value="tabs",b.value="mine",await h()),M.password=""}catch(Vl){o.authError=Vl.message||"Registration failed"}finally{w.value=!1}}async function N(){S.value="",C.value=!1;const e=L.reported_element.trim()?L.problem_description.trim()?L.suggested_fix.trim()?"":"Suggested fix is required.":"Problem description is required.":"Reported element is required.";if(e)S.value=e;else{k.value=!0;try{await g({feedback_sub_type:L.feedback_sub_type,reported_element:L.reported_element.trim(),problem_description:L.problem_description.trim(),suggested_fix:L.suggested_fix.trim(),tags:L.tags.split(",").map(e=>e.trim()).filter(Boolean)}),C.value=!0,L.feedback_sub_type="bug",L.reported_element="",L.problem_description="",L.suggested_fix="",L.tags="",setTimeout(()=>{C.value=!1},2500)}catch(Vl){S.value=Vl.message||"Submit failed."}finally{k.value=!1}}}function V(e,t=60){return e?e.length>t?e.slice(0,t)+"…":e:""}function D(){A.value=!1,p()}function U(){A.value&&(A.value=!1)}let B=null;return Zn(()=>{B=v(),i(),o.token&&u().then(()=>o.isAuthed&&h()),document.addEventListener("click",U)}),Xn(()=>{B&&B(),document.removeEventListener("click",U)}),dn(()=>null==t?void 0:t.value,()=>{i(),o.isAuthed&&h()}),dn(m,e=>{e&&o.isAuthed&&!l.value.length&&h()}),(e,n)=>(hs(),bs("div",{class:"fw-root","data-project":At(t)},[Cs(lr,{name:"fw-panel"},{default:rn(()=>{var e,i,u,f,d;return[m.value?(hs(),bs("div",Fi,[Ss("header",Ri,[Ss("div",Ii,[n[21]||(n[21]=Ss("span",{class:"fw-dot"},null,-1)),n[22]||(n[22]=Ss("span",null,"Feedback",-1)),(null==(e=At(s))?void 0:e.name)?(hs(),bs("span",{key:0,class:"fw-project",title:At(t)}," · "+G(V(At(s).name,24)),9,$i)):js("",!0)]),Ss("div",Ni,[At(o).isAuthed?(hs(),bs("div",Vi,[Ss("button",{class:"fw-user-btn","aria-expanded":A.value,"aria-haspopup":"menu",onClick:n[0]||(n[0]=Qr(e=>A.value=!A.value,["stop"]))},[Es(G((null==(i=At(o).user)?void 0:i.display_name)||(null==(u=At(o).user)?void 0:u.email))+" ",1),Ss("span",{class:z(["fw-caret",{open:A.value}])},"▾",2)],8,Di),A.value?(hs(),bs("div",{key:0,class:"fw-user-menu",role:"menu",onClick:n[1]||(n[1]=Qr(()=>{},["stop"]))},[Ss("div",{class:"fw-user-menu-email",title:null==(f=At(o).user)?void 0:f.email},G(null==(d=At(o).user)?void 0:d.email),9,Ui),Ss("button",{class:"fw-user-menu-item",role:"menuitem",onClick:D},"Log out")])):js("",!0)])):"auth"!==_.value?(hs(),bs("button",{key:1,class:"fw-header-signin",type:"button",onClick:n[2]||(n[2]=e=>E("login"))},"Sign in")):js("",!0),Ss("button",{class:"fw-close","aria-label":"Close",onClick:n[3]||(n[3]=e=>m.value=!1)},"×")])]),R.value?(hs(),bs(as,{key:1},[At(r)?(hs(),bs("div",qi,G(At(r)),1)):js("",!0),At(s)?(hs(),bs("div",zi,[n[24]||(n[24]=Es(" Sending feedback to ",-1)),Ss("strong",null,G(At(s).name),1)])):js("",!0),"auth"===_.value?(hs(),bs("section",Wi,[Ss("button",{type:"button",class:"fw-back",onClick:j}," ← Back to feedback "),Ss("div",Hi,[Ss("button",{class:z({active:"login"===y.value}),onClick:n[4]||(n[4]=e=>{y.value="login",At(o).authError=""})},"Log in",2),Ss("button",{class:z({active:"register"===y.value}),onClick:n[5]||(n[5]=e=>{y.value="register",At(o).authError=""})},"Register",2)]),"login"===y.value?(hs(),bs("form",{key:0,onSubmit:Qr(I,["prevent"])},[Ss("label",Ki,[n[25]||(n[25]=Ss("span",null,"Email",-1)),ln(Ss("input",{"onUpdate:modelValue":n[6]||(n[6]=e=>P.email=e),type:"email",autocomplete:"email",required:""},null,512),[[Kr,P.email]])]),Ss("label",Ji,[n[26]||(n[26]=Ss("span",null,"Password",-1)),ln(Ss("input",{"onUpdate:modelValue":n[7]||(n[7]=e=>P.password=e),type:"password",autocomplete:"current-password",required:""},null,512),[[Kr,P.password]])]),At(o).authError?(hs(),bs("div",Zi,G(At(o).authError),1)):js("",!0),Ss("button",{class:"fw-submit",disabled:w.value,type:"submit"},G(w.value?"Signing in…":"Log in"),9,Gi)],32)):(hs(),bs("form",{key:1,onSubmit:Qr($,["prevent"])},[Ss("label",Yi,[n[27]||(n[27]=Ss("span",null,"Display name",-1)),ln(Ss("input",{"onUpdate:modelValue":n[8]||(n[8]=e=>M.display_name=e),type:"text",required:"",minlength:"2"},null,512),[[Kr,M.display_name]])]),Ss("label",Xi,[n[28]||(n[28]=Ss("span",null,"Email",-1)),ln(Ss("input",{"onUpdate:modelValue":n[9]||(n[9]=e=>M.email=e),type:"email",autocomplete:"email",required:""},null,512),[[Kr,M.email]])]),Ss("label",Qi,[n[29]||(n[29]=Ss("span",null,"Password",-1)),ln(Ss("input",{"onUpdate:modelValue":n[10]||(n[10]=e=>M.password=e),type:"password",autocomplete:"new-password",required:"",minlength:"8"},null,512),[[Kr,M.password]])]),At(o).authError?(hs(),bs("div",el,G(At(o).authError),1)):js("",!0),Ss("button",{class:"fw-submit",disabled:w.value,type:"submit"},G(w.value?"Creating…":"Create account"),9,tl)],32))])):(hs(),bs(as,{key:3},[Ss("nav",nl,[Ss("button",{role:"tab","aria-selected":"submit"===b.value,class:z({active:"submit"===b.value}),onClick:n[11]||(n[11]=e=>b.value="submit")},"Submit",10,ol),Ss("button",{role:"tab","aria-selected":"mine"===b.value,class:z({active:"mine"===b.value}),onClick:n[12]||(n[12]=e=>{b.value="mine",At(o).isAuthed&&At(h)()})},[n[30]||(n[30]=Es(" My Submissions ",-1)),At(o).isAuthed&&At(l).length?(hs(),bs("span",rl,G(At(l).length),1)):js("",!0)],10,sl)]),"submit"===b.value?(hs(),bs("section",il,[Ss("label",ll,[n[31]||(n[31]=Ss("span",null,"Type",-1)),ln(Ss("select",{"onUpdate:modelValue":n[13]||(n[13]=e=>L.feedback_sub_type=e)},[(hs(),bs(as,null,lo(T,e=>Ss("option",{key:e.value,value:e.value},G(e.label),9,al)),64))],512),[[Jr,L.feedback_sub_type]])]),Ss("label",cl,[n[32]||(n[32]=Ss("span",null,"What element are you reporting?",-1)),ln(Ss("input",{"onUpdate:modelValue":n[14]||(n[14]=e=>L.reported_element=e),type:"text",placeholder:"e.g. 'Save button on settings page'",maxlength:Il},null,512),[[Kr,L.reported_element]])]),Ss("label",ul,[n[33]||(n[33]=Ss("span",null,"What is the problem?",-1)),ln(Ss("textarea",{"onUpdate:modelValue":n[15]||(n[15]=e=>L.problem_description=e),rows:"3",placeholder:"What is broken, confusing, or could be better?",maxlength:Il},null,512),[[Kr,L.problem_description]])]),Ss("label",fl,[n[34]||(n[34]=Ss("span",null,"What fix do you suggest?",-1)),ln(Ss("textarea",{"onUpdate:modelValue":n[16]||(n[16]=e=>L.suggested_fix=e),rows:"3",placeholder:"How would you improve it?",maxlength:Il},null,512),[[Kr,L.suggested_fix]])]),Ss("label",dl,[n[35]||(n[35]=Ss("span",null,[Es("Tags "),Ss("em",null,"(comma-separated, optional)")],-1)),ln(Ss("input",{"onUpdate:modelValue":n[17]||(n[17]=e=>L.tags=e),type:"text",placeholder:"ux, mobile, blocker"},null,512),[[Kr,L.tags]])]),S.value?(hs(),bs("div",pl,G(S.value),1)):js("",!0),C.value?(hs(),bs("div",hl,"Thanks — feedback submitted.")):js("",!0),Ss("button",{class:"fw-submit",disabled:k.value,onClick:N},G(k.value?"Sending…":"Submit feedback"),9,gl)])):(hs(),bs("section",vl,[At(o).isAuthed?At(a)?(hs(),bs("div",_l,"Loading…")):At(c)?(hs(),bs("div",yl,G(At(c)),1)):At(l).length?(hs(),bs("ul",xl,[(hs(!0),bs(as,null,lo(At(l),e=>{var t,o;return hs(),bs("li",{key:e.id,class:z(["fw-item",{open:x.value===e.id}])},[Ss("button",{class:"fw-item-head",onClick:t=>{return n=e.id,void(x.value=x.value===n?null:n);var n}},[Ss("span",Sl,G(V(e.reported_element,48)),1),Ss("span",Cl,[Ss("span",{class:z(["fw-badge","fw-badge-"+e.status])},G(O[e.status]||e.status),3),Ss("time",null,G(new Date(e.created_at).toLocaleDateString()),1)])],8,kl),x.value===e.id?(hs(),bs("div",Al,[Ss("dl",null,[n[39]||(n[39]=Ss("dt",null,"Type",-1)),Ss("dd",null,G(e.feedback_sub_type),1),n[40]||(n[40]=Ss("dt",null,"Problem",-1)),Ss("dd",null,G(e.problem_description),1),n[41]||(n[41]=Ss("dt",null,"Suggested fix",-1)),Ss("dd",null,G(e.suggested_fix),1),(null==(t=e.tags)?void 0:t.length)?(hs(),bs("dt",El,"Tags")):js("",!0),(null==(o=e.tags)?void 0:o.length)?(hs(),bs("dd",jl,G(e.tags.join(", ")),1)):js("",!0),e.page_path?(hs(),bs("dt",Tl,"Page")):js("",!0),e.page_path?(hs(),bs("dd",Ol,G(e.page_path),1)):js("",!0),e.external_reference?(hs(),bs("dt",Pl,"Ref")):js("",!0),e.external_reference?(hs(),bs("dd",Ml,G(e.external_reference),1)):js("",!0)])])):js("",!0)],2)}),128))])):(hs(),bs("div",wl," No submissions yet on this project. ")):(hs(),bs("div",ml,[n[36]||(n[36]=Ss("div",{class:"fw-signin-cta-icon"},[Ss("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[Ss("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),Ss("circle",{cx:"12",cy:"7",r:"4"})])],-1)),n[37]||(n[37]=Ss("div",{class:"fw-signin-cta-title"}," Track your feedback ",-1)),n[38]||(n[38]=Ss("div",{class:"fw-signin-cta-body"}," Sign in or create an account to see your past submissions and track their status as the team works on them. ",-1)),Ss("div",bl,[Ss("button",{class:"fw-submit",type:"button",onClick:n[18]||(n[18]=e=>E("login"))}," Log in "),Ss("button",{class:"fw-submit fw-submit-ghost",type:"button",onClick:n[19]||(n[19]=e=>E("register"))}," Create account ")])]))]))],64))],64)):(hs(),bs("div",Bi,[...n[23]||(n[23]=[Ss("strong",null,"apiBase",-1),Es(" missing from ",-1),Ss("code",null,"profile-config",-1),Es(". ",-1)])]))])):js("",!0)]}),_:1}),Ss("button",{class:z(["fw-bubble",{open:m.value}]),"aria-expanded":m.value,"aria-label":"Open feedback",onClick:n[20]||(n[20]=e=>m.value=!m.value)},[m.value?(hs(),bs("svg",Rl,[...n[43]||(n[43]=[Ss("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])])):(hs(),bs("svg",Fl,[...n[42]||(n[42]=[Ss("path",{d:"M480-200q66 0 113-47t47-113v-160q0-66-47-113t-113-47q-66 0-113 47t-47 113v160q0 66 47 113t113 47Zm-80-120h160v-80H400v80Zm0-160h160v-80H400v80Zm80 40Zm0 320q-65 0-120.5-32T272-240H160v-80h84q-3-20-3.5-40t-.5-40h-80v-80h80q0-20 .5-40t3.5-40h-84v-80h112q14-23 31.5-43t40.5-35l-64-66 56-56 86 86q28-9 57-9t57 9l88-86 56 56-66 66q23 15 41.5 34.5T688-640h112v80h-84q3 20 3.5 40t.5 40h80v80h-80q0 20-.5 40t-3.5 40h84v80H688q-32 56-87.5 88T480-120Z"},null,-1)])]))],10,Ll)],8,Li))}},[["styles",[":host{all:initial;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:#1f2937}.fw-root{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.fw-bubble{width:52px;height:52px;border-radius:50%;border:none;background:#2563eb;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px #2563eb59;transition:transform .15s ease,background .15s ease}.fw-bubble:hover{background:#1d4ed8;transform:translateY(-1px)}.fw-bubble.open{background:#111827;box-shadow:0 6px 16px #00000040}.fw-panel{width:360px;max-width:calc(100vw - 40px);max-height:70vh;background:#fff;border-radius:12px;box-shadow:0 10px 30px #0000002e,0 2px 6px #00000014;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(0,0,0,.06)}.fw-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#111827;color:#fff;gap:8px}.fw-title{display:flex;align-items:center;gap:8px;font-weight:600;min-width:0}.fw-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #22c55e40;flex-shrink:0}.fw-project{font-weight:400;font-size:12px;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fw-header-right{display:flex;align-items:center;gap:8px}.fw-user{position:relative}.fw-user-btn{background:#ffffff1a;border:none;color:#fff;font-size:11px;padding:4px 8px;border-radius:4px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit}.fw-user-btn:hover{background:#fff3}.fw-caret{font-size:9px;opacity:.7;transition:transform .15s ease}.fw-caret.open{transform:rotate(180deg)}.fw-user-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:180px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 12px #0000001f;overflow:hidden;z-index:10}.fw-user-menu-email{padding:8px 12px;font-size:11px;color:#6b7280;background:#f9fafb;border-bottom:1px solid #e5e7eb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fw-user-menu-item{width:100%;padding:8px 12px;background:#fff;color:#111827;border:none;text-align:left;font:inherit;font-size:13px;cursor:pointer}.fw-user-menu-item:hover{background:#f3f4f6}.fw-bubble{width:52px;height:52px;border-radius:50%;border:none;background:#fff;color:#2563eb;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px #2563eb2e;padding:0;transition:transform .15s ease,background .15s ease}.fw-bubble:hover{background:#f3f4f6;transform:translateY(-1px) scale(1.04)}.fw-bubble.open{background:#e5e7eb;filter:grayscale(.5) opacity(.7)}.fw-bubble:hover{filter:brightness(1.08) drop-shadow(0 2px 8px #2563eb33);transform:translateY(-1px) scale(1.04)}.fw-bubble.open{filter:grayscale(.5) opacity(.7)}.fw-close{background:transparent;border:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0 4px;opacity:.75}.fw-close:hover{opacity:1}.fw-tabs{display:flex;border-bottom:1px solid #e5e7eb;background:#f9fafb}.fw-tabs button{flex:1;padding:10px 12px;border:none;background:transparent;cursor:pointer;font-size:13px;color:#6b7280;font-weight:500;border-bottom:2px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px}.fw-tabs button.active{color:#111827;border-bottom-color:#2563eb;background:#fff}.fw-count{background:#e5e7eb;color:#374151;font-size:11px;padding:1px 6px;border-radius:10px}.fw-body{padding:14px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.fw-project-banner{padding:8px 14px;background:#eff6ff;border-bottom:1px solid #dbeafe;font-size:12px;color:#1e40af}.fw-project-banner strong{color:#1e3a8a;font-weight:600}.fw-auth-tabs{display:flex;gap:4px;margin-bottom:8px}.fw-auth-tabs button{flex:1;padding:6px 8px;border:1px solid #e5e7eb;background:#fff;border-radius:6px;cursor:pointer;font-size:12px;color:#6b7280;font-weight:500}.fw-auth-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.fw-auth form{display:flex;flex-direction:column;gap:10px}.fw-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#374151}.fw-field span{font-weight:500}.fw-field em{font-style:normal;color:#9ca3af;font-weight:400}.fw-field input,.fw-field select,.fw-field textarea{font:inherit;color:#111827;padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;background:#fff;resize:vertical}.fw-field input:focus,.fw-field select:focus,.fw-field textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e}.fw-submit{margin-top:4px;padding:10px 12px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer}.fw-submit:hover{background:#1d4ed8}.fw-submit-ghost{background:#fff;color:#2563eb;border:1px solid #2563eb}.fw-submit-ghost:hover{background:#eff6ff}.fw-back{background:transparent;border:none;color:#6b7280;cursor:pointer;font:inherit;font-size:12px;padding:4px 6px;align-self:flex-start;border-radius:4px;margin-bottom:2px}.fw-back:hover{background:#f3f4f6;color:#111827}.fw-header-signin{background:#2563eb;color:#fff;border:none;font:inherit;font-size:11px;font-weight:600;padding:4px 10px;border-radius:4px;cursor:pointer}.fw-header-signin:hover{background:#1d4ed8}.fw-signin-cta{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:12px 6px}.fw-signin-cta-icon{width:52px;height:52px;border-radius:50%;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center}.fw-signin-cta-title{font-weight:600;font-size:14px;color:#111827}.fw-signin-cta-body{font-size:12px;color:#6b7280;line-height:1.5;max-width:280px}.fw-signin-cta-actions{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:4px}.fw-signin-cta-actions .fw-submit{width:100%}.fw-submit:disabled{background:#93c5fd;cursor:not-allowed}.fw-alert{padding:8px 10px;border-radius:6px;font-size:12px}.fw-alert-inline{margin:14px 14px 0}.fw-alert-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.fw-alert-ok{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}.fw-empty{padding:24px 8px;color:#9ca3af;text-align:center;font-size:13px}.fw-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.fw-item{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff}.fw-item.open{border-color:#c7d2fe}.fw-item-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:none;background:transparent;cursor:pointer;text-align:left;font:inherit;color:inherit}.fw-item-head:hover{background:#f9fafb}.fw-item-title{font-weight:500;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fw-item-meta{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:11px;color:#6b7280}.fw-badge{padding:2px 7px;border-radius:10px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.fw-badge-new{background:#dbeafe;color:#1d4ed8}.fw-badge-triage_needed{background:#fef3c7;color:#92400e}.fw-badge-in_progress{background:#ede9fe;color:#5b21b6}.fw-badge-rejected{background:#fee2e2;color:#991b1b}.fw-badge-accepted{background:#dcfce7;color:#166534}.fw-item-body{padding:0 12px 12px;font-size:12px;color:#374151}.fw-item-body dl{display:grid;grid-template-columns:90px 1fr;gap:4px 10px;margin:0}.fw-item-body dt{color:#6b7280;font-weight:500}.fw-item-body dd{margin:0;word-break:break-word}.fw-panel-enter-active,.fw-panel-leave-active{transition:opacity .15s ease,transform .15s ease}.fw-panel-enter-from,.fw-panel-leave-to{opacity:0;transform:translateY(8px)}"]]]),Nl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"}));return ji}();