sm-click-library-ui 0.0.448 → 0.0.450

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- (function(tt,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(tt=typeof globalThis<"u"?globalThis:tt||self,e(tt["sm-click-library-ui"]={},tt.Vue,tt.Pinia))})(this,function(tt,e,Dt){"use strict";function zi(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ho(t){return typeof t=="function"?t():e.unref(t)}const po=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ji=Object.prototype.toString,Gi=t=>ji.call(t)==="[object Object]",Sn=()=>{},Ii=qi();function qi(){var t,n;return po&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sn(t){var n;const a=ho(t);return(n=a==null?void 0:a.$el)!=null?n:a}const go=po?window:void 0;function ca(...t){let n,a,o,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([a,o,r]=t,n=go):[n,a,o,r]=t,!n)return Sn;Array.isArray(a)||(a=[a]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},l=(d,h,f,g)=>(d.addEventListener(h,f,g),()=>d.removeEventListener(h,f,g)),c=e.watch(()=>[sn(n),ho(r)],([d,h])=>{if(s(),!d)return;const f=Gi(h)?{...h}:h;i.push(...a.flatMap(g=>o.map(m=>l(d,g,m,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return zi(u),u}let yo=!1;function Bn(t,n,a={}){const{window:o=go,ignore:r=[],capture:i=!0,detectIframe:s=!1}=a;if(!o)return Sn;Ii&&!yo&&(yo=!0,Array.from(o.document.body.children).forEach(f=>f.addEventListener("click",Sn)),o.document.documentElement.addEventListener("click",Sn));let l=!0;const c=f=>r.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(m=>m===f.target||f.composedPath().includes(m));{const m=sn(g);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[ca(o,"click",f=>{const g=sn(t);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(l=!c(f)),!l){l=!0;return}n(f)}},{passive:!0,capture:i}),ca(o,"pointerdown",f=>{const g=sn(t);l=!c(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),s&&ca(o,"blur",f=>{setTimeout(()=>{var g;const m=sn(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(m!=null&&m.contains(o.document.activeElement))&&n(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const we=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},Wi={class:"line-clamp-2 uppercase text-xs truncate text-white"},Ui={key:0,class:"select_widget_lib"},ko=we({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:n}){const a=t,o=e.ref(!1),r=e.ref(null);e.computed(()=>a.selectConfig.some(l=>l.freeSlot));const i=()=>{o.value=!o.value};return Bn(r,()=>{o.value&&(o.value=!1)}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:r,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[e.createElementVNode("p",Wi,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...c[0]||(c[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)])],2))])]),o.value?(e.openBlock(),e.createElementBlock("section",Ui,[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-265f04f1"]]),Zi={key:0,class:"modal_head"},Yi={class:"modal_responsive"},Xi={class:"flex min-h-full items-center justify-center text-center sm:p-0"},Ki={class:"modal_tittle text-current bg-base-300 border-base-100"},Qi={class:"flex items-center gap-3"},Ji=["innerHTML"],es={class:"text-xl font-semibold flex items-center gap-2"},ts={class:"bg-base-200"},ns={class:"text-center"},as={class:"modal_end_button border-base-100 bg-base-300"},xo=we({__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(t,{emit:n}){const a=t,o=n,r=()=>{o("update:isOpen",!a.isOpen),a.isOpen&&o("close")};return(i,s)=>(e.openBlock(),e.createBlock(e.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>{var l,c;return[t.isOpen?(e.openBlock(),e.createElementBlock("div",Zi,[s[2]||(s[2]=e.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e.createElementVNode("div",Yi,[e.createElementVNode("div",Xi,[e.createElementVNode("div",{class:e.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",t.size])},[e.createElementVNode("div",Ki,[e.createElementVNode("section",Qi,[e.createElementVNode("div",{innerHTML:(l=t.header)==null?void 0:l.svg},null,8,Ji),e.createElementVNode("div",null,[e.createElementVNode("h3",es,[e.createElementVNode("p",null,e.toDisplayString((c=t.header)==null?void 0:c.title),1)]),e.createElementVNode("div",null,[e.renderSlot(i.$slots,"header",{},void 0,!0)])])]),e.createElementVNode("button",{onClick:s[0]||(s[0]=u=>r()),class:"modal_close_button bg-base-200/40"},[...s[1]||(s[1]=[e.createElementVNode("svg",{class:"size-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])])]),e.createElementVNode("div",ts,[e.createElementVNode("div",ns,[e.renderSlot(i.$slots,"body",{},void 0,!0)])]),e.createElementVNode("div",as,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):e.createCommentVNode("",!0)]}),_:3}))}},[["__scopeId","data-v-943d3e1c"]]),os={class:"simple_card_header"},rs={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},is={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},ss={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},ls={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},cs={class:"simple_card_title"},ds={class:"simple_card_descripiton"},bo={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(t){const n=t,a=e.computed(()=>({simple_card_success:n.typeCard==="success",simple_card_info:n.typeCard==="info",simple_card_alert:n.typeCard==="alert",simple_card_error:n.typeCard==="error"}));return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.value,"simple_card"])},[e.createElementVNode("div",os,[t.typeCard==="success"?(e.openBlock(),e.createElementBlock("svg",rs,[...r[0]||(r[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)])])):e.createCommentVNode("",!0),t.typeCard==="info"?(e.openBlock(),e.createElementBlock("svg",is,[...r[1]||(r[1]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)])])):e.createCommentVNode("",!0),t.typeCard==="alert"?(e.openBlock(),e.createElementBlock("svg",ss,[...r[2]||(r[2]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)])])):e.createCommentVNode("",!0),t.typeCard==="error"?(e.openBlock(),e.createElementBlock("svg",ls,[...r[3]||(r[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("p",cs,e.toDisplayString(t.content.title),1)]),e.createElementVNode("section",ds,[e.createElementVNode("p",null,e.toDisplayString(t.content.description),1)])],2))}};function wo(t,n){return function(){return t.apply(n,arguments)}}const{toString:us}=Object.prototype,{getPrototypeOf:da}=Object,{iterator:Vn,toStringTag:Eo}=Symbol,Mn=(t=>n=>{const a=us.call(n);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),ut=t=>(t=t.toLowerCase(),n=>Mn(n)===t),Nn=t=>n=>typeof n===t,{isArray:It}=Array,qt=Nn("undefined");function ln(t){return t!==null&&!qt(t)&&t.constructor!==null&&!qt(t.constructor)&&nt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const vo=ut("ArrayBuffer");function ms(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&vo(t.buffer),n}const fs=Nn("string"),nt=Nn("function"),Co=Nn("number"),cn=t=>t!==null&&typeof t=="object",hs=t=>t===!0||t===!1,An=t=>{if(Mn(t)!=="object")return!1;const n=da(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Eo in t)&&!(Vn in t)},ps=t=>{if(!cn(t)||ln(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},gs=ut("Date"),ys=ut("File"),ks=ut("Blob"),xs=ut("FileList"),bs=t=>cn(t)&&nt(t.pipe),ws=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||nt(t.append)&&((n=Mn(t))==="formdata"||n==="object"&&nt(t.toString)&&t.toString()==="[object FormData]"))},Es=ut("URLSearchParams"),[vs,Cs,Ss,Bs]=["ReadableStream","Request","Response","Headers"].map(ut),Vs=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(t,n,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),It(t))for(o=0,r=t.length;o<r;o++)n.call(null,t[o],o,t);else{if(ln(t))return;const i=a?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(o=0;o<s;o++)l=i[o],n.call(null,t[l],l,t)}}function So(t,n){if(ln(t))return null;n=n.toLowerCase();const a=Object.keys(t);let o=a.length,r;for(;o-- >0;)if(r=a[o],n===r.toLowerCase())return r;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bo=t=>!qt(t)&&t!==Lt;function ua(){const{caseless:t,skipUndefined:n}=Bo(this)&&this||{},a={},o=(r,i)=>{const s=t&&So(a,i)||i;An(a[s])&&An(r)?a[s]=ua(a[s],r):An(r)?a[s]=ua({},r):It(r)?a[s]=r.slice():(!n||!qt(r))&&(a[s]=r)};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&dn(arguments[r],o);return a}const Ms=(t,n,a,{allOwnKeys:o}={})=>(dn(n,(r,i)=>{a&&nt(r)?t[i]=wo(r,a):t[i]=r},{allOwnKeys:o}),t),Ns=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),As=(t,n,a,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),a&&Object.assign(t.prototype,a)},Ts=(t,n,a,o)=>{let r,i,s;const l={};if(n=n||{},t==null)return n;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)s=r[i],(!o||o(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=a!==!1&&da(t)}while(t&&(!a||a(t,n))&&t!==Object.prototype);return n},Ds=(t,n,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=n.length;const o=t.indexOf(n,a);return o!==-1&&o===a},Ls=t=>{if(!t)return null;if(It(t))return t;let n=t.length;if(!Co(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=t[n];return a},Fs=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&da(Uint8Array)),$s=(t,n)=>{const o=(t&&t[Vn]).call(t);let r;for(;(r=o.next())&&!r.done;){const i=r.value;n.call(t,i[0],i[1])}},Ps=(t,n)=>{let a;const o=[];for(;(a=t.exec(n))!==null;)o.push(a);return o},Os=ut("HTMLFormElement"),_s=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,r){return o.toUpperCase()+r}),Vo=(({hasOwnProperty:t})=>(n,a)=>t.call(n,a))(Object.prototype),Rs=ut("RegExp"),Mo=(t,n)=>{const a=Object.getOwnPropertyDescriptors(t),o={};dn(a,(r,i)=>{let s;(s=n(r,i,t))!==!1&&(o[i]=s||r)}),Object.defineProperties(t,o)},Hs=t=>{Mo(t,(n,a)=>{if(nt(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(nt(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},zs=(t,n)=>{const a={},o=r=>{r.forEach(i=>{a[i]=!0})};return It(t)?o(t):o(String(t).split(n)),a},js=()=>{},Gs=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function Is(t){return!!(t&&nt(t.append)&&t[Eo]==="FormData"&&t[Vn])}const qs=t=>{const n=new Array(10),a=(o,r)=>{if(cn(o)){if(n.indexOf(o)>=0)return;if(ln(o))return o;if(!("toJSON"in o)){n[r]=o;const i=It(o)?[]:{};return dn(o,(s,l)=>{const c=a(s,r+1);!qt(c)&&(i[l]=c)}),n[r]=void 0,i}}return o};return a(t,0)},Ws=ut("AsyncFunction"),Us=t=>t&&(cn(t)||nt(t))&&nt(t.then)&&nt(t.catch),No=((t,n)=>t?setImmediate:n?((a,o)=>(Lt.addEventListener("message",({source:r,data:i})=>{r===Lt&&i===a&&o.length&&o.shift()()},!1),r=>{o.push(r),Lt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",nt(Lt.postMessage)),Zs=typeof queueMicrotask<"u"?queueMicrotask.bind(Lt):typeof process<"u"&&process.nextTick||No,U={isArray:It,isArrayBuffer:vo,isBuffer:ln,isFormData:ws,isArrayBufferView:ms,isString:fs,isNumber:Co,isBoolean:hs,isObject:cn,isPlainObject:An,isEmptyObject:ps,isReadableStream:vs,isRequest:Cs,isResponse:Ss,isHeaders:Bs,isUndefined:qt,isDate:gs,isFile:ys,isBlob:ks,isRegExp:Rs,isFunction:nt,isStream:bs,isURLSearchParams:Es,isTypedArray:Fs,isFileList:xs,forEach:dn,merge:ua,extend:Ms,trim:Vs,stripBOM:Ns,inherits:As,toFlatObject:Ts,kindOf:Mn,kindOfTest:ut,endsWith:Ds,toArray:Ls,forEachEntry:$s,matchAll:Ps,isHTMLForm:Os,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Mo,freezeMethods:Hs,toObjectSet:zs,toCamelCase:_s,noop:js,toFiniteNumber:Gs,findKey:So,global:Lt,isContextDefined:Bo,isSpecCompliantForm:Is,toJSONObject:qs,isAsyncFn:Ws,isThenable:Us,setImmediate:No,asap:Zs,isIterable:t=>t!=null&&nt(t[Vn])};function Se(t,n,a,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}U.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.status}}});const Ao=Se.prototype,To={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{To[t]={value:t}}),Object.defineProperties(Se,To),Object.defineProperty(Ao,"isAxiosError",{value:!0}),Se.from=(t,n,a,o,r,i)=>{const s=Object.create(Ao);U.toFlatObject(t,s,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=t&&t.message?t.message:"Error",c=n==null&&t?t.code:n;return Se.call(s,l,c,a,o,r),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",i&&Object.assign(s,i),s};const Ys=null;function ma(t){return U.isPlainObject(t)||U.isArray(t)}function Do(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function Lo(t,n,a){return t?t.concat(n).map(function(r,i){return r=Do(r),!a&&i?"["+r+"]":r}).join(a?".":""):n}function Xs(t){return U.isArray(t)&&!t.some(ma)}const Ks=U.toFlatObject(U,{},null,function(n){return/^is[A-Z]/.test(n)});function Tn(t,n,a){if(!U.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,a=U.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!U.isUndefined(y[p])});const o=a.metaTokens,r=a.visitor||d,i=a.dots,s=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(n);if(!U.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(U.isDate(m))return m.toISOString();if(U.isBoolean(m))return m.toString();if(!c&&U.isBlob(m))throw new Se("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(m)||U.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,y){let k=m;if(m&&!y&&typeof m=="object"){if(U.endsWith(p,"{}"))p=o?p:p.slice(0,-2),m=JSON.stringify(m);else if(U.isArray(m)&&Xs(m)||(U.isFileList(m)||U.endsWith(p,"[]"))&&(k=U.toArray(m)))return p=Do(p),k.forEach(function(x,C){!(U.isUndefined(x)||x===null)&&n.append(s===!0?Lo([p],C,i):s===null?p:p+"[]",u(x))}),!1}return ma(m)?!0:(n.append(Lo(y,p,i),u(m)),!1)}const h=[],f=Object.assign(Ks,{defaultVisitor:d,convertValue:u,isVisitable:ma});function g(m,p){if(!U.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(m),U.forEach(m,function(k,b){(!(U.isUndefined(k)||k===null)&&r.call(n,k,U.isString(b)?b.trim():b,p,f))===!0&&g(k,p?p.concat(b):[b])}),h.pop()}}if(!U.isObject(t))throw new TypeError("data must be an object");return g(t),n}function Fo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function fa(t,n){this._pairs=[],t&&Tn(t,this,n)}const $o=fa.prototype;$o.append=function(n,a){this._pairs.push([n,a])},$o.toString=function(n){const a=n?function(o){return n.call(this,o,Fo)}:Fo;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function Qs(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Po(t,n,a){if(!n)return t;const o=a&&a.encode||Qs;U.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let i;if(r?i=r(n,a):i=U.isURLSearchParams(n)?n.toString():new fa(n,a).toString(o),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Oo{constructor(){this.handlers=[]}use(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){U.forEach(this.handlers,function(o){o!==null&&n(o)})}}const _o={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Js={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:fa,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ha=typeof window<"u"&&typeof document<"u",pa=typeof navigator=="object"&&navigator||void 0,e0=ha&&(!pa||["ReactNative","NativeScript","NS"].indexOf(pa.product)<0),t0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n0=ha&&window.location.href||"http://localhost",Ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ha,hasStandardBrowserEnv:e0,hasStandardBrowserWebWorkerEnv:t0,navigator:pa,origin:n0},Symbol.toStringTag,{value:"Module"})),...Js};function a0(t,n){return Tn(t,new Ue.classes.URLSearchParams,{visitor:function(a,o,r,i){return Ue.isNode&&U.isBuffer(a)?(this.append(o,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...n})}function o0(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function r0(t){const n={},a=Object.keys(t);let o;const r=a.length;let i;for(o=0;o<r;o++)i=a[o],n[i]=t[i];return n}function Ro(t){function n(a,o,r,i){let s=a[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=a.length;return s=!s&&U.isArray(r)?r.length:s,c?(U.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!l):((!r[s]||!U.isObject(r[s]))&&(r[s]=[]),n(a,o,r[s],i)&&U.isArray(r[s])&&(r[s]=r0(r[s])),!l)}if(U.isFormData(t)&&U.isFunction(t.entries)){const a={};return U.forEachEntry(t,(o,r)=>{n(o0(o),r,a,0)}),a}return null}function i0(t,n,a){if(U.isString(t))try{return(n||JSON.parse)(t),U.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const un={transitional:_o,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const o=a.getContentType()||"",r=o.indexOf("application/json")>-1,i=U.isObject(n);if(i&&U.isHTMLForm(n)&&(n=new FormData(n)),U.isFormData(n))return r?JSON.stringify(Ro(n)):n;if(U.isArrayBuffer(n)||U.isBuffer(n)||U.isStream(n)||U.isFile(n)||U.isBlob(n)||U.isReadableStream(n))return n;if(U.isArrayBufferView(n))return n.buffer;if(U.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return a0(n,this.formSerializer).toString();if((l=U.isFileList(n))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Tn(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),i0(n)):n}],transformResponse:[function(n){const a=this.transitional||un.transitional,o=a&&a.forcedJSONParsing,r=this.responseType==="json";if(U.isResponse(n)||U.isReadableStream(n))return n;if(n&&U.isString(n)&&(o&&!this.responseType||r)){const s=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?Se.from(l,Se.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],t=>{un.headers[t]={}});const s0=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l0=t=>{const n={};let a,o,r;return t&&t.split(`
2
- `).forEach(function(s){r=s.indexOf(":"),a=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!a||n[a]&&s0[a])&&(a==="set-cookie"?n[a]?n[a].push(o):n[a]=[o]:n[a]=n[a]?n[a]+", "+o:o)}),n},Ho=Symbol("internals");function mn(t){return t&&String(t).trim().toLowerCase()}function Dn(t){return t===!1||t==null?t:U.isArray(t)?t.map(Dn):String(t)}function c0(t){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)n[o[1]]=o[2];return n}const d0=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ga(t,n,a,o,r){if(U.isFunction(o))return o.call(this,n,a);if(r&&(n=a),!!U.isString(n)){if(U.isString(o))return n.indexOf(o)!==-1;if(U.isRegExp(o))return o.test(n)}}function u0(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,o)=>a.toUpperCase()+o)}function m0(t,n){const a=U.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(r,i,s){return this[o].call(this,n,r,i,s)},configurable:!0})})}let at=class{constructor(n){n&&this.set(n)}set(n,a,o){const r=this;function i(l,c,u){const d=mn(c);if(!d)throw new Error("header name must be a non-empty string");const h=U.findKey(r,d);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||c]=Dn(l))}const s=(l,c)=>U.forEach(l,(u,d)=>i(u,d,c));if(U.isPlainObject(n)||n instanceof this.constructor)s(n,a);else if(U.isString(n)&&(n=n.trim())&&!d0(n))s(l0(n),a);else if(U.isObject(n)&&U.isIterable(n)){let l={},c,u;for(const d of n){if(!U.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?U.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}s(l,a)}else n!=null&&i(a,n,o);return this}get(n,a){if(n=mn(n),n){const o=U.findKey(this,n);if(o){const r=this[o];if(!a)return r;if(a===!0)return c0(r);if(U.isFunction(a))return a.call(this,r,o);if(U.isRegExp(a))return a.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=mn(n),n){const o=U.findKey(this,n);return!!(o&&this[o]!==void 0&&(!a||ga(this,this[o],o,a)))}return!1}delete(n,a){const o=this;let r=!1;function i(s){if(s=mn(s),s){const l=U.findKey(o,s);l&&(!a||ga(o,o[l],l,a))&&(delete o[l],r=!0)}}return U.isArray(n)?n.forEach(i):i(n),r}clear(n){const a=Object.keys(this);let o=a.length,r=!1;for(;o--;){const i=a[o];(!n||ga(this,this[i],i,n,!0))&&(delete this[i],r=!0)}return r}normalize(n){const a=this,o={};return U.forEach(this,(r,i)=>{const s=U.findKey(o,i);if(s){a[s]=Dn(r),delete a[i];return}const l=n?u0(i):String(i).trim();l!==i&&delete a[i],a[l]=Dn(r),o[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return U.forEach(this,(o,r)=>{o!=null&&o!==!1&&(a[r]=n&&U.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const o=new this(n);return a.forEach(r=>o.set(r)),o}static accessor(n){const o=(this[Ho]=this[Ho]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=mn(s);o[l]||(m0(r,s),o[l]=!0)}return U.isArray(n)?n.forEach(i):i(n),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(at.prototype,({value:t},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[a]=o}}}),U.freezeMethods(at);function ya(t,n){const a=this||un,o=n||a,r=at.from(o.headers);let i=o.data;return U.forEach(t,function(l){i=l.call(a,i,r.normalize(),n?n.status:void 0)}),r.normalize(),i}function zo(t){return!!(t&&t.__CANCEL__)}function Wt(t,n,a){Se.call(this,t??"canceled",Se.ERR_CANCELED,n,a),this.name="CanceledError"}U.inherits(Wt,Se,{__CANCEL__:!0});function jo(t,n,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):n(new Se("Request failed with status code "+a.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function f0(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function h0(t,n){t=t||10;const a=new Array(t),o=new Array(t);let r=0,i=0,s;return n=n!==void 0?n:1e3,function(c){const u=Date.now(),d=o[i];s||(s=u),a[r]=c,o[r]=u;let h=i,f=0;for(;h!==r;)f+=a[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-s<n)return;const g=d&&u-d;return g?Math.round(f*1e3/g):void 0}}function p0(t,n){let a=0,o=1e3/n,r,i;const s=(u,d=Date.now())=>{a=d,r=null,i&&(clearTimeout(i),i=null),t(...u)};return[(...u)=>{const d=Date.now(),h=d-a;h>=o?s(u,d):(r=u,i||(i=setTimeout(()=>{i=null,s(r)},o-h)))},()=>r&&s(r)]}const Ln=(t,n,a=3)=>{let o=0;const r=h0(50,250);return p0(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-o,u=r(c),d=s<=l;o=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[n?"download":"upload"]:!0};t(h)},a)},Go=(t,n)=>{const a=t!=null;return[o=>n[0]({lengthComputable:a,total:t,loaded:o}),n[1]]},Io=t=>(...n)=>U.asap(()=>t(...n)),g0=Ue.hasStandardBrowserEnv?((t,n)=>a=>(a=new URL(a,Ue.origin),t.protocol===a.protocol&&t.host===a.host&&(n||t.port===a.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,y0=Ue.hasStandardBrowserEnv?{write(t,n,a,o,r,i,s){if(typeof document>"u")return;const l=[`${t}=${encodeURIComponent(n)}`];U.isNumber(a)&&l.push(`expires=${new Date(a).toUTCString()}`),U.isString(o)&&l.push(`path=${o}`),U.isString(r)&&l.push(`domain=${r}`),i===!0&&l.push("secure"),U.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function k0(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function x0(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function qo(t,n,a){let o=!k0(n);return t&&(o||a==!1)?x0(t,n):n}const Wo=t=>t instanceof at?{...t}:t;function Ft(t,n){n=n||{};const a={};function o(u,d,h,f){return U.isPlainObject(u)&&U.isPlainObject(d)?U.merge.call({caseless:f},u,d):U.isPlainObject(d)?U.merge({},d):U.isArray(d)?d.slice():d}function r(u,d,h,f){if(U.isUndefined(d)){if(!U.isUndefined(u))return o(void 0,u,h,f)}else return o(u,d,h,f)}function i(u,d){if(!U.isUndefined(d))return o(void 0,d)}function s(u,d){if(U.isUndefined(d)){if(!U.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function l(u,d,h){if(h in n)return o(u,d);if(h in t)return o(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,h)=>r(Wo(u),Wo(d),h,!0)};return U.forEach(Object.keys({...t,...n}),function(d){const h=c[d]||r,f=h(t[d],n[d],d);U.isUndefined(f)&&h!==l||(a[d]=f)}),a}const Uo=t=>{const n=Ft({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=n;if(n.headers=s=at.from(s),n.url=Po(qo(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(a)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(U.isFunction(a.getHeaders)){const c=a.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{u.includes(d.toLowerCase())&&s.set(d,h)})}}if(Ue.hasStandardBrowserEnv&&(o&&U.isFunction(o)&&(o=o(n)),o||o!==!1&&g0(n.url))){const c=r&&i&&y0.read(i);c&&s.set(r,c)}return n},b0=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(a,o){const r=Uo(t);let i=r.data;const s=at.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,d,h,f,g,m;function p(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function k(){if(!y)return;const x=at.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),M={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:t,request:y};jo(function(H){a(H),p()},function(H){o(H),p()},M),y=null}"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(k)},y.onabort=function(){y&&(o(new Se("Request aborted",Se.ECONNABORTED,t,y)),y=null)},y.onerror=function(C){const M=C&&C.message?C.message:"Network Error",D=new Se(M,Se.ERR_NETWORK,t,y);D.event=C||null,o(D),y=null},y.ontimeout=function(){let C=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||_o;r.timeoutErrorMessage&&(C=r.timeoutErrorMessage),o(new Se(C,M.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,t,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&U.forEach(s.toJSON(),function(C,M){y.setRequestHeader(M,C)}),U.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),l&&l!=="json"&&(y.responseType=r.responseType),u&&([f,m]=Ln(u,!0),y.addEventListener("progress",f)),c&&y.upload&&([h,g]=Ln(c),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(d=x=>{y&&(o(!x||x.type?new Wt(null,t,y):x),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=f0(r.url);if(b&&Ue.protocols.indexOf(b)===-1){o(new Se("Unsupported protocol "+b+":",Se.ERR_BAD_REQUEST,t));return}y.send(i||null)})},w0=(t,n)=>{const{length:a}=t=t?t.filter(Boolean):[];if(n||a){let o=new AbortController,r;const i=function(u){if(!r){r=!0,l();const d=u instanceof Error?u:this.reason;o.abort(d instanceof Se?d:new Wt(d instanceof Error?d.message:d))}};let s=n&&setTimeout(()=>{s=null,i(new Se(`timeout ${n} of ms exceeded`,Se.ETIMEDOUT))},n);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:c}=o;return c.unsubscribe=()=>U.asap(l),c}},E0=function*(t,n){let a=t.byteLength;if(a<n){yield t;return}let o=0,r;for(;o<a;)r=o+n,yield t.slice(o,r),o=r},v0=async function*(t,n){for await(const a of C0(t))yield*E0(a,n)},C0=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:a,value:o}=await n.read();if(a)break;yield o}}finally{await n.cancel()}},Zo=(t,n,a,o)=>{const r=v0(t,n);let i=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await r.next();if(u){l(),c.close();return}let h=d.byteLength;if(a){let f=i+=h;a(f)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Yo=64*1024,{isFunction:Fn}=U,S0=(({Request:t,Response:n})=>({Request:t,Response:n}))(U.global),{ReadableStream:Xo,TextEncoder:Ko}=U.global,Qo=(t,...n)=>{try{return!!t(...n)}catch{return!1}},B0=t=>{t=U.merge.call({skipUndefined:!0},S0,t);const{fetch:n,Request:a,Response:o}=t,r=n?Fn(n):typeof fetch=="function",i=Fn(a),s=Fn(o);if(!r)return!1;const l=r&&Fn(Xo),c=r&&(typeof Ko=="function"?(m=>p=>m.encode(p))(new Ko):async m=>new Uint8Array(await new a(m).arrayBuffer())),u=i&&l&&Qo(()=>{let m=!1;const p=new a(Ue.origin,{body:new Xo,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!p}),d=s&&l&&Qo(()=>U.isReadableStream(new o("").body)),h={stream:d&&(m=>m.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(p,y)=>{let k=p&&p[m];if(k)return k.call(p);throw new Se(`Response type '${m}' is not supported`,Se.ERR_NOT_SUPPORT,y)})});const f=async m=>{if(m==null)return 0;if(U.isBlob(m))return m.size;if(U.isSpecCompliantForm(m))return(await new a(Ue.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(U.isArrayBufferView(m)||U.isArrayBuffer(m))return m.byteLength;if(U.isURLSearchParams(m)&&(m=m+""),U.isString(m))return(await c(m)).byteLength},g=async(m,p)=>{const y=U.toFiniteNumber(m.getContentLength());return y??f(p)};return async m=>{let{url:p,method:y,data:k,signal:b,cancelToken:x,timeout:C,onDownloadProgress:M,onUploadProgress:D,responseType:H,headers:S,withCredentials:w="same-origin",fetchOptions:T}=Uo(m),V=n||fetch;H=H?(H+"").toLowerCase():"text";let N=w0([b,x&&x.toAbortSignal()],C),B=null;const v=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let P;try{if(D&&u&&y!=="get"&&y!=="head"&&(P=await g(S,k))!==0){let _=new a(p,{method:"POST",body:k,duplex:"half"}),oe;if(U.isFormData(k)&&(oe=_.headers.get("content-type"))&&S.setContentType(oe),_.body){const[de,pe]=Go(P,Ln(Io(D)));k=Zo(_.body,Yo,de,pe)}}U.isString(w)||(w=w?"include":"omit");const Z=i&&"credentials"in a.prototype,Q={...T,signal:N,method:y.toUpperCase(),headers:S.normalize().toJSON(),body:k,duplex:"half",credentials:Z?w:void 0};B=i&&new a(p,Q);let J=await(i?V(B,T):V(p,Q));const O=d&&(H==="stream"||H==="response");if(d&&(M||O&&v)){const _={};["status","statusText","headers"].forEach(ye=>{_[ye]=J[ye]});const oe=U.toFiniteNumber(J.headers.get("content-length")),[de,pe]=M&&Go(oe,Ln(Io(M),!0))||[];J=new o(Zo(J.body,Yo,de,()=>{pe&&pe(),v&&v()}),_)}H=H||"text";let R=await h[U.findKey(h,H)||"text"](J,m);return!O&&v&&v(),await new Promise((_,oe)=>{jo(_,oe,{data:R,headers:at.from(J.headers),status:J.status,statusText:J.statusText,config:m,request:B})})}catch(Z){throw v&&v(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,m,B),{cause:Z.cause||Z}):Se.from(Z,Z&&Z.code,m,B)}}},V0=new Map,Jo=t=>{let n=t&&t.env||{};const{fetch:a,Request:o,Response:r}=n,i=[o,r,a];let s=i.length,l=s,c,u,d=V0;for(;l--;)c=i[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:B0(n)),d=u;return u};Jo();const ka={http:Ys,xhr:b0,fetch:{get:Jo}};U.forEach(ka,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const er=t=>`- ${t}`,M0=t=>U.isFunction(t)||t===null||t===!1;function N0(t,n){t=U.isArray(t)?t:[t];const{length:a}=t;let o,r;const i={};for(let s=0;s<a;s++){o=t[s];let l;if(r=o,!M0(o)&&(r=ka[(l=String(o)).toLowerCase()],r===void 0))throw new Se(`Unknown adapter '${l}'`);if(r&&(U.isFunction(r)||(r=r.get(n))))break;i[l||"#"+s]=r}if(!r){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=a?s.length>1?`since :
4
- `+s.map(er).join(`
5
- `):" "+er(s[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const tr={getAdapter:N0,adapters:ka};function xa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wt(null,t)}function nr(t){return xa(t),t.headers=at.from(t.headers),t.data=ya.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tr.getAdapter(t.adapter||un.adapter,t)(t).then(function(o){return xa(t),o.data=ya.call(t,t.transformResponse,o),o.headers=at.from(o.headers),o},function(o){return zo(o)||(xa(t),o&&o.response&&(o.response.data=ya.call(t,t.transformResponse,o.response),o.response.headers=at.from(o.response.headers))),Promise.reject(o)})}const ar="1.13.1",$n={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{$n[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});const or={};$n.transitional=function(n,a,o){function r(i,s){return"[Axios v"+ar+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,l)=>{if(n===!1)throw new Se(r(s," has been removed"+(a?" in "+a:"")),Se.ERR_DEPRECATED);return a&&!or[s]&&(or[s]=!0,console.warn(r(s," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(i,s,l):!0}},$n.spelling=function(n){return(a,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function A0(t,n,a){if(typeof t!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const i=o[r],s=n[i];if(s){const l=t[i],c=l===void 0||s(l,i,t);if(c!==!0)throw new Se("option "+i+" must be "+c,Se.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}}const Pn={assertOptions:A0,validators:$n},pt=Pn.validators;let $t=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Oo,response:new Oo}}async request(n,a){try{return await this._request(n,a)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
- `+i):o.stack=i}catch{}}throw o}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Ft(this.defaults,a);const{transitional:o,paramsSerializer:r,headers:i}=a;o!==void 0&&Pn.assertOptions(o,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),r!=null&&(U.isFunction(r)?a.paramsSerializer={serialize:r}:Pn.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Pn.assertOptions(a,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=i&&U.merge(i.common,i[a.method]);i&&U.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),a.headers=at.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,h=0,f;if(!c){const m=[nr.bind(this),void 0];for(m.unshift(...l),m.push(...u),f=m.length,d=Promise.resolve(a);h<f;)d=d.then(m[h++],m[h++]);return d}f=l.length;let g=a;for(;h<f;){const m=l[h++],p=l[h++];try{g=m(g)}catch(y){p.call(this,y);break}}try{d=nr.call(this,g)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(n){n=Ft(this.defaults,n);const a=qo(n.baseURL,n.url,n.allowAbsoluteUrls);return Po(a,n.params,n.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(n){$t.prototype[n]=function(a,o){return this.request(Ft(o||{},{method:n,url:a,data:(o||{}).data}))}}),U.forEach(["post","put","patch"],function(n){function a(o){return function(i,s,l){return this.request(Ft(l||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}$t.prototype[n]=a(),$t.prototype[n+"Form"]=a(!0)});let T0=class Hi{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(i){a=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},n(function(i,s,l){o.reason||(o.reason=new Wt(i,s,l),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new Hi(function(r){n=r}),cancel:n}}};function D0(t){return function(a){return t.apply(null,a)}}function L0(t){return U.isObject(t)&&t.isAxiosError===!0}const ba={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ba).forEach(([t,n])=>{ba[n]=t});function rr(t){const n=new $t(t),a=wo($t.prototype.request,n);return U.extend(a,$t.prototype,n,{allOwnKeys:!0}),U.extend(a,n,null,{allOwnKeys:!0}),a.create=function(r){return rr(Ft(t,r))},a}const Ge=rr(un);Ge.Axios=$t,Ge.CanceledError=Wt,Ge.CancelToken=T0,Ge.isCancel=zo,Ge.VERSION=ar,Ge.toFormData=Tn,Ge.AxiosError=Se,Ge.Cancel=Ge.CanceledError,Ge.all=function(n){return Promise.all(n)},Ge.spread=D0,Ge.isAxiosError=L0,Ge.mergeConfig=Ft,Ge.AxiosHeaders=at,Ge.formToJSON=t=>Ro(U.isHTMLForm(t)?new FormData(t):t),Ge.getAdapter=tr.getAdapter,Ge.HttpStatusCode=ba,Ge.default=Ge;const{Axios:Bb,AxiosError:Vb,CanceledError:Mb,isCancel:Nb,CancelToken:Ab,VERSION:Tb,all:Db,Cancel:Lb,isAxiosError:Fb,spread:$b,toFormData:Pb,AxiosHeaders:Ob,HttpStatusCode:_b,formToJSON:Rb,getAdapter:Hb,mergeConfig:zb}=Ge,ir=Dt.defineStore("auth",{state:()=>({jwtToken:null}),actions:{setToken(t){this.jwtToken=t},clearToken(){this.jwtToken=null}},getters:{getToken:t=>t.jwtToken}}),Xe=Ge.create({baseURL:"https://back.dev-smclick.com.br/"});let wa=null;const F0=()=>(wa||(wa=ir()),wa);Xe.interceptors.request.use(t=>{try{const a=F0().jwtToken;a?t.headers.Authorization=`Bearer ${a}`:console.warn("JWT token não configurado em api request")}catch(n){console.warn("Erro ao acessar authStore no interceptor:",n)}return t},t=>Promise.reject(t));const $0="v1/api/attendances/attendant/",P0="v1/api/attendances/department/",Ea="v1/api/attendances/internal_chat/",O0="v1/api/instances/instance/",_0="v1/api/crm/event/scheduled_message/",R0="v1/api/crm/event/calendar",H0="v1/api/crm/products/",z0="v1/api/contacts/tag/",j0="/v1/api/contacts/segmentation_field/",G0="v1/api/attendances/calls/",va=Dt.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(t=""){try{let n=`${O0}`;const a=await Xe.get(n);this.instances=a.data,await Promise.all(this.instances.map(async o=>{o.isLoading=!0;try{const r=o.last_instance_status;r==="DISCONNECTED"||r==="UNDEFINED"?o.status=!1:o.status=!0}catch(r){console.log(r),o.status="Offline"}o.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(n){console.log("Erro ao buscar instâncias:",n),this.loaded=!0}},removeInstance(t){this.instances=this.instances.filter(n=>n.id!==t),this.count=this.instances.length},addInstance(t){const n=this.instances.findIndex(a=>a.id===t.id);n!==-1?this.instances[n]=t:this.instances.push(t),this.count=this.instances.length}}}),I0={class:"w-full relative text-current"},q0={class:"flex cursor-pointer justify-between items-center"},W0={key:0},U0={key:0},Z0={key:1,class:"flex items-center gap-2"},Y0={class:"flex gap-3 items-center flex-shrink-0"},X0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},K0={key:1,class:"relative"},Q0={style:{color:"#0081FB",width:"20px",height:"20px"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},J0={class:"my-auto text-center mx-auto group-hover:inline-block"},el={key:1,class:"flex justify-center"},tl={class:"w-full"},nl={key:1,class:"flex items-center gap-2 justify-center"},al={class:"flex px-4 items-center gap-2"},ol={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},rl={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},il={class:"select-none cursor-pointer w-full"},sl=["onClick","disabled"],ll={class:"flex w-full items-center pl-2 gap-3"},cl={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},dl={key:1,class:"relative"},ul={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},ml={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},fl={class:"w-full text-center"},hl={class:"my-auto text-center mx-auto group-hover:inline-block"},pl={key:1,class:"flex justify-center"},gl={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},yl={key:1,class:"p-4"},sr={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(t,{emit:n}){const a=va(),o=e.ref(!1),r=e.ref(null),i=t,s=n;function l(c){r.value=c,s("function",c)}return e.watch(()=>i.modelValue,c=>{r.value=c},{immediate:!0}),e.watch(r,c=>{s("update:modelValue",c)}),e.onMounted(async()=>{if(r.value){const c=a.instances.find(u=>u.id===r.value.id);c&&(r.value.status=c.status)}s("component-mounted")}),(c,u)=>{const d=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",I0,[e.createElementVNode("div",{class:e.normalizeClass([{"rounded-b-none":o.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[e.createElementVNode("div",q0,[e.createElementVNode("p",{onClick:u[0]||(u[0]=h=>o.value=!o.value),class:"w-full p-3 px-4 select-none"},[e.unref(a).loaded?(e.openBlock(),e.createElementBlock("div",W0,[r.value?(e.openBlock(),e.createElementBlock("span",Z0,[e.createElementVNode("header",Y0,[r.value.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",X0,[...u[3]||(u[3]=[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)])])):r.value.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",K0,[u[5]||(u[5]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(e.openBlock(),e.createElementBlock("svg",Q0,[...u[4]||(u[4]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])]))])):e.createCommentVNode("",!0),r.value&&r.value.status!==void 0?(e.openBlock(),e.createBlock(d,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"}])},[e.createElementVNode("div",J0,e.toDisplayString(r.value.status===!0?"Conectada":r.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[r.value.isLoading?(e.openBlock(),e.createElementBlock("div",el,[...u[6]||(u[6]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",tl,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",U0,e.toDisplayString(e.unref(a).instances?e.unref(a).instances.length:"Sem")+" Instâncias disponíveis",1))])):(e.openBlock(),e.createElementBlock("div",nl,[...u[7]||(u[7]=[e.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e.createTextVNode("Inicializando instâncias...",-1)])]))]),e.createElementVNode("footer",al,[e.createElementVNode("button",{onClick:u[1]||(u[1]=h=>(r.value=null,o.value=!1))},[...u[8]||(u[8]=[e.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])]),e.createElementVNode("button",{onClick:u[2]||(u[2]=h=>o.value=!o.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"rotate-180":o.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...u[9]||(u[9]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))])])])],2),o.value?(e.openBlock(),e.createElementBlock("nav",ol,[e.createElementVNode("ul",rl,[e.unref(a).instances.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a).instances,(h,f)=>{var g;return e.openBlock(),e.createElementBlock("li",il,[e.createElementVNode("button",{class:e.normalizeClass([r.value&&r.value.id===h.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:m=>(r.value=h,o.value=!1,l(h)),disabled:r.value&&r.value.id===h.id||t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((g=h.config)==null?void 0:g.webhooks)},[e.createElementVNode("div",ll,[h.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",cl,[...u[10]||(u[10]=[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)])])):h.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",dl,[u[12]||(u[12]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(e.openBlock(),e.createElementBlock("svg",ul,[...u[11]||(u[11]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])]))])):e.createCommentVNode("",!0),e.createVNode(d,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.type&&h.type!==t.type?"Não é possível utilizar esse tipo de Instância neste recurso":t.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:e.withCtx(()=>{var m;return[t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((m=h.config)==null?void 0:m.webhooks)?(e.openBlock(),e.createElementBlock("svg",ml,[...u[13]||(u[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1)])])):e.createCommentVNode("",!0)]}),_:2},1024),e.createElementVNode("p",fl,e.toDisplayString(h.name),1),e.createVNode(d,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded px-3",{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"}])},[e.createElementVNode("div",hl,e.toDisplayString(h.status===!0?"Conectada":h.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[h.isLoading?(e.openBlock(),e.createElementBlock("div",pl,[...u[14]||(u[14]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),e.createElementVNode("div",gl,[h.telephone?(e.openBlock(),e.createBlock(d,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(h.telephone?`${h.telephone}`:""),1)]),default:e.withCtx(()=>[u[15]||(u[15]=e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1))]),_:2},1024)):e.createCommentVNode("",!0)])],10,sl)])}),256)):(e.openBlock(),e.createElementBlock("div",yl," Sem instâncias disponíveis"))])])):e.createCommentVNode("",!0)])}}},kl=["aria-labelledby","aria-describedby"],xl={class:"cpk-popover__header border-base-100"},bl=["id"],wl=["disabled"],El=["id"],vl={class:"cpk-popover__details bg-base-200 border border-base-100"},Cl={class:"cpk-popover__footer"},Sl=["disabled"],Bl=["disabled"],Vl={key:0,class:"loading-spinner"},Ml=we({__name:"confirmModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Confirmar ação"},description:{type:String,default:""},confirmLabel:{type:String,default:"Confirmar"},cancelLabel:{type:String,default:"Cancelar"},loadingLabel:{type:String,default:"Processando…"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},anchorEl:{type:[HTMLElement,Object],default:null},anchorRect:{type:Object,default:null},placement:{type:String,default:"auto"},align:{type:String,default:"center"},offset:{type:Number,default:10},viewportPadding:{type:Number,default:8}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:n}){const a=t,o=n,r=e.computed({get:()=>a.modelValue,set:C=>o("update:modelValue",C)}),i=e.ref(null),s=e.ref({left:0,top:0,p:"bottom"}),l={title:`cpk-popover-title-${Math.random().toString(36).slice(2)}`,desc:`cpk-popover-desc-${Math.random().toString(36).slice(2)}`};function c(){o("cancel",a.context),r.value=!1}function u(){a.loading||o("confirm",a.context)}let d,h,f=[];function g(){if(a.anchorRect)return a.anchorRect;const C=a.anchorEl instanceof Element?a.anchorEl:null;if(C)return C.getBoundingClientRect();const M=document.activeElement instanceof Element?document.activeElement:null;return M?M.getBoundingClientRect():{left:window.__lastMouseX??window.innerWidth/2,top:window.__lastMouseY??window.innerHeight/2,width:1,height:1,right:(window.__lastMouseX??0)+1,bottom:(window.__lastMouseY??0)+1}}function m(){if(!r.value)return;const C=window.innerWidth,M=window.innerHeight,D=a.viewportPadding,H=g(),S=i.value?i.value.getBoundingClientRect():{width:320,height:200},w=a.placement==="auto"?["bottom","top","right","left"]:[a.placement];let T=w[0],V=0,N=0;const B=H.left+H.width/2-S.width/2,v=H.top+H.height/2-S.height/2,P=H.left,Z=H.left+H.width-S.width,Q=H.top,J=H.top+H.height-S.height;for(const O of w){if(O==="bottom"&&(N=H.bottom+a.offset,V=a.align==="start"?P:a.align==="end"?Z:B,N+S.height+D<=M)){T="bottom";break}if(O==="top"&&(N=H.top-S.height-a.offset,V=a.align==="start"?P:a.align==="end"?Z:B,N>=D)){T="top";break}if(O==="right"&&(V=H.right+a.offset,N=a.align==="start"?Q:a.align==="end"?J:v,V+S.width+D<=C)){T="right";break}if(O==="left"&&(V=H.left-S.width-a.offset,N=a.align==="start"?Q:a.align==="end"?J:v,V>=D)){T="left";break}}V=Math.min(Math.max(D,V),C-S.width-D),N=Math.min(Math.max(D,N),M-S.height-D),s.value={left:V,top:N,p:T}}function p(){y();let M=a.anchorEl instanceof Element?a.anchorEl:document.body;for(;M&&M!==document.body;)f.push(M),M=M.parentElement;f.push(window),f.forEach(D=>D.addEventListener("scroll",m,{passive:!0}))}function y(){f.forEach(C=>{var M;return(M=C.removeEventListener)==null?void 0:M.call(C,"scroll",m)}),f=[]}e.watch(()=>r.value,async C=>{var M;if(C){await e.nextTick(),m(),p(),d=new ResizeObserver(m),d.observe(document.body);const D=a.anchorEl instanceof Element?a.anchorEl:null;D&&((M=h==null?void 0:h.disconnect)==null||M.call(h),h=new ResizeObserver(m),h.observe(D)),window.addEventListener("resize",m),window.addEventListener("keydown",k)}else b()}),e.watch(()=>a.anchorEl,async C=>{var D;if(!r.value)return;await e.nextTick(),y(),p(),(D=h==null?void 0:h.disconnect)==null||D.call(h);const M=C instanceof Element?C:null;M&&(h=new ResizeObserver(m),h.observe(M)),m()}),e.watch(()=>a.anchorRect,()=>{r.value&&m()}),e.watch(()=>[a.placement,a.align,a.offset,a.viewportPadding],()=>{r.value&&m()});function k(C){C.key==="Escape"&&c(),C.key==="Enter"&&u()}e.onMounted(()=>{window.addEventListener("mousemove",C=>{window.__lastMouseX=C.clientX,window.__lastMouseY=C.clientY},{passive:!0})}),e.onBeforeUnmount(b);function b(){y(),window.removeEventListener("resize",m),window.removeEventListener("keydown",k),d&&d.disconnect(),h&&h.disconnect()}const x=e.computed(()=>({left:`${s.value.left}px`,top:`${s.value.top}px`}));return(C,M)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:e.withModifiers(c,["self"])},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:i,class:e.normalizeClass(["cpk-popover bg-base-300",[{"is-loading":t.loading,"is-danger":t.destructive}]]),style:e.normalizeStyle(x.value),role:"dialog","aria-modal":"false","aria-labelledby":l.title,"aria-describedby":l.desc},[e.createElementVNode("div",xl,[M[0]||(M[0]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"!",-1)),e.createElementVNode("h3",{class:"cpk-popover__title",id:l.title},e.toDisplayString(t.title),9,bl),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:c,disabled:t.loading,"aria-label":"Fechar"}," × ",8,wl)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:"cpk-popover__desc",id:l.desc},e.toDisplayString(t.description),9,El)):e.createCommentVNode("",!0),e.createElementVNode("div",vl,[e.renderSlot(C.$slots,"details",{},void 0,!0)]),e.createElementVNode("div",Cl,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--md",onClick:c,disabled:t.loading},e.toDisplayString(t.cancelLabel),9,Sl),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button","cyber-button--md",t.destructive?"cyber-button--danger":"cyber-button--accent"]),onClick:u,disabled:t.loading},[t.loading?(e.openBlock(),e.createElementBlock("span",Vl)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.loading?t.loadingLabel:t.confirmLabel),1)],10,Bl)])],14,kl)]),_:3})],32)):e.createCommentVNode("",!0)]),_:3}))}},[["__scopeId","data-v-b23001fc"]]);function Ut(t){return(n={})=>{const a=n.width?String(n.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}function gt(t){return(n,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let r;if(o==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):s;r=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(n):n;return r[i]}}function yt(t){return(n,a={})=>{const o=a.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=n.match(r);if(!i)return null;const s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Al(l,h=>h.test(s)):Nl(l,h=>h.test(s));let u;u=t.valueCallback?t.valueCallback(c):c,u=a.valueCallback?a.valueCallback(u):u;const d=n.slice(s.length);return{value:u,rest:d}}}function Nl(t,n){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n(t[a]))return a}function Al(t,n){for(let a=0;a<t.length;a++)if(n(t[a]))return a}function lr(t){return(n,a={})=>{const o=n.match(t.matchPattern);if(!o)return null;const r=o[0],i=n.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=a.valueCallback?a.valueCallback(s):s;const l=n.slice(r.length);return{value:s,rest:l}}}const cr=6048e5,Tl=864e5,dr=Symbol.for("constructDateFrom");function rt(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&dr in t?t[dr](n):t instanceof Date?new t.constructor(n):new Date(n)}function Ca(t,...n){const a=rt.bind(null,n.find(o=>typeof o=="object"));return n.map(a)}let Dl={};function On(){return Dl}function ct(t,n){return rt(n||t,t)}function Pt(t,n){var l,c,u,d;const a=On(),o=(n==null?void 0:n.weekStartsOn)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??a.weekStartsOn??((d=(u=a.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,r=ct(t,n==null?void 0:n.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Ll(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n);return+Pt(o,a)==+Pt(r,a)}const Fl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$l=(t,n,a)=>{let o;const r=Fl[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o},Pl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ol=(t,n,a,o)=>Pl[t],_l={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Gl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Il={ordinalNumber:(t,n)=>{const a=Number(t),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:gt({values:_l,defaultWidth:"wide"}),quarter:gt({values:Rl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gt({values:Hl,defaultWidth:"wide"}),day:gt({values:zl,defaultWidth:"wide"}),dayPeriod:gt({values:jl,defaultWidth:"wide",formattingValues:Gl,defaultFormattingWidth:"wide"})},ql=/^(\d+)(th|st|nd|rd)?/i,Wl=/\d+/i,Ul={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zl={any:[/^b/i,/^(a|c)/i]},Yl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xl={any:[/1/i,/2/i,/3/i,/4/i]},Kl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ql={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},e2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},t2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},n2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},a2={ordinalNumber:lr({matchPattern:ql,parsePattern:Wl,valueCallback:t=>parseInt(t,10)}),era:yt({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:Zl,defaultParseWidth:"any"}),quarter:yt({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Xl,defaultParseWidth:"any",valueCallback:t=>t+1}),month:yt({matchPatterns:Kl,defaultMatchWidth:"wide",parsePatterns:Ql,defaultParseWidth:"any"}),day:yt({matchPatterns:Jl,defaultMatchWidth:"wide",parsePatterns:e2,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:t2,defaultMatchWidth:"any",parsePatterns:n2,defaultParseWidth:"any"})},o2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s2={date:Ut({formats:o2,defaultWidth:"full"}),time:Ut({formats:r2,defaultWidth:"full"}),dateTime:Ut({formats:i2,defaultWidth:"full"})},l2={code:"en-US",formatDistance:$l,formatLong:s2,formatRelative:Ol,localize:Il,match:a2,options:{weekStartsOn:0,firstWeekContainsDate:1}},c2={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},d2=(t,n,a)=>{let o;const r=c2[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+o:"há "+o:o},u2={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},m2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},f2={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h2={date:Ut({formats:u2,defaultWidth:"full"}),time:Ut({formats:m2,defaultWidth:"full"}),dateTime:Ut({formats:f2,defaultWidth:"full"})},p2={lastWeek:t=>{const n=t.getDay();return"'"+(n===0||n===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},g2=(t,n,a,o)=>{const r=p2[t];return typeof r=="function"?r(n):r},y2={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},k2={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},x2={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},b2={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},w2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},E2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},v2={ordinalNumber:(t,n)=>{const a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},era:gt({values:y2,defaultWidth:"wide"}),quarter:gt({values:k2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gt({values:x2,defaultWidth:"wide"}),day:gt({values:b2,defaultWidth:"wide"}),dayPeriod:gt({values:w2,defaultWidth:"wide",formattingValues:E2,defaultFormattingWidth:"wide"})},C2=/^(\d+)[ºªo]?/i,S2=/\d+/i,B2={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},V2={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},M2={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},N2={any:[/1/i,/2/i,/3/i,/4/i]},A2={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},T2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},D2={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},L2={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},F2={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},$2={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},P2={ordinalNumber:lr({matchPattern:C2,parsePattern:S2,valueCallback:t=>parseInt(t,10)}),era:yt({matchPatterns:B2,defaultMatchWidth:"wide",parsePatterns:V2,defaultParseWidth:"any"}),quarter:yt({matchPatterns:M2,defaultMatchWidth:"wide",parsePatterns:N2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:yt({matchPatterns:A2,defaultMatchWidth:"wide",parsePatterns:T2,defaultParseWidth:"any"}),day:yt({matchPatterns:D2,defaultMatchWidth:"wide",parsePatterns:L2,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:F2,defaultMatchWidth:"any",parsePatterns:$2,defaultParseWidth:"any"})},ur={code:"pt-BR",formatDistance:d2,formatLong:h2,formatRelative:g2,localize:v2,match:P2,options:{weekStartsOn:0,firstWeekContainsDate:1}},O2={scheduled_messages:"Mensagem programada"};function _2(t){return O2[t]||t||"Evento"}function Sa(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function Zt(t){const n=t instanceof Date?t:new Date(t),a=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0");return`${a}-${o}`}function fn(t){const[n,a]=String(t||"").trim().split(" ");if(!n)return null;const[o,r,i]=n.split("-").map(u=>parseInt(u,10));let s=0,l=0;if(a){const[u,d]=a.split(":");s=parseInt(u||"0",10),l=parseInt(d||"0",10)}const c=new Date(o,(r||1)-1,i||1,s,l);return isNaN(c.getTime())?null:c}function R2(t){if(!t)return null;try{const n=String(t).replace(/(\.\d{3})\d+$/,"$1"),a=new Date(n);return isNaN(a.getTime())?null:a}catch{return null}}function _n(t){if(!t)return"";const n=t instanceof Date?t:new Date(t);if(isNaN(n.getTime()))return"";const a=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0");return`${a}:${o}`}function H2(){return"id-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function Ba(t){if(!t)return null;const n=(t==null?void 0:t.params)||{},a=(n==null?void 0:n.schedule)||{},o=(t==null?void 0:t.info)||{},r=(o==null?void 0:o.entity)||{},i=(o==null?void 0:o.department)||{},s=(o==null?void 0:o.instance)||{};let l=null;if(a!=null&&a.time&&(l=fn(a.time)),!l&&(t!=null&&t.next_execution_at)&&(l=R2(t.next_execution_at)),!l)return null;const c=Array.isArray(n==null?void 0:n.message)?n.message[0]:null,u=c&&(c.content||c.text)||"",d=(t==null?void 0:t.function)||(n==null?void 0:n.function)||"",h=_2(d),f=(u||"").trim();return{id:(t==null?void 0:t.id)||H2(),date:l,time:_n(l),type:t.function,status:t.status||null,scheduled_by:n.scheduled_by,title:h,content:f,functionName:d||null,chatId:(n==null?void 0:n.chat_id)||(o==null?void 0:o.id)||"",protocol:(o==null?void 0:o.protocol)??"",contactName:(r==null?void 0:r.name)||"Contato",contactPhoto:(r==null?void 0:r.photo)||"",departmentName:(i==null?void 0:i.name)||"",departmentId:(i==null?void 0:i.id)||null,instanceName:(s==null?void 0:s.name)||"",raw:t}}function mr(t=[]){const n=Array.isArray(t)?t:Array.isArray(t.results)?t.results:[],a=[];for(const o of n){const r=Ba(o);r&&a.push(r)}return a.sort((o,r)=>o.date-r.date),a}async function z2(t="/crm_scheduled",n){var a;try{const o=((a=n==null?void 0:n.raw)==null?void 0:a.id)??(n==null?void 0:n.id)??n;if(o==null)throw new Error("ID inválido");const r=`${String(t).replace(/\/$/,"")}/${o}/`,i=await Xe.delete(r);return{ok:(i==null?void 0:i.status)>=200&&i.status<300,status:(i==null?void 0:i.status)??0}}catch(o){return console.error("Error erasing scheduled event:",o),{ok:!1,status:0}}}const fr={scheduled_messages:"#3b82f6"},hr=["#10b981","#06b6d4","#22c55e","#eab308","#ef4444","#84cc16","#f472b6","#0ea5e9","#8b5cf6","#64748b"];function j2(t=""){let n=2166136261;for(let a=0;a<t.length;a++)n^=t.charCodeAt(a),n=Math.imul(n,16777619);return n>>>0}function G2(t={}){var s,l,c,u,d,h,f,g,m,p,y;const n=t.functionName||t.function||((s=t==null?void 0:t.params)==null?void 0:s.function);if(n)return`fn:${n}`;const a=(t==null?void 0:t.departmentName)||((c=(l=t==null?void 0:t.info)==null?void 0:l.department)==null?void 0:c.name)||((d=(u=t==null?void 0:t.info)==null?void 0:u.department)==null?void 0:d.id);if(a)return`dept:${a}`;const o=(t==null?void 0:t.instanceName)||((f=(h=t==null?void 0:t.info)==null?void 0:h.instance)==null?void 0:f.name)||((m=(g=t==null?void 0:t.info)==null?void 0:g.instance)==null?void 0:m.id);if(o)return`inst:${o}`;const r=(t==null?void 0:t.protocol)??((p=t==null?void 0:t.info)==null?void 0:p.protocol);if(r!=null)return`proto:${r}`;const i=(t==null?void 0:t.chatId)||((y=t==null?void 0:t.params)==null?void 0:y.chat_id);return i?`chat:${i}`:"misc"}function Rn(t={}){var r;const n=t.functionName||t.function||((r=t==null?void 0:t.params)==null?void 0:r.function);if(n&&Object.prototype.hasOwnProperty.call(fr,n))return fr[n];const a=G2(t),o=j2(String(a))%hr.length;return hr[o]}const Yt=Dt.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let t=`${$0}`;const n=await Xe.get(t);this.attendants=n.data,this.count=this.attendants.length}catch(t){console.log("Erro ao buscar atendentes:",t)}},removeAttendants(t){this.attendants=this.attendants.filter(n=>n.id!==t)},addAttendants(t){const n=this.attendants.findIndex(a=>a.id===t.id);n!==-1?this.attendants[n]=t:this.attendants.push(t)}}}),I2={class:"itemc-head"},q2={class:"minw0"},W2={class:"itemc-title"},U2={class:"itemc-sub"},Z2={class:"flex items-center gap-1"},Y2={class:"itemc-actions"},X2={class:"flex flex-col items-center"},K2={class:"time-badge"},Q2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},J2={class:"sched-pop__card bg-base-300",role:"dialog"},ec={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},tc={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},nc=["disabled"],ac={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},oc={key:1,class:"loading-spinner"},rc={class:"itemsb-head"},ic=["src"],sc={key:1,class:"avatar avatar--placeholder bg-base-100"},lc={class:"sched-pop",style:{position:"absolute",bottom:"-2px",right:"-2px"},tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},cc={class:"sched-pop__card bg-base-300",style:{left:"-100%",right:"auto",transform:"translate(10%, -50%) scale(0.98)"},role:"dialog"},dc={class:"itemsb-main"},uc={class:"itemsb-row"},mc={class:"itemsb-title truncate"},fc={class:"itemsb-time"},hc={class:"itemsb-sub"},pc={class:"items-attendant"},gc={class:"itemsb-content"},yc={key:0,class:"itemsb-actions"},kc=["disabled"],xc={key:0,class:"loading-spinner"},bc={class:"event-left"},wc={class:"event-line"},Ec={class:"event-actions"},vc={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},Cc={class:"sched-pop__card bg-base-300",role:"dialog"},Sc={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},Bc={class:"sched-pop__card bg-base-300",role:"dialog"},Vc={class:"event-time"},Mc={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nc={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Ac=["disabled"],Tc={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Dc={key:1,class:"loading-spinner"},Va=we({__name:"EventItem",props:{ev:{type:Object,required:!0},mode:{type:String,default:"compact"},getEventColor:{type:Function,default:null},viewOnly:{type:Boolean,default:!1}},emits:["open-message","open-chat","delete-message"],setup(t,{emit:n}){const a=Yt(),o=t,r=e.computed(()=>(o.getEventColor||Rn)(o.ev)),i=e.computed(()=>{var u;return((u=o.ev)==null?void 0:u.type)==="scheduled_messages"}),s=e.computed(()=>a.attendants.find(u=>u.is_me)||{}),l=u=>{const d=a.attendants.find(h=>h.id===u);return d?d.id===s.value.id?"Você":d.name||"Desconhecido":"Desconhecido"},c=e.computed(()=>{var d,h;const u=[];return(d=o.ev)!=null&&d.contactName&&u.push(o.ev.contactName),u.push(((h=o.ev)==null?void 0:h.departmentName)||"sem depto"),u.join(" • ")});return(u,d)=>{var h,f,g,m,p,y;return t.mode==="compact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("header",I2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"color-bar"},null,4),e.createElementVNode("div",q2,[e.createElementVNode("div",W2,e.toDisplayString(t.ev.contactName?t.ev.contactName+" • ":"")+" "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("div",U2,[e.createElementVNode("span",Z2,[d[9]||(d[9]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("footer",Y2,[e.createElementVNode("div",X2,[e.createElementVNode("div",K2,e.toDisplayString(t.ev.time),1),e.createElementVNode("div",Q2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["status-bar",(h=t.ev)!=null&&h.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",J2,[d[10]||(d[10]=e.createElementVNode("strong",null,"Status",-1)),d[11]||(d[11]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])]),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=k=>u.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((f=t.ev)==null?void 0:f.status)===!0?(e.openBlock(),e.createElementBlock("svg",ec,[...d[12]||(d[12]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",tc,[...d[13]||(d[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])]))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d[1]||(d[1]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",ac,[...d[14]||(d[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)])])),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",oc)):e.createCommentVNode("",!0)],8,nc)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:d[2]||(d[2]=k=>u.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},[...d[15]||(d[15]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)])])])],64)):t.mode==="sidebar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",rc,[e.createElementVNode("div",{class:"avatar-wrap",style:e.normalizeStyle({boxShadow:`0 0 0 1px ${r.value}`})},[t.ev.contactPhoto?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.ev.contactPhoto,alt:"",class:"avatar",loading:"lazy"},null,8,ic)):(e.openBlock(),e.createElementBlock("div",sc,[...d[16]||(d[16]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",class:"icon-5 icon-muted"},[e.createElementVNode("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4Z"})],-1)])])),e.createElementVNode("div",lc,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-dot-avatar",(g=t.ev)!=null&&g.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",cc,[d[17]||(d[17]=e.createElementVNode("strong",null,"Status",-1)),d[18]||(d[18]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])],4),e.createElementVNode("div",dc,[e.createElementVNode("div",uc,[e.createElementVNode("span",mc,e.toDisplayString(t.ev.contactName)+" • "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("span",fc,e.toDisplayString(t.ev.time),1)]),e.createElementVNode("div",hc,[e.createElementVNode("span",pc,[d[19]||(d[19]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("p",gc,e.toDisplayString(t.ev.content||t.ev.title),1),t.viewOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",yc,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"cyber-button cyber-button--sm cyber-button--primary",onClick:d[3]||(d[3]=k=>u.$emit("open-message",t.ev))},e.toDisplayString(((m=t.ev)==null?void 0:m.status)===!0?"Editar":"Visualizar"),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d[4]||(d[4]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--sm cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",xc)):e.createCommentVNode("",!0),d[20]||(d[20]=e.createTextVNode(" Apagar ",-1))],8,kc)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:d[5]||(d[5]=k=>u.$emit("open-chat",t.ev))}," Abrir conversa ")):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",bc,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"event-color-bar"},null,4),e.createElementVNode("div",wc,e.toDisplayString(c.value),1)]),e.createElementVNode("footer",Ec,[e.createElementVNode("div",vc,[d[23]||(d[23]=e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",Cc,[d[21]||(d[21]=e.createElementVNode("strong",null,"Agendado por",-1)),d[22]||(d[22]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])]),e.createElementVNode("div",Sc,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-bar",(p=t.ev)!=null&&p.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",Bc,[d[24]||(d[24]=e.createElementVNode("strong",null,"Status",-1)),d[25]||(d[25]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])]),e.createElementVNode("div",Vc,e.toDisplayString(t.ev.time),1),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[6]||(d[6]=k=>u.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((y=t.ev)==null?void 0:y.status)===!0?(e.openBlock(),e.createElementBlock("svg",Mc,[...d[26]||(d[26]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Nc,[...d[27]||(d[27]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])]))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d[7]||(d[7]=k=>u.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",Tc,[...d[28]||(d[28]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)])])),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",Dc)):e.createCommentVNode("",!0)],8,Ac)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:d[8]||(d[8]=k=>u.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},[...d[29]||(d[29]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)])])])],64))}}},[["__scopeId","data-v-fb30306a"]]),St=new Map,pr=Dt.defineStore("scheduled",{state:()=>({baseUrl:R0,monthCache:{},loadingYM:new Set,errorByYM:{},loadedYM:new Set,filters:{}}),getters:{eventsOf:t=>n=>t.monthCache[n]||[],isLoading:t=>n=>t.loadingYM.has(n),errorOf:t=>n=>t.errorByYM[n]||""},actions:{setBaseUrl(t){this.baseUrl=t||"/crm_scheduled"},_setMonth(t,n){this.monthCache={...this.monthCache,[t]:n||[]}},_deleteMonth(t){const{[t]:n,...a}=this.monthCache;this.monthCache=a,this.loadingYM.delete(t);const{[t]:o,...r}=this.errorByYM;this.errorByYM=r,this.loadedYM.delete(t)},coerceHttps(t){return t&&t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t},_appendMonth(t,n){if(!n||n.length===0)return;this.monthCache[t]||(this.monthCache[t]=[]);const a=new Set(this.monthCache[t].map(o=>o==null?void 0:o.id));for(const o of n)o&&(o.id&&a.has(o.id)||this.monthCache[t].push(o))},async ensureMonthLoaded(t){if(t||(t=Zt(new Date)),this.loadedYM.has(t))return;const n=`${this.baseUrl}|${t}`;if(St.has(n))return St.get(n);this.loadingYM.add(t),this.errorByYM={...this.errorByYM,[t]:""};const a=(async()=>{var o,r;try{const i=`${this.baseUrl}?year_month=${encodeURIComponent(t)}&page_size=10`,s=await Xe.get(i),l=Array.isArray(s==null?void 0:s.data)?s.data:((o=s==null?void 0:s.data)==null?void 0:o.results)||[],c=mr(l||[]);this._setMonth(t,c),this.loadedYM.add(t);let u=this.coerceHttps(((r=s==null?void 0:s.data)==null?void 0:r.next)||null);u&&(async()=>{var d,h;try{let f=u;for(;f;){const g=await Xe.get(f),m=Array.isArray(g==null?void 0:g.data)?g.data:((d=g==null?void 0:g.data)==null?void 0:d.results)||[],p=mr(m||[]);this._appendMonth(t,p),f=this.coerceHttps(((h=g==null?void 0:g.data)==null?void 0:h.next)||null)}}catch(f){console.warn("[scheduled] background paging error:",(f==null?void 0:f.message)||f)}})()}catch(i){const s=String((i==null?void 0:i.message)||i);throw this.errorByYM={...this.errorByYM,[t]:s},console.error("[scheduled] fetch error",t,s),this._setMonth(t,[]),this.loadedYM.delete(t),i}finally{St.delete(n),this.loadingYM.delete(t)}})();return St.set(n,a),a},async forceReload(t){t||(t=Zt(new Date));const n=`${this.baseUrl}|${t}`;St.delete(n),this._deleteMonth(t),this.loadedYM.delete(t),await this.ensureMonthLoaded(t)},findEventById(t){const n=String(t);for(const[a,o]of Object.entries(this.monthCache)){const r=(o||[]).findIndex(i=>{var c;const s=((c=i==null?void 0:i.raw)==null?void 0:c.id)!=null?String(i.raw.id):null,l=(i==null?void 0:i.id)!=null?String(i.id):null;return s===n||l===n});if(r!==-1)return{ym:a,idx:r}}return null},applyUpdateToCache({id:t,params:n}){var f,g,m,p,y,k,b,x,C,M,D,H,S;let a=null;if((f=n==null?void 0:n.schedule)!=null&&f.time){const w=n.schedule.time,T=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(w);if(T){const[,V,N,B,v="00",P="00"]=T;a=new Date(Number(V),Number(N)-1,Number(B),Number(v),Number(P),0,0)}else{const V=typeof w=="string"&&!w.includes("T")?w.replace(" ","T"):w;a=new Date(V)}}console.log(n);const o=w=>{var T,V,N,B;return a instanceof Date&&!isNaN(a)&&(w.date=a,w.time=_n(a)),((V=(T=n==null?void 0:n.message)==null?void 0:T[0])==null?void 0:V.content)!=null&&(w.content=n.message[0].content),w.raw=w.raw||{id:t},w.raw.params=w.raw.params||{},n!=null&&n.schedule&&(w.raw.params.schedule={...w.raw.params.schedule||{},...n.schedule}),n!=null&&n.scheduled_by&&(w.raw.params.scheduled_by=n.scheduled_by),n.department&&(w.raw.params.department=n.department),n!=null&&n.message&&(w.raw.params.message=n.message),Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&(w.chatId=n.chat_id??w.chatId??""),n!=null&&n.entity&&(w.raw.params.entity={...w.raw.params.entity||{},...n.entity},Object.prototype.hasOwnProperty.call(n.entity,"name")&&(w.contactName=n.entity.name??w.contactName??"Cliente"),Object.prototype.hasOwnProperty.call(n.entity,"photo")&&(w.contactPhoto=n.entity.photo??w.contactPhoto??null,n.entity.photo&&(w.photo=n.entity.photo))),n!=null&&n.info&&(w.raw.params.info={...w.raw.params.info||{},...n.info},(N=n.info)!=null&&N.department&&Object.prototype.hasOwnProperty.call(n.info.department,"name")&&(w.departmentName=n.info.department.name??w.departmentName),(B=n.info)!=null&&B.instance&&(Object.prototype.hasOwnProperty.call(n.info.instance,"name")&&(w.instanceName=n.info.instance.name??w.instanceName),Object.prototype.hasOwnProperty.call(n.info.instance,"last_instance_status")&&(w.instanceStatus=n.info.instance.last_instance_status??w.instanceStatus))),Object.prototype.hasOwnProperty.call(n||{},"title")?w.title=n.title??w.title??"Mensagem programada":w.title=w.title||"Mensagem programada",Object.prototype.hasOwnProperty.call(n||{},"function")?(w.function=n.function??w.function??"scheduled_messages",w.type=n.function??w.type??"scheduled_messages"):(w.function=w.function||"scheduled_messages",w.type=w.type||"scheduled_messages"),w},r=this.findEventById(t);if(!r){const w=a instanceof Date&&!isNaN(a)?a:(()=>{var P;const B=(P=n==null?void 0:n.schedule)==null?void 0:P.time,v=typeof B=="string"&&!B.includes("T")?B.replace(" ","T"):B;return(fn==null?void 0:fn(v))||(v?new Date(v):new Date)})(),T=o({id:t,date:w,time:_n(w),title:(n==null?void 0:n.title)||"Mensagem programada",type:(n==null?void 0:n.function)||"scheduled_messages",status:(n==null?void 0:n.status)||"true",scheduled_by:(n==null?void 0:n.scheduled_by)||null,function:(n==null?void 0:n.function)||"scheduled_messages",content:((m=(g=n==null?void 0:n.message)==null?void 0:g[0])==null?void 0:m.content)??"",raw:{id:t,params:n},contactName:((p=n==null?void 0:n.entity)==null?void 0:p.name)??"Cliente",contactPhoto:((y=n==null?void 0:n.entity)==null?void 0:y.photo)??null,departmentName:((b=(k=n==null?void 0:n.info)==null?void 0:k.department)==null?void 0:b.name)??null,departmentId:((C=(x=n==null?void 0:n.info)==null?void 0:x.department)==null?void 0:C.id)??null,instanceName:((D=(M=n==null?void 0:n.info)==null?void 0:M.instance)==null?void 0:D.name)??null,instanceStatus:((S=(H=n==null?void 0:n.info)==null?void 0:H.instance)==null?void 0:S.last_instance_status)??null,...Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&{chatId:n.chat_id??""}}),V=Zt(T.date),N=this.monthCache[V]?[...this.monthCache[V],T]:[T];N.sort((B,v)=>B.date-v.date),this._setMonth(V,N);return}const{ym:i,idx:s}=r,l=this.monthCache[i]||[],c={...l[s]},u=o({...c}),d=u.date instanceof Date?u.date:c.date,h=Zt(d);if(h===i){const w=[...l];w.splice(s,1,u),w.sort((T,V)=>T.date-V.date),this._setMonth(i,w)}else{const w=l.slice(0,s).concat(l.slice(s+1)),T=this.monthCache[h]?[...this.monthCache[h],u]:[u];T.sort((V,N)=>V.date-N.date),this.monthCache={...this.monthCache,[i]:w,[h]:T}}},removeFromCache(t){const n=this.findEventById(t);if(!n)return!1;const{ym:a,idx:o}=n,r=this.monthCache[a]||[],i=r.slice(0,o).concat(r.slice(o+1));return this._setMonth(a,i),!0},insertNormalizedEvent(t){if(!t)return;const n=String(t.id),a=t.date instanceof Date?t.date:fn(t.date)||new Date,o=Zt(a),r={...t,id:n,date:a,time:t.time??_n(a)},i=this.monthCache[o]?[...this.monthCache[o]]:[],s=i.findIndex(l=>{var c;return String(((c=l==null?void 0:l.raw)==null?void 0:c.id)??(l==null?void 0:l.id))===n});s!==-1?i.splice(s,1,r):i.push(r),i.sort((l,c)=>l.date-c.date),this._setMonth(o,i)},insertFromApiItem(t){const n=Ba(t);n&&this.insertNormalizedEvent(n)},insertManyFromApi(t=[]){for(const n of t){const a=Ba(n);a&&this.insertNormalizedEvent(a)}},insertFromApiPage(t){const n=Array.isArray(t)?t:(t==null?void 0:t.results)||[];this.insertManyFromApi(n)},insertFromParams(t){return this.applyUpdateToCache(t)},hasEvent(t){return!!this.findEventById(t)},resetAll(){var t;this.monthCache={},this.loadingYM=new Set,this.errorByYM={},this.loadedYM=new Set,(t=St.clear)==null||t.call(St)}}}),Lc={class:"cpk-header bg-base-200"},Fc={class:"left"},$c=["title"],Pc={class:"right"},Oc=["title"],_c={class:"toggle"},Rc=["aria-pressed","title"],Hc={key:0,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},zc={key:1,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},jc=we({__name:"CalHeader",props:{month:String,year:[String,Number],isCompact:Boolean,viewMode:{type:String,default:"calendar"},filterCount:{type:Number,default:0}},emits:["prev","next","today","toggle-compact","set-view-mode","close-page","open-filter"],setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",Lc,[e.createElementVNode("div",Fc,[e.createElementVNode("button",{onClick:a[0]||(a[0]=o=>n.$emit("close-page")),class:"cyber-button cyber-button--sm btn-ghost nav hide-md-up","aria-label":"Fechar"},[...a[8]||(a[8]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[1]||(a[1]=o=>n.$emit("prev")),"aria-label":"Mês anterior"},[...a[9]||(a[9]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.5 19 9 12l6.5-7 1.5 1.3L12.3 12l4.7 5.7z"})],-1),e.createElementVNode("span",{class:"label-md"},"Anterior",-1)])]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent today",onClick:a[2]||(a[2]=o=>n.$emit("today")),"aria-label":"Hoje"},[...a[10]||(a[10]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M11.6643 2.05648c.0197-.00699.1589-.05645.3357-.05645.1768 0 .316.04946.3357.05645l.0019.00067c.0461.01577.0846.03229.1092.04332.0514.02304.1015.04898.1449.07268.0896.04898.1957.11302.3102.18855.2291.15109.521.36725.8121.63689C14.247 3.49218 15 4.37 15 5.50003c0 1.12688-.7447 2.00396-1.2779 2.49995-.2531.23541-.5075.43043-.7221.57742V10h5c.5523 0 1 .4477 1 1v3h-4c-.0568 0-.1125.0048-.1667.0139-.0542-.0091-.1099-.0139-.1667-.0139H5v-3c0-.5523.44772-1 1-1h5V8.57622c-.2139-.14666-.4676-.34115-.7202-.57589C9.74664 7.50489 9 6.62764 9 5.50003c0-1.13003.753-2.00785 1.286-2.50144.2911-.26964.583-.4858.8121-.63689.1145-.07553.2206-.13957.3102-.18855.0434-.0237.0935-.04964.1449-.07268.0246-.01103.0631-.02755.1092-.04332l.0019-.00067ZM4 17.8377V21c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2.8243c-.0609.0534-.1248.1054-.1917.1556-.56.42-1.274.6687-2.1416.6687-.8677 0-1.5817-.2487-2.1417-.6687-.281-.2108-.5081-.4531-.6917-.7045-.1835.2514-.4106.4937-.6917.7045-.5599.42-1.2739.6687-2.1416.6687-.8677 0-1.5817-.2487-2.14169-.6687-.20142-.1511-.37514-.3184-.52499-.4936-.14984.1752-.32356.3425-.52499.4936-.55999.42-1.27398.6687-2.14166.6687s-1.58168-.2487-2.14167-.6687c-.20143-.1511-.37515-.3184-.525-.4936ZM5.2078 16c.0124.0314.0255.0628.03934.0939.11841.2664.27553.4856.47786.6374.19001.1425.47602.2687.94167.2687s.75165-.1262.94166-.2687c.20234-.1518.35945-.371.47786-.6374.01384-.0311.02694-.0625.03934-.0939H5.2078Zm5.3727.0939c-.0139-.0311-.027-.0625-.0394-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4778-.6374Zm5.6666 0c-.0138-.0311-.0269-.0625-.0393-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4779-.6374Z"})],-1),e.createElementVNode("span",{class:"label-md"},"Hoje",-1)])]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[3]||(a[3]=o=>n.$emit("next")),"aria-label":"Próximo mês"},[...a[11]||(a[11]=[e.createElementVNode("span",{class:"label-md"},"Próximo",-1),e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 19l6.5-7L8 5l-1.5 1.3L11.7 12 6.5 17.7z"})],-1)])])]),e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,$c),e.createElementVNode("div",Pc,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost filter-btn",title:"Filtro de eventos",onClick:a[4]||(a[4]=o=>n.$emit("open-filter",o))},[a[12]||(a[12]=e.createElementVNode("svg",{class:"icon-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5.05 3C3.291 3 2.352 5.024 3.51 6.317l5.422 6.059v4.874c0 .472.227.917.613 1.2l3.069 2.25c1.01.742 2.454.036 2.454-1.2v-7.124l5.422-6.059C21.647 5.024 20.708 3 18.95 3H5.05Z"})],-1)),t.filterCount>0?(e.openBlock(),e.createElementBlock("span",{key:0,class:"filter-badge",title:`${t.filterCount} filtro${t.filterCount>1?"s":""} ativo${t.filterCount>1?"s":""}`},e.toDisplayString(t.filterCount),9,Oc)):e.createCommentVNode("",!0)]),e.createElementVNode("div",_c,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="calendar"?"is-active":""]),onClick:a[5]||(a[5]=o=>n.$emit("set-view-mode","calendar")),"aria-label":"Visão Calendário"},[...a[13]||(a[13]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5 5a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1 2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a2 2 0 0 1 2-2ZM3 19v-7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Calendário",-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="agenda"?"is-active":""]),onClick:a[6]||(a[6]=o=>n.$emit("set-view-mode","agenda")),"aria-label":"Visão Agenda"},[...a[14]||(a[14]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 4.717c-2.286-.58-4.16-.756-7.045-.71A1.99 1.99 0 0 0 2 6v11c0 1.133.934 2.022 2.044 2.007 2.759-.38 4.5-.182 6.956.449V4.717Zm2 15.081c2.456-.631 4.198-.829 6.956-.791A2.013 2.013 0 0 0 22 16.999V6a1.99 1.99 0 0 0-1.955-1.993c-2.885-.046-4.76.13-7.045.71v15.081Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Agenda",-1)])],2)]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm show-lg btn-ghost",onClick:a[7]||(a[7]=o=>n.$emit("toggle-compact")),"aria-pressed":t.isCompact,title:t.isCompact?"Sair do modo compacto":"Ativar modo compacto"},[t.isCompact?(e.openBlock(),e.createElementBlock("svg",zc,[...a[16]||(a[16]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4H4m0 0v4m0-4 5 5m7-5h4m0 0v4m0-4-5 5M8 20H4m0 0v-4m0 4 5-5m7 5h4m0 0v-4m0 4-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Hc,[...a[15]||(a[15]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8h4V4m12 4h-4V4M4 16h4v4m12-4h-4v4"},null,-1)])]))],8,Rc)])]))}},[["__scopeId","data-v-e367c35d"]]),Gc=["title"],Ic={class:"week-header"},qc=we({__name:"WeekDays",props:{weekDays:{type:Array,default:()=>[]},month:String,year:[String,Number]},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,Gc),e.createElementVNode("div",Ic,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.weekDays,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"week-cell"},e.toDisplayString(o),1))),128))])],64))}},[["__scopeId","data-v-a59e7945"]]),Wc=["onClick"],Uc={key:0,class:"cell-today-indicator show-lg"},Zc={class:"cell-top"},Yc={class:"day-number"},Xc={key:1,class:"more"},Kc={class:"bars-wrap"},Qc=4,Jc=8,gr=4,yr=2,ed=1,td=we({__name:"CalendarGrid",props:{startOffset:Number,monthDays:Array,viewDate:Date,isCompact:Boolean,isSameMonthFn:Function,isSelectedDayFn:Function,isTodayFn:Function,selectDayFn:Function,eventsByDayFn:Function,dayEventCountFn:Function,eventBarsToShowFn:Function,dayEventOverflowFn:Function},setup(t){const n=t,a=e.ref({}),o=new Map;function r(m){const p=(m==null?void 0:m.clientWidth)||0,y=(m==null?void 0:m.clientHeight)||0;if(!p||!y)return{cols:0,rows:0,widths:[],sum:0};const k=Math.max(0,Math.floor((p+gr)/(Qc+gr))),b=Math.max(0,Math.floor((y+yr)/(Jc+yr))),x=l(k,b),C=x.reduce((M,D)=>M+D,0);return{cols:k,rows:b,widths:x,sum:C}}function i(m,p){const y=r(p),k=a.value[m];(!k||k.cols!==y.cols||k.rows!==y.rows||k.sum!==y.sum)&&(a.value={...a.value,[m]:y})}function s(m,p){if(!p){const k=o.get(m);if(k&&(k.disconnect(),o.delete(m)),a.value[m]!=null){const b={...a.value};delete b[m],a.value=b}return}i(m,p);const y=new ResizeObserver(()=>i(m,p));y.observe(p),o.set(m,y)}e.onBeforeUnmount(()=>{o.forEach(m=>m.disconnect()),o.clear()});function l(m,p){if(m<=0||p<=0)return[];const y=[],k=.25;for(let b=0;b<p;b++){const x=b/Math.max(1,p-1),C=k+(1-k)*x,M=Math.max(1,Math.round(m*C));y.push(Math.min(M,m))}return y}function c(m,p){var C;const y=(typeof n.dayEventCountFn=="function"?n.dayEventCountFn(p):0)||0,k=((C=a.value[m])==null?void 0:C.sum)??0;if(y<=k)return{bars:y,overflow:0};const b=Math.max(0,k-ed),x=Math.max(0,y-b);return{bars:b,overflow:x}}function u(m,p){const y=a.value[m];if(!y||y.rows===0||y.cols===0)return[];const{widths:k}=y,x=c(m,p).bars,C=(typeof n.eventsByDayFn=="function"?n.eventsByDayFn(p).slice(0,x):[])||[],M=k.map(()=>[]);let D=0;for(let H=k.length-1;H>=0&&D<C.length;H--){const S=Math.min(k[H],C.length-D);M[H]=C.slice(D,D+S),D+=S}return M}const d=e.ref(null);function h(m){return m&&m.nodeType===1&&typeof m.getBoundingClientRect=="function"}function f(m){if(!h(m))return;const p=d.value,y=p&&h(p)?p:m.offsetParent;if(!h(y))return;let k,b;try{k=m.getBoundingClientRect(),b=y.getBoundingClientRect()}catch{return}const x=y.scrollLeft||0,C=y.scrollTop||0;m.style.position="absolute",m.style.zIndex="0",m.style.top=`${k.top-b.top+C}px`,m.style.left=`${k.left-b.left+x}px`,m.style.width=`${k.width}px`,m.style.height=`${k.height}px`,m.style.pointerEvents="none"}function g(m){!m||!m.style||requestAnimationFrame(()=>{!m||!m.style||(m.style.position="",m.style.zIndex="",m.style.top="",m.style.left="",m.style.width="",m.style.height="",m.style.pointerEvents="")})}return(m,p)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"cal-fade","move-class":"cal-move",tag:"div",class:"cal-grid calendar-grid",appear:"",ref_key:"gridRef",ref:d,onBeforeLeave:f,onAfterLeave:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.startOffset,y=>(e.openBlock(),e.createElementBlock("div",{key:"x"+y,class:"cal-cell day-empty bg-base-300 border border-base-100"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.monthDays,(y,k)=>(e.openBlock(),e.createElementBlock("div",{key:y.key,style:e.normalizeStyle({"--i":k}),class:e.normalizeClass(["cal-cell day-cell border border-base-100 bg-base-200 hover:bg-base-100",[t.isSameMonthFn(y.date,t.viewDate)?"":"opacity-60",t.isSelectedDayFn(y.date)?"neon-selected":"",t.isTodayFn(y.date)?"is-today":"",t.dayEventCountFn(y.date)>0?"has-events":""]]),onClick:b=>t.selectDayFn(y.date)},[t.isTodayFn(y.date)?(e.openBlock(),e.createElementBlock("div",Uc," Hoje ")):e.createCommentVNode("",!0),e.createElementVNode("div",Zc,[e.createElementVNode("span",Yc,e.toDisplayString(y.date.getDate()),1)]),c(y.key,y.date).overflow>0?(e.openBlock(),e.createElementBlock("span",Xc," +"+e.toDisplayString(c(y.key,y.date).overflow),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Kc,[e.createElementVNode("div",{class:"bars-vert",ref_for:!0,ref:b=>s(y.key,b)},[c(y.key,y.date).bars>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u(y.key,y.date),(b,x)=>(e.openBlock(),e.createElementBlock("div",{key:"vrow"+x,class:"vrow"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b,(C,M)=>(e.openBlock(),e.createElementBlock("span",{key:"vbar"+x+"-"+M,class:"vbar",style:e.normalizeStyle({background:e.unref(Rn)(C),boxShadow:`0 0 8px ${e.unref(Rn)(C)}70`})},null,4))),128))]))),128)):e.createCommentVNode("",!0)],512)])],14,Wc))),128))]),_:1},512))}},[["__scopeId","data-v-82c146bb"]]),nd={class:"agenda-section"},ad={key:0,class:"empty-state"},od={key:1,class:"day-list"},rd={class:"date-trail"},id={class:"weekday-short"},sd={class:"date-pill bg-base-200 border border-base-300"},ld={class:"date-pill-month"},cd={class:"date-pill-day"},dd={class:"content-col"},ud={class:"day-header"},md={class:"agenda-title"},fd={class:"month-header-text"},hd={class:"events-list"},pd=we({__name:"AgendaList",props:{days:{type:Array,default:()=>[]},weekdayLong:Function,weekdayShort:Function,monthShort:Function,monthLabelOf:Function,year:Number},emits:["open-chat","open-message","delete-message"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("section",nd,[t.days.length===0?(e.openBlock(),e.createElementBlock("div",ad," Sem eventos neste mês. ")):(e.openBlock(),e.createElementBlock("ul",od,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.days,r=>{var i;return e.openBlock(),e.createElementBlock("li",{key:r.key,class:"day-item border-base-200"},[e.createElementVNode("div",rd,[e.createElementVNode("div",id,e.toDisplayString(t.weekdayShort(r.date)),1),e.createElementVNode("div",sd,[e.createElementVNode("div",ld,e.toDisplayString(t.monthShort(r.date)),1),e.createElementVNode("div",cd,e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",{style:e.normalizeStyle({background:e.unref(Rn)(((i=r.events)==null?void 0:i[0])||{})}),class:"date-pill-dot"},null,4)])]),e.createElementVNode("div",dd,[e.createElementVNode("div",ud,[e.createElementVNode("h3",md,e.toDisplayString(t.weekdayLong(r.date).toUpperCase())+" "+e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",fd,e.toDisplayString(t.monthLabelOf(r.date).toUpperCase())+" "+e.toDisplayString(t.year),1)]),e.createElementVNode("ul",hd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.events,s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"event-item border border-base-100 bg-base-200 hover:bg-base-100"},[e.createVNode(Va,{ev:s,mode:"agenda",onOpenMessage:o[0]||(o[0]=l=>a.$emit("open-message",l)),onOpenChat:o[1]||(o[1]=l=>a.$emit("open-chat",l)),onDeleteMessage:o[2]||(o[2]=l=>a.$emit("delete-message",l))},null,8,["ev"])]))),128))])])])}),128))]))]))}},[["__scopeId","data-v-d901943e"]]),gd=["data-mode","data-empty"],yd=["disabled"],kr=we({__name:"EventsList",props:{loading:{type:Boolean,default:!1},selectedLabel:{type:String,default:""},selectedLabelLong:{type:String,default:""},events:{type:Array,default:()=>[]},mode:{type:String,default:"compact"}},emits:["reload","open-chat","open-message","delete-message"],setup(t){const n=t,a=e.computed(()=>n.mode==="compact"?n.selectedLabelLong||"Hoje":`Eventos em ${n.selectedLabel||"—"}`);return(o,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["bg-base-300 daylist",[t.mode==="compact"?"daylist--compact has-border border-base-200":"daylist--sidebar has-border border-base-200 supports-blur",{"daylist--tight":t.mode==="compact"&&!t.loading&&t.events.length===0}]]),"data-mode":t.mode,"data-empty":!t.loading&&t.events.length===0?"1":"0"},[e.createElementVNode("div",{class:e.normalizeClass(["daylist-header",t.mode==="compact"?"daylist-header--compact bg-base-300":"daylist-header--sidebar bg-base-300"])},[e.createElementVNode("h3",{class:e.normalizeClass(t.mode==="compact"?"daylist-title--compact":"daylist-title--sidebar")},e.toDisplayString(a.value),3),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:r[0]||(r[0]=i=>o.$emit("reload")),disabled:t.loading},e.toDisplayString(t.loading?"Atualizando…":"Atualizar"),9,yd)],2),t.loading?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["loading-text",t.mode==="compact"?"is-compact":"is-sidebar"])}," Carregando… ",2)]),_:1})):t.events.length===0?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[...r[4]||(r[4]=[e.createElementVNode("div",{class:"empty-text"},"Sem eventos.",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,name:"list","move-class":"list-move",tag:"ul",appear:"",class:e.normalizeClass([t.mode==="compact"?"list-compact has-border border-base-300 bg-base-200 supports-blur":"list-sidebar"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.events,(i,s)=>(e.openBlock(),e.createElementBlock("li",{key:i.id,style:e.normalizeStyle({"--i":s}),class:e.normalizeClass(t.mode==="compact"?"item-compact hover:bg-base-100":"item-sidebar hover:z-10 has-border hover:bg-base-100 border-base-100 bg-base-200 ")},[e.createVNode(Va,{ev:i,mode:t.mode==="compact"?"compact":"sidebar",onOpenMessage:r[1]||(r[1]=l=>o.$emit("open-message",l)),onOpenChat:r[2]||(r[2]=l=>o.$emit("open-chat",l)),onDeleteMessage:r[3]||(r[3]=l=>o.$emit("delete-message",l))},null,8,["ev","mode"])],6))),128))]),_:1},8,["class"]))],10,gd))}},[["__scopeId","data-v-0c2dc086"]]),kd={class:"cpk-popover__header border-base-100"},xd={class:"filter-body"},bd={class:"row"},wd=["checked"],Ed={class:"row row--status",role:"group","aria-label":"Filtrar por status de execução"},vd={class:"status-wrap"},Cd={class:"seg"},Sd=we({__name:"CalFilter",props:{open:{type:Boolean,default:!1},anchorEl:{type:[HTMLElement,Object],default:null},offset:{type:Number,default:8},align:{type:String,default:"center"},filters:{type:Object,default:()=>({})}},emits:["close","update:filters"],setup(t,{emit:n}){const a=t,o=n,r=Yt(),i=e.computed(()=>r.attendants.find(S=>S.is_me)||null),s=e.reactive({onlyMine:!1,status:null});e.watch(()=>a.open,async S=>{var V,N,B;if(!S)return;await e.nextTick();const w=(V=i.value)!=null&&V.id?String(i.value.id):null;s.onlyMine=!!w&&String(((N=a.filters)==null?void 0:N.scheduled_by)??"")===w;const T=(B=a.filters)==null?void 0:B.status;s.status=T===!0||T===!1?T:null,y()},{immediate:!1});function l(S,w){if(!S)return{};const{[w]:T,...V}=S;return V}function c(S){var T;s.onlyMine=!!S.target.checked;const w=(T=i.value)!=null&&T.id?String(i.value.id):null;s.onlyMine&&w?o("update:filters",{...a.filters,scheduled_by:w}):o("update:filters",l(a.filters,"scheduled_by"))}function u(S){if(s.status===S){s.status=null;const w=l(a.filters,"status");o("update:filters",w)}else s.status=S,o("update:filters",{...a.filters,status:S})}const d=e.ref(null),h=e.ref({left:0,top:0,placed:"bottom"}),f=e.computed(()=>({position:"fixed",left:`${h.value.left}px`,top:`${h.value.top}px`}));function g(){const S=a.anchorEl instanceof Element?a.anchorEl:null;if(S!=null&&S.getBoundingClientRect)return S.getBoundingClientRect();const w=window.innerWidth/2,T=window.innerHeight/3;return{left:w,right:w,top:T,bottom:T,width:0,height:0}}function m(S,w,T,V){return{left:Math.max(8,Math.min(S,window.innerWidth-T-8)),top:Math.max(8,Math.min(w,window.innerHeight-V-8))}}function p(){const S=g(),w=d.value,T=(w==null?void 0:w.offsetWidth)??300,V=(w==null?void 0:w.offsetHeight)??220;let N=S.bottom+a.offset,B;if(a.align==="center"?B=S.left+S.width/2-T/2:a.align==="end"?B=S.right-T:B=S.left,N+V>window.innerHeight-4){const P=S.top-V-a.offset;P>=4?(N=P,h.value.placed="top"):h.value.placed="bottom"}else h.value.placed="bottom";const v=m(B,N,T,V);h.value={left:v.left,top:v.top,placed:h.value.placed}}function y(){p(),requestAnimationFrame(p)}let k,b,x=[];function C(){M(),x=[window];const S=a.anchorEl instanceof Element?a.anchorEl:null;let w=S==null?void 0:S.parentElement;for(;w&&w!==document.body;){const T=getComputedStyle(w);/(auto|scroll)/.test(T.overflow+T.overflowY+T.overflowX)&&x.push(w),w=w.parentElement}x.forEach(T=>T.addEventListener("scroll",y,{passive:!0}))}function M(){x.forEach(S=>{var w;return(w=S.removeEventListener)==null?void 0:w.call(S,"scroll",y)}),x=[]}e.watch(()=>a.open,async S=>{var T,V,N,B;if(!S){M(),(T=k==null?void 0:k.disconnect)==null||T.call(k),(V=b==null?void 0:b.disconnect)==null||V.call(b);return}await e.nextTick(),y(),C(),(N=k==null?void 0:k.disconnect)==null||N.call(k),k=new ResizeObserver(y),k.observe(document.body),(B=b==null?void 0:b.disconnect)==null||B.call(b);const w=a.anchorEl instanceof Element?a.anchorEl:null;w&&(b=new ResizeObserver(y),b.observe(w)),window.addEventListener("resize",y)}),e.watch(()=>a.anchorEl,async()=>{a.open&&(await e.nextTick(),C(),y())});function D(S){S.key==="Escape"&&o("close")}function H(S){if(!a.open)return;const w=S.target,T=d.value;if(T&&T.contains(w))return;const V=a.anchorEl instanceof Element?a.anchorEl:null;V&&V.contains&&V.contains(w)||o("close")}return e.onMounted(()=>{document.addEventListener("pointerdown",H,!0),window.addEventListener("keydown",D)}),e.onBeforeUnmount(()=>{var S,w;document.removeEventListener("pointerdown",H,!0),window.removeEventListener("keydown",D),M(),(S=k==null?void 0:k.disconnect)==null||S.call(k),(w=b==null?void 0:b.disconnect)==null||w.call(b)}),(S,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:w[4]||(w[4]=e.withModifiers(T=>S.$emit("close"),["self"]))},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:d,class:"cpk-popover bg-base-300",style:e.normalizeStyle(f.value),role:"dialog","aria-modal":"true","aria-label":"Filtro de eventos"},[e.createElementVNode("div",kd,[w[5]||(w[5]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"⚙",-1)),w[6]||(w[6]=e.createElementVNode("h3",{class:"cpk-popover__title"},"Filtros",-1)),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:w[0]||(w[0]=T=>S.$emit("close")),"aria-label":"Fechar"}," × ")]),e.createElementVNode("div",xd,[e.createElementVNode("label",bd,[e.createElementVNode("input",{class:"switch",type:"checkbox",checked:s.onlyMine,onChange:w[1]||(w[1]=T=>c(T)),"aria-label":"Exibir somente meus eventos"},null,40,wd),w[7]||(w[7]=e.createElementVNode("span",{class:"label-cpk"},"Exibir somente meus eventos",-1))]),e.createElementVNode("div",Ed,[w[9]||(w[9]=e.createElementVNode("span",{class:"status-icon","aria-hidden":"true"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})])],-1)),e.createElementVNode("div",vd,[w[8]||(w[8]=e.createElementVNode("div",{class:"label-cpk"},[e.createTextVNode(" Status "),e.createElementVNode("span",{class:"sched-pop",tabindex:"0","aria-label":"Ajuda sobre status"},[e.createElementVNode("span",{class:"sched-pop__mark"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.008-3.018a1.502 1.502 0 0 1 2.522 1.159v.024a1.44 1.44 0 0 1-1.493 1.418 1 1 0 0 0-1.037.999V14a1 1 0 1 0 2 0v-.539a3.44 3.44 0 0 0 2.529-3.256 3.502 3.502 0 0 0-7-.255 1 1 0 0 0 2 .076c.014-.398.187-.774.48-1.044Zm.982 7.026a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2h-.01Z","clip-rule":"evenodd"})])]),e.createElementVNode("div",{class:"sched-pop__card bg-base-300",style:{"--popover-brd":"var(--cyber-border)",transform:"translate(-5%, -50%) scale(0.98)"}},[e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Ativos:"),e.createTextVNode(" Eventos que estão programados para ocorrer ")]),e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Executados:"),e.createTextVNode(" Eventos que já ocorreram ")])])])],-1)),e.createElementVNode("div",Cd,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!0?"is-active":""]),onClick:w[2]||(w[2]=T=>u(!0)),"aria-pressed":"state.status === true"}," Ativos ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!1?"is-active":""]),onClick:w[3]||(w[3]=T=>u(!1)),"aria-pressed":"state.status === false"}," Executados ",2)])])])])],4)]),_:1})],32)):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-cc8bb01a"]]),Bd={class:"calendar-content"},Vd={class:"calendar-stage-main"},Md={key:0},xr=we({__name:"scheduledCalendar",props:{sourceUrl:{type:String,default:"/crm_scheduled"},initialDate:{type:[String,Date],default:()=>new Date}},emits:["open-chat","loaded","open-message","close-page"],setup(t,{expose:n,emit:a}){const o=t,r=pr();r.setBaseUrl(o.sourceUrl);const i=new Date,s=e.ref(u(o.initialDate)),l=e.ref(new Date(i.getFullYear(),i.getMonth(),i.getDate())),c=e.ref("calendar");function u(E){if(E instanceof Date)return new Date(E.getFullYear(),E.getMonth(),1);if(typeof E=="string"){const[L,X]=E.split("-").map(ne=>parseInt(ne,10));return new Date(L||i.getFullYear(),(X||i.getMonth()+1)-1,1)}return new Date(i.getFullYear(),i.getMonth(),1)}function d(E){return new Date(E.getFullYear(),E.getMonth()+1,0).getDate()}function h(E){return new Date(E.getFullYear(),E.getMonth(),1).getDay()}function f(E,L){return E.getFullYear()===L.getFullYear()&&E.getMonth()===L.getMonth()}function g(E){return Sa(E,i)}function m(E){return Sa(E,l.value)}function p(E){l.value=new Date(E.getFullYear(),E.getMonth(),E.getDate()),f(E,s.value)||(s.value=new Date(E.getFullYear(),E.getMonth(),1))}function y(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()-1,1)}function k(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()+1,1)}function b(){s.value=new Date(i.getFullYear(),i.getMonth(),1),l.value=new Date(i.getFullYear(),i.getMonth(),i.getDate())}const x=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],C=["DOM","SEG","TER","QUA","QUI","SEX","SÁB"],M=e.computed(()=>v(x[s.value.getMonth()])),D=e.computed(()=>s.value.getFullYear()),H=e.computed(()=>w(l.value)),S=e.computed(()=>`${T(l.value)} ${l.value.getDate()}`);function w(E){return`${String(E.getDate()).padStart(2,"0")}/${String(E.getMonth()+1).padStart(2,"0")}/${E.getFullYear()}`}function T(E){return["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"][E.getDay()]}function V(E){return["DOM","SEG","TER","QUA","QUI","SEX","SÁB"][E.getDay()]}function N(E){return["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"][E.getMonth()]}function B(E){return x[E.getMonth()]}function v(E){return E.charAt(0).toUpperCase()+E.slice(1)}const P=e.computed(()=>h(s.value)),Z=e.computed(()=>{const E=d(s.value);return Array.from({length:E},(L,X)=>{const ne=X+1,se=new Date(s.value.getFullYear(),s.value.getMonth(),ne);return{key:`d${ne}`,date:se}})}),Q=e.ref({open:!1,anchorEl:null});function J(E){Q.value.open=!0,Q.value.anchorEl=(E==null?void 0:E.currentTarget)||null}const{filters:O}=Dt.storeToRefs(r),R=e.computed(()=>Zt(s.value)),_=e.computed(()=>r.eventsOf(R.value)),oe={scheduled_by:E=>{var ne,se,me;const L=(E==null?void 0:E.scheduled_by)??((se=(ne=E==null?void 0:E.raw)==null?void 0:ne.params)==null?void 0:se.scheduled_by)??((me=E==null?void 0:E.raw)==null?void 0:me.scheduled_by)??(E==null?void 0:E.created_by)??(E==null?void 0:E.attendant_id),X=typeof L=="object"&&L?L.id??L.attendant_id:L;return X!=null?String(X):""}};function de(E,L){const X=(L==null?void 0:L.value)??L;return!X||typeof X!="object"?!0:Object.entries(X).every(([ne,se])=>{var Ce,Le,xe;if(se==null||se===""||Array.isArray(se)&&se.length===0)return!0;const me=oe[ne],fe=(me==null?void 0:me(E))??(E==null?void 0:E[ne])??((Ce=E==null?void 0:E.raw)==null?void 0:Ce[ne])??((xe=(Le=E==null?void 0:E.raw)==null?void 0:Le.params)==null?void 0:xe[ne])??null,be=typeof fe=="string"?fe:fe??"";if(typeof se=="function")return!!se(be,E);if(Array.isArray(se))return se.map(String).includes(String(be));if(typeof se=="object"){const{in:A,notIn:z,range:j,contains:F}=se;if(A&&!A.map(String).includes(String(be))||z&&z.map(String).includes(String(be)))return!1;if(j&&typeof be=="number"){const[G,W]=j;if(G!=null&&be<G||W!=null&&be>W)return!1}if(F!=null){const G=Array.isArray(be)?be:String(be).split(",");if(!(Array.isArray(F)?F:[F]).some(ee=>G.map(String).includes(String(ee))))return!1}return!0}return String(be)===String(se)})}const pe=e.computed(()=>(_.value||[]).filter(L=>de(L,O)));function ye(E){return pe.value.filter(L=>Sa(L.date,E))}const Ve=e.computed(()=>ye(l.value)),Fe=e.computed(()=>[...Ve.value].sort((E,L)=>E.date-L.date));function Ae(E){return ye(E).length}function qe(E){return Math.min(3,Ae(E))}function _e(E){const L=Ae(E);return L>3?L-3:0}const $e=e.computed(()=>{const E=s.value.getFullYear(),L=s.value.getMonth(),X=new Map;for(const se of pe.value){const me=se==null?void 0:se.date;if(!(me instanceof Date)||me.getFullYear()!==E||me.getMonth()!==L)continue;const fe=`${E}-${L+1}-${me.getDate()}`;X.has(fe)||X.set(fe,{key:`ag-${fe}`,date:new Date(E,L,me.getDate()),events:[]}),X.get(fe).events.push(se)}const ne=Array.from(X.values());for(const se of ne)se.events.sort((me,fe)=>me.date-fe.date);return ne.sort((se,me)=>se.date-me.date),ne}),Oe=e.ref(!1),ze=e.ref(!1),q=e.computed(()=>ze.value||Oe.value),re=e.computed(()=>q?"calendar-stage--compact":"calendar-stage--single");function he(){var X;const E=window.matchMedia("(max-width: 1280px)"),L=()=>ze.value=E.matches;L(),(X=E.addEventListener)==null||X.call(E,"change",L)}const ae=e.computed(()=>r.isLoading(R.value));e.computed(()=>r.errorOf(R.value));const K=e.ref({open:!1,loading:!1,context:null,title:"Confirmar exclusão",description:"Tem certeza que deseja apagar este item?",destructive:!0,anchorEl:null,confirmLabel:"Apagar",cancelLabel:"Cancelar",loadingLabel:"Apagando…"});function ce(E,L){K.value.open=!0,K.value.context={action:"delete-message",event:E},K.value.title="Confirmar exclusão",K.value.description="Tem certeza que deseja apagar este evento?",K.value.anchorEl=L&&L.currentTarget||typeof document<"u"&&document.activeElement||null,K.value.destructive=!0,K.value.confirmLabel="Apagar",K.value.loadingLabel="Apagando…"}async function $(E){if(E)try{K.value.loading=!0,E.action==="delete-message"&&await Y(E.event)}finally{K.value.loading=!1,K.value.open=!1,K.value.context=null}}function I(){K.value.open=!1,K.value.context=null}async function te(){await r.forceReload(R.value)}async function Y(E){var L;try{E.deleteLoading=!0;const X=((L=E==null?void 0:E.raw)==null?void 0:L.id)??(E==null?void 0:E.id)??E;if(X==null)throw new Error("Evento inválido para exclusão");const ne=await z2(_0,E);return ne!=null&&ne.ok&&(r.removeFromCache(String(X))||await r.forceReload(R.value)),ne}catch(X){return console.error(X),null}finally{E.deleteLoading=!1}}return e.onMounted(async()=>{if(he(),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const E=pe.value[0];l.value=new Date(E.date.getFullYear(),E.date.getMonth(),E.date.getDate())}}),e.watch(()=>o.sourceUrl,async E=>{if(r.setBaseUrl(E),r.resetAll(),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const L=pe.value[0];l.value=new Date(L.date.getFullYear(),L.date.getMonth(),L.date.getDate())}}),e.watch(R,async()=>{const E=s.value.getFullYear(),L=s.value.getMonth(),X=Math.min(l.value.getDate(),d(s.value));if(l.value=new Date(E,L,X),await r.ensureMonthLoaded(R.value),!ye(l.value).length&&pe.value.length){const ne=pe.value[0];l.value=new Date(ne.date.getFullYear(),ne.date.getMonth(),ne.date.getDate())}}),n({updateEvent:r.applyUpdateToCache}),(E,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["calendar-main bg-base-300",{"calendar-main--compact":q.value}])},[e.createElementVNode("div",Bd,[L[15]||(L[15]=e.createElementVNode("div",{class:"cyber-glow-overlay"},null,-1)),e.createVNode(jc,{month:M.value,year:D.value,"is-compact":q.value,"view-mode":c.value,"filter-count":Object.keys(e.unref(O)).length,onPrev:y,onNext:k,onToday:b,onToggleCompact:L[0]||(L[0]=X=>Oe.value=!Oe.value),onSetViewMode:L[1]||(L[1]=X=>c.value=X),onClosePage:L[2]||(L[2]=X=>E.$emit("close-page")),onOpenFilter:J},null,8,["month","year","is-compact","view-mode","filter-count"]),c.value==="calendar"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["calendar-stage",re.value])},[e.createElementVNode("div",Vd,[e.createVNode(qc,{"week-days":C,month:M.value,year:D.value},null,8,["month","year"]),e.createVNode(td,{"start-offset":P.value,"month-days":Z.value,"view-date":s.value,"is-compact":q.value,"is-same-month-fn":f,"is-selected-day-fn":m,"is-today-fn":g,"select-day-fn":p,"events-by-day-fn":ye,"day-event-count-fn":Ae,"event-bars-to-show-fn":qe,"day-event-overflow-fn":_e},null,8,["start-offset","month-days","view-date","is-compact"])]),q.value?(e.openBlock(),e.createBlock(kr,{key:0,class:"calendar-daylist calendar-daylist--mobile",loading:ae.value,"selected-label-long":S.value,events:Fe.value,mode:"compact",onReload:te,onOpenChat:L[3]||(L[3]=X=>E.$emit("open-chat",X)),onOpenMessage:L[4]||(L[4]=X=>E.$emit("open-message",X)),onDeleteMessage:L[5]||(L[5]=(X,ne)=>ce(X,ne))},null,8,["loading","selected-label-long","events"])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(pd,{key:1,days:$e.value,"weekday-long":T,"weekday-short":V,"month-short":N,"month-label-of":B,year:D.value,onOpenChat:L[6]||(L[6]=X=>E.$emit("open-chat",X)),onOpenMessage:L[7]||(L[7]=X=>E.$emit("open-message",X)),onDeleteMessage:L[8]||(L[8]=(X,ne)=>ce(X,ne))},null,8,["days","year"]))]),e.createVNode(kr,{class:"calendar-daylist calendar-daylist--desktop",loading:ae.value,"selected-label":H.value,"selected-label-long":S.value,events:Fe.value,mode:q.value?"compact":"sidebar",onReload:te,onOpenChat:L[9]||(L[9]=X=>E.$emit("open-chat",X)),onOpenMessage:L[10]||(L[10]=X=>E.$emit("open-message",X)),onDeleteMessage:L[11]||(L[11]=(X,ne)=>ce(X,ne))},null,8,["loading","selected-label","selected-label-long","events","mode"])],2),e.createVNode(Ml,{modelValue:K.value.open,"onUpdate:modelValue":L[12]||(L[12]=X=>K.value.open=X),title:K.value.title,description:K.value.description,destructive:K.value.destructive,"confirm-label":K.value.confirmLabel,"cancel-label":K.value.cancelLabel,loading:K.value.loading,"loading-label":K.value.loadingLabel,context:K.value.context,"anchor-el":K.value.anchorEl,placement:"auto",align:"center",offset:12,onConfirm:$,onCancel:I},{details:e.withCtx(()=>{var X;return[(X=K.value.context)!=null&&X.event?(e.openBlock(),e.createElementBlock("div",Md,[e.createVNode(Va,{"view-only":!0,mode:"sidebar",ev:K.value.context.event},null,8,["ev"])])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue","title","description","destructive","confirm-label","cancel-label","loading","loading-label","context","anchor-el"]),e.createVNode(Sd,{open:Q.value.open,"anchor-el":Q.value.anchorEl,filters:e.unref(O),"onUpdate:filters":L[13]||(L[13]=X=>e.isRef(O)?O.value=X:null),onClose:L[14]||(L[14]=X=>Q.value.open=!1)},null,8,["open","anchor-el","filters"])],64))}},[["__scopeId","data-v-d0a577ac"]]),Nd={class:"flex flex-col text-center"},Ad={class:"flex flex-col space-y-3 justify-center"},Td={class:"space-x-4 flex-col text-black justify-center"},Dd=["onUpdate:modelValue","onInput","onKeydown"],br={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(t,{emit:n}){e.onMounted(()=>{r.value[0].focus()});const a=n,o=e.ref(Array(6).fill("")),r=e.ref([]);e.ref(!1);const i=u=>{const d=o.value[u];o.value[0]<1&&a("reset"),/^\d$/.test(d)?s(u):o.value[u]="",u===o.value.length-1&&o.value.every(h=>h!=="")&&c()},s=u=>{u<o.value.length-1&&o.value[u]&&r.value[u+1].focus()},l=(u,d)=>{d.key==="Backspace"&&!o.value[u]&&u>0&&r.value[u-1].focus()},c=()=>{const u=o.value.join("");a("filled",u)};return(u,d)=>(e.openBlock(),e.createElementBlock("section",Nd,[e.createElementVNode("div",Ad,[e.createElementVNode("div",Td,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(h,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:f,"onUpdate:modelValue":g=>o.value[f]=g,class:e.normalizeClass([t.eventHandling==="check"?"checked_mfa":t.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:g=>i(f),onKeydown:e.withKeys(g=>l(f,g),["backspace"]),ref_for:!0,ref_key:"inputs",ref:r},null,42,Dd)),[[e.vModelText,o.value[f]]])),128))])])]))}},Ld={class:"text-center flex gap-3"},Fd={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},$d={key:0,class:"items-center justify-center inline-flex"},Pd=["src"],Od={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(t,{emit:n}){const a=n;e.ref(!1);const o=t,r=()=>{a("generateQR")},i=e.computed(()=>o.base64?o.base64:l.value),s=e.computed(()=>`w-${o.dimensions[0]} h-${o.dimensions[1]}`),l=e.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(c,u)=>(e.openBlock(),e.createElementBlock("div",Ld,[e.createElementVNode("section",Fd,[t.generated?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([s.value,"btnQrCode"])},[t.loading?(e.openBlock(),e.createElementBlock("div",$d,[...u[0]||(u[0]=[e.createElementVNode("div",{class:"loaderMFA"},null,-1)])])):(e.openBlock(),e.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:r}," Gerar QR "))],2)),e.createElementVNode("img",{class:e.normalizeClass([[s.value,t.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,Pd)])]))}};for(var We=[],Ma=0;Ma<256;++Ma)We.push((Ma+256).toString(16).slice(1));function _d(t,n=0){return(We[t[n+0]]+We[t[n+1]]+We[t[n+2]]+We[t[n+3]]+"-"+We[t[n+4]]+We[t[n+5]]+"-"+We[t[n+6]]+We[t[n+7]]+"-"+We[t[n+8]]+We[t[n+9]]+"-"+We[t[n+10]]+We[t[n+11]]+We[t[n+12]]+We[t[n+13]]+We[t[n+14]]+We[t[n+15]]).toLowerCase()}var Hn,Rd=new Uint8Array(16);function Hd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(Rd)}var zd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const wr={randomUUID:zd};function jd(t,n,a){if(wr.randomUUID&&!t)return wr.randomUUID();t=t||{};var o=t.random||(t.rng||Hd)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,_d(o)}function Er(){const t=Yt(),n=async l=>{const c=t.attendants.find(u=>u.id===l);if(c)try{const u=await Xe.get(`${Ea}?attendant=${l}&page=1`);c.messages=u.data.results.reverse(),c.hasNextPage=u.data.next!==null,c.currentPage=2,c.internal_chat={channel_id:u.data.channel_id,unread:0}}catch(u){console.error("Erro ao buscar mensagens:",u)}},a=async l=>{const c=t.attendants.find(u=>u.id===l);if(!(!c||!c.hasNextPage))try{const u=await Xe.get(`${Ea}?attendant=${l}&page=${c.currentPage}`);c.messages=[...u.data.results.reverse(),...c.messages],c.hasNextPage=u.data.next!==null,c.currentPage++}catch(u){console.error("Erro ao carregar mais mensagens:",u)}},o=(l,c,u)=>{const d=l==null?void 0:l.message;if(!d)return;const h=t.attendants.find(f=>{var g;return((g=f.internal_chat)==null?void 0:g.channel_id)===d.channel_id});h?(h.messages=h.messages||[],h.messages.find(g=>g.id===d.id)||(h.messages.push(d),(!c||h.id!==u)&&(h.internal_chat.unread=(h.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},r=l=>{const c=t.attendants.find(u=>u.id===l);c&&(c.internal_chat.unread=0)},i=async(l,c,u,d=!1)=>{var m;const h=t.attendants.find(p=>p.id===l);if(!h||!((m=h.internal_chat)!=null&&m.channel_id))return;let f;d?f=c:f={type:"text",content:c};const g={id:jd(),content:f,created_at:new Date().toISOString(),sender:u};h.messages.push(g);try{await Xe.post(`${Ea}${h.internal_chat.channel_id}/message/`,{id:g.id,content:g.content})}catch(p){console.error("Erro ao enviar mensagem:",p)}},s=l=>{const c=t.attendants.find(u=>u.id===l);return c?c.hasNextPage:!1};return{attendants:e.computed(()=>t.attendants),count:e.computed(()=>t.count),fetchMessagesForAtendente:n,loadMessagesForAtendente:a,addMessageToAtendente:o,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:r}}const Gd={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},Id={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},qd=["src"],Na=we({__name:"Avatar",props:{url:{type:String}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",Gd,[t.url?(e.openBlock(),e.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:t.url},null,8,qd)):(e.openBlock(),e.createElementBlock("svg",Id,[...a[0]||(a[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])]))]))}},[["__scopeId","data-v-1d00f344"]]),Wd={class:"attendants-container"},Ud={class:"atendentes-list bg-base-300"},Zd={key:0,class:"empty-message bg-base-200"},Yd=["onClick"],Xd={class:"atendente-main"},Kd={class:"atendente-name"},Qd={class:"flex items-center gap-4"},Jd={key:0,class:"message-indicator"},e3={key:0,class:"chat-footer bg-base-200"},vr=we({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=c=>{o("atendenteSelecionado",c)},s=c=>{switch(c){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=e.computed(()=>r.value?a.atendentes.filter(c=>c.name.toLowerCase().includes(r.value.toLowerCase())&&c.id!==a.attendant.id):a.atendentes.filter(c=>c.id!==a.attendant.id));return(c,u)=>(e.openBlock(),e.createElementBlock("div",Wd,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),class:e.normalizeClass(t.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[e.vModelText,r.value]]),e.createElementVNode("ul",Ud,[l.value.length===0?(e.openBlock(),e.createElementBlock("li",Zd,e.toDisplayString(t.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,d=>(e.openBlock(),e.createElementBlock("li",{key:d.id,onClick:h=>i(d),class:e.normalizeClass([["atendente-item",d.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[e.createElementVNode("main",Xd,[e.createVNode(Na,{url:d.photo},null,8,["url"]),e.createElementVNode("span",Kd,e.toDisplayString(d.name),1)]),e.createElementVNode("footer",Qd,[d.internal_chat.unread>0?(e.openBlock(),e.createElementBlock("span",Jd,e.toDisplayString(d.internal_chat.unread),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",s(d.login_status)])},null,2)]),u[1]||(u[1]=e.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,Yd))),128))]),t.mobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",e3))]))}},[["__scopeId","data-v-9be33af9"]]);function t3(t,n=null){if(!t)return!1;const a=t.getBoundingClientRect(),o=n?n.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return a.bottom>=o.top&&a.top<=o.bottom&&a.right>=o.left&&a.left<=o.right}async function n3(t){return t?(await e.nextTick(),t.value instanceof HTMLElement?t.value:t.value?document.querySelector(t.value):null):null}function a3(t){let n=`0px 0px ${t.distance}px 0px`;t.top&&(n=`${t.distance}px 0px 0px 0px`);const a=new IntersectionObserver(o=>{o[0].isIntersecting&&(t.firstload&&t.emit(),t.firstload=!0)},{root:t.parentEl,rootMargin:n});return t.infiniteLoading.value&&a.observe(t.infiniteLoading.value),a}async function Cr(t,n){if(await e.nextTick(),!t.top)return;const a=t.parentEl||document.documentElement;a.scrollTop=a.scrollHeight-n}const Sr=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},o3={},r3=t=>(e.pushScopeId("data-v-d3e37633"),t=t(),e.popScopeId(),t),i3={class:"container"},s3=r3(()=>e.createElementVNode("div",{class:"spinner"},null,-1)),l3=[s3];function c3(t,n){return e.openBlock(),e.createElementBlock("div",i3,l3)}const d3=Sr(o3,[["render",c3],["__scopeId","data-v-d3e37633"]]),u3={class:"state-error"},Xt=Sr(e.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(t,{emit:n}){const a=t;let o=null,r=0;const i=e.ref(null),s=e.ref(""),{top:l,firstload:c,distance:u}=a,{identifier:d,target:h}=e.toRefs(a),f={infiniteLoading:i,top:l,firstload:c,distance:u,parentEl:null,emit(){r=(f.parentEl||document.documentElement).scrollHeight,g.loading(),n("infinite",g)}},g={loading(){s.value="loading"},async loaded(){s.value="loaded",await Cr(f,r),t3(i.value,f.parentEl)&&f.emit()},async complete(){s.value="complete",await Cr(f,r),o==null||o.disconnect()},error(){s.value="error"}};function m(){o==null||o.disconnect(),o=a3(f)}return e.watch(d,m),e.onMounted(async()=>{f.parentEl=await n3(h),m()}),e.onUnmounted(()=>o==null?void 0:o.disconnect()),(p,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[e.withDirectives(e.createElementVNode("div",null,[e.renderSlot(p.$slots,"spinner",{},()=>[e.createVNode(d3)],!0)],512),[[e.vShow,s.value=="loading"]]),s.value=="complete"?e.renderSlot(p.$slots,"complete",{key:0},()=>{var k;return[e.createElementVNode("span",null,e.toDisplayString(((k=p.slots)==null?void 0:k.complete)||"No more results!"),1)]},!0):e.createCommentVNode("",!0),s.value=="error"?e.renderSlot(p.$slots,"error",{key:1,retry:f.emit},()=>{var k;return[e.createElementVNode("span",u3,[e.createElementVNode("span",null,e.toDisplayString(((k=p.slots)==null?void 0:k.error)||"Oops something went wrong!"),1),e.createElementVNode("button",{class:"retry",onClick:y[0]||(y[0]=(...b)=>f.emit&&f.emit(...b))},"retry")])]},!0):e.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]);function m3(t,n,a){const o=ct(t,a==null?void 0:a.in);return isNaN(n)?rt(t,NaN):(o.setDate(o.getDate()+n),o)}function zn(t,n){return Pt(t,{...n,weekStartsOn:1})}function Br(t,n){const a=ct(t,n==null?void 0:n.in),o=a.getFullYear(),r=rt(a,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=zn(r),s=rt(a,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const l=zn(s);return a.getTime()>=i.getTime()?o+1:a.getTime()>=l.getTime()?o:o-1}function Vr(t){const n=ct(t),a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),+t-+a}function jn(t,n){const a=ct(t,n==null?void 0:n.in);return a.setHours(0,0,0,0),a}function f3(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n),i=jn(o),s=jn(r),l=+i-Vr(i),c=+s-Vr(s);return Math.round((l-c)/Tl)}function h3(t,n){const a=Br(t,n),o=rt(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),zn(o)}function Aa(t){return rt(t,Date.now())}function Mr(t,n,a){const[o,r]=Ca(a==null?void 0:a.in,t,n);return+jn(o)==+jn(r)}function p3(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function g3(t){return!(!p3(t)&&typeof t!="number"||isNaN(+ct(t)))}function y3(t,n){const a=ct(t,n==null?void 0:n.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function k3(t,n){const a=ct(t,n==null?void 0:n.in);return f3(a,y3(a))+1}function x3(t,n){const a=ct(t,n==null?void 0:n.in),o=+zn(a)-+h3(a);return Math.round(o/cr)+1}function Nr(t,n){var d,h,f,g;const a=ct(t,n==null?void 0:n.in),o=a.getFullYear(),r=On(),i=(n==null?void 0:n.firstWeekContainsDate)??((h=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(f=r.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,s=rt((n==null?void 0:n.in)||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const l=Pt(s,n),c=rt((n==null?void 0:n.in)||t,0);c.setFullYear(o,0,i),c.setHours(0,0,0,0);const u=Pt(c,n);return+a>=+l?o+1:+a>=+u?o:o-1}function b3(t,n){var l,c,u,d;const a=On(),o=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??a.firstWeekContainsDate??((d=(u=a.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,r=Nr(t,n),i=rt((n==null?void 0:n.in)||t,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Pt(i,n)}function w3(t,n){const a=ct(t,n==null?void 0:n.in),o=+Pt(a,n)-+b3(a,n);return Math.round(o/cr)+1}function De(t,n){const a=t<0?"-":"",o=Math.abs(t).toString().padStart(n,"0");return a+o}const Bt={y(t,n){const a=t.getFullYear(),o=a>0?a:1-a;return De(n==="yy"?o%100:o,n.length)},M(t,n){const a=t.getMonth();return n==="M"?String(a+1):De(a+1,2)},d(t,n){return De(t.getDate(),n.length)},a(t,n){const a=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,n){return De(t.getHours()%12||12,n.length)},H(t,n){return De(t.getHours(),n.length)},m(t,n){return De(t.getMinutes(),n.length)},s(t,n){return De(t.getSeconds(),n.length)},S(t,n){const a=n.length,o=t.getMilliseconds(),r=Math.trunc(o*Math.pow(10,a-3));return De(r,n.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ar={G:function(t,n,a){const o=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){const o=t.getFullYear(),r=o>0?o:1-o;return a.ordinalNumber(r,{unit:"year"})}return Bt.y(t,n)},Y:function(t,n,a,o){const r=Nr(t,o),i=r>0?r:1-r;if(n==="YY"){const s=i%100;return De(s,2)}return n==="Yo"?a.ordinalNumber(i,{unit:"year"}):De(i,n.length)},R:function(t,n){const a=Br(t);return De(a,n.length)},u:function(t,n){const a=t.getFullYear();return De(a,n.length)},Q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return De(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return De(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,a){const o=t.getMonth();switch(n){case"M":case"MM":return Bt.M(t,n);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,a){const o=t.getMonth();switch(n){case"L":return String(o+1);case"LL":return De(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,a,o){const r=w3(t,o);return n==="wo"?a.ordinalNumber(r,{unit:"week"}):De(r,n.length)},I:function(t,n,a){const o=x3(t);return n==="Io"?a.ordinalNumber(o,{unit:"week"}):De(o,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):Bt.d(t,n)},D:function(t,n,a){const o=k3(t);return n==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):De(o,n.length)},E:function(t,n,a){const o=t.getDay();switch(n){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return De(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return De(i,n.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,a){const o=t.getDay(),r=o===0?7:o;switch(n){case"i":return String(r);case"ii":return De(r,n.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,a){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,a){const o=t.getHours();let r;switch(o===12?r=Kt.noon:o===0?r=Kt.midnight:r=o/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,a){const o=t.getHours();let r;switch(o>=17?r=Kt.evening:o>=12?r=Kt.afternoon:o>=4?r=Kt.morning:r=Kt.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){let o=t.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return Bt.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):Bt.H(t,n)},K:function(t,n,a){const o=t.getHours()%12;return n==="Ko"?a.ordinalNumber(o,{unit:"hour"}):De(o,n.length)},k:function(t,n,a){let o=t.getHours();return o===0&&(o=24),n==="ko"?a.ordinalNumber(o,{unit:"hour"}):De(o,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):Bt.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):Bt.s(t,n)},S:function(t,n){return Bt.S(t,n)},X:function(t,n,a){const o=t.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Dr(o);case"XXXX":case"XX":return Ot(o);case"XXXXX":case"XXX":default:return Ot(o,":")}},x:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"x":return Dr(o);case"xxxx":case"xx":return Ot(o);case"xxxxx":case"xxx":default:return Ot(o,":")}},O:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Tr(o,":");case"OOOO":default:return"GMT"+Ot(o,":")}},z:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Tr(o,":");case"zzzz":default:return"GMT"+Ot(o,":")}},t:function(t,n,a){const o=Math.trunc(+t/1e3);return De(o,n.length)},T:function(t,n,a){return De(+t,n.length)}};function Tr(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),i=o%60;return i===0?a+String(r):a+String(r)+n+De(i,2)}function Dr(t,n){return t%60===0?(t>0?"-":"+")+De(Math.abs(t)/60,2):Ot(t,n)}function Ot(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=De(Math.trunc(o/60),2),i=De(o%60,2);return a+r+n+i}const Lr=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fr=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},E3={p:Fr,P:(t,n)=>{const a=t.match(/(P+)(p+)?/)||[],o=a[1],r=a[2];if(!r)return Lr(t,n);let i;switch(o){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",Lr(o,n)).replace("{{time}}",Fr(r,n))}},v3=/^D+$/,C3=/^Y+$/,S3=["D","DD","YY","YYYY"];function B3(t){return v3.test(t)}function V3(t){return C3.test(t)}function M3(t,n,a){const o=N3(t,n,a);if(console.warn(o),S3.includes(t))throw new RangeError(o)}function N3(t,n,a){const o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const A3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D3=/^'([^]*?)'?$/,L3=/''/g,F3=/[a-zA-Z]/;function $r(t,n,a){var d,h,f,g,m,p,y,k;const o=On(),r=(a==null?void 0:a.locale)??o.locale??l2,i=(a==null?void 0:a.firstWeekContainsDate)??((h=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(f=o.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,s=(a==null?void 0:a.weekStartsOn)??((p=(m=a==null?void 0:a.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??o.weekStartsOn??((k=(y=o.locale)==null?void 0:y.options)==null?void 0:k.weekStartsOn)??0,l=ct(t,a==null?void 0:a.in);if(!g3(l))throw new RangeError("Invalid time value");let c=n.match(T3).map(b=>{const x=b[0];if(x==="p"||x==="P"){const C=E3[x];return C(b,r.formatLong)}return b}).join("").match(A3).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const x=b[0];if(x==="'")return{isToken:!1,value:$3(b)};if(Ar[x])return{isToken:!0,value:b};if(x.match(F3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:b}});r.localize.preprocessor&&(c=r.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return c.map(b=>{if(!b.isToken)return b.value;const x=b.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&V3(x)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&B3(x))&&M3(x,n,String(t));const C=Ar[x[0]];return C(l,x,r.localize,u)}).join("")}function $3(t){const n=t.match(D3);return n?n[1].replace(L3,"'"):t}function P3(t,n){return Ll(rt(t,t),Aa(t),n)}function O3(t,n){return Mr(rt(t,t),Aa(t))}function _3(t,n,a){return m3(t,-1,a)}function R3(t,n){return Mr(rt(t,t),_3(Aa(t)))}/*! License details at fancyapps.com/license */const Te=t=>typeof t=="string";/*! License details at fancyapps.com/license */const Qt=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t;/*! License details at fancyapps.com/license */const H3=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const n=t.scrollHeight>t.clientHeight,a=window.getComputedStyle(t).overflowY,o=a.indexOf("hidden")!==-1,r=a.indexOf("visible")!==-1;return n&&!o&&!r},_t=function(t,n=void 0){return!t||t===document.body||n&&t===n?null:H3(t)?t:_t(t.parentElement,n)};/*! License details at fancyapps.com/license */const wt=function(t){var n=new DOMParser().parseFromString(t,"text/html").body;if(n.childElementCount>1){for(var a=document.createElement("div");n.firstChild;)a.appendChild(n.firstChild);return a}let o=n.firstChild;return!o||o instanceof HTMLElement?o:((a=document.createElement("div")).appendChild(o),a)};/*! License details at fancyapps.com/license */const Be=function(t=0,n=0,a=0){return Math.max(Math.min(n,a),t)};/*! License details at fancyapps.com/license */const Ze=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]";/*! License details at fancyapps.com/license */function Pr(t){return Ze(t)||Array.isArray(t)}function hn(t,n){const a=Object.keys(t),o=Object.keys(n);return a.length===o.length&&a.every(r=>{const i=t[r],s=n[r];return typeof i=="function"?`${i}`==`${s}`:Pr(i)&&Pr(s)?hn(i,s):i===s})}/*! License details at fancyapps.com/license */const Or=function(t){for(const n of Gn)n.getState()===Ke.Running&&n.tick(Ta?t-Ta:0);Ta=t,en=window.requestAnimationFrame(Or)};var Ke,Vt,Jt;(function(t){t[t.Initializing=0]="Initializing",t[t.Running=1]="Running",t[t.Paused=2]="Paused",t[t.Completed=3]="Completed",t[t.Destroyed=4]="Destroyed"})(Ke||(Ke={})),function(t){t[t.Spring=0]="Spring",t[t.Ease=1]="Ease"}(Vt||(Vt={})),function(t){t[t.Loop=0]="Loop",t[t.Reverse=1]="Reverse"}(Jt||(Jt={}));const Gn=new Set;let en=null,Ta=0;function Mt(){let t=Ke.Initializing,n=Vt.Ease,a=0,o=0,r=Mt.Easings.Linear,i=500,s=0,l=0,c=0,u=0,d=1/0,h=.01,f=.01,g=!1,m={},p=null,y={},k={},b={},x=0,C=0,M=Jt.Loop,D=Mt.Easings.Linear;const H=new Map;function S(B,...v){for(const P of H.get(B)||[])P(...v)}function w(B){return o=0,B?p=setTimeout(()=>{T()},B):T(),N}function T(){t=Ke.Running,S("start",y,k)}function V(){if(t=Ke.Completed,b={},S("end",y),t===Ke.Completed)if(a<x){if(a++,M===Jt.Reverse){const B=Object.assign({},m);m=Object.assign({},k),k=B}w(C)}else a=0;return N}const N={getState:function(){return t},easing:function(B){return r=B,n=Vt.Ease,b={},N},duration:function(B){return i=B,N},spring:function(B={}){n=Vt.Spring;const v={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:P,mass:Z,tension:Q,friction:J,restDelta:O,restSpeed:R,maxSpeed:_,clamp:oe}=Object.assign(Object.assign({},v),B);return s=P,l=Z,c=Q,u=J,f=O,h=R,d=_,g=oe,b={},N},isRunning:function(){return t===Ke.Running},isSpring:function(){return n===Vt.Spring},from:function(B){return y=Object.assign({},B),N},to:function(B){return k=B,N},repeat:function(B,v=0,P=Jt.Loop,Z){return x=B,C=v,M=P,D=Z||r,N},on:function(B,v){var P,Z;return P=B,Z=v,H.set(P,[...H.get(P)||[],Z]),N},off:function(B,v){var P,Z;return P=B,Z=v,H.has(P)&&H.set(P,H.get(P).filter(Q=>Q!==Z)),N},start:function(B){return hn(y,k)||(t=Ke.Initializing,m=Object.assign({},y),Gn.add(this),en||(en=window.requestAnimationFrame(Or)),w(B)),N},pause:function(){return p&&(clearTimeout(p),p=null),t===Ke.Running&&(t=Ke.Paused,S("pause",y)),N},end:V,tick:function(B){B>50&&(B=50),o+=B;let v=0,P=!1;if(t!==Ke.Running)return N;if(n===Vt.Ease){v=Be(0,o/i,1),P=v===1;const Q=M===Jt.Reverse?D:r;for(const J in y)y[J]=m[J]+(k[J]-m[J])*Q(v)}if(n===Vt.Spring){const Q=.001*B;let J=0;for(const O in y){const R=k[O];let _=y[O];if(typeof R!="number"||isNaN(R)||typeof _!="number"||isNaN(_))continue;if(Math.abs(R-_)<=f){y[O]=R,b[O]=0;continue}b[O]||(typeof s=="object"&&typeof s[O]=="number"?b[O]=s[O]:b[O]=typeof s=="number"?s:0);let oe=b[O];oe=Be(-1*Math.abs(d),oe,Math.abs(d));const de=oe*l*u;oe+=((_>R?-1:1)*(Math.abs(R-_)*c)-de)/l*Q,_+=oe*Q;const pe=y[O]>R?_<R:_>R;let ye=Math.abs(oe)<h&&Math.abs(R-_)<=f;g&&pe&&(ye=!0),ye?(_=R,oe=0):J++,y[O]=_,b[O]=oe}P=!J}const Z=Object.assign({},k);return S("step",y,m,k,v),P&&t===Ke.Running&&hn(k,Z)&&(t=Ke.Completed,V()),N},getStartValues:function(){return m},getCurrentValues:function(){return y},getCurrentVelocities:function(){return b},getEndValues:function(){return k},destroy:function(){t=Ke.Destroyed,p&&(clearTimeout(p),p=null),m=y=k={},Gn.delete(this)}};return N}Mt.destroy=()=>{for(const t of Gn)t.destroy();en&&(cancelAnimationFrame(en),en=null)},Mt.Easings={Linear:function(t){return t},EaseIn:function(t){return t===0?0:Math.pow(2,10*t-10)},EaseOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},EaseInOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};/*! License details at fancyapps.com/license */function pn(t){return typeof TouchEvent<"u"&&t instanceof TouchEvent}function Da(t,n){const a=[],o=pn(t)?t[n]:t instanceof MouseEvent&&(n==="changedTouches"||t.type!=="mouseup")?[t]:[];for(const r of o)a.push({x:r.clientX,y:r.clientY,ts:Date.now()});return a}function _r(t){return Da(t,"touches")}function Rr(t){return Da(t,"targetTouches")}function Hr(t){return Da(t,"changedTouches")}function Nt(t){const n=t[0],a=t[1]||n;return{x:(n.x+a.x)/2,y:(n.y+a.y)/2,ts:a.ts}}function In(t){const n=t[0],a=t[1]||t[0];return n&&a?-1*Math.sqrt((a.x-n.x)*(a.x-n.x)+(a.y-n.y)*(a.y-n.y)):0}const zr=t=>{t.cancelable&&t.preventDefault()},At={passive:!1},z3={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let qn=!1,gn=!0;const tn=(t,n)=>{let a,o,r,i=Object.assign(Object.assign({},z3),n),s=[],l=[],c=[],u=!1,d=!1,h=!1,f=!1,g=0,m=0,p=0,y=0,k=0,b=0,x=0,C=0,M=0,D=[],H=0,S=0;const w=new Map;function T(O){const R=In(l),_=In(c),oe=R&&_?R/_:0,de=Math.abs(x)>Math.abs(C)?x:C,pe={srcEvent:a,isPanRecognized:u,isSwipeRecognized:d,firstTouch:s,previousTouch:c,currentTouch:l,deltaX:p,deltaY:y,offsetX:k,offsetY:b,velocityX:x,velocityY:C,velocity:de,angle:M,axis:r,scale:oe,center:o};for(const ye of w.get(O)||[])ye(pe)}function V(O){const R=Date.now();if(D=D.filter(_=>!_.ts||_.ts>R-100),O&&D.push(O),x=0,C=0,D.length>3){const _=D[0],oe=D[D.length-1];if(_&&oe){const de=oe.x-_.x,pe=oe.y-_.y,ye=_.ts&&oe.ts?oe.ts-_.ts:0;ye>0&&(x=Math.abs(de)>3?de/(ye/30):0,C=Math.abs(pe)>3?pe/(ye/30):0)}}}function N(O){if(typeof MouseEvent<"u"&&O instanceof MouseEvent){if(qn)return}else qn=!0;const R=O.composedPath()[0],_=i.ignore.join(",");if(R.matches(_)||R.closest(_))return;if(typeof MouseEvent<"u"&&O instanceof MouseEvent){if(!O.buttons||O.button!==0)return;zr(O)}O instanceof MouseEvent&&(window.addEventListener("mousemove",B),window.addEventListener("mouseup",v)),window.addEventListener("blur",P),a=O,l=Rr(O),s=[...l],c=[],m=l.length,o=Nt(l),m===1&&(u=!1,d=!1,h=!1),m&&V(Nt(l));const oe=Date.now(),de=oe-(g||oe);f=de>0&&de<=250&&m===1,g=oe,clearTimeout(H),T("start")}function B(O){var R;if(!s.length||O.defaultPrevented)return;a=O,c=[...l],l=_r(O);const _=Nt(c),oe=Nt(_r(O));if(V(oe),m=l.length,o=oe,c.length===l.length?(p=oe.x-_.x,y=oe.y-_.y):(p=0,y=0),s.length){const de=Nt(s);k=oe.x-de.x,b=oe.y-de.y}if(l.length>1){const de=In(l),pe=In(c);Math.abs(de-pe)>=.1&&(h=!0,T("pinch"))}u||(u=Math.abs(k)>i.panThreshold||Math.abs(b)>i.panThreshold,u&&(gn=!1,clearTimeout(S),S=0,M=Math.abs(180*Math.atan2(b,k)/Math.PI),r=M>45&&M<135?"y":"x",s=[...l],c=[...l],k=0,b=0,p=0,y=0,(R=window.getSelection())===null||R===void 0||R.removeAllRanges(),T("panstart"))),u&&(p||y)&&T("pan"),T("move")}function v(O){if(a=O,!s.length)return;const R=Rr(O),_=Hr(O);if(m=R.length,o=Nt(_),_.length&&V(Nt(_)),c=[...l],l=[...R],s=[...R],m>0)T("end"),u=!1,d=!1,D=[];else{const oe=i.swipeThreshold;(Math.abs(x)>oe||Math.abs(C)>oe)&&(d=!0),u&&T("panend"),d&&T("swipe"),u||d||h||(T("tap"),f?T("doubleTap"):H=setTimeout(function(){T("singleTap")},250)),T("end"),Z()}}function P(){clearTimeout(H),Z(),u&&T("panend"),T("end")}function Z(){qn=!1,u=!1,d=!1,f=!1,m=0,D=[],l=[],c=[],s=[],p=0,y=0,k=0,b=0,x=0,C=0,M=0,r=void 0,window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",v),window.removeEventListener("blur",P),gn||S||(S=setTimeout(()=>{gn=!0,S=0},100))}function Q(O){const R=O.target;qn=!1,R&&!O.defaultPrevented&&(gn||(zr(O),O.stopPropagation()))}const J={init:function(){return t&&(t.addEventListener("click",Q,At),t.addEventListener("mousedown",N,At),t.addEventListener("touchstart",N,At),t.addEventListener("touchmove",B,At),t.addEventListener("touchend",v),t.addEventListener("touchcancel",v)),J},on:function(O,R){return function(_,oe){w.set(_,[...w.get(_)||[],oe])}(O,R),J},off:function(O,R){return w.has(O)&&w.set(O,w.get(O).filter(_=>_!==R)),J},isPointerDown:()=>m>0,destroy:function(){clearTimeout(H),clearTimeout(S),S=0,t&&(t.removeEventListener("click",Q,At),t.removeEventListener("mousedown",N,At),t.removeEventListener("touchstart",N,At),t.removeEventListener("touchmove",B,At),t.removeEventListener("touchend",v),t.removeEventListener("touchcancel",v)),t=null,Z()}};return J};tn.isClickAllowed=()=>gn;/*! License details at fancyapps.com/license */const La={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"};/*! License details at fancyapps.com/license */const Ee=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.add(a)})};/*! License details at fancyapps.com/license */const Qe=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.remove(a)})};/*! License details at fancyapps.com/license */const Ye=(t,n="",a)=>{t&&t.classList&&n.split(" ").forEach(o=>{o&&t.classList.toggle(o,a||!1)})};/*! License details at fancyapps.com/license */const Rt=t=>{t.cancelable&&t.preventDefault()},Je=(t,n=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*n)/n),kt=t=>t instanceof HTMLImageElement;var ge,jr;(function(t){t.Reset="reset",t.Zoom="zoom",t.ZoomIn="zoomIn",t.ZoomOut="zoomOut",t.ZoomTo="zoomTo",t.ToggleCover="toggleCover",t.ToggleFull="toggleFull",t.ToggleMax="toggleMax",t.IterateZoom="iterateZoom",t.Pan="pan",t.Swipe="swipe",t.Move="move",t.MoveLeft="moveLeft",t.MoveRight="moveRight",t.MoveUp="moveUp",t.MoveDown="moveDown",t.RotateCCW="rotateCCW",t.RotateCW="rotateCW",t.FlipX="flipX",t.FlipY="flipY",t.ToggleFS="toggleFS"})(ge||(ge={})),function(t){t.Cover="cover",t.Full="full",t.Max="max"}(jr||(jr={}));const mt={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Fa={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:ge.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:La,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:ge.Zoom,width:"auto"};let Wn,Gr=0,Ir=0,Un=0;const $a=(t,n={},a={})=>{let o,r,i,s,l,c,u,d,h=0,f=Object.assign(Object.assign({},Fa),n),g={},m=Object.assign({},mt),p=Object.assign({},mt);const y=[];function k($){let I=f[$];return I&&typeof I=="function"?I(ce):I}function b(){return t&&t.parentElement&&o&&h===3}const x=new Map;function C($,...I){const te=[...x.get($)||[]];f.on&&te.push(f.on[$]);for(const Y of te)Y&&Y instanceof Function&&Y(ce,...I);$!=="*"&&C("*",$,...I)}function M($){if(!b())return;const I=$.target;if(_t(I))return;const te=Date.now(),Y=[-$.deltaX||0,-$.deltaY||0,-$.detail||0].reduce(function(se,me){return Math.abs(me)>Math.abs(se)?me:se}),E=Be(-1,Y,1);C("wheel",$,E);const L=k("wheelAction");if(!L||$.defaultPrevented)return;const X=p.scale;let ne=X*(E>0?1.5:.5);if(L===ge.Zoom){const se=Math.abs($.deltaY)<100&&Math.abs($.deltaX)<100;if(te-Ir<(se?200:45))return void Rt($);Ir=te;const me=Q(),fe=_();if(Je(ne)<Je(me)&&Je(X)<=Je(me)?(Un+=Math.abs(E),ne=me):Je(ne)>Je(fe)&&Je(X)>=Je(fe)?(Un+=Math.abs(E),ne=fe):(Un=0,ne=Be(me,ne,fe)),Un>7)return}switch(Rt($),L){case ge.Pan:ye(L,{srcEvent:$,deltaX:2*-$.deltaX,deltaY:2*-$.deltaY});break;case ge.Zoom:ye(ge.ZoomTo,{srcEvent:$,scale:ne,center:{x:$.clientX,y:$.clientY}});break;default:ye(L,{srcEvent:$})}}function D($){var I,te;const Y=$.composedPath()[0];if(!tn.isClickAllowed()||!Qt(Y)||$.defaultPrevented||!(t!=null&&t.contains(Y))||Y.hasAttribute("disabled")||Y.hasAttribute("aria-disabled"))return;const E=Y.closest("[data-panzoom-action]"),L=(I=E==null?void 0:E.dataset)===null||I===void 0?void 0:I.panzoomAction,X=((te=E==null?void 0:E.dataset)===null||te===void 0?void 0:te.panzoomValue)||"";if(L){switch(Rt($),L){case ge.ZoomTo:case ge.ZoomIn:case ge.ZoomOut:ye(L,{scale:parseFloat(X||"")||void 0});break;case ge.MoveLeft:case ge.MoveRight:ye(L,{deltaX:parseFloat(X||"")||void 0});break;case ge.MoveUp:case ge.MoveDown:ye(L,{deltaY:parseFloat(X||"")||void 0});break;case ge.ToggleFS:ae();break;default:ye(L)}return}if(!(o!=null&&o.contains(Y)))return;const ne={srcEvent:$};if(ye(k("clickAction"),ne),k("dblClickAction")){const se=Date.now(),me=se-(Gr||se);Gr=se,me>0&&me<=250?(Wn&&(clearTimeout(Wn),Wn=void 0),ye(k("dblClickAction"),ne)):Wn=setTimeout(()=>{ye(k("singleClickAction"),ne)},250)}}function H($){if(d=$,!b()||!v()||m.scale<=1||p.scale<=1||((o==null?void 0:o.dataset.animationName)||"").indexOf("zoom")>-1)return;const I=P(p.scale);if(!I)return;const{x:te,y:Y}=I;ye(ge.Pan,{deltaX:te-p.x,deltaY:Y-p.y})}function S(){var $;t&&(Qe(t,"is-loading"),($=t.querySelector(".f-spinner"))===null||$===void 0||$.remove())}function w(){if(!t||!r)return;if(S(),kt(r)&&(!r.complete||!r.naturalWidth))return h=2,o==null||o.classList.add("has-error"),void C("error");C("loaded");const{width:$,height:I}=N();kt(r)&&(r.setAttribute("width",$+""),r.setAttribute("height",I+"")),o&&(Qe(o,"has-error"),kt(r)&&(o.setAttribute("width",$+""),o.setAttribute("height",I+""),o.style.aspectRatio=`${$/I||""}`)),c=Mt().on("start",(Y,E)=>{E.angle!==void 0&&(E.angle=90*Math.round(E.angle/90)),E.flipX!==void 0&&(E.flipX=E.flipX>0?1:-1),E.flipY!==void 0&&(E.flipY=E.flipY>0?1:-1),p=Object.assign(Object.assign({},mt),E),pe(),C("animationStart")}).on("pause",Y=>{p=Object.assign(Object.assign({},mt),Y)}).on("step",Y=>{if(!b())return void(c==null||c.end());if(m=Object.assign(Object.assign({},mt),Y),v()||!k("bounds")||q()||p.scale>m.scale||p.scale<J())return void Ve();const E=oe(p.scale);let L=!1,X=!1,ne=!1,se=!1;m.x<E.x[0]&&(L=!0),m.x>E.x[1]&&(X=!0),m.y<E.y[0]&&(se=!0),m.y>E.y[1]&&(ne=!0);let me=!1,fe=!1,be=!1,Ce=!1;p.x<E.x[0]&&(me=!0),p.x>E.x[1]&&(fe=!0),p.y<E.y[0]&&(Ce=!0),p.y>E.y[1]&&(be=!0);let Le=!1;(X&&fe||L&&me)&&(p.x=Be(E.x[0],p.x,E.x[1]),Le=!0),(ne&&be||se&&Ce)&&(p.y=Be(E.y[0],p.y,E.y[1]),Le=!0),Le&&c&&c.spring({tension:94,friction:17,maxSpeed:555*p.scale,restDelta:.1,restSpeed:.1,velocity:c.getCurrentVelocities()}).from(m).to(p).start(),Ve()}).on("end",()=>{l!=null&&l.isPointerDown()||de(),c!=null&&c.isRunning()||(pe(),C("animationEnd"))}),function(){const Y=k("gestures");if(!Y||!s||!r)return;let E=!1;l=tn(s,Y).on("start",L=>{if(!k("gestures")||!c||!b()||v())return;const X=L.srcEvent;(m.scale>1||L.currentTouch.length>1)&&(X==null||X.stopPropagation(),c.pause(),E=!0),L.currentTouch.length===1&&C("touchStart")}).on("move",L=>{var X;E&&(p.scale!==1||L.currentTouch.length>1)&&(Rt(L.srcEvent),(X=L.srcEvent)===null||X===void 0||X.stopPropagation())}).on("pan",L=>{if(!E)return;const X=L.srcEvent;(p.scale!==1||L.currentTouch.length>1)&&(Rt(X),ye(ge.Pan,L))}).on("swipe",L=>{E&&p.scale>1&&ye(ge.Swipe,L)}).on("tap",L=>{C("click",L)}).on("singleTap",L=>{C("singleClick",L)}).on("doubleTap",L=>{C("dblClick",L)}).on("pinch",L=>{E&&(L.scale>J()?ye(ge.ZoomIn,L):L.scale<J()?ye(ge.ZoomOut,L):ye(ge.Pan,L))}).on("end",L=>{E&&(L.currentTouch.length?(L.srcEvent.stopPropagation(),Rt(L.srcEvent),c==null||c.end()):(E=!1,pe(),de(),C("touchEnd")))}).init()}(),s&&(s.addEventListener("wheel",M,{passive:!1}),y.push(()=>{s==null||s.removeEventListener("wheel",M,{passive:!1})})),t==null||t.addEventListener("click",D),document==null||document.addEventListener("mousemove",H),y.push(()=>{t==null||t.removeEventListener("click",D),document==null||document.removeEventListener("mousemove",H)});const te=T();m=Object.assign({},te),p=Object.assign({},te),h=3,Ve(),pe(),C("ready"),requestAnimationFrame(()=>{S(),s&&(s.style.visibility="")})}function T(){const $=Object.assign({},k("startPos")||{});let I=$.scale,te=1;te=typeof I=="string"?Z(I):typeof I=="number"?I:J();const Y=Object.assign(Object.assign(Object.assign({},mt),$),{scale:te}),E=v()?P(te):void 0;if(E){const{x:L,y:X}=E;Y.x=L,Y.y=X}return Y}function V(){const $={top:0,left:0,width:0,height:0};if(o){const I=o.getBoundingClientRect();p.angle%180==90?($.top=I.top+.5*I.height-.5*I.width,$.left=I.left+.5*I.width-.5*I.height,$.width=I.height,$.height=I.width):($.top=I.top,$.left=I.left,$.width=I.width,$.height=I.height)}return $}function N(){let $=k("width"),I=k("height");if(r&&$==="auto"){const te=r.getAttribute("width");$=te?parseFloat(te+""):r.dataset.width!==void 0?parseFloat(r.dataset.width+""):kt(s)?s.naturalWidth:kt(r)?r.naturalWidth:(o==null?void 0:o.getBoundingClientRect().width)||0}else $=Te($)?parseFloat($):$;if(r&&I==="auto"){const te=r.getAttribute("height");I=te?parseFloat(te+""):r.dataset.height!==void 0?parseFloat(r.dataset.height+""):kt(s)?s.naturalHeight:kt(r)?r.naturalHeight:(o==null?void 0:o.getBoundingClientRect().height)||0}else I=Te(I)?parseFloat(I):I;return{width:$,height:I}}function B(){const $=V();return{width:$.width,height:$.height}}function v(){return k("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function P($){const I=d||k("event"),te=o==null?void 0:o.getBoundingClientRect();if(!I||!te||$<=1)return{x:0,y:0};const Y=(I.clientX||0)-te.left,E=(I.clientY||0)-te.top,{width:L,height:X}=B(),ne=oe($);if($>1){const Ce=k("mouseMoveFactor");Ce>1&&($*=Ce)}let se=L*$,me=X*$,fe=.5*(se-L)-Y/L*100/100*(se-L),be=.5*(me-X)-E/X*100/100*(me-X);return fe=Be(ne.x[0],fe,ne.x[1]),be=Be(ne.y[0],be,ne.y[1]),{x:fe,y:be}}function Z($="base"){if(!t)return 1;const I=t.getBoundingClientRect(),te=V(),{width:Y,height:E}=N(),L=fe=>{if(typeof fe=="number")return fe;switch(fe){case"min":case"base":return 1;case"cover":return Math.max(I.height/te.height,I.width/te.width)||1;case"full":case"max":{const be=p.angle%180==90?E:Y;return be&&te.width?be/te.width:1}}},X=k("minScale"),ne=k("maxScale"),se=Math.min(L("full"),L(X)),me=typeof ne=="number"?L("full")*ne:Math.min(L("full"),L(ne));switch($){case"min":return se;case"base":return Be(se,1,me);case"cover":return L("cover");case"full":return Math.min(me,L("full"));case"max":return me}}function Q(){return Z("min")}function J(){return Z("base")}function O(){return Z("cover")}function R(){return Z("full")}function _(){return Z("max")}function oe($){const I={x:[0,0],y:[0,0]},te=t==null?void 0:t.getBoundingClientRect();if(!te)return I;const Y=V(),E=te.width,L=te.height;let X=Y.width,ne=Y.height,se=$=$===void 0?p.scale:$,me=$;if(v()&&$>1){const fe=k("mouseMoveFactor");fe>1&&(X*$>E+.01&&(se*=fe),ne*$>L+.01&&(me*=fe))}return X*=se,ne*=me,$>1&&(X>E&&(I.x[0]=.5*(E-X),I.x[1]=.5*(X-E)),I.x[0]-=.5*(Y.left-te.left),I.x[1]-=.5*(Y.left-te.left),I.x[0]-=.5*(Y.left+Y.width-te.right),I.x[1]-=.5*(Y.left+Y.width-te.right),ne>L&&(I.y[0]=.5*(L-ne),I.y[1]=.5*(ne-L)),I.y[0]-=.5*(Y.top-te.top),I.y[1]-=.5*(Y.top-te.top),I.y[0]-=.5*(Y.top+Y.height-te.bottom),I.y[1]-=.5*(Y.top+Y.height-te.bottom)),I}function de(){if(!b()||!k("bounds")||!c)return;const $=Q(),I=_(),te=Be($,p.scale,I);if(p.scale<$-.01||p.scale>I+.01)return void ye(ge.ZoomTo,{scale:te});if(c.isRunning()||q())return;const Y=oe(te);p.x<Y.x[0]||p.x>Y.x[1]||p.y<Y.y[0]||p.y>Y.y[1]?(p.x=Be(Y.x[0],p.x,Y.x[1]),p.y=Be(Y.y[0],p.y,Y.y[1]),c.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:c.getCurrentVelocities()}),c.from(m).to(p).start()):Ve()}function pe($){var I;if(!b())return;const te=ze(),Y=q(),E=re(),L=he(),X=Ae(),ne=qe();Ye(o,"is-fullsize",L),Ye(o,"is-expanded",E),Ye(o,"is-dragging",Y),Ye(o,"can-drag",te),Ye(o,"will-zoom-in",X),Ye(o,"will-zoom-out",ne);const se=$e(),me=Oe(),fe=_e(),be=!b();for(const Ce of((I=$||t)===null||I===void 0?void 0:I.querySelectorAll("[data-panzoom-action]"))||[]){const Le=Ce.dataset.panzoomAction;let xe=!1;if(be)xe=!0;else switch(Le){case ge.ZoomIn:se||(xe=!0);break;case ge.ZoomOut:fe||(xe=!0);break;case ge.ToggleFull:{me||fe||(xe=!0);const A=Ce.querySelector("g");A&&(A.style.display=L&&!xe?"none":"");break}case ge.IterateZoom:{se||fe||(xe=!0);const A=Ce.querySelector("g");A&&(A.style.display=se||xe?"":"none");break}case ge.ToggleCover:case ge.ToggleMax:se||fe||(xe=!0)}xe?(Ce.setAttribute("aria-disabled",""),Ce.setAttribute("tabindex","-1")):(Ce.removeAttribute("aria-disabled"),Ce.removeAttribute("tabindex"))}}function ye($,I){var te;if(!($&&t&&r&&c&&b())||$===ge.Swipe&&Math.abs(c.getCurrentVelocities().scale)>.01)return;const Y=Object.assign({},p);let E=Object.assign({},p),L=oe(v()?Y.scale:m.scale);const X=c.getCurrentVelocities(),ne=V(),se=(((te=(I=I||{}).currentTouch)===null||te===void 0?void 0:te.length)||0)>1,me=I.velocityX||0,fe=I.velocityY||0;let be=I.center;I.srcEvent&&(be=Nt(Hr(I.srcEvent)));let Ce=I.deltaX||0,Le=I.deltaY||0;switch($){case ge.MoveRight:Ce=I.deltaX||100;break;case ge.MoveLeft:Ce=I.deltaX||-100;break;case ge.MoveUp:Le=I.deltaY||-100;break;case ge.MoveDown:Le=I.deltaY||100}let xe=[];switch($){case ge.Reset:E=Object.assign({},mt),E.scale=J();break;case ge.Pan:case ge.Move:case ge.MoveLeft:case ge.MoveRight:case ge.MoveUp:case ge.MoveDown:if(q()){let j=1,F=1;E.x<=L.x[0]&&me<=0&&(j=Math.max(.01,1-Math.abs(1/ne.width*Math.abs(E.x-L.x[0]))),j*=.2),E.x>=L.x[1]&&me>=0&&(j=Math.max(.01,1-Math.abs(1/ne.width*Math.abs(E.x-L.x[1]))),j*=.2),E.y<=L.y[0]&&fe<=0&&(F=Math.max(.01,1-Math.abs(1/ne.height*Math.abs(E.y-L.y[0]))),F*=.2),E.y>=L.y[1]&&fe>=0&&(F=Math.max(.01,1-Math.abs(1/ne.height*Math.abs(E.y-L.y[1]))),F*=.2),E.x+=Ce*j,E.y+=Le*F}else E.x=Be(L.x[0],E.x+Ce,L.x[1]),E.y=Be(L.y[0],E.y+Le,L.y[1]);break;case ge.Swipe:const A=(j=0)=>Math.sign(j)*Math.pow(Math.abs(j),1.5);E.x+=Be(-1e3,A(me),1e3),E.y+=Be(-1e3,A(fe),1e3),fe&&!me&&(E.x=Be(L.x[0],E.x,L.x[1])),!fe&&me&&(E.y=Be(L.y[0],E.y,L.y[1])),X.x=me,X.y=fe;break;case ge.ZoomTo:E.scale=I.scale||1;break;case ge.ZoomIn:E.scale=E.scale*(I.scale||2),se||(E.scale=Math.min(E.scale,_()));break;case ge.ZoomOut:E.scale=E.scale*(I.scale||.5),se||(E.scale=Math.max(E.scale,Q()));break;case ge.ToggleCover:xe=[J(),O()];break;case ge.ToggleFull:xe=[J(),R()];break;case ge.ToggleMax:xe=[J(),_()];break;case ge.IterateZoom:xe=[J(),R(),_()];break;case ge.Zoom:const z=R();E.scale>=z-.05?E.scale=J():E.scale=Math.min(z,E.scale*(I.scale||2));break;case ge.RotateCW:E.angle+=90;break;case ge.RotateCCW:E.angle-=90;break;case ge.FlipX:E.flipX*=-1;break;case ge.FlipY:E.flipY*=-1}if(m.angle!==void 0&&Math.abs(m.angle)>=360&&(E.angle-=360*Math.floor(m.angle/360),m.angle-=360*Math.floor(m.angle/360)),xe.length){const A=xe.findIndex(z=>z>E.scale+1e-4);E.scale=xe[A]||xe[0]}if(se&&(E.scale=Be(Q()*(se?.8:1),E.scale,_()*(se?1.6:1))),v()){const A=P(E.scale);if(A){const{x:z,y:j}=A;E.x=z,E.y=j}}else if(Math.abs(E.scale-Y.scale)>1e-4){let A=0,z=0;if(be)A=be.x,z=be.y;else{const ee=t.getBoundingClientRect();A=ee.x+.5*ee.width,z=ee.y+.5*ee.height}let j=A-ne.left,F=z-ne.top;j-=.5*ne.width,F-=.5*ne.height;const G=(j-Y.x)/Y.scale,W=(F-Y.y)/Y.scale;E.x=j-G*E.scale,E.y=F-W*E.scale,!se&&k("bounds")&&(L=oe(E.scale),E.x=Be(L.x[0],E.x,L.x[1]),E.y=Be(L.y[0],E.y,L.y[1]))}if($===ge.Swipe){let A=94,z=17,j=500*E.scale,F=X;c.spring({tension:A,friction:z,maxSpeed:j,restDelta:.1,restSpeed:.1,velocity:F})}else $===ge.Pan||se?c.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):c.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:X});if(I.velocity===0||hn(m,E))m=Object.assign({},E),p=Object.assign({},E),c.end(),Ve(),pe();else{if(hn(p,E))return;c.from(m).to(E).start()}C("action",$)}function Ve(){if(!r||!o||!s)return;const{width:$,height:I}=N();Object.assign(o.style,{maxWidth:`min(${$}px, 100%)`,maxHeight:`min(${I}px, 100%)`});const te=function(){const{width:Ce,height:Le}=N(),{width:xe,height:A}=B();if(!t)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:xe,fitHeight:A,fullWidth:Ce,fullHeight:Le};let{x:z,y:j,scale:F,angle:G,flipX:W,flipY:ee}=m,ie=1/R(),ue=Ce,le=Le,ke=m.scale*ie,ve=p.scale*ie;const Me=Math.max(xe,A),Ne=Math.min(xe,A);Ce>Le?(ue=Me,le=Ne):(ue=Ne,le=Me),ke=Ce>Le?Me*F/Ce||1:Me*F/Le||1;let je=ue?Ce*ve:0,it=le?Le*ve:0,st=ue&&le?Ce*ke/je:0;return z=z+.5*ue-.5*je,j=j+.5*le-.5*it,{x:z,y:j,width:je,height:it,scale:st,flipX:W,flipY:ee,angle:G,fitWidth:xe,fitHeight:A,fullWidth:Ce,fullHeight:Le}}(),{x:Y,y:E,width:L,height:X,scale:ne,angle:se,flipX:me,flipY:fe}=te;let be=`translate(${Je(Y)}px, ${Je(E)}px)`;be+=me!==1||fe!==1?` scaleX(${Je(ne*me)}) scaleY(${Je(ne*fe)})`:` scale(${Je(ne)})`,se!==0&&(be+=` rotate(${se}deg)`),s.style.width=`${Je(L)}px`,s.style.height=`${Je(X)}px`,s.style.transform=`${be}`,C("render")}function Fe(){let $=p.scale;const I=k("clickAction");let te=J();if(I){let Y=[];switch(I){case ge.ZoomIn:te=2*$;break;case ge.ZoomOut:te=.5*$;break;case ge.ToggleCover:Y=[J(),O()];break;case ge.ToggleFull:Y=[J(),R()];break;case ge.ToggleMax:Y=[J(),_()];break;case ge.IterateZoom:Y=[J(),R(),_()];break;case ge.Zoom:const E=R();te=$>=E-.05?J():Math.min(E,2*$)}if(Y.length){const E=Y.findIndex(L=>L>$+1e-4);te=Y[E]||J()}}return te=Be(Q(),te,_()),te}function Ae(){return!!(b()&&Fe()>p.scale)}function qe(){return!!(b()&&Fe()<p.scale)}function _e(){return!!(b()&&p.scale>Q())}function $e(){return!!(b()&&p.scale<_())}function Oe(){return!!(b()&&p.scale<R())}function ze(){return!(!(b()&&re()&&l)||v())}function q(){return!(!b()||!(l!=null&&l.isPointerDown())||v())}function re(){return!!(b()&&p.scale>J())}function he(){return!!(b()&&p.scale>=R())}function ae(){const $="in-fullscreen",I="with-panzoom-in-fullscreen";t==null||t.classList.toggle($);const te=t==null?void 0:t.classList.contains($);te?(document.documentElement.classList.add(I),document.addEventListener("keydown",K,!0)):(document.documentElement.classList.remove(I),document.removeEventListener("keydown",K,!0)),Ve(),C(te?"enterFS":"exitFS")}function K($){$.key!=="Escape"||$.defaultPrevented||ae()}const ce={canDrag:ze,canZoomIn:$e,canZoomOut:_e,canZoomToFull:Oe,destroy:function(){C("destroy");for(const $ of Object.values(g))$==null||$.destroy(ce);for(const $ of y)$();return o&&(o.style.aspectRatio="",o.style.maxWidth="",o.style.maxHeight=""),s&&(s.style.width="",s.style.height="",s.style.transform=""),o=void 0,r=void 0,s=void 0,m=Object.assign({},mt),p=Object.assign({},mt),c==null||c.destroy(),c=void 0,l==null||l.destroy(),l=void 0,h=4,ce},emit:C,execute:ye,getBoundaries:oe,getContainer:function(){return t},getContent:function(){return r},getFullDim:N,getGestures:function(){return l},getMousemovePos:P,getOptions:function(){return f},getPlugins:function(){return g},getScale:Z,getStartPosition:T,getState:function(){return h},getTransform:function($){return $===!0?p:m},getTween:function(){return c},getViewport:function(){return s},getWrapper:function(){return o},init:function(){return h=0,C("init"),function(){for(const[$,I]of Object.entries(Object.assign(Object.assign({},a),f.plugins||{})))if($&&!g[$]&&I instanceof Function){const te=I();te.init(ce),g[$]=te}C("initPlugins")}(),function(){const $=Object.assign(Object.assign({},Fa.classes),k("classes"));if(t&&(Ee(t,$.container),r=t.querySelector("."+$.content),!!r)){if(r.setAttribute("draggable","false"),o=t.querySelector("."+$.wrapper),o||(o=document.createElement("div"),Ee(o,$.wrapper),r.insertAdjacentElement("beforebegin",o),o.insertAdjacentElement("afterbegin",r)),s=t.querySelector("."+$.viewport),s||(s=document.createElement("div"),Ee(s,$.viewport),s.insertAdjacentElement("afterbegin",r),o.insertAdjacentElement("beforeend",s)),i=r.cloneNode(!0),i.removeAttribute("id"),o.insertAdjacentElement("afterbegin",i),r instanceof HTMLPictureElement&&(r=r.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),s instanceof HTMLPictureElement&&(s=s.querySelector("img")),s&&(s.style.visibility="hidden",k("protected"))){s.addEventListener("contextmenu",te=>{Rt(te)});const I=document.createElement("div");Ee(I,"f-panzoom__protected"),s.appendChild(I)}C("initLayout")}}(),function(){if(t&&o&&!u){let $=null;u=new ResizeObserver(()=>{b()&&($=$||requestAnimationFrame(()=>{b()&&(pe(),de(),C("refresh")),$=null}))}),u.observe(o),y.push(()=>{u==null||u.disconnect(),u=void 0,$&&(cancelAnimationFrame($),$=null)})}}(),function(){if(!t||!r)return;if(!kt(r)||!kt(i))return void w();const $=()=>{r&&kt(r)&&r.decode().then(()=>{w()}).catch(()=>{w()})};if(h=1,t.classList.add("is-loading"),C("loading"),i.src&&i.complete)return void $();(function(){if(!t||t!=null&&t.querySelector(".f-spinner"))return;const I=k("spinnerTpl"),te=wt(I);te&&(te.classList.add("f-spinner"),t.classList.add("is-loading"),o==null||o.insertAdjacentElement("afterbegin",te))})(),i.addEventListener("load",$,!1),i.addEventListener("error",$,!1),y.push(()=>{i==null||i.removeEventListener("load",$,!1),i==null||i.removeEventListener("error",$,!1)})}(),ce},isDragging:q,isExpanded:re,isFullsize:he,isMousemoveMode:v,localize:function($,I=[]){const te=k("l10n")||{};$=String($).replace(/\{\{(\w+)\}\}/g,(Y,E)=>te[E]||Y);for(let Y=0;Y<I.length;Y++)$=$.split(I[Y][0]).join(I[Y][1]);return $=$.replace(/\{\{(.*?)\}\}/g,(Y,E)=>E)},off:function($,I){for(const te of $ instanceof Array?$:[$])x.has(te)&&x.set(te,x.get(te).filter(Y=>Y!==I));return ce},on:function($,I){for(const te of $ instanceof Array?$:[$])x.set(te,[...x.get(te)||[],I]);return ce},toggleFS:ae,updateControls:pe,version:"6.1.3",willZoomIn:Ae,willZoomOut:qe};return ce};$a.l10n={en_EN:La},$a.getDefaults=()=>Fa;/*! License details at fancyapps.com/license */const Pa=(t,n)=>{let a=[];return t.childNodes.forEach(o=>{o.nodeType!==Node.ELEMENT_NODE||n&&!o.matches(n)||a.push(o)}),a};/*! License details at fancyapps.com/license */const ot=(t,...n)=>{const a=n.length;for(let o=0;o<a;o++){const r=n[o]||{};Object.entries(r).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};t[i]||Object.assign(t,{[i]:l}),Ze(s)?Object.assign(t[i],ot(t[i],s)):Array.isArray(s)?Object.assign(t,{[i]:[...s]}):Object.assign(t,{[i]:s})})}return t};/*! License details at fancyapps.com/license */const Zn=function(t=0,n=0,a=0,o=0,r=0,i=!1){const s=(t-n)/(a-n)*(r-o)+o;return i?o<r?Be(o,s,r):Be(r,s,o):s};/*! License details at fancyapps.com/license */const Oa=Object.assign(Object.assign({},La),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const Ht=t=>{t.cancelable&&t.preventDefault()},nn={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Oa,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let qr,Wr=0;const Yn=(t,n={},a={})=>{Wr++;let o,r,i,s,l,c=0,u=Object.assign({},nn),d=Object.assign({},nn),h={},f=null,g=null,m=!1,p=!1,y=!1,k=!1,b="height",x=0,C=!0,M=0,D=0,H=0,S=0,w="*",T=[],V=[];const N=new Set;let B=[],v=[],P=0,Z=0,Q=0;function J(A,...z){let j=d[A];return j&&j instanceof Function?j(xe,...z):j}function O(A,z=[]){const j=J("l10n")||{};A=String(A).replace(/\{\{(\w+)\}\}/g,(F,G)=>j[G]||F);for(let F=0;F<z.length;F++)A=A.split(z[F][0]).join(z[F][1]);return A=A.replace(/\{\{(.*?)\}\}/g,(F,G)=>G)}const R=new Map;function _(A,...z){const j=[...R.get(A)||[]];d.on&&j.push(d.on[A]);for(const F of j)F&&F instanceof Function&&F(xe,...z);A!=="*"&&_("*",A,...z)}function oe(){var A,z;const j=ot({},nn,u);ot(j,nn,u);let F="";const G=u.breakpoints||{};if(G)for(const[W,ee]of Object.entries(G))window.matchMedia(W).matches&&(F+=W,ot(j,ee));if(l===void 0||F!==l){if(l=F,c!==0){let W=(z=(A=v[M])===null||A===void 0?void 0:A.slides[0])===null||z===void 0?void 0:z.index;W===void 0&&(W=d.initialSlide),j.initialSlide=W,j.slides=[];for(const ee of T)ee.isVirtual&&j.slides.push(ee)}be(),d=j,J("enabled")!==!1&&(c=0,_("init"),function(){for(const[W,ee]of Object.entries(Object.assign(Object.assign({},a),d.plugins||{})))if(W&&!h[W]&&ee instanceof Function){const ie=ee();ie.init(xe,Yn),h[W]=ie}_("initPlugins")}(),function(){if(!f)return;const W=J("classes")||{};Ee(f,W.container);const ee=J("style");if(ee&&Ze(ee))for(const[ie,ue]of Object.entries(ee))f.style.setProperty(ie,ue);g=f.querySelector(`.${W.viewport}`),g||(g=document.createElement("div"),Ee(g,W.viewport),g.append(...Pa(f,`.${W.slide}`)),f.insertAdjacentElement("afterbegin",g)),f.carousel=xe,_("initLayout")}(),function(){if(!g)return;const W=J("classes")||{};T=[],[...Pa(g,`.${W.slide}`)].forEach(ee=>{if(ee.parentElement){const ie=re(Object.assign({el:ee,isVirtual:!1},ee.dataset||{}));_("createSlide",ie),T.push(ie)}}),ce();for(const ee of T)_("addSlide",ee);q(J("slides"));for(const ee of T){const ie=ee.el;(ie==null?void 0:ie.parentElement)===g&&(Ee(ie,d.classes.slide),Ee(ie,ee.class),ne(ee),_("attachSlideEl",ee))}_("initSlides")}(),$(),c=1,Ee(f,(J("classes")||{}).isEnabled||""),fe(),Fe(),r=Mt().on("start",()=>{o&&o.isPointerDown()||(Ve(),fe())}).on("step",W=>{const ee=x;x=W.pos,x!==ee&&(C=!1,fe())}).on("end",W=>{o!=null&&o.isPointerDown()||(x=W.pos,r&&!p&&(x<H||x>S)?r.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:x}).to({pos:Be(H,x,S)}).start():C||(C=!0,_("settle")))}),pe(),function(){if(!f||!g)return;f.addEventListener("click",E,{passive:!1}),document.addEventListener("mousemove",de);const W=g.getBoundingClientRect();if(P=W.height,Z=W.width,!i){let ee=null;i=new ResizeObserver(()=>{ee||(ee=requestAnimationFrame(()=>{(function(){if(c!==1||!g)return;const ie=v.length,ue=g.getBoundingClientRect(),le=ue.height,ke=ue.width;ie>1&&(k&&Math.abs(le-P)<.5||!k&&Math.abs(ke-Z)<.5)||($(),pe(),P=le,Z=ke,k&&!le||!k&&!ke||f&&g&&(ie===v.length&&(o!=null&&o.isPointerDown())||(J("dragFree")&&(p||x>H&&x<S)?(Ve(),fe()):se(M,{transition:!1}))))})(),ee=null}))}),i.observe(g)}}(),_("ready"))}}function de(A){qr=A}function pe(){J("gestures")===!1?o&&(o.destroy(),o=void 0):o||function(){const A=J("gestures");!o&&A!==!1&&g&&(o=tn(g,A).on("start",z=>{var j,F;if(!r)return;const{srcEvent:G}=z;k&&pn(G)&&!_t(G.target)&&Ht(G),r.pause(),r.getCurrentVelocities().pos=0;const W=(j=v[M])===null||j===void 0?void 0:j.slides[0];W&&N.has(W.index)&&W.el&&(x=W.offset||0,x+=(function(ee){const ie=window.getComputedStyle(ee),ue=new DOMMatrixReadOnly(ie.transform);return{width:ue.m41||0,height:ue.m42||0}}(W.el)[b]||0)*(y&&!k?1:-1)),te(),p||(x<H||x>S)&&r.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((F=r.getCurrentVelocities())===null||F===void 0?void 0:F.pos)||0,restDelta:1,restSpeed:1}).from({pos:x}).to({pos:Be(H,x,S)}).start()}).on("move",z=>{var j,F;const{srcEvent:G,axis:W}=z,ee=G.target;if(W||(Ht(G),G.stopPropagation(),G.stopImmediatePropagation()),(W==="y"&&k||W==="x"&&!k)&&(Ht(G),G.stopPropagation()),!W)return;const{deltaX:ie,deltaY:ue}=z;if(!r||pn(G)&&((j=G.touches)===null||j===void 0?void 0:j.length)>1||W==="y"&&!k||W==="x"&&k||ee&&_t(ee)&&(W!=="x"||k))return;const le=y&&!k?1:-1;let ke=k?ue:ie,ve=r!=null&&r.isRunning()?r.getEndValues().pos:x,Me=1;p||(ve<=H&&ke*le<0?(Me=Math.max(.01,1-(Math.abs(1/$e()*Math.abs(ve-H))||0)),Me*=.2):ve>=S&&ke*le>0&&(Me=Math.max(.01,1-(Math.abs(1/$e()*Math.abs(ve-S))||0)),Me*=.2)),ve+=ke*Me*le,r.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((F=r.getCurrentVelocities())===null||F===void 0?void 0:F.pos)||0,restDelta:1,restSpeed:1}).from({pos:x}).to({pos:ve}).start()}).on("panstart",z=>{(z==null?void 0:z.axis)===(k?"y":"x")&&Ee(g,"is-dragging")}).on("panend",()=>{Qe(g,"is-dragging")}).on("end",z=>{var j,F;const{srcEvent:G,axis:W,velocityX:ee,velocityY:ie,currentTouch:ue}=z;if(ue.length>0||!r)return;const le=G.target,ke=le&&_t(le)&&!(W==="x"&&!k);k&&pn(G)&&!z.axis&&E(G);const ve=v.length,Me=J("dragFree");if(!ve)return;const Ne=J("vertical")?ie:ee;let je=r!=null&&r.isRunning()?r.getEndValues().pos:x;const it=y&&!k?1:-1;if(ke||(je+=Ne*(Me?5:1)*it),!p&&(Ne*it<=0&&je<H||Ne*it>=0&&je>S)){let lt=0;return Math.abs(Ne)>0&&(lt=2*Math.abs(Ne),lt=Math.min(.3*$e(),lt)),je=Be(H+-1*lt,je,S+lt),void r.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:x}).to({pos:je}).start()}if(Me||!((j=h.Autoscroll)===null||j===void 0)&&j.isEnabled())return void(Math.abs(Ne)>10?r.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:x}).to({pos:je}).start():r.isRunning()||C||(C=!0,_("settle")));if(!Me&&!(!((F=h.Autoscroll)===null||F===void 0)&&F.isEnabled())&&(!z.offsetX&&!z.offsetY||W==="y"&&!k||W==="x"&&k))return void se(M,{transition:"tween"});let st=qe(je);Math.abs(Ne)>10&&st===M&&(st+=Ne>0?y&&!k?1:-1:y&&!k?-1:1),se(st,{transition:"tween",tween:{velocity:-1*Ne}})}).init())}(),Ye(g,"is-draggable",!!o&&v.length>0)}function ye(A="*"){var z;const j=[];for(const F of T)(A==="*"||F.class&&F.class.includes(A)||F.el&&(!((z=F.el)===null||z===void 0)&&z.classList.contains(A)))&&j.push(F);s=void 0,w=A,V=[...j]}function Ve(){if(!r)return;const A=qe(r!=null&&r.isRunning()?r.getEndValues().pos:x);A!==M&&(s=M,M=A,ne(),Fe(),Ae(),_("change",M,s))}function Fe(){var A,z;if(!f)return;for(const G of f.querySelectorAll("[data-carousel-index]"))G.innerHTML=M+"";for(const G of f.querySelectorAll("[data-carousel-page]"))G.innerHTML=M+1+"";for(const G of f.querySelectorAll("[data-carousel-pages]"))G.innerHTML=v.length+"";for(const G of f.querySelectorAll("[data-carousel-go-to]"))parseInt(((A=G.dataset)===null||A===void 0?void 0:A.carouselGoTo)||"-1",10)===M?G.setAttribute("aria-current","true"):G.removeAttribute("aria-current");for(const G of f.querySelectorAll("[data-carousel-go-prev]"))G.toggleAttribute("aria-disabled",!Ce()),Ce()?G.removeAttribute("tabindex"):G.setAttribute("tabindex","-1");for(const G of f.querySelectorAll("[data-carousel-go-next]"))G.toggleAttribute("aria-disabled",!Le()),Le()?G.removeAttribute("tabindex"):G.setAttribute("tabindex","-1");let j=!1;const F=(z=v[M])===null||z===void 0?void 0:z.slides[0];F&&(F.downloadSrc||F.type==="image"&&F.src)&&(j=!0);for(const G of f.querySelectorAll("[data-carousel-download]"))G.toggleAttribute("aria-disabled",!j)}function Ae(A){var z;A||(A=(z=v[M])===null||z===void 0?void 0:z.slides[0]);const j=A==null?void 0:A.el;if(j)for(const F of j.querySelectorAll("[data-slide-index]"))F.innerHTML=A.index+1+""}function qe(A){var z,j,F;if(!v.length)return 0;const G=Oe();let W=A;p?W-=Math.floor((A-((z=v[0])===null||z===void 0?void 0:z.pos))/G)*G||0:W=Be((j=v[0])===null||j===void 0?void 0:j.pos,A,(F=v[v.length-1])===null||F===void 0?void 0:F.pos);const ee=new Map;let ie=0;for(const le of v){const ke=Math.abs(le.pos-W),ve=Math.abs(le.pos-W-G),Me=Math.abs(le.pos-W+G),Ne=Math.min(ke,ve,Me);ee.set(ie,Ne),ie++}const ue=ee.size>0?[...ee.entries()].reduce((le,ke)=>ke[1]<le[1]?ke:le):[M,0];return parseInt(ue[0])}function _e(){return Q}function $e(){let A=0;return g&&(g.childElementCount||(g.style.display="grid"),A=g.getBoundingClientRect()[b]||0,g.style.display=""),A}function Oe(A=!0){return V.length?V.reduce((z,j)=>z+j.dim,0)+(V.length-(p&&A?0:1))*Q:0}function ze(A){const z=Oe(),j=$e();if(!z||!g||!j)return[];const F=[];A=A===void 0?x:A,p&&(A-=Math.floor(A/z)*z||0);let G=0,W=0;if(m){const ie=g.getBoundingClientRect();G=Math.abs(ie[k?"top":"left"]),W=Math.abs(window[k?"innerHeight":"innerWidth"]-ie[k?"bottom":"right"])}let ee=0;for(let ie of V){const ue=(le=0)=>{F.indexOf(ie)>-1||(ie.pos=ee-A+le||0,ie.offset+le>A-ie.dim-G+.51&&ie.offset+le<A+j+W-.51&&F.push(ie))};ie.offset=ee,p&&(ue(z),ue(-1*z)),ue(),ee+=ie.dim+Q}return F}function q(A,z){const j=[];for(const F of Array.isArray(A)?A:[A]){const G=re(Object.assign(Object.assign({},F),{isVirtual:!0}));G.el||(G.el=document.createElement("div")),_("createSlide",G),j.push(G)}T.splice(z===void 0?T.length:z,0,...j),ce();for(const F of j)_("addSlide",F),he(F);return ye(w),j}function re(A){return(Te(A)||A instanceof HTMLElement)&&(A={html:A}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},A)}function he(A){let z=A.el;if(!A||!z)return;const j=A.html?A.html instanceof HTMLElement?A.html:wt(A.html):void 0;j&&(Ee(j,"f-html"),A.htmlEl=j,Ee(z,"has-html"),z.append(j),_("contentReady",A))}function ae(A){if(!g||!A)return;let z=A.el;if(z){if(z.setAttribute("index",A.index+""),z.parentElement!==g){let j;Ee(z,d.classes.slide),Ee(z,A.class),ne(A);for(const F of T)if(F.index>A.index){j=F.el;break}g.insertBefore(z,j&&g.contains(j)?j:null),_("attachSlideEl",A)}return Ae(A),z}}function K(A){const z=A==null?void 0:A.el;z&&(z.remove(),I(z),_("detachSlideEl",A))}function ce(){for(let A=0;A<T.length;A++){const z=T[A],j=z.el;j&&(z.index!==A&&I(j),j.setAttribute("index",`${A}`)),z.index=A}}function $(){var A,z,j,F,G;if(!f||!g)return;y=J("rtl"),k=J("vertical"),b=k?"height":"width";const W=J("classes");if(Ye(f,W.isLTR,!y),Ye(f,W.isRTL,y),Ye(f,W.isHorizontal,!k),Ye(f,W.isVertical,k),Ye(f,W.hasAdaptiveHeight,J("adaptiveHeight")),!$e())return;const ee=window.getComputedStyle(g);m=ee.getPropertyValue("overflow-"+(k?"y":"x"))==="visible",Q=g&&parseFloat(ee.getPropertyValue("--f-carousel-gap"))||0;const ie=function(){let ue=0;if(g){let le=document.createElement("div");le.style.display="block",Ee(le,d.classes.slide),g.appendChild(le),ue=le.getBoundingClientRect()[b],le.remove(),le=void 0}return ue}();for(const ue of V){const le=ue.el;let ke=0;if(!ue.isVirtual&&le&&Qt(le)){let ve=!1;le.parentElement&&le.parentElement===g||(g.appendChild(le),ve=!0),ke=le.getBoundingClientRect()[b],ve&&((A=le.parentElement)===null||A===void 0||A.removeChild(le))}else ke=ie;ue.dim=ke}if(p=!1,J("infinite")){p=!0;const ue=Oe();let le=$e();if(m){const ke=g.getBoundingClientRect();le+=ke.left,le+=ke.right-ke.width}for(let ke=0;ke<V.length;ke++){const ve=((z=V[ke])===null||z===void 0?void 0:z.dim)+Q;if(ue-ve<le&&ue-ve-le<ve){p=!1;break}}}(function(){var ue;if(!f)return;const le=$e(),ke=Oe(!1);let ve=J("slidesPerPage");ve=ve==="auto"?1/0:parseFloat(ve+""),v=[];let Me=0,Ne=0;for(const Re of V)(!v.length||Me+Re.dim-le>.05||Ne>=ve)&&(v.push({index:v.length,slides:[],dim:0,offset:0,pos:0}),Me=0,Ne=0),(ue=v[v.length-1])===null||ue===void 0||ue.slides.push(Re),Me+=Re.dim+Q,Ne++;const je=J("center"),it=J("fill");let st=0;for(const Re of v){Re.dim=(Re.slides.length-1)*Q;for(const dt of Re.slides)Re.dim+=dt.dim;Re.offset=st,Re.pos=st,je!==!1&&(Re.pos-=.5*(le-Re.dim)),it&&!p&&ke>le&&(Re.pos=Be(0,Re.pos,ke-le)),st+=Re.dim+Q}const lt=[];let bt;for(const Re of v){const dt=Object.assign({},Re);bt&&Math.abs(dt.pos-bt.pos)<.1?(bt.dim+=dt.dim,bt.slides=[...bt.slides,...dt.slides]):(bt=dt,dt.index=lt.length,lt.push(dt))}v=lt,M=Be(0,M,v.length-1)})(),H=((j=v[0])===null||j===void 0?void 0:j.pos)||0,S=((F=v[v.length-1])===null||F===void 0?void 0:F.pos)||0,c===0?function(){var ue;s=void 0,M=J("initialPage");const le=J("initialSlide")||void 0;le!==void 0&&(M=xe.getPageIndex(le)||0),M=Be(0,M,v.length-1),x=((ue=v[M])===null||ue===void 0?void 0:ue.pos)||0,D=x}():D=((G=v[M||0])===null||G===void 0?void 0:G.pos)||0,_("refresh"),Fe()}function I(A){if(!A||!Qt(A))return;const z=parseInt(A.getAttribute("index")||"-1");let j="";for(const G of Array.from(A.classList)){const W=G.match(/^f-(\w+)(Out|In)$/);W&&W[1]&&(j=W[1]+"")}if(!A||!j)return;const F=[`f-${j}Out`,`f-${j}In`,"to-prev","to-next","from-prev","from-next"];A.removeEventListener("animationend",Y),Qe(A,F.join(" ")),N.delete(z)}function te(){if(!g)return;const A=N.size>0;for(const z of V)I(z.el);N.clear(),A&&fe()}function Y(A){var z;((z=A.animationName)===null||z===void 0?void 0:z.substring(0,2))==="f-"&&(I(A.target),N.size||(Qe(f,"in-transition"),!C&&Math.abs(xe.getPosition(!0)-D)<.5&&(C=!0,_("settle"))),fe())}function E(A){var z;if(A.defaultPrevented)return;const j=A.composedPath()[0];if(j.closest("[data-carousel-go-prev]"))return Ht(A),void xe.prev();if(j.closest("[data-carousel-go-next]"))return Ht(A),void xe.next();const F=j.closest("[data-carousel-go-to]");if(F)return Ht(A),void xe.goTo(parseFloat(F.dataset.carouselGoTo||"")||0);if(j.closest("[data-carousel-download]")){Ht(A);const G=(z=v[M])===null||z===void 0?void 0:z.slides[0];if(G&&(G.downloadSrc||G.type==="image"&&G.src)){const W=G.downloadFilename,ee=document.createElement("a"),ie=G.downloadSrc||G.src||"";ee.href=ie,ee.target="_blank",ee.download=W||ie,ee.click()}}else _("click",A)}function L(A){var z;const j=A.el;j&&((z=j.querySelector(".f-spinner"))===null||z===void 0||z.remove())}function X(A){var z;const j=A.el;j&&((z=j.querySelector(".f-html.is-error"))===null||z===void 0||z.remove(),Qe(j,"has-error"))}function ne(A){var z;A||(A=(z=v[M])===null||z===void 0?void 0:z.slides[0]);const j=A==null?void 0:A.el;if(!j)return;let F=J("formatCaption",A);F===void 0&&(F=A.caption),F=F||"";const G=J("captionEl");if(G&&G instanceof HTMLElement){if(A.index!==M)return;if(Te(F)&&(G.innerHTML=O(F+"")),F instanceof HTMLElement){if(F.parentElement===G)return;G.innerHTML="",F.parentElement&&(F=F.cloneNode(!0)),G.append(F)}return}if(!F)return;let W=A.captionEl||j.querySelector(".f-caption");!W&&F instanceof HTMLElement&&F.classList.contains("f-caption")&&(W=F),W||(W=document.createElement("div"),Ee(W,"f-caption"),Te(F)?W.innerHTML=O(F+""):F instanceof HTMLElement&&(F.parentElement&&(F=F.cloneNode(!0)),W.append(F)));const ee=`f-caption-${Wr}_${A.index}`;W.setAttribute("id",ee),W.dataset.selectable="true",Ee(j,"has-caption"),j.setAttribute("aria-labelledby",ee),A.captionEl=W,j.insertAdjacentElement("beforeend",W)}function se(A,z={}){var j,F;let{transition:G,tween:W}=Object.assign({transition:d.transition,tween:d.tween},z||{});if(!f||!r)return;const ee=v.length;if(!ee||function(le,ke){var ve,Me,Ne,je;if(!(f&&r&&ke&&Te(ke)&&ke!=="tween")||((ve=v[M])===null||ve===void 0?void 0:ve.slides.length)>1)return!1;const it=v.length;let st=le>M?1:-1;le=p?(le%it+it)%it:Be(0,le,it-1),y&&(st*=-1);const lt=(Me=v[M])===null||Me===void 0?void 0:Me.slides[0],bt=lt==null?void 0:lt.index,Re=(Ne=v[le])===null||Ne===void 0?void 0:Ne.slides[0],dt=Re==null?void 0:Re.index,Ri=(je=v[le])===null||je===void 0?void 0:je.pos;if(dt===void 0||bt===void 0||bt===dt||x===Ri||Math.abs($e()-((Re==null?void 0:Re.dim)||0))>1)return!1;C=!1,r.pause(),te(),Ee(f,"in-transition"),x=D=Ri;const on=ae(lt),rn=ae(Re);return Ve(),on&&(N.add(bt),on.style.transform="",on.addEventListener("animationend",Y),Qe(on,d.classes.isSelected),on.inert=!1,Ee(on,`f-${ke}Out to-${st>0?"next":"prev"}`)),rn&&(N.add(dt),rn.style.transform="",rn.addEventListener("animationend",Y),Ee(rn,d.classes.isSelected),rn.inert=!1,Ee(rn,`f-${ke}In from-${st>0?"prev":"next"}`)),fe(),!0}(A,G))return;A=p?(A%ee+ee)%ee:Be(0,A,ee-1),D=((j=v[A||0])===null||j===void 0?void 0:j.pos)||0;const ue=r.isRunning()?r.getEndValues().pos:x;if(Math.abs(D-ue)<1)return x=D,M!==A&&(ne(),s=M,M=A,Fe(),Ae(),_("change",M,s)),fe(),void(C||(C=!0,_("settle")));if(r.pause(),te(),p){const le=Oe(),ke=Math.floor((ue-((F=v[0])===null||F===void 0?void 0:F.pos))/le)||0,ve=D+ke*le;D=[ve+le,ve,ve-le].reduce(function(Me,Ne){return Math.abs(Ne-ue)<Math.abs(Me-ue)?Ne:Me})}G!==!1&&Ze(W)?r.spring(ot({},d.tween,W)).from({pos:x}).to({pos:D}).start():(x=D,Ve(),fe(),C||(C=!0,_("settle")))}function me(A){var z;let j=x;if(p&&A!==!0){const F=Oe();j-=(Math.floor((x-((z=v[0])===null||z===void 0?void 0:z.pos)||0)/F)||0)*F}return j}function fe(){var A;if(!f||!g)return;B=ze();const z=new Set,j=[],F=v[M],G=d.setTransform;let W;for(const ee of V){const ie=N.has(ee.index),ue=B.indexOf(ee)>-1,le=((A=F==null?void 0:F.slides)===null||A===void 0?void 0:A.indexOf(ee))>-1;if(ee.isVirtual&&!ie&&!ue)continue;let ke=ae(ee);if(ke&&(j.push(ee),le&&z.add(ke),J("adaptiveHeight")&&le)){const ve=(ke.firstElementChild||ke).getBoundingClientRect().height;W=W==null?ve:Math.max(W,ve)}}g&&W&&(g.style.height=`${W}px`),[...Pa(g,`.${d.classes.slide}`)].forEach(ee=>{Ye(ee,d.classes.isSelected,z.has(ee));const ie=T[parseInt(ee.getAttribute("index")||"-1")];if(!ie)return ee.remove(),void I(ee);const ue=N.has(ie.index),le=B.indexOf(ie)>-1;if(ie.isVirtual&&!ue&&!le)return void K(ie);if(ee.inert=!le,G===!1)return;let ke=ie.pos?Math.round(1e4*ie.pos)/1e4:0,ve=0,Me=0,Ne=0,je=0;ue||(ve=k?0:y?-1*ke:ke,Me=k?ke:0,Ne=Zn(ve,0,ie.dim,0,100),je=Zn(Me,0,ie.dim,0,100)),G instanceof Function&&!ue?G(xe,ie,{x:ve,y:Me,xPercent:Ne,yPercent:je}):ee.style.transform=ve||Me?`translate3d(${Ne}%, ${je}%,0)`:""}),_("render",j)}function be(){f==null||f.removeEventListener("click",E),document.removeEventListener("mousemove",de),N.clear(),i==null||i.disconnect(),i=void 0;for(const A of T){let z=A.el;z&&Qt(z)&&(A.state=void 0,L(A),X(A),A.isVirtual?(K(A),A.el=void 0):(I(z),z.style.transform="",g&&!g.contains(z)&&g.appendChild(z)))}for(const A of Object.values(h))A==null||A.destroy();h={},o==null||o.destroy(),o=void 0,r==null||r.destroy(),r=void 0;for(const[A,z]of Object.entries(d.classes||{}))A!=="container"&&Qe(f,z);Qe(g,"is-draggable")}function Ce(){return p||M>0}function Le(){return p||M<v.length-1}const xe={add:function(A,z){var j;let F=x;const G=M,W=Oe(),ee=r!=null&&r.isRunning()?r.getEndValues().pos:x,ie=W&&Math.floor((ee-(((j=v[0])===null||j===void 0?void 0:j.pos)||0))/W)||0;return q(A,z),ye(w),$(),r&&W&&(G===M&&(F-=ie*W),F===D?x=D:r.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:F}).to({pos:D}).start()),fe(),xe},canGoPrev:Ce,canGoNext:Le,destroy:function(){return _("destroy"),window.removeEventListener("resize",oe),be(),R.clear(),f=null,v=[],T=[],d=Object.assign({},nn),h={},V=[],l=void 0,w="*",c=2,xe},emit:_,filter:function(A="*"){return ye(A),$(),x=Be(H,x,S),fe(),_("filter",A),xe},getContainer:function(){return f},getGapDim:_e,getGestures:function(){return o},getLastMouseMove:function(){return qr},getOption:function(A){return J(A)},getOptions:function(){return d},getPage:function(){return v[M]},getPageIndex:function(A){if(A!==void 0){for(const z of v||[])for(const j of z.slides)if(j.index===A)return z.index;return-1}return M},getPageIndexFromPosition:qe,getPageProgress:function(A,z){var j;A===void 0&&(A=M);const F=v[A];if(!F)return A>M?-1:1;const G=Oe(),W=_e();let ee=F.pos,ie=me();if(p&&z!==!0){const ue=Math.floor((ie-((j=v[0])===null||j===void 0?void 0:j.pos))/G)||0;ie-=ue*G,ee=[ee+G,ee,ee-G].reduce(function(le,ke){return Math.abs(ke-ie)<Math.abs(le-ie)?ke:le})}return(ie-ee)/(F.dim+W)||0},getPageVisibility:function(A){var z;A===void 0&&(A=M);const j=v[A];if(!j)return A>M?-1:1;const F=me(),G=$e();let W=j.pos;if(p){const ee=Oe(),ie=W+(Math.floor((F-((z=v[0])===null||z===void 0?void 0:z.pos))/ee)||0)*ee;W=[ie+ee,ie,ie-ee].reduce(function(ue,le){return Math.abs(le-F)<Math.abs(ue-F)?le:ue})}return W>F&&W+j.dim<F+G?1:W<F?(W+j.dim-F)/j.dim||0:W+j.dim>F+G&&(F+G-W)/j.dim||0},getPages:function(){return v},getPlugins:function(){return h},getPosition:me,getSlides:function(){return T},getState:function(){return c},getTotalSlideDim:Oe,getTween:function(){return r},getViewport:function(){return g},getViewportDim:$e,getVisibleSlides:function(A){return A===void 0?B:ze(A)},goTo:se,hasNavigated:function(){return s!==void 0},hideError:X,hideLoading:L,init:function(){if(!t||!Qt(t))throw new Error("No Element found");return c!==0&&(be(),c=0),f=t,u=n,window.removeEventListener("resize",oe),u.breakpoints&&window.addEventListener("resize",oe),oe(),xe},isInfinite:function(){return p},isInTransition:function(){return N.size>0},isRTL:function(){return y},isSettled:function(){return C},isVertical:function(){return k},localize:function(A,z=[]){return O(A,z)},next:function(A={}){return se(M+1,A),xe},off:function(A,z){for(const j of A instanceof Array?A:[A])R.has(j)&&R.set(j,R.get(j).filter(F=>F!==z));return xe},on:function(A,z){for(const j of A instanceof Array?A:[A])R.set(j,[...R.get(j)||[],z]);return xe},prev:function(A={}){return se(M-1,A),xe},reInit:function(A={},z={}){return be(),c=0,l=void 0,w="*",n=A,u=A,a=z,oe(),xe},remove:function(A){A===void 0&&(A=T.length-1);const z=T[A];return z&&(_("removeSlide",z),z.el&&(I(z.el),z.el.remove(),z.el=void 0),T.splice(A,1),ye(w),$(),x=Be(H,x,S),fe()),xe},setPosition:function(A){x=A,Ve(),fe()},showError:function(A,z){L(A),X(A);const j=A.el;if(j){const F=document.createElement("div");Ee(F,"f-html"),Ee(F,"is-error"),F.innerHTML=O(z||"<p>{{ERROR}}</p>"),A.htmlEl=F,Ee(j,"has-html"),Ee(j,"has-error"),j.insertAdjacentElement("afterbegin",F),_("contentReady",A)}return xe},showLoading:function(A){const z=A.el,j=z==null?void 0:z.querySelector(".f-spinner");if(!z||j)return xe;const F=J("spinnerTpl"),G=wt(F);return G&&(Ee(G,"f-spinner"),z.insertAdjacentElement("beforeend",G)),xe},version:"6.1.3"};return xe};Yn.l10n={en_EN:Oa},Yn.getDefaults=()=>nn;/*! License details at fancyapps.com/license */const Ur=(t=!0,n="--f-scrollbar-compensate",a="--f-body-margin",o="hide-scrollbar")=>{const r=document,i=r.body,s=r.documentElement;if(t){if(i.classList.contains(o))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(n,`${l}px`);const c=parseFloat(window.getComputedStyle(i).marginRight);c&&i.style.setProperty(a,`${c}px`),i.classList.add(o)}else i.classList.remove(o),i.style.setProperty(a,""),r.documentElement.style.setProperty(n,"")};/*! License details at fancyapps.com/license */function Xn(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const zt=function(t="",n="",a=""){return t.split(n).join(a)};/*! License details at fancyapps.com/license */const Zr={tpl:t=>`<img class="f-panzoom__content"
1
+ (function(Ke,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(Ke=typeof globalThis<"u"?globalThis:Ke||self,e(Ke["sm-click-library-ui"]={},Ke.Vue,Ke.Pinia))})(this,function(Ke,e,Vt){"use strict";function bi(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function no(t){return typeof t=="function"?t():e.unref(t)}const ao=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wi=Object.prototype.toString,Ei=t=>wi.call(t)==="[object Object]",un=()=>{},vi=Ci();function Ci(){var t,n;return ao&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Zt(t){var n;const a=no(t);return(n=a==null?void 0:a.$el)!=null?n:a}const oo=ao?window:void 0;function Xn(...t){let n,a,o,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([a,o,r]=t,n=oo):[n,a,o,r]=t,!n)return un;Array.isArray(a)||(a=[a]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,h,f,p)=>(u.addEventListener(h,f,p),()=>u.removeEventListener(h,f,p)),c=e.watch(()=>[Zt(n),no(r)],([u,h])=>{if(s(),!u)return;const f=Ei(h)?{...h}:h;i.push(...a.flatMap(p=>o.map(d=>l(u,p,d,f))))},{immediate:!0,flush:"post"}),m=()=>{c(),s()};return bi(m),m}let ro=!1;function mn(t,n,a={}){const{window:o=oo,ignore:r=[],capture:i=!0,detectIframe:s=!1}=a;if(!o)return un;vi&&!ro&&(ro=!0,Array.from(o.document.body.children).forEach(f=>f.addEventListener("click",un)),o.document.documentElement.addEventListener("click",un));let l=!0;const c=f=>r.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(d=>d===f.target||f.composedPath().includes(d));{const d=Zt(p);return d&&(f.target===d||f.composedPath().includes(d))}}),u=[Xn(o,"click",f=>{const p=Zt(t);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(l=!c(f)),!l){l=!0;return}n(f)}},{passive:!0,capture:i}),Xn(o,"pointerdown",f=>{const p=Zt(t);l=!c(f)&&!!(p&&!f.composedPath().includes(p))},{passive:!0}),s&&Xn(o,"blur",f=>{setTimeout(()=>{var p;const d=Zt(t);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(d!=null&&d.contains(o.document.activeElement))&&n(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const Ce=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},Si={class:"line-clamp-2 uppercase text-xs truncate text-white"},Bi={key:0,class:"select_widget_lib"},io=Ce({__name:"primary_select",props:{config:{type:Object,default:{title:"select_primary"}}},emits:["closeSelect"],setup(t,{emit:n}){const a=t,o=e.ref(!1),r=e.ref(null);e.computed(()=>a.selectConfig.some(l=>l.freeSlot));const i=()=>{o.value=!o.value};return mn(r,()=>{o.value&&(o.value=!1)}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"target",ref:r,class:"relative w-full"},[e.createElementVNode("button",{onClick:i,class:"bg-base-100 z-10 truncate flex items-center justify-between gap-6 p-2 rounded-md lg:mt-0 w-full shadow-md shadow-base-300"},[e.createElementVNode("div",null,[e.createElementVNode("p",Si,e.toDisplayString(t.config.title),1)]),e.createElementVNode("div",null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([o.value?"rotate-180 transition-transform ease-in-out":"","w-3 h-3 text-white"]),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},c[0]||(c[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"},null,-1)]),2))])]),o.value?(e.openBlock(),e.createElementBlock("section",Bi,[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"free-slot",{},void 0,!0)])])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-265f04f1"]]),Vi={key:0,class:"modal_head"},Mi={class:"modal_responsive"},Ni={class:"flex min-h-full items-center justify-center text-center sm:p-0"},Ai={class:"modal_tittle text-current bg-base-300 border-base-100"},Ti={class:"flex items-center gap-3"},Di=["innerHTML"],Li={class:"text-xl font-semibold flex items-center gap-2"},Fi={class:"bg-base-200"},$i={class:"text-center"},Pi={class:"modal_end_button border-base-100 bg-base-300"},so=Ce({__name:"simple_modal",props:{isOpen:{type:Boolean,default:!1},header:{type:Object,default:{title:"title",svg:"<svg class='w-5 mr-2 text-primary inline-block' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'> <path d='M18 3h-5.7a2 2 0 0 0-1.4.6L3.6 11a2 2 0 0 0 0 2.8l6.6 6.6a2 2 0 0 0 2.8 0l7.4-7.5a2 2 0 0 0 .6-1.4V6a3 3 0 0 0-3-3Zm-2.4 6.4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z' /> </svg>"}},size:{type:String,default:"md:w-1/2 xl:w-1/3"}},emits:["update:isOpen","close"],setup(t,{emit:n}){const a=t,o=n,r=()=>{o("update:isOpen",!a.isOpen),a.isOpen&&o("close")};return(i,s)=>(e.openBlock(),e.createBlock(e.Transition,{"leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>{var l,c;return[t.isOpen?(e.openBlock(),e.createElementBlock("div",Vi,[s[2]||(s[2]=e.createElementVNode("div",{class:"modal-overlay absolute h-full w-full bg-gray-600 opacity-50"},null,-1)),e.createElementVNode("div",Mi,[e.createElementVNode("div",Ni,[e.createElementVNode("div",{class:e.normalizeClass(["z-50 w-full shadow rounded-2xl shadow-black",t.size])},[e.createElementVNode("div",Ai,[e.createElementVNode("section",Ti,[e.createElementVNode("div",{innerHTML:(l=t.header)==null?void 0:l.svg},null,8,Di),e.createElementVNode("div",null,[e.createElementVNode("h3",Li,[e.createElementVNode("p",null,e.toDisplayString((c=t.header)==null?void 0:c.title),1)]),e.createElementVNode("div",null,[e.renderSlot(i.$slots,"header",{},void 0,!0)])])]),e.createElementVNode("button",{onClick:s[0]||(s[0]=m=>r()),class:"modal_close_button bg-base-200/40"},s[1]||(s[1]=[e.createElementVNode("svg",{class:"size-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)]))]),e.createElementVNode("div",Fi,[e.createElementVNode("div",$i,[e.renderSlot(i.$slots,"body",{},void 0,!0)])]),e.createElementVNode("div",Pi,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])],2)])])])):e.createCommentVNode("",!0)]}),_:3}))}},[["__scopeId","data-v-943d3e1c"]]),Oi={class:"simple_card_header"},_i={key:0,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},Ri={key:1,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},Hi={key:2,class:"simple_card_icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22",fill:"none"},zi={key:3,class:"simple_card_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 23 23"},ji={class:"simple_card_title"},Gi={class:"simple_card_descripiton"},lo={__name:"simple_card",props:{content:{type:Object,default:{title:"Title",description:"Coloque aqui a descrição"}},typeCard:{type:String,default:"default"}},setup(t){const n=t,a=e.computed(()=>({simple_card_success:n.typeCard==="success",simple_card_info:n.typeCard==="info",simple_card_alert:n.typeCard==="alert",simple_card_error:n.typeCard==="error"}));return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.value,"simple_card"])},[e.createElementVNode("div",Oi,[t.typeCard==="success"?(e.openBlock(),e.createElementBlock("svg",_i,r[0]||(r[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM13.6103 8.18593C13.8511 7.84887 13.773 7.38046 13.4359 7.1397C13.0989 6.89894 12.6305 6.97701 12.3897 7.31407L9.1543 11.8436L7.53033 10.2197C7.23744 9.92678 6.76256 9.92678 6.46967 10.2197C6.17678 10.5126 6.17678 10.9874 6.46967 11.2803L8.71967 13.5303C8.87556 13.6862 9.09215 13.7656 9.31186 13.7474C9.53157 13.7293 9.73216 13.6153 9.8603 13.4359L13.6103 8.18593Z",fill:"currentColor"},null,-1)]))):e.createCommentVNode("",!0),t.typeCard==="info"?(e.openBlock(),e.createElementBlock("svg",Ri,r[1]||(r[1]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.25 10C0.25 4.61522 4.61522 0.25 10 0.25C15.3848 0.25 19.75 4.61522 19.75 10C19.75 15.3848 15.3848 19.75 10 19.75C4.61522 19.75 0.25 15.3848 0.25 10ZM10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V10.75C10.75 11.1642 10.4142 11.5 10 11.5C9.58579 11.5 9.25 11.1642 9.25 10.75V7C9.25 6.58579 9.58579 6.25 10 6.25ZM10 14.5C10.4142 14.5 10.75 14.1642 10.75 13.75C10.75 13.3358 10.4142 13 10 13C9.58579 13 9.25 13.3358 9.25 13.75C9.25 14.1642 9.58579 14.5 10 14.5Z",fill:"currentColor"},null,-1)]))):e.createCommentVNode("",!0),t.typeCard==="alert"?(e.openBlock(),e.createElementBlock("svg",Hi,r[2]||(r[2]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.40123 2.0034C9.55572 0.0022862 12.4439 0.0022856 13.5983 2.0034L20.9527 14.7509C22.1065 16.7509 20.6631 19.2501 18.3541 19.2501H3.64546C1.33649 19.2501 -0.106939 16.7509 1.04691 14.7509L8.40123 2.0034ZM11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V11.75C11.75 12.1642 11.4142 12.5 11 12.5C10.5858 12.5 10.25 12.1642 10.25 11.75V8C10.25 7.58579 10.5858 7.25 11 7.25ZM11 15.5C11.4142 15.5 11.75 15.1642 11.75 14.75C11.75 14.3358 11.4142 14 11 14C10.5858 14 10.25 14.3358 10.25 14.75C10.25 15.1642 10.5858 15.5 11 15.5Z",fill:"currentColor"},null,-1)]))):e.createCommentVNode("",!0),t.typeCard==="error"?(e.openBlock(),e.createElementBlock("svg",zi,r[3]||(r[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule":"evenodd"},null,-1)]))):e.createCommentVNode("",!0),e.createElementVNode("p",ji,e.toDisplayString(t.content.title),1)]),e.createElementVNode("section",Gi,[e.createElementVNode("p",null,e.toDisplayString(t.content.description),1)])],2))}};function co(t,n){return function(){return t.apply(n,arguments)}}const{toString:qi}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:fn,toStringTag:uo}=Symbol,hn=(t=>n=>{const a=qi.call(n);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),n=>hn(n)===t),pn=t=>n=>typeof n===t,{isArray:$t}=Array,Yt=pn("undefined");function Ii(t){return t!==null&&!Yt(t)&&t.constructor!==null&&!Yt(t.constructor)&&Qe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mo=it("ArrayBuffer");function Wi(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&mo(t.buffer),n}const Ui=pn("string"),Qe=pn("function"),fo=pn("number"),gn=t=>t!==null&&typeof t=="object",Zi=t=>t===!0||t===!1,yn=t=>{if(hn(t)!=="object")return!1;const n=Kn(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(uo in t)&&!(fn in t)},Yi=it("Date"),Xi=it("File"),Ki=it("Blob"),Qi=it("FileList"),Ji=t=>gn(t)&&Qe(t.pipe),es=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||Qe(t.append)&&((n=hn(t))==="formdata"||n==="object"&&Qe(t.toString)&&t.toString()==="[object FormData]"))},ts=it("URLSearchParams"),[ns,as,os,rs]=["ReadableStream","Request","Response","Headers"].map(it),is=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xt(t,n,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),$t(t))for(o=0,r=t.length;o<r;o++)n.call(null,t[o],o,t);else{const i=a?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(o=0;o<s;o++)l=i[o],n.call(null,t[l],l,t)}}function ho(t,n){n=n.toLowerCase();const a=Object.keys(t);let o=a.length,r;for(;o-- >0;)if(r=a[o],n===r.toLowerCase())return r;return null}const Mt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,po=t=>!Yt(t)&&t!==Mt;function Qn(){const{caseless:t}=po(this)&&this||{},n={},a=(o,r)=>{const i=t&&ho(n,r)||r;yn(n[i])&&yn(o)?n[i]=Qn(n[i],o):yn(o)?n[i]=Qn({},o):$t(o)?n[i]=o.slice():n[i]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Xt(arguments[o],a);return n}const ss=(t,n,a,{allOwnKeys:o}={})=>(Xt(n,(r,i)=>{a&&Qe(r)?t[i]=co(r,a):t[i]=r},{allOwnKeys:o}),t),ls=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),cs=(t,n,a,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),a&&Object.assign(t.prototype,a)},ds=(t,n,a,o)=>{let r,i,s;const l={};if(n=n||{},t==null)return n;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)s=r[i],(!o||o(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=a!==!1&&Kn(t)}while(t&&(!a||a(t,n))&&t!==Object.prototype);return n},us=(t,n,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=n.length;const o=t.indexOf(n,a);return o!==-1&&o===a},ms=t=>{if(!t)return null;if($t(t))return t;let n=t.length;if(!fo(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=t[n];return a},fs=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&Kn(Uint8Array)),hs=(t,n)=>{const o=(t&&t[fn]).call(t);let r;for(;(r=o.next())&&!r.done;){const i=r.value;n.call(t,i[0],i[1])}},ps=(t,n)=>{let a;const o=[];for(;(a=t.exec(n))!==null;)o.push(a);return o},gs=it("HTMLFormElement"),ys=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,r){return o.toUpperCase()+r}),go=(({hasOwnProperty:t})=>(n,a)=>t.call(n,a))(Object.prototype),ks=it("RegExp"),yo=(t,n)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Xt(a,(r,i)=>{let s;(s=n(r,i,t))!==!1&&(o[i]=s||r)}),Object.defineProperties(t,o)},xs=t=>{yo(t,(n,a)=>{if(Qe(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(Qe(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},bs=(t,n)=>{const a={},o=r=>{r.forEach(i=>{a[i]=!0})};return $t(t)?o(t):o(String(t).split(n)),a},ws=()=>{},Es=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function vs(t){return!!(t&&Qe(t.append)&&t[uo]==="FormData"&&t[fn])}const Cs=t=>{const n=new Array(10),a=(o,r)=>{if(gn(o)){if(n.indexOf(o)>=0)return;if(!("toJSON"in o)){n[r]=o;const i=$t(o)?[]:{};return Xt(o,(s,l)=>{const c=a(s,r+1);!Yt(c)&&(i[l]=c)}),n[r]=void 0,i}}return o};return a(t,0)},Ss=it("AsyncFunction"),Bs=t=>t&&(gn(t)||Qe(t))&&Qe(t.then)&&Qe(t.catch),ko=((t,n)=>t?setImmediate:n?((a,o)=>(Mt.addEventListener("message",({source:r,data:i})=>{r===Mt&&i===a&&o.length&&o.shift()()},!1),r=>{o.push(r),Mt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Qe(Mt.postMessage)),Vs=typeof queueMicrotask<"u"?queueMicrotask.bind(Mt):typeof process<"u"&&process.nextTick||ko,W={isArray:$t,isArrayBuffer:mo,isBuffer:Ii,isFormData:es,isArrayBufferView:Wi,isString:Ui,isNumber:fo,isBoolean:Zi,isObject:gn,isPlainObject:yn,isReadableStream:ns,isRequest:as,isResponse:os,isHeaders:rs,isUndefined:Yt,isDate:Yi,isFile:Xi,isBlob:Ki,isRegExp:ks,isFunction:Qe,isStream:Ji,isURLSearchParams:ts,isTypedArray:fs,isFileList:Qi,forEach:Xt,merge:Qn,extend:ss,trim:is,stripBOM:ls,inherits:cs,toFlatObject:ds,kindOf:hn,kindOfTest:it,endsWith:us,toArray:ms,forEachEntry:hs,matchAll:ps,isHTMLForm:gs,hasOwnProperty:go,hasOwnProp:go,reduceDescriptors:yo,freezeMethods:xs,toObjectSet:bs,toCamelCase:ys,noop:ws,toFiniteNumber:Es,findKey:ho,global:Mt,isContextDefined:po,isSpecCompliantForm:vs,toJSONObject:Cs,isAsyncFn:Ss,isThenable:Bs,setImmediate:ko,asap:Vs,isIterable:t=>t!=null&&Qe(t[fn])};function Be(t,n,a,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}W.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const xo=Be.prototype,bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{bo[t]={value:t}}),Object.defineProperties(Be,bo),Object.defineProperty(xo,"isAxiosError",{value:!0}),Be.from=(t,n,a,o,r,i)=>{const s=Object.create(xo);return W.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Be.call(s,t.message,n,a,o,r),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Ms=null;function Jn(t){return W.isPlainObject(t)||W.isArray(t)}function wo(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Eo(t,n,a){return t?t.concat(n).map(function(r,i){return r=wo(r),!a&&i?"["+r+"]":r}).join(a?".":""):n}function Ns(t){return W.isArray(t)&&!t.some(Jn)}const As=W.toFlatObject(W,{},null,function(n){return/^is[A-Z]/.test(n)});function kn(t,n,a){if(!W.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,a=W.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!W.isUndefined(x[g])});const o=a.metaTokens,r=a.visitor||u,i=a.dots,s=a.indexes,c=(a.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(n);if(!W.isFunction(r))throw new TypeError("visitor must be a function");function m(d){if(d===null)return"";if(W.isDate(d))return d.toISOString();if(W.isBoolean(d))return d.toString();if(!c&&W.isBlob(d))throw new Be("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(d)||W.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,g,x){let b=d;if(d&&!x&&typeof d=="object"){if(W.endsWith(g,"{}"))g=o?g:g.slice(0,-2),d=JSON.stringify(d);else if(W.isArray(d)&&Ns(d)||(W.isFileList(d)||W.endsWith(g,"[]"))&&(b=W.toArray(d)))return g=wo(g),b.forEach(function(y,v){!(W.isUndefined(y)||y===null)&&n.append(s===!0?Eo([g],v,i):s===null?g:g+"[]",m(y))}),!1}return Jn(d)?!0:(n.append(Eo(x,g,i),m(d)),!1)}const h=[],f=Object.assign(As,{defaultVisitor:u,convertValue:m,isVisitable:Jn});function p(d,g){if(!W.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(d),W.forEach(d,function(b,k){(!(W.isUndefined(b)||b===null)&&r.call(n,b,W.isString(k)?k.trim():k,g,f))===!0&&p(b,g?g.concat(k):[k])}),h.pop()}}if(!W.isObject(t))throw new TypeError("data must be an object");return p(t),n}function vo(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function ea(t,n){this._pairs=[],t&&kn(t,this,n)}const Co=ea.prototype;Co.append=function(n,a){this._pairs.push([n,a])},Co.toString=function(n){const a=n?function(o){return n.call(this,o,vo)}:vo;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function Ts(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function So(t,n,a){if(!n)return t;const o=a&&a.encode||Ts;W.isFunction(a)&&(a={serialize:a});const r=a&&a.serialize;let i;if(r?i=r(n,a):i=W.isURLSearchParams(n)?n.toString():new ea(n,a).toString(o),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Bo{constructor(){this.handlers=[]}use(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){W.forEach(this.handlers,function(o){o!==null&&n(o)})}}const Vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ds={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ea,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ta=typeof window<"u"&&typeof document<"u",na=typeof navigator=="object"&&navigator||void 0,Ls=ta&&(!na||["ReactNative","NativeScript","NS"].indexOf(na.product)<0),Fs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$s=ta&&window.location.href||"http://localhost",We={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ta,hasStandardBrowserEnv:Ls,hasStandardBrowserWebWorkerEnv:Fs,navigator:na,origin:$s},Symbol.toStringTag,{value:"Module"})),...Ds};function Ps(t,n){return kn(t,new We.classes.URLSearchParams,Object.assign({visitor:function(a,o,r,i){return We.isNode&&W.isBuffer(a)?(this.append(o,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},n))}function Os(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function _s(t){const n={},a=Object.keys(t);let o;const r=a.length;let i;for(o=0;o<r;o++)i=a[o],n[i]=t[i];return n}function Mo(t){function n(a,o,r,i){let s=a[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=a.length;return s=!s&&W.isArray(r)?r.length:s,c?(W.hasOwnProp(r,s)?r[s]=[r[s],o]:r[s]=o,!l):((!r[s]||!W.isObject(r[s]))&&(r[s]=[]),n(a,o,r[s],i)&&W.isArray(r[s])&&(r[s]=_s(r[s])),!l)}if(W.isFormData(t)&&W.isFunction(t.entries)){const a={};return W.forEachEntry(t,(o,r)=>{n(Os(o),r,a,0)}),a}return null}function Rs(t,n,a){if(W.isString(t))try{return(n||JSON.parse)(t),W.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Kt={transitional:Vo,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const o=a.getContentType()||"",r=o.indexOf("application/json")>-1,i=W.isObject(n);if(i&&W.isHTMLForm(n)&&(n=new FormData(n)),W.isFormData(n))return r?JSON.stringify(Mo(n)):n;if(W.isArrayBuffer(n)||W.isBuffer(n)||W.isStream(n)||W.isFile(n)||W.isBlob(n)||W.isReadableStream(n))return n;if(W.isArrayBufferView(n))return n.buffer;if(W.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Ps(n,this.formSerializer).toString();if((l=W.isFileList(n))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return kn(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),Rs(n)):n}],transformResponse:[function(n){const a=this.transitional||Kt.transitional,o=a&&a.forcedJSONParsing,r=this.responseType==="json";if(W.isResponse(n)||W.isReadableStream(n))return n;if(n&&W.isString(n)&&(o&&!this.responseType||r)){const s=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(l){if(s)throw l.name==="SyntaxError"?Be.from(l,Be.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{Kt.headers[t]={}});const Hs=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zs=t=>{const n={};let a,o,r;return t&&t.split(`
2
+ `).forEach(function(s){r=s.indexOf(":"),a=s.substring(0,r).trim().toLowerCase(),o=s.substring(r+1).trim(),!(!a||n[a]&&Hs[a])&&(a==="set-cookie"?n[a]?n[a].push(o):n[a]=[o]:n[a]=n[a]?n[a]+", "+o:o)}),n},No=Symbol("internals");function Qt(t){return t&&String(t).trim().toLowerCase()}function xn(t){return t===!1||t==null?t:W.isArray(t)?t.map(xn):String(t)}function js(t){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)n[o[1]]=o[2];return n}const Gs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function aa(t,n,a,o,r){if(W.isFunction(o))return o.call(this,n,a);if(r&&(n=a),!!W.isString(n)){if(W.isString(o))return n.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(n)}}function qs(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,o)=>a.toUpperCase()+o)}function Is(t,n){const a=W.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(r,i,s){return this[o].call(this,n,r,i,s)},configurable:!0})})}let Je=class{constructor(n){n&&this.set(n)}set(n,a,o){const r=this;function i(l,c,m){const u=Qt(c);if(!u)throw new Error("header name must be a non-empty string");const h=W.findKey(r,u);(!h||r[h]===void 0||m===!0||m===void 0&&r[h]!==!1)&&(r[h||c]=xn(l))}const s=(l,c)=>W.forEach(l,(m,u)=>i(m,u,c));if(W.isPlainObject(n)||n instanceof this.constructor)s(n,a);else if(W.isString(n)&&(n=n.trim())&&!Gs(n))s(zs(n),a);else if(W.isObject(n)&&W.isIterable(n)){let l={},c,m;for(const u of n){if(!W.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[m=u[0]]=(c=l[m])?W.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}s(l,a)}else n!=null&&i(a,n,o);return this}get(n,a){if(n=Qt(n),n){const o=W.findKey(this,n);if(o){const r=this[o];if(!a)return r;if(a===!0)return js(r);if(W.isFunction(a))return a.call(this,r,o);if(W.isRegExp(a))return a.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=Qt(n),n){const o=W.findKey(this,n);return!!(o&&this[o]!==void 0&&(!a||aa(this,this[o],o,a)))}return!1}delete(n,a){const o=this;let r=!1;function i(s){if(s=Qt(s),s){const l=W.findKey(o,s);l&&(!a||aa(o,o[l],l,a))&&(delete o[l],r=!0)}}return W.isArray(n)?n.forEach(i):i(n),r}clear(n){const a=Object.keys(this);let o=a.length,r=!1;for(;o--;){const i=a[o];(!n||aa(this,this[i],i,n,!0))&&(delete this[i],r=!0)}return r}normalize(n){const a=this,o={};return W.forEach(this,(r,i)=>{const s=W.findKey(o,i);if(s){a[s]=xn(r),delete a[i];return}const l=n?qs(i):String(i).trim();l!==i&&delete a[i],a[l]=xn(r),o[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return W.forEach(this,(o,r)=>{o!=null&&o!==!1&&(a[r]=n&&W.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const o=new this(n);return a.forEach(r=>o.set(r)),o}static accessor(n){const o=(this[No]=this[No]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=Qt(s);o[l]||(Is(r,s),o[l]=!0)}return W.isArray(n)?n.forEach(i):i(n),this}};Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Je.prototype,({value:t},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[a]=o}}}),W.freezeMethods(Je);function oa(t,n){const a=this||Kt,o=n||a,r=Je.from(o.headers);let i=o.data;return W.forEach(t,function(l){i=l.call(a,i,r.normalize(),n?n.status:void 0)}),r.normalize(),i}function Ao(t){return!!(t&&t.__CANCEL__)}function Pt(t,n,a){Be.call(this,t??"canceled",Be.ERR_CANCELED,n,a),this.name="CanceledError"}W.inherits(Pt,Be,{__CANCEL__:!0});function To(t,n,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):n(new Be("Request failed with status code "+a.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Ws(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Us(t,n){t=t||10;const a=new Array(t),o=new Array(t);let r=0,i=0,s;return n=n!==void 0?n:1e3,function(c){const m=Date.now(),u=o[i];s||(s=m),a[r]=c,o[r]=m;let h=i,f=0;for(;h!==r;)f+=a[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),m-s<n)return;const p=u&&m-u;return p?Math.round(f*1e3/p):void 0}}function Zs(t,n){let a=0,o=1e3/n,r,i;const s=(m,u=Date.now())=>{a=u,r=null,i&&(clearTimeout(i),i=null),t.apply(null,m)};return[(...m)=>{const u=Date.now(),h=u-a;h>=o?s(m,u):(r=m,i||(i=setTimeout(()=>{i=null,s(r)},o-h)))},()=>r&&s(r)]}const bn=(t,n,a=3)=>{let o=0;const r=Us(50,250);return Zs(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-o,m=r(c),u=s<=l;o=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:m||void 0,estimated:m&&l&&u?(l-s)/m:void 0,event:i,lengthComputable:l!=null,[n?"download":"upload"]:!0};t(h)},a)},Do=(t,n)=>{const a=t!=null;return[o=>n[0]({lengthComputable:a,total:t,loaded:o}),n[1]]},Lo=t=>(...n)=>W.asap(()=>t(...n)),Ys=We.hasStandardBrowserEnv?((t,n)=>a=>(a=new URL(a,We.origin),t.protocol===a.protocol&&t.host===a.host&&(n||t.port===a.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,Xs=We.hasStandardBrowserEnv?{write(t,n,a,o,r,i){const s=[t+"="+encodeURIComponent(n)];W.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),W.isString(o)&&s.push("path="+o),W.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ks(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Qs(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Fo(t,n,a){let o=!Ks(n);return t&&(o||a==!1)?Qs(t,n):n}const $o=t=>t instanceof Je?{...t}:t;function Nt(t,n){n=n||{};const a={};function o(m,u,h,f){return W.isPlainObject(m)&&W.isPlainObject(u)?W.merge.call({caseless:f},m,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function r(m,u,h,f){if(W.isUndefined(u)){if(!W.isUndefined(m))return o(void 0,m,h,f)}else return o(m,u,h,f)}function i(m,u){if(!W.isUndefined(u))return o(void 0,u)}function s(m,u){if(W.isUndefined(u)){if(!W.isUndefined(m))return o(void 0,m)}else return o(void 0,u)}function l(m,u,h){if(h in n)return o(m,u);if(h in t)return o(void 0,m)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(m,u,h)=>r($o(m),$o(u),h,!0)};return W.forEach(Object.keys(Object.assign({},t,n)),function(u){const h=c[u]||r,f=h(t[u],n[u],u);W.isUndefined(f)&&h!==l||(a[u]=f)}),a}const Po=t=>{const n=Nt({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=n;n.headers=s=Je.from(s),n.url=So(Fo(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(W.isFormData(a)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[m,...u]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...u].join("; "))}}if(We.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(n)),o||o!==!1&&Ys(n.url))){const m=r&&i&&Xs.read(i);m&&s.set(r,m)}return n},Js=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(a,o){const r=Po(t);let i=r.data;const s=Je.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:m}=r,u,h,f,p,d;function g(){p&&p(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function b(){if(!x)return;const y=Je.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:y,config:t,request:x};To(function(P){a(P),g()},function(P){o(P),g()},C),x=null}"onloadend"in x?x.onloadend=b:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(b)},x.onabort=function(){x&&(o(new Be("Request aborted",Be.ECONNABORTED,t,x)),x=null)},x.onerror=function(){o(new Be("Network Error",Be.ERR_NETWORK,t,x)),x=null},x.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||Vo;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),o(new Be(v,C.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,t,x)),x=null},i===void 0&&s.setContentType(null),"setRequestHeader"in x&&W.forEach(s.toJSON(),function(v,C){x.setRequestHeader(C,v)}),W.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),l&&l!=="json"&&(x.responseType=r.responseType),m&&([f,d]=bn(m,!0),x.addEventListener("progress",f)),c&&x.upload&&([h,p]=bn(c),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(u=y=>{x&&(o(!y||y.type?new Pt(null,t,x):y),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const k=Ws(r.url);if(k&&We.protocols.indexOf(k)===-1){o(new Be("Unsupported protocol "+k+":",Be.ERR_BAD_REQUEST,t));return}x.send(i||null)})},e0=(t,n)=>{const{length:a}=t=t?t.filter(Boolean):[];if(n||a){let o=new AbortController,r;const i=function(m){if(!r){r=!0,l();const u=m instanceof Error?m:this.reason;o.abort(u instanceof Be?u:new Pt(u instanceof Error?u.message:u))}};let s=n&&setTimeout(()=>{s=null,i(new Be(`timeout ${n} of ms exceeded`,Be.ETIMEDOUT))},n);const l=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(m=>{m.unsubscribe?m.unsubscribe(i):m.removeEventListener("abort",i)}),t=null)};t.forEach(m=>m.addEventListener("abort",i));const{signal:c}=o;return c.unsubscribe=()=>W.asap(l),c}},t0=function*(t,n){let a=t.byteLength;if(a<n){yield t;return}let o=0,r;for(;o<a;)r=o+n,yield t.slice(o,r),o=r},n0=async function*(t,n){for await(const a of a0(t))yield*t0(a,n)},a0=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:a,value:o}=await n.read();if(a)break;yield o}}finally{await n.cancel()}},Oo=(t,n,a,o)=>{const r=n0(t,n);let i=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:m,value:u}=await r.next();if(m){l(),c.close();return}let h=u.byteLength;if(a){let f=i+=h;a(f)}c.enqueue(new Uint8Array(u))}catch(m){throw l(m),m}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},wn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_o=wn&&typeof ReadableStream=="function",o0=wn&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ro=(t,...n)=>{try{return!!t(...n)}catch{return!1}},r0=_o&&Ro(()=>{let t=!1;const n=new Request(We.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),Ho=64*1024,ra=_o&&Ro(()=>W.isReadableStream(new Response("").body)),En={stream:ra&&(t=>t.body)};wn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!En[n]&&(En[n]=W.isFunction(t[n])?a=>a[n]():(a,o)=>{throw new Be(`Response type '${n}' is not supported`,Be.ERR_NOT_SUPPORT,o)})})})(new Response);const i0=async t=>{if(t==null)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t))return(await new Request(We.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(W.isArrayBufferView(t)||W.isArrayBuffer(t))return t.byteLength;if(W.isURLSearchParams(t)&&(t=t+""),W.isString(t))return(await o0(t)).byteLength},s0=async(t,n)=>{const a=W.toFiniteNumber(t.getContentLength());return a??i0(n)},ia={http:Ms,xhr:Js,fetch:wn&&(async t=>{let{url:n,method:a,data:o,signal:r,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:m,headers:u,withCredentials:h="same-origin",fetchOptions:f}=Po(t);m=m?(m+"").toLowerCase():"text";let p=e0([r,i&&i.toAbortSignal()],s),d;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let x;try{if(c&&r0&&a!=="get"&&a!=="head"&&(x=await s0(u,o))!==0){let C=new Request(n,{method:"POST",body:o,duplex:"half"}),L;if(W.isFormData(o)&&(L=C.headers.get("content-type"))&&u.setContentType(L),C.body){const[P,E]=Do(x,bn(Lo(c)));o=Oo(C.body,Ho,P,E)}}W.isString(h)||(h=h?"include":"omit");const b="credentials"in Request.prototype;d=new Request(n,{...f,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:b?h:void 0});let k=await fetch(d,f);const y=ra&&(m==="stream"||m==="response");if(ra&&(l||y&&g)){const C={};["status","statusText","headers"].forEach(w=>{C[w]=k[w]});const L=W.toFiniteNumber(k.headers.get("content-length")),[P,E]=l&&Do(L,bn(Lo(l),!0))||[];k=new Response(Oo(k.body,Ho,P,()=>{E&&E(),g&&g()}),C)}m=m||"text";let v=await En[W.findKey(En,m)||"text"](k,t);return!y&&g&&g(),await new Promise((C,L)=>{To(C,L,{data:v,headers:Je.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:d})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Be("Network Error",Be.ERR_NETWORK,t,d),{cause:b.cause||b}):Be.from(b,b&&b.code,t,d)}})};W.forEach(ia,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const zo=t=>`- ${t}`,l0=t=>W.isFunction(t)||t===null||t===!1,jo={getAdapter:t=>{t=W.isArray(t)?t:[t];const{length:n}=t;let a,o;const r={};for(let i=0;i<n;i++){a=t[i];let s;if(o=a,!l0(a)&&(o=ia[(s=String(a)).toLowerCase()],o===void 0))throw new Be(`Unknown adapter '${s}'`);if(o)break;r[s||"#"+i]=o}if(!o){const i=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
4
+ `+i.map(zo).join(`
5
+ `):" "+zo(i[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:ia};function sa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Pt(null,t)}function Go(t){return sa(t),t.headers=Je.from(t.headers),t.data=oa.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),jo.getAdapter(t.adapter||Kt.adapter)(t).then(function(o){return sa(t),o.data=oa.call(t,t.transformResponse,o),o.headers=Je.from(o.headers),o},function(o){return Ao(o)||(sa(t),o&&o.response&&(o.response.data=oa.call(t,t.transformResponse,o.response),o.response.headers=Je.from(o.response.headers))),Promise.reject(o)})}const qo="1.10.0",vn={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{vn[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});const Io={};vn.transitional=function(n,a,o){function r(i,s){return"[Axios v"+qo+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,l)=>{if(n===!1)throw new Be(r(s," has been removed"+(a?" in "+a:"")),Be.ERR_DEPRECATED);return a&&!Io[s]&&(Io[s]=!0,console.warn(r(s," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(i,s,l):!0}},vn.spelling=function(n){return(a,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function c0(t,n,a){if(typeof t!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const i=o[r],s=n[i];if(s){const l=t[i],c=l===void 0||s(l,i,t);if(c!==!0)throw new Be("option "+i+" must be "+c,Be.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Be("Unknown option "+i,Be.ERR_BAD_OPTION)}}const Cn={assertOptions:c0,validators:vn},lt=Cn.validators;let At=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Bo,response:new Bo}}async request(n,a){try{return await this._request(n,a)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
+ `+i):o.stack=i}catch{}}throw o}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Nt(this.defaults,a);const{transitional:o,paramsSerializer:r,headers:i}=a;o!==void 0&&Cn.assertOptions(o,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),r!=null&&(W.isFunction(r)?a.paramsSerializer={serialize:r}:Cn.assertOptions(r,{encode:lt.function,serialize:lt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Cn.assertOptions(a,{baseUrl:lt.spelling("baseURL"),withXsrfToken:lt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=i&&W.merge(i.common,i[a.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),a.headers=Je.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(a)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const m=[];this.interceptors.response.forEach(function(g){m.push(g.fulfilled,g.rejected)});let u,h=0,f;if(!c){const d=[Go.bind(this),void 0];for(d.unshift.apply(d,l),d.push.apply(d,m),f=d.length,u=Promise.resolve(a);h<f;)u=u.then(d[h++],d[h++]);return u}f=l.length;let p=a;for(h=0;h<f;){const d=l[h++],g=l[h++];try{p=d(p)}catch(x){g.call(this,x);break}}try{u=Go.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=m.length;h<f;)u=u.then(m[h++],m[h++]);return u}getUri(n){n=Nt(this.defaults,n);const a=Fo(n.baseURL,n.url,n.allowAbsoluteUrls);return So(a,n.params,n.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(n){At.prototype[n]=function(a,o){return this.request(Nt(o||{},{method:n,url:a,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(n){function a(o){return function(i,s,l){return this.request(Nt(l||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}At.prototype[n]=a(),At.prototype[n+"Form"]=a(!0)});let d0=class ki{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(i){a=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{o.subscribe(l),i=l}).then(r);return s.cancel=function(){o.unsubscribe(i)},s},n(function(i,s,l){o.reason||(o.reason=new Pt(i,s,l),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new ki(function(r){n=r}),cancel:n}}};function u0(t){return function(a){return t.apply(null,a)}}function m0(t){return W.isObject(t)&&t.isAxiosError===!0}const la={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(la).forEach(([t,n])=>{la[n]=t});function Wo(t){const n=new At(t),a=co(At.prototype.request,n);return W.extend(a,At.prototype,n,{allOwnKeys:!0}),W.extend(a,n,null,{allOwnKeys:!0}),a.create=function(r){return Wo(Nt(t,r))},a}const He=Wo(Kt);He.Axios=At,He.CanceledError=Pt,He.CancelToken=d0,He.isCancel=Ao,He.VERSION=qo,He.toFormData=kn,He.AxiosError=Be,He.Cancel=He.CanceledError,He.all=function(n){return Promise.all(n)},He.spread=u0,He.isAxiosError=m0,He.mergeConfig=Nt,He.AxiosHeaders=Je,He.formToJSON=t=>Mo(W.isHTMLForm(t)?new FormData(t):t),He.getAdapter=jo.getAdapter,He.HttpStatusCode=la,He.default=He;const{Axios:eb,AxiosError:tb,CanceledError:nb,isCancel:ab,CancelToken:ob,VERSION:rb,all:ib,Cancel:sb,isAxiosError:lb,spread:cb,toFormData:db,AxiosHeaders:ub,HttpStatusCode:mb,formToJSON:fb,getAdapter:hb,mergeConfig:pb}=He,Uo=Vt.defineStore("auth",{state:()=>({jwtToken:null}),actions:{setToken(t){this.jwtToken=t},clearToken(){this.jwtToken=null}},getters:{getToken:t=>t.jwtToken}}),Ue=He.create({baseURL:"https://back.dev-smclick.com.br/"});let ca=null;const f0=()=>(ca||(ca=Uo()),ca);Ue.interceptors.request.use(t=>{try{const a=f0().jwtToken;a?t.headers.Authorization=`Bearer ${a}`:console.warn("JWT token não configurado em api request")}catch(n){console.warn("Erro ao acessar authStore no interceptor:",n)}return t},t=>Promise.reject(t));const h0="v1/api/attendances/attendant/",p0="v1/api/attendances/department/",da="v1/api/attendances/internal_chat/",g0="v1/api/instances/instance/",y0="v1/api/crm/event/scheduled_message/",k0="v1/api/crm/event/calendar",x0="v1/api/crm/products/",b0="v1/api/contacts/tag/",w0="/v1/api/contacts/segmentation_field/",E0="v1/api/attendances/calls/",ua=Vt.defineStore("instance",{state:()=>({instances:[],count:null,loaded:!1}),actions:{async fetchInstances(t=""){try{let n=`${g0}`;const a=await Ue.get(n);this.instances=a.data,await Promise.all(this.instances.map(async o=>{o.isLoading=!0;try{const r=o.last_instance_status;r==="DISCONNECTED"||r==="UNDEFINED"?o.status=!1:o.status=!0}catch(r){console.log(r),o.status="Offline"}o.isLoading=!1})),this.count=this.instances.length,this.loaded=!0}catch(n){console.log("Erro ao buscar instâncias:",n),this.loaded=!0}},removeInstance(t){this.instances=this.instances.filter(n=>n.id!==t),this.count=this.instances.length},addInstance(t){const n=this.instances.findIndex(a=>a.id===t.id);n!==-1?this.instances[n]=t:this.instances.push(t),this.count=this.instances.length}}}),v0={class:"w-full relative text-current"},C0={class:"flex cursor-pointer justify-between items-center"},S0={key:0},B0={key:0},V0={key:1,class:"flex items-center gap-2"},M0={class:"flex gap-3 items-center flex-shrink-0"},N0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},A0={key:1,class:"relative"},T0={style:{color:"#0081FB",width:"20px",height:"20px"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},D0={class:"my-auto text-center mx-auto group-hover:inline-block"},L0={key:1,class:"flex justify-center"},F0={class:"w-full"},$0={key:1,class:"flex items-center gap-2 justify-center"},P0={class:"flex px-4 items-center gap-2"},O0={key:0,class:"absolute top-[48px] w-full z-20 text-sm"},_0={class:"gap-2 rounded-b-lg flex overflow-y-auto p-2 shadow shadow-black dark:shadow-gray-400 bg-base-300 max-h-[200px] flex-col"},R0={class:"select-none cursor-pointer w-full"},H0=["onClick","disabled"],z0={class:"flex w-full items-center pl-2 gap-3"},j0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},G0={key:1,class:"relative"},q0={style:{color:"#0081FB"},xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"icon-meta",viewBox:"0 0 16 16"},I0={key:0,class:"w-6 h-6 flex-shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},W0={class:"w-full text-center"},U0={class:"my-auto text-center mx-auto group-hover:inline-block"},Z0={key:1,class:"flex justify-center"},Y0={class:"flex min-w-[50px] text-sm text-center items-center my-auto flex-shrink-0 px-1 justify-center"},X0={key:1,class:"p-4"},Zo={__name:"index",props:{modelValue:{type:Object,default:null},type:{type:String},webhooks:{type:Boolean,default:void 0}},emits:["update:modelValue","function","component-mounted"],setup(t,{emit:n}){const a=ua(),o=e.ref(!1),r=e.ref(null),i=t,s=n;function l(c){r.value=c,s("function",c)}return e.watch(()=>i.modelValue,c=>{r.value=c},{immediate:!0}),e.watch(r,c=>{s("update:modelValue",c)}),e.onMounted(async()=>{if(r.value){const c=a.instances.find(m=>m.id===r.value.id);c&&(r.value.status=c.status)}s("component-mounted")}),(c,m)=>{const u=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",v0,[e.createElementVNode("div",{class:e.normalizeClass([{"rounded-b-none":o.value},"rounded-lg shadow dark:shadow-gray-400 shadow-gray-900 dark:bg-base-100 bg-base-100 text-center"])},[e.createElementVNode("div",C0,[e.createElementVNode("p",{onClick:m[0]||(m[0]=h=>o.value=!o.value),class:"w-full p-3 px-4 select-none"},[e.unref(a).loaded?(e.openBlock(),e.createElementBlock("div",S0,[r.value?(e.openBlock(),e.createElementBlock("span",V0,[e.createElementVNode("header",M0,[r.value.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",N0,m[3]||(m[3]=[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):r.value.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",A0,[m[5]||(m[5]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-5 h-5 text-green-400",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(e.openBlock(),e.createElementBlock("svg",T0,m[4]||(m[4]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):e.createCommentVNode("",!0),r.value&&r.value.status!==void 0?(e.openBlock(),e.createBlock(u,{key:2,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded text-sm px-3",{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"}])},[e.createElementVNode("div",D0,e.toDisplayString(r.value.status===!0?"Conectada":r.value.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[r.value.isLoading?(e.openBlock(),e.createElementBlock("div",L0,m[6]||(m[6]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":r.value.status===!1,"bg-green-500":r.value.status===!0,"bg-purple-500":r.value.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",F0,e.toDisplayString(r.value.name),1)])):(e.openBlock(),e.createElementBlock("span",B0,e.toDisplayString(e.unref(a).instances?e.unref(a).instances.length:"Sem")+" Instâncias disponíveis",1))])):(e.openBlock(),e.createElementBlock("div",$0,m[7]||(m[7]=[e.createElementVNode("svg",{"aria-hidden":"true",class:"inline w-5 h-5 text-blue-300 animate-spin fill-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e.createTextVNode("Inicializando instâncias...")])))]),e.createElementVNode("footer",P0,[e.createElementVNode("button",{onClick:m[1]||(m[1]=h=>(r.value=null,o.value=!1))},m[8]||(m[8]=[e.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])),e.createElementVNode("button",{onClick:m[2]||(m[2]=h=>o.value=!o.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"rotate-180":o.value},"w-4 h-4 ease-out transition"]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},m[9]||(m[9]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))])])])],2),o.value?(e.openBlock(),e.createElementBlock("nav",O0,[e.createElementVNode("ul",_0,[e.unref(a).instances.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(a).instances,(h,f)=>{var p;return e.openBlock(),e.createElementBlock("li",R0,[e.createElementVNode("button",{class:e.normalizeClass([r.value&&r.value.id===h.id?"bg-base-100":"bg-base-200 hover:bg-base-100","flex rounded-md justify-between items-center p-2 px-1 w-full"]),onClick:d=>(r.value=h,o.value=!1,l(h)),disabled:r.value&&r.value.id===h.id||t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((p=h.config)==null?void 0:p.webhooks)},[e.createElementVNode("div",z0,[h.type==="whatsapp-qrcode"?(e.openBlock(),e.createElementBlock("svg",j0,m[10]||(m[10]=[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"},null,-1)]))):h.type==="whatsapp-api-official"?(e.openBlock(),e.createElementBlock("div",G0,[m[12]||(m[12]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"w-4 h-4 flex-shrink-0 text-green-400",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})],-1)),(e.openBlock(),e.createElementBlock("svg",q0,m[11]||(m[11]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.217 5.243C9.145 3.988 10.171 3 11.483 3 13.96 3 16 6.153 16.001 9.907c0 2.29-.986 3.725-2.757 3.725-1.543 0-2.395-.866-3.924-3.424l-.667-1.123-.118-.197a54.944 54.944 0 0 0-.53-.877l-1.178 2.08c-1.673 2.925-2.615 3.541-3.923 3.541C1.086 13.632 0 12.217 0 9.973 0 6.388 1.995 3 4.598 3c.319 0 .625.039.924.122.31.086.611.22.913.407.577.359 1.154.915 1.782 1.714Zm1.516 2.224c-.252-.41-.494-.787-.727-1.133L9 6.326c.845-1.305 1.543-1.954 2.372-1.954 1.723 0 3.102 2.537 3.102 5.653 0 1.188-.39 1.877-1.195 1.877-.773 0-1.142-.51-2.61-2.87l-.937-1.565ZM4.846 4.756c.725.1 1.385.634 2.34 2.001A212.13 212.13 0 0 0 5.551 9.3c-1.357 2.126-1.826 2.603-2.581 2.603-.777 0-1.24-.682-1.24-1.9 0-2.602 1.298-5.264 2.846-5.264.091 0 .181.006.27.018Z"},null,-1)])))])):e.createCommentVNode("",!0),e.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.type&&h.type!==t.type?"Não é possível utilizar esse tipo de Instância neste recurso":t.webhooks===!0?"Essa instância está com o Atendimento desabilitado":"Essa aplicação é somente para instâncias sem atendimento habilitado."),1)]),default:e.withCtx(()=>{var d;return[t.type&&h.type!==t.type||t.webhooks!==void 0&&t.webhooks!==((d=h.config)==null?void 0:d.webhooks)?(e.openBlock(),e.createElementBlock("svg",I0,m[13]||(m[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1)]))):e.createCommentVNode("",!0)]}),_:2},1024),e.createElementVNode("p",W0,e.toDisplayString(h.name),1),e.createVNode(u,{class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("main",{class:e.normalizeClass(["p-1 rounded px-3",{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"}])},[e.createElementVNode("div",U0,e.toDisplayString(h.status===!0?"Conectada":h.status===!1?"Desconectada":"Indefinida"),1)],2)]),default:e.withCtx(()=>[h.isLoading?(e.openBlock(),e.createElementBlock("div",Z0,m[14]||(m[14]=[e.createElementVNode("div",{class:"h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"bg-red-500":h.status===!1,"bg-green-500":h.status===!0,"bg-purple-500":h.status==="Offline"},"text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])},null,2))]),_:2},1024)]),e.createElementVNode("div",Y0,[h.telephone?(e.openBlock(),e.createBlock(u,{key:0,class:"dark:popper-light popper-dark",hover:!0,placement:"top"},{content:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(h.telephone?`${h.telephone}`:""),1)]),default:e.withCtx(()=>[m[15]||(m[15]=e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1))]),_:2,__:[15]},1024)):e.createCommentVNode("",!0)])],10,H0)])}),256)):(e.openBlock(),e.createElementBlock("div",X0," Sem instâncias disponíveis"))])])):e.createCommentVNode("",!0)])}}},K0=["aria-labelledby","aria-describedby"],Q0={class:"cpk-popover__header border-base-100"},J0=["id"],el=["disabled"],tl=["id"],nl={class:"cpk-popover__details bg-base-200 border border-base-100"},al={class:"cpk-popover__footer"},ol=["disabled"],rl=["disabled"],il={key:0,class:"loading-spinner"},sl=Ce({__name:"confirmModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Confirmar ação"},description:{type:String,default:""},confirmLabel:{type:String,default:"Confirmar"},cancelLabel:{type:String,default:"Cancelar"},loadingLabel:{type:String,default:"Processando…"},loading:{type:Boolean,default:!1},destructive:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},anchorEl:{type:[HTMLElement,Object],default:null},anchorRect:{type:Object,default:null},placement:{type:String,default:"auto"},align:{type:String,default:"center"},offset:{type:Number,default:10},viewportPadding:{type:Number,default:8}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:n}){const a=t,o=n,r=e.computed({get:()=>a.modelValue,set:v=>o("update:modelValue",v)}),i=e.ref(null),s=e.ref({left:0,top:0,p:"bottom"}),l={title:`cpk-popover-title-${Math.random().toString(36).slice(2)}`,desc:`cpk-popover-desc-${Math.random().toString(36).slice(2)}`};function c(){o("cancel",a.context),r.value=!1}function m(){a.loading||o("confirm",a.context)}let u,h,f=[];function p(){if(a.anchorRect)return a.anchorRect;const v=a.anchorEl instanceof Element?a.anchorEl:null;if(v)return v.getBoundingClientRect();const C=document.activeElement instanceof Element?document.activeElement:null;return C?C.getBoundingClientRect():{left:window.__lastMouseX??window.innerWidth/2,top:window.__lastMouseY??window.innerHeight/2,width:1,height:1,right:(window.__lastMouseX??0)+1,bottom:(window.__lastMouseY??0)+1}}function d(){if(!r.value)return;const v=window.innerWidth,C=window.innerHeight,L=a.viewportPadding,P=p(),E=i.value?i.value.getBoundingClientRect():{width:320,height:200},w=a.placement==="auto"?["bottom","top","right","left"]:[a.placement];let A=w[0],S=0,B=0;const N=P.left+P.width/2-E.width/2,M=P.top+P.height/2-E.height/2,H=P.left,ie=P.left+P.width-E.width,Q=P.top,fe=P.top+P.height-E.height;for(const F of w){if(F==="bottom"&&(B=P.bottom+a.offset,S=a.align==="start"?H:a.align==="end"?ie:N,B+E.height+L<=C)){A="bottom";break}if(F==="top"&&(B=P.top-E.height-a.offset,S=a.align==="start"?H:a.align==="end"?ie:N,B>=L)){A="top";break}if(F==="right"&&(S=P.right+a.offset,B=a.align==="start"?Q:a.align==="end"?fe:M,S+E.width+L<=v)){A="right";break}if(F==="left"&&(S=P.left-E.width-a.offset,B=a.align==="start"?Q:a.align==="end"?fe:M,S>=L)){A="left";break}}S=Math.min(Math.max(L,S),v-E.width-L),B=Math.min(Math.max(L,B),C-E.height-L),s.value={left:S,top:B,p:A}}function g(){x();let C=a.anchorEl instanceof Element?a.anchorEl:document.body;for(;C&&C!==document.body;)f.push(C),C=C.parentElement;f.push(window),f.forEach(L=>L.addEventListener("scroll",d,{passive:!0}))}function x(){f.forEach(v=>{var C;return(C=v.removeEventListener)==null?void 0:C.call(v,"scroll",d)}),f=[]}e.watch(()=>r.value,async v=>{var C;if(v){await e.nextTick(),d(),g(),u=new ResizeObserver(d),u.observe(document.body);const L=a.anchorEl instanceof Element?a.anchorEl:null;L&&((C=h==null?void 0:h.disconnect)==null||C.call(h),h=new ResizeObserver(d),h.observe(L)),window.addEventListener("resize",d),window.addEventListener("keydown",b)}else k()}),e.watch(()=>a.anchorEl,async v=>{var L;if(!r.value)return;await e.nextTick(),x(),g(),(L=h==null?void 0:h.disconnect)==null||L.call(h);const C=v instanceof Element?v:null;C&&(h=new ResizeObserver(d),h.observe(C)),d()}),e.watch(()=>a.anchorRect,()=>{r.value&&d()}),e.watch(()=>[a.placement,a.align,a.offset,a.viewportPadding],()=>{r.value&&d()});function b(v){v.key==="Escape"&&c(),v.key==="Enter"&&m()}e.onMounted(()=>{window.addEventListener("mousemove",v=>{window.__lastMouseX=v.clientX,window.__lastMouseY=v.clientY},{passive:!0})}),e.onBeforeUnmount(k);function k(){x(),window.removeEventListener("resize",d),window.removeEventListener("keydown",b),u&&u.disconnect(),h&&h.disconnect()}const y=e.computed(()=>({left:`${s.value.left}px`,top:`${s.value.top}px`}));return(v,C)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:e.withModifiers(c,["self"])},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:i,class:e.normalizeClass(["cpk-popover bg-base-300",[{"is-loading":t.loading,"is-danger":t.destructive}]]),style:e.normalizeStyle(y.value),role:"dialog","aria-modal":"false","aria-labelledby":l.title,"aria-describedby":l.desc},[e.createElementVNode("div",Q0,[C[0]||(C[0]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"!",-1)),e.createElementVNode("h3",{class:"cpk-popover__title",id:l.title},e.toDisplayString(t.title),9,J0),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:c,disabled:t.loading,"aria-label":"Fechar"}," × ",8,el)]),t.description?(e.openBlock(),e.createElementBlock("p",{key:0,class:"cpk-popover__desc",id:l.desc},e.toDisplayString(t.description),9,tl)):e.createCommentVNode("",!0),e.createElementVNode("div",nl,[e.renderSlot(v.$slots,"details",{},void 0,!0)]),e.createElementVNode("div",al,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--md",onClick:c,disabled:t.loading},e.toDisplayString(t.cancelLabel),9,ol),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button","cyber-button--md",t.destructive?"cyber-button--danger":"cyber-button--accent"]),onClick:m,disabled:t.loading},[t.loading?(e.openBlock(),e.createElementBlock("span",il)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.loading?t.loadingLabel:t.confirmLabel),1)],10,rl)])],14,K0)]),_:3})],32)):e.createCommentVNode("",!0)]),_:3}))}},[["__scopeId","data-v-b23001fc"]]);function Ot(t){return(n={})=>{const a=n.width?String(n.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}function ct(t){return(n,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let r;if(o==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,l=a!=null&&a.width?String(a.width):s;r=t.formattingValues[l]||t.formattingValues[s]}else{const s=t.defaultWidth,l=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[l]||t.values[s]}const i=t.argumentCallback?t.argumentCallback(n):n;return r[i]}}function dt(t){return(n,a={})=>{const o=a.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=n.match(r);if(!i)return null;const s=i[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?cl(l,h=>h.test(s)):ll(l,h=>h.test(s));let m;m=t.valueCallback?t.valueCallback(c):c,m=a.valueCallback?a.valueCallback(m):m;const u=n.slice(s.length);return{value:m,rest:u}}}function ll(t,n){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n(t[a]))return a}function cl(t,n){for(let a=0;a<t.length;a++)if(n(t[a]))return a}function Yo(t){return(n,a={})=>{const o=n.match(t.matchPattern);if(!o)return null;const r=o[0],i=n.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=a.valueCallback?a.valueCallback(s):s;const l=n.slice(r.length);return{value:s,rest:l}}}const Xo=6048e5,dl=864e5,Ko=Symbol.for("constructDateFrom");function et(t,n){return typeof t=="function"?t(n):t&&typeof t=="object"&&Ko in t?t[Ko](n):t instanceof Date?new t.constructor(n):new Date(n)}function ma(t,...n){const a=et.bind(null,n.find(o=>typeof o=="object"));return n.map(a)}let ul={};function Sn(){return ul}function nt(t,n){return et(n||t,t)}function Tt(t,n){var l,c,m,u;const a=Sn(),o=(n==null?void 0:n.weekStartsOn)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??a.weekStartsOn??((u=(m=a.locale)==null?void 0:m.options)==null?void 0:u.weekStartsOn)??0,r=nt(t,n==null?void 0:n.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function ml(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n);return+Tt(o,a)==+Tt(r,a)}const fl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hl=(t,n,a)=>{let o;const r=fl[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o},pl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gl=(t,n,a,o)=>pl[t],yl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},El={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vl={ordinalNumber:(t,n)=>{const a=Number(t),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:ct({values:yl,defaultWidth:"wide"}),quarter:ct({values:kl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ct({values:xl,defaultWidth:"wide"}),day:ct({values:bl,defaultWidth:"wide"}),dayPeriod:ct({values:wl,defaultWidth:"wide",formattingValues:El,defaultFormattingWidth:"wide"})},Cl=/^(\d+)(th|st|nd|rd)?/i,Sl=/\d+/i,Bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Vl={any:[/^b/i,/^(a|c)/i]},Ml={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Nl={any:[/1/i,/2/i,/3/i,/4/i]},Al={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ll={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$l={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pl={ordinalNumber:Yo({matchPattern:Cl,parsePattern:Sl,valueCallback:t=>parseInt(t,10)}),era:dt({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Vl,defaultParseWidth:"any"}),quarter:dt({matchPatterns:Ml,defaultMatchWidth:"wide",parsePatterns:Nl,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dt({matchPatterns:Al,defaultMatchWidth:"wide",parsePatterns:Tl,defaultParseWidth:"any"}),day:dt({matchPatterns:Dl,defaultMatchWidth:"wide",parsePatterns:Ll,defaultParseWidth:"any"}),dayPeriod:dt({matchPatterns:Fl,defaultMatchWidth:"any",parsePatterns:$l,defaultParseWidth:"any"})},Ol={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hl={date:Ot({formats:Ol,defaultWidth:"full"}),time:Ot({formats:_l,defaultWidth:"full"}),dateTime:Ot({formats:Rl,defaultWidth:"full"})},zl={code:"en-US",formatDistance:hl,formatLong:Hl,formatRelative:gl,localize:vl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}},jl={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Gl=(t,n,a)=>{let o;const r=jl[t];return typeof r=="string"?o=r:n===1?o=r.one:o=r.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+o:"há "+o:o},ql={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Il={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Wl={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ul={date:Ot({formats:ql,defaultWidth:"full"}),time:Ot({formats:Il,defaultWidth:"full"}),dateTime:Ot({formats:Wl,defaultWidth:"full"})},Zl={lastWeek:t=>{const n=t.getDay();return"'"+(n===0||n===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Yl=(t,n,a,o)=>{const r=Zl[t];return typeof r=="function"?r(n):r},Xl={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Kl={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Ql={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Jl={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},e2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},t2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},n2={ordinalNumber:(t,n)=>{const a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},era:ct({values:Xl,defaultWidth:"wide"}),quarter:ct({values:Kl,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ct({values:Ql,defaultWidth:"wide"}),day:ct({values:Jl,defaultWidth:"wide"}),dayPeriod:ct({values:e2,defaultWidth:"wide",formattingValues:t2,defaultFormattingWidth:"wide"})},a2=/^(\d+)[ºªo]?/i,o2=/\d+/i,r2={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},i2={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},s2={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},l2={any:[/1/i,/2/i,/3/i,/4/i]},c2={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},d2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},u2={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},m2={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},f2={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},h2={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},p2={ordinalNumber:Yo({matchPattern:a2,parsePattern:o2,valueCallback:t=>parseInt(t,10)}),era:dt({matchPatterns:r2,defaultMatchWidth:"wide",parsePatterns:i2,defaultParseWidth:"any"}),quarter:dt({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any",valueCallback:t=>t+1}),month:dt({matchPatterns:c2,defaultMatchWidth:"wide",parsePatterns:d2,defaultParseWidth:"any"}),day:dt({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:m2,defaultParseWidth:"any"}),dayPeriod:dt({matchPatterns:f2,defaultMatchWidth:"any",parsePatterns:h2,defaultParseWidth:"any"})},Qo={code:"pt-BR",formatDistance:Gl,formatLong:Ul,formatRelative:Yl,localize:n2,match:p2,options:{weekStartsOn:0,firstWeekContainsDate:1}},g2={scheduled_messages:"Mensagem programada"};function y2(t){return g2[t]||t||"Evento"}function fa(t,n){return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}function _t(t){const n=t instanceof Date?t:new Date(t),a=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0");return`${a}-${o}`}function Jt(t){const[n,a]=String(t||"").trim().split(" ");if(!n)return null;const[o,r,i]=n.split("-").map(m=>parseInt(m,10));let s=0,l=0;if(a){const[m,u]=a.split(":");s=parseInt(m||"0",10),l=parseInt(u||"0",10)}const c=new Date(o,(r||1)-1,i||1,s,l);return isNaN(c.getTime())?null:c}function k2(t){if(!t)return null;try{const n=String(t).replace(/(\.\d{3})\d+$/,"$1"),a=new Date(n);return isNaN(a.getTime())?null:a}catch{return null}}function Bn(t){if(!t)return"";const n=t instanceof Date?t:new Date(t);if(isNaN(n.getTime()))return"";const a=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0");return`${a}:${o}`}function x2(){return"id-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function ha(t){if(!t)return null;const n=(t==null?void 0:t.params)||{},a=(n==null?void 0:n.schedule)||{},o=(t==null?void 0:t.info)||{},r=(o==null?void 0:o.entity)||{},i=(o==null?void 0:o.department)||{},s=(o==null?void 0:o.instance)||{};let l=null;if(a!=null&&a.time&&(l=Jt(a.time)),!l&&(t!=null&&t.next_execution_at)&&(l=k2(t.next_execution_at)),!l)return null;const c=Array.isArray(n==null?void 0:n.message)?n.message[0]:null,m=c&&(c.content||c.text)||"",u=(t==null?void 0:t.function)||(n==null?void 0:n.function)||"",h=y2(u),f=(m||"").trim();return{id:(t==null?void 0:t.id)||x2(),date:l,time:Bn(l),type:t.function,status:t.status||null,scheduled_by:n.scheduled_by,title:h,content:f,functionName:u||null,chatId:(n==null?void 0:n.chat_id)||(o==null?void 0:o.id)||"",protocol:(o==null?void 0:o.protocol)??"",contactName:(r==null?void 0:r.name)||"Contato",contactPhoto:(r==null?void 0:r.photo)||"",departmentName:(i==null?void 0:i.name)||"",departmentId:(i==null?void 0:i.id)||null,instanceName:(s==null?void 0:s.name)||"",raw:t}}function Jo(t=[]){const n=Array.isArray(t)?t:Array.isArray(t.results)?t.results:[],a=[];for(const o of n){const r=ha(o);r&&a.push(r)}return a.sort((o,r)=>o.date-r.date),a}async function b2(t="/crm_scheduled",n){var a;try{const o=((a=n==null?void 0:n.raw)==null?void 0:a.id)??(n==null?void 0:n.id)??n;if(o==null)throw new Error("ID inválido");const r=`${String(t).replace(/\/$/,"")}/${o}/`,i=await Ue.delete(r);return{ok:(i==null?void 0:i.status)>=200&&i.status<300,status:(i==null?void 0:i.status)??0}}catch(o){return console.error("Error erasing scheduled event:",o),{ok:!1,status:0}}}const er={scheduled_messages:"#3b82f6"},tr=["#10b981","#06b6d4","#22c55e","#eab308","#ef4444","#84cc16","#f472b6","#0ea5e9","#8b5cf6","#64748b"];function w2(t=""){let n=2166136261;for(let a=0;a<t.length;a++)n^=t.charCodeAt(a),n=Math.imul(n,16777619);return n>>>0}function E2(t={}){var s,l,c,m,u,h,f,p,d,g,x;const n=t.functionName||t.function||((s=t==null?void 0:t.params)==null?void 0:s.function);if(n)return`fn:${n}`;const a=(t==null?void 0:t.departmentName)||((c=(l=t==null?void 0:t.info)==null?void 0:l.department)==null?void 0:c.name)||((u=(m=t==null?void 0:t.info)==null?void 0:m.department)==null?void 0:u.id);if(a)return`dept:${a}`;const o=(t==null?void 0:t.instanceName)||((f=(h=t==null?void 0:t.info)==null?void 0:h.instance)==null?void 0:f.name)||((d=(p=t==null?void 0:t.info)==null?void 0:p.instance)==null?void 0:d.id);if(o)return`inst:${o}`;const r=(t==null?void 0:t.protocol)??((g=t==null?void 0:t.info)==null?void 0:g.protocol);if(r!=null)return`proto:${r}`;const i=(t==null?void 0:t.chatId)||((x=t==null?void 0:t.params)==null?void 0:x.chat_id);return i?`chat:${i}`:"misc"}function Vn(t={}){var r;const n=t.functionName||t.function||((r=t==null?void 0:t.params)==null?void 0:r.function);if(n&&Object.prototype.hasOwnProperty.call(er,n))return er[n];const a=E2(t),o=w2(String(a))%tr.length;return tr[o]}const Rt=Vt.defineStore("attendant",{state:()=>({attendants:[],count:null,loaded:!1}),actions:{async fetchAttendants(){try{this.attendants=[];let t=`${h0}`;const n=await Ue.get(t);this.attendants=n.data,this.count=this.attendants.length}catch(t){console.log("Erro ao buscar atendentes:",t)}},removeAttendants(t){this.attendants=this.attendants.filter(n=>n.id!==t)},addAttendants(t){const n=this.attendants.findIndex(a=>a.id===t.id);n!==-1?this.attendants[n]=t:this.attendants.push(t)}}}),v2={class:"itemc-head"},C2={class:"minw0"},S2={class:"itemc-title"},B2={class:"itemc-sub"},V2={class:"flex items-center gap-1"},M2={class:"itemc-actions"},N2={class:"flex flex-col items-center"},A2={class:"time-badge"},T2={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},D2={class:"sched-pop__card bg-base-300",role:"dialog"},L2={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},F2={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},$2=["disabled"],P2={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},O2={key:1,class:"loading-spinner"},_2={class:"itemsb-head"},R2=["src"],H2={key:1,class:"avatar avatar--placeholder bg-base-100"},z2={class:"sched-pop",style:{position:"absolute",bottom:"-2px",right:"-2px"},tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},j2={class:"sched-pop__card bg-base-300",style:{left:"-100%",right:"auto",transform:"translate(10%, -50%) scale(0.98)"},role:"dialog"},G2={class:"itemsb-main"},q2={class:"itemsb-row"},I2={class:"itemsb-title truncate"},W2={class:"itemsb-time"},U2={class:"itemsb-sub"},Z2={class:"items-attendant"},Y2={class:"itemsb-content"},X2={key:0,class:"itemsb-actions"},K2=["disabled"],Q2={key:0,class:"loading-spinner"},J2={class:"event-left"},ec={class:"event-line"},tc={class:"event-actions"},nc={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},ac={class:"sched-pop__card bg-base-300",role:"dialog"},oc={class:"sched-pop",tabindex:"0","aria-haspopup":"true","aria-label":"Agendado por"},rc={class:"sched-pop__card bg-base-300",role:"dialog"},ic={class:"event-time"},sc={key:0,class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},lc={key:1,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},cc=["disabled"],dc={key:0,class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},uc={key:1,class:"loading-spinner"},pa=Ce({__name:"EventItem",props:{ev:{type:Object,required:!0},mode:{type:String,default:"compact"},getEventColor:{type:Function,default:null},viewOnly:{type:Boolean,default:!1}},emits:["open-message","open-chat","delete-message"],setup(t,{emit:n}){const a=Rt(),o=t,r=e.computed(()=>(o.getEventColor||Vn)(o.ev)),i=e.computed(()=>{var m;return((m=o.ev)==null?void 0:m.type)==="scheduled_messages"}),s=e.computed(()=>a.attendants.find(m=>m.is_me)||{}),l=m=>{const u=a.attendants.find(h=>h.id===m);return u?u.id===s.value.id?"Você":u.name||"Desconhecido":"Desconhecido"},c=e.computed(()=>{var u,h;const m=[];return(u=o.ev)!=null&&u.contactName&&m.push(o.ev.contactName),m.push(((h=o.ev)==null?void 0:h.departmentName)||"sem depto"),m.join(" • ")});return(m,u)=>{var h,f,p,d,g,x;return t.mode==="compact"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("header",v2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"color-bar"},null,4),e.createElementVNode("div",C2,[e.createElementVNode("div",S2,e.toDisplayString(t.ev.contactName?t.ev.contactName+" • ":"")+" "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("div",B2,[e.createElementVNode("span",V2,[u[9]||(u[9]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("footer",M2,[e.createElementVNode("div",N2,[e.createElementVNode("div",A2,e.toDisplayString(t.ev.time),1),e.createElementVNode("div",T2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["status-bar",(h=t.ev)!=null&&h.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",D2,[u[10]||(u[10]=e.createElementVNode("strong",null,"Status",-1)),u[11]||(u[11]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])]),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=b=>m.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((f=t.ev)==null?void 0:f.status)===!0?(e.openBlock(),e.createElementBlock("svg",L2,u[12]||(u[12]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",F2,u[13]||(u[13]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[1]||(u[1]=b=>m.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",P2,u[14]||(u[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)]))),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",O2)):e.createCommentVNode("",!0)],8,$2)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:u[2]||(u[2]=b=>m.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},u[15]||(u[15]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)]))])],64)):t.mode==="sidebar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",_2,[e.createElementVNode("div",{class:"avatar-wrap",style:e.normalizeStyle({boxShadow:`0 0 0 1px ${r.value}`})},[t.ev.contactPhoto?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.ev.contactPhoto,alt:"",class:"avatar",loading:"lazy"},null,8,R2)):(e.openBlock(),e.createElementBlock("div",H2,u[16]||(u[16]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",class:"icon-5 icon-muted"},[e.createElementVNode("path",{fill:"currentColor",d:"M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4Z"})],-1)]))),e.createElementVNode("div",z2,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-dot-avatar",(p=t.ev)!=null&&p.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",j2,[u[17]||(u[17]=e.createElementVNode("strong",null,"Status",-1)),u[18]||(u[18]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])])],4),e.createElementVNode("div",G2,[e.createElementVNode("div",q2,[e.createElementVNode("span",I2,e.toDisplayString(t.ev.contactName)+" • "+e.toDisplayString(t.ev.departmentName||"sem depto"),1),e.createElementVNode("span",W2,e.toDisplayString(t.ev.time),1)]),e.createElementVNode("div",U2,[e.createElementVNode("span",Z2,[u[19]||(u[19]=e.createElementVNode("svg",{class:"icon-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z"})],-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])])])]),e.createElementVNode("p",Y2,e.toDisplayString(t.ev.content||t.ev.title),1),t.viewOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X2,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"cyber-button cyber-button--sm cyber-button--primary",onClick:u[3]||(u[3]=b=>m.$emit("open-message",t.ev))},e.toDisplayString(((d=t.ev)==null?void 0:d.status)===!0?"Editar":"Visualizar"),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[4]||(u[4]=b=>m.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--sm cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",Q2)):e.createCommentVNode("",!0),u[20]||(u[20]=e.createTextVNode(" Apagar "))],8,K2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:u[5]||(u[5]=b=>m.$emit("open-chat",t.ev))}," Abrir conversa ")):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",J2,[e.createElementVNode("span",{style:e.normalizeStyle({background:r.value}),class:"event-color-bar"},null,4),e.createElementVNode("div",ec,e.toDisplayString(c.value),1)]),e.createElementVNode("footer",tc,[e.createElementVNode("div",nc,[u[23]||(u[23]=e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a7 7 0 0 0-7 7 3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1a1 1 0 0 0 1-1V9a5 5 0 1 1 10 0v7.083A2.919 2.919 0 0 1 14.083 19H14a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h1a2 2 0 0 0 1.732-1h.351a4.917 4.917 0 0 0 4.83-4H19a3 3 0 0 0 3-3v-2a3 3 0 0 0-3-3 7 7 0 0 0-7-7Zm1.45 3.275a4 4 0 0 0-4.352.976 1 1 0 0 0 1.452 1.376 2.001 2.001 0 0 1 2.836-.067 1 1 0 1 0 1.386-1.442 4 4 0 0 0-1.321-.843Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",ac,[u[21]||(u[21]=e.createElementVNode("strong",null,"Agendado por",-1)),u[22]||(u[22]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(l(t.ev.scheduled_by)),1)])]),e.createElementVNode("div",oc,[t.ev.status!==void 0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["status-bar",(g=t.ev)!=null&&g.status?"status--up":"status--down"])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",rc,[u[24]||(u[24]=e.createElementVNode("strong",null,"Status",-1)),u[25]||(u[25]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(t.ev.status===!0?"Ativo":"Executado"),1)])]),e.createElementVNode("div",ic,e.toDisplayString(t.ev.time),1),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[6]||(u[6]=b=>m.$emit("open-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--primary","aria-label":"Editar mensagem programada"},[((x=t.ev)==null?void 0:x.status)===!0?(e.openBlock(),e.createElementBlock("svg",sc,u[26]||(u[26]=[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule":"evenodd"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",lc,u[27]||(u[27]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.998 7.78C6.729 6.345 9.198 5 12 5c2.802 0 5.27 1.345 7.002 2.78a12.713 12.713 0 0 1 2.096 2.183c.253 .344 .465 .682 .618 .997 .14 .286 .284 .658 .284 1.04s-.145 .754 -.284 1.04a6.6 6.6 0 0 1-.618 .997 12.712 12.712 0 0 1-2.096 2.183C17.271 17.655 14.802 19 12 19c-2.802 0-5.27-1.345-7.002-2.78a12.712 12.712 0 0 1-2.096-2.183 6.6 6.6 0 0 1-.618-.997C2.144 12.754 2 12.382 2 12s.145-.754 .284-1.04c.153-.315 .365-.653 .618-.997A12.714 12.714 0 0 1 4.998 7.78ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","clip-rule":"evenodd"},null,-1)])))])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u[7]||(u[7]=b=>m.$emit("delete-message",t.ev)),class:"cyber-button cyber-button--xs cyber-button--danger","aria-label":"Apagar evento",disabled:t.ev.deleteLoading||!t.ev.status},[t.ev.deleteLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",dc,u[28]||(u[28]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"},null,-1)]))),t.ev.deleteLoading?(e.openBlock(),e.createElementBlock("div",uc)):e.createCommentVNode("",!0)],8,cc)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"cyber-button cyber-button--xs cyber-button--accent",onClick:u[8]||(u[8]=b=>m.$emit("open-chat",t.ev)),"aria-label":"Abrir conversa"},u[29]||(u[29]=[e.createElementVNode("svg",{class:"icon-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.559 4.544c.355-.35.834-.544 1.33-.544H19.11c.496 0 .975.194 1.33.544.356.35.559.829.559 1.331v9.25c0 .502-.203.981-.559 1.331-.355.35-.834.544-1.33.544H15.5l-2.7 3.6a1 1 0 0 1-1.6 0L8.5 17H4.889c-.496 0-.975-.194-1.33-.544A1.868 1.868 0 0 1 3 15.125v-9.25c0-.502.203-.981.559-1.331ZM7.556 7.5a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Zm0 3.5a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2H7.556Z","clip-rule":"evenodd"})],-1)]))])],64))}}},[["__scopeId","data-v-fb30306a"]]),gt=new Map,nr=Vt.defineStore("scheduled",{state:()=>({baseUrl:k0,monthCache:{},loadingYM:new Set,errorByYM:{},loadedYM:new Set,filters:{}}),getters:{eventsOf:t=>n=>t.monthCache[n]||[],isLoading:t=>n=>t.loadingYM.has(n),errorOf:t=>n=>t.errorByYM[n]||""},actions:{setBaseUrl(t){this.baseUrl=t||"/crm_scheduled"},_setMonth(t,n){this.monthCache={...this.monthCache,[t]:n||[]}},_deleteMonth(t){const{[t]:n,...a}=this.monthCache;this.monthCache=a,this.loadingYM.delete(t);const{[t]:o,...r}=this.errorByYM;this.errorByYM=r,this.loadedYM.delete(t)},coerceHttps(t){return t&&t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t},_appendMonth(t,n){if(!n||n.length===0)return;this.monthCache[t]||(this.monthCache[t]=[]);const a=new Set(this.monthCache[t].map(o=>o==null?void 0:o.id));for(const o of n)o&&(o.id&&a.has(o.id)||this.monthCache[t].push(o))},async ensureMonthLoaded(t){if(t||(t=_t(new Date)),this.loadedYM.has(t))return;const n=`${this.baseUrl}|${t}`;if(gt.has(n))return gt.get(n);this.loadingYM.add(t),this.errorByYM={...this.errorByYM,[t]:""};const a=(async()=>{var o,r;try{const i=`${this.baseUrl}?year_month=${encodeURIComponent(t)}&page_size=10`,s=await Ue.get(i),l=Array.isArray(s==null?void 0:s.data)?s.data:((o=s==null?void 0:s.data)==null?void 0:o.results)||[],c=Jo(l||[]);this._setMonth(t,c),this.loadedYM.add(t);let m=this.coerceHttps(((r=s==null?void 0:s.data)==null?void 0:r.next)||null);m&&(async()=>{var u,h;try{let f=m;for(;f;){const p=await Ue.get(f),d=Array.isArray(p==null?void 0:p.data)?p.data:((u=p==null?void 0:p.data)==null?void 0:u.results)||[],g=Jo(d||[]);this._appendMonth(t,g),f=this.coerceHttps(((h=p==null?void 0:p.data)==null?void 0:h.next)||null)}}catch(f){console.warn("[scheduled] background paging error:",(f==null?void 0:f.message)||f)}})()}catch(i){const s=String((i==null?void 0:i.message)||i);throw this.errorByYM={...this.errorByYM,[t]:s},console.error("[scheduled] fetch error",t,s),this._setMonth(t,[]),this.loadedYM.delete(t),i}finally{gt.delete(n),this.loadingYM.delete(t)}})();return gt.set(n,a),a},async forceReload(t){t||(t=_t(new Date));const n=`${this.baseUrl}|${t}`;gt.delete(n),this._deleteMonth(t),this.loadedYM.delete(t),await this.ensureMonthLoaded(t)},findEventById(t){const n=String(t);for(const[a,o]of Object.entries(this.monthCache)){const r=(o||[]).findIndex(i=>{var c;const s=((c=i==null?void 0:i.raw)==null?void 0:c.id)!=null?String(i.raw.id):null,l=(i==null?void 0:i.id)!=null?String(i.id):null;return s===n||l===n});if(r!==-1)return{ym:a,idx:r}}return null},applyUpdateToCache({id:t,params:n}){var f,p,d,g,x,b,k,y,v,C,L,P,E;let a=null;if((f=n==null?void 0:n.schedule)!=null&&f.time){const w=n.schedule.time,A=/^(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}))?$/.exec(w);if(A){const[,S,B,N,M="00",H="00"]=A;a=new Date(Number(S),Number(B)-1,Number(N),Number(M),Number(H),0,0)}else{const S=typeof w=="string"&&!w.includes("T")?w.replace(" ","T"):w;a=new Date(S)}}console.log(n);const o=w=>{var A,S,B,N;return a instanceof Date&&!isNaN(a)&&(w.date=a,w.time=Bn(a)),((S=(A=n==null?void 0:n.message)==null?void 0:A[0])==null?void 0:S.content)!=null&&(w.content=n.message[0].content),w.raw=w.raw||{id:t},w.raw.params=w.raw.params||{},n!=null&&n.schedule&&(w.raw.params.schedule={...w.raw.params.schedule||{},...n.schedule}),n!=null&&n.scheduled_by&&(w.raw.params.scheduled_by=n.scheduled_by),n.department&&(w.raw.params.department=n.department),n!=null&&n.message&&(w.raw.params.message=n.message),Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&(w.chatId=n.chat_id??w.chatId??""),n!=null&&n.entity&&(w.raw.params.entity={...w.raw.params.entity||{},...n.entity},Object.prototype.hasOwnProperty.call(n.entity,"name")&&(w.contactName=n.entity.name??w.contactName??"Cliente"),Object.prototype.hasOwnProperty.call(n.entity,"photo")&&(w.contactPhoto=n.entity.photo??w.contactPhoto??null,n.entity.photo&&(w.photo=n.entity.photo))),n!=null&&n.info&&(w.raw.params.info={...w.raw.params.info||{},...n.info},(B=n.info)!=null&&B.department&&Object.prototype.hasOwnProperty.call(n.info.department,"name")&&(w.departmentName=n.info.department.name??w.departmentName),(N=n.info)!=null&&N.instance&&(Object.prototype.hasOwnProperty.call(n.info.instance,"name")&&(w.instanceName=n.info.instance.name??w.instanceName),Object.prototype.hasOwnProperty.call(n.info.instance,"last_instance_status")&&(w.instanceStatus=n.info.instance.last_instance_status??w.instanceStatus))),Object.prototype.hasOwnProperty.call(n||{},"title")?w.title=n.title??w.title??"Mensagem programada":w.title=w.title||"Mensagem programada",Object.prototype.hasOwnProperty.call(n||{},"function")?(w.function=n.function??w.function??"scheduled_messages",w.type=n.function??w.type??"scheduled_messages"):(w.function=w.function||"scheduled_messages",w.type=w.type||"scheduled_messages"),w},r=this.findEventById(t);if(!r){const w=a instanceof Date&&!isNaN(a)?a:(()=>{var H;const N=(H=n==null?void 0:n.schedule)==null?void 0:H.time,M=typeof N=="string"&&!N.includes("T")?N.replace(" ","T"):N;return(Jt==null?void 0:Jt(M))||(M?new Date(M):new Date)})(),A=o({id:t,date:w,time:Bn(w),title:(n==null?void 0:n.title)||"Mensagem programada",type:(n==null?void 0:n.function)||"scheduled_messages",status:(n==null?void 0:n.status)||"true",scheduled_by:(n==null?void 0:n.scheduled_by)||null,function:(n==null?void 0:n.function)||"scheduled_messages",content:((d=(p=n==null?void 0:n.message)==null?void 0:p[0])==null?void 0:d.content)??"",raw:{id:t,params:n},contactName:((g=n==null?void 0:n.entity)==null?void 0:g.name)??"Cliente",contactPhoto:((x=n==null?void 0:n.entity)==null?void 0:x.photo)??null,departmentName:((k=(b=n==null?void 0:n.info)==null?void 0:b.department)==null?void 0:k.name)??null,departmentId:((v=(y=n==null?void 0:n.info)==null?void 0:y.department)==null?void 0:v.id)??null,instanceName:((L=(C=n==null?void 0:n.info)==null?void 0:C.instance)==null?void 0:L.name)??null,instanceStatus:((E=(P=n==null?void 0:n.info)==null?void 0:P.instance)==null?void 0:E.last_instance_status)??null,...Object.prototype.hasOwnProperty.call(n||{},"chat_id")&&{chatId:n.chat_id??""}}),S=_t(A.date),B=this.monthCache[S]?[...this.monthCache[S],A]:[A];B.sort((N,M)=>N.date-M.date),this._setMonth(S,B);return}const{ym:i,idx:s}=r,l=this.monthCache[i]||[],c={...l[s]},m=o({...c}),u=m.date instanceof Date?m.date:c.date,h=_t(u);if(h===i){const w=[...l];w.splice(s,1,m),w.sort((A,S)=>A.date-S.date),this._setMonth(i,w)}else{const w=l.slice(0,s).concat(l.slice(s+1)),A=this.monthCache[h]?[...this.monthCache[h],m]:[m];A.sort((S,B)=>S.date-B.date),this.monthCache={...this.monthCache,[i]:w,[h]:A}}},removeFromCache(t){const n=this.findEventById(t);if(!n)return!1;const{ym:a,idx:o}=n,r=this.monthCache[a]||[],i=r.slice(0,o).concat(r.slice(o+1));return this._setMonth(a,i),!0},insertNormalizedEvent(t){if(!t)return;const n=String(t.id),a=t.date instanceof Date?t.date:Jt(t.date)||new Date,o=_t(a),r={...t,id:n,date:a,time:t.time??Bn(a)},i=this.monthCache[o]?[...this.monthCache[o]]:[],s=i.findIndex(l=>{var c;return String(((c=l==null?void 0:l.raw)==null?void 0:c.id)??(l==null?void 0:l.id))===n});s!==-1?i.splice(s,1,r):i.push(r),i.sort((l,c)=>l.date-c.date),this._setMonth(o,i)},insertFromApiItem(t){const n=ha(t);n&&this.insertNormalizedEvent(n)},insertManyFromApi(t=[]){for(const n of t){const a=ha(n);a&&this.insertNormalizedEvent(a)}},insertFromApiPage(t){const n=Array.isArray(t)?t:(t==null?void 0:t.results)||[];this.insertManyFromApi(n)},insertFromParams(t){return this.applyUpdateToCache(t)},hasEvent(t){return!!this.findEventById(t)},resetAll(){var t;this.monthCache={},this.loadingYM=new Set,this.errorByYM={},this.loadedYM=new Set,(t=gt.clear)==null||t.call(gt)}}}),mc={class:"cpk-header bg-base-200"},fc={class:"left"},hc=["title"],pc={class:"right"},gc=["title"],yc={class:"toggle"},kc=["aria-pressed","title"],xc={key:0,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},bc={key:1,class:"icon-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},wc=Ce({__name:"CalHeader",props:{month:String,year:[String,Number],isCompact:Boolean,viewMode:{type:String,default:"calendar"},filterCount:{type:Number,default:0}},emits:["prev","next","today","toggle-compact","set-view-mode","close-page","open-filter"],setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",mc,[e.createElementVNode("div",fc,[e.createElementVNode("button",{onClick:a[0]||(a[0]=o=>n.$emit("close-page")),class:"cyber-button cyber-button--sm btn-ghost nav hide-md-up","aria-label":"Fechar"},a[8]||(a[8]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[1]||(a[1]=o=>n.$emit("prev")),"aria-label":"Mês anterior"},a[9]||(a[9]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.5 19 9 12l6.5-7 1.5 1.3L12.3 12l4.7 5.7z"})],-1),e.createElementVNode("span",{class:"label-md"},"Anterior",-1)])),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent today",onClick:a[2]||(a[2]=o=>n.$emit("today")),"aria-label":"Hoje"},a[10]||(a[10]=[e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M11.6643 2.05648c.0197-.00699.1589-.05645.3357-.05645.1768 0 .316.04946.3357.05645l.0019.00067c.0461.01577.0846.03229.1092.04332.0514.02304.1015.04898.1449.07268.0896.04898.1957.11302.3102.18855.2291.15109.521.36725.8121.63689C14.247 3.49218 15 4.37 15 5.50003c0 1.12688-.7447 2.00396-1.2779 2.49995-.2531.23541-.5075.43043-.7221.57742V10h5c.5523 0 1 .4477 1 1v3h-4c-.0568 0-.1125.0048-.1667.0139-.0542-.0091-.1099-.0139-.1667-.0139H5v-3c0-.5523.44772-1 1-1h5V8.57622c-.2139-.14666-.4676-.34115-.7202-.57589C9.74664 7.50489 9 6.62764 9 5.50003c0-1.13003.753-2.00785 1.286-2.50144.2911-.26964.583-.4858.8121-.63689.1145-.07553.2206-.13957.3102-.18855.0434-.0237.0935-.04964.1449-.07268.0246-.01103.0631-.02755.1092-.04332l.0019-.00067ZM4 17.8377V21c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2.8243c-.0609.0534-.1248.1054-.1917.1556-.56.42-1.274.6687-2.1416.6687-.8677 0-1.5817-.2487-2.1417-.6687-.281-.2108-.5081-.4531-.6917-.7045-.1835.2514-.4106.4937-.6917.7045-.5599.42-1.2739.6687-2.1416.6687-.8677 0-1.5817-.2487-2.14169-.6687-.20142-.1511-.37514-.3184-.52499-.4936-.14984.1752-.32356.3425-.52499.4936-.55999.42-1.27398.6687-2.14166.6687s-1.58168-.2487-2.14167-.6687c-.20143-.1511-.37515-.3184-.525-.4936ZM5.2078 16c.0124.0314.0255.0628.03934.0939.11841.2664.27553.4856.47786.6374.19001.1425.47602.2687.94167.2687s.75165-.1262.94166-.2687c.20234-.1518.35945-.371.47786-.6374.01384-.0311.02694-.0625.03934-.0939H5.2078Zm5.3727.0939c-.0139-.0311-.027-.0625-.0394-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4778-.6374Zm5.6666 0c-.0138-.0311-.0269-.0625-.0393-.0939h2.9177c-.0124.0314-.0255.0628-.0393.0939-.1184.2664-.2755.4856-.4779.6374-.19.1425-.476.2687-.9416.2687-.4657 0-.7517-.1262-.9417-.2687-.2023-.1518-.3594-.371-.4779-.6374Z"})],-1),e.createElementVNode("span",{class:"label-md"},"Hoje",-1)])),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost nav",onClick:a[3]||(a[3]=o=>n.$emit("next")),"aria-label":"Próximo mês"},a[11]||(a[11]=[e.createElementVNode("span",{class:"label-md"},"Próximo",-1),e.createElementVNode("svg",{class:"icon-4",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 19l6.5-7L8 5l-1.5 1.3L11.7 12 6.5 17.7z"})],-1)]))]),e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,hc),e.createElementVNode("div",pc,[e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm btn-ghost filter-btn",title:"Filtro de eventos",onClick:a[4]||(a[4]=o=>n.$emit("open-filter",o))},[a[12]||(a[12]=e.createElementVNode("svg",{class:"icon-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5.05 3C3.291 3 2.352 5.024 3.51 6.317l5.422 6.059v4.874c0 .472.227.917.613 1.2l3.069 2.25c1.01.742 2.454.036 2.454-1.2v-7.124l5.422-6.059C21.647 5.024 20.708 3 18.95 3H5.05Z"})],-1)),t.filterCount>0?(e.openBlock(),e.createElementBlock("span",{key:0,class:"filter-badge",title:`${t.filterCount} filtro${t.filterCount>1?"s":""} ativo${t.filterCount>1?"s":""}`},e.toDisplayString(t.filterCount),9,gc)):e.createCommentVNode("",!0)]),e.createElementVNode("div",yc,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="calendar"?"is-active":""]),onClick:a[5]||(a[5]=o=>n.$emit("set-view-mode","calendar")),"aria-label":"Visão Calendário"},a[13]||(a[13]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5 5a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1 2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a2 2 0 0 1 2-2ZM3 19v-7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Calendário",-1)]),2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--sm btn-ghost",t.viewMode==="agenda"?"is-active":""]),onClick:a[6]||(a[6]=o=>n.$emit("set-view-mode","agenda")),"aria-label":"Visão Agenda"},a[14]||(a[14]=[e.createElementVNode("svg",{class:"icon-5",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 4.717c-2.286-.58-4.16-.756-7.045-.71A1.99 1.99 0 0 0 2 6v11c0 1.133.934 2.022 2.044 2.007 2.759-.38 4.5-.182 6.956.449V4.717Zm2 15.081c2.456-.631 4.198-.829 6.956-.791A2.013 2.013 0 0 0 22 16.999V6a1.99 1.99 0 0 0-1.955-1.993c-2.885-.046-4.76.13-7.045.71v15.081Z","clip-rule":"evenodd"})],-1),e.createElementVNode("span",{class:"label-lg"},"Agenda",-1)]),2)]),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm show-lg btn-ghost",onClick:a[7]||(a[7]=o=>n.$emit("toggle-compact")),"aria-pressed":t.isCompact,title:t.isCompact?"Sair do modo compacto":"Ativar modo compacto"},[t.isCompact?(e.openBlock(),e.createElementBlock("svg",bc,a[16]||(a[16]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4H4m0 0v4m0-4 5 5m7-5h4m0 0v4m0-4-5 5M8 20H4m0 0v-4m0 4 5-5m7 5h4m0 0v-4m0 4-5-5"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",xc,a[15]||(a[15]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8h4V4m12 4h-4V4M4 16h4v4m12-4h-4v4"},null,-1)])))],8,kc)])]))}},[["__scopeId","data-v-e367c35d"]]),Ec=["title"],vc={class:"week-header"},Cc=Ce({__name:"WeekDays",props:{weekDays:{type:Array,default:()=>[]},month:String,year:[String,Number]},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",{class:"month-title",title:`${t.month} ${t.year}`},e.toDisplayString(t.month)+" "+e.toDisplayString(t.year),9,Ec),e.createElementVNode("div",vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.weekDays,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"week-cell"},e.toDisplayString(o),1))),128))])],64))}},[["__scopeId","data-v-a59e7945"]]),Sc=["onClick"],Bc={key:0,class:"cell-today-indicator show-lg"},Vc={class:"cell-top"},Mc={class:"day-number"},Nc={key:1,class:"more"},Ac={class:"bars-wrap"},Tc=4,Dc=8,ar=4,or=2,Lc=1,Fc=Ce({__name:"CalendarGrid",props:{startOffset:Number,monthDays:Array,viewDate:Date,isCompact:Boolean,isSameMonthFn:Function,isSelectedDayFn:Function,isTodayFn:Function,selectDayFn:Function,eventsByDayFn:Function,dayEventCountFn:Function,eventBarsToShowFn:Function,dayEventOverflowFn:Function},setup(t){const n=t,a=e.ref({}),o=new Map;function r(d){const g=(d==null?void 0:d.clientWidth)||0,x=(d==null?void 0:d.clientHeight)||0;if(!g||!x)return{cols:0,rows:0,widths:[],sum:0};const b=Math.max(0,Math.floor((g+ar)/(Tc+ar))),k=Math.max(0,Math.floor((x+or)/(Dc+or))),y=l(b,k),v=y.reduce((C,L)=>C+L,0);return{cols:b,rows:k,widths:y,sum:v}}function i(d,g){const x=r(g),b=a.value[d];(!b||b.cols!==x.cols||b.rows!==x.rows||b.sum!==x.sum)&&(a.value={...a.value,[d]:x})}function s(d,g){if(!g){const b=o.get(d);if(b&&(b.disconnect(),o.delete(d)),a.value[d]!=null){const k={...a.value};delete k[d],a.value=k}return}i(d,g);const x=new ResizeObserver(()=>i(d,g));x.observe(g),o.set(d,x)}e.onBeforeUnmount(()=>{o.forEach(d=>d.disconnect()),o.clear()});function l(d,g){if(d<=0||g<=0)return[];const x=[],b=.25;for(let k=0;k<g;k++){const y=k/Math.max(1,g-1),v=b+(1-b)*y,C=Math.max(1,Math.round(d*v));x.push(Math.min(C,d))}return x}function c(d,g){var v;const x=(typeof n.dayEventCountFn=="function"?n.dayEventCountFn(g):0)||0,b=((v=a.value[d])==null?void 0:v.sum)??0;if(x<=b)return{bars:x,overflow:0};const k=Math.max(0,b-Lc),y=Math.max(0,x-k);return{bars:k,overflow:y}}function m(d,g){const x=a.value[d];if(!x||x.rows===0||x.cols===0)return[];const{widths:b}=x,y=c(d,g).bars,v=(typeof n.eventsByDayFn=="function"?n.eventsByDayFn(g).slice(0,y):[])||[],C=b.map(()=>[]);let L=0;for(let P=b.length-1;P>=0&&L<v.length;P--){const E=Math.min(b[P],v.length-L);C[P]=v.slice(L,L+E),L+=E}return C}const u=e.ref(null);function h(d){return d&&d.nodeType===1&&typeof d.getBoundingClientRect=="function"}function f(d){if(!h(d))return;const g=u.value,x=g&&h(g)?g:d.offsetParent;if(!h(x))return;let b,k;try{b=d.getBoundingClientRect(),k=x.getBoundingClientRect()}catch{return}const y=x.scrollLeft||0,v=x.scrollTop||0;d.style.position="absolute",d.style.zIndex="0",d.style.top=`${b.top-k.top+v}px`,d.style.left=`${b.left-k.left+y}px`,d.style.width=`${b.width}px`,d.style.height=`${b.height}px`,d.style.pointerEvents="none"}function p(d){!d||!d.style||requestAnimationFrame(()=>{!d||!d.style||(d.style.position="",d.style.zIndex="",d.style.top="",d.style.left="",d.style.width="",d.style.height="",d.style.pointerEvents="")})}return(d,g)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:"cal-fade","move-class":"cal-move",tag:"div",class:"cal-grid calendar-grid",appear:"",ref_key:"gridRef",ref:u,onBeforeLeave:f,onAfterLeave:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.startOffset,x=>(e.openBlock(),e.createElementBlock("div",{key:"x"+x,class:"cal-cell day-empty bg-base-300 border border-base-100"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.monthDays,(x,b)=>(e.openBlock(),e.createElementBlock("div",{key:x.key,style:e.normalizeStyle({"--i":b}),class:e.normalizeClass(["cal-cell day-cell border border-base-100 bg-base-200 hover:bg-base-100",[t.isSameMonthFn(x.date,t.viewDate)?"":"opacity-60",t.isSelectedDayFn(x.date)?"neon-selected":"",t.isTodayFn(x.date)?"is-today":"",t.dayEventCountFn(x.date)>0?"has-events":""]]),onClick:k=>t.selectDayFn(x.date)},[t.isTodayFn(x.date)?(e.openBlock(),e.createElementBlock("div",Bc," Hoje ")):e.createCommentVNode("",!0),e.createElementVNode("div",Vc,[e.createElementVNode("span",Mc,e.toDisplayString(x.date.getDate()),1)]),c(x.key,x.date).overflow>0?(e.openBlock(),e.createElementBlock("span",Nc," +"+e.toDisplayString(c(x.key,x.date).overflow),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ac,[e.createElementVNode("div",{class:"bars-vert",ref_for:!0,ref:k=>s(x.key,k)},[c(x.key,x.date).bars>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m(x.key,x.date),(k,y)=>(e.openBlock(),e.createElementBlock("div",{key:"vrow"+y,class:"vrow"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,(v,C)=>(e.openBlock(),e.createElementBlock("span",{key:"vbar"+y+"-"+C,class:"vbar",style:e.normalizeStyle({background:e.unref(Vn)(v),boxShadow:`0 0 8px ${e.unref(Vn)(v)}70`})},null,4))),128))]))),128)):e.createCommentVNode("",!0)],512)])],14,Sc))),128))]),_:1},512))}},[["__scopeId","data-v-82c146bb"]]),$c={class:"agenda-section"},Pc={key:0,class:"empty-state"},Oc={key:1,class:"day-list"},_c={class:"date-trail"},Rc={class:"weekday-short"},Hc={class:"date-pill bg-base-200 border border-base-300"},zc={class:"date-pill-month"},jc={class:"date-pill-day"},Gc={class:"content-col"},qc={class:"day-header"},Ic={class:"agenda-title"},Wc={class:"month-header-text"},Uc={class:"events-list"},Zc=Ce({__name:"AgendaList",props:{days:{type:Array,default:()=>[]},weekdayLong:Function,weekdayShort:Function,monthShort:Function,monthLabelOf:Function,year:Number},emits:["open-chat","open-message","delete-message"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("section",$c,[t.days.length===0?(e.openBlock(),e.createElementBlock("div",Pc," Sem eventos neste mês. ")):(e.openBlock(),e.createElementBlock("ul",Oc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.days,r=>{var i;return e.openBlock(),e.createElementBlock("li",{key:r.key,class:"day-item border-base-200"},[e.createElementVNode("div",_c,[e.createElementVNode("div",Rc,e.toDisplayString(t.weekdayShort(r.date)),1),e.createElementVNode("div",Hc,[e.createElementVNode("div",zc,e.toDisplayString(t.monthShort(r.date)),1),e.createElementVNode("div",jc,e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",{style:e.normalizeStyle({background:e.unref(Vn)(((i=r.events)==null?void 0:i[0])||{})}),class:"date-pill-dot"},null,4)])]),e.createElementVNode("div",Gc,[e.createElementVNode("div",qc,[e.createElementVNode("h3",Ic,e.toDisplayString(t.weekdayLong(r.date).toUpperCase())+" "+e.toDisplayString(r.date.getDate()),1),e.createElementVNode("div",Wc,e.toDisplayString(t.monthLabelOf(r.date).toUpperCase())+" "+e.toDisplayString(t.year),1)]),e.createElementVNode("ul",Uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.events,s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"event-item border border-base-100 bg-base-200 hover:bg-base-100"},[e.createVNode(pa,{ev:s,mode:"agenda",onOpenMessage:o[0]||(o[0]=l=>a.$emit("open-message",l)),onOpenChat:o[1]||(o[1]=l=>a.$emit("open-chat",l)),onDeleteMessage:o[2]||(o[2]=l=>a.$emit("delete-message",l))},null,8,["ev"])]))),128))])])])}),128))]))]))}},[["__scopeId","data-v-d901943e"]]),Yc=["data-mode","data-empty"],Xc=["disabled"],rr=Ce({__name:"EventsList",props:{loading:{type:Boolean,default:!1},selectedLabel:{type:String,default:""},selectedLabelLong:{type:String,default:""},events:{type:Array,default:()=>[]},mode:{type:String,default:"compact"}},emits:["reload","open-chat","open-message","delete-message"],setup(t){const n=t,a=e.computed(()=>n.mode==="compact"?n.selectedLabelLong||"Hoje":`Eventos em ${n.selectedLabel||"—"}`);return(o,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["bg-base-300 daylist",[t.mode==="compact"?"daylist--compact has-border border-base-200":"daylist--sidebar has-border border-base-200 supports-blur",{"daylist--tight":t.mode==="compact"&&!t.loading&&t.events.length===0}]]),"data-mode":t.mode,"data-empty":!t.loading&&t.events.length===0?"1":"0"},[e.createElementVNode("div",{class:e.normalizeClass(["daylist-header",t.mode==="compact"?"daylist-header--compact bg-base-300":"daylist-header--sidebar bg-base-300"])},[e.createElementVNode("h3",{class:e.normalizeClass(t.mode==="compact"?"daylist-title--compact":"daylist-title--sidebar")},e.toDisplayString(a.value),3),e.createElementVNode("button",{type:"button",class:"cyber-button cyber-button--sm cyber-button--accent",onClick:r[0]||(r[0]=i=>o.$emit("reload")),disabled:t.loading},e.toDisplayString(t.loading?"Atualizando…":"Atualizar"),9,Xc)],2),t.loading?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"fade"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["loading-text",t.mode==="compact"?"is-compact":"is-sidebar"])}," Carregando… ",2)]),_:1})):t.events.length===0?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>r[4]||(r[4]=[e.createElementVNode("div",{class:"empty-text"},"Sem eventos.",-1)])),_:1,__:[4]})):(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,name:"list","move-class":"list-move",tag:"ul",appear:"",class:e.normalizeClass([t.mode==="compact"?"list-compact has-border border-base-300 bg-base-200 supports-blur":"list-sidebar"])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.events,(i,s)=>(e.openBlock(),e.createElementBlock("li",{key:i.id,style:e.normalizeStyle({"--i":s}),class:e.normalizeClass(t.mode==="compact"?"item-compact hover:bg-base-100":"item-sidebar hover:z-10 has-border hover:bg-base-100 border-base-100 bg-base-200 ")},[e.createVNode(pa,{ev:i,mode:t.mode==="compact"?"compact":"sidebar",onOpenMessage:r[1]||(r[1]=l=>o.$emit("open-message",l)),onOpenChat:r[2]||(r[2]=l=>o.$emit("open-chat",l)),onDeleteMessage:r[3]||(r[3]=l=>o.$emit("delete-message",l))},null,8,["ev","mode"])],6))),128))]),_:1},8,["class"]))],10,Yc))}},[["__scopeId","data-v-0c2dc086"]]),Kc={class:"cpk-popover__header border-base-100"},Qc={class:"filter-body"},Jc={class:"row"},ed=["checked"],td={class:"row row--status",role:"group","aria-label":"Filtrar por status de execução"},nd={class:"status-wrap"},ad={class:"seg"},od=Ce({__name:"CalFilter",props:{open:{type:Boolean,default:!1},anchorEl:{type:[HTMLElement,Object],default:null},offset:{type:Number,default:8},align:{type:String,default:"center"},filters:{type:Object,default:()=>({})}},emits:["close","update:filters"],setup(t,{emit:n}){const a=t,o=n,r=Rt(),i=e.computed(()=>r.attendants.find(E=>E.is_me)||null),s=e.reactive({onlyMine:!1,status:null});e.watch(()=>a.open,async E=>{var S,B,N;if(!E)return;await e.nextTick();const w=(S=i.value)!=null&&S.id?String(i.value.id):null;s.onlyMine=!!w&&String(((B=a.filters)==null?void 0:B.scheduled_by)??"")===w;const A=(N=a.filters)==null?void 0:N.status;s.status=A===!0||A===!1?A:null,x()},{immediate:!1});function l(E,w){if(!E)return{};const{[w]:A,...S}=E;return S}function c(E){var A;s.onlyMine=!!E.target.checked;const w=(A=i.value)!=null&&A.id?String(i.value.id):null;s.onlyMine&&w?o("update:filters",{...a.filters,scheduled_by:w}):o("update:filters",l(a.filters,"scheduled_by"))}function m(E){if(s.status===E){s.status=null;const w=l(a.filters,"status");o("update:filters",w)}else s.status=E,o("update:filters",{...a.filters,status:E})}const u=e.ref(null),h=e.ref({left:0,top:0,placed:"bottom"}),f=e.computed(()=>({position:"fixed",left:`${h.value.left}px`,top:`${h.value.top}px`}));function p(){const E=a.anchorEl instanceof Element?a.anchorEl:null;if(E!=null&&E.getBoundingClientRect)return E.getBoundingClientRect();const w=window.innerWidth/2,A=window.innerHeight/3;return{left:w,right:w,top:A,bottom:A,width:0,height:0}}function d(E,w,A,S){return{left:Math.max(8,Math.min(E,window.innerWidth-A-8)),top:Math.max(8,Math.min(w,window.innerHeight-S-8))}}function g(){const E=p(),w=u.value,A=(w==null?void 0:w.offsetWidth)??300,S=(w==null?void 0:w.offsetHeight)??220;let B=E.bottom+a.offset,N;if(a.align==="center"?N=E.left+E.width/2-A/2:a.align==="end"?N=E.right-A:N=E.left,B+S>window.innerHeight-4){const H=E.top-S-a.offset;H>=4?(B=H,h.value.placed="top"):h.value.placed="bottom"}else h.value.placed="bottom";const M=d(N,B,A,S);h.value={left:M.left,top:M.top,placed:h.value.placed}}function x(){g(),requestAnimationFrame(g)}let b,k,y=[];function v(){C(),y=[window];const E=a.anchorEl instanceof Element?a.anchorEl:null;let w=E==null?void 0:E.parentElement;for(;w&&w!==document.body;){const A=getComputedStyle(w);/(auto|scroll)/.test(A.overflow+A.overflowY+A.overflowX)&&y.push(w),w=w.parentElement}y.forEach(A=>A.addEventListener("scroll",x,{passive:!0}))}function C(){y.forEach(E=>{var w;return(w=E.removeEventListener)==null?void 0:w.call(E,"scroll",x)}),y=[]}e.watch(()=>a.open,async E=>{var A,S,B,N;if(!E){C(),(A=b==null?void 0:b.disconnect)==null||A.call(b),(S=k==null?void 0:k.disconnect)==null||S.call(k);return}await e.nextTick(),x(),v(),(B=b==null?void 0:b.disconnect)==null||B.call(b),b=new ResizeObserver(x),b.observe(document.body),(N=k==null?void 0:k.disconnect)==null||N.call(k);const w=a.anchorEl instanceof Element?a.anchorEl:null;w&&(k=new ResizeObserver(x),k.observe(w)),window.addEventListener("resize",x)}),e.watch(()=>a.anchorEl,async()=>{a.open&&(await e.nextTick(),v(),x())});function L(E){E.key==="Escape"&&o("close")}function P(E){if(!a.open)return;const w=E.target,A=u.value;if(A&&A.contains(w))return;const S=a.anchorEl instanceof Element?a.anchorEl:null;S&&S.contains&&S.contains(w)||o("close")}return e.onMounted(()=>{document.addEventListener("pointerdown",P,!0),window.addEventListener("keydown",L)}),e.onBeforeUnmount(()=>{var E,w;document.removeEventListener("pointerdown",P,!0),window.removeEventListener("keydown",L),C(),(E=b==null?void 0:b.disconnect)==null||E.call(b),(w=k==null?void 0:k.disconnect)==null||w.call(k)}),(E,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"cpk-layer",appear:""},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cpk-popover-layer",onMousedown:w[4]||(w[4]=e.withModifiers(A=>E.$emit("close"),["self"]))},[e.createVNode(e.Transition,{name:"cpk-card",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"card",ref:u,class:"cpk-popover bg-base-300",style:e.normalizeStyle(f.value),role:"dialog","aria-modal":"true","aria-label":"Filtro de eventos"},[e.createElementVNode("div",Kc,[w[5]||(w[5]=e.createElementVNode("div",{class:"cpk-popover__icon","aria-hidden":"true"},"⚙",-1)),w[6]||(w[6]=e.createElementVNode("h3",{class:"cpk-popover__title"},"Filtros",-1)),e.createElementVNode("button",{class:"cpk-popover__close",type:"button",onClick:w[0]||(w[0]=A=>E.$emit("close")),"aria-label":"Fechar"}," × ")]),e.createElementVNode("div",Qc,[e.createElementVNode("label",Jc,[e.createElementVNode("input",{class:"switch",type:"checkbox",checked:s.onlyMine,onChange:w[1]||(w[1]=A=>c(A)),"aria-label":"Exibir somente meus eventos"},null,40,ed),w[7]||(w[7]=e.createElementVNode("span",{class:"label-cpk"},"Exibir somente meus eventos",-1))]),e.createElementVNode("div",td,[w[9]||(w[9]=e.createElementVNode("span",{class:"status-icon","aria-hidden":"true"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})])],-1)),e.createElementVNode("div",nd,[w[8]||(w[8]=e.createElementVNode("div",{class:"label-cpk"},[e.createTextVNode(" Status "),e.createElementVNode("span",{class:"sched-pop",tabindex:"0","aria-label":"Ajuda sobre status"},[e.createElementVNode("span",{class:"sched-pop__mark"},[e.createElementVNode("svg",{class:"icon-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.008-3.018a1.502 1.502 0 0 1 2.522 1.159v.024a1.44 1.44 0 0 1-1.493 1.418 1 1 0 0 0-1.037.999V14a1 1 0 1 0 2 0v-.539a3.44 3.44 0 0 0 2.529-3.256 3.502 3.502 0 0 0-7-.255 1 1 0 0 0 2 .076c.014-.398.187-.774.48-1.044Zm.982 7.026a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2h-.01Z","clip-rule":"evenodd"})])]),e.createElementVNode("div",{class:"sched-pop__card bg-base-300",style:{"--popover-brd":"var(--cyber-border)",transform:"translate(-5%, -50%) scale(0.98)"}},[e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Ativos:"),e.createTextVNode(" Eventos que estão programados para ocorrer ")]),e.createElementVNode("div",null,[e.createElementVNode("span",{style:{"font-weight":"600"}},"Executados:"),e.createTextVNode(" Eventos que já ocorreram ")])])])],-1)),e.createElementVNode("div",ad,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!0?"is-active":""]),onClick:w[2]||(w[2]=A=>m(!0)),"aria-pressed":"state.status === true"}," Ativos ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["cyber-button cyber-button--xs btn-ghost",s.status===!1?"is-active":""]),onClick:w[3]||(w[3]=A=>m(!1)),"aria-pressed":"state.status === false"}," Executados ",2)])])])])],4)]),_:1})],32)):e.createCommentVNode("",!0)]),_:1}))}},[["__scopeId","data-v-cc8bb01a"]]),rd={class:"calendar-content"},id={class:"calendar-stage-main"},sd={key:0},ir=Ce({__name:"scheduledCalendar",props:{sourceUrl:{type:String,default:"/crm_scheduled"},initialDate:{type:[String,Date],default:()=>new Date}},emits:["open-chat","loaded","open-message","close-page"],setup(t,{expose:n,emit:a}){const o=t,r=nr();r.setBaseUrl(o.sourceUrl);const i=new Date,s=e.ref(m(o.initialDate)),l=e.ref(new Date(i.getFullYear(),i.getMonth(),i.getDate())),c=e.ref("calendar");function m(_){if(_ instanceof Date)return new Date(_.getFullYear(),_.getMonth(),1);if(typeof _=="string"){const[K,ae]=_.split("-").map(ce=>parseInt(ce,10));return new Date(K||i.getFullYear(),(ae||i.getMonth()+1)-1,1)}return new Date(i.getFullYear(),i.getMonth(),1)}function u(_){return new Date(_.getFullYear(),_.getMonth()+1,0).getDate()}function h(_){return new Date(_.getFullYear(),_.getMonth(),1).getDay()}function f(_,K){return _.getFullYear()===K.getFullYear()&&_.getMonth()===K.getMonth()}function p(_){return fa(_,i)}function d(_){return fa(_,l.value)}function g(_){l.value=new Date(_.getFullYear(),_.getMonth(),_.getDate()),f(_,s.value)||(s.value=new Date(_.getFullYear(),_.getMonth(),1))}function x(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()-1,1)}function b(){s.value=new Date(s.value.getFullYear(),s.value.getMonth()+1,1)}function k(){s.value=new Date(i.getFullYear(),i.getMonth(),1),l.value=new Date(i.getFullYear(),i.getMonth(),i.getDate())}const y=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],v=["DOM","SEG","TER","QUA","QUI","SEX","SÁB"],C=e.computed(()=>M(y[s.value.getMonth()])),L=e.computed(()=>s.value.getFullYear()),P=e.computed(()=>w(l.value)),E=e.computed(()=>`${A(l.value)} ${l.value.getDate()}`);function w(_){return`${String(_.getDate()).padStart(2,"0")}/${String(_.getMonth()+1).padStart(2,"0")}/${_.getFullYear()}`}function A(_){return["DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"][_.getDay()]}function S(_){return["DOM","SEG","TER","QUA","QUI","SEX","SÁB"][_.getDay()]}function B(_){return["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"][_.getMonth()]}function N(_){return y[_.getMonth()]}function M(_){return _.charAt(0).toUpperCase()+_.slice(1)}const H=e.computed(()=>h(s.value)),ie=e.computed(()=>{const _=u(s.value);return Array.from({length:_},(K,ae)=>{const ce=ae+1,Ee=new Date(s.value.getFullYear(),s.value.getMonth(),ce);return{key:`d${ce}`,date:Ee}})}),Q=e.ref({open:!1,anchorEl:null});function fe(_){Q.value.open=!0,Q.value.anchorEl=(_==null?void 0:_.currentTarget)||null}const{filters:F}=Vt.storeToRefs(r),D=e.computed(()=>_t(s.value)),j=e.computed(()=>r.eventsOf(D.value)),re={scheduled_by:_=>{var ce,Ee,ye;const K=(_==null?void 0:_.scheduled_by)??((Ee=(ce=_==null?void 0:_.raw)==null?void 0:ce.params)==null?void 0:Ee.scheduled_by)??((ye=_==null?void 0:_.raw)==null?void 0:ye.scheduled_by)??(_==null?void 0:_.created_by)??(_==null?void 0:_.attendant_id),ae=typeof K=="object"&&K?K.id??K.attendant_id:K;return ae!=null?String(ae):""}};function se(_,K){const ae=(K==null?void 0:K.value)??K;return!ae||typeof ae!="object"?!0:Object.entries(ae).every(([ce,Ee])=>{var I,Z,he;if(Ee==null||Ee===""||Array.isArray(Ee)&&Ee.length===0)return!0;const ye=re[ce],T=(ye==null?void 0:ye(_))??(_==null?void 0:_[ce])??((I=_==null?void 0:_.raw)==null?void 0:I[ce])??((he=(Z=_==null?void 0:_.raw)==null?void 0:Z.params)==null?void 0:he[ce])??null,O=typeof T=="string"?T:T??"";if(typeof Ee=="function")return!!Ee(O,_);if(Array.isArray(Ee))return Ee.map(String).includes(String(O));if(typeof Ee=="object"){const{in:te,notIn:oe,range:ue,contains:R}=Ee;if(te&&!te.map(String).includes(String(O))||oe&&oe.map(String).includes(String(O)))return!1;if(ue&&typeof O=="number"){const[Y,le]=ue;if(Y!=null&&O<Y||le!=null&&O>le)return!1}if(R!=null){const Y=Array.isArray(O)?O:String(O).split(",");if(!(Array.isArray(R)?R:[R]).some(xe=>Y.map(String).includes(String(xe))))return!1}return!0}return String(O)===String(Ee)})}const be=e.computed(()=>(j.value||[]).filter(K=>se(K,F)));function Se(_){return be.value.filter(K=>fa(K.date,_))}const Fe=e.computed(()=>Se(l.value)),$e=e.computed(()=>[...Fe.value].sort((_,K)=>_.date-K.date));function Ve(_){return Se(_).length}function G(_){return Math.min(3,Ve(_))}function ne(_){const K=Ve(_);return K>3?K-3:0}const J=e.computed(()=>{const _=s.value.getFullYear(),K=s.value.getMonth(),ae=new Map;for(const Ee of be.value){const ye=Ee==null?void 0:Ee.date;if(!(ye instanceof Date)||ye.getFullYear()!==_||ye.getMonth()!==K)continue;const T=`${_}-${K+1}-${ye.getDate()}`;ae.has(T)||ae.set(T,{key:`ag-${T}`,date:new Date(_,K,ye.getDate()),events:[]}),ae.get(T).events.push(Ee)}const ce=Array.from(ae.values());for(const Ee of ce)Ee.events.sort((ye,T)=>ye.date-T.date);return ce.sort((Ee,ye)=>Ee.date-ye.date),ce}),V=e.ref(!1),$=e.ref(!1),q=e.computed(()=>$.value||V.value),z=e.computed(()=>q?"calendar-stage--compact":"calendar-stage--single");function X(){var ae;const _=window.matchMedia("(max-width: 1280px)"),K=()=>$.value=_.matches;K(),(ae=_.addEventListener)==null||ae.call(_,"change",K)}const U=e.computed(()=>r.isLoading(D.value));e.computed(()=>r.errorOf(D.value));const ee=e.ref({open:!1,loading:!1,context:null,title:"Confirmar exclusão",description:"Tem certeza que deseja apagar este item?",destructive:!0,anchorEl:null,confirmLabel:"Apagar",cancelLabel:"Cancelar",loadingLabel:"Apagando…"});function de(_,K){ee.value.open=!0,ee.value.context={action:"delete-message",event:_},ee.value.title="Confirmar exclusão",ee.value.description="Tem certeza que deseja apagar este evento?",ee.value.anchorEl=K&&K.currentTarget||typeof document<"u"&&document.activeElement||null,ee.value.destructive=!0,ee.value.confirmLabel="Apagar",ee.value.loadingLabel="Apagando…"}async function we(_){if(_)try{ee.value.loading=!0,_.action==="delete-message"&&await ge(_.event)}finally{ee.value.loading=!1,ee.value.open=!1,ee.value.context=null}}function ke(){ee.value.open=!1,ee.value.context=null}async function pe(){await r.forceReload(D.value)}async function ge(_){var K;try{_.deleteLoading=!0;const ae=((K=_==null?void 0:_.raw)==null?void 0:K.id)??(_==null?void 0:_.id)??_;if(ae==null)throw new Error("Evento inválido para exclusão");const ce=await b2(y0,_);return ce!=null&&ce.ok&&(r.removeFromCache(String(ae))||await r.forceReload(D.value)),ce}catch(ae){return console.error(ae),null}finally{_.deleteLoading=!1}}return e.onMounted(async()=>{if(X(),await r.ensureMonthLoaded(D.value),!Se(l.value).length&&be.value.length){const _=be.value[0];l.value=new Date(_.date.getFullYear(),_.date.getMonth(),_.date.getDate())}}),e.watch(()=>o.sourceUrl,async _=>{if(r.setBaseUrl(_),r.resetAll(),await r.ensureMonthLoaded(D.value),!Se(l.value).length&&be.value.length){const K=be.value[0];l.value=new Date(K.date.getFullYear(),K.date.getMonth(),K.date.getDate())}}),e.watch(D,async()=>{const _=s.value.getFullYear(),K=s.value.getMonth(),ae=Math.min(l.value.getDate(),u(s.value));if(l.value=new Date(_,K,ae),await r.ensureMonthLoaded(D.value),!Se(l.value).length&&be.value.length){const ce=be.value[0];l.value=new Date(ce.date.getFullYear(),ce.date.getMonth(),ce.date.getDate())}}),n({updateEvent:r.applyUpdateToCache}),(_,K)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["calendar-main bg-base-300",{"calendar-main--compact":q.value}])},[e.createElementVNode("div",rd,[K[15]||(K[15]=e.createElementVNode("div",{class:"cyber-glow-overlay"},null,-1)),e.createVNode(wc,{month:C.value,year:L.value,"is-compact":q.value,"view-mode":c.value,"filter-count":Object.keys(e.unref(F)).length,onPrev:x,onNext:b,onToday:k,onToggleCompact:K[0]||(K[0]=ae=>V.value=!V.value),onSetViewMode:K[1]||(K[1]=ae=>c.value=ae),onClosePage:K[2]||(K[2]=ae=>_.$emit("close-page")),onOpenFilter:fe},null,8,["month","year","is-compact","view-mode","filter-count"]),c.value==="calendar"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["calendar-stage",z.value])},[e.createElementVNode("div",id,[e.createVNode(Cc,{"week-days":v,month:C.value,year:L.value},null,8,["month","year"]),e.createVNode(Fc,{"start-offset":H.value,"month-days":ie.value,"view-date":s.value,"is-compact":q.value,"is-same-month-fn":f,"is-selected-day-fn":d,"is-today-fn":p,"select-day-fn":g,"events-by-day-fn":Se,"day-event-count-fn":Ve,"event-bars-to-show-fn":G,"day-event-overflow-fn":ne},null,8,["start-offset","month-days","view-date","is-compact"])]),q.value?(e.openBlock(),e.createBlock(rr,{key:0,class:"calendar-daylist calendar-daylist--mobile",loading:U.value,"selected-label-long":E.value,events:$e.value,mode:"compact",onReload:pe,onOpenChat:K[3]||(K[3]=ae=>_.$emit("open-chat",ae)),onOpenMessage:K[4]||(K[4]=ae=>_.$emit("open-message",ae)),onDeleteMessage:K[5]||(K[5]=(ae,ce)=>de(ae,ce))},null,8,["loading","selected-label-long","events"])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(Zc,{key:1,days:J.value,"weekday-long":A,"weekday-short":S,"month-short":B,"month-label-of":N,year:L.value,onOpenChat:K[6]||(K[6]=ae=>_.$emit("open-chat",ae)),onOpenMessage:K[7]||(K[7]=ae=>_.$emit("open-message",ae)),onDeleteMessage:K[8]||(K[8]=(ae,ce)=>de(ae,ce))},null,8,["days","year"]))]),e.createVNode(rr,{class:"calendar-daylist calendar-daylist--desktop",loading:U.value,"selected-label":P.value,"selected-label-long":E.value,events:$e.value,mode:q.value?"compact":"sidebar",onReload:pe,onOpenChat:K[9]||(K[9]=ae=>_.$emit("open-chat",ae)),onOpenMessage:K[10]||(K[10]=ae=>_.$emit("open-message",ae)),onDeleteMessage:K[11]||(K[11]=(ae,ce)=>de(ae,ce))},null,8,["loading","selected-label","selected-label-long","events","mode"])],2),e.createVNode(sl,{modelValue:ee.value.open,"onUpdate:modelValue":K[12]||(K[12]=ae=>ee.value.open=ae),title:ee.value.title,description:ee.value.description,destructive:ee.value.destructive,"confirm-label":ee.value.confirmLabel,"cancel-label":ee.value.cancelLabel,loading:ee.value.loading,"loading-label":ee.value.loadingLabel,context:ee.value.context,"anchor-el":ee.value.anchorEl,placement:"auto",align:"center",offset:12,onConfirm:we,onCancel:ke},{details:e.withCtx(()=>{var ae;return[(ae=ee.value.context)!=null&&ae.event?(e.openBlock(),e.createElementBlock("div",sd,[e.createVNode(pa,{"view-only":!0,mode:"sidebar",ev:ee.value.context.event},null,8,["ev"])])):e.createCommentVNode("",!0)]}),_:1},8,["modelValue","title","description","destructive","confirm-label","cancel-label","loading","loading-label","context","anchor-el"]),e.createVNode(od,{open:Q.value.open,"anchor-el":Q.value.anchorEl,filters:e.unref(F),"onUpdate:filters":K[13]||(K[13]=ae=>e.isRef(F)?F.value=ae:null),onClose:K[14]||(K[14]=ae=>Q.value.open=!1)},null,8,["open","anchor-el","filters"])],64))}},[["__scopeId","data-v-d0a577ac"]]),ld={class:"flex flex-col text-center"},cd={class:"flex flex-col space-y-3 justify-center"},dd={class:"space-x-4 flex-col text-black justify-center"},ud=["onUpdate:modelValue","onInput","onKeydown"],sr={__name:"mfa",props:{eventHandling:{type:String,default:null}},emits:["filled","reset"],setup(t,{emit:n}){e.onMounted(()=>{r.value[0].focus()});const a=n,o=e.ref(Array(6).fill("")),r=e.ref([]);e.ref(!1);const i=m=>{const u=o.value[m];o.value[0]<1&&a("reset"),/^\d$/.test(u)?s(m):o.value[m]="",m===o.value.length-1&&o.value.every(h=>h!=="")&&c()},s=m=>{m<o.value.length-1&&o.value[m]&&r.value[m+1].focus()},l=(m,u)=>{u.key==="Backspace"&&!o.value[m]&&m>0&&r.value[m-1].focus()},c=()=>{const m=o.value.join("");a("filled",m)};return(m,u)=>(e.openBlock(),e.createElementBlock("section",ld,[e.createElementVNode("div",cd,[e.createElementVNode("div",dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(h,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:f,"onUpdate:modelValue":p=>o.value[f]=p,class:e.normalizeClass([t.eventHandling==="check"?"checked_mfa":t.eventHandling==="err"?"err_mfa":"reset_input","inline-block w-10 h-10 rounded-md text-center"]),type:"text",maxlength:"1",onInput:p=>i(f),onKeydown:e.withKeys(p=>l(f,p),["backspace"]),ref_for:!0,ref_key:"inputs",ref:r},null,42,ud)),[[e.vModelText,o.value[f]]])),128))])])]))}},md={class:"text-center flex gap-3"},fd={class:"flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black"},hd={key:0,class:"items-center justify-center inline-flex"},pd=["src"],gd={__name:"mfaQrCode",props:{base64:{type:String,default:""},dimensions:{type:Array,default:null},loading:{type:Boolean,default:!1},generated:{type:Boolean,default:!1}},emits:["generateQR"],setup(t,{emit:n}){const a=n;e.ref(!1);const o=t,r=()=>{a("generateQR")},i=e.computed(()=>o.base64?o.base64:l.value),s=e.computed(()=>`w-${o.dimensions[0]} h-${o.dimensions[1]}`),l=e.ref("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAARGUlEQVR42u3dsZLbxhKFYejGpAOp9Jb7ACo9gMqx9JYbKOA6pwNfuly2yJ5lz5nuA/xfFSILwGAwanuxxz0frtfrdQMAA/+rHgAAjKJgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2KBgAbBBwQJgg4IFwAYFC4ANChYAGxQsADYoWABsULAA2GhTsD59+rR9+PBht0fkx48f2/l8/s955/N5+/HjR/XruTu+6Bgdv/r51dc/+vpd5cP1er1WD2Lb/nrhP3/+rB6GTDTN5/N5++OPP375z06n0/b29lY6/kfji4yMX/386usfff2uQsFaJJrm6N9i1a8p+2/Z6udXX//o63eVNj8SAkCEggXABgULgA0KFkIzPvhH1zidTk/9s07PCD0KFh56e3vbvnz5kr7O169fHxaFb9++/bIwnU6n7ffff5c/ZzQ+NHFt4uPHj9dt2+4er6+v1UNMjT/y6NwZr+n79+/X0+kU3mf1cTqdrt+/f396/KPnq8d39PW7ik2s4fX1dfv8+XP1MJ8efzTN6l+7Z3JUaityWplYxsj1j75+V+FHwoPoWqxGx/boz6ifrfPcHQ0FC4ANChYAGxQsADYoWCayv3JfkWVSjq06p4UeKFgmsjmhezmnaqM5q+qcFpqozlXcZHMsmyAjtL0jh6LOYd07RnNC91wul+vLy0t4n5eXl+vlcpl+/irV73/v63eV3eSw1E3GomlS57AeyfZzent723777beHf+ZyuWzn81ly/grq9jhHX7+r8CPhDmRzQiOF5NGfyZ4PjKJgAbBBwQJgg4IFwAYFayeqW6N0z0l1GAPyKFg7Ud3PqXtOqmsODe9Unau4OXqORTXuWf2i1FT9uqLnH82RZd//3tfvKuSwBkXTVJnDiszoF6VeJsp+XdHzj+TIsu9/7+t3FX4kPACHfk7KMUbXJiPmg4IFwAYFC4ANChYAGxSsJo7+K/fq5++eI8NfKFhNHD0nVP383XNk+L/qXMUNOZZfG80JZcefPb/KrBxVFut3Df4Lq7nz+bx9+/atehhtMT/HQsEyQE7oMebnOChYAGxQsADYoGABsEHBMrCibYx7Dsl9/BhDwWru7e1t+/Lli/w+7jkk9/FjUHWu4iabY6mWzbGo+kGN3r+7e/OT3Zdx1vWPvn5X2U0/rGrZfkLKflAj9+/u0fxk92Wccf2jr99V+JGwCYeeVZUezc+MuVNfH3NQsADYoGABsEHBAmCDggUL5KywbRQsmCBnhW3b+gQsohyI+xGJzn95ebleLpf/nDerH1Q2h+R+fnb+jr5+V7HJYbmLpjnal+5yudxtozJjX71sDsn9/Oy+jEdfv6tQsBbJFizO733+0dfvKnzDAmCDggXABgULgA0KVhPqnFH00Tl7/8z5M/p9VY4f61CwmlDnjL5+/fqwMGTv/+z5s/p9VY0fi1XnKjDH9mS+pjonNXpkqftpYY02sQbkRL+Wf6Q6JzUiu0zV/bSwBgVrJzIFa9vqc07Z8UWy40cPfMMCYIOCBcAGBQuADQoWynNSanxQ3w8K1sFV56TUVu3riEWqcxU3z+Z01PvSZY9VOZ9oHPf6ac16/mep+3mpxz+qOsfWff2OahNryOR01PvSZa3I+WT6ac14/swyUvfzUo9/RHWOLaNTTq1Nweqe08lST/PRc1LV4+/+fFlNygTfsAD4oGABsEHBAmBjFwUr++ty9QfFFb/OV/aDGpGdw+rxqzk/X6e5tS9Y2X5F6pzOqn5Kqn5Qo6J+W93Hr+b6fO36gVXnKm624hxR9ojGF+nar2k0J3XvcBl/xP39ZNdnFzaxBnWOKCsaX6Rzv6aRnNQjDuOP/hq4v5/s+uzCpmBFw3TPqXTv19Q955Qdf3Z9uT+fC/tvWACOg4IFwAYFC4ANCtYk1TkktcwYqsffYd/D7s/ngoI1SXUOSe3ZHFD1+Lvse9j9+WxU5yputmROJjq/66Huh1SdE1o1/up+WNU5wOzzdc2Z/RuxhgbU/ZCqc0Irxl/dD6s6B5h9vs45s3+iYDWhfr7q11y9b2L2+urnU8vOX/X6ueEbFgAbFCwANihYAGy0KVjO/YK66zA36hxX535e1bLz1+nZ2hQs135B3VXnhG7UOa6u/byqZeevy/r5W3WuYtSzOZFsP6fR416/oVn9mJ69v3p+Z53f9f1X55CO1u8q0ibWEMnkRLL9nEY86jc0ox9Ttl9YRLlvnnrfSPX7r84hHanfVcSmYHXPaWXvrz4/cvTxRar/mrjkpNTafMMCgAgFC4ANChYAGxYFq8v/eHnPipyLOieTuf6K91M5vo5xhdnP6KJ9were72dVzkWdk3n2+qveT9X42uWQ7sjmyGxU5ypu1P2Mnr3uNphz2WuOadX7UT3fXt5vdv3eO6pzZu/VJtag7meU/bV2Zl9E9xxTdP4I9TLLjq/7+1XGcqpzZu/RpmC590six/SYepnt/f1W5wi7aP8NCwBuKFgAbFCwANhoU7Dc+yWpc1LV+x5235ewcv2seL/KOXTImd20KVju/ZLUOanqfQ+770tYtX5WvV9Vvy2XnNnfqnMVs7j3S3r2/rPG1z0H5k71/o7WL6tNrCHLvV9Sdc6mew7MXeb9zli/e+mXtZuCVZ1zyU5jdc6mew7MXfecmIs237AAIELBAmCDggXAxmEKVvTRMqN6T7zs+Ebunxnj3j+oj1CuEfX76+QwBetezqW6X5K6n9SsflHP5sC69zNbRZUDVL+/dqpzFbNsohzTNphjyfZjyt4/oh5f9sh69vmqc2ar9s1UP/8qh4k1ZGX6Ja24f0Q9vqzsMsw8X3XObMW+mernX4WCNSiapur7R9Tjc38+9f2r14/6+Vc5zDcsAP4oWABsULAA2NhNwaruF9S5p1D3D6odcmzO/caOZDcFq7pfkOr+Wd1zUF1ybK79xg6nOldxo+qX1L1f0Oj4np2/0ePe83eZv6ocmVtO6d9mra8u2sQalP2SuvcLGhlf9JqU+/J1mL/KHJlTTulXZqyvLtoUrKP3Y6rO8WSvr54/cko51e9vlt18wwKwfxQsADYoWABstClY6n3f1NfPmPFBV7kvX/UH5+r7V6+PrOr5m6lNwVLv+6a+/rNm5YhU+/JV57iq71+9PrKq52+66lzFqOp+R6rxjR7dx199/+zxbL8zdT+tVYeLNrGGSHW/I+X4RqhfU3b82fFV9+vK9DtT99NawaQM9MlhhQMt7nekHp/7+LPj656zqs4JVj9/F22+YQFAhIIFwAYFC4ANi4LVod9RpLofV/U9qvd2VN9bmePbU05KrX3B6tLvKFLdj6t6/Kp+UmrZflVd+nkdRnWu4qY6h3Lv6NKPqyqHlt03z6WfVPecVbZfWXS4aBNrqM6hPNKhH1dlDi27b55DP6nuOatsv7JIkzIQalOwqnMokew0de93lR2/+v5q3XNW3dfHKu2/YQHADQULgA0KFgAbbQpW955D2Y/W2T9TPT/KflsdVPZjG/FofTjkFGdpU7C678v2bM5oNGcTXb96flT9trqo6sc26t76cMkpTlOdq8jK5pxm5VhUR5QD2su+c9kclDpHpbq/+/pbrU2sISObc5qRY1GKckB72Hcum4NS56iU43dffyvtomBtW33OSS07/u6vWf3+1M9/9PW3SptvWAAQoWABsEHBAmBjNwUrm6PpHKk4AuX7q+4n5r7+Oo1tNwUrm6Opzjkdner9VfcTc19/7XJ01bmKVdQ5mep+Rdnz3XNQz44ve3R5vntm9WPrYjexhog6J1Pdryj7a3X3HFRE2W+tw/M9MqMfWxeHKVjVOZ/qfkjdz1dz3zdS/fzdx3+zm29YAPaPggXABgULgI3DFCx1TkfZrygan7rf1oz77133OajOqc1ymIKlzumo+hVF41P325p1/73r3k+qOqc2TXWu4qZq371R7x3Xew/VvoSz5i97/+r3r35/qqN7zmu1NrGGyn33Rqh/La7clzCSzVmNiJaZ+v13b9+Sfb6jaFOwuu+rVp3jcb+/+/WrNflrWu4w37AA+KNgAbBBwQJgo03B6r7vnfIe1f2S1PdXv58j5MT28AwztClY3fe9U/Urqu6XpL6/+v0cJSfWPee1THWuAn+p7idVff8tyCNV5dRG7/8s9b6Ee8txtYk1HF11P6nq+0exg8qc2sj9M9T7Eu4px0XBaqK6X5H7/atzaurn7z7+Vdp8wwKACAULgA0KFgAbFKwmKvsVzeinpb4/sG0UrDaq+hXN6qelvj+wbVufHNbHjx/Lew8pjyzVvoEuR6T6/tn34z7+VdrEGj59+rT9/Pmzehgy2WlW7hvoIJq/6lhA9v24j38VCtYi2WnunlNSq36+7P33Pv5V+IYFwAYFC4ANChYAGxQsA10+eFap7heWHWP12LZNuy/lShSs5o6eU6ruFzaq+75/qn0pl6vOVdxEOazX19fqIabGH1Hv+xedf6/f02i/JlW/qKxZ/abU1O/n3tEtZxWxiTW8vr5unz9/rh7m0+OPplm971+m39RIvyZlv6isGf2m1H9N1O/nkU45qwg/EjZRHeqMmuNlzq/WeWwzniH7fNVr7z0oWABsULAA2KBgAbBBwdqBbE7pCPv6ZSMP1f3AMjmqSKecVYSCZS6bUzrKvn7ZnFZ1P7Bnc1SRdjmrSHWu4iabw9qSOZvoyI4/Et1fnXNS58BU98/miNT7AqqPWTkq+mG9UzaHVd2eI5vDyu7Ll6XOgSnvn80RqfcFVJuRo3Lph8WPhCbUWaLqLE7m/tmxu+e0Zry7R9eoXhv/RMECYIOCBcAGBQuADQpWE9X9iDrnlNRjn3WNStn5r15/oyhYTVT3I+qaU4rMmp/qflpZ2fmvXn/DqnMVN0fPYUWqcjKr+i1F18nm0J6dv2w/sFXnq99PF+SwBkXTlM1hRSpzMiv6LalzaJn5y/YDW3F+RqecVYSCNai6YFXvG5ed32h86udT7xtYfX5WkzIQ4hsWABsULAA2KFgAbFCwMETdb0mdA8pev/P5M7h8dKdgYYi635I6B5S9ftfzZ6nK0b1bda7ihhzWY9nxVVPnyKr7OWXvr86JPXt0y2kRaxgUTdPeYw1Z6hxZdT+n7P3VObGMTjktfiTEEup+S9X9nLL3z5y/915p/0TBAmCDggXABgULgA0KloEuHzwzuues1KKP5urzMzrM3w0Fq7m97wvYJWeldi/nlN2XUL0+uszf36pzFTfZHFa1bA6r676A6hzRqvGpr//se1t1qPe1XGU3Oaxq2RxW530B1TmiFeNTX1+dA8xS72u5Cj8SNlGddanMEa0YX/X1q+2hWG0bBQuAEQoWABsULAA2KFg7UJ1jUueAOly/MgeV1SlHlUXBMledY1LngLpcvyoHldUuR5VVnau4iXJM7kckOj/K0Tyb48rmrGY9f/frZw/VvoWjqvuFzWKTw3IXTXN2X75Mjiubs5rx/N2vn6Xct3BEdb+wWShYi2QLVvZ89fj2fv0s9fuPuDeAvOEbFgAbFCwANihYAGxQsJqo3LeO62vtYV/GLihYTVTtW8f1tfayL2MXbX5LCAAR/gsLgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgA0KFgAbFCwANihYAGxQsADYoGABsEHBAmCDggXABgULgI0/AXRl5K/bYs25AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTExVDIwOjQzOjIzKzAwOjAwj4NP3QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMi0xMVQyMDo0MzoyMyswMDowMP7e92EAAAAASUVORK5CYII=");return(c,m)=>(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("section",fd,[t.generated?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([s.value,"btnQrCode"])},[t.loading?(e.openBlock(),e.createElementBlock("div",hd,m[0]||(m[0]=[e.createElementVNode("div",{class:"loaderMFA"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:"uppercase bg-base-300 p-2 z-40",onClick:r}," Gerar QR "))],2)),e.createElementVNode("img",{class:e.normalizeClass([[s.value,t.generated?"rounded-md":"rounded-none"],""]),src:i.value,alt:"QRCode"},null,10,pd)])]))}};for(var qe=[],ga=0;ga<256;++ga)qe.push((ga+256).toString(16).slice(1));function yd(t,n=0){return(qe[t[n+0]]+qe[t[n+1]]+qe[t[n+2]]+qe[t[n+3]]+"-"+qe[t[n+4]]+qe[t[n+5]]+"-"+qe[t[n+6]]+qe[t[n+7]]+"-"+qe[t[n+8]]+qe[t[n+9]]+"-"+qe[t[n+10]]+qe[t[n+11]]+qe[t[n+12]]+qe[t[n+13]]+qe[t[n+14]]+qe[t[n+15]]).toLowerCase()}var Mn,kd=new Uint8Array(16);function xd(){if(!Mn&&(Mn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mn(kd)}var bd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lr={randomUUID:bd};function wd(t,n,a){if(lr.randomUUID&&!t)return lr.randomUUID();t=t||{};var o=t.random||(t.rng||xd)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,yd(o)}function cr(){const t=Rt(),n=async l=>{const c=t.attendants.find(m=>m.id===l);if(c)try{const m=await Ue.get(`${da}?attendant=${l}&page=1`);c.messages=m.data.results.reverse(),c.hasNextPage=m.data.next!==null,c.currentPage=2,c.internal_chat={channel_id:m.data.channel_id,unread:0}}catch(m){console.error("Erro ao buscar mensagens:",m)}},a=async l=>{const c=t.attendants.find(m=>m.id===l);if(!(!c||!c.hasNextPage))try{const m=await Ue.get(`${da}?attendant=${l}&page=${c.currentPage}`);c.messages=[...m.data.results.reverse(),...c.messages],c.hasNextPage=m.data.next!==null,c.currentPage++}catch(m){console.error("Erro ao carregar mais mensagens:",m)}},o=(l,c,m)=>{const u=l==null?void 0:l.message;if(!u)return;const h=t.attendants.find(f=>{var p;return((p=f.internal_chat)==null?void 0:p.channel_id)===u.channel_id});h?(h.messages=h.messages||[],h.messages.find(p=>p.id===u.id)||(h.messages.push(u),(!c||h.id!==m)&&(h.internal_chat.unread=(h.internal_chat.unread||0)+1))):console.error("Atendente não encontrado para o canal especificado.")},r=l=>{const c=t.attendants.find(m=>m.id===l);c&&(c.internal_chat.unread=0)},i=async(l,c,m,u=!1)=>{var d;const h=t.attendants.find(g=>g.id===l);if(!h||!((d=h.internal_chat)!=null&&d.channel_id))return;let f;u?f=c:f={type:"text",content:c};const p={id:wd(),content:f,created_at:new Date().toISOString(),sender:m};h.messages.push(p);try{await Ue.post(`${da}${h.internal_chat.channel_id}/message/`,{id:p.id,content:p.content})}catch(g){console.error("Erro ao enviar mensagem:",g)}},s=l=>{const c=t.attendants.find(m=>m.id===l);return c?c.hasNextPage:!1};return{attendants:e.computed(()=>t.attendants),count:e.computed(()=>t.count),fetchMessagesForAtendente:n,loadMessagesForAtendente:a,addMessageToAtendente:o,sendMessageToAtendente:i,hasNextPageForAtendente:s,resetUnreadMessages:r}}const Ed={class:"avatar bg-[#404857] shadow shadow-gray-900 dark:shadow-gray-700 dark:bg-gray-300 text-gray-100 dark:text-gray-500"},vd={key:0,style:{"padding-top":"0.5rem"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Cd=["src"],ya=Ce({__name:"Avatar",props:{url:{type:String}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",Ed,[t.url?(e.openBlock(),e.createElementBlock("img",{key:1,style:{"object-fit":"scale-down"},src:t.url},null,8,Cd)):(e.openBlock(),e.createElementBlock("svg",vd,a[0]||(a[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"},null,-1)])))]))}},[["__scopeId","data-v-1d00f344"]]),Sd={class:"attendants-container"},Bd={class:"atendentes-list bg-base-300"},Vd={key:0,class:"empty-message bg-base-200"},Md=["onClick"],Nd={class:"atendente-main"},Ad={class:"atendente-name"},Td={class:"flex items-center gap-4"},Dd={key:0,class:"message-indicator"},Ld={key:0,class:"chat-footer bg-base-200"},dr=Ce({__name:"ChatList",props:{atendentes:{type:Array,required:!0},attendant:{required:!0},mobile:{type:Boolean,default:!1}},emits:["atendenteSelecionado"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=c=>{o("atendenteSelecionado",c)},s=c=>{switch(c){case"Busy":return"bg-red-500";case"Online":return"bg-green-500";case"Away":return"bg-yellow-500";case"Offline":return"bg-gray-500";default:return"bg-purple-500"}},l=e.computed(()=>r.value?a.atendentes.filter(c=>c.name.toLowerCase().includes(r.value.toLowerCase())&&c.id!==a.attendant.id):a.atendentes.filter(c=>c.id!==a.attendant.id));return(c,m)=>(e.openBlock(),e.createElementBlock("div",Sd,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":m[0]||(m[0]=u=>r.value=u),class:e.normalizeClass(t.mobile?"search-input-mobile bg-base-300 border-b border-base-200":"search-input bg-base-300 border-b border-base-200"),placeholder:"Pesquise entre os atendentes..."},null,2),[[e.vModelText,r.value]]),e.createElementVNode("ul",Bd,[l.value.length===0?(e.openBlock(),e.createElementBlock("li",Vd,e.toDisplayString(t.atendentes.length===0?"Não há atendentes disponíveis":"Não há atendentes com esse nome"),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("li",{key:u.id,onClick:h=>i(u),class:e.normalizeClass([["atendente-item",u.isMoved?"moved":""],"border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])},[e.createElementVNode("main",Nd,[e.createVNode(ya,{url:u.photo},null,8,["url"]),e.createElementVNode("span",Ad,e.toDisplayString(u.name),1)]),e.createElementVNode("footer",Td,[u.internal_chat.unread>0?(e.openBlock(),e.createElementBlock("span",Dd,e.toDisplayString(u.internal_chat.unread),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",s(u.login_status)])},null,2)]),m[1]||(m[1]=e.createElementVNode("div",{class:"hover-action"},"Conversar",-1))],10,Md))),128))]),t.mobile?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",Ld))]))}},[["__scopeId","data-v-9be33af9"]]);function Fd(t,n=null){if(!t)return!1;const a=t.getBoundingClientRect(),o=n?n.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return a.bottom>=o.top&&a.top<=o.bottom&&a.right>=o.left&&a.left<=o.right}async function $d(t){return t?(await e.nextTick(),t.value instanceof HTMLElement?t.value:t.value?document.querySelector(t.value):null):null}function Pd(t){let n=`0px 0px ${t.distance}px 0px`;t.top&&(n=`${t.distance}px 0px 0px 0px`);const a=new IntersectionObserver(o=>{o[0].isIntersecting&&(t.firstload&&t.emit(),t.firstload=!0)},{root:t.parentEl,rootMargin:n});return t.infiniteLoading.value&&a.observe(t.infiniteLoading.value),a}async function ur(t,n){if(await e.nextTick(),!t.top)return;const a=t.parentEl||document.documentElement;a.scrollTop=a.scrollHeight-n}const mr=(t,n)=>{const a=t.__vccOpts||t;for(const[o,r]of n)a[o]=r;return a},Od={},_d=t=>(e.pushScopeId("data-v-d3e37633"),t=t(),e.popScopeId(),t),Rd={class:"container"},Hd=_d(()=>e.createElementVNode("div",{class:"spinner"},null,-1)),zd=[Hd];function jd(t,n){return e.openBlock(),e.createElementBlock("div",Rd,zd)}const Gd=mr(Od,[["render",jd],["__scopeId","data-v-d3e37633"]]),qd={class:"state-error"},Ht=mr(e.defineComponent({__name:"InfiniteLoading",props:{top:{type:Boolean,default:!1},target:{},distance:{default:0},identifier:{},firstload:{type:Boolean,default:!0},slots:{}},emits:["infinite"],setup(t,{emit:n}){const a=t;let o=null,r=0;const i=e.ref(null),s=e.ref(""),{top:l,firstload:c,distance:m}=a,{identifier:u,target:h}=e.toRefs(a),f={infiniteLoading:i,top:l,firstload:c,distance:m,parentEl:null,emit(){r=(f.parentEl||document.documentElement).scrollHeight,p.loading(),n("infinite",p)}},p={loading(){s.value="loading"},async loaded(){s.value="loaded",await ur(f,r),Fd(i.value,f.parentEl)&&f.emit()},async complete(){s.value="complete",await ur(f,r),o==null||o.disconnect()},error(){s.value="error"}};function d(){o==null||o.disconnect(),o=Pd(f)}return e.watch(u,d),e.onMounted(async()=>{f.parentEl=await $d(h),d()}),e.onUnmounted(()=>o==null?void 0:o.disconnect()),(g,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"infiniteLoading",ref:i,class:"v3-infinite-loading"},[e.withDirectives(e.createElementVNode("div",null,[e.renderSlot(g.$slots,"spinner",{},()=>[e.createVNode(Gd)],!0)],512),[[e.vShow,s.value=="loading"]]),s.value=="complete"?e.renderSlot(g.$slots,"complete",{key:0},()=>{var b;return[e.createElementVNode("span",null,e.toDisplayString(((b=g.slots)==null?void 0:b.complete)||"No more results!"),1)]},!0):e.createCommentVNode("",!0),s.value=="error"?e.renderSlot(g.$slots,"error",{key:1,retry:f.emit},()=>{var b;return[e.createElementVNode("span",qd,[e.createElementVNode("span",null,e.toDisplayString(((b=g.slots)==null?void 0:b.error)||"Oops something went wrong!"),1),e.createElementVNode("button",{class:"retry",onClick:x[0]||(x[0]=(...k)=>f.emit&&f.emit(...k))},"retry")])]},!0):e.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4bdee133"]]);function Id(t,n,a){const o=nt(t,a==null?void 0:a.in);return isNaN(n)?et(t,NaN):(o.setDate(o.getDate()+n),o)}function Nn(t,n){return Tt(t,{...n,weekStartsOn:1})}function fr(t,n){const a=nt(t,n==null?void 0:n.in),o=a.getFullYear(),r=et(a,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=Nn(r),s=et(a,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const l=Nn(s);return a.getTime()>=i.getTime()?o+1:a.getTime()>=l.getTime()?o:o-1}function hr(t){const n=nt(t),a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),+t-+a}function An(t,n){const a=nt(t,n==null?void 0:n.in);return a.setHours(0,0,0,0),a}function Wd(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n),i=An(o),s=An(r),l=+i-hr(i),c=+s-hr(s);return Math.round((l-c)/dl)}function Ud(t,n){const a=fr(t,n),o=et(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),Nn(o)}function ka(t){return et(t,Date.now())}function pr(t,n,a){const[o,r]=ma(a==null?void 0:a.in,t,n);return+An(o)==+An(r)}function Zd(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Yd(t){return!(!Zd(t)&&typeof t!="number"||isNaN(+nt(t)))}function Xd(t,n){const a=nt(t,n==null?void 0:n.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function Kd(t,n){const a=nt(t,n==null?void 0:n.in);return Wd(a,Xd(a))+1}function Qd(t,n){const a=nt(t,n==null?void 0:n.in),o=+Nn(a)-+Ud(a);return Math.round(o/Xo)+1}function gr(t,n){var u,h,f,p;const a=nt(t,n==null?void 0:n.in),o=a.getFullYear(),r=Sn(),i=(n==null?void 0:n.firstWeekContainsDate)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=et((n==null?void 0:n.in)||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const l=Tt(s,n),c=et((n==null?void 0:n.in)||t,0);c.setFullYear(o,0,i),c.setHours(0,0,0,0);const m=Tt(c,n);return+a>=+l?o+1:+a>=+m?o:o-1}function Jd(t,n){var l,c,m,u;const a=Sn(),o=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(m=a.locale)==null?void 0:m.options)==null?void 0:u.firstWeekContainsDate)??1,r=gr(t,n),i=et((n==null?void 0:n.in)||t,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Tt(i,n)}function e3(t,n){const a=nt(t,n==null?void 0:n.in),o=+Tt(a,n)-+Jd(a,n);return Math.round(o/Xo)+1}function Le(t,n){const a=t<0?"-":"",o=Math.abs(t).toString().padStart(n,"0");return a+o}const yt={y(t,n){const a=t.getFullYear(),o=a>0?a:1-a;return Le(n==="yy"?o%100:o,n.length)},M(t,n){const a=t.getMonth();return n==="M"?String(a+1):Le(a+1,2)},d(t,n){return Le(t.getDate(),n.length)},a(t,n){const a=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,n){return Le(t.getHours()%12||12,n.length)},H(t,n){return Le(t.getHours(),n.length)},m(t,n){return Le(t.getMinutes(),n.length)},s(t,n){return Le(t.getSeconds(),n.length)},S(t,n){const a=n.length,o=t.getMilliseconds(),r=Math.trunc(o*Math.pow(10,a-3));return Le(r,n.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yr={G:function(t,n,a){const o=t.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){const o=t.getFullYear(),r=o>0?o:1-o;return a.ordinalNumber(r,{unit:"year"})}return yt.y(t,n)},Y:function(t,n,a,o){const r=gr(t,o),i=r>0?r:1-r;if(n==="YY"){const s=i%100;return Le(s,2)}return n==="Yo"?a.ordinalNumber(i,{unit:"year"}):Le(i,n.length)},R:function(t,n){const a=fr(t);return Le(a,n.length)},u:function(t,n){const a=t.getFullYear();return Le(a,n.length)},Q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Le(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,a){const o=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Le(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,a){const o=t.getMonth();switch(n){case"M":case"MM":return yt.M(t,n);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,a){const o=t.getMonth();switch(n){case"L":return String(o+1);case"LL":return Le(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,a,o){const r=e3(t,o);return n==="wo"?a.ordinalNumber(r,{unit:"week"}):Le(r,n.length)},I:function(t,n,a){const o=Qd(t);return n==="Io"?a.ordinalNumber(o,{unit:"week"}):Le(o,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):yt.d(t,n)},D:function(t,n,a){const o=Kd(t);return n==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):Le(o,n.length)},E:function(t,n,a){const o=t.getDay();switch(n){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return Le(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,n,a,o){const r=t.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return Le(i,n.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,n,a){const o=t.getDay(),r=o===0?7:o;switch(n){case"i":return String(r);case"ii":return Le(r,n.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,a){const r=t.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,a){const o=t.getHours();let r;switch(o===12?r=zt.noon:o===0?r=zt.midnight:r=o/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,a){const o=t.getHours();let r;switch(o>=17?r=zt.evening:o>=12?r=zt.afternoon:o>=4?r=zt.morning:r=zt.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){let o=t.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return yt.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):yt.H(t,n)},K:function(t,n,a){const o=t.getHours()%12;return n==="Ko"?a.ordinalNumber(o,{unit:"hour"}):Le(o,n.length)},k:function(t,n,a){let o=t.getHours();return o===0&&(o=24),n==="ko"?a.ordinalNumber(o,{unit:"hour"}):Le(o,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):yt.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):yt.s(t,n)},S:function(t,n){return yt.S(t,n)},X:function(t,n,a){const o=t.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return xr(o);case"XXXX":case"XX":return Dt(o);case"XXXXX":case"XXX":default:return Dt(o,":")}},x:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"x":return xr(o);case"xxxx":case"xx":return Dt(o);case"xxxxx":case"xxx":default:return Dt(o,":")}},O:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+kr(o,":");case"OOOO":default:return"GMT"+Dt(o,":")}},z:function(t,n,a){const o=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+kr(o,":");case"zzzz":default:return"GMT"+Dt(o,":")}},t:function(t,n,a){const o=Math.trunc(+t/1e3);return Le(o,n.length)},T:function(t,n,a){return Le(+t,n.length)}};function kr(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Math.trunc(o/60),i=o%60;return i===0?a+String(r):a+String(r)+n+Le(i,2)}function xr(t,n){return t%60===0?(t>0?"-":"+")+Le(Math.abs(t)/60,2):Dt(t,n)}function Dt(t,n=""){const a=t>0?"-":"+",o=Math.abs(t),r=Le(Math.trunc(o/60),2),i=Le(o%60,2);return a+r+n+i}const br=(t,n)=>{switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},wr=(t,n)=>{switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},t3={p:wr,P:(t,n)=>{const a=t.match(/(P+)(p+)?/)||[],o=a[1],r=a[2];if(!r)return br(t,n);let i;switch(o){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",br(o,n)).replace("{{time}}",wr(r,n))}},n3=/^D+$/,a3=/^Y+$/,o3=["D","DD","YY","YYYY"];function r3(t){return n3.test(t)}function i3(t){return a3.test(t)}function s3(t,n,a){const o=l3(t,n,a);if(console.warn(o),o3.includes(t))throw new RangeError(o)}function l3(t,n,a){const o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const c3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u3=/^'([^]*?)'?$/,m3=/''/g,f3=/[a-zA-Z]/;function Er(t,n,a){var u,h,f,p,d,g,x,b;const o=Sn(),r=(a==null?void 0:a.locale)??o.locale??zl,i=(a==null?void 0:a.firstWeekContainsDate)??((h=(u=a==null?void 0:a.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(f=o.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=(a==null?void 0:a.weekStartsOn)??((g=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:g.weekStartsOn)??o.weekStartsOn??((b=(x=o.locale)==null?void 0:x.options)==null?void 0:b.weekStartsOn)??0,l=nt(t,a==null?void 0:a.in);if(!Yd(l))throw new RangeError("Invalid time value");let c=n.match(d3).map(k=>{const y=k[0];if(y==="p"||y==="P"){const v=t3[y];return v(k,r.formatLong)}return k}).join("").match(c3).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const y=k[0];if(y==="'")return{isToken:!1,value:h3(k)};if(yr[y])return{isToken:!0,value:k};if(y.match(f3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:k}});r.localize.preprocessor&&(c=r.localize.preprocessor(l,c));const m={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return c.map(k=>{if(!k.isToken)return k.value;const y=k.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&i3(y)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&r3(y))&&s3(y,n,String(t));const v=yr[y[0]];return v(l,y,r.localize,m)}).join("")}function h3(t){const n=t.match(u3);return n?n[1].replace(m3,"'"):t}function p3(t,n){return ml(et(t,t),ka(t),n)}function g3(t,n){return pr(et(t,t),ka(t))}function y3(t,n,a){return Id(t,-1,a)}function k3(t,n){return pr(et(t,t),y3(ka(t)))}/*! License details at fancyapps.com/license */const je=t=>typeof t=="string";/*! License details at fancyapps.com/license */const jt=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t;/*! License details at fancyapps.com/license */const x3=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const n=t.scrollHeight>t.clientHeight,a=window.getComputedStyle(t).overflowY,o=a.indexOf("hidden")!==-1,r=a.indexOf("visible")!==-1;return n&&!o&&!r},en=function(t,n=void 0){return!t||t===document.body||n&&t===n?null:x3(t)?t:en(t.parentElement,n)};/*! License details at fancyapps.com/license */const kt=function(t){var n=new DOMParser().parseFromString(t,"text/html").body;if(n.childElementCount>1){for(var a=document.createElement("div");n.firstChild;)a.appendChild(n.firstChild);return a}let o=n.firstChild;return!o||o instanceof HTMLElement?o:((a=document.createElement("div")).appendChild(o),a)};/*! License details at fancyapps.com/license */const Te=function(t=0,n=0,a=0){return Math.max(Math.min(n,a),t)};/*! License details at fancyapps.com/license */const Ze=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]";/*! License details at fancyapps.com/license */function vr(t){return Ze(t)||Array.isArray(t)}function xa(t,n){const a=Object.keys(t),o=Object.keys(n);return a.length===o.length&&a.every(r=>{const i=t[r],s=n[r];return typeof i=="function"?`${i}`==`${s}`:vr(i)&&vr(s)?xa(i,s):i===s})}/*! License details at fancyapps.com/license */const Cr=function(t){for(const n of Tn)n.getState()===Ye.Running&&n.tick(ba?t-ba:0);ba=t,qt=window.requestAnimationFrame(Cr)};var Ye,xt,Gt;(function(t){t[t.Initializing=0]="Initializing",t[t.Running=1]="Running",t[t.Paused=2]="Paused",t[t.Completed=3]="Completed",t[t.Destroyed=4]="Destroyed"})(Ye||(Ye={})),function(t){t[t.Spring=0]="Spring",t[t.Ease=1]="Ease"}(xt||(xt={})),function(t){t[t.Loop=0]="Loop",t[t.Reverse=1]="Reverse"}(Gt||(Gt={}));const Tn=new Set;let qt=null,ba=0;function bt(){let t=Ye.Initializing,n=xt.Ease,a=0,o=0,r=bt.Easings.Linear,i=500,s=0,l=0,c=0,m=0,u=1/0,h=.01,f=.01,p=!1,d={},g=null,x={},b={},k={},y=0,v=0,C=Gt.Loop,L=bt.Easings.Linear;const P=new Map;function E(N,...M){for(const H of P.get(N)||[])H(...M)}function w(N){return o=0,N?g=setTimeout(()=>{A()},N):A(),B}function A(){t=Ye.Running,E("start",x,b)}function S(){if(t=Ye.Completed,k={},E("end",x),t===Ye.Completed)if(a<y){if(a++,C===Gt.Reverse){const N=Object.assign({},d);d=Object.assign({},b),b=N}w(v)}else a=0;return B}const B={getState:function(){return t},easing:function(N){return r=N,n=xt.Ease,k={},B},duration:function(N){return i=N,B},spring:function(N={}){n=xt.Spring;const M={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:H,mass:ie,tension:Q,friction:fe,restDelta:F,restSpeed:D,maxSpeed:j,clamp:re}=Object.assign(Object.assign({},M),N);return s=H,l=ie,c=Q,m=fe,f=F,h=D,u=j,p=re,k={},B},isRunning:function(){return t===Ye.Running},isSpring:function(){return n===xt.Spring},from:function(N){return x=Object.assign({},N),B},to:function(N){return b=N,B},repeat:function(N,M=0,H=Gt.Loop,ie){return y=N,v=M,C=H,L=ie||r,B},on:function(N,M){var H,ie;return H=N,ie=M,P.set(H,[...P.get(H)||[],ie]),B},off:function(N,M){var H,ie;return H=N,ie=M,P.has(H)&&P.set(H,P.get(H).filter(Q=>Q!==ie)),B},start:function(N){return t=Ye.Initializing,d=Object.assign({},x),xa(d,b)||(Tn.add(this),qt||(qt=window.requestAnimationFrame(Cr)),w(N)),B},pause:function(){return g&&(clearTimeout(g),g=null),t===Ye.Running&&(t=Ye.Paused,E("pause",x)),B},end:S,tick:function(N){N>50&&(N=50),o+=N;let M=0,H=!1;if(t!==Ye.Running)return B;if(n===xt.Ease){M=Te(0,o/i,1),H=M===1;const Q=C===Gt.Reverse?L:r;for(const fe in x)x[fe]=d[fe]+(b[fe]-d[fe])*Q(M)}if(n===xt.Spring){const Q=.001*N;let fe=0;for(const F in x){const D=b[F];let j=x[F];if(typeof D!="number"||isNaN(D)||typeof j!="number"||isNaN(j))continue;if(Math.abs(D-j)<=f){x[F]=D,k[F]=0;continue}k[F]||(typeof s=="object"&&typeof s[F]=="number"?k[F]=s[F]:k[F]=typeof s=="number"?s:0);let re=k[F];re=Te(-1*Math.abs(u),re,Math.abs(u));const se=re*l*m;re+=((j>D?-1:1)*(Math.abs(D-j)*c)-se)/l*Q,j+=re*Q;const be=x[F]>D?j<D:j>D;let Se=Math.abs(re)<h&&Math.abs(D-j)<=f;p&&be&&(Se=!0),Se?(j=D,re=0):fe++,x[F]=j,k[F]=re}H=!fe}const ie=Object.assign({},b);return E("step",x,d,b,M),H&&t===Ye.Running&&xa(b,ie)&&(t=Ye.Completed,S()),B},getStartValues:function(){return d},getCurrentValues:function(){return x},getCurrentVelocities:function(){return k},getEndValues:function(){return b},destroy:function(){t=Ye.Destroyed,g&&(clearTimeout(g),g=null),d=x=b={},Tn.delete(this)}};return B}bt.destroy=()=>{for(const t of Tn)t.destroy();qt&&(cancelAnimationFrame(qt),qt=null)},bt.Easings={Linear:function(t){return t},EaseIn:function(t){return t===0?0:Math.pow(2,10*t-10)},EaseOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},EaseInOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};/*! License details at fancyapps.com/license */function wa(t){const n=[],a=typeof TouchEvent<"u"&&t instanceof TouchEvent?t.touches:t instanceof MouseEvent&&t.type!=="mouseup"?[t]:[];for(const o of a)n.push({x:o.clientX,y:o.clientY,ts:Date.now()});return n}function Sr(t){const n=[],a=typeof TouchEvent<"u"&&t instanceof TouchEvent?t.changedTouches:t instanceof MouseEvent?[t]:[];for(const o of a)n.push({x:o.clientX,y:o.clientY,ts:Date.now()});return n}function wt(t){const n=t[0],a=t[1]||n;return{x:(n.x+a.x)/2,y:(n.y+a.y)/2,ts:a.ts}}function Dn(t){const n=t[0],a=t[1]||t[0];return n&&a?-1*Math.sqrt((a.x-n.x)*(a.x-n.x)+(a.y-n.y)*(a.y-n.y)):0}const Br=t=>{t.cancelable&&t.preventDefault()},Et={passive:!1},b3={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let Ea=!1,tn=!0;const nn=(t,n)=>{let a,o,r,i=Object.assign(Object.assign({},b3),n),s=[],l=[],c=[],m=!1,u=!1,h=!1,f=0,p=0,d=0,g=0,x=0,b=0,k=0,y=0,v=0,C=[],L=0,P=0;const E=new Map;function w(F){const D=Dn(l),j=Dn(c),re=D&&j?D/j:0,se=Math.abs(k)>Math.abs(y)?k:y,be={srcEvent:a,isPanRecognized:m,isSwipeRecognized:u,firstTouch:s,previousTouch:c,currentTouch:l,deltaX:d,deltaY:g,offsetX:x,offsetY:b,velocityX:k,velocityY:y,velocity:se,angle:v,axis:r,scale:re,center:o};for(const Se of E.get(F)||[])Se(be)}function A(F){const D=Date.now();C=C.filter(j=>!j.ts||j.ts>D-100),F&&C.push(F)}function S(){if(k=0,y=0,C.length>3){const F=C[0],D=C[C.length-1];if(F&&D){const j=D.x-F.x,re=D.y-F.y,se=F.ts&&D.ts?D.ts-F.ts:0;se>0&&(k=Math.abs(j)>3?j/(se/30):0,y=Math.abs(re)>3?re/(se/30):0)}}}function B(F){if(F instanceof MouseEvent){if(Ea)return}else Ea=!0;const D=F.composedPath()[0],j=i.ignore.join(",");if(D.matches(j)||D.closest(j)||typeof MouseEvent<"u"&&F instanceof MouseEvent&&(!F.buttons||F.button!==0))return;F instanceof MouseEvent&&Br(F);const re=Date.now(),se=re-(f||re);h=se>0&&se<=250,f=re,clearTimeout(L),a=F,F instanceof MouseEvent&&(window.addEventListener("mousemove",N),window.addEventListener("mouseup",M)),window.addEventListener("blur",H),l=wa(F),s=[...l],c=[],p=l.length,o=wt(l),p===1&&(m=!1,u=!1),p&&A(wt(l)),w("start")}function N(F){var D;if(!s.length||F.defaultPrevented)return;a=F,c=[...l],l=wa(F),p=l.length,o=wt(l);const j=o,re=wt(c);if(d=j.x-re.x,g=j.y-re.y,A(j),S(),w("move"),l.length>1){const se=Dn(l),be=Dn(c);Math.abs(se-be)>=.1&&w("pinch")}if(!m&&s.length){const se=wt(s);x=j.x-se.x,b=j.y-se.y,m=Math.abs(x)>i.panThreshold||Math.abs(b)>i.panThreshold,m&&(tn=!1,clearTimeout(P),P=0,v=Math.abs(180*Math.atan2(b,x)/Math.PI),r=v>45&&v<135?"y":"x",s=[...l],c=[...l],(D=window.getSelection())===null||D===void 0||D.removeAllRanges(),w("panstart"))}m&&(d||g)&&w("pan")}function M(F){if(a=F,!s.length)return;const D=wa(F),j=Sr(F);if(p=D.length,o=wt(j),j.length&&A(wt(j)),S(),c=[...l],l=[...D],s=[...D],D.length>0)w("end"),m=!1,u=!1,C=[];else{const re=i.swipeThreshold;(Math.abs(k)>re||Math.abs(y)>re)&&(u=!0),m&&w("panend"),u&&w("swipe"),m||u||(w("tap"),h?w("doubleTap"):L=setTimeout(function(){w("singleTap")},250)),w("end"),ie()}}function H(){clearTimeout(L),ie(),m&&w("panend"),w("end")}function ie(){m=!1,u=!1,h=!1,p=0,C=[],l=[],c=[],s=[],d=0,g=0,x=0,b=0,k=0,y=0,v=0,r=void 0,window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",M),window.removeEventListener("blur",H),tn||P||(P=setTimeout(()=>{tn=!0,P=0},100))}function Q(F){const D=F.target;Ea=!1,D&&!F.defaultPrevented&&(tn||(Br(F),F.stopPropagation()))}const fe={init:function(){if(t)return t.addEventListener("click",Q,Et),t.addEventListener("mousedown",B,Et),t.addEventListener("touchstart",B,Et),t.addEventListener("touchmove",N,Et),t.addEventListener("touchend",M),t.addEventListener("touchcancel",M),fe},on:function(F,D){return function(j,re){E.set(j,[...E.get(j)||[],re])}(F,D),fe},off:function(F,D){return E.has(F)&&E.set(F,E.get(F).filter(j=>j!==D)),fe},isPointerDown:()=>p>0,destroy:function(){clearTimeout(L),clearTimeout(P),P=0,t&&(t.removeEventListener("click",Q,Et),t.removeEventListener("mousedown",B,Et),t.removeEventListener("touchstart",B,Et),t.removeEventListener("touchmove",N,Et),t.removeEventListener("touchend",M),t.removeEventListener("touchcancel",M)),t=null,ie()}};return fe};nn.isClickAllowed=()=>tn;/*! License details at fancyapps.com/license */const va={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset"};/*! License details at fancyapps.com/license */const De=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.add(a)})};/*! License details at fancyapps.com/license */const Ln=t=>{t.cancelable&&t.preventDefault()},Xe=(t,n=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*n)/n);var me,Vr;(function(t){t.Reset="reset",t.Zoom="zoom",t.ZoomIn="zoomIn",t.ZoomOut="zoomOut",t.ZoomTo="zoomTo",t.ToggleCover="toggleCover",t.ToggleFull="toggleFull",t.ToggleMax="toggleMax",t.IterateZoom="iterateZoom",t.Pan="pan",t.Swipe="swipe",t.Move="move",t.MoveLeft="moveLeft",t.MoveRight="moveRight",t.MoveUp="moveUp",t.MoveDown="moveDown",t.RotateCCW="rotateCCW",t.RotateCW="rotateCW",t.FlipX="flipX",t.FlipY="flipY"})(me||(me={})),function(t){t.Cover="cover",t.Full="full",t.Max="max"}(Vr||(Vr={}));const at={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Ca={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:me.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:va,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:me.Zoom,width:"auto"};let Fn,Mr=0,Nr=0,$n=0;const Sa=(t,n={},a={})=>{let o,r,i,s,l,c,m,u=0,h=Object.assign(Object.assign({},Ca),n),f={},p=Object.assign({},at),d=Object.assign({},at);const g=[];function x(V){let $=h[V];return $&&typeof $=="function"?$(J):$}const b=new Map;function k(V,...$){const q=b.get(V)||[];h.on&&q.push(h.on[V]);for(const z of q)z&&z instanceof Function&&z(J,...$);V!=="*"&&k("*",V,...$)}function y(V){if(u!==3)return;const $=V.target;if(en($))return;const q=Date.now(),z=[-V.deltaX||0,-V.deltaY||0,-V.detail||0].reduce(function(we,ke){return Math.abs(ke)>Math.abs(we)?ke:we}),X=Te(-1,z,1);k("wheel",V,X);const U=x("wheelAction");if(!U||V.defaultPrevented)return;const ee=d.scale;let de=ee*(X>0?1.5:.5);if(U===me.Zoom){const we=Math.abs(V.deltaY)<100&&Math.abs(V.deltaX)<100;if(q-Nr<(we?200:45))return void Ln(V);Nr=q;const ke=B(),pe=ie();if(Xe(de)<Xe(ke)&&Xe(ee)<=Xe(ke)?($n+=Math.abs(X),de=ke):Xe(de)>Xe(pe)&&Xe(ee)>=Xe(pe)?($n+=Math.abs(X),de=pe):($n=0,de=Te(ke,de,pe)),$n>7)return}switch(Ln(V),U){case me.Pan:D(U,{srcEvent:V,deltaX:2*-V.deltaX,deltaY:2*-V.deltaY});break;case me.Zoom:D(me.ZoomTo,{srcEvent:V,scale:de,center:{x:V.clientX,y:V.clientY}});break;default:D(U,{srcEvent:V})}}function v(V){var $,q;const z=V.composedPath()[0];if(!nn.isClickAllowed()||!jt(z)||V.defaultPrevented||!(t!=null&&t.contains(z))||z.hasAttribute("disabled")||z.hasAttribute("aria-disabled"))return;const X=z.closest("[data-panzoom-action]"),U=($=X==null?void 0:X.dataset)===null||$===void 0?void 0:$.panzoomAction,ee=((q=X==null?void 0:X.dataset)===null||q===void 0?void 0:q.panzoomValue)||"";if(U){switch(U){case me.ZoomTo:case me.ZoomIn:case me.ZoomOut:D(U,{scale:parseFloat(ee||"")||void 0});break;case me.MoveLeft:case me.MoveRight:D(U,{deltaX:parseFloat(ee||"")||void 0});break;case me.MoveUp:case me.MoveDown:D(U,{deltaY:parseFloat(ee||"")||void 0});break;default:D(U)}return}if(!(o!=null&&o.contains(z)))return;const de={srcEvent:V};if(D(x("clickAction"),de),x("dblClickAction")){const we=Date.now(),ke=we-(Mr||we);Mr=we,ke>0&&ke<=250?(Fn&&(clearTimeout(Fn),Fn=void 0),D(x("dblClickAction"),de)):Fn=setTimeout(()=>{D(x("singleClickAction"),de)},250)}}function C(V){if(m=V,!w()||u!==3||p.scale<=1||d.scale<=1||((o==null?void 0:o.dataset.animationName)||"").indexOf("zoom")>-1)return;const $=A(d.scale);if(!$)return;const{x:q,y:z}=$;D(me.Pan,{deltaX:q-d.x,deltaY:z-d.y})}function L(){var V;if(t&&((V=t.querySelector(".f-spinner"))===null||V===void 0||V.remove(),t.classList.remove("is-loading")),!t||!o)return;if(r instanceof HTMLImageElement&&(!r.complete||!r.naturalWidth))return u=2,o==null||o.classList.add("has-error"),void k("error");k("loaded");const{width:$,height:q}=E();r&&(r.setAttribute("width",$+""),r.setAttribute("height",q+"")),o&&(o.classList.remove("has-error"),o.setAttribute("width",$+""),o.setAttribute("height",q+""),o.style.aspectRatio=`${$/q||""}`),l=bt().on("start",(X,U)=>{d=Object.assign(Object.assign({},at),U),U.angle!==void 0&&(U.angle=90*Math.round(U.angle/90)),U.flipX!==void 0&&(U.flipX=U.flipX>0?1:-1),U.flipY!==void 0&&(U.flipY=U.flipY>0?1:-1),F(),k("animationStart")}).on("pause",X=>{d=Object.assign(Object.assign({},at),X)}).on("step",X=>{if(u!==3||!l)return;if(!t||!t.parentElement)return void l.end();if(p=Object.assign(Object.assign({},at),X),w()||!x("bounds")||(s==null?void 0:s.isPointerDown())||d.scale>p.scale||d.scale<N())return void j();const U=Q(d.scale);let ee=!1,de=!1,we=!1,ke=!1;p.x<U.x[0]&&(ee=!0),p.x>U.x[1]&&(de=!0),p.y<U.y[0]&&(ke=!0),p.y>U.y[1]&&(we=!0);let pe=!1,ge=!1,_=!1,K=!1;d.x<U.x[0]&&(pe=!0),d.x>U.x[1]&&(ge=!0),d.y<U.y[0]&&(K=!0),d.y>U.y[1]&&(_=!0);let ae=!1;(de&&ge||ee&&pe)&&(d.x=Te(U.x[0],d.x,U.x[1]),ae=!0),(we&&_||ke&&K)&&(d.y=Te(U.y[0],d.y,U.y[1]),ae=!0),ae&&l.spring({tension:94,friction:17,maxSpeed:555*d.scale,restDelta:.1,restSpeed:.1,velocity:l.getCurrentVelocities()}).from(p).to(d).start(),j()}).on("end",()=>{fe(),l!=null&&l.isRunning()||(F(),k("animationEnd"))}),function(){const X=x("gestures");X&&i&&r&&(s=nn(i,X).on("start",U=>{if(!l)return;const ee=U.srcEvent;w()||((p.scale>1||U.currentTouch.length>1)&&(ee==null||ee.stopPropagation(),l.pause()),U.currentTouch.length===1&&k("touchStart"))}).on("move",U=>{w()||(d.scale!==1||U.currentTouch.length>1)&&(U.srcEvent.preventDefault(),U.srcEvent.stopPropagation())}).on("pan",U=>{if(w())return;const ee=U.srcEvent;(d.scale!==1||U.currentTouch.length>1)&&(Ln(ee),D(me.Pan,U))}).on("swipe",U=>{w()||d.scale>1&&D(me.Swipe,U)}).on("tap",U=>{k("click",U)}).on("singleTap",U=>{k("singleClick",U)}).on("doubleTap",U=>{k("dblClick",U)}).on("pinch",U=>{w()||(U.scale>N()?D(me.ZoomIn,U):U.scale<N()?D(me.ZoomOut,U):D(me.Pan,U))}).on("end",U=>{w()||(U.currentTouch.length?(U.srcEvent.stopPropagation(),Ln(U.srcEvent),l==null||l.end()):(F(),fe(),k("touchEnd")))}).init())}(),i&&(i.addEventListener("wheel",y,{passive:!1}),g.push(()=>{i==null||i.removeEventListener("wheel",y,{passive:!1})})),t==null||t.addEventListener("click",v),document==null||document.addEventListener("mousemove",C),g.push(()=>{t==null||t.removeEventListener("click",v),document==null||document.removeEventListener("mousemove",C)});const z=Object.assign(Object.assign({},x("startPos")||{}),{scale:N()});if(p=Object.assign(Object.assign({},at),z),d=Object.assign(Object.assign({},at),z),w()){const X=A(d.scale);if(X){const{x:U,y:ee}=X;p.x=U,p.y=ee,d.x=U,d.y=ee}}u=3,j(),F(),k("ready"),requestAnimationFrame(()=>{i&&(i.style.visibility="")})}function P(){const V={top:0,left:0,width:0,height:0};if(o){const $=o.getBoundingClientRect();d.angle%180==90?(V.top=$.top+.5*$.height-.5*$.width,V.left=$.left+.5*$.width-.5*$.height,V.width=$.height,V.height=$.width):(V.top=$.top,V.left=$.left,V.width=$.width,V.height=$.height)}return V}function E(){let V=x("width"),$=x("height");if(r&&V==="auto"){const q=r.getAttribute("width");V=q?parseFloat(q+""):r.dataset.width!==void 0?parseFloat(r.dataset.width+""):i instanceof HTMLImageElement?i.naturalWidth:r instanceof HTMLImageElement?r.naturalWidth:r.getBoundingClientRect().width}else V=je(V)?parseFloat(V):V;if(r&&$==="auto"){const q=r.getAttribute("height");$=q?parseFloat(q+""):r.dataset.height!==void 0?parseFloat(r.dataset.height+""):i instanceof HTMLImageElement?i.naturalHeight:r instanceof HTMLImageElement?r.naturalHeight:r.getBoundingClientRect().height}else $=je($)?parseFloat($):$;return{width:V,height:$}}function w(){return x("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function A(V){const $=m||x("event"),q=o==null?void 0:o.getBoundingClientRect();if(!$||!q||V<=1)return{x:0,y:0};const z=($.clientX||0)-q.left,X=($.clientY||0)-q.top,U=q.width,ee=q.height,de=Q(V);if(V>1){const _=x("mouseMoveFactor");_>1&&(V*=_)}let we=U*V,ke=ee*V,pe=.5*(we-U)-z/U*100/100*(we-U),ge=.5*(ke-ee)-X/ee*100/100*(ke-ee);return pe=Te(de.x[0],pe,de.x[1]),ge=Te(de.y[0],ge,de.y[1]),{x:pe,y:ge}}function S(V="base"){if(!t)return 1;const $=t.getBoundingClientRect(),q=P(),{width:z,height:X}=E(),U=pe=>{if(typeof pe=="number")return pe;switch(pe){case"min":case"base":return 1;case"cover":return Math.max($.height/q.height,$.width/q.width)||1;case"full":case"max":{const ge=d.angle%180==90?X:z;return ge&&q.width?ge/q.width:1}}},ee=x("minScale"),de=x("maxScale"),we=Math.min(U("full"),U(ee)),ke=typeof de=="number"?U("full")*de:Math.min(U("full"),U(de));switch(V){case"min":return we;case"base":return Te(we,1,ke);case"cover":return U("cover");case"full":return Math.min(ke,U("full"));case"max":return ke}}function B(){return S("min")}function N(){return S("base")}function M(){return S("cover")}function H(){return S("full")}function ie(){return S("max")}function Q(V){const $={x:[0,0],y:[0,0]},q=t==null?void 0:t.getBoundingClientRect();if(!q)return $;const z=P(),X=q.width,U=q.height;let ee=z.width,de=z.height,we=V=V===void 0?d.scale:V,ke=V;if(w()&&V>1){const pe=x("mouseMoveFactor");pe>1&&(ee*V>X+.01&&(we*=pe),de*V>U+.01&&(ke*=pe))}return ee*=we,de*=ke,V>1&&(ee>X&&($.x[0]=.5*(X-ee),$.x[1]=.5*(ee-X)),$.x[0]-=.5*(z.left-q.left),$.x[1]-=.5*(z.left-q.left),$.x[0]-=.5*(z.left+z.width-q.right),$.x[1]-=.5*(z.left+z.width-q.right),de>U&&($.y[0]=.5*(U-de),$.y[1]=.5*(de-U)),$.y[0]-=.5*(z.top-q.top),$.y[1]-=.5*(z.top-q.top),$.y[0]-=.5*(z.top+z.height-q.bottom),$.y[1]-=.5*(z.top+z.height-q.bottom)),$}function fe(){if(!x("bounds")||u!==3||!(t!=null&&t.parentElement)||!l)return;const V=B(),$=ie(),q=Te(V,d.scale,$);if(d.scale<V-.01||d.scale>$+.01)return void D(me.ZoomTo,{scale:q});if(l.isRunning()||s!=null&&s.isPointerDown())return;const z=Q(q);d.x<z.x[0]||d.x>z.x[1]||d.y<z.y[0]||d.y>z.y[1]?(d.x=Te(z.x[0],d.x,z.x[1]),d.y=Te(z.y[0],d.y,z.y[1]),l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:l.getCurrentVelocities()}),l.from(p).to(d).start()):j()}function F(){if(!t||!t.parentElement||!o)return;const V=$e(),$=Ve(),q=G(),z=ne(),X=se(),U=be();o.classList.toggle("is-fullsize",z),o.classList.toggle("is-expanded",q),o.classList.toggle("is-dragging",$),o.classList.toggle("can-drag",V),o.classList.toggle("will-zoom-in",X),o.classList.toggle("will-zoom-out",U);const ee=Se(),de=Fe(),we=u!==3;for(const ke of(t==null?void 0:t.querySelectorAll("[data-panzoom-action]"))||[]){const pe=ke.dataset.panzoomAction;let ge=!1;if(we)ge=!0;else switch(pe){case me.ZoomIn:ee||(ge=!0);break;case me.ZoomOut:de||(ge=!0);break;case me.ToggleFull:ee||de||(ge=!0);const _=ke.querySelector("g");_&&(_.style.display=z?"none":"");break;case me.ToggleCover:case me.ToggleMax:ee||de||(ge=!0)}ge?(ke.setAttribute("aria-disabled",""),ke.setAttribute("tabindex","-1")):(ke.removeAttribute("aria-disabled"),ke.removeAttribute("tabindex"))}}function D(V,$){var q;if(!t||!r||!l||V===me.Swipe&&Math.abs(l.getCurrentVelocities().scale)>.01)return;let z=Object.assign({},d),X=Q(w()?d.scale:p.scale);const U=l.getCurrentVelocities(),ee=P(),de=(((q=($=$||{}).currentTouch)===null||q===void 0?void 0:q.length)||0)>1,we=$.velocityX||0,ke=$.velocityY||0;let pe=$.center;!pe&&$.srcEvent&&(pe=wt(Sr($.srcEvent)));let ge=$.deltaX||0,_=$.deltaY||0;switch(V){case me.MoveRight:ge=$.deltaX||100;break;case me.MoveLeft:ge=$.deltaX||-100;break;case me.MoveUp:_=$.deltaY||-100;break;case me.MoveDown:_=$.deltaY||100}let K=[];switch(V){case me.Reset:d=Object.assign({},at),d.scale=N();break;case me.Pan:case me.Move:case me.MoveLeft:case me.MoveRight:case me.MoveUp:case me.MoveDown:if(s!=null&&s.isPointerDown()){let Ee=1,ye=1;d.x<=X.x[0]&&we<=0&&(Ee=Math.max(.01,1-Math.abs(1/ee.width*Math.abs(d.x-X.x[0]))),Ee*=.2),d.x>=X.x[1]&&we>=0&&(Ee=Math.max(.01,1-Math.abs(1/ee.width*Math.abs(d.x-X.x[1]))),Ee*=.2),d.y<=X.y[0]&&ke<=0&&(ye=Math.max(.01,1-Math.abs(1/ee.height*Math.abs(d.y-X.y[0]))),ye*=.2),d.y>=X.y[1]&&ke>=0&&(ye=Math.max(.01,1-Math.abs(1/ee.height*Math.abs(d.y-X.y[1]))),ye*=.2),d.x+=ge*Ee,d.y+=_*ye}else d.x=Te(X.x[0],d.x+ge,X.x[1]),d.y=Te(X.y[0],d.y+_,X.y[1]);break;case me.Swipe:const ae=(Ee=0)=>Math.sign(Ee)*Math.pow(Math.abs(Ee),1.5);d.x+=Te(-1e3,ae(we),1e3),d.y+=Te(-1e3,ae(ke),1e3),ke&&!we&&(d.x=Te(X.x[0],d.x,X.x[1])),!ke&&we&&(d.y=Te(X.y[0],d.y,X.y[1])),U.x=we,U.y=ke;break;case me.ZoomTo:d.scale=$.scale||1;break;case me.ZoomIn:d.scale=d.scale*($.scale||2),de||(d.scale=Math.min(d.scale,ie()));break;case me.ZoomOut:d.scale=d.scale*($.scale||.5),de||(d.scale=Math.max(d.scale,B()));break;case me.ToggleCover:K=[N(),M()];break;case me.ToggleFull:K=[N(),H()];break;case me.ToggleMax:K=[N(),ie()];break;case me.IterateZoom:K=[N(),H(),ie()];break;case me.Zoom:const ce=H();d.scale>=ce-.05?d.scale=N():d.scale=Math.min(ce,d.scale*($.scale||2));break;case me.RotateCW:d.angle+=90;break;case me.RotateCCW:d.angle-=90;break;case me.FlipX:d.flipX*=-1;break;case me.FlipY:d.flipY*=-1}if(p.angle!==void 0&&Math.abs(p.angle)>=360&&(d.angle-=360*Math.floor(p.angle/360),p.angle-=360*Math.floor(p.angle/360)),K.length){const ae=K.findIndex(ce=>ce>d.scale+1e-4);d.scale=K[ae]||K[0]}if(de&&(d.scale=Te(B()*(de?.8:1),d.scale,ie()*(de?1.6:1))),w()){const ae=A(d.scale);if(ae){const{x:ce,y:Ee}=ae;d.x=ce,d.y=Ee}}else if(d.scale!==z.scale){let ae=0,ce=0;if(pe)ae=pe.x,ce=pe.y;else{const I=t.getBoundingClientRect();ae=I.x+.5*I.width,ce=I.y+.5*I.height}let Ee=ae-ee.left,ye=ce-ee.top;Ee-=.5*ee.width,ye-=.5*ee.height;const T=(Ee-z.x)/z.scale,O=(ye-z.y)/z.scale;d.x=Ee-T*d.scale,d.y=ye-O*d.scale,!de&&x("bounds")&&(X=Q(d.scale),d.x=Te(X.x[0],d.x,X.x[1]),d.y=Te(X.y[0],d.y,X.y[1]))}if(V===me.Swipe){let ae=94,ce=17,Ee=500*d.scale,ye=U;l.spring({tension:ae,friction:ce,maxSpeed:Ee,restDelta:.1,restSpeed:.1,velocity:ye})}else V===me.Pan||de?l.spring({tension:750,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:U});V===me.Reset&&$.velocity===0?p=Object.assign({},d):l.from(p).to(d).start(),k("action",V)}function j(){if(!o||!r)return;if(r instanceof HTMLImageElement){const{width:de,height:we}=E();o.style.maxWidth=`min(${de}px, 100%)`,o.style.maxHeight=`min(${we}px, 100%)`}let{x:V,y:$,scale:q,angle:z,flipX:X,flipY:U}=p;const ee=function(){const de=P(),we=de.width,ke=de.height,{width:pe,height:ge}=E();if(!t)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:we,fitHeight:ke,fullWidth:pe,fullHeight:ge};let{x:_,y:K,scale:ae,angle:ce,flipX:Ee,flipY:ye}=p,T=1/H(),O=pe,I=ge,Z=p.scale*T,he=d.scale*T;const te=Math.max(we,ke),oe=Math.min(we,ke);pe>ge?(O=te,I=oe):(O=oe,I=te),Z=pe>ge?te*ae/pe||1:te*ae/ge||1;let ue=O?pe*he:0,R=I?ge*he:0;return _=_+.5*O-.5*ue,K=K+.5*I-.5*R,{x:_,y:K,width:ue,height:R,scale:O&&I?pe*Z/ue:0,flipX:Ee,flipY:ye,angle:ce,fitWidth:we,fitHeight:ke,fullWidth:pe,fullHeight:ge}}();if(o&&ee){const{x:de,y:we,width:ke,height:pe,scale:ge,flipX:_,flipY:K}=ee;let ae=`translate(${Xe(de)}px, ${Xe(we)}px)`;ae+=_!==1||K!==1?` scaleX(${Xe(ge*_)}) scaleY(${Xe(ge*K)})`:` scale(${Xe(ge)})`,z!==0&&(ae+=` rotate(${z}deg)`),i&&(i.style.width=`${Xe(ke)}px`,i.style.height=`${Xe(pe)}px`,i.style.transform=`${ae}`)}k("render")}function re(){let V=d.scale;const $=x("clickAction");let q=N();if($){let z=[];switch($){case me.ZoomIn:q=2*V;break;case me.ZoomOut:q=.5*V;break;case me.ToggleCover:z=[N(),M()];break;case me.ToggleFull:z=[N(),H()];break;case me.ToggleMax:z=[N(),ie()];break;case me.IterateZoom:z=[N(),H(),ie()];break;case me.Zoom:const X=H();q=V>=X-.05?N():Math.min(X,2*V)}if(z.length){const X=z.findIndex(U=>U>V+1e-4);q=z[X]||N()}}return q=Te(B(),q,ie()),q}function se(){return u===3&&re()>d.scale}function be(){return u===3&&re()<d.scale}function Se(){return u===3&&d.scale<ie()}function Fe(){return u===3&&d.scale>B()}function $e(){return u===3&&G()&&!!s&&!w()}function Ve(){return u===3&&(s==null?void 0:s.isPointerDown())&&!w()}function G(){return u===3&&d.scale>N()}function ne(){return u===3&&d.scale>=H()}const J={canDrag:$e,canZoomIn:Se,canZoomOut:Fe,destroy:function(){k("destroy");for(const V of Object.values(f))V==null||V.destroy(J);for(const V of g)V();return o&&(o.style.aspectRatio="",o.style.maxWidth="",o.style.maxHeight=""),i&&(i.style.width="",i.style.height="",i.style.transform=""),o=void 0,r=void 0,i=void 0,p=Object.assign({},at),d=Object.assign({},at),l==null||l.destroy(),l=void 0,s==null||s.destroy(),s=void 0,u=4,J},emit:k,execute:D,getBoundaries:Q,getContainer:function(){return t},getFullDim:E,getGestures:function(){return s},getMousemovePos:A,getOptions:function(){return h},getScale:S,getState:function(){return u},getTransform:function(V){return V===!0?d:p},getTween:function(){return l},getViewport:function(){return i},getWrapper:function(){return o},init:function(){return u=0,k("init"),function(){for(const[V,$]of Object.entries(Object.assign(Object.assign({},a),h.plugins||{})))if(V&&!f[V]&&$ instanceof Function){const q=$();q.init(J),f[V]=q}k("initPlugins")}(),function(){if(!t)return;const V=Object.assign(Object.assign({},Ca.classes),x("classes"));if(De(t,V.container),r=t.querySelector("."+V.content),!!r&&(r.setAttribute("draggable","false"),o=t.querySelector("."+V.wrapper),o||(o=document.createElement("div"),De(o,V.wrapper),r.insertAdjacentElement("beforebegin",o),o.insertAdjacentElement("afterbegin",r)),r instanceof HTMLImageElement||r instanceof HTMLPictureElement)){if(i=t.querySelector("."+V.viewport),!i){i=document.createElement("div"),De(i,V.viewport);const $=r.cloneNode(!0);$.classList.remove("is-lazyloading"),$.classList.remove("is-lazyloaded"),i.insertAdjacentElement("afterbegin",$),o.insertAdjacentElement("beforeend",i)}if(r instanceof HTMLPictureElement&&(r=r.querySelector("img")),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),i.style.visibility="hidden",x("protected")){i.addEventListener("contextmenu",q=>{q.preventDefault()});const $=document.createElement("div");De($,"f-panzoom__protected"),i.appendChild($)}k("initLayout")}}(),function(){if(!(r&&r instanceof HTMLImageElement))return;u=1,k("loading");const V=()=>{r&&r instanceof HTMLImageElement&&r.decode().then(()=>{requestAnimationFrame(()=>{L()})}).catch(()=>{L()})};if(r.src&&r.complete)return void V();(function(){const $=t==null?void 0:t.querySelector(".f-spinner");if(!t||$)return;const q=x("spinnerTpl"),z=kt(q);z&&(z.classList.add("f-spinner"),t.classList.add("is-loading"),o==null||o.insertAdjacentElement("afterbegin",z))})(),r.addEventListener("load",V,!1),r.addEventListener("error",V,!1),g.push(()=>{r==null||r.removeEventListener("load",V,!1),r==null||r.removeEventListener("error",V,!1)})}(),function(){if(t&&o&&!c){let V=null;c=new ResizeObserver(()=>{V||(V=requestAnimationFrame(()=>{t&&t.parentElement&&u===3&&(F(),fe(),k("refresh")),V=null}))}),c.observe(o),g.push(()=>{c==null||c.disconnect(),c=void 0,V&&(cancelAnimationFrame(V),V=null)})}}(),J},isDragging:Ve,isExpanded:G,isFullsize:ne,localize:function(V,$=[]){const q=x("l10n")||{};V=String(V).replace(/\{\{(\w+)\}\}/g,(z,X)=>q[X]||z);for(let z=0;z<$.length;z++)V=V.split($[z][0]).join($[z][1]);return V=V.replace(/\{\{(.*?)\}\}/g,(z,X)=>X)},off:function(V,$){for(const q of V instanceof Array?V:[V])b.has(q)&&b.set(q,b.get(q).filter(z=>z!==$));return J},on:function(V,$){for(const q of V instanceof Array?V:[V])b.set(q,[...b.get(q)||[],$]);return J},version:"6.0.16",willZoomIn:se,willZoomOut:be};return J};Sa.l10n={en_EN:va},Sa.getDefaults=()=>Ca;/*! License details at fancyapps.com/license */const Ba=(t,n)=>{let a=[];return t.childNodes.forEach(o=>{o.nodeType!==Node.ELEMENT_NODE||n&&!o.matches(n)||a.push(o)}),a};/*! License details at fancyapps.com/license */const ot=(t,...n)=>{const a=n.length;for(let o=0;o<a;o++){const r=n[o]||{};Object.entries(r).forEach(([i,s])=>{const l=Array.isArray(s)?[]:{};t[i]||Object.assign(t,{[i]:l}),Ze(s)?Object.assign(t[i],ot(l,s)):Array.isArray(s)?Object.assign(t,{[i]:[...s]}):Object.assign(t,{[i]:s})})}return t};/*! License details at fancyapps.com/license */const Va=function(t=0,n=0,a=0,o=0,r=0,i=!1){const s=(t-n)/(a-n)*(r-o)+o;return i?o<r?Te(o,s,r):Te(r,s,o):s};/*! License details at fancyapps.com/license */const mt=(t,n="")=>{t&&t.classList&&n.split(" ").forEach(a=>{a&&t.classList.remove(a)})};/*! License details at fancyapps.com/license */const vt=(t,n="",a)=>{t&&t.classList&&n.split(" ").forEach(o=>{o&&t.classList.toggle(o,a||!1)})};/*! License details at fancyapps.com/license */const Ma=Object.assign(Object.assign({},va),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});/*! License details at fancyapps.com/license */const It=t=>{t.cancelable&&t.preventDefault()},Wt={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Ma,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:200,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let Ar,Tr=0;const Pn=(t,n={},a={})=>{Tr++;let o,r,i,s,l,c=0,m=Object.assign({},Wt),u=Object.assign({},Wt),h={},f=null,p=null,d=!1,g=!1,x=!1,b=!1,k="height",y=0,v=!0,C=0,L=0,P=0,E=0,w="*",A=[],S=[];const B=new Set;let N=[],M=[],H=0,ie=0;function Q(T,...O){let I=u[T];return I&&I instanceof Function?I(ye,...O):I}function fe(T,O=[]){const I=Q("l10n")||{};T=String(T).replace(/\{\{(\w+)\}\}/g,(Z,he)=>I[he]||Z);for(let Z=0;Z<O.length;Z++)T=T.split(O[Z][0]).join(O[Z][1]);return T=T.replace(/\{\{(.*?)\}\}/g,(Z,he)=>he)}const F=new Map;function D(T,...O){const I=F.get(T)||[];u.on&&I.push(u.on[T]);for(const Z of I)Z&&Z instanceof Function&&Z(ye,...O);T!=="*"&&D("*",T,...O)}function j(){var T,O;const I=ot({},Wt,m);ot(I,Wt,m);let Z="";const he=m.breakpoints||{};if(he)for(const[te,oe]of Object.entries(he))window.matchMedia(te).matches&&(Z+=te,ot(I,oe));if(l===void 0||Z!==l){if(l=Z,c!==0){let te=(O=(T=M[C])===null||T===void 0?void 0:T.slides[0])===null||O===void 0?void 0:O.index;te===void 0&&(te=u.initialSlide),I.initialSlide=te,I.slides=[];for(const oe of A)oe.isVirtual&&I.slides.push(oe)}Ee(),u=I,u.enabled!==!1&&(c=0,D("init"),function(){for(const[te,oe]of Object.entries(Object.assign(Object.assign({},a),u.plugins||{})))if(te&&!h[te]&&oe instanceof Function){const ue=oe();ue.init(ye,Pn),h[te]=ue}D("initPlugins")}(),function(){if(!f)return;const te=Q("classes")||{};De(f,te.container),De(f,te.isEnabled);const oe=Q("style");if(oe&&Ze(oe))for(const[ue,R]of Object.entries(oe))f.style.setProperty(ue,R);p=f.querySelector(`.${te.viewport}`),p||(p=document.createElement("div"),De(p,te.viewport),p.append(...Ba(f,`.${te.slide}`)),f.insertAdjacentElement("afterbegin",p)),d=window.getComputedStyle(p).getPropertyValue("overflow")==="visible",f.carousel=ye,D("initLayout")}(),function(){if(!p)return;const te=Q("classes")||{};A=[],[...Ba(p,`.${te.slide}`)].forEach(oe=>{oe.parentElement&&(A.push($(Object.assign({el:oe,isVirtual:!1},oe.dataset||{}))),oe.parentElement.removeChild(oe))}),V(Q("slides"));for(const oe of A)D("addSlide",oe);D("initSlides")}(),r=bt().on("start",()=>{v=!1,o&&o.isPointerDown()||(be(),ce())}).on("step",te=>{y=te.pos,ce()}).on("end",te=>{o!=null&&o.isPointerDown()||(y=te.pos,r&&!g&&(y<P||y>E)?r.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:y}).to({pos:Te(P,y,E)}).start():v||(v=!0,D("settle")))}),function(){const te=Q("gestures");p&&te!==!1&&(o=nn(p,te).on("start",oe=>{var ue,R;if(!r)return;const{srcEvent:Y}=oe;function le(ve){const Me=window.getComputedStyle(ve),Ae=new DOMMatrixReadOnly(Me.transform);return{width:Ae.m41||0,height:Ae.m42||0}}b&&It(Y),r.pause(),r.getCurrentVelocities().pos=0;const xe=(ue=M[C])===null||ue===void 0?void 0:ue.slides[0];xe&&B.has(xe.index)&&xe.el&&(y=xe.offset||0,y+=(le(xe.el)[k]||0)*(x&&!b?1:-1)),we(),g||(y<P||y>E)&&r.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((R=r.getCurrentVelocities())===null||R===void 0?void 0:R.pos)||0,restDelta:1,restSpeed:1}).from({pos:y}).to({pos:Te(P,y,E)}).start()}).on("move",oe=>{const{srcEvent:ue,axis:R}=oe,Y=oe.srcEvent.target;Y&&en(Y)||(R||(ue.stopPropagation(),ue.stopImmediatePropagation()),(R==="y"&&b||R==="x"&&!b)&&(It(ue),ue.stopPropagation()))}).on("panstart",oe=>{(oe==null?void 0:oe.axis)===(b?"y":"x")&&De(p,"is-dragging")}).on("panend",()=>{mt(p,"is-dragging")}).on("pan",oe=>{var ue;const{deltaX:R,deltaY:Y,currentTouch:le,axis:xe}=oe;if(!r||le.length>1||xe==="y"&&!b||xe==="x"&&b)return;const ve=x&&!b?1:-1;let Me=b?Y:R,Ae=r!=null&&r.isRunning()?r.getEndValues().pos:y,Ne=1;g||(Ae<=P&&Me*ve<0?(Ne=Math.max(.01,1-Math.abs(1/G()*Math.abs(Ae-P))),Ne*=.2):Ae>=E&&Me*ve>0&&(Ne=Math.max(.01,1-Math.abs(1/G()*Math.abs(Ae-E))),Ne*=.2)),Ae+=Me*Ne*ve,r.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((ue=r.getCurrentVelocities())===null||ue===void 0?void 0:ue.pos)||0,restDelta:1,restSpeed:1}).from({pos:y}).to({pos:Ae}).start()}).on("end",oe=>{var ue,R;const{axis:Y,velocityX:le,velocityY:xe,currentTouch:ve}=oe,Me=M.length,Ae=Q("dragFree");if(ve.length>0||!r||!Me)return;const Ne=Q("vertical")?xe:le;let Re=r!=null&&r.isRunning()?r.getEndValues().pos:y;const tt=x&&!b?1:-1;if(Re+=Ne*(Ae?5:1)*tt,!g&&(Ne*tt<=0&&Re<P||Ne*tt>=0&&Re>E)){let Ge=0;return Math.abs(Ne)>0&&(Ge=2*Math.abs(Ne),Ge=Math.min(.3*G(),Ge)),Re=Te(P+-1*Ge,Re,E+Ge),void r.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:y}).to({pos:Re}).start()}if(Ae||!((ue=h.Autoscroll)===null||ue===void 0)&&ue.isEnabled())return void(Math.abs(Ne)>10?r.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ne,restDelta:1,restSpeed:1}).from({pos:y}).to({pos:Re}).start():r.isRunning()||v||(v=!0,D("settle")));if(!Ae&&!(!((R=h.Autoscroll)===null||R===void 0)&&R.isEnabled())&&(!oe.offsetX&&!oe.offsetY||Y==="y"&&!b||Y==="x"&&b))return void ae(C,{transition:"tween"});let rt=$e(Re);Math.abs(Ne)>10&&rt===C&&(rt+=Ne>0?x&&!b?1:-1:x&&!b?-1:1),ae(rt,{transition:"tween",tween:{tension:160,friction:25,velocity:-1*Ne}})}).init())}(),ee(),function(){if(f&&(f.addEventListener("click",pe,{passive:!1}),document.addEventListener("mousemove",re),!i)){let te=null;i=new ResizeObserver(oe=>{te||(te=requestAnimationFrame(()=>{(function(ue){if(!f)return;let R=ue[0].contentBoxSize[0].blockSize,Y=ue[0].contentBoxSize[0].inlineSize;if(c===0)return H=R,ie=Y,c=1,ce(),Se(),void D("ready");if(c!==1)return;const le=M.length;ee();const xe=f.getBoundingClientRect();R=xe.height,Y=xe.width,le>1&&(b&&Math.abs(R-H)<.5||!b&&Math.abs(Y-ie)<.5)||(H=R,ie=Y,b&&!R||!b&&!Y||f&&p&&(le===M.length&&(o!=null&&o.isPointerDown())||(Q("dragFree")&&(g||y>P&&y<E)?(be(),ce()):ae(C,{transition:!1}))))})(oe),te=null}))}),i.observe(f)}}())}}function re(T){Ar=T}function se(T="*"){var O;const I=[];for(const Z of A)(T==="*"||Z.class&&Z.class.includes(T)||Z.el&&(!((O=Z.el)===null||O===void 0)&&O.classList.contains(T)))&&I.push(Z);s=void 0,w=T,S=[...I]}function be(){if(!r)return;const T=$e(r!=null&&r.isRunning()?r.getEndValues().pos:y);T!==C&&(s=C,C=T,K(),Se(),Fe(),D("change",C,s))}function Se(){var T;if(!f)return;vt(p,"is-draggable",!!o&&M.length>0);for(const Z of f.querySelectorAll("[data-carousel-index]"))Z.innerHTML=C+"";for(const Z of f.querySelectorAll("[data-carousel-page]"))Z.innerHTML=C+1+"";for(const Z of f.querySelectorAll("[data-carousel-pages]"))Z.innerHTML=M.length+"";let O=!1;const I=(T=M[C])===null||T===void 0?void 0:T.slides[0];I&&(I.downloadSrc||I.type==="image"&&I.src)&&(O=!0);for(const Z of f.querySelectorAll("[data-carousel-download]"))Z.toggleAttribute("aria-disabled",!O)}function Fe(T){var O;if(!f)return;T||(T=(O=M[C])===null||O===void 0?void 0:O.slides[0]);const I=T.el;if(I)for(const Z of I.querySelectorAll("[data-slide-index]"))Z.innerHTML=T.index+1+""}function $e(T){if(!M.length||!r)return 0;const O=ne();let I=T;g?I-=Math.floor((T-M[0].pos)/O)*O:I=Te(M[0].pos,T,M[M.length-1].pos);const Z=new Map;let he=0;for(const oe of M){const ue=Math.abs(oe.pos-I),R=Math.abs(oe.pos-I-O),Y=Math.abs(oe.pos-I+O),le=Math.min(ue,R,Y);Z.set(he,le),he++}const te=Z.size>0?[...Z.entries()].reduce((oe,ue)=>ue[1]<oe[1]?ue:oe):[C,0];return parseInt(te[0])}function Ve(){return p&&parseFloat(getComputedStyle(p).getPropertyValue("--f-carousel-gap"))||0}function G(){return p&&p.getBoundingClientRect()[k]||0}function ne(T=!0){const O=Ve();return S.reduce((I,Z)=>I+Z.dim,0)+(S.length-(g&&T?0:1))*O}function J(T){const O=Ve(),I=ne();let Z=G();if(!p)return[];const he=[];if(!I||!Z)return[];T=T===void 0?y:T,g&&(T-=Math.floor(T/I)*I);let te=0,oe=0;if(d){const R=p.getBoundingClientRect();te=R.left,oe=R.right-R.width}let ue=0;for(let R of S){const Y=(le=0)=>{he.indexOf(R)>-1||(R.pos=ue-T+le||0,R.offset+le>T-R.dim-te+.51&&R.offset+le<T+Z+oe-.51&&he.push(R))};if(R.offset=ue,g)for(let le=-1;le<=1;le++)Y(I*le);else Y();ue+=R.dim+O}return he}function V(T,O){const I=[];for(const Z of Array.isArray(T)?T:[T]){const he=$(Object.assign(Object.assign({},Z),{isVirtual:!0}));I.push(he)}A.splice(O===void 0?A.length:O,0,...I),U();for(const Z of I)q(Z);return se(w),I}function $(T){return(je(T)||T instanceof HTMLElement)&&(T={html:T}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},T)}function q(T){if(!T)return;let O=T.el;O||(O=document.createElement("div"),T.el=O);const I=T.html?T.html instanceof HTMLElement?T.html:kt(T.html):void 0;I&&(De(I,"f-html"),T.htmlEl=I,De(O,"has-html"),O.append(I),D("contentReady",T))}function z(T){if(!p||!T)return;let O=T.el;if(O){if(O.setAttribute("index",T.index+""),O.parentElement!==p){let I;De(O,u.classes.slide),De(O,T.class),K(T);for(const Z of A)if(Z.index>T.index){I=Z.el;break}p.insertBefore(O,I&&p.contains(I)?I:null),D("attachSlideEl",T)}return O}}function X(T){const O=T==null?void 0:T.el;O&&(O.remove(),de(O),D("detachSlideEl",T))}function U(){for(let T=0;T<A.length;T++){const O=A[T],I=O.el;I&&(O.index!==T&&de(I),I.setAttribute("index",`${T}`)),O.index=T}}function ee(){var T,O,I,Z;if(!f||!p)return;x=Q("rtl"),b=Q("vertical"),k=b?"height":"width";const he=Q("classes");vt(f,he.isLTR,!x),vt(f,he.isRTL,x),vt(f,he.isHorizontal,!b),vt(f,he.isVertical,b),vt(f,he.hasAdaptiveHeight,Q("adaptiveHeight"));const te=p.getBoundingClientRect();if(!te.width&&!te.height)return;const oe=function(){let R=0;if(p){let Y=document.createElement("div");De(Y,u.classes.slide),p.appendChild(Y),R=Y.getBoundingClientRect()[k],Y.remove(),Y=void 0}return R}();for(const R of S){const Y=R.el;let le=0;if(!R.isVirtual&&Y&&jt(Y)){let xe=!1;Y.parentElement&&Y.parentElement===p||(p.appendChild(Y),xe=!0),le=Y.getBoundingClientRect()[k],xe&&((T=Y.parentElement)===null||T===void 0||T.removeChild(Y))}else le=oe;R.dim=le}(function(){if(!f)return;U();const R=G(),Y=Ve(),le=ne(!1);let xe=Q("slidesPerPage");xe=xe==="auto"?1/0:parseFloat(xe+""),M=[];let ve=0,Me=0;for(const Oe of S)(!M.length||ve+Oe.dim-R>.05||Me>=xe)&&(M.push({index:M.length,slides:[],dim:0,offset:0,pos:0}),ve=0,Me=0),M[M.length-1].slides.push(Oe),ve+=Oe.dim+Y,Me++;const Ae=Q("center"),Ne=Q("fill"),Re=Q("infinite");let tt=0;for(const Oe of M){Oe.dim=(Oe.slides.length-1)*Y;for(const Bt of Oe.slides)Oe.dim+=Bt.dim;Oe.offset=tt,Oe.pos=tt,Ae!==!1&&(Oe.pos-=.5*(R-Oe.dim)),Ne&&!Re&&le>R&&(Oe.pos=Te(0,Oe.pos,le-R)),tt+=Oe.dim+Y}const rt=[];let Ge;for(const Oe of M){const Bt=Object.assign({},Oe);Ge&&Bt.pos===Ge.pos?(Ge.dim+=Bt.dim,Ge.slides=[...Ge.slides,...Bt.slides]):(Ge=Bt,Bt.index=rt.length,rt.push(Bt))}M=rt,Se()})();let ue=G();if(d){const R=p.getBoundingClientRect();ue+=R.left,ue+=R.right-R.width}if(g=Q("infinite")&&M.length>1&&ne()-(ue+(((O=S[0])===null||O===void 0?void 0:O.dim)||0))>-.5,P=((I=M[0])===null||I===void 0?void 0:I.pos)||0,E=((Z=M[M.length-1])===null||Z===void 0?void 0:Z.pos)||0,c===0)(function(){var R;s=void 0,C=Q("initialPage");const Y=Q("initialSlide")||void 0;Y!==void 0&&(C=ye.getPageIndex(Y)||0),C=Te(0,C,M.length-1),y=((R=M[C])===null||R===void 0?void 0:R.pos)||0,L=y})();else{const R=r!=null&&r.isRunning()?r.getEndValues().pos:y;(R<P||R>E)&&(C=Te(0,C,M.length-1),L=M[C||0].pos||0)}D("refresh")}function de(T){if(!T||!jt(T))return;const O=parseInt(T.getAttribute("index")||"-1");let I="";for(const he of Array.from(T.classList)){const te=he.match(/^f-(\w+)(Out|In)$/);te&&te[1]&&(I=te[1]+"")}if(!T||!I)return;const Z=[`f-${I}Out`,`f-${I}In`,"to-prev","to-next","from-prev","from-next"];T.removeEventListener("animationend",ke),mt(T,Z.join(" ")),B.delete(O)}function we(){if(!p)return;const T=B.size;for(const O of S)de(O.el);B.clear(),T&&ce()}function ke(T){T.animationName.substring(0,2)==="f-"&&(de(T.target),B.size||(mt(f,"in-transition"),!v&&Math.abs(ye.getPosition(!0)-L)<.5&&(v=!0,D("settle"))),ce())}function pe(T){if(T.defaultPrevented)return;const O=T.composedPath()[0];if(O.closest("[data-carousel-go-prev]"))return It(T),void ye.prev();if(O.closest("[data-carousel-go-next]"))return It(T),void ye.next();const I=O.closest("[data-carousel-go-to]");if(I)return It(T),void ye.goTo(parseFloat(I.dataset.carouselGoTo||"")||0);if(O.closest("[data-carousel-download]")){It(T);const Z=M[C].slides[0];if(Z.downloadSrc||Z.type==="image"&&Z.src){const he=Z.downloadFilename,te=document.createElement("a"),oe=Z.downloadSrc||Z.src||"";te.href=oe,te.target="_blank",te.download=he||oe,te.click()}}else D("click",T)}function ge(T){var O;const I=T.el;I&&((O=I.querySelector(".f-spinner"))===null||O===void 0||O.remove(),mt(I,"is-loading"))}function _(T){var O;const I=T.el;I&&((O=I.querySelector(".f-html.is-error"))===null||O===void 0||O.remove(),mt(I,"has-error"))}function K(T){var O;T||(T=(O=M[C])===null||O===void 0?void 0:O.slides[0]);const I=T==null?void 0:T.el;if(!I)return;let Z=Q("formatCaption",T);Z===void 0&&(Z=T.caption),Z=Z||"";const he=Q("captionEl");if(he&&he instanceof HTMLElement){if(T.index!==C)return;if(je(Z)&&(he.innerHTML=fe(Z+"")),Z instanceof HTMLElement){if(Z.parentElement===he)return;he.innerHTML="",Z.parentElement&&(Z=Z.cloneNode(!0)),he.append(Z)}return}if(!Z)return;let te=T.captionEl||I.querySelector(".f-caption");!te&&Z instanceof HTMLElement&&Z.classList.contains("f-caption")&&(te=Z),te||(te=document.createElement("div"),De(te,"f-caption"),je(Z)?te.innerHTML=fe(Z+""):Z instanceof HTMLElement&&(Z.parentElement&&(Z=Z.cloneNode(!0)),te.append(Z)));const oe=`f-caption-${Tr}_${T.index}`;te.setAttribute("id",oe),te.dataset.selectable="true",De(I,"has-caption"),I.setAttribute("aria-labelledby",oe),T.captionEl=te,I.insertAdjacentElement("beforeend",te)}function ae(T,O){let{transition:I,tween:Z}=Object.assign({transition:u.transition,tween:u.tween},O||{});if(!f||!r)return;const he=M.length;if(!he||function(oe,ue){var R,Y,le,xe;if(!(f&&r&&ue&&je(ue)&&ue!=="tween")||((R=M[C])===null||R===void 0?void 0:R.slides.length)>1)return!1;const ve=M.length;let Me=oe>C?1:-1;oe=g?(oe%ve+ve)%ve:Te(0,oe,ve-1),x&&(Me*=-1);const Ae=(Y=M[C])===null||Y===void 0?void 0:Y.slides[0],Ne=Ae==null?void 0:Ae.index,Re=(le=M[oe])===null||le===void 0?void 0:le.slides[0],tt=Re==null?void 0:Re.index,rt=(xe=M[oe])===null||xe===void 0?void 0:xe.pos;if(tt===void 0||Ne===void 0||Ne===tt||y===rt||Math.abs(G()-((Re==null?void 0:Re.dim)||0))>1)return!1;v=!1,r.pause(),we(),De(f,"in-transition"),y=L=rt;const Ge=z(Ae),Oe=z(Re);return be(),Ge&&(B.add(Ne),Ge.style.transform="",Ge.addEventListener("animationend",ke),mt(Ge,u.classes.isSelected),De(Ge,`f-${ue}Out to-${Me>0?"next":"prev"}`)),Oe&&(B.add(tt),Oe.style.transform="",Oe.addEventListener("animationend",ke),De(Oe,u.classes.isSelected),De(Oe,`f-${ue}In from-${Me>0?"prev":"next"}`)),ce(),!0}(T,I))return;T=g?(T%he+he)%he:Te(0,T,he-1),L=M[T||0].pos||0;const te=r.isRunning()?r.getEndValues().pos:y;if(Math.abs(L-te)<1)return y=L,C!==T&&(K(),Se(),Fe(),s=C,C=T,D("change",C,s)),ce(),void(v||(v=!0,D("settle")));if(r.pause(),we(),g){const oe=ne(),ue=Math.floor((te-M[0].pos)/oe),R=L+ue*oe;L=[R+oe,R,R-oe].reduce(function(Y,le){return Math.abs(le-te)<Math.abs(Y-te)?le:Y})}I!==!1&&Ze(Z)?r.spring(Z).from({pos:y}).to({pos:L}).start():(y=L,be(),ce(),v||(v=!0,D("settle")))}function ce(){var T;if(!f||!p)return;const O=M[C];N=J();const I=new Set;let Z;const he=[];for(const te of S){if(te.isVirtual&&!B.has(te.index)&&N.indexOf(te)<0)continue;let oe=z(te);if(!oe)continue;he.push(te);const ue=((T=O==null?void 0:O.slides)===null||T===void 0?void 0:T.indexOf(te))>-1;if(ue&&I.add(oe),!B.has(te.index)){const R=te.pos?Math.round(1e4*te.pos)/1e4:0,Y=b?0:x?-1*R:R,le=b?R:0,xe=Va(Y,0,te.dim,0,100),ve=Va(le,0,te.dim,0,100),Me=u.setTransform||void 0;Me instanceof Function?Me(ye,te,{x:Y,y:le,xPercent:xe,yPercent:ve}):oe.style.transform=Y||le?`translate3d(${xe}%, ${ve}%,0)`:""}if(Q("adaptiveHeight")&&ue){const R=(oe.firstElementChild||oe).getBoundingClientRect().height;Z=Z==null?R:Math.max(Z,R)}}[...Ba(p,`.${u.classes.slide}`)].forEach(te=>{const oe=parseInt(te.getAttribute("index")||"-1"),ue=A[oe];ue||te.remove(),vt(te,u.classes.isSelected,I.has(te)),ue.isVirtual&&!B.has(ue.index)&&N.indexOf(ue)<0&&X(ue)}),p&&Z&&(p.style.height=`${Z}px`),D("render",he)}function Ee(){var T;f==null||f.removeEventListener("click",pe),we(),document.removeEventListener("mousemove",re),i==null||i.disconnect(),i=void 0;for(const O of A)O.el&&jt(O.el)&&(O.state=void 0,ge(O),_(O),X(O),O.isVirtual?((T=O.el)===null||T===void 0||T.remove(),O.el=void 0):(O.el.style.transform="",p==null||p.appendChild(O.el)));for(const O of Object.values(h))O==null||O.destroy();h={},o==null||o.destroy(),o=void 0,r==null||r.destroy(),r=void 0;for(const O of Object.values(u.classes||{}))mt(f,O);mt(p,"is-draggable")}const ye={add:function(T,O){const I=y,Z=L,he=V(T,O);for(const te of he)D("addSlide",te);return se(w),ee(),r&&Z!==L&&r.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:I}).to({pos:L}).start(),ce(),ye},canGoPrev:function(){return g||C>0},canGoNext:function(){return g||C<M.length-1},destroy:function(){return D("destroy"),window.removeEventListener("resize",j),Ee(),F.clear(),f=null,M=[],A=[],u=Object.assign({},Wt),h={},S=[],l="",w="*",c=2,ye},emit:D,filter:function(T="*"){return se(T),ee(),ce(),D("filter",T),ye},getContainer:function(){return f},getGapDim:Ve,getGestures:function(){return o},getLastMouseMove:function(){return Ar},getOptions:function(){return u},getPage:function(){return M[C]},getPageIndex:function(T){if(T!==void 0){for(const O of M||[])for(const I of O.slides)if(I.index===T)return O.index;return-1}return C},getPageProgress:function(T,O){T===void 0&&(T=C);const I=M[T];if(!I)return T>C?-1:1;const Z=ne(),he=Ve();let te=I.pos,oe=ye.getPosition();if(g&&O!==!0){const ue=Math.floor((oe-M[0].pos)/Z);oe-=ue*Z,te=[te+Z,te,te-Z].reduce(function(R,Y){return Math.abs(Y-oe)<Math.abs(R-oe)?Y:R})}return(oe-te)/(I.dim+he)},getPageVisibility:function(T){T===void 0&&(T=C);const O=M[T];if(!O)return T>C?-1:1;const I=ye.getPosition(),Z=G();let he=O.pos;if(g){const te=ye.getPosition(),oe=ne(),ue=he+Math.floor((te-M[0].pos)/oe)*oe;he=[ue+oe,ue,ue-oe].reduce(function(R,Y){return Math.abs(Y-te)<Math.abs(R-te)?Y:R})}return he>I&&he+O.dim<I+Z?1:he<I?(he+O.dim-I)/O.dim:he+O.dim>I+Z?(I+Z-he)/O.dim:0},getPages:function(){return M},getPlugins:function(){return h},getPosition:function(T){var O;let I=y;if(g&&T!==!0){const Z=ne();I-=Math.floor((y-((O=M[0])===null||O===void 0?void 0:O.pos)||0)/Z)*Z}return I},getSlides:function(){return A},getState:function(){return c},getTotalSlideDim:ne,getTween:function(){return r},getViewport:function(){return p},getViewportDim:G,getVisibleSlides:function(T){return T===void 0?N:J(T)},goTo:ae,hasNavigated:function(){return s!==void 0},hideError:_,hideLoading:ge,init:function(){if(!t||!jt(t))throw new Error("No Element found");return c!==0&&(Ee(),c=0),f=t,m=n,window.removeEventListener("resize",j),m.breakpoints&&window.addEventListener("resize",j),j(),ye},isInfinite:function(){return g},isInTransition:function(){return B.size>0},isRTL:function(){return x},isSettled:function(){return v},localize:function(T,O=[]){return fe(T,O)},next:function(T={}){return ae(C+1,T),ye},off:function(T,O){for(const I of T instanceof Array?T:[T])F.has(I)&&F.set(I,F.get(I).filter(Z=>Z!==O));return ye},on:function(T,O){for(const I of T instanceof Array?T:[T])F.set(I,[...F.get(I)||[],O]);return ye},prev:function(T={}){return ae(C-1,T),ye},remove:function(T){T===void 0&&(T=A.length-1);const O=A[T];return O&&(D("removeSlide",O),O.el&&(de(O.el),O.el.remove(),O.el=void 0),A.splice(T,1),se(w),ee(),ce()),ye},setPosition:function(T){y=T,be(),ce()},showError:function(T,O){ge(T),_(T);const I=T.el;if(I){const Z=document.createElement("div");De(Z,"f-html"),De(Z,"is-error"),Z.innerHTML=fe(O||"<p>{{ERROR}}</p>"),T.htmlEl=Z,De(I,"has-html"),De(I,"has-error"),I.insertAdjacentElement("afterbegin",Z),D("contentReady",T)}return ye},showLoading:function(T){const O=T.el,I=O==null?void 0:O.querySelector(".f-spinner");if(!O||I)return ye;const Z=Q("spinnerTpl"),he=kt(Z);return he&&(De(he,"f-spinner"),De(O,"is-loading"),O.insertAdjacentElement("beforeend",he)),ye},version:"6.0.16"};return ye};Pn.l10n={en_EN:Ma},Pn.getDefaults=()=>Wt;/*! License details at fancyapps.com/license */const Dr=(t=!0,n="--f-scrollbar-compensate",a="--f-body-margin",o="hide-scrollbar")=>{const r=document,i=r.body,s=r.documentElement;if(t){if(i.classList.contains(o))return;let l=window.innerWidth-s.getBoundingClientRect().width;l<0&&(l=0),s.style.setProperty(n,`${l}px`);const c=parseFloat(window.getComputedStyle(i).marginRight);c&&i.style.setProperty(a,`${c}px`),i.classList.add(o)}else i.classList.remove(o),i.style.setProperty(a,""),r.documentElement.style.setProperty(n,"")};/*! License details at fancyapps.com/license */function Lr(){return!(typeof window>"u"||!window.document||!window.document.createElement)}/*! License details at fancyapps.com/license */const Ct=function(t="",n="",a=""){return t.split(n).join(a)};/*! License details at fancyapps.com/license */const Fr={tpl:t=>`<img class="f-panzoom__content"
7
7
  ${t.srcset?'data-lazy-srcset="{{srcset}}"':""}
8
8
  ${t.sizes?'data-lazy-sizes="{{sizes}}"':""}
9
- data-lazy-src="{{src}}" alt="{{alt}}" />`},j3=()=>{let t;function n(d,h){const f=t==null?void 0:t.getOptions().Zoomable;let g=(Ze(f)?Object.assign(Object.assign({},Zr),f):Zr)[d];return g&&typeof g=="function"&&h?g(h):g}function a(){t&&t.getOptions().Zoomable!==!1&&(t.on("addSlide",i),t.on("removeSlide",s),t.on("attachSlideEl",l),t.on("click",r),t.on("change",o),t.on("ready",o))}function o(){c();const d=(t==null?void 0:t.getVisibleSlides())||[];if(d.length>1||(t==null?void 0:t.getOption("transition"))==="slide")for(const h of d){const f=h.panzoomRef;f&&((t==null?void 0:t.getPage().slides)||[]).indexOf(h)<0&&f.execute(ge.ZoomTo,Object.assign({},f.getStartPosition()))}}function r(d,h){const f=h.target;f&&!h.defaultPrevented&&f.dataset.panzoomAction&&u(f.dataset.panzoomAction)}function i(d,h){const f=h.el;if(!t||!f||h.panzoomRef)return;const g=h.src||h.lazySrc||"",m=h.alt||h.caption||`Image #${h.index}`,p=h.srcset||h.lazySrcset||"",y=h.sizes||h.lazySizes||"";if(g&&Te(g)&&!h.html&&(!h.type||h.type==="image")){h.type="image",h.thumbSrc=h.thumbSrc||g;let M=n("tpl",h);M=zt(M,"{{src}}",g+""),M=zt(M,"{{srcset}}",p+""),M=zt(M,"{{sizes}}",y+""),f.insertAdjacentHTML("afterbegin",M)}const k=f.querySelector(".f-panzoom__content");if(!k)return;k.setAttribute("alt",m+"");const b=h.width&&h.width!=="auto"?parseFloat(h.width+""):"auto",x=h.height&&h.height!=="auto"?parseFloat(h.height+""):"auto",C=$a(f,Object.assign({width:b,height:x,classes:{container:"f-zoomable"},event:()=>t==null?void 0:t.getLastMouseMove(),spinnerTpl:()=>(t==null?void 0:t.getOption("spinnerTpl"))||""},n("Panzoom")));C.on("*",(M,D,...H)=>{t&&(D==="loading"&&(h.state=0),D==="loaded"&&(h.state=1),D==="error"&&(h.state=2,t==null||t.showError(h,"{{IMAGE_ERROR}}")),t.emit(`panzoom:${D}`,h,...H),D==="ready"&&t.emit("contentReady",h),h.index===(t==null?void 0:t.getPageIndex())&&c())}),h.panzoomRef=C}function s(d,h){h.panzoomRef&&(h.panzoomRef.destroy(),h.panzoomRef=void 0)}function l(d,h){const f=h.panzoomRef;if(f)switch(f.getState()){case 0:f.init();break;case 3:f.execute(ge.ZoomTo,Object.assign(Object.assign({},f.getStartPosition()),{velocity:0}))}}function c(){var d,h;const f=(t==null?void 0:t.getContainer())||void 0,g=(h=(d=t==null?void 0:t.getPage())===null||d===void 0?void 0:d.slides[0])===null||h===void 0?void 0:h.panzoomRef;if(f)if(g)g.updateControls(f);else for(const m of f.querySelectorAll("[data-panzoom-action]")||[])m.setAttribute("aria-disabled",""),m.setAttribute("tabindex","-1")}function u(d,...h){var f;(f=t==null?void 0:t.getPage().slides[0].panzoomRef)===null||f===void 0||f.execute(d,...h)}return{init:function(d){t=d,t.on("initPlugins",a)},destroy:function(){if(t){t.off("initPlugins",a),t.off("addSlide",i),t.off("removeSlide",s),t.off("attachSlideEl",l),t.off("click",r),t.off("change",o),t.off("ready",o);for(const d of t.getSlides())s(0,d)}t=void 0},execute:u}};/*! License details at fancyapps.com/license */const Yr={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},Xr=()=>{let t,n;function a(){const g=t==null?void 0:t.getOptions().Sync;return Ze(g)?Object.assign(Object.assign({},Yr),g):Yr}function o(g){var m,p,y;t&&g&&(n=g,t.getOptions().classes=Object.assign(Object.assign({},t.getOptions().classes),{isSelected:""}),t.getOptions().initialSlide=((p=(m=n.getPage())===null||m===void 0?void 0:m.slides[0])===null||p===void 0?void 0:p.index)||0,a().syncOnChange&&t.on("change",s),a().syncOnClick&&t.on("click",c),a().syncOnHover&&((y=t.getViewport())===null||y===void 0||y.addEventListener("mouseover",u)),function(){!t||!n||(t.on("ready",i),t.on("refresh",d),n.on("change",l),n.on("filter",h))}())}function r(){const g=a().target;t&&g&&o(g)}function i(){f()}function s(){var g;if(t&&n){const m=((g=t.getPage())===null||g===void 0?void 0:g.slides)||[],p=n.getPageIndex(m[0].index||0);p>-1&&n.goTo(p,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function l(){var g;if(t&&n){const m=t.getPageIndex(((g=n.getPage())===null||g===void 0?void 0:g.slides[0].index)||0);m>-1&&t.goTo(m,n.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function c(g,m){var p;if(!t||!n||!((p=t.getTween())===null||p===void 0)&&p.isRunning())return;const y=t==null?void 0:t.getOptions().classes.slide;if(!y)return;const k=y?m.target.closest(`.${y}`):null;if(k){const b=parseInt(k.getAttribute("index")||"")||0,x=n.getPageIndex(b);n.goTo(x)}}function u(g){t&&c(0,g)}function d(){var g;if(t&&n){const m=t.getPageIndex(((g=n.getPage())===null||g===void 0?void 0:g.slides[0].index)||0);m>-1&&t.goTo(m,{tween:!1,transition:!1}),f()}}function h(g,m){t&&n&&(t.filter(m),l())}function f(){var g,m,p;if(!n)return;const y=((m=(g=n.getPage())===null||g===void 0?void 0:g.slides[0])===null||m===void 0?void 0:m.index)||0;for(const k of(t==null?void 0:t.getSlides())||[])(p=k.el)===null||p===void 0||p.classList.toggle("is-selected",k.index===y)}return{init:function(g){t=g,t.on("initSlides",r)},destroy:function(){var g;t==null||t.off("ready",i),t==null||t.off("refresh",d),t==null||t.off("change",s),t==null||t.off("click",c),(g=t==null?void 0:t.getViewport())===null||g===void 0||g.removeEventListener("mouseover",u),n==null||n.off("change",l),n==null||n.off("filter",h),n=void 0,t==null||t.off("initSlides",r),t=void 0},getTarget:function(){return n}}};/*! License details at fancyapps.com/license */const Kr={showLoading:!0,preload:1},Kn="is-lazyloading",Qr="is-lazyloaded",Jr="has-lazyerror",e1=()=>{let t;function n(){const r=t==null?void 0:t.getOptions().Lazyload;return Ze(r)?Object.assign(Object.assign({},Kr),r):Kr}function a(r){var i;const s=r.el;if(!s)return;const l="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",c=Array.from(s.querySelectorAll(l));s.matches(l)&&c.push(s);for(const u of c){const d=u.dataset.lazySrc,h=u.dataset.lazySrcset,f=u.dataset.lazySizes,g=u.dataset.lazyBg,m=(u instanceof HTMLImageElement||u instanceof HTMLSourceElement)&&(d||h),p=u instanceof HTMLElement&&g;if(!m&&!p)continue;const y=d||h||g;if(y){if(m&&y){const k=(i=u.parentElement)===null||i===void 0?void 0:i.classList.contains("f-panzoom__wrapper");n().showLoading&&(t==null||t.showLoading(r)),u.addEventListener("load",()=>{t==null||t.hideLoading(r),Qe(u,Jr),u instanceof HTMLImageElement?u.decode().then(()=>{Qe(u,Kn),Ee(u,Qr)}):(Qe(u,Kn),Ee(u,Qr)),k||t==null||t.emit("lazyLoad:loaded",r,u,y)}),u.addEventListener("error",()=>{t==null||t.hideLoading(r),Qe(u,Kn),Ee(u,Jr),k||t==null||t.emit("lazyLoad:error",r,u,y)}),u.classList.add("f-lazyload"),u.classList.add(Kn),k||t==null||t.emit("lazyLoad:load",r,u,y),d&&(u.src=d),h&&(u.srcset=h),f&&(u.sizes=f)}else p&&(document.body.contains(u)||(document.createElement("img").src=g),u.style.backgroundImage=`url('${g}')`);delete u.dataset.lazySrc,delete u.dataset.lazySrcset,delete u.dataset.lazySizes,delete u.dataset.lazyBg}}}function o(){if(!t)return;const r=[...t.getVisibleSlides()],i=n().preload;if(i>0){const s=t.getPosition(),l=t.getViewportDim();r.push(...t.getVisibleSlides(s+l*i),...t.getVisibleSlides(s-l*i))}for(const s of r)a(s)}return{init:function(r){t=r,t.on("render",o)},destroy:function(){t==null||t.off("render",o),t=void 0}}};/*! License details at fancyapps.com/license */const t1='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',n1="</svg>",a1={prevTpl:t1+'<path d="M15 3l-9 9 9 9"></path>'+n1,nextTpl:t1+'<path d="M9 3l9 9-9 9"></path>'+n1},G3=()=>{let t,n,a;function o(){const l=t==null?void 0:t.getOptions().Arrows;return Ze(l)?Object.assign(Object.assign({},a1),l):a1}function r(l){if(!t)return;const c=`<button data-carousel-go-${l} tabindex="0" class="f-button is-arrow is-${l}" title="{{${l.toUpperCase()}}}">`+o()[`${l}Tpl`]+"</button",u=wt(t.localize(c))||void 0;return u&&Ee(u,o()[`${l}Class`]),u}function i(){var l;n==null||n.remove(),n=void 0,a==null||a.remove(),a=void 0,(l=t==null?void 0:t.getContainer())===null||l===void 0||l.classList.remove("has-arrows")}function s(){t&&t.getOptions().Arrows!==!1&&t.getPages().length>1?(function(){if(!t)return;const l=t.getViewport();l&&(n||(n=r("prev"),n&&l.insertAdjacentElement("beforebegin",n)),a||(a=r("next"),a&&l.insertAdjacentElement("afterend",a)),Ye(t.getContainer(),"has-arrows",!(!n&&!a)))}(),t&&(n==null||n.toggleAttribute("aria-disabled",!t.canGoPrev()),a==null||a.toggleAttribute("aria-disabled",!t.canGoNext()))):i()}return{init:function(l){t=l.on(["change","refresh"],s)},destroy:function(){i(),t==null||t.off(["change","refresh"],s),t=void 0}}};/*! License details at fancyapps.com/license */const o1='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',_a='<g><line x1="11" y1="8" x2="11" y2="14"></line></g>'+o1,I3={moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",o1],zoomIn:["zoomIn","ZOOM_IN",_a],toggleFull:["toggleFull","TOGGLE_FULL",_a],iterateZoom:["iterateZoom","ITERATE_ZOOM",_a],toggle1to1:["toggleFull","TOGGLE_FULL",'<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'],rotateCW:["rotateCW","ROTATE_CW",'<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>']},Ra={};for(const[t,n]of Object.entries(I3))Ra[t]={tpl:`<button data-panzoom-action="${n[0]}" class="f-button" title="{{${n[1]}}}"><svg>${n[2]}</svg></button>`};/*! License details at fancyapps.com/license */var r1;(function(t){t.Left="left",t.middle="middle",t.right="right"})(r1||(r1={}));const i1=Object.assign({counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},Ra),s1={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},l1=()=>{let t,n;function a(r){const i=t==null?void 0:t.getOptions().Toolbar;let s=(Ze(i)?Object.assign(Object.assign({},s1),i):s1)[r];return s&&typeof s=="function"&&t?s(t):s}function o(){var r,i;if(!(t!=null&&t.getOptions().Toolbar)||!t||n)return;const s=t.getContainer();if(!s)return;let l=a("enabled");if(!l)return;const c=a("absolute"),u=t.getSlides().length>1;let d=!1,h=!1;for(const k of t.getSlides())k.panzoomRef&&(d=!0),(k.downloadSrc||k.type==="image"&&k.src)&&(h=!0);const f=((r=t.getPlugins().Thumbs)===null||r===void 0?void 0:r.isEnabled())||!1,g=u&&t.getPlugins().Autoplay||!1,m=t.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=d),!l)return;n=s.querySelector(".f-carousel__toolbar")||void 0,n||(n=document.createElement("div"),n.classList.add("f-carousel__toolbar"));const p=a("display"),y=ot({},i1,a("items"));for(const k of["left","middle","right"]){const b=p[k]||[],x=document.createElement("div");x.classList.add("f-carousel__toolbar__column"),x.classList.add(`is-${k}`);for(const C of b){let M;if(Te(C)){if(C==="counter"&&!u||C==="autoplay"&&!g||Ra[C]&&!d||C==="fullscreen"&&!m||C==="thumbs"&&!f||C==="download"&&!h)continue;M=y[C]}if(Ze(C)&&(M=C),M&&M.tpl){let D=t.localize(M.tpl);D=D.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const H=wt(D);H&&(typeof M.click=="function"&&t&&H.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation(),typeof M.click=="function"&&t&&M.click(t,S)}),x.append(H))}}n.append(x)}if(n.childElementCount){if(c&&n.classList.add("is-absolute"),!n.parentElement){const k=a("parentEl");k?k.insertAdjacentElement("afterbegin",n):(i=t.getViewport())===null||i===void 0||i.insertAdjacentElement("beforebegin",n)}s.contains(n)&&s.classList.add("has-toolbar")}}return{init:function(r){t=r,t==null||t.on("initSlides",o)},destroy:function(){var r;t==null||t.off("initSlides",o),(r=t==null?void 0:t.getContainer())===null||r===void 0||r.classList.remove("has-toolbar"),n==null||n.remove(),n=void 0},add:function(r,i){i1[r]=i},isEnabled:function(){return!!n}}};/*! License details at fancyapps.com/license */const c1={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},q3=()=>{let t,n,a=!1,o=!1,r=!1,i=null;function s(M){const D=t==null?void 0:t.getOptions().Autoplay;let H=(Ze(D)?Object.assign(Object.assign({},c1),D):c1)[M];return H&&typeof H=="function"&&t?H(t):H}function l(){clearTimeout(n),n=void 0}function c(){if(!t||!a||r||o||n||!t.isSettled()||function(){var D;const H=((D=t==null?void 0:t.getPage())===null||D===void 0?void 0:D.slides)||[];for(const S of H)if(S.state===0)return!0;return!1}())return;(function(){var D,H,S,w;if(!t||(h(),!s("showProgressbar")))return;let T=s("progressbarParentEl");if(!T&&(!((D=t.getPlugins().Toolbar)===null||D===void 0)&&D.isEnabled())&&(T=t.getContainer()),!T&&((H=t.getPlugins().Toolbar)===null||H===void 0?void 0:H.isEnabled())!==!0){const N=((S=t.getPages()[0])===null||S===void 0?void 0:S.slides)||[],B=((w=t.getPage())===null||w===void 0?void 0:w.slides)||[];N.length===1&&B.length===1&&(T=B[0].el)}if(T||(T=t.getViewport()),!T)return;i=document.createElement("div"),Ee(i,"f-progressbar"),T.prepend(i);const V=s("timeout")||1e3;i.style.animationDuration=`${V}ms`})();const M=s("timeout");n=setTimeout(()=>{t&&a&&!o&&(t.isInfinite()||t.getPageIndex()!==t.getPages().length-1?t.next():t.goTo(0))},M)}function u(){var M;if(!t||t.getPages().length<2||t.getOptions().Autoplay===!1||a)return;a=!0,t.emit("autoplay:start",s("timeout")),Ee(t.getContainer(),"has-autoplay"),(M=t.getTween())===null||M===void 0||M.on("start",k);const D=t==null?void 0:t.getContainer();D&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(D.addEventListener("mouseenter",b,!1),D.addEventListener("mouseleave",x,!1)),t.on("change",p),t.on("settle",y),t.on("contentReady",g),t.on("panzoom:touchStart",d),t.on("panzoom:wheel",d),t.isSettled()&&c()}function d(){var M;if(l(),h(),t){if(a){t.emit("autoplay:end"),(M=t.getTween())===null||M===void 0||M.off("start",k);const D=t.getContainer();D&&(D.classList.remove("has-autoplay"),D.removeEventListener("mouseenter",b,!1),D.removeEventListener("mouseleave",x,!1))}t.off("change",p),t.off("settle",y),t.off("contentReady",g),t.off("panzoom:touchStart",d),t.off("panzoom:wheel",d)}a=!1,o=!1}function h(){i&&(i.remove(),i=null)}function f(){t&&t.getPages().length>1&&s("autoStart")&&u()}function g(){c()}function m(M,D){const H=D.target;H&&!D.defaultPrevented&&H.dataset.autoplayAction==="toggle"&&C.toggle()}function p(){!t||!(t!=null&&t.isInfinite())&&t.getPageIndex()===t.getPages().length-1?d():(h(),l())}function y(){c()}function k(){l(),h()}function b(){r=!0,a&&(h(),l())}function x(){r=!1,a&&!o&&(t!=null&&t.isSettled())&&c()}const C={init:function(M){t=M,t.on("ready",f),t.on("click",m)},destroy:function(){d(),t==null||t.off("ready",f),t==null||t.off("click",m),t=void 0},isEnabled:()=>a,pause:function(){o=!0,l()},resume:function(){o=!1,a&&!r&&c()},start(){u()},stop(){d()},toggle(){a?d():u()}};return C};/*! License details at fancyapps.com/license */const Ha={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let za;const W3=()=>{let t,n,a,o,r,i=0,s=0,l=!0;function c(B){const v=t==null?void 0:t.getOptions().Thumbs;let P=(Ze(v)?Object.assign(Object.assign({},Ha),v):Ha)[B];return P&&typeof P=="function"&&t?P(t):P}function u(){if(!t||(t==null?void 0:t.getOptions().Thumbs)===!1)return!1;let B=0;for(const v of t.getSlides())v.thumbSrc&&B++;return B>=c("minCount")}function d(){return c("type")==="modern"}function h(){return c("type")==="scrollable"}function f(){const B=[],v=(t==null?void 0:t.getSlides())||[];for(const P of v)B.push({index:P.index,class:P.thumbClass,html:g(P)});return B}function g(B){const v=B.thumb?B.thumb instanceof HTMLImageElement?B.thumb.src:B.thumb:B.thumbSrc||void 0,P=B.thumbAlt===void 0?`Thumbnail #${B.index}`:B.thumbAlt+"";let Z=c("thumbTpl");return Z=zt(Z,"{{alt}}",P),Z=zt(Z,"{{src}}",v+""),Z=zt(Z,"{{index}}",`${B.index}`),Z=zt(Z,"{{page}}",`${B.index||1}`),Z}function m(B){return`<div index="${B.index||0}" class="f-thumbs__slide ${B.class||""}">${B.html||""}</div>`}function p(B=!1){var v;const P=t==null?void 0:t.getContainer();if(!t||!P||a||!u())return;const Z=((v=c("Carousel"))===null||v===void 0?void 0:v.classes)||{};if(Z.container=Z.container||"f-thumbs",!a){const Q=P.nextElementSibling;Q!=null&&Q.classList.contains(Z.container)&&(a=Q)}if(!a){a=document.createElement("div");const Q=c("parentEl");Q?Q.insertAdjacentElement("beforeend",a):P.insertAdjacentElement("afterend",a)}Ee(a,Z.container),Ee(a,"f-thumbs"),Ee(a,`is-${c("type")}`),B&&Ee(a,"is-hidden")}function y(){if(!a||!h())return;o=document.createElement("div"),Ee(o,"f-thumbs__viewport");let B="";for(const v of f())typeof(v.html||"")=="string"&&(B+=m(v));o.innerHTML=B,a.append(o),a.addEventListener("click",v=>{v.preventDefault();const P=v.target.closest("[index]"),Z=parseInt((P==null?void 0:P.getAttribute("index"))||"-1");t&&Z>-1&&t.goTo(Z)}),r=new IntersectionObserver(v=>{v.forEach(P=>{P.isIntersecting&&P.target instanceof HTMLImageElement&&(P.target.src=P.target.getAttribute("data-lazy-src")+"",P.target.removeAttribute("data-lazy-src"),r==null||r.unobserve(P.target))})},{root:o,rootMargin:"100px"}),a.querySelectorAll("[data-lazy-src]").forEach(v=>{r==null||r.observe(v)}),t==null||t.emit("thumbs:ready")}function k(){var B;if(!za||!t||!a||h()||n)return;const v=f();if(!v.length)return;const P=ot({},{Sync:{target:t},Lazyload:{preload:1},slides:v,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!d(),infinite:!1,dragFree:!0,rtl:t.getOptions().rtl||!1,slidesPerPage:Z=>{let Q=0;return d()&&(function(){if(!d()||!a)return;const J=O=>a&&parseFloat(getComputedStyle(a).getPropertyValue("--f-thumb-"+O))||0;i=J("width"),s=J("clip-width")}(),Q=4*(i-s)),Z&&Z.getTotalSlideDim()<=Z.getViewportDim()-Q?1/0:1}},Ha.Carousel||{},c("Carousel")||{});n=za(a,P,{Sync:Xr,Lazyload:e1}),n.on("ready",()=>{Ee(a,"is-syncing"),t==null||t.emit("thumbs:ready"),d()&&(t==null||t.on("render",M))}),n.on("destroy",()=>{t==null||t.emit("thumbs:destroy")}),n.init(),(B=n.getGestures())===null||B===void 0||B.on("start",()=>{l=!1}),n.on("click",(Z,Q)=>{const J=Q.target;if(J){const O=J.matches("button")?J:J.firstElementChild;O&&O.matches("button")&&(Q.preventDefault(),O.focus({preventScroll:!0}))}}),Ee(t.getContainer(),"has-thumbs"),N()}function b(){u()&&c("showOnStart")&&(p(),y())}function x(){var B;u()&&(k(),t==null||t.on("addSlide",H),t==null||t.on("removeSlide",S),t==null||t.on("click",w),t==null||t.on("refresh",T),(B=t==null?void 0:t.getGestures())===null||B===void 0||B.on("start",C),V(!0))}function C(){var B,v;l=!0,!((B=document.activeElement)===null||B===void 0)&&B.closest(".f-thumbs")&&((v=document.activeElement)===null||v===void 0||v.blur())}function M(){var B,v;a==null||a.classList.toggle("is-syncing",(t==null?void 0:t.hasNavigated())===!1||((B=t==null?void 0:t.getTween())===null||B===void 0?void 0:B.isRunning())),N(),!((v=t==null?void 0:t.getGestures())===null||v===void 0)&&v.isPointerDown()&&function(){if(!d()||!t||!n||!l)return;const P=n.getTween(),Z=n.getPages(),Q=t.getPageIndex()||0,J=t.getPageProgress()||0;if(!(t&&Z&&Z[Q]&&P))return;const O=P.isRunning()?P.getCurrentValues().pos:n.getPosition();if(O===void 0)return;let R=Z[Q].pos+J*(i-s);R=Be(Z[0].pos,R,Z[Z.length-1].pos),P.from({pos:O}).to({pos:R}).start()}()}function D(){l=!0,V()}function H(B,v){const P={html:g(v)};if(n)n.add(P,v.index);else if(o){const Z=wt(m(P));if(Z){o.append(Z);const Q=Z.querySelector("img");Q&&(r==null||r.observe(Q))}}}function S(B,v){var P;n?n.remove(v.index):o&&((P=o.querySelector(`[index="${v.index}"]`))===null||P===void 0||P.remove())}function w(B,v){var P;const Z=v.target;v.defaultPrevented||((P=Z==null?void 0:Z.dataset)===null||P===void 0?void 0:P.thumbsAction)!=="toggle"||(a||(p(!0),y(),k()),a&&a.classList.toggle("is-hidden"))}function T(){V()}function V(B=!1){if(!t||!o||!h())return;const v=t.getPageIndex();o.querySelectorAll(".is-selected").forEach(Z=>{Z.classList.remove("is-selected")});const P=o.querySelector(`[index="${v}"]`);if(P){P.classList.add("is-selected");const Z=o.getBoundingClientRect(),Q=P.getBoundingClientRect(),J=P.offsetTop-o.offsetTop-.5*Z.height+.5*Q.height,O=P.scrollLeft-o.scrollLeft-.5*Z.width+.5*Q.width;o.scrollTo({top:J,left:O,behavior:B?"instant":"smooth"})}}function N(){if(!d()||!t||!n)return;const B=(n==null?void 0:n.getSlides())||[];let v=-.5*i;for(const P of B){const Z=P.el;if(!Z)continue;let Q=t.getPageProgress(P.index)||0;Q=Math.max(-1,Math.min(1,Q)),Q>-1&&Q<1&&(v+=.5*i*(1-Math.abs(Q))),Q=Math.round(1e4*Q)/1e4,v=Math.round(1e4*v)/1e4,Z.style.setProperty("--progress",`${Math.abs(Q)}`),Z.style.setProperty("--shift",`${t!=null&&t.isRTL()?-1*v:v}px`),Q>-1&&Q<1&&(v+=.5*i*(1-Math.abs(Q)))}}return{init:function(B,v){za=v,t=B,t.on("ready",x),t.on("initSlides",b),t.on("change",D)},destroy:function(){var B,v;h()&&(t==null||t.emit("thumbs:destroy")),t==null||t.off("ready",x),t==null||t.off("initSlides",b),t==null||t.off("change",D),t==null||t.off("render",M),t==null||t.off("addSlide",H),t==null||t.off("click",w),t==null||t.off("refresh",T),(B=t==null?void 0:t.getGestures())===null||B===void 0||B.off("start",C),(v=t==null?void 0:t.getContainer())===null||v===void 0||v.classList.remove("has-thumbs"),t=void 0,n==null||n.destroy(),n=void 0,a==null||a.remove(),a=void 0},getCarousel:function(){return n},getContainer:function(){return a},getType:function(){return c("type")},isEnabled:u}};/*! License details at fancyapps.com/license */const d1={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},U3=()=>{let t;function n(r,i){let s=i.src;if(!Te(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);c&&(s=`https://maps.google.${c[1]}/?ll=${(c[2]?c[2]+"&z="+Math.floor(parseFloat(c[3]))+(c[4]?c[4].replace(/^\//,"&"):""):c[4]+"").replace(/\?/,"&")}&output=${c[4]&&c[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);c&&(s=`https://maps.google.${c[1]}/maps?q=${c[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function a(r,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!t||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[u,d]of Object.entries(function(){const h=t==null?void 0:t.getOptions().Html;return Ze(h)?Object.assign(Object.assign({},d1),h):d1}().iframeAttr||{}))l.setAttribute(u,d);l.onerror=()=>{t&&t.getState()===1&&t.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const c=document.createElement("div");if(c.classList.add("f-html"),c.append(l),s.width){let u=`${s.width}`;u.match(/^\d+$/)&&(u+="px"),c.style.maxWidth=`${u}`}if(s.height){let u=`${s.height}`;u.match(/^\d+$/)&&(u+="px"),c.style.maxHeight=`${u}`}if(s.aspectRatio){const u=s.el.getBoundingClientRect();c.style.aspectRatio=`${s.aspectRatio}`,c.style[u.width>u.height?"width":"height"]="auto",c.style[u.width>u.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=c,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(c),t.emit("contentReady",s)}(i)}function o(r,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(t==null||t.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(r){t=r,t.on("addSlide",n),t.on("attachSlideEl",a),t.on("detachSlideEl",o)},destroy:function(){t==null||t.off("addSlide",n),t==null||t.off("attachSlideEl",a),t==null||t.off("detachSlideEl",o),t=void 0}}};/*! License details at fancyapps.com/license */const u1=(t,n={})=>{const a=new URL(t),o=new URLSearchParams(a.search),r=new URLSearchParams;for(const[l,c]of[...o,...Object.entries(n)]){let u=c+"";if(l==="t"){let d=u.match(/((\d*)m)?(\d*)s?/);d&&r.set("start",60*parseInt(d[2]||"0")+parseInt(d[3]||"0")+"")}else r.set(l,u)}let i=r+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},m1={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
10
- <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Z3=()=>{let t,n=!1;function a(){const f=t==null?void 0:t.getOptions().Video;return Ze(f)?Object.assign(Object.assign({},m1),f):m1}function o(){var f;return(f=t==null?void 0:t.getPage())===null||f===void 0?void 0:f.slides[0]}const r=f=>{var g;try{let m=JSON.parse(f.data);if(f.origin==="https://player.vimeo.com"){if(m.event==="ready")for(let p of Array.from(((g=t==null?void 0:t.getContainer())===null||g===void 0?void 0:g.getElementsByClassName("f-iframe"))||[]))p instanceof HTMLIFrameElement&&p.contentWindow===f.source&&(p.dataset.ready="true")}else if(f.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&m.event==="onReady"){const p=document.getElementById(m.id);p&&(p.dataset.ready="true")}}catch{}};function i(f,g){const m=g.src;if(!Te(m))return;let p=g.type;if(!p||p==="html5video"){const y=m.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);y&&(p="html5video",g.html5videoFormat=g.html5videoFormat||"video/"+(y[1]==="ogv"?"ogg":y[1]))}if(!p||p==="youtube"){const y=m.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(y){const k=Object.assign(Object.assign({},a().youtube),g.youtube||{}),b=`www.youtube${k.nocookie?"-nocookie":""}.com`,x=u1(m,k),C=encodeURIComponent(y[2]);g.videoId=C,g.src=`https://${b}/embed/${C}?${x}`,g.thumb=g.thumb||`https://i.ytimg.com/vi/${C}/mqdefault.jpg`,p="youtube"}}if(!p||p==="vimeo"){const y=m.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(y){const k=Object.assign(Object.assign({},a().vimeo),g.vimeo||{}),b=u1(m,k),x=encodeURIComponent(y[2]),C=y[5]||"";g.videoId=x,g.src=`https://player.vimeo.com/video/${x}?${C?`h=${C}${b?"&":""}`:""}${b}`,p="vimeo"}}g.type=p}function s(f,g){g.type==="html5video"&&function(m){if(!t||!m.el||!m.src)return;const{el:p,src:y}=m;if(!p||!y)return;const k=m.html5videoTpl||a().html5videoTpl,b=m.html5videoFormat||a().html5videoFormat;if(!k)return;const x=m.poster||(m.thumb&&Te(m.thumb)?m.thumb:""),C=wt(k.replace(/\{\{src\}\}/gi,y+"").replace(/\{\{format\}\}/gi,b||"").replace(/\{\{poster\}\}/gi,x+""));if(!C)return;const M=document.createElement("div");M.classList.add("f-html"),M.append(C),m.contentEl=C,m.htmlEl=M,p.classList.add(`has-${m.type}`),p.prepend(M),d(m),t.emit("contentReady",m)}(g),g.type!=="youtube"&&g.type!=="vimeo"||function(m){if(!t||!m.el||!m.src)return;const p=document.createElement("iframe");p.classList.add("f-iframe"),p.setAttribute("id",`f-iframe_${m.videoId}`);for(const[k,b]of Object.entries(a().iframeAttr||{}))p.setAttribute(k,b);p.onload=()=>{var k;t&&t.getState()===1&&m.type==="youtube"&&((k=p.contentWindow)===null||k===void 0||k.postMessage(JSON.stringify({event:"listening",id:p.getAttribute("id")}),"*"))},p.onerror=()=>{t&&t.getState()===1&&(t==null||t.showError(m,"{{IFRAME_ERROR}}"))},p.src=m.src;const y=document.createElement("div");y.classList.add("f-html"),y.append(p),m.contentEl=p,m.htmlEl=y,m.el.classList.add("has-html"),m.el.classList.add("has-iframe"),m.el.classList.add(`has-${m.type}`),m.el.prepend(y),d(m),t.emit("contentReady",m)}(g)}function l(f,g){var m,p;g.type!=="html5video"&&g.type!=="youtube"&&g.type!=="vimeo"||((m=g.contentEl)===null||m===void 0||m.remove(),g.contentEl=void 0,(p=g.htmlEl)===null||p===void 0||p.remove(),g.htmlEl=void 0),g.poller&&clearTimeout(g.poller)}function c(){n=!1}function u(){if(n)return;n=!0;const f=o();(f&&f.autoplay!==void 0?f.autoplay:a().autoplay)&&(function(){var g;const m=o(),p=m==null?void 0:m.el;if(p&&(m==null?void 0:m.type)==="html5video")try{const k=p.querySelector("video");if(k){const b=k.play();b!==void 0&&b.then(()=>{}).catch(x=>{k.muted=!0,k.play()})}}catch{}const y=m==null?void 0:m.htmlEl;y instanceof HTMLIFrameElement&&((g=y.contentWindow)===null||g===void 0||g.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const g=o(),m=g==null?void 0:g.type;if(!(g!=null&&g.el)||m!=="youtube"&&m!=="vimeo")return;const p=()=>{if(g.contentEl&&g.contentEl instanceof HTMLIFrameElement&&g.contentEl.contentWindow){let y;if(g.contentEl.dataset.ready==="true")return y=g.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},y&&g.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"),void(g.poller=void 0);g.type==="youtube"&&(y={event:"listening",id:g.contentEl.getAttribute("id")},g.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"))}g.poller=setTimeout(p,250)};p()}())}function d(f){const g=f==null?void 0:f.htmlEl;if(f&&g&&(f.type==="html5video"||f.type==="youtube"||f.type==="vimeo")){if(g.style.aspectRatio="",g.style.width="",g.style.height="",g.style.maxWidth="",g.style.maxHeight="",f.width){let m=`${f.width}`;m.match(/^\d+$/)&&(m+="px"),g.style.maxWidth=`${m}`}if(f.height){let m=`${f.height}`;m.match(/^\d+$/)&&(m+="px"),g.style.maxHeight=`${m}`}if(f.aspectRatio){const m=f.aspectRatio.split("/"),p=parseFloat(m[0].trim()),y=m[1]?parseFloat(m[1].trim()):0,k=p&&y?p/y:p;g.offsetHeight;const b=g.getBoundingClientRect(),x=k<(b.width||1)/(b.height||1);g.style.aspectRatio=`${f.aspectRatio}`,g.style.width=x?"auto":"",g.style.height=x?"":"auto"}}}function h(){d(o())}return{init:function(f){t=f,t.on("addSlide",i),t.on("attachSlideEl",s),t.on("detachSlideEl",l),t.on("ready",u),t.on("change",c),t.on("settle",u),t.on("refresh",h),window.addEventListener("message",r)},destroy:function(){t==null||t.off("addSlide",i),t==null||t.off("attachSlideEl",s),t==null||t.off("detachSlideEl",l),t==null||t.off("ready",u),t==null||t.off("change",c),t==null||t.off("settle",u),t==null||t.off("refresh",h),window.removeEventListener("message",r),t=void 0}}};/*! License details at fancyapps.com/license */const f1={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},h1="in-fullscreen-mode",Y3=()=>{let t;function n(d){const h=t==null?void 0:t.getOptions().Fullscreen;let f=(Ze(h)?Object.assign(Object.assign({},f1),h):f1)[d];return f&&typeof f=="function"&&t?f(t):f}function a(){var d;(d=t==null?void 0:t.getPlugins().Toolbar)===null||d===void 0||d.add("fullscreen",{tpl:n("btnTpl")})}function o(){if(n("autoStart")){const d=i();d&&l(d)}}function r(d,h){const f=h.target;f&&!h.defaultPrevented&&f.dataset.fullscreenAction==="toggle"&&u()}function i(){return n("el")||(t==null?void 0:t.getContainer())||void 0}function s(){const d=document;return d.fullscreenEnabled?!!d.fullscreenElement:!!d.webkitFullscreenEnabled&&!!d.webkitFullscreenElement}function l(d){const h=document;let f;return d||(d=h.documentElement),h.fullscreenEnabled?f=d.requestFullscreen():h.webkitFullscreenEnabled&&(f=d.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),f&&f.then(()=>{d.classList.add(h1)}),f}function c(){const d=document;let h;return d.fullscreenEnabled?h=d.fullscreenElement&&d.exitFullscreen():d.webkitFullscreenEnabled&&(h=d.webkitFullscreenElement&&d.webkitExitFullscreen()),h&&h.then(()=>{var f;(f=i())===null||f===void 0||f.classList.remove(h1)}),h}function u(){if(s())c();else{const d=i();d&&l(d)}}return{init:function(d){t=d,t.on("initPlugins",a),t.on("ready",o),t.on("click",r)},destroy:function(){t==null||t.off("initPlugins",a),t==null||t.off("ready",o),t==null||t.off("click",r)},exit:c,inFullscreen:s,request:l,toggle:u}};/*! License details at fancyapps.com/license */let ft,Qn=!1,p1=!1,yn=!1,ja=!1;const Ga=()=>{const t=new URL(document.URL).hash,n=t.slice(1).split("-"),a=n[n.length-1],o=a&&/^\+?\d+$/.test(a)&&parseInt(n.pop()||"1",10)||1;return{urlHash:t,urlSlug:n.join("-"),urlIndex:o}},Ia=()=>{const t=ft==null?void 0:ft.getInstance();return!(!t||t.getState()!=1)},qa=()=>{if(!ft||Ia())return;const{urlSlug:t,urlIndex:n}=Ga();if(!t)return;let a=document.querySelector(`[data-slug="${t}"]`);a&&ft.fromTriggerEl(a),Ia()||(a=document.querySelectorAll(`[data-fancybox="${t}"]`)[n-1],a&&ft.fromTriggerEl(a,{startIndex:n-1})),a&&Ia()&&a.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},X3=()=>{if(!ft||yn)return;const t=ft==null?void 0:ft.getInstance(),n=t==null?void 0:t.getCarousel();if((t==null?void 0:t.getOptions().Hash)===!1)return;const{urlSlug:a,urlIndex:o}=Ga();if(t&&n){const r=n.getSlides();for(const i of r||[])if(a===i.slug||a===i.fancybox&&i.index===o-1)return void n.goTo(i.index);ja=!0,t.close(),ja=!1}qa()},g1=()=>{ft&&setTimeout(()=>{Qn=!0,qa(),Qn=!1,window.addEventListener("hashchange",X3,!1)},300)},Wa=()=>{let t,n="auto",a="";function o(){var s,l,c,u;if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const d=t.getCarousel();if(!d)return;const{urlHash:h,urlSlug:f}=Ga(),g=t.getSlide();if(!g)return;let m=g.slug||g.fancybox||"",p=parseInt(g.index+"",10)+1;if(!m)return;let y=g.slug?`#${g.slug}`:`#${m}-${p}`;if((((l=(s=t.getCarousel())===null||s===void 0?void 0:s.getPages())===null||l===void 0?void 0:l.length)||0)<2&&(y=`#${m}`),h!==y&&(a=h),history.scrollRestoration&&(n=history.scrollRestoration,history.scrollRestoration="manual"),d.on("change",r),Qn)return void((c=t.getOptions().sync)===null||c===void 0||c.goTo(((u=t.getCarousel())===null||u===void 0?void 0:u.getPageIndex())||0,{transition:!1}));const k=m!==f;try{window.history[k?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+y)}catch{}k&&(p1=!0)}function r(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(!s)return;let l=s.slug||s.fancybox||"",c=s.index+1,u=s.slug?`#${s.slug}`:`#${l}-${c}`;yn=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+u)}catch{}yn=!1}function i(){if(ja||!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(s&&s.fancybox){yn=!0;try{!p1||Qn||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+a):window.history.back()}catch{}yn=!1}}return{init:function(s){t=s,t.on("ready",o),t.on("close",i)},destroy:function(){t==null||t.off("ready",o),t==null||t.off("close",i);const s=t==null?void 0:t.getCarousel();s&&s.off("change",r),t=void 0,history.scrollRestoration&&n&&(history.scrollRestoration=n)}}};Wa.startFromUrl=qa,Wa.setup=function(t){ft||(ft=t,Xn()&&(/complete|interactive|loaded/.test(document.readyState)?g1():document.addEventListener("DOMContentLoaded",g1)))};/*! License details at fancyapps.com/license */const K3=Object.assign(Object.assign({},Oa),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const y1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';l1().add("close",{tpl:y1});const xt=t=>{t.cancelable&&t.preventDefault()},k1=(t=null,n="",a)=>{if(!t||!t.parentElement||!n)return void(a&&a());x1(t);const o=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",o),delete t.dataset.animationName,a&&a(),t.classList.remove(n))};t.dataset.animationName=n,t.addEventListener("animationend",o),Ee(t,n)},x1=t=>{t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))};var Ie;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.Destroyed=3]="Destroyed"})(Ie||(Ie={}));const kn={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:K3,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
9
+ data-lazy-src="{{src}}" alt="{{alt}}" />`},w3=()=>{let t;function n(u,h){const f=t==null?void 0:t.getOptions().Zoomable;let p=(Ze(f)?Object.assign(Object.assign({},Fr),f):Fr)[u];return p&&typeof p=="function"&&h?p(h):p}function a(){t&&(t.on("addSlide",i),t.on("removeSlide",s),t.on("attachSlideEl",l),t.on("click",r),t.on("change",o))}function o(){c()}function r(u,h){const f=h.target;f&&!h.defaultPrevented&&f.dataset.panzoomAction&&m(f.dataset.panzoomAction)}function i(u,h){if(!t)return;const f=h.el;if(!f)return;const p=h.src||h.lazySrc||"",d=h.alt||h.caption||`Image #${h.index}`,g=h.srcset||h.lazySrcset||"",x=h.sizes||h.lazySizes||"";if(p&&je(p)&&!h.html&&(!h.type||h.type==="image")){h.type="image";let v=n("tpl",h);v=Ct(v,"{{src}}",p+""),v=Ct(v,"{{alt}}",d+""),v=Ct(v,"{{srcset}}",g+""),v=Ct(v,"{{sizes}}",x+""),f.insertAdjacentHTML("afterbegin",v)}if(!f.querySelector(".f-panzoom__content"))return;const b=h.width&&h.width!=="auto"?parseFloat(h.width+""):"auto",k=h.height&&h.height!=="auto"?parseFloat(h.height+""):"auto",y=Sa(f,Object.assign({width:b,height:k,event:()=>t==null?void 0:t.getLastMouseMove(),classes:{container:"f-zoomable"}},n("Panzoom")));y.on("*",(v,C,...L)=>{t&&(C==="loading"&&(h.state=0),C==="loaded"&&(h.state=1),C==="error"&&(h.state=2,t==null||t.showError(h,"{{IMAGE_ERROR}}")),t.emit(`panzoom:${C}`,h,...L),C==="ready"&&t.emit("contentReady",h),h.index===t.getPageIndex()&&c())}),h.panzoomRef=y}function s(u,h){h.panzoomRef&&(h.panzoomRef.destroy(),h.panzoomRef=void 0)}function l(u,h){const f=h.panzoomRef;if(f)switch(f.getState()){case 0:f.init();break;case 3:f.execute(me.Reset,{velocity:0})}}function c(){var u;const h=t==null?void 0:t.getContainer();if(!h)return;const f=(u=t==null?void 0:t.getPage())===null||u===void 0?void 0:u.slides[0].panzoomRef,p=(f==null?void 0:f.canZoomIn())||!1,d=(f==null?void 0:f.canZoomOut())||!1,g=(f==null?void 0:f.isFullsize())||!1,x=!f||(f==null?void 0:f.getState())!==3;for(const b of(h==null?void 0:h.querySelectorAll("[data-panzoom-action]"))||[]){const k=b.dataset.panzoomAction;let y=!1;if(x)y=!0;else switch(k){case me.ZoomIn:p||(y=!0);break;case me.ZoomOut:d||(y=!0);break;case me.ToggleFull:p||d||(y=!0);const v=b.querySelector("g");v&&(v.style.display=g?"none":"");break;case me.ToggleCover:case me.ToggleMax:p||d||(y=!0)}y?(b.setAttribute("aria-disabled",""),b.setAttribute("tabindex","-1")):(b.removeAttribute("aria-disabled"),b.removeAttribute("tabindex"))}}function m(u,...h){var f;(f=t==null?void 0:t.getPage().slides[0].panzoomRef)===null||f===void 0||f.execute(u,...h)}return{init:function(u){t=u,t.getOptions().Zoomable!==!1&&t.on("initPlugins",a)},destroy:function(){if(t){t.off("addSlide",i),t.off("removeSlide",s),t.off("attachSlideEl",l),t.off("change",o);for(const u of t.getSlides())s(0,u)}t=void 0},execute:m}};/*! License details at fancyapps.com/license */const $r={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},Pr=()=>{let t,n;function a(){const p=t==null?void 0:t.getOptions().Sync;return Ze(p)?Object.assign(Object.assign({},$r),p):$r}function o(p){var d,g,x;t&&p&&(n=p,t.getOptions().classes=Object.assign(Object.assign({},t.getOptions().classes),{isSelected:""}),t.getOptions().initialSlide=((g=(d=n.getPage())===null||d===void 0?void 0:d.slides[0])===null||g===void 0?void 0:g.index)||0,a().syncOnChange&&t.on("change",s),a().syncOnClick&&t.on("click",c),a().syncOnHover&&((x=t.getViewport())===null||x===void 0||x.addEventListener("mouseover",m)),function(){!t||!n||(t.on("ready",i),t.on("refresh",u),n.on("change",l),n.on("filter",h))}())}function r(){const p=a().target;t&&p&&o(p)}function i(){f()}function s(){var p;if(t&&n){const d=((p=t.getPage())===null||p===void 0?void 0:p.slides)||[],g=n.getPageIndex(d[0].index||0);g>-1&&n.goTo(g,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function l(){var p;if(t&&n){const d=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);d>-1&&t.goTo(d,n.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function c(p,d){var g;if(!t||!n||!((g=t.getTween())===null||g===void 0)&&g.isRunning())return;const x=t==null?void 0:t.getOptions().classes.slide;if(!x)return;const b=x?d.target.closest(`.${x}`):null;if(b){const k=parseInt(b.getAttribute("index")||"")||0,y=n.getPageIndex(k);n.goTo(y)}}function m(p){t&&c(0,p)}function u(){var p;if(t&&n){const d=t.getPageIndex(((p=n.getPage())===null||p===void 0?void 0:p.slides[0].index)||0);d>-1&&t.goTo(d,{tween:!1,transition:!1}),f()}}function h(p,d){t&&n&&(t.filter(d),l())}function f(){var p,d,g;if(!n)return;const x=((d=(p=n.getPage())===null||p===void 0?void 0:p.slides[0])===null||d===void 0?void 0:d.index)||0;for(const b of(t==null?void 0:t.getSlides())||[])(g=b.el)===null||g===void 0||g.classList.toggle("is-selected",b.index===x)}return{init:function(p){t=p,t.on("initSlides",r)},destroy:function(){var p;t==null||t.off("ready",i),t==null||t.off("refresh",u),t==null||t.off("change",s),t==null||t.off("click",c),(p=t==null?void 0:t.getViewport())===null||p===void 0||p.removeEventListener("mouseover",m),n==null||n.off("change",l),n==null||n.off("filter",h),n=void 0,t==null||t.off("initSlides",r),t=void 0},getTarget:function(){return n}}};/*! License details at fancyapps.com/license */const Or={showLoading:!0,preload:1},On="is-lazyloading",_r="is-lazyloaded",Rr=()=>{let t;function n(){const r=t==null?void 0:t.getOptions().Lazyload;return Ze(r)?Object.assign(Object.assign({},Or),r):Or}function a(r){const i=r.el;if(!i)return;const s="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(i.querySelectorAll(s));i.matches(s)&&l.push(i);for(const c of l){const m=c.dataset.lazySrc,u=c.dataset.lazySrcset,h=c.dataset.lazySizes,f=c.dataset.lazyBg,p=(c instanceof HTMLImageElement||c instanceof HTMLSourceElement)&&(m||u),d=c instanceof HTMLElement&&f;if(!p&&!d)continue;const g=m||u||f;g&&(p&&g?(n().showLoading&&(t==null||t.showLoading(r)),c.addEventListener("load",()=>{t==null||t.hideLoading(r),c instanceof HTMLImageElement?c.decode().then(()=>{c.classList.remove(On),c.classList.add(_r)}):(c.classList.remove(On),c.classList.add(_r)),t==null||t.emit("lazyLoad:loaded",r,c,g)}),c.addEventListener("error",()=>{t==null||t.hideLoading(r),c.classList.remove(On),c.classList.add("has-lazyerror"),t==null||t.emit("lazyLoad:error",r,c,g)}),c.classList.add("f-lazyload"),c.classList.add(On),t==null||t.emit("lazyLoad:load",r,c,g),m&&(c.src=m),u&&(c.srcset=u),h&&(c.sizes=h)):d&&(document.body.contains(c)||(document.createElement("img").src=f),c.style.backgroundImage=`url('${f}')`),delete c.dataset.lazySrc,delete c.dataset.lazySrcset,delete c.dataset.lazySizes)}}function o(){if(!t)return;const r=n().preload,i=[...t.getVisibleSlides()],s=t.getPosition(),l=t.getViewportDim();i.push(...t.getVisibleSlides(s+l*r),...t.getVisibleSlides(s-l*r));for(const c of i||[])a(c)}return{init:function(r){t=r,t.on("render",o)},destroy:function(){t==null||t.off("render",o),t=void 0}}};/*! License details at fancyapps.com/license */const Hr={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},E3=()=>{let t,n,a;function o(s){if(!t)return;const l=`<button data-carousel-go-${s} tabindex="0" class="f-button is-arrow is-${s}" title="{{${s.toUpperCase()}}}">`+function(){const c=t==null?void 0:t.getOptions().Arrows;return Ze(c)?Object.assign(Object.assign({},Hr),c):Hr}()[`${s}Tpl`]+"</button";return kt(t.localize(l))||void 0}function r(){var s;n==null||n.remove(),n=void 0,a==null||a.remove(),a=void 0,(s=t==null?void 0:t.getContainer())===null||s===void 0||s.classList.remove("has-arrows")}function i(){t&&t.getOptions().Arrows!==!1&&t.getPages().length>1?(function(){if(!t)return;const s=t.getViewport();s&&(n||(n=o("prev"),n&&s.insertAdjacentElement("beforebegin",n)),a||(a=o("next"),a&&s.insertAdjacentElement("afterend",a)),vt(t.getContainer(),"has-arrows",!(!n&&!a)))}(),t&&(n==null||n.toggleAttribute("aria-disabled",!t.canGoPrev()),a==null||a.toggleAttribute("aria-disabled",!t.canGoNext()))):r()}return{init:function(s){t=s.on(["change","refresh"],i)},destroy:function(){r(),t==null||t.off(["change","refresh"],i),t=void 0}}};/*! License details at fancyapps.com/license */const zr={moveLeft:{tpl:'<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>'},moveRight:{tpl:'<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>'},moveUp:{tpl:'<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>'},moveDown:{tpl:'<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>'},zoomIn:{tpl:'<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>'},zoomOut:{tpl:'<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},toggle1to1:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg></button>'},toggleFull:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},rotateCCW:{tpl:'<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg></button>'},rotateCW:{tpl:'<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg></button>'},flipX:{tpl:'<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>'},flipY:{tpl:'<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>'},reset:{tpl:'<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg></button>'}};/*! License details at fancyapps.com/license */var jr;(function(t){t.Left="left",t.middle="middle",t.right="right"})(jr||(jr={}));const Gr=Object.assign({counter:{tpl:'<div class="f-carousel__counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},zr),qr={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Ir=()=>{let t,n;function a(){const r=t==null?void 0:t.getOptions().Toolbar;return Ze(r)?Object.assign(Object.assign({},qr),r):qr}function o(){var r,i,s;if(!(t!=null&&t.getOptions().Toolbar)||!t||n)return;let l=a().enabled;if(!l)return;let c=a().absolute;const m=t.getSlides().length>1;let u=!1,h=!1;for(const b of t.getSlides())b.panzoomRef&&(u=!0),(b.downloadSrc||b.type==="image"&&b.src)&&(h=!0);let f=((r=t.getPlugins().Thumbs)===null||r===void 0?void 0:r.isEnabled())||!1,p=m&&t.getPlugins().Autoplay||!1,d=t.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(l==="auto"&&(l=u),!l)return;n=document.createElement("div"),n.classList.add("f-carousel__toolbar");const g=a().display,x=ot({},Gr,a().items);for(const b of["left","middle","right"]){const k=g[b]||[],y=document.createElement("div");y.classList.add("f-carousel__toolbar__column"),y.classList.add(`is-${b}`);for(const v of k){let C;if(je(v)){if(v==="counter"&&!m||v==="autoplay"&&!p||zr[v]&&!u||v==="fullscreen"&&!d||v==="thumbs"&&!f||v==="download"&&!h)continue;C=x[v]}if(typeof v=="object"&&(C=v),C&&C.tpl){let L=t.localize(C.tpl);L=L.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const P=kt(L);P&&(typeof C.click=="function"&&t&&P.addEventListener("click",E=>{E.preventDefault(),E.stopPropagation(),typeof C.click=="function"&&t&&C.click(t,E)}),y.append(P))}}n.append(y)}n.childElementCount&&(c===!0&&n.classList.add("is-absolute"),(i=t.getContainer())===null||i===void 0||i.classList.add("has-toolbar"),(s=t.getViewport())===null||s===void 0||s.insertAdjacentElement("beforebegin",n))}return{init:function(r){t=r,t.on("initSlides",o)},destroy:function(){var r;t==null||t.off("initSlides",o),(r=t==null?void 0:t.getContainer())===null||r===void 0||r.classList.remove("has-toolbar"),n==null||n.remove(),n=void 0},add:function(r,i){Gr[r]=i},isEnabled:function(){return!!n}}};/*! License details at fancyapps.com/license */const Wr={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},v3=()=>{let t,n,a=!1,o=!1,r=!1,i=null;function s(L){const P=t==null?void 0:t.getOptions().Autoplay;let E=(Ze(P)?Object.assign(Object.assign({},Wr),P):Wr)[L];return E&&typeof E=="function"&&t?E(t):E}function l(){var L;const P=((L=t==null?void 0:t.getPage())===null||L===void 0?void 0:L.slides)||[];for(const E of P)if(E.state===0)return!0;return!1}function c(){clearTimeout(n),n=void 0}function m(){if(n||r||l()||!(t!=null&&t.isSettled()))return;(function(){var P,E,w,A;if(!t||(f(),!s("showProgressbar")))return;let S=s("progressbarParentEl");if(!S&&(!((P=t.getPlugins().Toolbar)===null||P===void 0)&&P.isEnabled())&&(S=t.getContainer()),!S&&((E=t.getPlugins().Toolbar)===null||E===void 0?void 0:E.isEnabled())!==!0){const N=((w=t.getPages()[0])===null||w===void 0?void 0:w.slides)||[],M=((A=t.getPage())===null||A===void 0?void 0:A.slides)||[];N.length===1&&M.length===1&&(S=M[0].el)}if(S||(S=t.getViewport()),!S)return;i=document.createElement("div"),i.classList.add("f-progressbar"),S.prepend(i);const B=s("timeout")||1e3;i.style.animationDuration=`${B}ms`})();const L=s("timeout");n=setTimeout(()=>{t&&a&&!o&&(t.isInfinite()||t.getPageIndex()!==t.getPages().length-1?t.next():t.goTo(0))},L)}function u(){var L,P;if(!t||t.getPages().length<2||t.getOptions().Autoplay===!1||a)return;a=!0,t.emit("autoplay:start",s("timeout")),(L=t.getContainer())===null||L===void 0||L.classList.add("has-autoplay"),(P=t.getTween())===null||P===void 0||P.on("start",k);const E=t==null?void 0:t.getContainer();E&&s("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(E.addEventListener("mouseenter",y,!1),E.addEventListener("mouseleave",v,!1)),t.on("change",x),t.on("settle",b),t.on("contentReady",d),t.on("panzoom:animationStart",h),t.isSettled()&&m()}function h(){var L,P;if(c(),f(),a&&t){t.emit("autoplay:end"),(L=t.getContainer())===null||L===void 0||L.classList.remove("has-autoplay"),(P=t.getTween())===null||P===void 0||P.off("start",k);const E=t==null?void 0:t.getContainer();E&&(E.removeEventListener("mouseenter",y,!1),E.removeEventListener("mouseleave",v,!1))}t&&(t.off("change",x),t.off("settle",b),t.off("contentReady",d),t.off("panzoom:animationStart",h)),a=!1,o=!1}function f(){i&&(i.remove(),i=null)}function p(){t&&t.getPages().length>1&&s("autoStart")&&u()}function d(L){t&&t.getPageIndex(L.index)===t.getPageIndex()&&(!a||r||l()||m())}function g(L,P){const E=P.target;E&&!P.defaultPrevented&&E.dataset.autoplayAction==="toggle"&&C.toggle()}function x(){!t||!(t!=null&&t.isInfinite())&&t.getPageIndex()===t.getPages().length-1?h():(f(),c())}function b(){!a||r||o||m()}function k(){c(),f()}function y(){r=!0,a&&(f(),c())}function v(){r=!1,a&&!o&&(t!=null&&t.isSettled())&&m()}const C={init:function(L){t=L,t.on("ready",p),t.on("click",g)},destroy:function(){h(),t==null||t.off("ready",p),t==null||t.off("click",g),t=void 0},isEnabled:()=>a,pause:function(){o=!0,c()},resume:function(){o=!1,a&&!r&&m()},start(){u()},stop(){h()},toggle(){a?h():u()}};return C};/*! License details at fancyapps.com/license */const Na={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let Aa;const C3=()=>{let t,n,a,o=0,r=0,i=!0;function s(y){const v=t==null?void 0:t.getOptions().Thumbs;let C=(Ze(v)?Object.assign(Object.assign({},Na),v):Na)[y];return C&&typeof C=="function"?C():C}function l(){if(!t||(t==null?void 0:t.getOptions().Thumbs)===!1)return!1;let y=0;for(const v of t.getSlides())v.thumbSrc&&y++;return y>=s("minCount")}function c(){return s("type")==="modern"}function m(y=!1){const v=t==null?void 0:t.getContainer();if(t&&v&&!a&&l()){if(!a){const C=v.nextElementSibling;C!=null&&C.classList.contains("f-thumbs")&&(a=C)}if(!a){a=document.createElement("div"),a.classList.add("f-thumbs");const C=s("parentEl");C?C.insertAdjacentElement("beforeend",a):v.insertAdjacentElement("afterend",a)}a.classList.add(`is-${s("type")}`),a.classList.add("is-syncing"),y&&(a.style.maxHeight="0px")}}function u(y){let v=y.thumb?y.thumb instanceof HTMLImageElement?y.thumb.src:y.thumb:y.thumbSrc||void 0,C=s("thumbTpl");return C=Ct(C,"{{alt}}",`Thumbnail #${y.index}`),C=Ct(C,"{{src}}",v+""),C=Ct(C,"{{index}}",`${y.index}`),C=Ct(C,"{{page}}",`${y.index||1}`),{html:C,class:y.thumbClass}}function h(){var y,v;if(!Aa||!t||!a||n)return;const C=[];for(const L of t.getSlides())C.push(u(L));C.length&&(n=Aa(a,ot({},{Sync:{target:t},Lazyload:{preload:1},slides:C,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},initialSlide:t.getOptions().initialPage,center:!0,fill:!c(),infinite:!1,dragFree:!0,rtl:t.getOptions().rtl||!1,slidesPerPage:L=>{let P=0;return c()&&(function(){if(!c()||!a)return;const E=w=>a&&parseFloat(getComputedStyle(a).getPropertyValue("--f-thumb-"+w))||0;o=E("width"),r=E("clip-width")}(),P=4*(o-r)),L&&L.getTotalSlideDim()<=L.getViewportDim()-P?1/0:1}},Na.Carousel||{},s("Carousel")||{}),{Sync:Pr,Lazyload:Rr}).init(),(y=n.getGestures())===null||y===void 0||y.on("start",()=>{i=!1}),n.on("click",(L,P)=>{const E=P.target;if(E){const w=E.matches("button")?E:E.firstElementChild;w&&w.matches("button")&&w.focus({})}}),(v=t.getContainer())===null||v===void 0||v.classList.add("has-thumbs"),k())}function f(){var y;l()&&(s("showOnStart")&&(m(),h()),(y=t==null?void 0:t.getGestures())===null||y===void 0||y.on("start",p),t==null||t.on("addSlide",x),t==null||t.on("click",b))}function p(){var y,v;i=!0,!((y=document.activeElement)===null||y===void 0)&&y.closest(".f-thumbs")&&((v=document.activeElement)===null||v===void 0||v.blur())}function d(){var y,v;a==null||a.classList.toggle("is-syncing",(t==null?void 0:t.hasNavigated())===!1||((y=t==null?void 0:t.getTween())===null||y===void 0?void 0:y.isRunning())),k(),!((v=t==null?void 0:t.getGestures())===null||v===void 0)&&v.isPointerDown()&&function(){if(!c()||!t||!n||!i)return;const C=n.getTween(),L=n.getPages(),P=t.getPageIndex()||0,E=t.getPageProgress()||0;if(!(t&&L&&L[P]&&C))return;const w=C.isRunning()?C.getCurrentValues().pos:n.getPosition();if(w===void 0)return;let A=L[P].pos+E*(o-r);A=Te(L[0].pos,A,L[L.length-1].pos),C.from({pos:w}).to({pos:A}).start()}()}function g(){i=!0}function x(y,v){n==null||n.add(u(v),v.index)}function b(y,v){const C=v.target;C&&!v.defaultPrevented&&C.dataset.thumbsAction==="toggle"&&function(){if(a||(m(!0),h()),!a)return;const L=a.style.maxHeight;a.style.maxHeight=L?"":"0px"}()}function k(){if(!c()||!t||!n)return;const y=(n==null?void 0:n.getSlides())||[];let v=-.5*o;for(const C of y){const L=C.el;if(!L)continue;let P=t.getPageProgress(C.index)||0;P=Math.max(-1,Math.min(1,P)),P>-1&&P<1&&(v+=.5*o*(1-Math.abs(P))),P=Math.round(1e4*P)/1e4,v=Math.round(1e4*v)/1e4,L.style.setProperty("--progress",`${Math.abs(P)}`),L.style.setProperty("--shift",`${t!=null&&t.isRTL()?-1*v:v}px`),P>-1&&P<1&&(v+=.5*o*(1-Math.abs(P)))}}return{init:function(y,v){Aa=v,t=y,t.on("ready",f),t.on("render",d),t.on("change",g)},destroy:function(){var y,v;t==null||t.off("ready",f),t==null||t.off("render",d),t==null||t.off("change",g),t==null||t.off("addSlide",x),t==null||t.off("click",b),(y=t==null?void 0:t.getGestures())===null||y===void 0||y.off("start",p),(v=t==null?void 0:t.getContainer())===null||v===void 0||v.classList.remove("has-thumbs"),t=void 0,n==null||n.destroy(),n=void 0,a==null||a.remove(),a=void 0},getContainer:function(){return a},isEnabled:function(){return l()}}};/*! License details at fancyapps.com/license */const Ur={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},S3=()=>{let t;function n(r,i){let s=i.src;if(!je(s))return;let l=i.type;if(!l){if(l||(s.charAt(0)==="#"?l="inline":s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?l="image":s.match(/\.(pdf)((\?|#).*)?$/i)?l="pdf":s.match(/\.(html|php)((\?|#).*)?$/i)&&(l="iframe")),!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);c&&(s=`https://maps.google.${c[1]}/?ll=${(c[2]?c[2]+"&z="+Math.floor(parseFloat(c[3]))+(c[4]?c[4].replace(/^\//,"&"):""):c[4]+"").replace(/\?/,"&")}&output=${c[4]&&c[4].indexOf("layer=c")>0?"svembed":"embed"}`,l="gmap")}if(!l){const c=s.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);c&&(s=`https://maps.google.${c[1]}/maps?q=${c[2].replace("query=","q=").replace("api=1","")}&output=embed`,l="gmap")}i.src=s,i.type=l}}function a(r,i){i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||function(s){if(!t||!s.el||!s.src)return;const l=document.createElement("iframe");l.classList.add("f-iframe");for(const[m,u]of Object.entries(function(){const h=t==null?void 0:t.getOptions().Html;return Ze(h)?Object.assign(Object.assign({},Ur),h):Ur}().iframeAttr||{}))l.setAttribute(m,u);l.onerror=()=>{t&&t.getState()===1&&t.showError(s,"{{IFRAME_ERROR}}")},l.src=s.src;const c=document.createElement("div");if(c.classList.add("f-html"),c.append(l),s.width){let m=`${s.width}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxWidth=`${m}`}if(s.height){let m=`${s.height}`;m.match(/^\d+$/)&&(m+="px"),c.style.maxHeight=`${m}`}if(s.aspectRatio){const m=s.el.getBoundingClientRect();c.style.aspectRatio=`${s.aspectRatio}`,c.style[m.width>m.height?"width":"height"]="auto",c.style[m.width>m.height?"maxWidth":"maxHeight"]="none"}s.contentEl=l,s.htmlEl=c,s.el.classList.add("has-html"),s.el.classList.add("has-iframe"),s.el.classList.add(`has-${s.type}`),s.el.prepend(c),t.emit("contentReady",s)}(i)}function o(r,i){var s,l;i.type!=="iframe"&&i.type!=="pdf"&&i.type!=="gmap"||(t==null||t.hideError(i),(s=i.contentEl)===null||s===void 0||s.remove(),i.contentEl=void 0,(l=i.htmlEl)===null||l===void 0||l.remove(),i.htmlEl=void 0)}return{init:function(r){t=r,t.on("addSlide",n),t.on("attachSlideEl",a),t.on("detachSlideEl",o)},destroy:function(){t==null||t.off("addSlide",n),t==null||t.off("attachSlideEl",a),t==null||t.off("detachSlideEl",o),t=void 0}}};/*! License details at fancyapps.com/license */const Zr=(t,n={})=>{const a=new URL(t),o=new URLSearchParams(a.search),r=new URLSearchParams;for(const[l,c]of[...o,...Object.entries(n)]){let m=c+"";if(l==="t"){let u=m.match(/((\d*)m)?(\d*)s?/);u&&r.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else r.set(l,m)}let i=r+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(i+=`#t=${s[1]}`),i},Yr={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
10
+ <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},B3=()=>{let t,n=!1;function a(){const f=t==null?void 0:t.getOptions().Video;return Ze(f)?Object.assign(Object.assign({},Yr),f):Yr}function o(){var f;return(f=t==null?void 0:t.getPage())===null||f===void 0?void 0:f.slides[0]}const r=f=>{var p;try{let d=JSON.parse(f.data);if(f.origin==="https://player.vimeo.com"){if(d.event==="ready")for(let g of Array.from(((p=t==null?void 0:t.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("f-iframe"))||[]))g instanceof HTMLIFrameElement&&g.contentWindow===f.source&&(g.dataset.ready="true")}else if(f.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&d.event==="onReady"){const g=document.getElementById(d.id);g&&(g.dataset.ready="true")}}catch{}};function i(f,p){const d=p.src;if(!je(d))return;let g=p.type;if(!g||g==="html5video"){const x=d.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);x&&(g="html5video",p.html5videoFormat=p.html5videoFormat||"video/"+(x[1]==="ogv"?"ogg":x[1]))}if(!g||g==="youtube"){const x=d.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(x){const b=Object.assign(Object.assign({},a().youtube),p.youtube||{}),k=`www.youtube${b.nocookie?"-nocookie":""}.com`,y=Zr(d,b),v=encodeURIComponent(x[2]);p.videoId=v,p.src=`https://${k}/embed/${v}?${y}`,p.thumb=p.thumb||`https://i.ytimg.com/vi/${v}/mqdefault.jpg`,g="youtube"}}if(!g||g==="vimeo"){const x=d.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(x){const b=Object.assign(Object.assign({},a().vimeo),p.vimeo||{}),k=Zr(d,b),y=encodeURIComponent(x[2]),v=x[5]||"";p.videoId=y,p.src=`https://player.vimeo.com/video/${y}?${v?`h=${v}${k?"&":""}`:""}${k}`,g="vimeo"}}p.type=g}function s(f,p){p.type==="html5video"&&function(d){if(!t||!d.el||!d.src)return;const{el:g,src:x}=d;if(!g||!x)return;const b=d.html5videoTpl||a().html5videoTpl,k=d.html5videoFormat||a().html5videoFormat;if(!b)return;const y=d.poster||(d.thumb&&je(d.thumb)?d.thumb:""),v=kt(b.replace(/\{\{src\}\}/gi,x+"").replace(/\{\{format\}\}/gi,k||"").replace(/\{\{poster\}\}/gi,y+""));if(!v)return;const C=document.createElement("div");C.classList.add("f-html"),C.append(v),d.contentEl=v,d.htmlEl=C,g.classList.add(`has-${d.type}`),g.prepend(C),u(d),t.emit("contentReady",d)}(p),p.type!=="youtube"&&p.type!=="vimeo"||function(d){if(!t||!d.el||!d.src)return;const g=document.createElement("iframe");g.classList.add("f-iframe"),g.setAttribute("id",`f-iframe_${d.videoId}`);for(const[b,k]of Object.entries(a().iframeAttr||{}))g.setAttribute(b,k);g.onload=()=>{var b;t&&t.getState()===1&&d.type==="youtube"&&((b=g.contentWindow)===null||b===void 0||b.postMessage(JSON.stringify({event:"listening",id:g.getAttribute("id")}),"*"))},g.onerror=()=>{t&&t.getState()===1&&(t==null||t.showError(d,"{{IFRAME_ERROR}}"))},g.src=d.src;const x=document.createElement("div");x.classList.add("f-html"),x.append(g),d.contentEl=g,d.htmlEl=x,d.el.classList.add("has-html"),d.el.classList.add("has-iframe"),d.el.classList.add(`has-${d.type}`),d.el.prepend(x),u(d),t.emit("contentReady",d)}(p)}function l(f,p){var d,g;p.type!=="html5video"&&p.type!=="youtube"&&p.type!=="vimeo"||((d=p.contentEl)===null||d===void 0||d.remove(),p.contentEl=void 0,(g=p.htmlEl)===null||g===void 0||g.remove(),p.htmlEl=void 0),p.poller&&clearTimeout(p.poller)}function c(){n=!1}function m(){if(n)return;n=!0;const f=o();(f&&f.autoplay!==void 0?f.autoplay:a().autoplay)&&(function(){var p;const d=o(),g=d==null?void 0:d.el;if(g&&(d==null?void 0:d.type)==="html5video")try{const b=g.querySelector("video");if(b){const k=b.play();k!==void 0&&k.then(()=>{}).catch(y=>{b.muted=!0,b.play()})}}catch{}const x=d==null?void 0:d.htmlEl;x instanceof HTMLIFrameElement&&((p=x.contentWindow)===null||p===void 0||p.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const p=o(),d=p==null?void 0:p.type;if(!(p!=null&&p.el)||d!=="youtube"&&d!=="vimeo")return;const g=()=>{if(p.contentEl&&p.contentEl instanceof HTMLIFrameElement&&p.contentEl.contentWindow){let x;if(p.contentEl.dataset.ready==="true")return x=p.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},x&&p.contentEl.contentWindow.postMessage(JSON.stringify(x),"*"),void(p.poller=void 0);p.type==="youtube"&&(x={event:"listening",id:p.contentEl.getAttribute("id")},p.contentEl.contentWindow.postMessage(JSON.stringify(x),"*"))}p.poller=setTimeout(g,250)};g()}())}function u(f){const p=f==null?void 0:f.htmlEl;if(f&&p&&(f.type==="html5video"||f.type==="youtube"||f.type==="vimeo")){if(p.style.aspectRatio="",p.style.width="",p.style.height="",p.style.maxWidth="",p.style.maxHeight="",f.width){let d=`${f.width}`;d.match(/^\d+$/)&&(d+="px"),p.style.maxWidth=`${d}`}if(f.height){let d=`${f.height}`;d.match(/^\d+$/)&&(d+="px"),p.style.maxHeight=`${d}`}if(f.aspectRatio){const d=f.aspectRatio.split("/"),g=parseFloat(d[0].trim()),x=d[1]?parseFloat(d[1].trim()):0,b=g&&x?g/x:g;p.offsetHeight;const k=p.getBoundingClientRect(),y=b<(k.width||1)/(k.height||1);p.style.aspectRatio=`${f.aspectRatio}`,p.style.width=y?"auto":"",p.style.height=y?"":"auto"}}}function h(){u(o())}return{init:function(f){t=f,t.on("addSlide",i),t.on("attachSlideEl",s),t.on("detachSlideEl",l),t.on("ready",m),t.on("change",c),t.on("settle",m),t.on("refresh",h),window.addEventListener("message",r)},destroy:function(){t==null||t.off("addSlide",i),t==null||t.off("attachSlideEl",s),t==null||t.off("detachSlideEl",l),t==null||t.off("ready",m),t==null||t.off("change",c),t==null||t.off("settle",m),t==null||t.off("refresh",h),window.removeEventListener("message",r),t=void 0}}};/*! License details at fancyapps.com/license */const Xr={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},Kr="in-fullscreen-mode",V3=()=>{let t;function n(h){const f=t==null?void 0:t.getOptions().Fullscreen;let p=(Ze(f)?Object.assign(Object.assign({},Xr),f):Xr)[h];return p&&typeof p=="function"&&t?p(t):p}function a(){var h;(h=t==null?void 0:t.getPlugins().Toolbar)===null||h===void 0||h.add("fullscreen",{tpl:n("btnTpl")})}function o(){if(n("autoStart")){const h=s();h&&c(h)}}function r(h,f){const p=f.target;p&&!f.defaultPrevented&&p.dataset.fullscreenAction==="toggle"&&u()}function i(h){s()&&h.key==="Escape"&&!h.defaultPrevented&&u()}function s(){return n("el")||(t==null?void 0:t.getContainer())||void 0}function l(){const h=document;return h.fullscreenEnabled?!!h.fullscreenElement:!!h.webkitFullscreenEnabled&&!!h.webkitFullscreenElement}function c(h){const f=document;let p;return h||(h=f.documentElement),f.fullscreenEnabled?p=h.requestFullscreen():f.webkitFullscreenEnabled&&(p=h.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),p&&p.then(()=>{h.classList.add(Kr)}),p}function m(){const h=document;let f;return h.fullscreenEnabled?f=h.fullscreenElement&&h.exitFullscreen():h.webkitFullscreenEnabled&&(f=h.webkitFullscreenElement&&h.webkitExitFullscreen()),f&&f.then(()=>{var p;(p=s())===null||p===void 0||p.classList.remove(Kr)}),f}function u(){const h=s();h&&(l()?m():c(h))}return{init:function(h){t=h,t.on("initPlugins",a),t.on("ready",o),t.on("click",r)},destroy:function(){t==null||t.off("initPlugins",a),t==null||t.off("ready",o),t==null||t.off("click",r),document.removeEventListener("keydown",i,!0)},exit:m,inFullscreen:l,request:c,toggle:u}};/*! License details at fancyapps.com/license */let ut,_n=!1,Qr=!1,an=!1,Ta=!1;const Rn=()=>{const t=new URL(document.URL).hash,n=t.slice(1).split("-"),a=n[n.length-1],o=a&&/^\+?\d+$/.test(a)&&parseInt(n.pop()||"1",10)||1;return{hash:t,slug:n.join("-"),index:o}},Da=()=>{if(!ut||ut.getInstance())return;const{slug:t,index:n}=Rn();if(!t)return;let a=document.querySelector(`[data-slug="${t}"]`);if(a&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!ut||ut.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${t}"]`);o.length&&(a=o[n-1],a&&a.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},M3=()=>{var t,n,a;if(!ut||an)return;const o=ut==null?void 0:ut.getInstance();if((o==null?void 0:o.getOptions().Hash)===!1)return;const{slug:r,index:i}=Rn(),s=((t=o==null?void 0:o.getSlide())===null||t===void 0?void 0:t.fancybox)||((n=o==null?void 0:o.getSlide())===null||n===void 0?void 0:n.slug)||void 0;o&&s&&(r===s?(a=o.getCarousel())===null||a===void 0||a.goTo(i-1):(Ta=!0,o.close(),Ta=!1)),Da()},Jr=()=>{ut&&setTimeout(()=>{_n=!0,Da(),_n=!1,window.addEventListener("hashchange",M3,!1)},300)},La=()=>{let t,n="auto",a="";function o(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getCarousel();if(!s)return;const{hash:l,slug:c}=Rn(),m=t.getSlide();if(!m)return;let u=m.fancybox||"",h=parseInt(m.index+"",10)+1;if(!u)return;let f=`#${u}-${h}`;if(l!==f&&(a=l),history.scrollRestoration&&(n=history.scrollRestoration,history.scrollRestoration="manual"),s.on("change",r),!_n)if(u===c)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+f)}catch{}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+f),Qr=!0}catch{}}function r(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const{slug:s}=Rn(),l=t.getSlide();if(!l)return;let c=l.fancybox||"",m=`#${c}-${l.index+1}`;if(c===s){an=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+m)}catch{}an=!1}}function i(){if(Ta||!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const s=t.getSlide();if(s&&s.fancybox){an=!0;try{!Qr||_n||function(){if(window.parent===window)return!1;try{var l=window.frameElement}catch{l=null}return l===null?location.protocol==="data:":l.hasAttribute("sandbox")}()?window.history.replaceState({},document.title,window.location.pathname+window.location.search+a):window.history.back()}catch{}an=!1}}return{init:function(s){t=s,t.on("ready",o),t.on("close",i)},destroy:function(){t==null||t.off("ready",o),t==null||t.off("close",i);const s=t==null?void 0:t.getCarousel();s&&s.off("change",r),t=void 0,history.scrollRestoration&&n&&(history.scrollRestoration=n)}}};La.startFromUrl=Da,La.setup=function(t){ut||(ut=t,Lr()&&(/complete|interactive|loaded/.test(document.readyState)?Jr():document.addEventListener("DOMContentLoaded",Jr)))};/*! License details at fancyapps.com/license */const N3=Object.assign(Object.assign({},Ma),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});/*! License details at fancyapps.com/license */const e1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Ir().add("close",{tpl:e1});const t1=t=>{t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))},n1=(t=null,n="",a)=>{if(!t||!t.parentElement||!n)return void(a&&a());t1(t);const o=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",o),delete t.dataset.animationName,a&&a(),t.classList.remove(n))};t.dataset.animationName=n,t.addEventListener("animationend",o),De(t,n)};var ze;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.Destroyed=3]="Destroyed"})(ze||(ze={}));const on={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:N3,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
11
11
  <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
12
12
  <div class="fancybox__backdrop"></div>
13
13
  <div class="fancybox__carousel"></div>
14
14
  </div>
15
- </dialog>`,modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},Et=new Map;let Q3=0;const b1="with-fancybox",J3=()=>{let t,n,a,o,r,i,s,l=Ie.Init,c=Object.assign({},kn),u=-1,d={},h=[],f=!1,g=!0,m=0;function p(q,...re){let he=c[q];return he&&typeof he=="function"?he(ze,...re):he}function y(q,re=[]){const he=p("l10n")||{};q=String(q).replace(/\{\{(\w+)\}\}/g,(ae,K)=>he[K]||ae);for(let ae=0;ae<re.length;ae++)q=q.split(re[ae][0]).join(re[ae][1]);return q=q.replace(/\{\{(.*?)\}\}/g,(ae,K)=>K)}const k=new Map;function b(q,...re){const he=[...k.get(q)||[]];for(const[ae,K]of Object.entries(c.on||{}))(ae===q||ae.split(" ").indexOf(q)>-1)&&he.push(K);for(const ae of he)ae&&typeof ae=="function"&&ae(ze,...re);q!=="*"&&b("*",q,...re)}function x(){Qe(n,"is-revealing");try{document.activeElement===t&&((n==null?void 0:n.querySelector("[autofocus]"))||n).focus()}catch{}}function C(q,re){var he;Q(re),N(),(he=re.el)===null||he===void 0||he.addEventListener("click",D),re.type!=="inline"&&re.type!=="clone"||function(ae){if(!o||!ae||!ae.el)return;let K=null;if(Te(ae.src)){const ce=ae.src.split("#",2).pop();K=ce?document.getElementById(ce):null}if(K){if(Ee(K,"f-html"),ae.type==="clone"||K.closest(".fancybox__carousel")){K=K.cloneNode(!0);const ce=K.dataset.animationName;ce&&(K.classList.remove(ce),delete K.dataset.animationName);let $=K.getAttribute("id");$=$?`${$}--clone`:`clone-${u}-${ae.index}`,K.setAttribute("id",$)}else if(K.parentNode){const ce=document.createElement("div");ce.inert=!0,K.parentNode.insertBefore(ce,K),ae.placeholderEl=ce}ae.htmlEl=K,Ee(ae.el,"has-html"),ae.el.prepend(K),K.classList.remove("hidden"),K.style.display==="none"&&(K.style.display=""),getComputedStyle(K).getPropertyValue("display")==="none"&&(K.style.display=K.dataset.display||"flex"),o==null||o.emit("contentReady",ae)}else o==null||o.showError(ae,"{{ELEMENT_NOT_FOUND}}")}(re),re.type==="ajax"&&function(ae){const K=ae.el;if(!K||ae.htmlEl||ae.xhr)return;o==null||o.showLoading(ae),ae.state=0;const ce=new XMLHttpRequest;ce.onreadystatechange=function(){if(ce.readyState===XMLHttpRequest.DONE&&l===Ie.Ready)if(o==null||o.hideLoading(ae),ae.state=1,ce.status===200){let I=ce.responseText+"",te=null,Y=null;if(ae.filter){const E=document.createElement("div");E.innerHTML=I,Y=E.querySelector(ae.filter+"")}Y&&Y instanceof HTMLElement?te=Y:(te=document.createElement("div"),te.innerHTML=I),te.classList.add("f-html"),ae.htmlEl=te,K.classList.add("has-html"),K.classList.add("has-ajax"),K.prepend(te),o==null||o.emit("contentReady",ae)}else o==null||o.showError(ae)};const $=p("ajax")||null;ce.open($?"POST":"GET",ae.src+""),ce.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),ce.setRequestHeader("X-Requested-With","XMLHttpRequest"),ce.send($),ae.xhr=ce}(re)}function M(q,re){var he;J(re),(he=re.el)===null||he===void 0||he.removeEventListener("click",D),re.type!=="inline"&&re.type!=="clone"||function(ae){const K=ae.htmlEl,ce=ae.placeholderEl;K&&(getComputedStyle(K).getPropertyValue("display")!=="none"&&(K.style.display="none"),K.offsetHeight),ce&&(K&&ce.parentNode&&ce.parentNode.insertBefore(K,ce),ce.remove()),ae.htmlEl=void 0,ae.placeholderEl=void 0}(re),re.xhr&&(re.xhr.abort(),re.xhr=void 0)}function D(q){if(!R())return;if(l!==Ie.Ready)return xt(q),void q.stopPropagation();if(q.defaultPrevented||!tn.isClickAllowed())return;const re=q.composedPath()[0];re.closest(".fancybox__carousel")&&re.classList.contains("fancybox__slide")&&B(q)}function H(){g=!1,n&&o&&n.classList.remove("is-revealing"),N();const q=p("sync");if(o&&q){const re=q.getPageIndex(o.getPageIndex())||0;q.goTo(re,{transition:!1})}}function S(){var q;(function(){const he=o==null?void 0:o.getViewport();if(!p("dragToClose")||!o||!he||(r=tn(he).init(),!r))return;let ae=!1,K=0,ce=0,$={},I=1;function te(){var E,L;i==null||i.spring({clamp:!0,mass:1,tension:ce===0?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:K}).to({y:ce}).start();const X=((E=o==null?void 0:o.getViewport())===null||E===void 0?void 0:E.getBoundingClientRect().height)||0,ne=(L=_())===null||L===void 0?void 0:L.panzoomRef;if(X&&ne)if(ce===0)ne.execute(ge.Reset);else{const se=Zn(Math.abs(K),0,.33*X,I,.77*I,!1);ne.execute(ge.ZoomTo,{scale:se})}}const Y=E=>{var L;const X=E.srcEvent,ne=X.target;return o&&!(pn(X)&&((L=X.touches)===null||L===void 0?void 0:L.length)>1)&&ne&&!_t(ne)};i=Mt().on("step",E=>{if(n&&he&&l===Ie.Ready){const L=he.getBoundingClientRect().height;K=Math.min(L,Math.max(-1*L,E.y));const X=Zn(Math.abs(K),0,.5*L,1,0,!0);n.style.setProperty("--f-drag-opacity",X+""),n.style.setProperty("--f-drag-offset",K+"px")}}),r.on("start",function(){ae||(i==null||i.pause(),ce=K)}).on("panstart",E=>{var L,X;if(!ae&&Y(E)&&E.axis==="y"){xt(E.srcEvent),ae=!0,qe(),(L=o==null?void 0:o.getViewport())===null||L===void 0||L.classList.add("is-dragging");const ne=(X=_())===null||X===void 0?void 0:X.panzoomRef;if(ne){I=ne.getTransform().scale||1;const se=ne.getOptions();$=Object.assign({},se),se.bounds=!1,se.gestures=!1}}else ae=!1}).on("pan",function(E){ae&&Y(E)&&(xt(E.srcEvent),E.srcEvent.stopPropagation(),E.axis==="y"&&(ce+=E.deltaY,te()))}).on("end",E=>{var L,X,ne;if((L=o==null?void 0:o.getViewport())===null||L===void 0||L.classList.remove("is-dragging"),ae){const se=(X=_())===null||X===void 0?void 0:X.panzoomRef;if(se){(ne=se.getTween())===null||ne===void 0||ne.end();const me=se.getOptions();me.bounds=$.bounds||!1,me.gestures=$.gestures||!1}Y(E)&&E.axis==="y"&&(Math.abs(E.velocityY)>5||Math.abs(K)>50)&&_e(E.srcEvent,"f-throwOut"+(E.velocityY>0?"Down":"Up"))}ae=!1,l===Ie.Ready&&K!==0&&(ce=0,te())})})(),document.body.addEventListener("click",Z),document.body.addEventListener("keydown",P,{passive:!1,capture:!0}),N(),ye();const re=p("sync");o&&re&&((q=re.getTween())===null||q===void 0||q.start()),O(_())}function w(){o!=null&&o.canGoNext()?ye():Ae()}function T(q,re){Q(re),O(re)}function V(){var q;const re=o==null?void 0:o.getPlugins().Thumbs;Ye(n,"has-thumbs",(re==null?void 0:re.isEnabled())||!1),Ye(n,"has-vertical-thumbs",!!re&&(re.getType()==="scrollable"||((q=re.getCarousel())===null||q===void 0?void 0:q.isVertical())===!0))}function N(){if(n){const q=(o==null?void 0:o.getPages())||[],re=(o==null?void 0:o.getPageIndex())||0;for(const he of n.querySelectorAll("[data-fancybox-index]"))he.innerHTML=re+"";for(const he of n.querySelectorAll("[data-fancybox-page]"))he.innerHTML=re+1+"";for(const he of n.querySelectorAll("[data-fancybox-pages]"))he.innerHTML=q.length+""}}function B(q){if(q.composedPath()[0].closest("[data-fancybox-close]"))return void _e(q);b("backdropClick",q),!q.defaultPrevented&&p("backdropClick")&&_e(q)}function v(){Fe()}function P(q){if(!R()||l!==Ie.Ready)return;const re=q.key,he=p("keyboard");if(!he||q.ctrlKey||q.altKey||q.shiftKey)return;const ae=q.composedPath()[0];if(!Qt(ae)||re!=="Escape"&&(ce=>{const $=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return ce.matches($)||ce.closest($)})(ae)||(b("keydown",q),q.defaultPrevented))return;const K=he[re];if(K)switch(K){case"close":_e(q);break;case"next":xt(q),o==null||o.next();break;case"prev":xt(q),o==null||o.prev()}}function Z(q){if(!R()||l!==Ie.Ready||(Fe(),q.defaultPrevented))return;const re=q.composedPath()[0],he=!!re.closest("[data-fancybox-close]"),ae=re.classList.contains("fancybox__backdrop");(he||ae)&&B(q)}function Q(q){var re;const{el:he,htmlEl:ae,closeButtonEl:K}=q;if(!he||!he.parentElement||!ae)return;let ce=p("closeButton");if(ce==="auto"&&(ce=((re=o==null?void 0:o.getPlugins().Toolbar)===null||re===void 0?void 0:re.isEnabled())!==!0),ce){if(!K){const $=wt(y(y1));$&&(Ee($,"is-close-button"),q.closeButtonEl=ae.insertAdjacentElement("afterbegin",$),Ee(he,"has-close-btn"))}}else J(q)}function J(q){q.closeButtonEl&&(q.closeButtonEl.remove(),q.closeButtonEl=void 0),Qe(q.el,"has-close-btn")}function O(q){if(!(g&&o&&o.getState()===1&&q&&q.index===o.getOptions().initialPage&&q.el&&q.el.parentElement)||q.state!==void 0&&q.state!==1)return;g=!1;const re=q.panzoomRef,he=re==null?void 0:re.getTween(),ae=p("zoomEffect")&&he?de(q):void 0;if(re&&he&&ae){const{x:ce,y:$,scale:I}=re.getStartPosition();return void he.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(ae).to({x:ce,y:$,scale:I}).start()}const K=(re==null?void 0:re.getContent())||q.htmlEl;K&&k1(K,p("showClass",q))}function R(){var q;return((q=Pe.getInstance())===null||q===void 0?void 0:q.getId())===u}function _(){var q;return(q=o==null?void 0:o.getPage())===null||q===void 0?void 0:q.slides[0]}function oe(){const q=_();return q?q.triggerEl||p("triggerEl"):void 0}function de(q){var re,he;const ae=q.thumbEl;if(!ae||!(X=>{const ne=X.getBoundingClientRect(),se=X.closest("[style]"),me=se==null?void 0:se.parentElement;if(se&&se.style.transform&&me){const Ce=me.getBoundingClientRect();if(ne.left<Ce.left||ne.left>Ce.left+Ce.width-ne.width||ne.top<Ce.top||ne.top>Ce.top+Ce.height-ne.height)return!1}const fe=Math.max(document.documentElement.clientHeight,window.innerHeight),be=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(ne.bottom<0||ne.top-fe>=0||ne.right<0||ne.left-be>=0)})(ae))return;const K=(he=(re=q.panzoomRef)===null||re===void 0?void 0:re.getWrapper())===null||he===void 0?void 0:he.getBoundingClientRect(),ce=K==null?void 0:K.width,$=K==null?void 0:K.height;if(!ce||!$)return;const I=ae.getBoundingClientRect();let te=I.width,Y=I.height,E=I.left,L=I.top;if(!(!I||!te||!Y)){if(ae instanceof HTMLImageElement){const X=window.getComputedStyle(ae).getPropertyValue("object-fit");if(X==="contain"||X==="scale-down"){const{width:ne,height:se}=((me,fe,be,Ce,Le="contain")=>{if(Le==="contain"||me>be||fe>Ce){const xe=be/me,A=Ce/fe,z=Math.min(xe,A);me*=z,fe*=z}return{width:me,height:fe}})(ae.naturalWidth,ae.naturalHeight,te,Y,X);E+=.5*(te-ne),L+=.5*(Y-se),te=ne,Y=se}}if(!(Math.abs(ce/$-te/Y)>.1))return{x:E+.5*te-(K.left+.5*ce),y:L+.5*Y-(K.top+.5*$),scale:te/ce}}}function pe(){s&&clearTimeout(s),s=void 0,document.removeEventListener("mousemove",v)}function ye(){if(f||s)return;const q=p("idle");q&&(s=setTimeout(Ve,q))}function Ve(){n&&(pe(),Ee(n,"is-idle"),document.addEventListener("mousemove",v),f=!0)}function Fe(){f&&(Ae(),ye())}function Ae(){pe(),n==null||n.classList.remove("is-idle"),f=!1}function qe(){const q=oe();var re;!q||(re=q.getBoundingClientRect()).bottom>0&&re.right>0&&re.left<(window.innerWidth||document.documentElement.clientWidth)&&re.top<(window.innerHeight||document.documentElement.clientHeight)||q.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function _e(q,re){var he,ae,K,ce,$;if(l===Ie.Closing||l===Ie.Destroyed)return;const I=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(b("shouldClose",I,q),I.defaultPrevented)return;if(pe(),q){if(q.defaultPrevented)return;xt(q),q.stopPropagation(),q.stopImmediatePropagation()}if(l=Ie.Closing,i==null||i.pause(),r==null||r.destroy(),o){(he=o.getGestures())===null||he===void 0||he.destroy(),(ae=o.getTween())===null||ae===void 0||ae.pause();for(const E of o.getSlides()){const L=E.panzoomRef;L&&(ot(L.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),(K=L.getGestures())===null||K===void 0||K.destroy(),(ce=L.getTween())===null||ce===void 0||ce.pause())}}const te=o==null?void 0:o.getPlugins();($=te==null?void 0:te.Autoplay)===null||$===void 0||$.stop();const Y=te==null?void 0:te.Fullscreen;Y&&Y.inFullscreen()?Promise.resolve(Y.exit()).then(()=>{setTimeout(()=>{$e(q,re)},150)}):$e(q,re)}function $e(q,re){var he,ae;if(l!==Ie.Closing)return;b("close",q),g=!1,document.body.removeEventListener("click",Z),document.body.removeEventListener("keydown",P,{passive:!1,capture:!0}),p("placeFocusBack")&&qe(),p("fadeEffect")&&(n==null||n.classList.remove("is-ready"),n==null||n.classList.add("is-hiding")),n==null||n.classList.add("is-closing");const K=_(),ce=K==null?void 0:K.el,$=K==null?void 0:K.panzoomRef,I=(he=K==null?void 0:K.panzoomRef)===null||he===void 0?void 0:he.getTween(),te=re||p("hideClass");let Y=!1,E=!1;if(o&&K&&ce&&$&&I){let X;if(p("zoomEffect")&&K.state===1&&(X=de(K)),X){Y=!0;const ne=()=>{X=de(K),X?I.to(Object.assign(Object.assign({},mt),X)):Oe()};$.on("refresh",()=>{ne()}),I.easing(Mt.Easings.EaseOut).duration(350).from(Object.assign({},$.getTransform())).to(Object.assign(Object.assign({},mt),X)).start(),ce!=null&&ce.getAnimations()&&(ce.style.animationPlayState="paused",requestAnimationFrame(()=>{ne()}))}}const L=(K==null?void 0:K.htmlEl)||((ae=K==null?void 0:K.panzoomRef)===null||ae===void 0?void 0:ae.getWrapper());L&&x1(L),!Y&&te&&L&&(E=!0,k1(L,te,()=>{Oe()})),Y||E?setTimeout(()=>{Oe()},350):Oe()}function Oe(){var q,re,he,ae,K;if(l===Ie.Destroyed)return;l=Ie.Destroyed;const ce=oe();b("destroy"),(re=(q=p("sync"))===null||q===void 0?void 0:q.getPlugins().Autoplay)===null||re===void 0||re.resume(),(ae=(he=p("sync"))===null||he===void 0?void 0:he.getPlugins().Autoscroll)===null||ae===void 0||ae.resume(),t instanceof HTMLDialogElement&&t.close(),(K=o==null?void 0:o.getContainer())===null||K===void 0||K.classList.remove("is-idle"),o==null||o.destroy();for(const $ of Object.values(d))$==null||$.destroy();if(d={},t==null||t.remove(),t=void 0,n=void 0,o=void 0,Et.delete(u),!Et.size&&(Ur(!1),document.documentElement.classList.remove(b1),p("placeFocusBack")))try{ce==null||ce.focus({preventScroll:!0})}catch{}}const ze={close:_e,destroy:Oe,getCarousel:function(){return o},getContainer:function(){return n},getId:function(){return u},getOptions:function(){return c},getPlugins:function(){return d},getSlide:function(){return _()},getState:function(){return l},init:function(q=[],re={}){l!==Ie.Init&&(ze.destroy(),l=Ie.Init),c=ot({},kn,re),u=p("id")||"fancybox-"+ ++Q3;const he=Et.get(u);if(he&&he.destroy(),Et.set(u,ze),b("init"),function(){for(const[ae,K]of Object.entries(Object.assign(Object.assign({},Pe.Plugins),c.plugins||{})))if(ae&&!d[ae]&&K instanceof Function){const ce=K();ce.init(ze),d[ae]=ce}b("initPlugins")}(),function(ae=[]){b("initSlides",ae),h=[...ae]}(q),function(){const ae=p("parentEl")||document.body;if(!(ae&&ae instanceof HTMLElement))return;const K=y(p("mainTpl")||"");if(t=wt(K)||void 0,!t||(n=t.querySelector(".fancybox__container"),!(n&&n instanceof HTMLElement)))return;const ce=p("mainClass");ce&&Ee(n,ce);const $=p("mainStyle");if($&&Ze($))for(const[Y,E]of Object.entries($))n.style.setProperty(Y,E);const I=p("theme"),te=I==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:I==="light";n.setAttribute("theme",te?"light":"dark"),t.setAttribute("id",`${u}`),t.addEventListener("keydown",Y=>{Y.key==="Escape"&&xt(Y)}),t.addEventListener("wheel",Y=>{const E=Y.target;let L=p("wheel",Y);E.closest(".f-thumbs")&&(L="slide");const X=L==="slide",ne=[-Y.deltaX||0,-Y.deltaY||0,-Y.detail||0].reduce(function(fe,be){return Math.abs(be)>Math.abs(fe)?be:fe}),se=Math.max(-1,Math.min(1,ne)),me=Date.now();m&&me-m<300?X&&xt(Y):(m=me,b("wheel",Y,se),Y.defaultPrevented||(L==="close"?_e(Y):L==="slide"&&o&&!_t(E)&&(xt(Y),o[se>0?"prev":"next"]())))},{capture:!0,passive:!1}),t.addEventListener("cancel",Y=>{_e(Y)}),ae.append(t),Et.size===1&&(p("hideScrollbar")&&Ur(!0),document.documentElement.classList.add(b1)),t instanceof HTMLDialogElement&&(p("modal")?t.showModal():t.show()),b("initLayout")}(),function(){if(a=(t==null?void 0:t.querySelector(".fancybox__carousel"))||void 0,!a)return;a.fancybox=ze;const ae=ot({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:K=>{const ce=K.getContainer();return(ce==null?void 0:ce.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||ce}},Fullscreen:{el:n},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:Xr,Arrows:G3,Lazyload:e1,Zoomable:j3,Html:U3,Video:Z3,Autoplay:q3,Fullscreen:Y3,Thumbs:W3,Toolbar:l1}},p("Carousel")||{},{slides:h,enabled:!0,initialPage:p("startIndex")||0,l10n:p("l10n")});o=Yn(a,ae),b("initCarousel",o),o.on("*",(K,ce,...$)=>{b(`Carousel.${ce}`,K,...$)}),o.on("attachSlideEl",C),o.on("detachSlideEl",M),o.on("contentReady",T),o.on("ready",S),o.on("change",H),o.on("settle",w),o.on("thumbs:ready",V),o.on("thumbs:destroy",V),o.init()}(),t&&n){if(p("closeExisting"))for(const[ae,K]of Et.entries())ae!==u&&K.close();p("fadeEffect")?(setTimeout(()=>{x()},500),Ee(n,"is-revealing")):x(),n.classList.add("is-ready"),l=Ie.Ready,b("ready")}},isCurrentSlide:function(q){const re=_();return!(!q||!re)&&re.index===q.index},isTopMost:function(){return R()},off:function(q,re){return k.has(q)&&k.set(q,k.get(q).filter(he=>he!==re)),ze},on:function(q,re){return k.set(q,[...k.get(q)||[],re]),ze},toggleIdle(q){(f||q===!0)&&Ve(),f&&q!==!1||Ae()}};return ze};function w1(t,n={}){var a,o,r;if(!(t&&t instanceof Element))return;let i,s,l,c,u={};for(const[p,y]of Pe.openers)if(p.contains(t))for(const[k,b]of y){let x;if(k){for(const C of p.querySelectorAll(k))if(C.contains(t)){x=C;break}if(!x)continue}for(const[C,M]of b){let D=null;try{D=t.closest(C)}catch{}D&&(s=p,l=x,i=D,c=C,ot(u,M||{}))}}if(!s||!c||!i)return;const d=ot({},kn,n,u,{triggerEl:i});let h=[].slice.call((l||s).querySelectorAll(c));const f=i.closest(".f-carousel"),g=f==null?void 0:f.carousel;if(g&&(!l||!f.contains(l))){const p=[];for(const y of g==null?void 0:g.getSlides()){const k=y.el;k&&(k.matches(c)?p.push(k):p.push(...[].slice.call(k.querySelectorAll(c))))}p.length&&(h=[...p],(a=g.getPlugins().Autoplay)===null||a===void 0||a.pause(),(o=g.getPlugins().Autoscroll)===null||o===void 0||o.pause(),d.sync=g)}if(d.groupAll===!1){const p=d.groupAttr,y=p&&i?i.getAttribute(`${p}`):"";h=p&&y?h.filter(k=>k.getAttribute(`${p}`)===y):[i]}if(!h.length)return;(r=d.triggerEvent)===null||r===void 0||r.preventDefault();const m=Pe.getInstance();if(m){const p=m.getOptions().triggerEl;if(p&&h.indexOf(p)>-1)return}return Object.assign({},d.Carousel||{}).rtl&&(h=h.reverse()),i&&n.startIndex===void 0&&(d.startIndex=h.indexOf(i)),Pe.fromNodes(h,d)}const Pe={Plugins:{Hash:Wa},version:"6.1.3",openers:new Map,bind:function(t,n,a,o){if(!Xn())return;let r=document.body,i=null,s="[data-fancybox]",l={};t instanceof Element&&(r=t),Te(t)&&Te(n)?(i=t,s=n):Te(n)&&Te(a)?(i=n,s=a):Te(n)?s=n:Te(t)&&(s=t),typeof n=="object"&&(l=n||{}),typeof a=="object"&&(l=a||{}),typeof o=="object"&&(l=o||{}),function(c,u,d,h={}){if(!(c&&c instanceof Element&&d))return;const f=Pe.openers.get(c)||new Map,g=f.get(u)||new Map;if(g.set(d,h),f.set(u,g),Pe.openers.set(c,f),f.size===1&&c.addEventListener("click",Pe.fromEvent),Pe.openers.size===1)for(const m of Object.values(Pe.Plugins)){const p=m.setup;typeof p=="function"&&p(Pe)}}(r,i,s,l)},close:function(t=!0,...n){if(t)for(const a of Et.values())a.close(...n);else{const a=Pe.getInstance();a&&a.close(...n)}},destroy:function(){let t;for(;t=Pe.getInstance();)t.destroy();for(const n of Pe.openers.keys())n.removeEventListener("click",Pe.fromEvent);Pe.openers.clear()},fromEvent:function(t){if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let n=t.composedPath()[0];const a={triggerEvent:t};if(n.closest(".fancybox__container.is-hiding"))return xt(t),void t.stopPropagation();const o=n.closest("[data-fancybox-delegate]")||void 0;if(o){const r=o.dataset.fancyboxDelegate||"",i=document.querySelectorAll(`[data-fancybox="${r}"]`),s=parseInt(o.dataset.fancyboxIndex||"",10)||0;n=i[s]||i[0],ot(a,{delegateEl:o,startIndex:s})}return w1(n,a)},fromNodes:function(t,n){n=ot({},kn,n||{});const a=[],o=r=>r instanceof HTMLImageElement?r:r instanceof HTMLElement?r.querySelector("img:not([aria-hidden])"):void 0;for(const r of t){const i=r.dataset||{},s=n.delegateEl&&t.indexOf(r)===n.startIndex?n.delegateEl:void 0,l=o(s)||o(r)||void 0,c=i.src||r.getAttribute("href")||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,u=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,d={src:c,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:u,thumbEl:l,triggerEl:r,delegateEl:s};for(const h in i){let f=i[h]+"";f=f!=="false"&&(f==="true"||f),d[h]=f}a.push(d)}return Pe.show(a,n)},fromSelector:function(t,n,a,o){if(!Xn())return;let r=document.body,i=null,s="[data-fancybox]",l={};t instanceof Element&&(r=t),Te(t)&&Te(n)?(i=t,s=n):Te(n)&&Te(a)?(i=n,s=a):Te(n)?s=n:Te(t)&&(s=t),typeof n=="object"&&(l=n||{}),typeof a=="object"&&(l=a||{}),typeof o=="object"&&(l=o||{});for(const[c,u]of Pe.openers)for(const[d,h]of u)for(const[f,g]of h)if(c===r&&d===i){const m=r.querySelector((d?`${d} `:"")+s);if(m&&m.matches(f))return Pe.fromTriggerEl(m,l)}},fromTriggerEl:w1,getCarousel:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getCarousel())||void 0},getDefaults:function(){return kn},getInstance:function(t){if(t){const n=Et.get(t);return n&&n.getState()!==Ie.Destroyed?n:void 0}return Array.from(Et.values()).reverse().find(n=>{if(n.getState()!==Ie.Destroyed)return n})||void 0},getSlide:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getSlide())||void 0},show:function(t=[],n={}){return J3().init(t,n)},unbind:function(t,n,a){if(!Xn())return;let o=document.body,r=null,i="[data-fancybox]";t instanceof Element&&(o=t),Te(t)&&Te(n)?(r=t,i=n):Te(n)&&Te(a)?(r=n,i=a):Te(n)?i=n:Te(t)&&(i=t),function(s,l,c){if(!(s&&s instanceof Element&&c))return;const u=Pe.openers.get(s)||new Map,d=u.get(l)||new Map;d&&c&&d.delete(c),d.size&&c||u.delete(l),u.size||(Pe.openers.delete(s),s.removeEventListener("click",Pe.fromEvent))}(o,r,i)}};function et(t,n,a,o){return new(a||(a=Promise))(function(r,i){function s(u){try{c(o.next(u))}catch(d){i(d)}}function l(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){var d;u.done?r(u.value):(d=u.value,d instanceof a?d:new a(function(h){h(d)})).then(s,l)}c((o=o.apply(t,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class xn{constructor(){this.listeners={}}on(n,a,o){if(this.listeners[n]||(this.listeners[n]=new Set),o==null?void 0:o.once){const r=(...i)=>{this.un(n,r),a(...i)};return this.listeners[n].add(r),()=>this.un(n,r)}return this.listeners[n].add(a),()=>this.un(n,a)}un(n,a){var o;(o=this.listeners[n])===null||o===void 0||o.delete(a)}once(n,a){return this.on(n,a,{once:!0})}unAll(){this.listeners={}}emit(n,...a){this.listeners[n]&&this.listeners[n].forEach(o=>o(...a))}}const Jn={decode:function(t,n){return et(this,void 0,void 0,function*(){const a=new AudioContext({sampleRate:n});try{return yield a.decodeAudioData(t)}finally{a.close()}})},createBuffer:function(t,n){if(!t||t.length===0)throw new Error("channelData must be a non-empty array");if(n<=0)throw new Error("duration must be greater than 0");if(typeof t[0]=="number"&&(t=[t]),!t[0]||t[0].length===0)throw new Error("channelData must contain non-empty channel arrays");(function(o){const r=o[0];if(r.some(i=>i>1||i<-1)){const i=r.length;let s=0;for(let l=0;l<i;l++){const c=Math.abs(r[l]);c>s&&(s=c)}for(const l of o)for(let c=0;c<i;c++)l[c]/=s}})(t);const a=t.map(o=>o instanceof Float32Array?o:Float32Array.from(o));return{duration:n,length:a[0].length,sampleRate:a[0].length/n,numberOfChannels:a.length,getChannelData:o=>{const r=a[o];if(!r)throw new Error(`Channel ${o} not found`);return r},copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function E1(t,n){const a=n.xmlns?document.createElementNS(n.xmlns,t):document.createElement(t);for(const[o,r]of Object.entries(n))if(o==="children"&&r)for(const[i,s]of Object.entries(r))s instanceof Node?a.appendChild(s):typeof s=="string"?a.appendChild(document.createTextNode(s)):a.appendChild(E1(i,s));else o==="style"?Object.assign(a.style,r):o==="textContent"?a.textContent=r:a.setAttribute(o,r.toString());return a}function v1(t,n,a){const o=E1(t,n||{});return a==null||a.appendChild(o),o}var e4=Object.freeze({__proto__:null,createElement:v1,default:v1});const t4={fetchBlob:function(t,n,a){return et(this,void 0,void 0,function*(){const o=yield fetch(t,a);if(o.status>=400)throw new Error(`Failed to fetch ${t}: ${o.status} (${o.statusText})`);return function(r,i){et(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const s=r.body.getReader(),l=Number(r.headers.get("Content-Length"))||0;let c=0;const u=d=>{c+=(d==null?void 0:d.length)||0;const h=Math.round(c/l*100);i(h)};try{for(;;){const d=yield s.read();if(d.done)break;u(d.value)}}catch(d){console.warn("Progress tracking error:",d)}})}(o.clone(),n),o.blob()})}};class n4 extends xn{constructor(n){super(),this.isExternalMedia=!1,n.media?(this.media=n.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),n.mediaControls&&(this.media.controls=!0),n.autoplay&&(this.media.autoplay=!0),n.playbackRate!=null&&this.onMediaEvent("canplay",()=>{n.playbackRate!=null&&(this.media.playbackRate=n.playbackRate)},{once:!0})}onMediaEvent(n,a,o){return this.media.addEventListener(n,a,o),()=>this.media.removeEventListener(n,a,o)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const n=this.getSrc();n.startsWith("blob:")&&URL.revokeObjectURL(n)}canPlayType(n){return this.media.canPlayType(n)!==""}setSrc(n,a){const o=this.getSrc();if(n&&o===n)return;this.revokeSrc();const r=a instanceof Blob&&(this.canPlayType(a.type)||!n)?URL.createObjectURL(a):n;if(o&&this.media.removeAttribute("src"),r||n)try{this.media.src=r}catch{this.media.src=n}}destroy(){this.isExternalMedia||(this.media.pause(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load(),this.media.remove())}setMediaElement(n){this.media=n}play(){return et(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(n){if(n instanceof DOMException&&n.name==="AbortError")return;throw n}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(n){this.media.currentTime=Math.max(0,Math.min(n,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(n){this.media.volume=n}getMuted(){return this.media.muted}setMuted(n){this.media.muted=n}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(n,a){a!=null&&(this.media.preservesPitch=a),this.media.playbackRate=n}getMediaElement(){return this.media}setSinkId(n){return this.media.setSinkId(n)}}function Ua(t){return t<0?0:t>1?1:t}function a4({maxTop:t,maxBottom:n,halfHeight:a,vScale:o}){const r=Math.round(t*a*o);return{topHeight:r,totalHeight:r+Math.round(n*a*o)||1}}function o4({barAlign:t,halfHeight:n,topHeight:a,totalHeight:o,canvasHeight:r}){return t==="top"?0:t==="bottom"?r-o:n-a}function C1(t,n,a){const o=n-t.left,r=a-t.top;return[o/t.width,r/t.height]}function S1(t){return!!(t.barWidth||t.barGap||t.barAlign)}function B1(t,n){if(!S1(n))return t;const a=n.barWidth||.5,o=a+(n.barGap||a/2);return o===0?t:Math.floor(t/o)*o}function V1({scrollLeft:t,totalWidth:n,numCanvases:a}){if(n===0)return[0];const o=t/n,r=Math.floor(o*a);return[r-1,r,r+1]}function M1({scrollLeft:t,clientWidth:n,scrollWidth:a}){return a===0?{startX:0,endX:0}:{startX:t/a,endX:(t+n)/a}}class r4 extends xn{constructor(n,a){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.dragUnsubscribe=null,this.subscriptions=[],this.options=n;const o=this.parentFromOptionsContainer(n.container);this.parent=o;const[r,i]=this.initHtml();o.appendChild(r),this.container=r,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),a&&i.appendChild(a),this.initEvents()}parentFromOptionsContainer(n){let a;if(typeof n=="string"?a=document.querySelector(n):n instanceof HTMLElement&&(a=n),!a)throw new Error("Container not found");return a}initEvents(){if(this.wrapper.addEventListener("click",n=>{const a=this.wrapper.getBoundingClientRect(),[o,r]=C1(a,n.clientX,n.clientY);this.emit("click",o,r)}),this.wrapper.addEventListener("dblclick",n=>{const a=this.wrapper.getBoundingClientRect(),[o,r]=C1(a,n.clientX,n.clientY);this.emit("dblclick",o,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:n,scrollWidth:a,clientWidth:o}=this.scrollContainer,{startX:r,endX:i}=M1({scrollLeft:n,scrollWidth:a,clientWidth:o});this.emit("scroll",r,i,n,n+o)}),typeof ResizeObserver=="function"){const n=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{n().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const n=this.parent.clientWidth;n===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=n,this.reRender(),this.emit("resize"))}initDrag(){this.dragUnsubscribe||(this.dragUnsubscribe=function(n,a,o,r,i=3,s=0,l=100){if(!n)return()=>{};const c=new Map,u=matchMedia("(pointer: coarse)").matches;let d=()=>{};const h=f=>{if(f.button!==s||(c.set(f.pointerId,f),c.size>1))return;let g=f.clientX,m=f.clientY,p=!1;const y=Date.now(),k=D=>{if(D.defaultPrevented||c.size>1||u&&Date.now()-y<l)return;const H=D.clientX,S=D.clientY,w=H-g,T=S-m;if(p||Math.abs(w)>i||Math.abs(T)>i){D.preventDefault(),D.stopPropagation();const V=n.getBoundingClientRect(),{left:N,top:B}=V;p||(o==null||o(g-N,m-B),p=!0),a(w,T,H-N,S-B),g=H,m=S}},b=D=>{if(c.delete(D.pointerId),p){const H=D.clientX,S=D.clientY,w=n.getBoundingClientRect(),{left:T,top:V}=w;r==null||r(H-T,S-V)}d()},x=D=>{c.delete(D.pointerId),D.relatedTarget&&D.relatedTarget!==document.documentElement||b(D)},C=D=>{p&&(D.stopPropagation(),D.preventDefault())},M=D=>{D.defaultPrevented||c.size>1||p&&D.preventDefault()};document.addEventListener("pointermove",k),document.addEventListener("pointerup",b),document.addEventListener("pointerout",x),document.addEventListener("pointercancel",x),document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("click",C,{capture:!0}),d=()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",b),document.removeEventListener("pointerout",x),document.removeEventListener("pointercancel",x),document.removeEventListener("touchmove",M),setTimeout(()=>{document.removeEventListener("click",C,{capture:!0})},10)}};return n.addEventListener("pointerdown",h),()=>{d(),n.removeEventListener("pointerdown",h),c.clear()}}(this.wrapper,(n,a,o)=>{const r=this.wrapper.getBoundingClientRect().width;this.emit("drag",Ua(o/r))},n=>{this.isDragging=!0;const a=this.wrapper.getBoundingClientRect().width;this.emit("dragstart",Ua(n/a))},n=>{this.isDragging=!1;const a=this.wrapper.getBoundingClientRect().width;this.emit("dragend",Ua(n/a))}),this.subscriptions.push(this.dragUnsubscribe))}initHtml(){const n=document.createElement("div"),a=n.attachShadow({mode:"open"}),o=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return a.innerHTML=`
15
+ </dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},ft=new Map;let A3=0;const a1="with-fancybox",T3=()=>{let t,n,a,o,r,i=ze.Init,s=Object.assign({},on),l=-1,c={},m=[],u=!1,h=!0;function f(G,...ne){let J=s[G];return J&&typeof J=="function"?J(Ve,...ne):J}function p(G,ne=[]){const J=f("l10n")||{};G=String(G).replace(/\{\{(\w+)\}\}/g,(V,$)=>J[$]||V);for(let V=0;V<ne.length;V++)G=G.split(ne[V][0]).join(ne[V][1]);return G=G.replace(/\{\{(.*?)\}\}/g,(V,$)=>$)}const d=new Map;function g(G,...ne){const J=d.get(G)||[];for(const[V,$]of Object.entries(s.on||{}))(V===G||V.split(" ").indexOf(G)>-1)&&J.push($);for(const V of J)V&&typeof V=="function"&&V(Ve,...ne);G!=="*"&&g("*",G,...ne)}function x(G=[],ne={}){i!==ze.Init&&(Ve.destroy(),i=ze.Init),s=ot({},on,ne),l=f("id")||"fancybox-"+ ++A3;const J=ft.get(l);if(J&&J.destroy(),ft.set(l,Ve),g("init"),function(){for(const[V,$]of Object.entries(Object.assign(Object.assign({},Pe.Plugins),s.plugins||{})))if(V&&!c[V]&&$ instanceof Function){const q=$();q.init(Ve),c[V]=q}g("initPlugins")}(),function(V=[]){g("initSlides",V),m=[...V]}(G),function(){const V=f("parentEl")||document.body;if(!(V&&V instanceof HTMLElement))return;const $=p(f("mainTpl")||"");if(t=kt($)||void 0,!(t&&t instanceof HTMLDialogElement)||(n=t.querySelector(".fancybox__container"),!(n&&n instanceof HTMLElement)))return;const q=f("mainClass");q&&De(n,q);const z=f("mainStyle");if(z&&Ze(z))for(const[ee,de]of Object.entries(z))n.style.setProperty(ee,de);const X=f("theme"),U=X==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:X==="light";n.setAttribute("theme",U?"light":"dark"),t.setAttribute("id",`${l}`),t.addEventListener("keydown",ee=>{ee.key==="Escape"&&ee.preventDefault()}),t.addEventListener("cancel",ee=>{Se(ee)}),V.append(t),ft.size===1&&(f("hideScrollbar")&&Dr(!0),document.documentElement.classList.add(a1)),t.showModal(),g("initLayout")}(),function(){if(a=(t==null?void 0:t.querySelector(".fancybox__carousel"))||void 0,!a)return;const V=ot({Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:$=>{const q=$.getContainer();return(q==null?void 0:q.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||q}},Fullscreen:{el:n},Toolbar:{absolute:!0,display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Zoomable:{Panzoom:{event:f("triggerEvent")}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:Pr,Arrows:E3,Lazyload:Rr,Zoomable:w3,Html:S3,Video:B3,Autoplay:v3,Fullscreen:V3,Thumbs:C3,Toolbar:Ir}},f("Carousel")||{},{slides:m,enabled:!0,initialPage:f("startIndex")||0,l10n:f("l10n")});o=Pn(a,V),g("initCarousel",o),o.on("*",($,q,...z)=>{g(`Carousel.${q}`,$,...z)}),o==null||o.on("addSlide",C),o.on("attachSlideEl",L),o.on("detachSlideEl",P),o.on("contentReady",N),o.on("ready",A),o.on("change",w),o.on("settle",S),o.init()}(),t&&n){if(f("closeExisting"))for(const[V,$]of ft.entries())V!==l&&$.close();f("fadeEffect")?(setTimeout(()=>{b()},500),De(n,"is-revealing")):b(),n.classList.add("is-ready"),i=ze.Ready,g("ready")}}function b(){mt(n,"is-revealing");try{document.activeElement===t&&((n==null?void 0:n.querySelector("[autofocus]"))||n).focus()}catch{}}function k(G){if(!ie())return;if(i!==ze.Ready)return G.preventDefault(),void G.stopPropagation();if(G.defaultPrevented||!nn.isClickAllowed())return;const ne=G.composedPath()[0];ne.closest(".fancybox__carousel")&&ne.classList.contains("fancybox__slide")&&y(G)}function y(G){if(G.composedPath()[0].closest("[data-fancybox-close]"))return void Se(G);g("backdropClick",G),!G.defaultPrevented&&f("backdropClick")&&Se(G)}function v(G){if(!ie()||i!==ze.Ready||(se(),G.defaultPrevented))return;const ne=G.composedPath()[0],J=!!ne.closest("[data-fancybox-close]"),V=ne.classList.contains("fancybox__backdrop");(J||V)&&y(G)}function C(G,ne){var J;(J=ne.el)===null||J===void 0||J.addEventListener("click",k)}function L(G,ne){E(ne),ne.type!=="inline"&&ne.type!=="clone"||function(J){if(!o||!J||!J.el)return;let V=null;if(je(J.src)){const $=J.src.split("#",2).pop();V=$?document.getElementById($):null}if(V){if(De(V,"f-html"),J.type==="clone"||V.closest(".fancybox__carousel")){V=V.cloneNode(!0);const $=V.dataset.animationName;$&&(V.classList.remove($),delete V.dataset.animationName);let q=V.getAttribute("id");q=q?`${q}--clone`:`clone-${l}-${J.index}`,V.setAttribute("id",q)}else if(V.parentNode){const $=document.createElement("div");$.inert=!0,V.parentNode.insertBefore($,V),J.placeholderEl=$}J.htmlEl=V,De(J.el,"has-html"),J.el.prepend(V),V.classList.remove("hidden"),V.style.display==="none"&&(V.style.display=""),getComputedStyle(V).getPropertyValue("display")==="none"&&(V.style.display=V.dataset.display||"flex"),o==null||o.emit("contentReady",J)}else o==null||o.showError(J,"{{ELEMENT_NOT_FOUND}}")}(ne),ne.type==="ajax"&&function(J){const V=J.el;if(!V||J.htmlEl||J.xhr)return;o==null||o.showLoading(J),J.state=0;const $=new XMLHttpRequest;$.onreadystatechange=function(){if($.readyState===XMLHttpRequest.DONE&&i===ze.Ready)if(o==null||o.hideLoading(J),J.state=1,$.status===200){let z=$.responseText+"",X=null,U=null;if(J.filter){const ee=document.createElement("div");ee.innerHTML=z,U=ee.querySelector(J.filter+"")}U&&U instanceof HTMLElement?X=U:(X=document.createElement("div"),X.innerHTML=z),X.classList.add("f-html"),J.htmlEl=X,V.classList.add("has-html"),V.classList.add("has-ajax"),V.prepend(X),o==null||o.emit("contentReady",J)}else o==null||o.showError(J)};const q=f("ajax")||null;$.open(q?"POST":"GET",J.src+""),$.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),$.setRequestHeader("X-Requested-With","XMLHttpRequest"),$.send(q),J.xhr=$}(ne)}function P(G,ne){(function(J){J.closeButtonEl&&(J.closeButtonEl.remove(),J.closeButtonEl=void 0)})(ne),ne.type!=="inline"&&ne.type!=="clone"||function(J){const V=J.htmlEl,$=J.placeholderEl;V&&(getComputedStyle(V).getPropertyValue("display")!=="none"&&(V.style.display="none"),V.offsetHeight),$&&(V&&$.parentNode&&$.parentNode.insertBefore(V,$),$.remove()),J.htmlEl=void 0,J.placeholderEl=void 0}(ne),ne.xhr&&(ne.xhr.abort(),ne.xhr=void 0)}function E(G){var ne;const{el:J,htmlEl:V,closeButtonEl:$}=G;if(!J||!V||$)return;let q=f("closeButton");if(q==="auto"&&(q=((ne=o==null?void 0:o.getPlugins().Toolbar)===null||ne===void 0?void 0:ne.isEnabled())!==!0),q){const z=kt(p(e1));z&&(G.closeButtonEl=V.insertAdjacentElement("afterbegin",z),J.classList.add("has-close-btn"))}}function w(){h=!1,n&&o&&n.classList.remove("is-revealing");const G=f("sync");if(o&&G){const ne=G.getPageIndex(o.getPageIndex())||0;G.goTo(ne,{transition:!1})}}function A(){var G;if(i!==ze.Ready)return;B(Q()),function(){if(!f("dragToClose")||!o||!o.getViewport())return;const J=o.getGestures();if(!J)return;let V=0,$=0,q=bt().on("step",z=>{V=z.y;const X=o==null?void 0:o.getViewport();if(n&&X){const U=Va(Math.abs(V),0,.5*X.getBoundingClientRect().height,1,.5);n.style.setProperty("--f-drag-opacity",U+""),n.style.setProperty("--f-drag-offset",V+"px")}}).on("end",()=>{if(!V){n&&n.style.removeProperty("--f-opacity");const z=o==null?void 0:o.getViewport();z&&(z.style.transform="")}});J.on("start",function(){q.pause()}).on("panstart",z=>{var X;const U=z.srcEvent.target;U&&!en(U)&&((X=o==null?void 0:o.getViewport())===null||X===void 0||X.classList.add("is-dragging"))}).on("pan",function(z){const X=z.srcEvent.target;X&&en(X)||o!=null&&o.getViewport()&&z.axis==="y"&&($+=z.deltaY,q.spring({clamp:!0,mass:1,tension:860,friction:17,restDelta:.01,restSpeed:.01}).from({y:V}).to({y:$}).start())}).on("end",function(z){q.pause(),z.axis==="y"&&Math.abs(z.velocityY)>5&&Math.abs($)>0?Se(z.srcEvent,"f-throwOut"+(z.velocityY>0?"Down":"Up")):$!==0&&($=0,q.spring({clamp:!0,mass:1,tension:140,friction:25,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:V}).to({y:$}).start())})}(),document.body.addEventListener("click",v),document.body.addEventListener("keydown",H,{passive:!1,capture:!0}),j();const ne=f("sync");ne&&((G=ne.getTween())===null||G===void 0||G.start())}function S(){o!=null&&o.canGoNext()?j():be()}function B(G){if(!(h&&o&&o.getState()===1&&G&&G.index===o.getOptions().initialPage&&G.el&&G.el.parentElement)||G.state!==void 0&&G.state!==1)return;h=!1;const ne=G.panzoomRef,J=ne==null?void 0:ne.getTween(),V=f("zoomEffect")?F(G):void 0;if(ne&&J&&V){const q=ne.getScale("base")||1,{x:z,y:X}=ne.getMousemovePos(q)||{x:0,y:0};return void J.spring({tension:225,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(V).to({x:z,y:X,scale:q}).start()}const $=(ne==null?void 0:ne.getWrapper())||G.htmlEl;$&&n1($,f("showClass",G))}function N(G,ne){E(ne),B(ne)}function M(){se()}function H(G){if(!ie()||i!==ze.Ready)return;const ne=G.key,J=f("keyboard");if(!J||G.ctrlKey||G.altKey||G.shiftKey)return;const V=G.composedPath()[0];if(!jt(V)||ne!=="Escape"&&(q=>{const z=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return q.matches(z)||q.closest(z)})(V)||(g("keydown",G),G.defaultPrevented))return;const $=J[ne];if($)switch($){case"close":Se(G);break;case"next":G.preventDefault(),o==null||o.next();break;case"prev":G.preventDefault(),o==null||o.prev()}}function ie(){var G;return((G=Pe.getInstance())===null||G===void 0?void 0:G.getId())===l}function Q(){var G;return(G=o==null?void 0:o.getPage())===null||G===void 0?void 0:G.slides[0]}function fe(){const G=Q();return G?G.triggerEl||f("triggerEl"):void 0}function F(G){var ne,J;const V=(J=(ne=G.panzoomRef)===null||ne===void 0?void 0:ne.getWrapper())===null||J===void 0?void 0:J.getBoundingClientRect(),$=V==null?void 0:V.width,q=V==null?void 0:V.height;if(!$||!q)return;const z=G.thumbEl;if(!z)return;const X=z.getBoundingClientRect();let U=X.width,ee=X.height,de=X.left,we=X.top;if(!(!X||!U||!ee)&&(ke=>{const pe=ke.getBoundingClientRect(),ge=ke.closest("[style]"),_=ge==null?void 0:ge.parentElement;if(ge&&ge.style.transform&&_){const ce=_.getBoundingClientRect();if(pe.left<ce.left||pe.left>ce.left+ce.width-pe.width||pe.top<ce.top||pe.top>ce.top+ce.height-pe.height)return!1}const K=Math.max(document.documentElement.clientHeight,window.innerHeight),ae=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(pe.bottom<0||pe.top-K>=0||pe.right<0||pe.left-ae>=0)})(z)){if(z instanceof HTMLImageElement){const ke=window.getComputedStyle(z).getPropertyValue("object-fit");if(ke==="contain"||ke==="scale-down"){const{width:pe,height:ge}=((_,K,ae,ce,Ee="contain")=>{if(Ee==="contain"||_>ae||K>ce){const ye=ae/_,T=ce/K,O=Math.min(ye,T);_*=O,K*=O}return{width:_,height:K}})(z.naturalWidth,z.naturalHeight,U,ee,ke);de+=.5*(U-pe),we+=.5*(ee-ge),U=pe,ee=ge}}if(!(Math.abs($/q-U/ee)>.1))return{x:de+.5*U-(V.left+.5*$),y:we+.5*ee-(V.top+.5*q),scale:U/$}}}function D(){r&&clearTimeout(r),r=void 0,document.removeEventListener("mousemove",M)}function j(){if(u||r)return;const G=f("idle");G&&(r=setTimeout(re,G))}function re(){n&&(D(),De(n,"is-idle"),document.addEventListener("mousemove",M),u=!0)}function se(){u&&(be(),j())}function be(){D(),n==null||n.classList.remove("is-idle"),u=!1}function Se(G,ne){var J,V,$,q,z,X;if(i===ze.Closing||i===ze.Destroyed)return;if(i=ze.Closing,D(),G){if(G.defaultPrevented)return;G.cancelable&&G.preventDefault(),G.stopPropagation(),G.stopImmediatePropagation()}if(o){(J=o.getGestures())===null||J===void 0||J.destroy(),(V=o.getTween())===null||V===void 0||V.pause();const ee=Q(),de=ee==null?void 0:ee.panzoomRef;ee&&de&&ot(de.getOptions(),{clickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0});for(const we of o.getSlides())(q=($=we.panzoomRef)===null||$===void 0?void 0:$.getGestures())===null||q===void 0||q.destroy(),(X=(z=we.panzoomRef)===null||z===void 0?void 0:z.getTween())===null||X===void 0||X.pause()}const U=o==null?void 0:o.getPlugins().fullscreen;U&&U.inFullscreen()?Promise.resolve(U.exit()).then(()=>{setTimeout(()=>{Fe(G,ne)},150)}):Fe(G,ne)}function Fe(G,ne){var J,V,$,q,z;if(i!==ze.Closing)return;if(g("close",G),f("placeFocusBack")){const ge=fe();!ge||(z=ge.getBoundingClientRect()).bottom>0&&z.right>0&&z.left<(window.innerWidth||document.documentElement.clientWidth)&&z.top<(window.innerHeight||document.documentElement.clientHeight)||ge.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}f("fadeEffect")&&(n==null||n.classList.remove("is-ready"),n==null||n.classList.add("is-hiding")),n==null||n.classList.add("is-closing");const X=Q(),U=X==null?void 0:X.panzoomRef,ee=(J=X==null?void 0:X.panzoomRef)===null||J===void 0?void 0:J.getTween(),de=ne||f("hideClass");let we=!1,ke=!1;if(o&&X&&U&&ee){let ge;f("zoomEffect")&&((($=(V=o.getTween())===null||V===void 0?void 0:V.getCurrentVelocities())===null||$===void 0?void 0:$.pos)||0)<700&&X.state===1&&(ge=F(X)),ge&&(we=!0,o.on("refresh",()=>{const _=F(X);_&&ee.to(Object.assign(Object.assign({},at),_))}),ee.easing(bt.Easings.EaseOut).duration(350).from(Object.assign({},U.getTransform())).to(Object.assign(Object.assign({},at),ge)).start())}const pe=(X==null?void 0:X.htmlEl)||((q=X==null?void 0:X.panzoomRef)===null||q===void 0?void 0:q.getWrapper());pe&&t1(pe),!we&&de&&pe&&(ke=!0,n1(pe,de,()=>{$e()})),we||ke?setTimeout(()=>{$e()},350):$e()}function $e(){var G,ne,J,V,$;if(i===ze.Destroyed)return;i=ze.Destroyed,document.body.removeEventListener("click",v),document.body.removeEventListener("keydown",H,{passive:!1,capture:!0});const q=fe();g("destroy"),(ne=(G=f("sync"))===null||G===void 0?void 0:G.getPlugins().Autoplay)===null||ne===void 0||ne.resume(),(V=(J=f("sync"))===null||J===void 0?void 0:J.getPlugins().Autoscroll)===null||V===void 0||V.resume(),t instanceof HTMLDialogElement&&t.close(),($=o==null?void 0:o.getContainer())===null||$===void 0||$.classList.remove("is-idle"),o==null||o.destroy();for(const z of Object.values(c))z==null||z.destroy();if(c={},t==null||t.remove(),t=void 0,n=void 0,o=void 0,ft.delete(l),!ft.size&&(Dr(!1),document.documentElement.classList.remove(a1),f("placeFocusBack")))try{q==null||q.focus({preventScroll:!0})}catch{}}const Ve={close:Se,destroy:$e,getCarousel:function(){return o},getContainer:function(){return n},getId:function(){return l},getOptions:function(){return s},getPlugins:function(){return c},getSlide:function(){return Q()},getState:function(){return i},init:function(G=[],ne={}){return x(G,ne),Ve},isCurrentSlide:function(G){const ne=Q();return!(!G||!ne)&&ne.index===G.index},isTopMost:function(){return ie()},off:function(G,ne){return d.has(G)&&d.set(G,d.get(G).filter(J=>J!==ne)),Ve},on:function(G,ne){return d.set(G,[...d.get(G)||[],ne]),Ve},toggleIdle(G){(u||G===!0)&&re(),u&&G!==!1||be()}};return Ve},Pe={Plugins:{Hash:La},version:"6.0.16",openers:new Map,bind:function(t,n,a){if(!Lr())return;let o=document.body,r="[data-fancybox]",i={};if(je(t)?(o=document.body,r=t,typeof n=="object"&&(i=n||{})):t instanceof Element&&(o=t,je(n)&&(r=n),typeof a=="object"&&(i=a||{})),!(o&&o instanceof Element&&r))return!1;const s=Pe.openers.get(o)||new Map;if(s.set(r,i),Pe.openers.set(o,s),s.size===1){o.addEventListener("click",Pe.fromEvent);for(const l of Object.values(Pe.Plugins)){const c=l.setup;typeof c=="function"&&c(Pe)}}return!0},close:function(t=!0,...n){if(t)for(const a of ft.values())a.close(...n);else{const a=Pe.getInstance();a&&a.close(...n)}},destroy:function(){let t;for(;t=Pe.getInstance();)t.destroy();for(const n of Pe.openers.keys())n.removeEventListener("click",Pe.fromEvent);Pe.openers.clear()},fromEvent:function(t){var n,a,o;if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let r=t.composedPath()[0];if(r.closest(".fancybox__container.is-hiding"))return t.preventDefault(),void t.stopPropagation();const i=r.closest("[data-fancybox-delegate]")||void 0;if(i){const x=i.dataset.fancyboxDelegate||"",b=document.querySelectorAll(`[data-fancybox="${x}"]`);r=b[parseInt(i.dataset.fancyboxIndex||"",10)||0]||b[0]}if(!(r&&r instanceof Element))return;let s,l,c;for(const x of Array.from(Pe.openers.keys()).reverse()){const b=Pe.openers.get(x);if(b&&x.contains(r))for(const k of Array.from(b.keys()).reverse()){let y=null;try{y=r.closest(k)}catch{}if(y){r=y,s=x,l=k,c=b.get(k);break}}}if(!(s&&l&&c))return;t.preventDefault();const m=ot({},on,{triggerEvent:t,triggerEl:r,delegateEl:i},c),u=m.groupAll,h=m.groupAttr,f=h&&r?r.getAttribute(`${h}`):"";let p=[];const d=(n=r.closest(".f-carousel"))===null||n===void 0?void 0:n.carousel;if(d){const x=[];for(const b of d==null?void 0:d.getSlides()){const k=b.el;k&&(k.matches(l)?x.push(k):x.push(...[].slice.call(k.querySelectorAll(l))))}x.length&&(p=[...x],(a=d.getPlugins().Autoplay)===null||a===void 0||a.pause(),(o=d.getPlugins().Autoscroll)===null||o===void 0||o.pause(),m.sync=d)}else(!r||f||u)&&(p=[].slice.call(s.querySelectorAll(l)));if(r&&!u&&(p=f?p.filter(x=>x.getAttribute(`${h}`)===f):[r]),!p.length)return;const g=Pe.getInstance();if(g){const x=g.getOptions().triggerEl;if(x&&p.indexOf(x)>-1)return}return Object.assign({},m.Carousel||{}).rtl&&(p=p.reverse()),r&&(m.startIndex=p.indexOf(r)),Pe.fromNodes(p,m)},fromNodes:function(t,n){n=ot({},on,n||{});const a=[],o=r=>r instanceof HTMLImageElement?r:r instanceof HTMLElement?r.querySelector("img:not([aria-hidden])"):void 0;for(const r of t){const i=r.dataset||{},s=n.delegateEl&&t.indexOf(r)===n.startIndex?n.delegateEl:void 0,l=o(s)||o(r)||void 0,c=i.src||r.getAttribute("href")||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,m=i.thumb||i.thumbSrc||(l==null?void 0:l.getAttribute("currentSrc"))||(l==null?void 0:l.getAttribute("src"))||(l==null?void 0:l.dataset.lazySrc)||void 0,u={src:c,alt:i.alt||(l==null?void 0:l.getAttribute("alt"))||void 0,thumbSrc:m,thumbEl:l,triggerEl:r,delegateEl:s};for(const h in i){let f=i[h]+"";f=f!=="false"&&(f==="true"||f),u[h]=f}a.push(u)}return Pe.show(a,n)},fromSelector:function(t,n,a){let o=document.body,r="",i={};if(je(t)?r=t:t instanceof Element&&(o=t,je(n)&&(r=n),typeof a=="object"&&(i=a||{})),!(o&&o instanceof Element&&r))return;const s=Pe.openers.get(o);return s?(i=ot({},s.get(r)||{},i),i?Pe.fromNodes(Array.from(o.querySelectorAll(r)),i):void 0):void 0},getCarousel:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getCarousel())||void 0},getDefaults:function(){return on},getInstance:function(t){if(t){const n=ft.get(t);return n&&n.getState()!==ze.Destroyed?n:void 0}return Array.from(ft.values()).reverse().find(n=>{if(n.getState()!==ze.Destroyed)return n})||void 0},getSlide:function(){var t;return((t=Pe.getInstance())===null||t===void 0?void 0:t.getSlide())||void 0},show:function(t=[],n={}){return T3().init(t,n)},unbind:function(t,n){let a=document.body,o="";if(je(t)?o=t:t instanceof Element&&(a=t,je(n)&&(o=n)),a){const r=Pe.openers.get(a);r&&o&&r.delete(o),r!=null&&r.size&&o||Pe.openers.delete(a),a.removeEventListener("click",Pe.fromEvent)}}};function Ie(t,n,a,o){return new(a||(a=Promise))(function(r,i){function s(m){try{c(o.next(m))}catch(u){i(u)}}function l(m){try{c(o.throw(m))}catch(u){i(u)}}function c(m){var u;m.done?r(m.value):(u=m.value,u instanceof a?u:new a(function(h){h(u)})).then(s,l)}c((o=o.apply(t,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class rn{constructor(){this.listeners={}}on(n,a,o){if(this.listeners[n]||(this.listeners[n]=new Set),this.listeners[n].add(a),o==null?void 0:o.once){const r=()=>{this.un(n,r),this.un(n,a)};return this.on(n,r),r}return()=>this.un(n,a)}un(n,a){var o;(o=this.listeners[n])===null||o===void 0||o.delete(a)}once(n,a){return this.on(n,a,{once:!0})}unAll(){this.listeners={}}emit(n,...a){this.listeners[n]&&this.listeners[n].forEach(o=>o(...a))}}const Hn={decode:function(t,n){return Ie(this,void 0,void 0,function*(){const a=new AudioContext({sampleRate:n});return a.decodeAudioData(t).finally(()=>a.close())})},createBuffer:function(t,n){return typeof t[0]=="number"&&(t=[t]),function(a){const o=a[0];if(o.some(r=>r>1||r<-1)){const r=o.length;let i=0;for(let s=0;s<r;s++){const l=Math.abs(o[s]);l>i&&(i=l)}for(const s of a)for(let l=0;l<r;l++)s[l]/=i}}(t),{duration:n,length:t[0].length,sampleRate:t[0].length/n,numberOfChannels:t.length,getChannelData:a=>t==null?void 0:t[a],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function o1(t,n){const a=n.xmlns?document.createElementNS(n.xmlns,t):document.createElement(t);for(const[o,r]of Object.entries(n))if(o==="children"&&r)for(const[i,s]of Object.entries(r))s instanceof Node?a.appendChild(s):typeof s=="string"?a.appendChild(document.createTextNode(s)):a.appendChild(o1(i,s));else o==="style"?Object.assign(a.style,r):o==="textContent"?a.textContent=r:a.setAttribute(o,r.toString());return a}function r1(t,n,a){const o=o1(t,n||{});return a==null||a.appendChild(o),o}var D3=Object.freeze({__proto__:null,createElement:r1,default:r1});const L3={fetchBlob:function(t,n,a){return Ie(this,void 0,void 0,function*(){const o=yield fetch(t,a);if(o.status>=400)throw new Error(`Failed to fetch ${t}: ${o.status} (${o.statusText})`);return function(r,i){Ie(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const s=r.body.getReader(),l=Number(r.headers.get("Content-Length"))||0;let c=0;const m=h=>Ie(this,void 0,void 0,function*(){c+=(h==null?void 0:h.length)||0;const f=Math.round(c/l*100);i(f)}),u=()=>Ie(this,void 0,void 0,function*(){let h;try{h=yield s.read()}catch{return}h.done||(m(h.value),yield u())});u()})}(o.clone(),n),o.blob()})}};class F3 extends rn{constructor(n){super(),this.isExternalMedia=!1,n.media?(this.media=n.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),n.mediaControls&&(this.media.controls=!0),n.autoplay&&(this.media.autoplay=!0),n.playbackRate!=null&&this.onMediaEvent("canplay",()=>{n.playbackRate!=null&&(this.media.playbackRate=n.playbackRate)},{once:!0})}onMediaEvent(n,a,o){return this.media.addEventListener(n,a,o),()=>this.media.removeEventListener(n,a,o)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const n=this.getSrc();n.startsWith("blob:")&&URL.revokeObjectURL(n)}canPlayType(n){return this.media.canPlayType(n)!==""}setSrc(n,a){const o=this.getSrc();if(n&&o===n)return;this.revokeSrc();const r=a instanceof Blob&&(this.canPlayType(a.type)||!n)?URL.createObjectURL(a):n;if(o&&this.media.removeAttribute("src"),r||n)try{this.media.src=r}catch{this.media.src=n}}destroy(){this.isExternalMedia||(this.media.pause(),this.media.remove(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load())}setMediaElement(n){this.media=n}play(){return Ie(this,void 0,void 0,function*(){try{return yield this.media.play()}catch(n){if(n instanceof DOMException&&n.name==="AbortError")return;throw n}})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(n){this.media.currentTime=Math.max(0,Math.min(n,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(n){this.media.volume=n}getMuted(){return this.media.muted}setMuted(n){this.media.muted=n}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(n,a){a!=null&&(this.media.preservesPitch=a),this.media.playbackRate=n}getMediaElement(){return this.media}setSinkId(n){return this.media.setSinkId(n)}}let Fa=class to extends rn{constructor(n,a){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.subscriptions=[],this.options=n;const o=this.parentFromOptionsContainer(n.container);this.parent=o;const[r,i]=this.initHtml();o.appendChild(r),this.container=r,this.scrollContainer=i.querySelector(".scroll"),this.wrapper=i.querySelector(".wrapper"),this.canvasWrapper=i.querySelector(".canvases"),this.progressWrapper=i.querySelector(".progress"),this.cursor=i.querySelector(".cursor"),a&&i.appendChild(a),this.initEvents()}parentFromOptionsContainer(n){let a;if(typeof n=="string"?a=document.querySelector(n):n instanceof HTMLElement&&(a=n),!a)throw new Error("Container not found");return a}initEvents(){const n=a=>{const o=this.wrapper.getBoundingClientRect(),r=a.clientX-o.left,i=a.clientY-o.top;return[r/o.width,i/o.height]};if(this.wrapper.addEventListener("click",a=>{const[o,r]=n(a);this.emit("click",o,r)}),this.wrapper.addEventListener("dblclick",a=>{const[o,r]=n(a);this.emit("dblclick",o,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:a,scrollWidth:o,clientWidth:r}=this.scrollContainer,i=a/o,s=(a+r)/o;this.emit("scroll",i,s,a,a+r)}),typeof ResizeObserver=="function"){const a=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{a().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const n=this.parent.clientWidth;n===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=n,this.reRender())}initDrag(){this.subscriptions.push(function(n,a,o,r,i=3,s=0,l=100){if(!n)return()=>{};const c=matchMedia("(pointer: coarse)").matches;let m=()=>{};const u=h=>{if(h.button!==s)return;h.preventDefault(),h.stopPropagation();let f=h.clientX,p=h.clientY,d=!1;const g=Date.now(),x=C=>{if(C.preventDefault(),C.stopPropagation(),c&&Date.now()-g<l)return;const L=C.clientX,P=C.clientY,E=L-f,w=P-p;if(d||Math.abs(E)>i||Math.abs(w)>i){const A=n.getBoundingClientRect(),{left:S,top:B}=A;d||(o==null||o(f-S,p-B),d=!0),a(E,w,L-S,P-B),f=L,p=P}},b=C=>{if(d){const L=C.clientX,P=C.clientY,E=n.getBoundingClientRect(),{left:w,top:A}=E;r==null||r(L-w,P-A)}m()},k=C=>{C.relatedTarget&&C.relatedTarget!==document.documentElement||b(C)},y=C=>{d&&(C.stopPropagation(),C.preventDefault())},v=C=>{d&&C.preventDefault()};document.addEventListener("pointermove",x),document.addEventListener("pointerup",b),document.addEventListener("pointerout",k),document.addEventListener("pointercancel",k),document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("click",y,{capture:!0}),m=()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",b),document.removeEventListener("pointerout",k),document.removeEventListener("pointercancel",k),document.removeEventListener("touchmove",v),setTimeout(()=>{document.removeEventListener("click",y,{capture:!0})},10)}};return n.addEventListener("pointerdown",u),()=>{m(),n.removeEventListener("pointerdown",u)}}(this.wrapper,(n,a,o)=>{this.emit("drag",Math.max(0,Math.min(1,o/this.wrapper.getBoundingClientRect().width)))},n=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,n/this.wrapper.getBoundingClientRect().width)))},n=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,n/this.wrapper.getBoundingClientRect().width)))}))}getHeight(n,a){var o;const r=((o=this.audioData)===null||o===void 0?void 0:o.numberOfChannels)||1;if(n==null)return 128;if(!isNaN(Number(n)))return Number(n);if(n==="auto"){const i=this.parent.clientHeight||128;return a!=null&&a.every(s=>!s.overlay)?i/r:i}return 128}initHtml(){const n=document.createElement("div"),a=n.attachShadow({mode:"open"}),o=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return a.innerHTML=`
16
16
  <style${o?` nonce="${o}"`:""}>
17
17
  :host {
18
18
  user-select: none;
@@ -43,7 +43,6 @@
43
43
  }
44
44
  :host .canvases {
45
45
  min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;
46
- pointer-events: none;
47
46
  }
48
47
  :host .canvases > div {
49
48
  position: relative;
@@ -85,16 +84,16 @@
85
84
  <div class="cursor" part="cursor"></div>
86
85
  </div>
87
86
  </div>
88
- `,[n,a]}setOptions(n){if(this.options.container!==n.container){const a=this.parentFromOptionsContainer(n.container);a.appendChild(this.container),this.parent=a}n.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=n,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(n){this.scrollContainer.scrollLeft=n}setScrollPercentage(n){const{scrollWidth:a}=this.scrollContainer,o=a*n;this.setScroll(o)}destroy(){var n;this.subscriptions.forEach(a=>a()),this.container.remove(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(n=this.unsubscribeOnScroll)===null||n===void 0||n.forEach(a=>a()),this.unsubscribeOnScroll=[]}createDelay(n=10){let a,o;const r=()=>{a&&(clearTimeout(a),a=void 0),o&&(o(),o=void 0)};return this.timeouts.push(r),()=>new Promise((i,s)=>{r(),o=s,a=setTimeout(()=>{a=void 0,o=void 0,i()},n)})}getHeight(n,a){var o;const r=((o=this.audioData)===null||o===void 0?void 0:o.numberOfChannels)||1;return function({optionsHeight:i,optionsSplitChannels:s,parentHeight:l,numberOfChannels:c,defaultHeight:u=128}){if(i==null)return u;const d=Number(i);if(!isNaN(d))return d;if(i==="auto"){const h=l||u;return s!=null&&s.every(f=>!f.overlay)?h/c:h}return u}({optionsHeight:n,optionsSplitChannels:a,parentHeight:this.parent.clientHeight,numberOfChannels:r,defaultHeight:128})}convertColorValues(n){return function(a,o){if(!Array.isArray(a))return a||"";if(a.length===0)return"#999";if(a.length<2)return a[0]||"";const r=document.createElement("canvas"),i=r.getContext("2d"),s=r.height*o,l=i.createLinearGradient(0,0,0,s||o),c=1/(a.length-1);return a.forEach((u,d)=>{l.addColorStop(d*c,u)}),l}(n,this.getPixelRatio())}getPixelRatio(){return n=window.devicePixelRatio,Math.max(1,n||1);var n}renderBarWaveform(n,a,o,r){const{width:i,height:s}=o.canvas,{halfHeight:l,barWidth:c,barRadius:u,barIndexScale:d,barSpacing:h}=function({width:g,height:m,length:p,options:y,pixelRatio:k}){const b=m/2,x=y.barWidth?y.barWidth*k:1,C=y.barGap?y.barGap*k:y.barWidth?x/2:0,M=x+C||1;return{halfHeight:b,barWidth:x,barGap:C,barRadius:y.barRadius||0,barIndexScale:p>0?g/M/p:0,barSpacing:M}}({width:i,height:s,length:(n[0]||[]).length,options:a,pixelRatio:this.getPixelRatio()}),f=function({channelData:g,barIndexScale:m,barSpacing:p,barWidth:y,halfHeight:k,vScale:b,canvasHeight:x,barAlign:C}){const M=g[0]||[],D=g[1]||M,H=M.length,S=[];let w=0,T=0,V=0;for(let N=0;N<=H;N++){const B=Math.round(N*m);if(B>w){const{topHeight:Z,totalHeight:Q}=a4({maxTop:T,maxBottom:V,halfHeight:k,vScale:b}),J=o4({barAlign:C,halfHeight:k,topHeight:Z,totalHeight:Q,canvasHeight:x});S.push({x:w*p,y:J,width:y,height:Q}),w=B,T=0,V=0}const v=Math.abs(M[N]||0),P=Math.abs(D[N]||0);v>T&&(T=v),P>V&&(V=P)}return S}({channelData:n,barIndexScale:d,barSpacing:h,barWidth:c,halfHeight:l,vScale:r,canvasHeight:s,barAlign:a.barAlign});o.beginPath();for(const g of f)u&&"roundRect"in o?o.roundRect(g.x,g.y,g.width,g.height,u):o.rect(g.x,g.y,g.width,g.height);o.fill(),o.closePath()}renderLineWaveform(n,a,o,r){const{width:i,height:s}=o.canvas,l=function({channelData:c,width:u,height:d,vScale:h}){const f=d/2,g=c[0]||[];return[g,c[1]||g].map((m,p)=>{const y=m.length,k=y?u/y:0,b=f,x=p===0?-1:1,C=[{x:0,y:b}];let M=0,D=0;for(let H=0;H<=y;H++){const S=Math.round(H*k);if(S>M){const T=b+(Math.round(D*f*h)||1)*x;C.push({x:M,y:T}),M=S,D=0}const w=Math.abs(m[H]||0);w>D&&(D=w)}return C.push({x:M,y:b}),C})}({channelData:n,width:i,height:s,vScale:r});o.beginPath();for(const c of l)if(c.length){o.moveTo(c[0].x,c[0].y);for(let u=1;u<c.length;u++){const d=c[u];o.lineTo(d.x,d.y)}}o.fill(),o.closePath()}renderWaveform(n,a,o){if(o.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction)return void a.renderFunction(n,o);const r=function({channelData:i,barHeight:s,normalize:l}){var c;const u=s||1;if(!l)return u;const d=i[0];if(!d||d.length===0)return u;let h=0;for(let f=0;f<d.length;f++){const g=(c=d[f])!==null&&c!==void 0?c:0,m=Math.abs(g);m>h&&(h=m)}return h?u/h:u}({channelData:n,barHeight:a.barHeight,normalize:a.normalize});S1(a)?this.renderBarWaveform(n,a,o,r):this.renderLineWaveform(n,a,o,r)}renderSingleCanvas(n,a,o,r,i,s,l){const c=this.getPixelRatio(),u=document.createElement("canvas");u.width=Math.round(o*c),u.height=Math.round(r*c),u.style.width=`${o}px`,u.style.height=`${r}px`,u.style.left=`${Math.round(i)}px`,s.appendChild(u);const d=u.getContext("2d");if(a.renderFunction?(d.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction(n,d)):this.renderWaveform(n,a,d),u.width>0&&u.height>0){const h=u.cloneNode(),f=h.getContext("2d");f.drawImage(u,0,0),f.globalCompositeOperation="source-in",f.fillStyle=this.convertColorValues(a.progressColor),f.fillRect(0,0,u.width,u.height),l.appendChild(h)}}renderMultiCanvas(n,a,o,r,i,s){const l=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,u=o/l,d=function({clientWidth:m,totalWidth:p,options:y}){return B1(Math.min(8e3,m,p),y)}({clientWidth:c,totalWidth:u,options:a});let h={};if(d===0)return;const f=m=>{if(m<0||m>=g||h[m])return;h[m]=!0;const p=m*d;let y=Math.min(u-p,d);if(y=B1(y,a),y<=0)return;const k=function({channelData:b,offset:x,clampedWidth:C,totalWidth:M}){return b.map(D=>{const H=Math.floor(x/M*D.length),S=Math.floor((x+C)/M*D.length);return D.slice(H,S)})}({channelData:n,offset:p,clampedWidth:y,totalWidth:u});this.renderSingleCanvas(k,a,y,r,p,i,s)},g=Math.ceil(u/d);if(!this.isScrollable){for(let m=0;m<g;m++)f(m);return}if(V1({scrollLeft:this.scrollContainer.scrollLeft,totalWidth:u,numCanvases:g}).forEach(m=>f(m)),g>1){const m=this.on("scroll",()=>{const{scrollLeft:p}=this.scrollContainer;Object.keys(h).length>10&&(i.innerHTML="",s.innerHTML="",h={}),V1({scrollLeft:p,totalWidth:u,numCanvases:g}).forEach(y=>f(y))});this.unsubscribeOnScroll.push(m)}}renderChannel(n,a,o,r){var{overlay:i}=a,s=function(d,h){var f={};for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&h.indexOf(g)<0&&(f[g]=d[g]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function"){var m=0;for(g=Object.getOwnPropertySymbols(d);m<g.length;m++)h.indexOf(g[m])<0&&Object.prototype.propertyIsEnumerable.call(d,g[m])&&(f[g[m]]=d[g[m]])}return f}(a,["overlay"]);const l=document.createElement("div"),c=this.getHeight(s.height,s.splitChannels);l.style.height=`${c}px`,i&&r>0&&(l.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(l);const u=l.cloneNode();this.progressWrapper.appendChild(u),this.renderMultiCanvas(n,s,o,c,l,u)}render(n){return et(this,void 0,void 0,function*(){var a;this.timeouts.forEach(u=>u()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const o=this.getPixelRatio(),r=this.scrollContainer.clientWidth,{scrollWidth:i,isScrollable:s,useParentWidth:l,width:c}=function({duration:u,minPxPerSec:d=0,parentWidth:h,fillParent:f,pixelRatio:g}){const m=Math.ceil(u*d),p=m>h,y=!!(f&&!p);return{scrollWidth:m,isScrollable:p,useParentWidth:y,width:(y?h:m)*g}}({duration:n.duration,minPxPerSec:this.options.minPxPerSec||0,parentWidth:r,fillParent:this.options.fillParent,pixelRatio:o});if(this.isScrollable=s,this.wrapper.style.width=l?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=n,this.emit("render"),this.options.splitChannels)for(let u=0;u<n.numberOfChannels;u++){const d=Object.assign(Object.assign({},this.options),(a=this.options.splitChannels)===null||a===void 0?void 0:a[u]);this.renderChannel([n.getChannelData(u)],d,c,u)}else{const u=[n.getChannelData(0)];n.numberOfChannels>1&&u.push(n.getChannelData(1)),this.renderChannel(u,this.options,c,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(o=>o()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:n}=this.scrollContainer,{right:a}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&n!==this.scrollContainer.scrollWidth){const{right:o}=this.progressWrapper.getBoundingClientRect(),r=function(i){const s=2*i;return(s<0?Math.floor(s):Math.ceil(s))/2}(o-a);this.scrollContainer.scrollLeft+=r}}zoom(n){this.options.minPxPerSec=n,this.reRender()}scrollIntoView(n,a=!1){const{scrollLeft:o,scrollWidth:r,clientWidth:i}=this.scrollContainer,s=n*r,l=o,c=o+i,u=i/2;if(this.isDragging)s+30>c?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>c)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?u:0));const d=s-o-u;a&&this.options.autoCenter&&d>0&&(this.scrollContainer.scrollLeft+=d)}{const d=this.scrollContainer.scrollLeft,{startX:h,endX:f}=M1({scrollLeft:d,scrollWidth:r,clientWidth:i});this.emit("scroll",h,f,d,d+i)}}renderProgress(n,a){if(isNaN(n))return;const o=100*n;this.canvasWrapper.style.clipPath=`polygon(${o}% 0%, 100% 0%, 100% 100%, ${o}% 100%)`,this.progressWrapper.style.width=`${o}%`,this.cursor.style.left=`${o}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${n*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(n,a)}exportImage(n,a,o){return et(this,void 0,void 0,function*(){const r=this.canvasWrapper.querySelectorAll("canvas");if(!r.length)throw new Error("No waveform data");if(o==="dataURL"){const i=Array.from(r).map(s=>s.toDataURL(n,a));return Promise.resolve(i)}return Promise.all(Array.from(r).map(i=>new Promise((s,l)=>{i.toBlob(c=>{c?s(c):l(new Error("Could not export image"))},n,a)})))})}}let i4=class extends xn{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;const n=()=>{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(n))};n()}stop(){this.isRunning=!1,this.animationFrameId!==null&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}};class Za extends xn{constructor(n=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=n,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return et(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(n){if(this.currentSrc=n,this._duration=void 0,!n)return this.buffer=null,void this.emit("emptied");fetch(n).then(a=>{if(a.status>=400)throw new Error(`Failed to fetch ${n}: ${a.status} (${a.statusText})`);return a.arrayBuffer()}).then(a=>this.currentSrc!==n?null:this.audioContext.decodeAudioData(a)).then(a=>{this.currentSrc===n&&(this.buffer=a,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())}).catch(a=>{console.error("WebAudioPlayer load error:",a)})}_play(){if(!this.paused)return;this.paused=!1,this.bufferNode&&(this.bufferNode.onended=null,this.bufferNode.disconnect()),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let n=this.playedDuration*this._playbackRate;(n>=this.duration||n<0)&&(n=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,n),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var n;this.paused=!0,(n=this.bufferNode)===null||n===void 0||n.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return et(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(n){const a=n-this.currentTime,o=this.bufferNode;o==null||o.stop(this.audioContext.currentTime+a),o==null||o.addEventListener("ended",()=>{o===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(n){return et(this,void 0,void 0,function*(){return this.audioContext.setSinkId(n)})}get playbackRate(){return this._playbackRate}set playbackRate(n){this._playbackRate=n,this.bufferNode&&(this.bufferNode.playbackRate.value=n)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(n){const a=!this.paused;a&&this._pause(),this.playedDuration=n/this._playbackRate,a&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var n,a;return(n=this._duration)!==null&&n!==void 0?n:((a=this.buffer)===null||a===void 0?void 0:a.duration)||0}set duration(n){this._duration=n}get volume(){return this.gainNode.gain.value}set volume(n){this.gainNode.gain.value=n,this.emit("volumechange")}get muted(){return this._muted}set muted(n){this._muted!==n&&(this._muted=n,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(n){return/^(audio|video)\//.test(n)}getGainNode(){return this.gainNode}getChannelData(){const n=[];if(!this.buffer)return n;const a=this.buffer.numberOfChannels;for(let o=0;o<a;o++)n.push(this.buffer.getChannelData(o));return n}removeAttribute(n){switch(n){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const s4={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class bn extends n4{static create(n){return new bn(n)}constructor(n){const a=n.media||(n.backend==="WebAudio"?new Za:void 0);super({media:a,mediaControls:n.mediaControls,autoplay:n.autoplay,playbackRate:n.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},s4,n),this.timer=new i4;const o=a?void 0:this.getMediaElement();this.renderer=new r4(this.options,o),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(r||i&&s)&&this.load(r,i,s).catch(l=>{this.emit("error",l instanceof Error?l:new Error(String(l)))})})}updateProgress(n=this.getCurrentTime()){return this.renderer.renderProgress(n/this.getDuration(),this.isPlaying()),n}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const n=this.updateProgress();this.emit("timeupdate",n),this.emit("audioprocess",n),this.stopAtPosition!=null&&this.isPlaying()&&n>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const n=this.updateProgress();this.emit("timeupdate",n)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var n;this.emit("error",(n=this.getMediaElement().error)!==null&&n!==void 0?n:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(n,a)=>{this.options.interact&&(this.seekTo(n),this.emit("interaction",n*this.getDuration()),this.emit("click",n,a))}),this.renderer.on("dblclick",(n,a)=>{this.emit("dblclick",n,a)}),this.renderer.on("scroll",(n,a,o,r)=>{const i=this.getDuration();this.emit("scroll",n*i,a*i,o,r)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",n=>{this.emit("dragstart",n)}),this.renderer.on("dragend",n=>{this.emit("dragend",n)}),this.renderer.on("resize",()=>{this.emit("resize")}));{let n;const a=this.renderer.on("drag",o=>{var r;if(!this.options.interact)return;this.renderer.renderProgress(o),clearTimeout(n);let i=0;const s=this.options.dragToSeek;this.isPlaying()?i=0:s===!0?i=200:s&&typeof s=="object"&&(i=(r=s.debounceTime)!==null&&r!==void 0?r:200),n=setTimeout(()=>{this.seekTo(o)},i),this.emit("interaction",o*this.getDuration()),this.emit("drag",o)});this.subscriptions.push(()=>{clearTimeout(n),a()})}}initPlugins(){var n;!((n=this.options.plugins)===null||n===void 0)&&n.length&&this.options.plugins.forEach(a=>{this.registerPlugin(a)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(n=>n()),this.mediaSubscriptions=[]}setOptions(n){this.options=Object.assign({},this.options,n),n.duration&&!n.peaks&&(this.decodedData=Jn.createBuffer(this.exportPeaks(),n.duration)),n.peaks&&n.duration&&(this.decodedData=Jn.createBuffer(n.peaks,n.duration)),this.renderer.setOptions(this.options),n.audioRate&&this.setPlaybackRate(n.audioRate),n.mediaControls!=null&&(this.getMediaElement().controls=n.mediaControls)}registerPlugin(n){if(this.plugins.includes(n))return n;n._init(this),this.plugins.push(n);const a=n.once("destroy",()=>{this.plugins=this.plugins.filter(o=>o!==n),this.subscriptions=this.subscriptions.filter(o=>o!==a)});return this.subscriptions.push(a),n}unregisterPlugin(n){this.plugins=this.plugins.filter(a=>a!==n),n.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(n){return this.renderer.setScroll(n)}setScrollTime(n){const a=n/this.getDuration();this.renderer.setScrollPercentage(a)}getActivePlugins(){return this.plugins}loadAudio(n,a,o,r){return et(this,void 0,void 0,function*(){var i;if(this.emit("load",n),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,(i=this.abortController)===null||i===void 0||i.abort(),this.abortController=null,!a&&!o){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=this.abortController.signal);const c=d=>this.emit("loading",d);a=yield t4.fetchBlob(n,c,l);const u=this.options.blobMimeType;u&&(a=new Blob([a],{type:u}))}this.setSrc(n,a);const s=yield new Promise(l=>{const c=r||this.getDuration();c?l(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!n&&!a){const l=this.getMediaElement();l instanceof Za&&(l.duration=s)}if(o)this.decodedData=Jn.createBuffer(o,s||0);else if(a){const l=yield a.arrayBuffer();this.decodedData=yield Jn.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(n,a,o){return et(this,void 0,void 0,function*(){try{return yield this.loadAudio(n,void 0,a,o)}catch(r){throw this.emit("error",r),r}})}loadBlob(n,a,o){return et(this,void 0,void 0,function*(){try{return yield this.loadAudio("",n,a,o)}catch(r){throw this.emit("error",r),r}})}zoom(n){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(n),this.emit("zoom",n)}getDecodedData(){return this.decodedData}exportPeaks({channels:n=2,maxLength:a=8e3,precision:o=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(n,this.decodedData.numberOfChannels),i=[];for(let s=0;s<r;s++){const l=this.decodedData.getChannelData(s),c=[],u=l.length/a;for(let d=0;d<a;d++){const h=l.slice(Math.floor(d*u),Math.ceil((d+1)*u));let f=0;for(let g=0;g<h.length;g++){const m=h[g];Math.abs(m)>Math.abs(f)&&(f=m)}c.push(Math.round(f*o)/o)}i.push(c)}return i}getDuration(){let n=super.getDuration()||0;return n!==0&&n!==1/0||!this.decodedData||(n=this.decodedData.duration),n}toggleInteraction(n){this.options.interact=n}setTime(n){this.stopAtPosition=null,super.setTime(n),this.updateProgress(n),this.emit("timeupdate",n)}seekTo(n){const a=this.getDuration()*n;this.setTime(a)}play(n,a){const o=Object.create(null,{play:{get:()=>super.play}});return et(this,void 0,void 0,function*(){n!=null&&this.setTime(n);const r=yield o.play.call(this);return a!=null&&(this.media instanceof Za?this.media.stopAt(a):this.stopAtPosition=a),r})}playPause(){return et(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(n){this.setTime(this.getCurrentTime()+n)}empty(){this.load("",[[0]],.001)}setMediaElement(n){this.unsubscribePlayerEvents(),super.setMediaElement(n),this.initPlayerEvents()}exportImage(){return et(this,arguments,void 0,function*(n="image/png",a=1,o="dataURL"){return this.renderer.exportImage(n,a,o)})}destroy(){var n;this.emit("destroy"),(n=this.abortController)===null||n===void 0||n.abort(),this.plugins.forEach(a=>a.destroy()),this.subscriptions.forEach(a=>a()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}bn.BasePlugin=class extends xn{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},bn.dom=e4;const l4={components:{Avatar:Na},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(t){this.loadAudio(t)}},mounted(){this.wavesurfer=bn.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(t){if(this.isBase64(t)){const n=this.base64ToBlob(t);this.wavesurfer.loadBlob(n)}else this.wavesurfer.load(t)},isBase64(t){try{return btoa(atob(t))==t}catch{return!1}},base64ToBlob(t){const n=atob(t),a=new Array(n.length);for(let r=0;r<n.length;r++)a[r]=n.charCodeAt(r);const o=new Uint8Array(a);return new Blob([o],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},c4={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},d4={key:0,class:"w-20"},u4={class:"fade relative"},m4={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},f4={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},h4={class:"flex h-20 w-full items-center justify-center text-center"},p4={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},g4={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},y4={key:1,class:"w-24 pl-3"},k4={class:"fade relative"};function x4(t,n,a,o,r,i){const s=e.resolveComponent("Avatar");return e.openBlock(),e.createElementBlock("div",c4,[a.isOwner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",d4,[e.withDirectives(e.createElementVNode("main",u4,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[0]||(n[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[4]||(n[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])),e.createElementVNode("button",{class:"",onClick:n[1]||(n[1]=(...l)=>i.playPause&&i.playPause(...l))},[r.isPlaying?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",m4,[...n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)])])),r.isPlaying?(e.openBlock(),e.createElementBlock("svg",f4,[...n[6]||(n[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",h4,[r.isLoading?(e.openBlock(),e.createElementBlock("div",p4,[...n[7]||(n[7]=[e.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",g4,null,512),[[e.vShow,!r.isLoading]])]),a.isOwner?(e.openBlock(),e.createElementBlock("section",y4,[e.withDirectives(e.createElementVNode("main",k4,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[8]||(n[8]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[2]||(n[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[9]||(n[9]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])):e.createCommentVNode("",!0)])}const N1=we(l4,[["render",x4]]),b4={key:0},w4=["src"],E4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},v4={class:"flex gap-2 items-center text-primary max-w-xs"},C4={class:"truncate text-xs text-primary w-40 flex"},S4={key:0,class:"flex gap-2"},B4={class:"video_message_preview"},V4={class:"label_video_hover"},M4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},N4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},A4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},T4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},D4=["src"],L4={key:3},F4=["src"],$4=["src","type"],P4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},O4={key:0},_4={class:"video_message_preview"},R4={class:"label_video_hover"},H4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},z4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},j4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},G4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},I4=["src"],q4={key:1,class:"size-full"},W4={key:4},U4={key:0,class:"w-full px-4"},Z4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Y4={key:0,class:"span_generic_files"},X4={class:"truncate"},K4={key:6,class:"flex flex-col w-full"},Q4={key:0,class:"preview_audio_time"},Ya=we({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(t){const n=t,a=e.ref(null),o=e.ref(null),r=e.ref(0),i=e.computed(()=>n.mimetype==="application/pdf"),s=e.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(n.mimetype)),l=e.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(n.mimetype)),c=m=>m?m.startsWith("video/"):void 0,u=async(m,p,y="")=>{n.mode!=="miniature"&&(c(p)?Pe.show([{type:"html",src:m,html:`
87
+ `,[n,a]}setOptions(n){if(this.options.container!==n.container){const a=this.parentFromOptionsContainer(n.container);a.appendChild(this.container),this.parent=a}n.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=n,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(n){this.scrollContainer.scrollLeft=n}setScrollPercentage(n){const{scrollWidth:a}=this.scrollContainer,o=a*n;this.setScroll(o)}destroy(){var n,a;this.subscriptions.forEach(o=>o()),this.container.remove(),(n=this.resizeObserver)===null||n===void 0||n.disconnect(),(a=this.unsubscribeOnScroll)===null||a===void 0||a.forEach(o=>o()),this.unsubscribeOnScroll=[]}createDelay(n=10){let a,o;const r=()=>{a&&clearTimeout(a),o&&o()};return this.timeouts.push(r),()=>new Promise((i,s)=>{r(),o=s,a=setTimeout(()=>{a=void 0,o=void 0,i()},n)})}convertColorValues(n){if(!Array.isArray(n))return n||"";if(n.length<2)return n[0]||"";const a=document.createElement("canvas"),o=a.getContext("2d"),r=a.height*(window.devicePixelRatio||1),i=o.createLinearGradient(0,0,0,r),s=1/(n.length-1);return n.forEach((l,c)=>{const m=c*s;i.addColorStop(m,l)}),i}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(n,a,o,r){const i=n[0],s=n[1]||n[0],l=i.length,{width:c,height:m}=o.canvas,u=m/2,h=this.getPixelRatio(),f=a.barWidth?a.barWidth*h:1,p=a.barGap?a.barGap*h:a.barWidth?f/2:0,d=a.barRadius||0,g=c/(f+p)/l,x=d&&"roundRect"in o?"roundRect":"rect";o.beginPath();let b=0,k=0,y=0;for(let v=0;v<=l;v++){const C=Math.round(v*g);if(C>b){const E=Math.round(k*u*r),w=E+Math.round(y*u*r)||1;let A=u-E;a.barAlign==="top"?A=0:a.barAlign==="bottom"&&(A=m-w),o[x](b*(f+p),A,f,w,d),b=C,k=0,y=0}const L=Math.abs(i[v]||0),P=Math.abs(s[v]||0);L>k&&(k=L),P>y&&(y=P)}o.fill(),o.closePath()}renderLineWaveform(n,a,o,r){const i=s=>{const l=n[s]||n[0],c=l.length,{height:m}=o.canvas,u=m/2,h=o.canvas.width/c;o.moveTo(0,u);let f=0,p=0;for(let d=0;d<=c;d++){const g=Math.round(d*h);if(g>f){const b=u+(Math.round(p*u*r)||1)*(s===0?-1:1);o.lineTo(f,b),f=g,p=0}const x=Math.abs(l[d]||0);x>p&&(p=x)}o.lineTo(f,u)};o.beginPath(),i(0),i(1),o.fill(),o.closePath()}renderWaveform(n,a,o){if(o.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction)return void a.renderFunction(n,o);let r=a.barHeight||1;if(a.normalize){const i=Array.from(n[0]).reduce((s,l)=>Math.max(s,Math.abs(l)),0);r=i?1/i:1}a.barWidth||a.barGap||a.barAlign?this.renderBarWaveform(n,a,o,r):this.renderLineWaveform(n,a,o,r)}renderSingleCanvas(n,a,o,r,i,s,l){const c=this.getPixelRatio(),m=document.createElement("canvas");m.width=Math.round(o*c),m.height=Math.round(r*c),m.style.width=`${o}px`,m.style.height=`${r}px`,m.style.left=`${Math.round(i)}px`,s.appendChild(m);const u=m.getContext("2d");if(this.renderWaveform(n,a,u),m.width>0&&m.height>0){const h=m.cloneNode(),f=h.getContext("2d");f.drawImage(m,0,0),f.globalCompositeOperation="source-in",f.fillStyle=this.convertColorValues(a.progressColor),f.fillRect(0,0,m.width,m.height),l.appendChild(h)}}renderMultiCanvas(n,a,o,r,i,s){const l=this.getPixelRatio(),{clientWidth:c}=this.scrollContainer,m=o/l;let u=Math.min(to.MAX_CANVAS_WIDTH,c,m),h={};if(a.barWidth||a.barGap){const x=a.barWidth||.5,b=x+(a.barGap||x/2);u%b!=0&&(u=Math.floor(u/b)*b)}if(u===0)return;const f=x=>{if(x<0||x>=p||h[x])return;h[x]=!0;const b=x*u;let k=Math.min(m-b,u);if(a.barWidth||a.barGap){const v=a.barWidth||.5,C=v+(a.barGap||v/2);k=Math.floor(k/C)*C}if(k<=0)return;const y=n.map(v=>{const C=Math.floor(b/m*v.length),L=Math.floor((b+k)/m*v.length);return v.slice(C,L)});this.renderSingleCanvas(y,a,k,r,b,i,s)},p=Math.ceil(m/u);if(!this.isScrollable){for(let x=0;x<p;x++)f(x);return}const d=this.scrollContainer.scrollLeft/m,g=Math.floor(d*p);if(f(g-1),f(g),f(g+1),p>1){const x=this.on("scroll",()=>{const{scrollLeft:b}=this.scrollContainer,k=Math.floor(b/m*p);Object.keys(h).length>to.MAX_NODES&&(i.innerHTML="",s.innerHTML="",h={}),f(k-1),f(k),f(k+1)});this.unsubscribeOnScroll.push(x)}}renderChannel(n,a,o,r){var{overlay:i}=a,s=function(u,h){var f={};for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&h.indexOf(p)<0&&(f[p]=u[p]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(p=Object.getOwnPropertySymbols(u);d<p.length;d++)h.indexOf(p[d])<0&&Object.prototype.propertyIsEnumerable.call(u,p[d])&&(f[p[d]]=u[p[d]])}return f}(a,["overlay"]);const l=document.createElement("div"),c=this.getHeight(s.height,s.splitChannels);l.style.height=`${c}px`,i&&r>0&&(l.style.marginTop=`-${c}px`),this.canvasWrapper.style.minHeight=`${c}px`,this.canvasWrapper.appendChild(l);const m=l.cloneNode();this.progressWrapper.appendChild(m),this.renderMultiCanvas(n,s,o,c,l,m)}render(n){return Ie(this,void 0,void 0,function*(){var a;this.timeouts.forEach(c=>c()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const o=this.getPixelRatio(),r=this.scrollContainer.clientWidth,i=Math.ceil(n.duration*(this.options.minPxPerSec||0));this.isScrollable=i>r;const s=this.options.fillParent&&!this.isScrollable,l=(s?r:i)*o;if(this.wrapper.style.width=s?"100%":`${i}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=n,this.emit("render"),this.options.splitChannels)for(let c=0;c<n.numberOfChannels;c++){const m=Object.assign(Object.assign({},this.options),(a=this.options.splitChannels)===null||a===void 0?void 0:a[c]);this.renderChannel([n.getChannelData(c)],m,l,c)}else{const c=[n.getChannelData(0)];n.numberOfChannels>1&&c.push(n.getChannelData(1)),this.renderChannel(c,this.options,l,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(o=>o()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:n}=this.scrollContainer,{right:a}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&n!==this.scrollContainer.scrollWidth){const{right:o}=this.progressWrapper.getBoundingClientRect();let r=o-a;r*=2,r=r<0?Math.floor(r):Math.ceil(r),r/=2,this.scrollContainer.scrollLeft+=r}}zoom(n){this.options.minPxPerSec=n,this.reRender()}scrollIntoView(n,a=!1){const{scrollLeft:o,scrollWidth:r,clientWidth:i}=this.scrollContainer,s=n*r,l=o,c=o+i,m=i/2;if(this.isDragging)s+30>c?this.scrollContainer.scrollLeft+=30:s-30<l&&(this.scrollContainer.scrollLeft-=30);else{(s<l||s>c)&&(this.scrollContainer.scrollLeft=s-(this.options.autoCenter?m:0));const u=s-o-m;a&&this.options.autoCenter&&u>0&&(this.scrollContainer.scrollLeft+=Math.min(u,10))}{const u=this.scrollContainer.scrollLeft,h=u/r,f=(u+i)/r;this.emit("scroll",h,f,u,u+i)}}renderProgress(n,a){if(isNaN(n))return;const o=100*n;this.canvasWrapper.style.clipPath=`polygon(${o}% 0%, 100% 0%, 100% 100%, ${o}% 100%)`,this.progressWrapper.style.width=`${o}%`,this.cursor.style.left=`${o}%`,this.cursor.style.transform=this.options.cursorWidth?`translateX(-${n*this.options.cursorWidth}px)`:"",this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(n,a)}exportImage(n,a,o){return Ie(this,void 0,void 0,function*(){const r=this.canvasWrapper.querySelectorAll("canvas");if(!r.length)throw new Error("No waveform data");if(o==="dataURL"){const i=Array.from(r).map(s=>s.toDataURL(n,a));return Promise.resolve(i)}return Promise.all(Array.from(r).map(i=>new Promise((s,l)=>{i.toBlob(c=>{c?s(c):l(new Error("Could not export image"))},n,a)})))})}};Fa.MAX_CANVAS_WIDTH=8e3,Fa.MAX_NODES=10;class $3 extends rn{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class $a extends rn{constructor(n=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=n,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return Ie(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(n){if(this.currentSrc=n,this._duration=void 0,!n)return this.buffer=null,void this.emit("emptied");fetch(n).then(a=>{if(a.status>=400)throw new Error(`Failed to fetch ${n}: ${a.status} (${a.statusText})`);return a.arrayBuffer()}).then(a=>this.currentSrc!==n?null:this.audioContext.decodeAudioData(a)).then(a=>{this.currentSrc===n&&(this.buffer=a,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var n;if(!this.paused)return;this.paused=!1,(n=this.bufferNode)===null||n===void 0||n.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let a=this.playedDuration*this._playbackRate;(a>=this.duration||a<0)&&(a=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,a),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var n;this.paused=!0,(n=this.bufferNode)===null||n===void 0||n.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return Ie(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(n){const a=n-this.currentTime,o=this.bufferNode;o==null||o.stop(this.audioContext.currentTime+a),o==null||o.addEventListener("ended",()=>{o===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(n){return Ie(this,void 0,void 0,function*(){return this.audioContext.setSinkId(n)})}get playbackRate(){return this._playbackRate}set playbackRate(n){this._playbackRate=n,this.bufferNode&&(this.bufferNode.playbackRate.value=n)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(n){const a=!this.paused;a&&this._pause(),this.playedDuration=n/this._playbackRate,a&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var n,a;return(n=this._duration)!==null&&n!==void 0?n:((a=this.buffer)===null||a===void 0?void 0:a.duration)||0}set duration(n){this._duration=n}get volume(){return this.gainNode.gain.value}set volume(n){this.gainNode.gain.value=n,this.emit("volumechange")}get muted(){return this._muted}set muted(n){this._muted!==n&&(this._muted=n,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(n){return/^(audio|video)\//.test(n)}getGainNode(){return this.gainNode}getChannelData(){const n=[];if(!this.buffer)return n;const a=this.buffer.numberOfChannels;for(let o=0;o<a;o++)n.push(this.buffer.getChannelData(o));return n}removeAttribute(n){switch(n){case"src":this.src="";break;case"playbackRate":this.playbackRate=0;break;case"currentTime":this.currentTime=0;break;case"duration":this.duration=0;break;case"volume":this.volume=0;break;case"muted":this.muted=!1}}}const P3={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};let Pa=class xi extends F3{static create(n){return new xi(n)}constructor(n){const a=n.media||(n.backend==="WebAudio"?new $a:void 0);super({media:a,mediaControls:n.mediaControls,autoplay:n.autoplay,playbackRate:n.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},P3,n),this.timer=new $3;const o=a?void 0:this.getMediaElement();this.renderer=new Fa(this.options,o),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:i,duration:s}=this.options;(r||i&&s)&&this.load(r,i,s).catch(()=>null)})}updateProgress(n=this.getCurrentTime()){return this.renderer.renderProgress(n/this.getDuration(),this.isPlaying()),n}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const n=this.updateProgress();this.emit("timeupdate",n),this.emit("audioprocess",n),this.stopAtPosition!=null&&this.isPlaying()&&n>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const n=this.updateProgress();this.emit("timeupdate",n)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var n;this.emit("error",(n=this.getMediaElement().error)!==null&&n!==void 0?n:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(n,a)=>{this.options.interact&&(this.seekTo(n),this.emit("interaction",n*this.getDuration()),this.emit("click",n,a))}),this.renderer.on("dblclick",(n,a)=>{this.emit("dblclick",n,a)}),this.renderer.on("scroll",(n,a,o,r)=>{const i=this.getDuration();this.emit("scroll",n*i,a*i,o,r)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",n=>{this.emit("dragstart",n)}),this.renderer.on("dragend",n=>{this.emit("dragend",n)}));{let n;this.subscriptions.push(this.renderer.on("drag",a=>{if(!this.options.interact)return;let o;this.renderer.renderProgress(a),clearTimeout(n),this.isPlaying()?o=0:this.options.dragToSeek===!0?o=200:typeof this.options.dragToSeek=="object"&&this.options.dragToSeek!==void 0&&(o=this.options.dragToSeek.debounceTime),n=setTimeout(()=>{this.seekTo(a)},o),this.emit("interaction",a*this.getDuration()),this.emit("drag",a)}))}}initPlugins(){var n;!((n=this.options.plugins)===null||n===void 0)&&n.length&&this.options.plugins.forEach(a=>{this.registerPlugin(a)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(n=>n()),this.mediaSubscriptions=[]}setOptions(n){this.options=Object.assign({},this.options,n),n.duration&&!n.peaks&&(this.decodedData=Hn.createBuffer(this.exportPeaks(),n.duration)),n.peaks&&n.duration&&(this.decodedData=Hn.createBuffer(n.peaks,n.duration)),this.renderer.setOptions(this.options),n.audioRate&&this.setPlaybackRate(n.audioRate),n.mediaControls!=null&&(this.getMediaElement().controls=n.mediaControls)}registerPlugin(n){if(this.plugins.includes(n))return n;n._init(this),this.plugins.push(n);const a=n.once("destroy",()=>{this.plugins=this.plugins.filter(o=>o!==n),this.subscriptions=this.subscriptions.filter(o=>o!==a)});return this.subscriptions.push(a),n}unregisterPlugin(n){this.plugins=this.plugins.filter(a=>a!==n),n.destroy()}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(n){return this.renderer.setScroll(n)}setScrollTime(n){const a=n/this.getDuration();this.renderer.setScrollPercentage(a)}getActivePlugins(){return this.plugins}loadAudio(n,a,o,r){return Ie(this,void 0,void 0,function*(){var i;if(this.emit("load",n),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,!a&&!o){const l=this.options.fetchParams||{};window.AbortController&&!l.signal&&(this.abortController=new AbortController,l.signal=(i=this.abortController)===null||i===void 0?void 0:i.signal);const c=u=>this.emit("loading",u);a=yield L3.fetchBlob(n,c,l);const m=this.options.blobMimeType;m&&(a=new Blob([a],{type:m}))}this.setSrc(n,a);const s=yield new Promise(l=>{const c=r||this.getDuration();c?l(c):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>l(this.getDuration()),{once:!0}))});if(!n&&!a){const l=this.getMediaElement();l instanceof $a&&(l.duration=s)}if(o)this.decodedData=Hn.createBuffer(o,s||0);else if(a){const l=yield a.arrayBuffer();this.decodedData=yield Hn.decode(l,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(n,a,o){return Ie(this,void 0,void 0,function*(){try{return yield this.loadAudio(n,void 0,a,o)}catch(r){throw this.emit("error",r),r}})}loadBlob(n,a,o){return Ie(this,void 0,void 0,function*(){try{return yield this.loadAudio("",n,a,o)}catch(r){throw this.emit("error",r),r}})}zoom(n){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(n),this.emit("zoom",n)}getDecodedData(){return this.decodedData}exportPeaks({channels:n=2,maxLength:a=8e3,precision:o=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(n,this.decodedData.numberOfChannels),i=[];for(let s=0;s<r;s++){const l=this.decodedData.getChannelData(s),c=[],m=l.length/a;for(let u=0;u<a;u++){const h=l.slice(Math.floor(u*m),Math.ceil((u+1)*m));let f=0;for(let p=0;p<h.length;p++){const d=h[p];Math.abs(d)>Math.abs(f)&&(f=d)}c.push(Math.round(f*o)/o)}i.push(c)}return i}getDuration(){let n=super.getDuration()||0;return n!==0&&n!==1/0||!this.decodedData||(n=this.decodedData.duration),n}toggleInteraction(n){this.options.interact=n}setTime(n){this.stopAtPosition=null,super.setTime(n),this.updateProgress(n),this.emit("timeupdate",n)}seekTo(n){const a=this.getDuration()*n;this.setTime(a)}play(n,a){const o=Object.create(null,{play:{get:()=>super.play}});return Ie(this,void 0,void 0,function*(){n!=null&&this.setTime(n);const r=yield o.play.call(this);return a!=null&&(this.media instanceof $a?this.media.stopAt(a):this.stopAtPosition=a),r})}playPause(){return Ie(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(n){this.setTime(this.getCurrentTime()+n)}empty(){this.load("",[[0]],.001)}setMediaElement(n){this.unsubscribePlayerEvents(),super.setMediaElement(n),this.initPlayerEvents()}exportImage(){return Ie(this,arguments,void 0,function*(n="image/png",a=1,o="dataURL"){return this.renderer.exportImage(n,a,o)})}destroy(){var n;this.emit("destroy"),(n=this.abortController)===null||n===void 0||n.abort(),this.plugins.forEach(a=>a.destroy()),this.subscriptions.forEach(a=>a()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}};Pa.BasePlugin=class extends rn{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}},Pa.dom=D3;const O3={components:{Avatar:ya},props:{audio:{type:String,required:!0},avatar:{type:[String,null],required:!0},isOwner:{type:Boolean}},emits:["duration","currentTime"],data(){return{wavesurfer:null,audioData:null,isPlaying:!1,duration:0,currentTime:0,isLoading:!0,playbackRate:1}},watch:{audio(t){this.loadAudio(t)}},mounted(){this.wavesurfer=Pa.create({container:this.$refs.waveform,waveColor:"#165CF3",progressColor:"#AFAFAF",height:70,cursorWidth:14,cursorColor:"#fff",barWidth:4,barRadius:30,barHeight:.7,barGap:3,hideScrollbar:!0}),this.wavesurfer.on("ready",()=>{this.duration=this.wavesurfer.getDuration(),this.$emit("duration",this.duration),this.isLoading=!1}),this.wavesurfer.on("play",()=>{this.isPlaying=!0}),this.wavesurfer.on("pause",()=>{this.isPlaying=!1}),this.wavesurfer.on("finish",()=>{this.isPlaying=!1}),this.wavesurfer.on("audioprocess",()=>{this.currentTime=this.wavesurfer.getCurrentTime(),this.$emit("currentTime",this.currentTime)}),this.loadAudio(this.audio)},methods:{changeValue(){this.playbackRate===2?this.playbackRate=1:this.playbackRate+=.5,this.changePlaybackRate()},changePlaybackRate(){this.wavesurfer.setPlaybackRate(this.playbackRate)},loadAudio(t){if(this.isBase64(t)){const n=this.base64ToBlob(t);this.wavesurfer.loadBlob(n)}else this.wavesurfer.load(t)},isBase64(t){try{return btoa(atob(t))==t}catch{return!1}},base64ToBlob(t){const n=atob(t),a=new Array(n.length);for(let r=0;r<n.length;r++)a[r]=n.charCodeAt(r);const o=new Uint8Array(a);return new Blob([o],{type:"audio/mp3"})},playPause(){this.wavesurfer.playPause()}}},_3={class:"flex size-full min-w-[220px] select-none items-center justify-center space-x-2 pr-2 text-gray-200 dark:text-gray-700"},R3={key:0,class:"w-20"},H3={class:"fade relative"},z3={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 fill-current"},j3={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10"},G3={class:"flex h-20 w-full items-center justify-center text-center"},q3={key:0,class:"loader-dots relative mx-auto flex h-5 w-full items-center justify-center"},I3={id:"waveform",ref:"waveform",style:{display:"block"},class:"w-full"},W3={key:1,class:"w-24 pl-3"},U3={class:"fade relative"};function Z3(t,n,a,o,r,i){const s=e.resolveComponent("Avatar");return e.openBlock(),e.createElementBlock("div",_3,[a.isOwner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",R3,[e.withDirectives(e.createElementVNode("main",H3,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-1 -right-1 w-5 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[0]||(n[0]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[4]||(n[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-11px] left-[28px] w-5 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])),e.createElementVNode("button",{class:"",onClick:n[1]||(n[1]=(...l)=>i.playPause&&i.playPause(...l))},[r.isPlaying?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",z3,n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)]))),r.isPlaying?(e.openBlock(),e.createElementBlock("svg",j3,n[6]||(n[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)]))):e.createCommentVNode("",!0)]),e.createElementVNode("section",G3,[r.isLoading?(e.openBlock(),e.createElementBlock("div",q3,n[7]||(n[7]=[e.createElementVNode("div",{class:"absolute ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1),e.createElementVNode("div",{class:"absolute top-0 ml-5 mt-1 size-3 rounded-full bg-[#0FB2D6]"},null,-1)]))):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",I3,null,512),[[e.vShow,!r.isLoading]])]),a.isOwner?(e.openBlock(),e.createElementBlock("section",W3,[e.withDirectives(e.createElementVNode("main",U3,[e.createVNode(s,{url:a.avatar,class:"xl:size-[50px]"},null,8,["url"]),n[8]||(n[8]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"absolute -bottom-2 -left-2 w-7 rounded-full bg-emerald-500 p-1 text-white"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})],-1))],512),[[e.vShow,!r.isPlaying]]),e.withDirectives(e.createElementVNode("div",{class:"fade header relative flex size-12 cursor-pointer items-center justify-center rounded-full border-2 border-light dark:border-light",onClick:n[2]||(n[2]=(...l)=>i.changeValue&&i.changeValue(...l))},[e.createTextVNode(e.toDisplayString(r.playbackRate.toFixed(1))+"x ",1),n[9]||(n[9]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"absolute bottom-[-10px] right-[26px] w-7 rounded-full bg-emerald-500 p-[4px] text-white",viewBox:"0 0 16 16"},[e.createElementVNode("path",{d:"M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"})],-1))],512),[[e.vShow,r.isPlaying]])])):e.createCommentVNode("",!0)])}const i1=Ce(O3,[["render",Z3]]),Y3={key:0},X3=["src"],K3={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Q3={class:"flex gap-2 items-center text-primary max-w-xs"},J3={class:"truncate text-xs text-primary w-40 flex"},e4={key:0,class:"flex gap-2"},t4={class:"video_message_preview"},n4={class:"label_video_hover"},a4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},o4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},r4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},i4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},s4=["src"],l4={key:3},c4=["src"],d4=["src","type"],u4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},m4={key:0},f4={class:"video_message_preview"},h4={class:"label_video_hover"},p4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute left-2 top-2 size-6",style:{transform:"rotate(135deg)"}},g4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute right-2 top-2 size-6",style:{transform:"rotate(-135deg)"}},y4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 left-2 size-6",style:{transform:"rotate(45deg)"}},k4={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2",class:"absolute bottom-2 right-2 size-6",style:{transform:"rotate(-45deg)"}},x4=["src"],b4={key:1,class:"size-full"},w4={key:4},E4={key:0,class:"w-full px-4"},v4={key:1,class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},C4={key:0,class:"span_generic_files"},S4={class:"truncate"},B4={key:6,class:"flex flex-col w-full"},V4={key:0,class:"preview_audio_time"},Oa=Ce({__name:"previewFiles",props:{isMobile:{type:Boolean,default:!1},base64:{type:String},mimetype:{type:String},mode:{type:String,default:"message"},fileName:{type:String},avatar:{type:[String,null],required:!0}},setup(t){const n=t,a=e.ref(null),o=e.ref(null),r=e.ref(0),i=e.computed(()=>n.mimetype==="application/pdf"),s=e.computed(()=>["image/png","image/jpeg","image/svg+xml"].includes(n.mimetype)),l=e.computed(()=>["audio/mpeg","audio/mp4","audio/mp3","audio/aac"].includes(n.mimetype)),c=d=>d?d.startsWith("video/"):void 0,m=async(d,g,x="")=>{n.mode!=="miniature"&&(c(g)?Pe.show([{type:"html",src:d,html:`
89
88
  <video controls autoplay style="width:100%;height:auto;max-height:80vh">
90
- <source src="${m}" type="${p}" />
89
+ <source src="${d}" type="${g}" />
91
90
  Seu navegador não suporta vídeo.
92
91
  </video>
93
- `,caption:y}]):Pe.show([{src:m,type:"image",caption:y}]))},d=()=>{const m=document.createElement("canvas"),p=320,y=180;m.width=p,m.height=y;const k=m.getContext("2d");return k.fillStyle="black",k.fillRect(0,0,p,y),m.toDataURL("image/png")};function h(m,p=1){return new Promise((y,k)=>{const b=document.createElement("video");b.src=m,b.crossOrigin="anonymous",b.muted=!0,b.playsInline=!0,b.preload="auto",b.addEventListener("loadeddata",()=>{b.readyState>=2&&(b.currentTime=p)}),b.addEventListener("seeked",()=>{const x=document.createElement("canvas");x.width=b.videoWidth,x.height=b.videoHeight,x.getContext("2d").drawImage(b,0,0,x.width,x.height);const M=x.toDataURL("image/png");y(M)})})}const f=m=>typeof m=="string"&&m.startsWith("data:")&&m.includes(";base64,"),g=m=>{const p=Math.floor(m/60),y=(m%60).toFixed(0),k=p.toString().padStart(2,"0"),b=y.toString().padStart(2,"0");return`${k}:${b}`};return e.onMounted(async()=>{try{const m=await h(n.base64),p=m&&m!=="data:,";a.value=p?m:d()}catch(m){console.error("Erro ao gerar thumbnail:",m),a.value=d()}}),(m,p)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass({main_preview_files_container_message:t.mode==="message",main_preview_files_container_miniature:t.mode==="miniature","main_preview_files_container_preview bg-base-200":t.mode==="preview"})},[!t.isMobile&&i.value?(e.openBlock(),e.createElementBlock("section",b4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:t.base64,frameborder:"0"},null,8,w4)):(e.openBlock(),e.createElementBlock("svg",E4,[...p[6]||(p[6]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])]))])):t.isMobile&&i.value&&t.mode==="message"?(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(t.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[e.createElementVNode("span",v4,[p[7]||(p[7]=e.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("p",C4,e.toDisplayString(t.fileName),1)]),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",S4,[e.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:p[0]||(p[0]=y=>m.$emit("open-mobile-pdf"))}," Abrir PDF ")])):e.createCommentVNode("",!0)],2)):s.value?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:p[1]||(p[1]=y=>u(t.base64,t.mimetype)),class:"video_message_preview_container"},[e.createElementVNode("div",B4,[e.createElementVNode("div",V4,[(e.openBlock(),e.createElementBlock("svg",M4,[...p[8]||(p[8]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",N4,[...p[9]||(p[9]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",A4,[...p[10]||(p[10]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",T4,[...p[11]||(p[11]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])]))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:f(t.base64)?t.base64:t.base64.replace("+","%2B")},null,10,D4)])):c(t.mimetype)?(e.openBlock(),e.createElementBlock("section",L4,[t.mode==="preview"?(e.openBlock(),e.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:t.base64},[e.createElementVNode("source",{src:t.base64,type:t.mimetype},null,8,$4)],8,F4)):t.mode==="miniature"?(e.openBlock(),e.createElementBlock("svg",P4,[...p[12]||(p[12]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)])])):t.mode==="message"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:p[2]||(p[2]=y=>u(t.base64,t.mimetype)),class:"video_message_preview_container"},[a.value?(e.openBlock(),e.createElementBlock("section",O4,[e.createElementVNode("div",_4,[p[17]||(p[17]=e.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",R4,[(e.openBlock(),e.createElementBlock("svg",H4,[...p[13]||(p[13]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",z4,[...p[14]||(p[14]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",j4,[...p[15]||(p[15]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])])),(e.openBlock(),e.createElementBlock("svg",G4,[...p[16]||(p[16]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])]))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:a.value},null,10,I4)])):(e.openBlock(),e.createElementBlock("span",q4,[...p[18]||(p[18]=[e.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])]))])):e.createCommentVNode("",!0)])):l.value?(e.openBlock(),e.createElementBlock("section",W4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("section",U4,[e.createVNode(N1,{avatar:t.avatar,audio:t.base64,onDuration:p[3]||(p[3]=y=>o.value=y),onCurrentTime:p[4]||(p[4]=y=>r.value=y)},null,8,["avatar","audio"])])):(e.openBlock(),e.createElementBlock("svg",Z4,[...p[19]||(p[19]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])]))])):(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.mode==="message"?"generic_files":"")},[p[20]||(p[20]=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),t.mode==="message"?(e.openBlock(),e.createElementBlock("span",Y4,[e.createElementVNode("p",X4,e.toDisplayString(t.fileName),1),e.createElementVNode("button",{class:"download_btn_generic_files",onClick:p[5]||(p[5]=y=>m.$emit("download"))}," Baixar arquivo ")])):e.createCommentVNode("",!0)],2)),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",K4,[e.renderSlot(m.$slots,"content-message",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass([o.value?"justify-between":" justify-end","flex w-full"])},[l.value&&o.value?(e.openBlock(),e.createElementBlock("p",Q4,e.toDisplayString(g(o.value))+" - "+e.toDisplayString(r.value?g(r.value):"00:00"),1)):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"time-message",{},void 0,!0)],2)])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-0f627339"]]),J4={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const t=this.$refs.canvas,n=t.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const o=this.analyser.frequencyBinCount,r=new Uint8Array(o),i=()=>{this.analyser.getByteFrequencyData(r),n.clearRect(0,0,t.width,t.height);const s=t.width/o*2.5,l=t.height/2;let c=0;n.strokeStyle="green",n.lineWidth=2,n.beginPath(),n.moveTo(0,l),n.lineTo(t.width,l),n.stroke(),r.forEach(u=>{const d=u;n.fillStyle=`rgb(50, ${d+100}, 50)`,n.fillRect(c,l-d/2,s,d),c+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},e5={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function t5(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("canvas",e5,null,512)])}const n5=we(J4,[["render",t5],["__scopeId","data-v-9f693a63"]]),a5={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},o5=["disabled"],r5=["disabled"],i5={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},s5={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},l5={key:5,class:"flex w-full items-center space-x-2"},c5={class:"text-xs"},d5={key:0},u5={key:1,class:"flex items-center px-2 pr-[21px]"},m5=we({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(null),i=e.ref(!1),s=e.ref(!1),l=e.ref(0),c=e.ref(0),u=e.ref(null),d=e.ref(null),h=e.ref(null),f=e.ref(null),g=e.ref(0),m=e.ref(0),p=e.ref(null),y=e.ref(!1),k=e.ref(!1),b=B=>{g.value=B},x=B=>{m.value=B},C=B=>{const v=Math.floor(B/60),P=(B%60).toFixed(0),Z=v.toString().padStart(2,"0"),Q=P.toString().padStart(2,"0");return`${Z}:${Q}`},M=async()=>{try{d.value=null,f.value=await navigator.mediaDevices.getUserMedia({audio:!0}),r.value=new MediaRecorder(f.value),r.value.ondataavailable=D,r.value.start(),H(),i.value=!0,o("recording",!0)}catch(B){console.error("Erro ao iniciar a gravação:",B)}},D=B=>{B.data.size>0&&!y.value&&(u.value=new Blob([B.data]),p.value=URL.createObjectURL(u.value),T())},H=()=>{let B=Date.now();h.value=setInterval(()=>{l.value=c.value+Math.floor((Date.now()-B)/1e3)},1e3)},S=async()=>{d.value=null,r.value&&i.value&&(s.value?(r.value.resume(),H()):(r.value.pause(),clearInterval(h.value),c.value=l.value),s.value=!s.value)},w=async()=>{r.value&&i.value&&(await r.value.stop(),clearInterval(h.value),i.value=!1,s.value=!1,T()),f.value&&f.value.getTracks().forEach(B=>B.stop())},T=async()=>{if(u.value){const B=new Blob([u.value],{type:"audio/mpeg"}),v=new FileReader;v.onload=()=>{d.value=v.result},v.readAsDataURL(B)}},V=async()=>{k.value=!0,o("b64Audio",d.value);const v={type:"file",media:{name:"audio",mimetype:(P=>P?P.split(";")[0].split(":")[1]:null)(d.value),data:d.value}};await a.sendAudioToAttendant(a.selectedAttendant.id,v,a.attendant,!0),o("recording",!1),k.value=!1,f.value=null,d.value=null,u.value=null,i.value=!1,s.value=!1,l.value=0},N=async()=>{y.value=!0,i.value=!1,o("recording",!1),await r.value.stop(),f.value&&(f.value.getTracks().forEach(B=>B.stop()),f.value=null),u.value=null,clearInterval(h.value),d.value=null,s.value=!1,l.value=0};return(B,v)=>{var P;return k.value?(e.openBlock(),e.createElementBlock("div",u5,[...v[9]||(v[9]=[e.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",a5,[!i.value&&!d.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!t.canSendMessage,onClick:v[0]||(v[0]=Z=>(M(),c.value=0,y.value=!1))},[...v[3]||(v[3]=[e.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[e.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),e.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)])],10,o5)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:v[1]||(v[1]=Z=>N())},[...v[4]||(v[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:S},[s.value?(e.openBlock(),e.createElementBlock("svg",s5,[...v[6]||(v[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",i5,[...v[5]||(v[5]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])]))],8,r5)):e.createCommentVNode("",!0),(i.value||u.value)&&!d.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:w},[...v[7]||(v[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)])])):e.createCommentVNode("",!0),f.value&&i.value&&!s.value?(e.openBlock(),e.createBlock(n5,{key:4,"audio-stream":f.value},null,8,["audio-stream"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",l5,[e.createVNode(N1,{avatar:((P=t.attendant)==null?void 0:P.photo)||null,audio:d.value,onDuration:b,onCurrentTime:x},null,8,["avatar","audio"]),e.createElementVNode("main",c5,[e.createElementVNode("div",null,e.toDisplayString(C(m.value)),1),i.value||u.value?(e.openBlock(),e.createElementBlock("div",d5,e.toDisplayString(C(l.value)),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:v[2]||(v[2]=Z=>V())},[...v[8]||(v[8]=[e.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])):e.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-2126da40"]]);function f5(t){return{all:t=t||new Map,on:function(n,a){var o=t.get(n);o?o.push(a):t.set(n,[a])},off:function(n,a){var o=t.get(n);o&&(a?o.splice(o.indexOf(a)>>>0,1):t.set(n,[]))},emit:function(n,a){var o=t.get(n);o&&o.slice().map(function(r){r(a)}),(o=t.get("*"))&&o.slice().map(function(r){r(n,a)})}}}const A1=f5();let T1=0;const h5=()=>{const t=T1;return T1+=1,t},D1=(t,n)=>{const a={...t,id:h5(),group:t.group||""};return A1.emit("notify",{notification:a,timeout:n}),()=>A1.emit("close",a.id)};/*! Capacitor: https://capacitorjs.com/ - MIT License */var an;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(an||(an={}));class Xa extends Error{constructor(n,a,o){super(n),this.message=n,this.code=a,this.data=o}}const p5=t=>{var n,a;return t!=null&&t.androidBridge?"android":!((a=(n=t==null?void 0:t.webkit)===null||n===void 0?void 0:n.messageHandlers)===null||a===void 0)&&a.bridge?"ios":"web"},g5=t=>{const n=t.CapacitorCustomPlatform||null,a=t.Capacitor||{},o=a.Plugins=a.Plugins||{},r=()=>n!==null?n.name:p5(t),i=()=>r()!=="web",s=h=>{const f=u.get(h);return!!(f!=null&&f.platforms.has(r())||l(h))},l=h=>{var f;return(f=a.PluginHeaders)===null||f===void 0?void 0:f.find(g=>g.name===h)},c=h=>t.console.error(h),u=new Map,d=(h,f={})=>{const g=u.get(h);if(g)return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`),g.proxy;const m=r(),p=l(h);let y;const k=async()=>(!y&&m in f?y=typeof f[m]=="function"?y=await f[m]():y=f[m]:n!==null&&!y&&"web"in f&&(y=typeof f.web=="function"?y=await f.web():y=f.web),y),b=(S,w)=>{var T,V;if(p){const N=p==null?void 0:p.methods.find(B=>w===B.name);if(N)return N.rtype==="promise"?B=>a.nativePromise(h,w.toString(),B):(B,v)=>a.nativeCallback(h,w.toString(),B,v);if(S)return(T=S[w])===null||T===void 0?void 0:T.bind(S)}else{if(S)return(V=S[w])===null||V===void 0?void 0:V.bind(S);throw new Xa(`"${h}" plugin is not implemented on ${m}`,an.Unimplemented)}},x=S=>{let w;const T=(...V)=>{const N=k().then(B=>{const v=b(B,S);if(v){const P=v(...V);return w=P==null?void 0:P.remove,P}else throw new Xa(`"${h}.${S}()" is not implemented on ${m}`,an.Unimplemented)});return S==="addListener"&&(N.remove=async()=>w()),N};return T.toString=()=>`${S.toString()}() { [capacitor code] }`,Object.defineProperty(T,"name",{value:S,writable:!1,configurable:!1}),T},C=x("addListener"),M=x("removeListener"),D=(S,w)=>{const T=C({eventName:S},w),V=async()=>{const B=await T;M({eventName:S,callbackId:B},w)},N=new Promise(B=>T.then(()=>B({remove:V})));return N.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await V()},N},H=new Proxy({},{get(S,w){switch(w){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return p?D:C;case"removeListener":return M;default:return x(w)}}});return o[h]=H,u.set(h,{name:h,proxy:H,platforms:new Set([...Object.keys(f),...p?[m]:[]])}),H};return a.convertFileSrc||(a.convertFileSrc=h=>h),a.getPlatform=r,a.handleError=c,a.isNativePlatform=i,a.isPluginAvailable=s,a.registerPlugin=d,a.Exception=Xa,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a},ea=(t=>t.Capacitor=g5(t))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),wn=ea.registerPlugin;class ta{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(n,a){let o=!1;this.listeners[n]||(this.listeners[n]=[],o=!0),this.listeners[n].push(a);const i=this.windowListeners[n];i&&!i.registered&&this.addWindowListener(i),o&&this.sendRetainedArgumentsForEvent(n);const s=async()=>this.removeListener(n,a);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const n in this.windowListeners)this.removeWindowListener(this.windowListeners[n]);this.windowListeners={}}notifyListeners(n,a,o){const r=this.listeners[n];if(!r){if(o){let i=this.retainedEventArguments[n];i||(i=[]),i.push(a),this.retainedEventArguments[n]=i}return}r.forEach(i=>i(a))}hasListeners(n){var a;return!!(!((a=this.listeners[n])===null||a===void 0)&&a.length)}registerWindowListener(n,a){this.windowListeners[a]={registered:!1,windowEventName:n,pluginEventName:a,handler:o=>{this.notifyListeners(a,o)}}}unimplemented(n="not implemented"){return new ea.Exception(n,an.Unimplemented)}unavailable(n="not available"){return new ea.Exception(n,an.Unavailable)}async removeListener(n,a){const o=this.listeners[n];if(!o)return;const r=o.indexOf(a);this.listeners[n].splice(r,1),this.listeners[n].length||this.removeWindowListener(this.windowListeners[n])}addWindowListener(n){window.addEventListener(n.windowEventName,n.handler),n.registered=!0}removeWindowListener(n){n&&(window.removeEventListener(n.windowEventName,n.handler),n.registered=!1)}sendRetainedArgumentsForEvent(n){const a=this.retainedEventArguments[n];a&&(delete this.retainedEventArguments[n],a.forEach(o=>{this.notifyListeners(n,o)}))}}const L1=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),F1=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class y5 extends ta{async getCookies(){const n=document.cookie,a={};return n.split(";").forEach(o=>{if(o.length<=0)return;let[r,i]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");r=F1(r).trim(),i=F1(i).trim(),a[r]=i}),a}async setCookie(n){try{const a=L1(n.key),o=L1(n.value),r=`; expires=${(n.expires||"").replace("expires=","")}`,i=(n.path||"/").replace("path=",""),s=n.url!=null&&n.url.length>0?`domain=${n.url}`:"";document.cookie=`${a}=${o||""}${r}; path=${i}; ${s};`}catch(a){return Promise.reject(a)}}async deleteCookie(n){try{document.cookie=`${n.key}=; Max-Age=0`}catch(a){return Promise.reject(a)}}async clearCookies(){try{const n=document.cookie.split(";")||[];for(const a of n)document.cookie=a.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(n){return Promise.reject(n)}}async clearAllCookies(){try{await this.clearCookies()}catch(n){return Promise.reject(n)}}}wn("CapacitorCookies",{web:()=>new y5});const k5=async t=>new Promise((n,a)=>{const o=new FileReader;o.onload=()=>{const r=o.result;n(r.indexOf(",")>=0?r.split(",")[1]:r)},o.onerror=r=>a(r),o.readAsDataURL(t)}),x5=(t={})=>{const n=Object.keys(t);return Object.keys(t).map(r=>r.toLocaleLowerCase()).reduce((r,i,s)=>(r[i]=t[n[s]],r),{})},b5=(t,n=!0)=>t?Object.entries(t).reduce((o,r)=>{const[i,s]=r;let l,c;return Array.isArray(s)?(c="",s.forEach(u=>{l=n?encodeURIComponent(u):u,c+=`${i}=${l}&`}),c.slice(0,-1)):(l=n?encodeURIComponent(s):s,c=`${i}=${l}`),`${o}&${c}`},"").substr(1):null,$1=(t,n={})=>{const a=Object.assign({method:t.method||"GET",headers:t.headers},n),r=x5(t.headers)["content-type"]||"";if(typeof t.data=="string")a.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(t.data||{}))i.set(s,l);a.body=i.toString()}else if(r.includes("multipart/form-data")||t.data instanceof FormData){const i=new FormData;if(t.data instanceof FormData)t.data.forEach((l,c)=>{i.append(c,l)});else for(const l of Object.keys(t.data))i.append(l,t.data[l]);a.body=i;const s=new Headers(a.headers);s.delete("content-type"),a.headers=s}else(r.includes("application/json")||typeof t.data=="object")&&(a.body=JSON.stringify(t.data));return a};class w5 extends ta{async request(n){const a=$1(n,n.webFetchExtra),o=b5(n.params,n.shouldEncodeUrlParams),r=o?`${n.url}?${o}`:n.url,i=await fetch(r,a),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?n:{};s.includes("application/json")&&(l="json");let c,u;switch(l){case"arraybuffer":case"blob":u=await i.blob(),c=await k5(u);break;case"json":c=await i.json();break;case"document":case"text":default:c=await i.text()}const d={};return i.headers.forEach((h,f)=>{d[f]=h}),{data:c,headers:d,status:i.status,url:i.url}}async get(n){return this.request(Object.assign(Object.assign({},n),{method:"GET"}))}async post(n){return this.request(Object.assign(Object.assign({},n),{method:"POST"}))}async put(n){return this.request(Object.assign(Object.assign({},n),{method:"PUT"}))}async patch(n){return this.request(Object.assign(Object.assign({},n),{method:"PATCH"}))}async delete(n){return this.request(Object.assign(Object.assign({},n),{method:"DELETE"}))}}wn("CapacitorHttp",{web:()=>new w5});const na={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},jt=wn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>pb).then(t=>new t.VoiceRecorderWeb)});function P1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),e.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function E5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function O1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function v5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function C5(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const S5={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},B5={class:"flex h-11 items-center"},V5={key:0},M5={key:0},N5={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},A5={key:1},T5={class:"flex w-full items-center justify-between gap-2"},D5=["disabled"],L5=["disabled"],F5={key:1,class:"loader-mobile-audio-recorder"},$5=we({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(null),c=e.ref([]),u=e.ref(null),d=e.ref("00:00"),h=e.ref(!1),f=e.ref(null);let g=0;e.onUnmounted(()=>{H()});const m=()=>{let v;try{if(c.value.length>0){const P=c.value.map(J=>{const O=atob(J),R=new Array(O.length);for(let oe=0;oe<O.length;oe++)R[oe]=O.charCodeAt(oe);const _=new Uint8Array(R);return new Blob([_],{type:u.value})}),Z=new Blob(P,{type:u.value}),Q=URL.createObjectURL(Z);return v=new Audio(Q),v}}catch(P){console.error("Erro ao criar o objeto Audio:",P)}},p=v=>{v==="play"?(f.value.currentTime=g,f.value.oncanplay=()=>{f.value.play().then(()=>{h.value=!0}).catch(P=>{console.error("Erro ao tentar reproduzir o áudio:",P)})},f.value.onended=()=>{h.value=!1,g=0},f.value.onerror=P=>{console.error("Erro ao carregar o áudio:",P)},f.value.load()):v==="pause"&&(f.value&&!f.value.paused?(h.value=!1,f.value.pause()):console.error("Nenhum áudio está tocando no momento"))},y=v=>{const P=Math.floor(v/60),Z=(v%60).toFixed(0),Q=P.toString().padStart(2,"0"),J=Z.toString().padStart(2,"0");return`${Q}:${J}`},k=()=>{s.value++,d.value=y(s.value)},b=()=>{l.value&&clearInterval(l.value),l.value=setInterval(k,1e3)},x=()=>{l.value&&clearInterval(l.value)},C=async()=>{let{value:v}=await jt.hasAudioRecordingPermission();if(v)try{jt.startRecording(),a("recording",!0),r.value="started",b()}catch(P){console.error(P)}else D1({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},M=()=>{try{a("paused",!0),r.value="paused",H(),x()}catch(v){console.error(v)}},D=()=>{try{f.value&&(f.value.pause(),h.value=!1),a("paused",!1),r.value="started",C(),b()}catch(v){console.error(v)}},H=async()=>{(await jt.getCurrentStatus()).status!=="NONE"&&await jt.stopRecording().then(P=>{u.value=P.value.mimeType,c.value.push(P.value.recordDataBase64),f.value=m(),x()})},S=async()=>{const v=await jt.getCurrentStatus();v.status==="RECORDING"?(await H(),a("paused",!1),a("recording",!1),r.value=null,c.value=[],i.value=!1,s.value=0,d.value=y(0)):v.status==="NONE"&&(a("recording",!1),a("paused",!1),r.value=null,i.value=!1,c.value=[],s.value=0,d.value=y(0))},w=async()=>{await jt.getCurrentStatus(),f.value&&(f.value.pause(),h.value=!1),S()};function T(v){const P=atob(v),Z=P.length,Q=new Uint8Array(Z);for(let J=0;J<Z;J++)Q[J]=P.charCodeAt(J);return Q}function V(v){let P=v.reduce((J,O)=>J+O.length,0),Z=new Uint8Array(P),Q=0;return v.forEach(J=>{Z.set(J,Q),Q+=J.length}),Z}function N(v){let P="",Z=v.byteLength;for(let Q=0;Q<Z;Q++)P+=String.fromCharCode(v[Q]);return btoa(P)}const B=async()=>{i.value=!0,(await jt.getCurrentStatus()).status==="RECORDING"&&await H();try{const P=c.value.map(T),Z=V(P),Q=N(Z),J=`data:${u.value};base64,${Q}`,R={type:"file",media:{name:"audio",mimetype:(_=>_?_.split(";")[0].split(":")[1]:null)(J),data:J}};console.log("payload",JSON.stringify(R)),await o.sendAudioToAttendant(o.selectedAttendant.id,R,o.attendant,!0),S()}catch(P){S(),console.error("Erro ao enviar áudio:",P),D1({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(v,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"bounce"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",S5,[e.createElementVNode("div",B5,[r.value!="paused"?(e.openBlock(),e.createElementBlock("section",V5,"Gravando")):e.createCommentVNode("",!0)]),r.value!="paused"?(e.openBlock(),e.createElementBlock("section",M5,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("section",N5,[h.value?(e.openBlock(),e.createElementBlock("button",A5,[e.createVNode(e.unref(O1),{class:"size-6 cursor-pointer",onClick:P[1]||(P[1]=Z=>p("pause"))})])):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:P[0]||(P[0]=Z=>p("play"))},[e.createVNode(e.unref(v5),{class:"size-6 cursor-pointer"})])),P[7]||(P[7]=e.createElementVNode("div",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(d.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",T5,[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:P[2]||(P[2]=Z=>w())},[e.createVNode(e.unref(C5),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:P[3]||(P[3]=Z=>D())},[e.createVNode(e.unref(P1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="started"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:P[4]||(P[4]=Z=>M())},[e.createVNode(e.unref(O1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:P[6]||(P[6]=Z=>B())},[i.value?(e.openBlock(),e.createElementBlock("span",F5)):(e.openBlock(),e.createBlock(e.unref(E5),{key:0,class:"size-5 cursor-pointer"}))],8,L5)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:t.disableBtn,onClick:P[5]||(P[5]=Z=>C())},[e.createVNode(e.unref(P1),{class:"hover:text-white size-5"})],8,D5))])],64))}},[["__scopeId","data-v-ffe4fb12"]]),P5={class:"messages-container bg-base-300"},O5={class:"header-intern bg-base-300"},_5={class:"atendente-name"},R5={key:0,class:"date-separator bg-base-100/50"},H5={class:"date-separator-text"},z5={key:0,class:"dropdown-container-internal-messages"},j5=["onClick"],G5={class:"message-time"},I5={key:1},q5={class:"message-time"},W5={class:"input-area"},_1=we({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=e.ref(null),s=e.ref(!1),l=e.ref(!1),c=e.ref(!1),u=e.computed(()=>{var S;return((S=a.selectedAtendente)==null?void 0:S.messages)||[]}),d=S=>{a.isMobile&&a.openMobilePdf(S)},h=(S,w)=>{if(S)if(a.isMobile){const V=S.mimetype.split("/")[1],N={url:S.mimetype==="image/svg+xml"?S.data.replace("+","%2B"):S.data,type:V,title:S.name};a.downloadFilesMobile(N,w)}else H(S.data,w)},f=e.computed(()=>a.hasNextPageForAtendente(a.selectedAtendente.id)),g=S=>{const w=new Date(S),T=w.getHours(),V=w.getMinutes();return`${T.toString().padStart(2,"0")}:${V.toString().padStart(2,"0")}`},m=S=>{const w=new Date(S);return O3(w)?"Hoje":R3(w)?"Ontem":P3(w)?$r(w,"EEEE",{locale:ur}):$r(w,"dd 'de' MMMM 'de' yyyy",{locale:ur})},p=S=>{if(S===0)return!0;const w=new Date(u.value[S].created_at),T=new Date(u.value[S-1].created_at);return w.toDateString()!==T.toDateString()},y=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),x())},k=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},b=async S=>{try{if(!f.value){S.complete();return}const w=i.value.scrollHeight,T=i.value.scrollTop;await a.loadMessagesForAtendente(a.selectedAtendente.id),await e.nextTick(),i.value.scrollTop=i.value.scrollHeight-w+T-32,S.loaded()}catch(w){console.error(w),S.complete()}},x=async()=>{if(r.value.trim()!=="")try{const S=JSON.parse(JSON.stringify(r.value));r.value="",await a.sendMessageToAtendente(a.selectedAtendente.id,S,a.attendant),await e.nextTick(),k()}catch(S){console.error("Erro ao enviar mensagem:",S)}},C=()=>{x();const S=document.querySelector(".send-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)},M=()=>{o("send-files");const S=document.querySelector(".send-files-button");S.classList.add("clicked"),setTimeout(()=>{S.classList.remove("clicked")},200)};e.onMounted(async()=>{await e.nextTick(()=>{k(),s.value=!0})}),e.watch(()=>{var S;return(S=u.value)==null?void 0:S.length},(S,w)=>{u.value&&D()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function D(){const w=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-w<=80}const H=async(S,w="undefined")=>{const T=S.endsWith("svg+xml");try{const V=await fetch(T?S.replace("+","%2B"):S);if(!V.ok)throw new Error("Erro ao baixar o arquivo");const N=V.headers.get("Content-Type"),B=await V.arrayBuffer(),v=N&&N!=="application/octet-stream"?N:"audio/mp3",P=new Blob([B],{type:v}),Z=window.URL.createObjectURL(P),Q=document.createElement("a");Q.href=Z;const J=N.endsWith("aac")?`${w}.mp3`:w;Q.download=J,document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),window.URL.revokeObjectURL(Z)}catch(V){console.error("Erro no download:",V)}};return(S,w)=>{const T=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",P5,[e.createElementVNode("div",O5,[e.createElementVNode("button",{onClick:w[0]||(w[0]=V=>o("voltar")),class:"back-button"},[...w[4]||(w[4]=[e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])]),e.createVNode(Na,{url:t.selectedAtendente.photo},null,8,["url"]),e.createElementVNode("h3",_5,e.toDisplayString(t.selectedAtendente.name),1)]),e.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!c.value&&f.value&&s.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:0,onInfinite:b,distance:30,top:!0,direction:"top",class:"p-3"},{complete:e.withCtx(()=>[...w[5]||(w[5]=[e.createElementVNode("span",null,null,-1)])]),spinner:e.withCtx(()=>[...w[6]||(w[6]=[e.createElementVNode("div",{class:"loading"},[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(V,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[p(N)?(e.openBlock(),e.createElementBlock("div",R5,[w[7]||(w[7]=e.createElementVNode("div",{class:"date-separator-line"},null,-1)),e.createElementVNode("div",H5,e.toDisplayString(m(V.created_at)),1),w[8]||(w[8]=e.createElementVNode("div",{class:"date-separator-line"},null,-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["message",{me:V.sender.id===t.attendant.id,"not-me":V.sender.id!==t.attendant.id,"new-message":N===u.value.length-1}])},[e.createElementVNode("div",{class:e.normalizeClass(["relative",V.sender.id===t.attendant.id?"text-right":"text-left"])},[V.content&&V.content.media&&V.content.media.data?(e.openBlock(),e.createElementBlock("div",z5,[e.createVNode(T,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:e.withCtx(()=>[e.createElementVNode("button",{class:"download-button-internal-messages",onClick:B=>h(V.content.media,V.content.media.name)}," Baixar ",8,j5)]),default:e.withCtx(()=>[w[9]||(w[9]=e.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[e.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:V.sender.id===t.attendant.id,"not-me":V.sender.id!==t.attendant.id}]])},[V.content&&V.content.media&&V.content.media.data?(e.openBlock(),e.createBlock(Ya,{key:0,mode:"message",isMobile:t.isMobile,onDownload:B=>h(V.content.media,V.content.media.name),onOpenMobilePdf:B=>d(V.content.media.data),avatar:V.sender.id===t.attendant.id?t.attendant.photo:V.sender.photo,fileName:V.content.media.name,base64:V.content.media.data,mimetype:V.content.media.mimetype},{"content-message":e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(V.content.content),1)]),"time-message":e.withCtx(()=>[e.createElementVNode("div",G5,e.toDisplayString(g(V.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(e.openBlock(),e.createElementBlock("section",I5,[e.createElementVNode("p",null,e.toDisplayString(V.content.content),1),e.createElementVNode("div",q5,e.toDisplayString(g(V.created_at)),1)]))],2)],2)],2)]))),128))])],512),e.createElementVNode("div",W5,[e.withDirectives(e.createElementVNode("textarea",{type:"text","onUpdate:modelValue":w[1]||(w[1]=V=>r.value=V),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:y},null,544),[[e.vModelText,r.value]]),e.createElementVNode("button",{onClick:M,class:"send-files-button"},[...w[10]||(w[10]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])]),r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:C,class:"send-button"},[...w[11]||(w[11]=[e.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])):(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[t.isMobile?(e.openBlock(),e.createBlock($5,{key:0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:w[2]||(w[2]=V=>l.value=V)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(e.openBlock(),e.createBlock(m5,{key:1,"can-send-message":!0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:w[3]||(w[3]=V=>l.value=V)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-22b5feef"]]),U5={},Z5={class:"loading"};function Y5(t,n){return e.openBlock(),e.createElementBlock("div",Z5,[...n[0]||(n[0]=[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)])])}const R1=we(U5,[["render",Y5],["__scopeId","data-v-17a2cc35"]]);/**
92
+ `,caption:x}]):Pe.show([{src:d,type:"image",caption:x}]))},u=()=>{const d=document.createElement("canvas"),g=320,x=180;d.width=g,d.height=x;const b=d.getContext("2d");return b.fillStyle="black",b.fillRect(0,0,g,x),d.toDataURL("image/png")};function h(d,g=1){return new Promise((x,b)=>{const k=document.createElement("video");k.src=d,k.crossOrigin="anonymous",k.muted=!0,k.playsInline=!0,k.preload="auto",k.addEventListener("loadeddata",()=>{k.readyState>=2&&(k.currentTime=g)}),k.addEventListener("seeked",()=>{const y=document.createElement("canvas");y.width=k.videoWidth,y.height=k.videoHeight,y.getContext("2d").drawImage(k,0,0,y.width,y.height);const C=y.toDataURL("image/png");x(C)})})}const f=d=>typeof d=="string"&&d.startsWith("data:")&&d.includes(";base64,"),p=d=>{const g=Math.floor(d/60),x=(d%60).toFixed(0),b=g.toString().padStart(2,"0"),k=x.toString().padStart(2,"0");return`${b}:${k}`};return e.onMounted(async()=>{try{const d=await h(n.base64),g=d&&d!=="data:,";a.value=g?d:u()}catch(d){console.error("Erro ao gerar thumbnail:",d),a.value=u()}}),(d,g)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass({main_preview_files_container_message:t.mode==="message",main_preview_files_container_miniature:t.mode==="miniature","main_preview_files_container_preview bg-base-200":t.mode==="preview"})},[!t.isMobile&&i.value?(e.openBlock(),e.createElementBlock("section",Y3,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("iframe",{key:0,class:"iframe_preview_files",src:t.base64,frameborder:"0"},null,8,X3)):(e.openBlock(),e.createElementBlock("svg",K3,g[6]||(g[6]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"},null,-1)])))])):t.isMobile&&i.value&&t.mode==="message"?(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(t.mode==="message"?"flex flex-col bg-base-300 p-2 rounded-md gap-2":"")},[e.createElementVNode("span",Q3,[g[7]||(g[7]=e.createElementVNode("svg",{class:"size-8 text-primary","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2 2 2 0 0 0 2 2h12a2 2 0 0 0 2-2 2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2V4a2 2 0 0 0-2-2h-7Zm-6 9a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h.5a2.5 2.5 0 0 0 0-5H5Zm1.5 3H6v-1h.5a.5.5 0 0 1 0 1Zm4.5-3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.376A2.626 2.626 0 0 0 15 15.375v-1.75A2.626 2.626 0 0 0 12.375 11H11Zm1 5v-3h.375a.626.626 0 0 1 .625.626v1.748a.625.625 0 0 1-.626.626H12Zm5-5a1 1 0 0 0-1 1v5a1 1 0 1 0 2 0v-1h1a1 1 0 1 0 0-2h-1v-1h1a1 1 0 1 0 0-2h-2Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("p",J3,e.toDisplayString(t.fileName),1)]),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",e4,[e.createElementVNode("button",{class:"bg-base-200 p-2 text-primary w-full text-xs rounded-md hover:bg-base-100",onClick:g[0]||(g[0]=x=>d.$emit("open-mobile-pdf"))}," Abrir PDF ")])):e.createCommentVNode("",!0)],2)):s.value?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[1]||(g[1]=x=>m(t.base64,t.mimetype)),class:"video_message_preview_container"},[e.createElementVNode("div",t4,[e.createElementVNode("div",n4,[(e.openBlock(),e.createElementBlock("svg",a4,g[8]||(g[8]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",o4,g[9]||(g[9]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",r4,g[10]||(g[10]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",i4,g[11]||(g[11]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:f(t.base64)?t.base64:t.base64.replace("+","%2B")},null,10,s4)])):c(t.mimetype)?(e.openBlock(),e.createElementBlock("section",l4,[t.mode==="preview"?(e.openBlock(),e.createElementBlock("video",{key:0,width:"300",height:"150",controls:"",src:t.base64},[e.createElementVNode("source",{src:t.base64,type:t.mimetype},null,8,d4)],8,c4)):t.mode==="miniature"?(e.openBlock(),e.createElementBlock("svg",u4,g[12]||(g[12]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14 7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7Zm2 9.387 4.684 1.562A1 1 0 0 0 22 17V7a1 1 0 0 0-1.316-.949L16 7.613v8.774Z","clip-rule":"evenodd"},null,-1)]))):t.mode==="message"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:g[2]||(g[2]=x=>m(t.base64,t.mimetype)),class:"video_message_preview_container"},[a.value?(e.openBlock(),e.createElementBlock("section",m4,[e.createElementVNode("div",f4,[g[17]||(g[17]=e.createElementVNode("svg",{class:"size-12 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("div",h4,[(e.openBlock(),e.createElementBlock("svg",p4,g[13]||(g[13]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",g4,g[14]||(g[14]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",y4,g[15]||(g[15]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)]))),(e.openBlock(),e.createElementBlock("svg",k4,g[16]||(g[16]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19 9-7 7-7-7"},null,-1)])))])]),e.createElementVNode("img",{class:e.normalizeClass(["preview_img",t.mode]),src:a.value},null,10,x4)])):(e.openBlock(),e.createElementBlock("span",b4,g[18]||(g[18]=[e.createElementVNode("span",{class:"loader-preview-lib"},null,-1)])))])):e.createCommentVNode("",!0)])):l.value?(e.openBlock(),e.createElementBlock("section",w4,[t.mode!=="miniature"?(e.openBlock(),e.createElementBlock("section",E4,[e.createVNode(i1,{avatar:t.avatar,audio:t.base64,onDuration:g[3]||(g[3]=x=>o.value=x),onCurrentTime:g[4]||(g[4]=x=>r.value=x)},null,8,["avatar","audio"])])):(e.openBlock(),e.createElementBlock("svg",v4,g[19]||(g[19]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5 8a1 1 0 0 1 1 1v3a4.006 4.006 0 0 0 4 4h4a4.006 4.006 0 0 0 4-4V9a1 1 0 1 1 2 0v3.001A6.006 6.006 0 0 1 14.001 18H13v2h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2v-2H9.999A6.006 6.006 0 0 1 4 12.001V9a1 1 0 0 1 1-1Z","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{d:"M7 6a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-2a4 4 0 0 1-4-4V6Z"},null,-1)])))])):(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.mode==="message"?"generic_files":"")},[g[20]||(g[20]=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"size-8 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 2.221V7H4.221a2 2 0 0 1 .365-.5L8.5 2.586A2 2 0 0 1 9 2.22ZM11 2v5a2 2 0 0 1-2 2H4v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-7Z","clip-rule":"evenodd"})])],-1)),t.mode==="message"?(e.openBlock(),e.createElementBlock("span",C4,[e.createElementVNode("p",S4,e.toDisplayString(t.fileName),1),e.createElementVNode("button",{class:"download_btn_generic_files",onClick:g[5]||(g[5]=x=>d.$emit("download"))}," Baixar arquivo ")])):e.createCommentVNode("",!0)],2)),t.mode==="message"?(e.openBlock(),e.createElementBlock("div",B4,[e.renderSlot(d.$slots,"content-message",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass([o.value?"justify-between":" justify-end","flex w-full"])},[l.value&&o.value?(e.openBlock(),e.createElementBlock("p",V4,e.toDisplayString(p(o.value))+" - "+e.toDisplayString(r.value?p(r.value):"00:00"),1)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"time-message",{},void 0,!0)],2)])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-0f627339"]]),M4={props:{audioStream:MediaStream},data(){return{audioContext:null,analyser:null}},mounted(){this.initializeAudio()},methods:{initializeAudio(){this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.analyser=this.audioContext.createAnalyser();const t=this.$refs.canvas,n=t.getContext("2d");this.audioContext.createMediaStreamSource(this.audioStream).connect(this.analyser),this.analyser.fftSize=256;const o=this.analyser.frequencyBinCount,r=new Uint8Array(o),i=()=>{this.analyser.getByteFrequencyData(r),n.clearRect(0,0,t.width,t.height);const s=t.width/o*2.5,l=t.height/2;let c=0;n.strokeStyle="green",n.lineWidth=2,n.beginPath(),n.moveTo(0,l),n.lineTo(t.width,l),n.stroke(),r.forEach(m=>{const u=m;n.fillStyle=`rgb(50, ${u+100}, 50)`,n.fillRect(c,l-u/2,s,u),c+=s+1}),this.audioStream.active&&requestAnimationFrame(i)};i()}}},N4={ref:"canvas",width:"200",height:"40",class:"mx-auto flex items-center rounded"};function A4(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("canvas",N4,null,512)])}const T4=Ce(M4,[["render",A4],["__scopeId","data-v-18a2d2f6"]]),D4={key:0,class:"flex w-full items-center space-x-3 text-white dark:text-black"},L4=["disabled"],F4=["disabled"],$4={key:0,class:"size-4 hover:text-red-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 10 16"},P4={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 hover:text-emerald-500"},O4={key:5,class:"flex w-full items-center space-x-2"},_4={class:"text-xs"},R4={key:0},H4={key:1,class:"flex items-center px-2 pr-[21px]"},z4=Ce({__name:"audioRecorder",props:{canSendMessage:Boolean,sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","b64Audio"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(null),i=e.ref(!1),s=e.ref(!1),l=e.ref(0),c=e.ref(0),m=e.ref(null),u=e.ref(null),h=e.ref(null),f=e.ref(null),p=e.ref(0),d=e.ref(0),g=e.ref(null),x=e.ref(!1),b=e.ref(!1),k=N=>{p.value=N},y=N=>{d.value=N},v=N=>{const M=Math.floor(N/60),H=(N%60).toFixed(0),ie=M.toString().padStart(2,"0"),Q=H.toString().padStart(2,"0");return`${ie}:${Q}`},C=async()=>{try{u.value=null,f.value=await navigator.mediaDevices.getUserMedia({audio:!0}),r.value=new MediaRecorder(f.value),r.value.ondataavailable=L,r.value.start(),P(),i.value=!0,o("recording",!0)}catch(N){console.error("Erro ao iniciar a gravação:",N)}},L=N=>{N.data.size>0&&!x.value&&(m.value=new Blob([N.data]),g.value=URL.createObjectURL(m.value),A())},P=()=>{let N=Date.now();h.value=setInterval(()=>{l.value=c.value+Math.floor((Date.now()-N)/1e3)},1e3)},E=async()=>{u.value=null,r.value&&i.value&&(s.value?(r.value.resume(),P()):(r.value.pause(),clearInterval(h.value),c.value=l.value),s.value=!s.value)},w=async()=>{r.value&&i.value&&(await r.value.stop(),clearInterval(h.value),i.value=!1,s.value=!1,A()),f.value&&f.value.getTracks().forEach(N=>N.stop())},A=async()=>{if(m.value){const N=new Blob([m.value],{type:"audio/mpeg"}),M=new FileReader;M.onload=()=>{u.value=M.result},M.readAsDataURL(N)}},S=async()=>{b.value=!0,o("b64Audio",u.value);const M={type:"file",media:{name:"audio",mimetype:(H=>H?H.split(";")[0].split(":")[1]:null)(u.value),data:u.value}};await a.sendAudioToAttendant(a.selectedAttendant.id,M,a.attendant,!0),o("recording",!1),b.value=!1,f.value=null,u.value=null,m.value=null,i.value=!1,s.value=!1,l.value=0},B=async()=>{x.value=!0,i.value=!1,o("recording",!1),await r.value.stop(),f.value&&(f.value.getTracks().forEach(N=>N.stop()),f.value=null),m.value=null,clearInterval(h.value),u.value=null,s.value=!1,l.value=0};return(N,M)=>{var H;return b.value?(e.openBlock(),e.createElementBlock("div",H4,M[9]||(M[9]=[e.createElementVNode("span",{class:"loader-audio-recorder"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",D4,[!i.value&&!u.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["send-audio-button",{recording:i.value}]),disabled:i.value||!t.canSendMessage,onClick:M[0]||(M[0]=ie=>(C(),c.value=0,x.value=!1))},M[3]||(M[3]=[e.createElementVNode("svg",{class:"start-recording-icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 19"},[e.createElementVNode("path",{d:"M15 5a1 1 0 0 0-1 1v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a1 1 0 0 0-2 0v3a6.006 6.006 0 0 0 6 6h1v2H5a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H9v-2h1a6.006 6.006 0 0 0 6-6V6a1 1 0 0 0-1-1Z"}),e.createElementVNode("path",{d:"M9 0H7a3 3 0 0 0-3 3v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3Z"})],-1)]),10,L4)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"rounded-full bg-red-500 p-1.5 hover:bg-red-600",onClick:M[1]||(M[1]=ie=>B())},M[4]||(M[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})],-1)]))):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("button",{key:2,disabled:!i.value&&!s.value,onClick:E},[s.value?(e.openBlock(),e.createElementBlock("svg",P4,M[6]||(M[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 010 1.954l-7.108 4.061A1.125 1.125 0 013 16.811z"},null,-1)]))):(e.openBlock(),e.createElementBlock("svg",$4,M[5]||(M[5]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M0 .8C0 .358.32 0 .714 0h1.429c.394 0 .714.358.714.8v14.4c0 .442-.32.8-.714.8H.714a.678.678 0 0 1-.505-.234A.851.851 0 0 1 0 15.2V.8Zm7.143 0c0-.442.32-.8.714-.8h1.429c.19 0 .37.084.505.234.134.15.209.354.209.566v14.4c0 .442-.32.8-.714.8H7.857c-.394 0-.714-.358-.714-.8V.8Z","clip-rule":"evenodd"},null,-1)])))],8,F4)):e.createCommentVNode("",!0),(i.value||m.value)&&!u.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full p-1.5 hover:bg-gray-100 hover:text-light",onClick:w},M[7]||(M[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-4"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"})],-1)]))):e.createCommentVNode("",!0),f.value&&i.value&&!s.value?(e.openBlock(),e.createBlock(T4,{key:4,"audio-stream":f.value},null,8,["audio-stream"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",O4,[e.createVNode(i1,{avatar:((H=t.attendant)==null?void 0:H.photo)||null,audio:u.value,onDuration:k,onCurrentTime:y},null,8,["avatar","audio"]),e.createElementVNode("main",_4,[e.createElementVNode("div",null,e.toDisplayString(v(d.value)),1),i.value||m.value?(e.openBlock(),e.createElementBlock("div",R4,e.toDisplayString(v(l.value)),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("button",{key:6,class:"rounded-full p-2 hover:bg-base-100",onClick:M[2]||(M[2]=ie=>S())},M[8]||(M[8]=[e.createElementVNode("svg",{class:"size-5 text-base-200 rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):e.createCommentVNode("",!0)]))}}},[["__scopeId","data-v-2126da40"]]);function j4(t){return{all:t=t||new Map,on:function(n,a){var o=t.get(n);o?o.push(a):t.set(n,[a])},off:function(n,a){var o=t.get(n);o&&(a?o.splice(o.indexOf(a)>>>0,1):t.set(n,[]))},emit:function(n,a){var o=t.get(n);o&&o.slice().map(function(r){r(a)}),(o=t.get("*"))&&o.slice().map(function(r){r(n,a)})}}}const s1=j4();let l1=0;const G4=()=>{const t=l1;return l1+=1,t},c1=(t,n)=>{const a={...t,id:G4(),group:t.group||""};return s1.emit("notify",{notification:a,timeout:n}),()=>s1.emit("close",a.id)};/*! Capacitor: https://capacitorjs.com/ - MIT License */var Ut;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Ut||(Ut={}));class _a extends Error{constructor(n,a,o){super(n),this.message=n,this.code=a,this.data=o}}const q4=t=>{var n,a;return t!=null&&t.androidBridge?"android":!((a=(n=t==null?void 0:t.webkit)===null||n===void 0?void 0:n.messageHandlers)===null||a===void 0)&&a.bridge?"ios":"web"},I4=t=>{const n=t.CapacitorCustomPlatform||null,a=t.Capacitor||{},o=a.Plugins=a.Plugins||{},r=()=>n!==null?n.name:q4(t),i=()=>r()!=="web",s=h=>{const f=m.get(h);return!!(f!=null&&f.platforms.has(r())||l(h))},l=h=>{var f;return(f=a.PluginHeaders)===null||f===void 0?void 0:f.find(p=>p.name===h)},c=h=>t.console.error(h),m=new Map,u=(h,f={})=>{const p=m.get(h);if(p)return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`),p.proxy;const d=r(),g=l(h);let x;const b=async()=>(!x&&d in f?x=typeof f[d]=="function"?x=await f[d]():x=f[d]:n!==null&&!x&&"web"in f&&(x=typeof f.web=="function"?x=await f.web():x=f.web),x),k=(E,w)=>{var A,S;if(g){const B=g==null?void 0:g.methods.find(N=>w===N.name);if(B)return B.rtype==="promise"?N=>a.nativePromise(h,w.toString(),N):(N,M)=>a.nativeCallback(h,w.toString(),N,M);if(E)return(A=E[w])===null||A===void 0?void 0:A.bind(E)}else{if(E)return(S=E[w])===null||S===void 0?void 0:S.bind(E);throw new _a(`"${h}" plugin is not implemented on ${d}`,Ut.Unimplemented)}},y=E=>{let w;const A=(...S)=>{const B=b().then(N=>{const M=k(N,E);if(M){const H=M(...S);return w=H==null?void 0:H.remove,H}else throw new _a(`"${h}.${E}()" is not implemented on ${d}`,Ut.Unimplemented)});return E==="addListener"&&(B.remove=async()=>w()),B};return A.toString=()=>`${E.toString()}() { [capacitor code] }`,Object.defineProperty(A,"name",{value:E,writable:!1,configurable:!1}),A},v=y("addListener"),C=y("removeListener"),L=(E,w)=>{const A=v({eventName:E},w),S=async()=>{const N=await A;C({eventName:E,callbackId:N},w)},B=new Promise(N=>A.then(()=>N({remove:S})));return B.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await S()},B},P=new Proxy({},{get(E,w){switch(w){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return g?L:v;case"removeListener":return C;default:return y(w)}}});return o[h]=P,m.set(h,{name:h,proxy:P,platforms:new Set([...Object.keys(f),...g?[d]:[]])}),P};return a.convertFileSrc||(a.convertFileSrc=h=>h),a.getPlatform=r,a.handleError=c,a.isNativePlatform=i,a.isPluginAvailable=s,a.registerPlugin=u,a.Exception=_a,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a},zn=(t=>t.Capacitor=I4(t))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),sn=zn.registerPlugin;class jn{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(n,a){let o=!1;this.listeners[n]||(this.listeners[n]=[],o=!0),this.listeners[n].push(a);const i=this.windowListeners[n];i&&!i.registered&&this.addWindowListener(i),o&&this.sendRetainedArgumentsForEvent(n);const s=async()=>this.removeListener(n,a);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(const n in this.windowListeners)this.removeWindowListener(this.windowListeners[n]);this.windowListeners={}}notifyListeners(n,a,o){const r=this.listeners[n];if(!r){if(o){let i=this.retainedEventArguments[n];i||(i=[]),i.push(a),this.retainedEventArguments[n]=i}return}r.forEach(i=>i(a))}hasListeners(n){var a;return!!(!((a=this.listeners[n])===null||a===void 0)&&a.length)}registerWindowListener(n,a){this.windowListeners[a]={registered:!1,windowEventName:n,pluginEventName:a,handler:o=>{this.notifyListeners(a,o)}}}unimplemented(n="not implemented"){return new zn.Exception(n,Ut.Unimplemented)}unavailable(n="not available"){return new zn.Exception(n,Ut.Unavailable)}async removeListener(n,a){const o=this.listeners[n];if(!o)return;const r=o.indexOf(a);this.listeners[n].splice(r,1),this.listeners[n].length||this.removeWindowListener(this.windowListeners[n])}addWindowListener(n){window.addEventListener(n.windowEventName,n.handler),n.registered=!0}removeWindowListener(n){n&&(window.removeEventListener(n.windowEventName,n.handler),n.registered=!1)}sendRetainedArgumentsForEvent(n){const a=this.retainedEventArguments[n];a&&(delete this.retainedEventArguments[n],a.forEach(o=>{this.notifyListeners(n,o)}))}}const d1=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),u1=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class W4 extends jn{async getCookies(){const n=document.cookie,a={};return n.split(";").forEach(o=>{if(o.length<=0)return;let[r,i]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");r=u1(r).trim(),i=u1(i).trim(),a[r]=i}),a}async setCookie(n){try{const a=d1(n.key),o=d1(n.value),r=`; expires=${(n.expires||"").replace("expires=","")}`,i=(n.path||"/").replace("path=",""),s=n.url!=null&&n.url.length>0?`domain=${n.url}`:"";document.cookie=`${a}=${o||""}${r}; path=${i}; ${s};`}catch(a){return Promise.reject(a)}}async deleteCookie(n){try{document.cookie=`${n.key}=; Max-Age=0`}catch(a){return Promise.reject(a)}}async clearCookies(){try{const n=document.cookie.split(";")||[];for(const a of n)document.cookie=a.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(n){return Promise.reject(n)}}async clearAllCookies(){try{await this.clearCookies()}catch(n){return Promise.reject(n)}}}sn("CapacitorCookies",{web:()=>new W4});const U4=async t=>new Promise((n,a)=>{const o=new FileReader;o.onload=()=>{const r=o.result;n(r.indexOf(",")>=0?r.split(",")[1]:r)},o.onerror=r=>a(r),o.readAsDataURL(t)}),Z4=(t={})=>{const n=Object.keys(t);return Object.keys(t).map(r=>r.toLocaleLowerCase()).reduce((r,i,s)=>(r[i]=t[n[s]],r),{})},Y4=(t,n=!0)=>t?Object.entries(t).reduce((o,r)=>{const[i,s]=r;let l,c;return Array.isArray(s)?(c="",s.forEach(m=>{l=n?encodeURIComponent(m):m,c+=`${i}=${l}&`}),c.slice(0,-1)):(l=n?encodeURIComponent(s):s,c=`${i}=${l}`),`${o}&${c}`},"").substr(1):null,m1=(t,n={})=>{const a=Object.assign({method:t.method||"GET",headers:t.headers},n),r=Z4(t.headers)["content-type"]||"";if(typeof t.data=="string")a.body=t.data;else if(r.includes("application/x-www-form-urlencoded")){const i=new URLSearchParams;for(const[s,l]of Object.entries(t.data||{}))i.set(s,l);a.body=i.toString()}else if(r.includes("multipart/form-data")||t.data instanceof FormData){const i=new FormData;if(t.data instanceof FormData)t.data.forEach((l,c)=>{i.append(c,l)});else for(const l of Object.keys(t.data))i.append(l,t.data[l]);a.body=i;const s=new Headers(a.headers);s.delete("content-type"),a.headers=s}else(r.includes("application/json")||typeof t.data=="object")&&(a.body=JSON.stringify(t.data));return a};class X4 extends jn{async request(n){const a=m1(n,n.webFetchExtra),o=Y4(n.params,n.shouldEncodeUrlParams),r=o?`${n.url}?${o}`:n.url,i=await fetch(r,a),s=i.headers.get("content-type")||"";let{responseType:l="text"}=i.ok?n:{};s.includes("application/json")&&(l="json");let c,m;switch(l){case"arraybuffer":case"blob":m=await i.blob(),c=await U4(m);break;case"json":c=await i.json();break;case"document":case"text":default:c=await i.text()}const u={};return i.headers.forEach((h,f)=>{u[f]=h}),{data:c,headers:u,status:i.status,url:i.url}}async get(n){return this.request(Object.assign(Object.assign({},n),{method:"GET"}))}async post(n){return this.request(Object.assign(Object.assign({},n),{method:"POST"}))}async put(n){return this.request(Object.assign(Object.assign({},n),{method:"PUT"}))}async patch(n){return this.request(Object.assign(Object.assign({},n),{method:"PATCH"}))}async delete(n){return this.request(Object.assign(Object.assign({},n),{method:"DELETE"}))}}sn("CapacitorHttp",{web:()=>new X4});const Gn={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"},Lt=sn("VoiceRecorder",{web:()=>Promise.resolve().then(()=>jx).then(t=>new t.VoiceRecorderWeb)});function f1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z"}),e.createElementVNode("path",{d:"M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z"})])}function K4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"})])}function h1(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function Q4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z","clip-rule":"evenodd"})])}function J4(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z","clip-rule":"evenodd"})])}const e5={key:0,class:"bg-base-300 absolute bottom-14 left-0 z-50 flex w-full items-center justify-between rounded-t-2xl p-3"},t5={class:"flex h-11 items-center"},n5={key:0},a5={key:0},o5={key:1,class:"flex w-full justify-between rounded-lg border-2 border-gray-500 p-2 px-4"},r5={key:1},i5={class:"flex w-full items-center justify-between gap-2"},s5=["disabled"],l5=["disabled"],c5={key:1,class:"loader-mobile-audio-recorder"},d5=Ce({__name:"mobileAudioRecorder",props:{disableBtn:{type:Boolean,default:!1},sendAudioToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0}},emits:["audio-sent","recording","paused"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(null),c=e.ref([]),m=e.ref(null),u=e.ref("00:00"),h=e.ref(!1),f=e.ref(null);let p=0;e.onUnmounted(()=>{P()});const d=()=>{let M;try{if(c.value.length>0){const H=c.value.map(fe=>{const F=atob(fe),D=new Array(F.length);for(let re=0;re<F.length;re++)D[re]=F.charCodeAt(re);const j=new Uint8Array(D);return new Blob([j],{type:m.value})}),ie=new Blob(H,{type:m.value}),Q=URL.createObjectURL(ie);return M=new Audio(Q),M}}catch(H){console.error("Erro ao criar o objeto Audio:",H)}},g=M=>{M==="play"?(f.value.currentTime=p,f.value.oncanplay=()=>{f.value.play().then(()=>{h.value=!0}).catch(H=>{console.error("Erro ao tentar reproduzir o áudio:",H)})},f.value.onended=()=>{h.value=!1,p=0},f.value.onerror=H=>{console.error("Erro ao carregar o áudio:",H)},f.value.load()):M==="pause"&&(f.value&&!f.value.paused?(h.value=!1,f.value.pause()):console.error("Nenhum áudio está tocando no momento"))},x=M=>{const H=Math.floor(M/60),ie=(M%60).toFixed(0),Q=H.toString().padStart(2,"0"),fe=ie.toString().padStart(2,"0");return`${Q}:${fe}`},b=()=>{s.value++,u.value=x(s.value)},k=()=>{l.value&&clearInterval(l.value),l.value=setInterval(b,1e3)},y=()=>{l.value&&clearInterval(l.value)},v=async()=>{let{value:M}=await Lt.hasAudioRecordingPermission();if(M)try{Lt.startRecording(),a("recording",!0),r.value="started",k()}catch(H){console.error(H)}else c1({group:"error",title:"Erro",text:"Permissões de microfone desativadas, ajuste nas configurações do dispositivo"},4e3)},C=()=>{try{a("paused",!0),r.value="paused",P(),y()}catch(M){console.error(M)}},L=()=>{try{f.value&&(f.value.pause(),h.value=!1),a("paused",!1),r.value="started",v(),k()}catch(M){console.error(M)}},P=async()=>{(await Lt.getCurrentStatus()).status!=="NONE"&&await Lt.stopRecording().then(H=>{m.value=H.value.mimeType,c.value.push(H.value.recordDataBase64),f.value=d(),y()})},E=async()=>{const M=await Lt.getCurrentStatus();M.status==="RECORDING"?(await P(),a("paused",!1),a("recording",!1),r.value=null,c.value=[],i.value=!1,s.value=0,u.value=x(0)):M.status==="NONE"&&(a("recording",!1),a("paused",!1),r.value=null,i.value=!1,c.value=[],s.value=0,u.value=x(0))},w=async()=>{await Lt.getCurrentStatus(),f.value&&(f.value.pause(),h.value=!1),E()};function A(M){const H=atob(M),ie=H.length,Q=new Uint8Array(ie);for(let fe=0;fe<ie;fe++)Q[fe]=H.charCodeAt(fe);return Q}function S(M){let H=M.reduce((fe,F)=>fe+F.length,0),ie=new Uint8Array(H),Q=0;return M.forEach(fe=>{ie.set(fe,Q),Q+=fe.length}),ie}function B(M){let H="",ie=M.byteLength;for(let Q=0;Q<ie;Q++)H+=String.fromCharCode(M[Q]);return btoa(H)}const N=async()=>{i.value=!0,(await Lt.getCurrentStatus()).status==="RECORDING"&&await P();try{const H=c.value.map(A),ie=S(H),Q=B(ie),fe=`data:${m.value};base64,${Q}`,D={type:"file",media:{name:"audio",mimetype:(j=>j?j.split(";")[0].split(":")[1]:null)(fe),data:fe}};console.log("payload",JSON.stringify(D)),await o.sendAudioToAttendant(o.selectedAttendant.id,D,o.attendant,!0),E()}catch(H){E(),console.error("Erro ao enviar áudio:",H),c1({group:"error",title:"Erro",text:"Erro ao enviar áudio, tente novamente."},4e3);return}};return(M,H)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"bounce"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",e5,[e.createElementVNode("div",t5,[r.value!="paused"?(e.openBlock(),e.createElementBlock("section",n5,"Gravando")):e.createCommentVNode("",!0)]),r.value!="paused"?(e.openBlock(),e.createElementBlock("section",a5,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("section",o5,[h.value?(e.openBlock(),e.createElementBlock("button",r5,[e.createVNode(e.unref(h1),{class:"size-6 cursor-pointer",onClick:H[1]||(H[1]=ie=>g("pause"))})])):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:H[0]||(H[0]=ie=>g("play"))},[e.createVNode(e.unref(Q4),{class:"size-6 cursor-pointer"})])),H[7]||(H[7]=e.createElementVNode("div",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(u.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",i5,[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:H[2]||(H[2]=ie=>w())},[e.createVNode(e.unref(J4),{class:"ml-2 size-6 cursor-pointer text-red-500/80 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="paused"?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:H[3]||(H[3]=ie=>L())},[e.createVNode(e.unref(f1),{class:"size-7 cursor-pointer text-green-500/90 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value==="started"?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:H[4]||(H[4]=ie=>C())},[e.createVNode(e.unref(h1),{class:"size-7 cursor-pointer text-green-500 drop-shadow-md"})])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:4,disabled:i.value,class:"mr-2 flex items-center justify-center rounded-full bg-primary p-2 drop-shadow-md",onClick:H[6]||(H[6]=ie=>N())},[i.value?(e.openBlock(),e.createElementBlock("span",c5)):(e.openBlock(),e.createBlock(e.unref(K4),{key:0,class:"size-5 cursor-pointer"}))],8,l5)):(e.openBlock(),e.createElementBlock("button",{key:3,class:"rounded-full bg-primary p-2 send-audio-button",disabled:t.disableBtn,onClick:H[5]||(H[5]=ie=>v())},[e.createVNode(e.unref(f1),{class:"hover:text-white size-5"})],8,s5))])],64))}},[["__scopeId","data-v-ffe4fb12"]]),u5={class:"messages-container bg-base-300"},m5={class:"header-intern bg-base-300"},f5={class:"atendente-name"},h5={key:0,class:"date-separator bg-base-100/50"},p5={class:"date-separator-text"},g5={key:0,class:"dropdown-container-internal-messages"},y5=["onClick"],k5={class:"message-time"},x5={key:1},b5={class:"message-time"},w5={class:"input-area"},p1=Ce({__name:"ChatMessages",props:{isMobile:{type:Boolean,default:!1},selectedAtendente:{type:Object,required:!0},attendant:{required:!0},loadMessagesForAtendente:{type:Function,required:!0},sendMessageToAtendente:{type:Function,required:!0},hasNextPageForAtendente:{type:Function,required:!0},downloadFilesMobile:{type:Function},openMobilePdf:{type:Function}},emits:["send-files","voltar"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(""),i=e.ref(null),s=e.ref(!1),l=e.ref(!1),c=e.ref(!1),m=e.computed(()=>{var E;return((E=a.selectedAtendente)==null?void 0:E.messages)||[]}),u=E=>{a.isMobile&&a.openMobilePdf(E)},h=(E,w)=>{if(E)if(a.isMobile){const S=E.mimetype.split("/")[1],B={url:E.mimetype==="image/svg+xml"?E.data.replace("+","%2B"):E.data,type:S,title:E.name};a.downloadFilesMobile(B,w)}else P(E.data,w)},f=e.computed(()=>a.hasNextPageForAtendente(a.selectedAtendente.id)),p=E=>{const w=new Date(E),A=w.getHours(),S=w.getMinutes();return`${A.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}`},d=E=>{const w=new Date(E);return g3(w)?"Hoje":k3(w)?"Ontem":p3(w)?Er(w,"EEEE",{locale:Qo}):Er(w,"dd 'de' MMMM 'de' yyyy",{locale:Qo})},g=E=>{if(E===0)return!0;const w=new Date(m.value[E].created_at),A=new Date(m.value[E-1].created_at);return w.toDateString()!==A.toDateString()},x=E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),y())},b=()=>{i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},k=async E=>{try{if(!f.value){E.complete();return}const w=i.value.scrollHeight,A=i.value.scrollTop;await a.loadMessagesForAtendente(a.selectedAtendente.id),await e.nextTick(),i.value.scrollTop=i.value.scrollHeight-w+A-32,E.loaded()}catch(w){console.error(w),E.complete()}},y=async()=>{if(r.value.trim()!=="")try{const E=JSON.parse(JSON.stringify(r.value));r.value="",await a.sendMessageToAtendente(a.selectedAtendente.id,E,a.attendant),await e.nextTick(),b()}catch(E){console.error("Erro ao enviar mensagem:",E)}},v=()=>{y();const E=document.querySelector(".send-button");E.classList.add("clicked"),setTimeout(()=>{E.classList.remove("clicked")},200)},C=()=>{o("send-files");const E=document.querySelector(".send-files-button");E.classList.add("clicked"),setTimeout(()=>{E.classList.remove("clicked")},200)};e.onMounted(async()=>{await e.nextTick(()=>{b(),s.value=!0})}),e.watch(()=>{var E;return(E=m.value)==null?void 0:E.length},(E,w)=>{m.value&&L()&&setTimeout(()=>{i.value.scrollTo({top:i.value.scrollHeight,behavior:"instant"})},100)});function L(){const w=i.value.scrollTop+i.value.clientHeight;return i.value.scrollHeight-w<=80}const P=async(E,w="undefined")=>{const A=E.endsWith("svg+xml");try{const S=await fetch(A?E.replace("+","%2B"):E);if(!S.ok)throw new Error("Erro ao baixar o arquivo");const B=S.headers.get("Content-Type"),N=await S.arrayBuffer(),M=B&&B!=="application/octet-stream"?B:"audio/mp3",H=new Blob([N],{type:M}),ie=window.URL.createObjectURL(H),Q=document.createElement("a");Q.href=ie;const fe=B.endsWith("aac")?`${w}.mp3`:w;Q.download=fe,document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),window.URL.revokeObjectURL(ie)}catch(S){console.error("Erro no download:",S)}};return(E,w)=>{const A=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",u5,[e.createElementVNode("div",m5,[e.createElementVNode("button",{onClick:w[0]||(w[0]=S=>o("voltar")),class:"back-button"},w[4]||(w[4]=[e.createElementVNode("svg",{class:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M14.502 7.046h-2.5v-.928a2.122 2.122 0 0 0-1.199-1.954 1.827 1.827 0 0 0-1.984.311L3.71 8.965a2.2 2.2 0 0 0 0 3.24L8.82 16.7a1.829 1.829 0 0 0 1.985.31 2.121 2.121 0 0 0 1.199-1.959v-.928h1a2.025 2.025 0 0 1 1.999 2.047V19a1 1 0 0 0 1.275.961 6.59 6.59 0 0 0 4.662-7.22 6.593 6.593 0 0 0-6.437-5.695Z"})],-1)])),e.createVNode(ya,{url:t.selectedAtendente.photo},null,8,["url"]),e.createElementVNode("h3",f5,e.toDisplayString(t.selectedAtendente.name),1)]),e.createElementVNode("div",{class:"message-area",ref_key:"chatArea",ref:i},[!c.value&&f.value&&s.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:0,onInfinite:k,distance:30,top:!0,direction:"top",class:"p-3"},{complete:e.withCtx(()=>w[5]||(w[5]=[e.createElementVNode("span",null,null,-1)])),spinner:e.withCtx(()=>w[6]||(w[6]=[e.createElementVNode("div",{class:"loading"},[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})])],-1)])),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[g(B)?(e.openBlock(),e.createElementBlock("div",h5,[w[7]||(w[7]=e.createElementVNode("div",{class:"date-separator-line"},null,-1)),e.createElementVNode("div",p5,e.toDisplayString(d(S.created_at)),1),w[8]||(w[8]=e.createElementVNode("div",{class:"date-separator-line"},null,-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["message",{me:S.sender.id===t.attendant.id,"not-me":S.sender.id!==t.attendant.id,"new-message":B===m.value.length-1}])},[e.createElementVNode("div",{class:e.normalizeClass(["relative",S.sender.id===t.attendant.id?"text-right":"text-left"])},[S.content&&S.content.media&&S.content.media.data?(e.openBlock(),e.createElementBlock("div",g5,[e.createVNode(A,{hover:"",class:"label-popper-internal-messages",placement:"left"},{content:e.withCtx(()=>[e.createElementVNode("button",{class:"download-button-internal-messages",onClick:N=>h(S.content.media,S.content.media.name)}," Baixar ",8,y5)]),default:e.withCtx(()=>[w[9]||(w[9]=e.createElementVNode("button",{class:"dropdown-toggle-internal-messages"},[e.createElementVNode("svg",{class:"dropdown-icon-internal-messages","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"})])],-1))]),_:2,__:[9]},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["shadow shadow-gray-900 dark:shadow-gray-500",["message-content",{me:S.sender.id===t.attendant.id,"not-me":S.sender.id!==t.attendant.id}]])},[S.content&&S.content.media&&S.content.media.data?(e.openBlock(),e.createBlock(Oa,{key:0,mode:"message",isMobile:t.isMobile,onDownload:N=>h(S.content.media,S.content.media.name),onOpenMobilePdf:N=>u(S.content.media.data),avatar:S.sender.id===t.attendant.id?t.attendant.photo:S.sender.photo,fileName:S.content.media.name,base64:S.content.media.data,mimetype:S.content.media.mimetype},{"content-message":e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(S.content.content),1)]),"time-message":e.withCtx(()=>[e.createElementVNode("div",k5,e.toDisplayString(p(S.created_at)),1)]),_:2},1032,["isMobile","onDownload","onOpenMobilePdf","avatar","fileName","base64","mimetype"])):(e.openBlock(),e.createElementBlock("section",x5,[e.createElementVNode("p",null,e.toDisplayString(S.content.content),1),e.createElementVNode("div",b5,e.toDisplayString(p(S.created_at)),1)]))],2)],2)],2)]))),128))])],512),e.createElementVNode("div",w5,[e.withDirectives(e.createElementVNode("textarea",{type:"text","onUpdate:modelValue":w[1]||(w[1]=S=>r.value=S),class:"message-input bg-base-300 focus:ring-0",placeholder:"Digite sua mensagem...",onKeydown:x},null,544),[[e.vModelText,r.value]]),e.createElementVNode("button",{onClick:C,class:"send-files-button"},w[10]||(w[10]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 8v8a5 5 0 1 0 10 0V6.5a3.5 3.5 0 1 0-7 0V15a2 2 0 0 0 4 0V8"})],-1)])),r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"send-button"},w[11]||(w[11]=[e.createElementVNode("svg",{class:"size-5 text-white rotate-90","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))):(e.openBlock(),e.createElementBlock("section",{key:1,class:e.normalizeClass(["bg-base-300",["send-audio-button",{recording:l.value}]])},[t.isMobile?(e.openBlock(),e.createBlock(d5,{key:0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:w[2]||(w[2]=S=>l.value=S)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"])):(e.openBlock(),e.createBlock(z4,{key:1,"can-send-message":!0,attendant:t.attendant,selectedAttendant:t.selectedAtendente,sendAudioToAttendant:t.sendMessageToAtendente,onRecording:w[3]||(w[3]=S=>l.value=S)},null,8,["attendant","selectedAttendant","sendAudioToAttendant"]))],2))])])}}},[["__scopeId","data-v-22b5feef"]]),E5={},v5={class:"loading"};function C5(t,n){return e.openBlock(),e.createElementBlock("div",v5,n[0]||(n[0]=[e.createElementVNode("svg",{class:"spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-30",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})],-1)]))}const g1=Ce(E5,[["render",C5],["__scopeId","data-v-17a2cc35"]]);/**
94
93
  * Vue 3 Carousel 0.16.0
95
94
  * (c) 2025
96
95
  * @license MIT
97
- */const H1=["viewport","carousel"],aa={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},z1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],X5={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},j1=["slide","fade"],G1=["center","start","end","center-even","center-odd"],I1=10,oa=.08,He={autoplay:0,breakpointMode:H1[0],breakpoints:void 0,dir:z1[0],enabled:!0,gap:0,height:"auto",i18n:X5,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:j1[0],snapAlign:G1[0],touchDrag:!0,transition:300,wrapAround:!1},Gt=Symbol("carousel"),K5=t=>{const n=e.shallowReactive([]),a=o=>{o!==void 0?n.slice(o).forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(o+i)}):n.forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{n.splice(0,n.length)},getSlides:()=>n,registerSlide:(o,r)=>{if(!o||o.props.isClone)return;const i=r??n.length;n.splice(i,0,o),a(i),t("slide-registered",{slide:o,index:i})},unregisterSlide:o=>{const r=n.indexOf(o);r!==-1&&(t("slide-unregistered",{slide:o,index:r}),n.splice(r,1),a(r))}}};function Q5(t){return t.length===0?0:t.reduce((a,o)=>a+o,0)/t.length}function q1({slides:t,position:n,toShow:a}){const o=[],r=n==="before",i=r?-a:0,s=r?0:a;if(t.length<=0)return o;for(let l=i;l<s;l++){const u={index:r?l:l+t.length,isClone:!0,id:void 0,key:`clone-${n}-${l}`},d=t[(l%t.length+t.length)%t.length].vnode,h=e.cloneVNode(d,u);h.el=null,o.push(h)}return o}const J5='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function W1(t){if(!t.el||!(t.el instanceof Element))return;const n=t.el.querySelectorAll(J5);for(const a of n)a instanceof HTMLElement&&!a.hasAttribute("disabled")&&a.getAttribute("aria-hidden")!=="true"&&a.setAttribute("tabindex","-1")}function e6(t,n){return Object.keys(t).filter(a=>!n.includes(a)).reduce((a,o)=>(a[o]=t[o],a),{})}function t6(t){const{isVertical:n,isReversed:a,dragged:o,effectiveSlideSize:r,threshold:i}=t,s=n?o.y:o.x;if(s===0)return 0;const l=s/r,c=Math.abs(l);if(c<i)return 0;const u=c<1?Math.sign(l):Math.round(l);return a?u:-u}function vt({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,isNaN(a)?t:a),isNaN(n)?t:n)}function n6(t){const{transform:n}=window.getComputedStyle(t);return n.split(/[(,)]/).slice(1,-1).map(a=>parseFloat(a))}function a6(t){let n=1,a=1;return t.forEach(o=>{const r=n6(o);r.length===6&&(n/=r[0],a/=r[3])}),{widthMultiplier:n,heightMultiplier:a}}function o6(t,n){switch(t){case"start":return 0;case"center":case"center-odd":return(n-1)/2;case"center-even":return(n-2)/2;case"end":return n-1;default:return 0}}function r6(t,n,a){switch(t){case"start":return 0;case"center":case"center-odd":return(a-n)/2;case"center-even":return a/2-n;case"end":return a-n;default:return 0}}function Ka({slideSize:t,viewportSize:n,align:a,itemsToShow:o}){return o!==void 0?o6(a,o):t!==void 0&&n!==void 0?r6(a,t,n):0}function U1(t="",n={}){return Object.entries(n).reduce((a,[o,r])=>a.replace(`{${o}}`,String(r)),t)}function Z1({val:t,max:n,min:a=0}){const o=n-a+1;return((t-a)%o+o)%o+a}function Qa(t,n=0){let a=!1,o=0,r=null;function i(...s){if(a)return;a=!0;const l=()=>{r=requestAnimationFrame(c=>{c-o>n?(o=c,t(...s),a=!1):l()})};l()}return i.cancel=()=>{r&&(cancelAnimationFrame(r),r=null,a=!1)},i}function ra(t,n="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${n}`:t}const i6=e.defineComponent({name:"CarouselAria",setup(){const t=e.inject(Gt);return t?()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},U1(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}});function s6(t){let n=!1;const a={x:0,y:0},o=e.reactive({x:0,y:0}),r=e.ref(!1),{isSliding:i}=t,s=e.computed(()=>typeof i=="boolean"?i:i.value),l=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||s.value||(n=d.type==="touchstart",n&&d.touches.length>1))return;if(!n&&(d.preventDefault(),d.button!==0))return;a.x=n?d.touches[0].clientX:d.clientX,a.y=n?d.touches[0].clientY:d.clientY;const g=n?"touchmove":"mousemove",m=n?"touchend":"mouseup";document.addEventListener(g,c,{passive:!1}),document.addEventListener(m,u,{passive:!0}),(h=t.onDragStart)===null||h===void 0||h.call(t)},c=Qa(d=>{var h;if(n&&d.touches.length>1)return;r.value=!0;const f=n?d.touches[0].clientX:d.clientX,g=n?d.touches[0].clientY:d.clientY;o.x=f-a.x,o.y=g-a.y,(h=t.onDrag)===null||h===void 0||h.call(t,{deltaX:o.x,deltaY:o.y,isTouch:n})}),u=()=>{var d;c.cancel();const h=Math.abs(o.x)+Math.abs(o.y);!n&&h>10&&window.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation()},{once:!0,capture:!0}),(d=t.onDragEnd)===null||d===void 0||d.call(t),o.x=0,o.y=0,r.value=!1;const f=n?"touchmove":"mousemove",g=n?"touchend":"mouseup";document.removeEventListener(f,c),document.removeEventListener(g,u)};return{dragged:o,isDragging:r,handleDragStart:l}}function l6(){const t=e.ref(!1);return{isHover:t,handleMouseEnter:()=>{t.value=!0},handleMouseLeave:()=>{t.value=!1}}}function c6(t){const{isVertical:n,isSliding:a,config:o}=t,r=e.computed(()=>typeof n=="boolean"?n:n.value),i=e.computed(()=>typeof a=="boolean"?a:a.value);return{handleScroll:l=>{var c,u;if(l.preventDefault(),!o.mouseWheel||i.value)return;const d=typeof o.mouseWheel=="object"&&(c=o.mouseWheel.threshold)!==null&&c!==void 0?c:I1,h=Math.abs(l.deltaY)>d?l.deltaY:0,f=Math.abs(l.deltaX)>d?l.deltaX:0;if(h===0&&f===0)return;const g=r.value?h:f,p=(g!==0?g:r.value?f:h)>0;(u=t.onWheel)===null||u===void 0||u.call(t,{deltaX:f,deltaY:h,isScrollingForward:p})}}}const d6={autoplay:{default:He.autoplay,type:Number},breakpoints:{default:He.breakpoints,type:Object},breakpointMode:{default:He.breakpointMode,validator(t){return H1.includes(t)}},clamp:{type:Boolean},dir:{type:String,default:He.dir,validator(t,n){if(!z1.includes(t))return!1;const a=t in aa?aa[t]:t;return["ttb","btt"].includes(a)&&(!n.height||n.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${t}" is not supported with height "auto".`),!0}},enabled:{default:He.enabled,type:Boolean},gap:{default:He.gap,type:Number},height:{default:He.height,type:[Number,String]},i18n:{default:He.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:He.itemsToScroll,type:Number},itemsToShow:{default:He.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:He.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:He.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:He.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:He.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,n){return t&&n.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:He.slideEffect,validator(t){return j1.includes(t)}},snapAlign:{default:He.snapAlign,validator(t){return G1.includes(t)}},touchDrag:{default:He.touchDrag,type:[Boolean,Object]},transition:{default:He.transition,type:Number},wrapAround:{default:He.wrapAround,type:Boolean}},u6=e.defineComponent({name:"VueCarousel",props:d6,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(t,{slots:n,emit:a,expose:o}){var r;const i=K5(a),s=i.getSlides(),l=e.computed(()=>s.length),c=e.ref(null),u=e.ref(null),d=e.ref(0),h=e.computed(()=>Object.assign(Object.assign(Object.assign({},He),e6(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},He.i18n),t.i18n)})),f=e.shallowReactive(Object.assign({},h.value)),g=e.ref((r=t.modelValue)!==null&&r!==void 0?r:0),m=e.ref(g.value);e.watch(g,F=>m.value=F);const p=e.ref(0),y=e.computed(()=>Math.ceil((l.value-1)/2)),k=e.computed(()=>l.value-1),b=e.computed(()=>0);let x=null,C=null,M=null;const D=e.computed(()=>d.value+f.gap),H=e.computed(()=>{const F=f.dir||"ltr";return F in aa?aa[F]:F}),S=e.computed(()=>["rtl","btt"].includes(H.value)),w=e.computed(()=>["ttb","btt"].includes(H.value)),T=e.computed(()=>f.itemsToShow==="auto"),V=e.computed(()=>w.value?"height":"width");function N(){var F;if(!ye.value)return;const G=(h.value.breakpointMode==="carousel"?(F=c.value)===null||F===void 0?void 0:F.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,W=Object.keys(t.breakpoints||{}).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie),ee={};W.some(ie=>G>=ie?(Object.assign(ee,t.breakpoints[ie]),ee.i18n&&Object.assign(ee.i18n,h.value.i18n,t.breakpoints[ie].i18n),!0):!1),Object.assign(f,h.value,ee),T.value||(f.itemsToShow=vt({val:Number(f.itemsToShow),max:t.clamp?l.value:1/0,min:1}))}const B=Qa(()=>{N(),R(),O()}),v=e.shallowReactive(new Set),P=e.ref([]);function Z({widthMultiplier:F,heightMultiplier:G}){P.value=s.map(W=>{var ee;const ie=(ee=W.exposed)===null||ee===void 0?void 0:ee.getBoundingRect();return{width:ie.width*F,height:ie.height*G}})}const Q=e.ref({width:0,height:0});function J({widthMultiplier:F,heightMultiplier:G}){var W;const ee=((W=u.value)===null||W===void 0?void 0:W.getBoundingClientRect())||{width:0,height:0};Q.value={width:ee.width*F,height:ee.height*G}}function O(){if(!u.value)return;const F=a6(v);if(J(F),Z(F),T.value)d.value=Q5(P.value.map(G=>G[V.value]));else{const G=Number(f.itemsToShow),W=(G-1)*f.gap;d.value=(Q.value[V.value]-W)/G}}function R(){!f.wrapAround&&l.value>0&&(g.value=vt({val:g.value,max:k.value,min:b.value}))}const _=e.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);e.watchEffect(()=>R()),e.watchEffect(()=>{O()});let oe;const de=F=>{const G=F.target;if(!(!(G!=null&&G.contains(c.value))||Array.isArray(_.value)&&_.value.includes(F.animationName))&&(v.add(G),!oe)){const W=()=>{oe=requestAnimationFrame(()=>{O(),W()})};W()}},pe=F=>{const G=F.target;G&&v.delete(G),oe&&v.size===0&&(cancelAnimationFrame(oe),O())},ye=e.ref(!1);typeof document<"u"&&e.watchEffect(()=>{ye.value&&_.value!==!1?(document.addEventListener("animationstart",de),document.addEventListener("animationend",pe)):(document.removeEventListener("animationstart",de),document.removeEventListener("animationend",pe))}),e.onMounted(()=>{ye.value=!0,N(),Oe(),c.value&&(M=new ResizeObserver(B),M.observe(c.value)),a("init")}),e.onBeforeUnmount(()=>{ye.value=!1,i.cleanup(),C&&clearTimeout(C),oe&&cancelAnimationFrame(oe),x&&clearInterval(x),M&&(M.disconnect(),M=null),typeof document<"u"&&_e(),c.value&&(c.value.removeEventListener("transitionend",O),c.value.removeEventListener("animationiteration",O))});const{isHover:Ve,handleMouseEnter:Fe,handleMouseLeave:Ae}=l6(),qe=Qa(F=>{if(!F.ctrlKey)switch(F.key){case"ArrowLeft":case"ArrowUp":w.value===F.key.endsWith("Up")&&(S.value?Y(!0):E(!0));break;case"ArrowRight":case"ArrowDown":w.value===F.key.endsWith("Down")&&(S.value?E(!0):Y(!0));break}},200),_e=()=>{document.removeEventListener("keydown",qe)},$e=()=>{document.addEventListener("keydown",qe)};function Oe(){!f.autoplay||f.autoplay<=0||(x=setInterval(()=>{f.pauseAutoplayOnHover&&Ve.value||Y()},f.autoplay))}function ze(){q(),Oe()}function q(){x&&(clearInterval(x),x=null)}const re=e.ref(!1),he=({deltaX:F,deltaY:G,isTouch:W})=>{var ee,ie,ue,le;a("drag",{deltaX:F,deltaY:G});const ke=W?typeof f.touchDrag=="object"&&(ie=(ee=f.touchDrag)===null||ee===void 0?void 0:ee.threshold)!==null&&ie!==void 0?ie:oa:typeof f.mouseDrag=="object"&&(le=(ue=f.mouseDrag)===null||ue===void 0?void 0:ue.threshold)!==null&&le!==void 0?le:oa,ve=t6({isVertical:w.value,isReversed:S.value,dragged:{x:F,y:G},effectiveSlideSize:D.value,threshold:ke});ve!==0&&(m.value=f.wrapAround?g.value+ve:vt({val:g.value+ve,max:k.value,min:b.value}))},ae=()=>L(m.value),{dragged:K,isDragging:ce,handleDragStart:$}=s6({isSliding:re,onDrag:he,onDragEnd:ae}),I=({deltaX:F,deltaY:G,isScrollingForward:W})=>{a("wheel",{deltaX:F,deltaY:G}),W?S.value?E():Y():S.value?Y():E()},{handleScroll:te}=c6({isVertical:w,isSliding:re,config:f,onWheel:I});function Y(F=!1){L(g.value+f.itemsToScroll,F)}function E(F=!1){L(g.value-f.itemsToScroll,F)}function L(F,G=!1){if(!G&&re.value)return;const W=(f.wrapAround?Z1:vt)({val:F,max:k.value,min:b.value});if(g.value===W)return;p.value=g.value,a("slide-start",{slidingToIndex:F,currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),q(),re.value=!0,g.value=F,W!==F&&ne.pause(),a("update:modelValue",W),C=setTimeout(()=>{f.wrapAround&&W!==F&&(ne.resume(),g.value=W,a("loop",{currentSlideIndex:g.value,slidingToIndex:F})),a("slide-end",{currentSlideIndex:g.value,prevSlideIndex:p.value,slidesCount:l.value}),re.value=!1,ze()},f.transition)}function X(){N(),R(),O(),ze()}e.watch(()=>[h.value,t.breakpoints],()=>N(),{deep:!0}),e.watch(()=>t.autoplay,()=>ze());const ne=e.watch(()=>t.modelValue,F=>{F!==g.value&&L(Number(F),!0)});a("before-init");const se=e.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(T.value)return{before:s.length,after:s.length};const F=Number(f.itemsToShow),G=Math.ceil(F+(f.itemsToScroll-1)),W=G-m.value,ee=G-(l.value-(m.value+1));return{before:Math.max(0,W),after:Math.max(0,ee)}}),me=e.computed(()=>se.value.before?T.value?P.value.slice(-1*se.value.before).reduce((F,G)=>F+G[V.value]+f.gap,0)*-1:se.value.before*D.value*-1:0),fe=e.computed(()=>{var F;if(T.value){const G=(g.value%s.length+s.length)%s.length;return Ka({slideSize:(F=P.value[G])===null||F===void 0?void 0:F[V.value],viewportSize:Q.value[V.value],align:f.snapAlign})}return Ka({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),be=e.computed(()=>{let F=0;if(T.value){if(g.value<0?F=P.value.slice(g.value).reduce((G,W)=>G+W[V.value]+f.gap,0)*-1:F=P.value.slice(0,g.value).reduce((G,W)=>G+W[V.value]+f.gap,0),F-=fe.value,!f.wrapAround){const G=P.value.reduce((W,ee)=>W+ee[V.value]+f.gap,0)-Q.value[V.value]-f.gap;F=vt({val:F,max:G,min:0})}}else{let G=g.value-fe.value;f.wrapAround||(G=vt({val:G,max:l.value-+f.itemsToShow,min:0})),F=G*D.value}return F*(S.value?1:-1)}),Ce=e.computed(()=>{var F,G;if(!T.value){const ie=g.value-fe.value;return f.wrapAround?{min:Math.floor(ie),max:Math.ceil(ie+Number(f.itemsToShow)-1)}:{min:Math.floor(vt({val:ie,max:l.value-Number(f.itemsToShow),min:0})),max:Math.ceil(vt({val:ie+Number(f.itemsToShow)-1,max:l.value-1,min:0}))}}let W=0;{let ie=0,ue=0-se.value.before;const le=Math.abs(be.value+me.value);for(;ie<=le;){const ke=(ue%s.length+s.length)%s.length;ie+=((F=P.value[ke])===null||F===void 0?void 0:F[V.value])+f.gap,ue++}W=ue-1}let ee=0;{let ie=W,ue=0;for(ie<0?ue=P.value.slice(0,ie).reduce((le,ke)=>le+ke[V.value]+f.gap,0)-Math.abs(be.value+me.value):ue=P.value.slice(0,ie).reduce((le,ke)=>le+ke[V.value]+f.gap,0)-Math.abs(be.value);ue<Q.value[V.value];){const le=(ie%s.length+s.length)%s.length;ue+=((G=P.value[le])===null||G===void 0?void 0:G[V.value])+f.gap,ie++}ee=ie-1}return{min:Math.floor(W),max:Math.ceil(ee)}}),Le=e.computed(()=>{if(f.slideEffect==="fade")return;const F=w.value?"Y":"X",G=w.value?K.y:K.x;let W=be.value+G;if(!f.wrapAround&&f.preventExcessiveDragging){let ee=0;T.value?ee=P.value.reduce((le,ke)=>le+ke[V.value],0):ee=(l.value-Number(f.itemsToShow))*D.value;const ie=S.value?0:-1*ee,ue=S.value?ee:0;W=vt({val:W,min:ie,max:ue})}return`translate${F}(${W}px)`}),xe=e.computed(()=>({"--vc-carousel-height":ra(f.height),"--vc-cloned-offset":ra(me.value),"--vc-slide-gap":ra(f.gap),"--vc-transition-duration":re.value?ra(f.transition,"ms"):void 0})),A={slideTo:L,next:Y,prev:E},z=e.reactive({activeSlide:m,config:f,currentSlide:g,isSliding:re,isVertical:w,maxSlide:k,minSlide:b,nav:A,normalizedDir:H,slideRegistry:i,slideSize:d,slides:s,slidesCount:l,viewport:u,visibleRange:Ce});e.provide(Gt,z);const j=e.reactive({config:f,currentSlide:g,maxSlide:k,middleSlide:y,minSlide:b,slideSize:d,slidesCount:l});return o(e.reactive(Object.assign({data:j,next:Y,prev:E,restartCarousel:X,slideTo:L,updateBreakpointsConfig:N,updateSlideSize:O,updateSlidesData:R},e.toRefs(z)))),()=>{var F;const G=n.default||n.slides,W=(G==null?void 0:G(j))||[],{before:ee,after:ie}=se.value,ue=q1({slides:s,position:"before",toShow:ee}),le=q1({slides:s,position:"after",toShow:ie}),ke=[...ue,...W,...le];if(!f.enabled||!ke.length)return e.h("section",{ref:c,class:["carousel","is-disabled"]},ke);const ve=((F=n.addons)===null||F===void 0?void 0:F.call(n,j))||[],Me=e.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?$:null,onTouchstartPassiveCapture:f.touchDrag?$:null,onWheel:f.mouseWheel?te:null,style:{transform:Le.value}},ke),Ne=e.h("div",{class:"carousel__viewport",ref:u},Me);return e.h("section",{ref:c,class:["carousel",`is-${H.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":ce.value,"is-hover":Ve.value,"is-sliding":re.value,"is-vertical":w.value}],dir:H.value,style:xe.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:_e,onFocus:$e,onMouseenter:Fe,onMouseleave:Ae},[Ne,ve,e.h(i6)])}}});var Ja;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(Ja||(Ja={}));const Y1=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,m6={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function f6(t){return t in Ja}const X1=t=>t&&f6(t),K1=e.defineComponent({props:{name:{type:String,required:!0,validator:X1},title:{type:String,default:t=>t.name?He.i18n[Y1(t.name)]:""}},setup(t){const n=e.inject(Gt,null);return()=>{const a=t.name;if(!a||!X1(a))return;const o=m6[a],r=e.h("path",{d:o}),i=(n==null?void 0:n.config.i18n[Y1(a)])||t.title,s=e.h("title",i);return e.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,r])}}}),h6=e.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(t,{slots:n,attrs:a}){let o=e.inject(Gt,null);const{next:r,prev:i}=n,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[o.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[o.normalizedDir],c=e.computed(()=>!o.config.wrapAround&&o.currentSlide<=o.minSlide),u=e.computed(()=>!o.config.wrapAround&&o.currentSlide>=o.maxSlide);return()=>{if(t.carousel&&(o=t.carousel),!o)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:d}=o.config,h=e.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:o.nav.prev},a),{class:["carousel__prev",{"carousel__prev--disabled":c.value},a.class]}),(i==null?void 0:i())||e.h(K1,{name:s()})),f=e.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:o.nav.next},a),{class:["carousel__next",{"carousel__next--disabled":u.value},a.class]}),(r==null?void 0:r())||e.h(K1,{name:l()}));return[h,f]}}});e.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(t){let n=e.inject(Gt,null);const a=e.computed(()=>n.config.itemsToShow),o=e.computed(()=>Ka({align:n.config.snapAlign,itemsToShow:a.value})),r=e.computed(()=>t.paginateByItemsToShow&&a.value>1),i=e.computed(()=>Math.ceil((n.activeSlide-o.value)/a.value)),s=e.computed(()=>Math.ceil(n.slidesCount/a.value)),l=c=>Z1(r.value?{val:i.value,max:s.value-1,min:0}:{val:n.activeSlide,max:n.maxSlide,min:n.minSlide})===c;return()=>{var c,u;if(t.carousel&&(n=t.carousel),!n)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const d=[];for(let h=r.value?0:n.minSlide;h<=(r.value?s.value-1:n.maxSlide);h++){const f=U1(n.config.i18n[r.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),g=l(h),m=e.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":f,"aria-pressed":g,"aria-controls":(u=(c=n.slides[h])===null||c===void 0?void 0:c.exposed)===null||u===void 0?void 0:u.id,title:f,disabled:t.disableOnClick,onClick:()=>n.nav.slideTo(r.value?Math.floor(h*+n.config.itemsToShow+o.value):h)}),p=e.h("li",{class:"carousel__pagination-item",key:h},m);d.push(p)}return e.h("ol",{class:"carousel__pagination"},d)}}});const p6=e.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:e.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(t,{attrs:n,slots:a,expose:o}){const r=e.inject(Gt);if(e.provide(Gt,void 0),!r)return()=>"";const i=e.ref(t.index),s=m=>{i.value=m},l=e.getCurrentInstance(),c=()=>{const m=l.vnode.el;return m?m.getBoundingClientRect():{width:0,height:0}};o({id:t.id,setIndex:s,getBoundingRect:c});const u=e.computed(()=>i.value===r.activeSlide),d=e.computed(()=>i.value===r.activeSlide-1),h=e.computed(()=>i.value===r.activeSlide+1),f=e.computed(()=>i.value>=r.visibleRange.min&&i.value<=r.visibleRange.max),g=e.computed(()=>{if(r.config.itemsToShow==="auto")return;const m=r.config.itemsToShow,p=r.config.gap>0&&m>1?`calc(${100/m}% - ${r.config.gap*(m-1)/m}px)`:`${100/m}%`;return r.isVertical?{height:p}:{width:p}});return r.slideRegistry.registerSlide(l,t.index),e.onUnmounted(()=>{r.slideRegistry.unregisterSlide(l)}),t.isClone&&(e.onMounted(()=>{W1(l.vnode)}),e.onUpdated(()=>{W1(l.vnode)})),()=>{var m,p;return r.config.enabled?e.h("li",{style:[n.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":u.value,"carousel__slide--prev":d.value,"carousel__slide--next":h.value,"carousel__slide--sliding":r.isSliding},onFocusin:()=>{r.viewport&&(r.viewport.scrollLeft=0),r.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(p=a.default)===null||p===void 0?void 0:p.call(a,{currentIndex:i.value,isActive:u.value,isClone:t.isClone,isPrev:d.value,isNext:h.value,isSliding:r.isSliding,isVisible:f.value})):(m=a.default)===null||m===void 0?void 0:m.call(a)}}}),g6={key:0,class:"preview-overlay bg-base-300"},y6={class:"preview-info"},k6={class:"text-black"},x6={class:"queue-info"},b6={class:"carousel-container bg-base-200"},w6={class:"carousel-item"},E6=["onClick"],v6=["onClick"],C6={class:"send-footer"},S6={key:1,class:"toast-loader-files"},Q1=we({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(t,{expose:n}){const a=t,o={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref([]),c=e.ref([]),u=e.ref(null),d=e.ref(0),h=e.ref(!1),f=e.ref(0),g=e.ref(0),m=N=>new Promise((B,v)=>{const P=new FileReader;P.readAsDataURL(N),P.onload=()=>{B(P.result)},P.onerror=Z=>{v(Z)}}),p=()=>{r.value=!0},y=()=>{r.value=!1},k=()=>{c.value=[],l.value=[],i.value="",u.value=null,d.value=0},b=N=>{if(!(N<0||N>=c.value.length)){if(c.value.splice(N,1),l.value.splice(N,1),c.value.length===0){u.value=null,d.value=0;return}if(N===d.value){const B=N>0?N-1:0;u.value=c.value[B],d.value=B}else N<d.value&&(d.value-=1)}},x=()=>{s.value.click()},C=async N=>{const B=Array.from(N.target.files);l.value=B,c.value=await Promise.all(B.map(async v=>({name:v.name,base64:await m(v)}))),u.value=c.value[0],e.nextTick(()=>{w()})},M=async N=>{r.value=!1;const B=Array.from(N.dataTransfer.files);l.value.push(...B);const v=await Promise.all(B.map(async P=>({name:P.name,base64:await m(P)})));c.value.push(...v),u.value||(u.value=c.value[0],d.value=0),e.nextTick(()=>{w()})},D=N=>N?N.split(";")[0].split(":")[1]:null,H=async()=>{try{h.value=!0,f.value=l.value.length,g.value=0;for(let N=0;N<l.value.length;N++){const B=N===l.value.length-1,v={type:"file",media:{name:c.value[N].name,mimetype:D(c.value[N].base64),data:c.value[N].base64}};B&&(v.content=i.value),await a.sendFilesToAttendant(a.selectedAttendant.id,v,a.attendant,!0),g.value++}await e.nextTick()}catch(N){console.error(N)}finally{h.value=!1,k(),y()}},S=e.ref(null),w=()=>{S.value&&S.value.focus()},T=(N,B)=>{u.value=N,d.value=B},V=async N=>{var P;const B=(P=N.clipboardData)==null?void 0:P.items;if(!B)return;const v=[];for(const Z of B)if(Z.kind==="file"){const Q=Z.getAsFile();Q&&v.push(Q)}if(v.length>0){const Z=new Set(l.value.map(O=>O.name));if(v.filter(O=>!Z.has(O.name)).length===0)return;l.value.push(...v);const J=await Promise.all(v.map(async O=>({name:O.name,base64:await m(O)})));c.value.push(...J),u.value||(u.value=J[0],d.value=0)}e.nextTick(()=>{w()})};return e.watch(d,(N,B)=>{u.value=c.value[N]}),e.onMounted(()=>{window.addEventListener("paste",V)}),e.onUnmounted(()=>{window.removeEventListener("paste",V)}),n({chooseFiles:x}),(N,B)=>{var v,P,Z;return e.openBlock(),e.createElementBlock("main",{onDragover:e.withModifiers(p,["prevent"]),onDragleave:y,onDrop:e.withModifiers(M,["prevent"])},[e.createElementVNode("section",{class:e.normalizeClass(["dropzone-container ",{"dropzone-active":r.value}])},[!h.value&&c.value.length>0&&!r.value?(e.openBlock(),e.createElementBlock("div",g6,[e.createElementVNode("button",{onClick:B[0]||(B[0]=Q=>k()),class:"close-button"},[...B[6]||(B[6]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])]),e.createElementVNode("section",y6,[e.createElementVNode("p",k6,e.toDisplayString((v=u.value)==null?void 0:v.name),1),e.createVNode(Ya,{isMobile:t.isMobile,avatar:null,mode:"preview",base64:(P=u.value)==null?void 0:P.base64,mimetype:D((Z=u.value)==null?void 0:Z.base64)},null,8,["isMobile","base64","mimetype"]),e.withDirectives(e.createElementVNode("input",{ref_key:"textInput",ref:S,onKeydown:B[1]||(B[1]=e.withKeys(Q=>H(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":B[2]||(B[2]=Q=>i.value=Q),type:"text"},null,544),[[e.vModelText,i.value]])]),e.createElementVNode("div",x6,[B[8]||(B[8]=e.createElementVNode("p",null,"fila de envio",-1)),e.createElementVNode("section",b6,[e.createVNode(e.unref(u6),e.mergeProps({modelValue:d.value,"onUpdate:modelValue":B[4]||(B[4]=Q=>d.value=Q)},o),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(Q,J)=>(e.openBlock(),e.createBlock(e.unref(p6),{key:J},{default:e.withCtx(()=>[e.createElementVNode("section",w6,[d.value===J?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:O=>b(J),class:"remove-file-btn"},[...B[7]||(B[7]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)])],8,E6)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["bg-base-100",["carousel-preview",{active:d.value===J}]]),onDragstart:B[3]||(B[3]=e.withModifiers(()=>{},["prevent"])),onClick:O=>T(Q,J)},[e.createVNode(Ya,{isMobile:t.isMobile,avatar:null,mode:"miniature",base64:Q.base64,mimetype:D(Q.base64)},null,8,["isMobile","base64","mimetype"])],42,v6)])]),_:2},1024))),128))]),_:2},[t.isMobile?{name:"addons",fn:e.withCtx(()=>[e.createVNode(e.unref(h6))]),key:"0"}:void 0]),1040,["modelValue"])])]),e.createElementVNode("footer",C6,[e.createElementVNode("button",{class:"send-button",onClick:B[5]||(B[5]=Q=>H())},[...B[9]||(B[9]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)])])])])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("section",S6," Enviando Arquivos... ("+e.toDisplayString(g.value)+" / "+e.toDisplayString(f.value)+") ",1)):e.createCommentVNode("",!0),e.renderSlot(N.$slots,"default",{},void 0,!0)],2),e.createElementVNode("input",{onChange:C,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-931a7cac"]]),B6={key:0,class:"chat-icon"},V6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},M6={key:0,class:"unread-count"},N6={key:0,class:"chat-content"},A6={key:1,class:"h-full"},J1=we({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:u,resetUnreadMessages:d,loadingAttendants:h}=Er(),f=e.ref(!1),g=e.ref(!1),m=e.ref(null),p=e.ref(null),y=n,k=e.ref(null),b=()=>{var V;(V=k.value)==null||V.chooseFiles()},x=e.computed(()=>{if(m.value){const V=o.value.find(N=>N.id===m.value.id);return V?V.internal_chat.unread:0}return 0}),C=V=>{var v;const N=(v=p.value)==null?void 0:v.contains(V.target),B=V.target.closest(".fancybox__container");!N&&!B&&f.value&&S()};e.onMounted(()=>{document.addEventListener("click",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",C)});const M=e.ref(!1),D=e.ref(!1),H=e.computed(()=>D.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:M.value||f.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),S=()=>{f.value?(D.value=!0,setTimeout(()=>{f.value=!1,D.value=!1},200)):(f.value=!0,M.value=!0,setTimeout(()=>{M.value=!1},200))},w=()=>{f.value||S()},T=async V=>{const N=o.value.find(v=>v.id===V.id),B=N?N.internal_chat.unread:0;y("unreadMessagesEmit",B),m.value=V,d(V.id),V.hasNextPage||await i(V.id)};return e.watch(()=>a.socketMessage,(V,N)=>{var B;V!==N&&s(V,f.value,(B=m.value)==null?void 0:B.id)}),e.watch(f,V=>{V&&setTimeout(()=>{g.value=!0},400)}),(V,N)=>(e.openBlock(),e.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:p},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(S,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},[...N[1]||(N[1]=[e.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[e.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)])])):e.createCommentVNode("",!0),!f.value&&t.countMessages>0?(e.openBlock(),e.createElementBlock("section",{key:1,style:e.normalizeStyle(t.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},e.toDisplayString(t.countMessages),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:e.withModifiers(w,["stop"]),class:e.normalizeClass(["group relative",f.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:e.normalizeStyle(H.value)},[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",B6,[(e.openBlock(),e.createElementBlock("svg",V6,[e.createElementVNode("path",{class:e.normalizeClass(t.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),x.value>0?(e.openBlock(),e.createElementBlock("span",M6,e.toDisplayString(x.value),1)):e.createCommentVNode("",!0),N[2]||(N[2]=e.createElementVNode("div",{class:"chat-tooltip"},[e.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[f.value&&!D.value?(e.openBlock(),e.createElementBlock("div",N6,[e.createElementVNode("button",{onClick:e.withModifiers(S,["stop"]),class:"close-button"},[...N[3]||(N[3]=[e.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])]),e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(R1,{key:0})):m.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",A6,[e.createVNode(Q1,{ref_key:"dropFilesRef",ref:k,attendant:t.attendant,selectedAttendant:m.value,sendFilesToAttendant:e.unref(c)},{default:e.withCtx(()=>[e.createVNode(_1,{isMobile:!1,onSendFiles:b,attendant:t.attendant,selectedAtendente:m.value,onVoltar:N[0]||(N[0]=B=>m.value=null),loadMessagesForAtendente:e.unref(u),sendMessageToAtendente:e.unref(c),hasNextPageForAtendente:e.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!m.value&&!e.unref(h)?(e.openBlock(),e.createBlock(vr,{key:2,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:T},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-2a677344"]]),T6={class:"chat-content"},D6={key:1,class:"h-full"},ei=we({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:u,resetUnreadMessages:d,loadingAttendants:h}=Er(),f=e.ref(!1),g=e.ref(!1),m=e.ref(null),p=e.ref(null),y=n,k=e.ref(null),b=()=>{var S;(S=k.value)==null||S.chooseFiles()};e.computed(()=>{if(m.value){const S=o.value.find(w=>w.id===m.value.id);return S?S.internal_chat.unread:0}return 0});const x=S=>{p.value&&!p.value.contains(S.target)&&f.value&&D()};e.onMounted(()=>{document.addEventListener("click",x)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x)});const C=e.ref(!1),M=e.ref(!1),D=()=>{f.value?(M.value=!0,setTimeout(()=>{f.value=!1,M.value=!1},200)):(f.value=!0,C.value=!0,setTimeout(()=>{C.value=!1},200))},H=async S=>{const w=o.value.find(V=>V.id===S.id),T=w?w.internal_chat.unread:0;y("unreadMessagesEmit",T),m.value=S,d(S.id),S.hasNextPage||await i(S.id)};return e.watch(()=>a.socketMessage,(S,w)=>{var T;S!==w&&s(S,f.value,(T=m.value)==null?void 0:T.id)}),e.watch(f,S=>{S&&setTimeout(()=>{g.value=!0},400)}),(S,w)=>(e.openBlock(),e.createElementBlock("div",T6,[e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(R1,{key:0})):m.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",D6,[e.createVNode(Q1,{ref_key:"dropFilesRef",ref:k,isMobile:"",attendant:t.attendant,selectedAttendant:m.value,sendFilesToAttendant:e.unref(c)},{default:e.withCtx(()=>[e.createVNode(_1,{isMobile:"",attendant:t.attendant,selectedAtendente:m.value,loadMessagesForAtendente:e.unref(u),sendMessageToAtendente:e.unref(c),hasNextPageForAtendente:e.unref(l),downloadFilesMobile:t.downloadFilesMobile,openMobilePdf:t.openMobilePdf,onVoltar:w[0]||(w[0]=T=>m.value=null),onSendFiles:b},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!m.value&&!e.unref(h)?(e.openBlock(),e.createBlock(vr,{key:2,mobile:!0,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:H},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-56eadf01"]]),eo=Dt.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(t=""){try{let n=`${P0}`;const a=await Xe.get(n);this.departments=a.data,this.count=this.departments.length}catch(n){console.log("Erro ao buscar departamentos:",n)}},removeDepartments(t){this.departments=this.departments.filter(n=>n.id!==t)},addDepartments(t){const n=this.departments.findIndex(a=>a.id===t.id);n!==-1?this.departments[n]=t:this.departments.push(t)}}}),L6={class:"depart-select-container"},F6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},$6=["placeholder"],P6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},O6=["onClick"],_6={class:"department-list"},R6=["onClick"],H6={key:0,style:{width:"150px"}},z6=["onUpdate:modelValue","onChange"],j6={key:0,class:"no-departments bg-base-300"},G6={key:0},I6={key:1,class:"library-loading-spinner"},ti=we({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(t,{emit:n}){e.useSlots();const a=t,o=n,r=eo(),i=e.ref(""),s=e.ref([]),l=e.ref(!1),c=e.ref(!1),u=e.computed(()=>(a.externalDepartments||r.departments).filter(x=>!(a.hiddenDepartment&&x.id===a.hiddenDepartment)).filter(x=>!i.value||x.name.toLowerCase().includes(i.value.toLowerCase())));e.onMounted(async()=>{await f(),await h(),o("component-mounted")}),e.watch(()=>r.departments.length,async()=>{await f(),await e.nextTick(),await h()},{immediate:!0}),e.watch(()=>a.attDel,b=>b&&d(b),{immediate:!0});function d(b){const C=(a.externalDepartments||r.departments).findIndex(M=>M.id===b);C!==-1&&(s.value=s.value.filter(M=>M.id!==b),a.externalDepartments?a.externalDepartments.splice(C,1):r.removeDepartments(b),o("depart",s.value))}async function h(){c.value=!0;const b=a.externalDepartments||r.departments;a.permissions&&b.forEach(x=>{x.permission||(x.permission="normal")}),await g(),c.value=!1}async function f(){(a.externalDepartments||r.departments).forEach(x=>x.selected=!1),s.value=[]}async function g(){const b=a.externalDepartments||r.departments;if(!(b!=null&&b.length))return;(Array.isArray(a.department)?a.department:a.department?[a.department]:[]).forEach(C=>{const M=typeof C=="object"?C.id:C,D=typeof C=="object"?C.permission:void 0,H=b.find(S=>S.id===M);H&&(H.selected=!0,D&&(H.permission=D),s.value.some(S=>S.id===M)||s.value.push(H))}),o("depart",s.value)}function m(b){const x=s.value.findIndex(C=>C.id===b.id);x!==-1?(b.selected=!1,s.value.splice(x,1)):(a.multiSelect||f(),b.selected=!0,s.value.push(b)),o("depart",s.value)}function p(){o("depart",s.value)}function y(b,x){b.selected=!1,s.value.splice(x,1),o("depart",s.value)}const k=e.computed(()=>i.value.trim().length>0);return e.watch(k,b=>{o("searching",b)}),(b,x)=>(e.openBlock(),e.createElementBlock("div",L6,[e.createElementVNode("div",F6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:x[1]||(x[1]=C=>l.value=!l.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=C=>i.value=C),placeholder:s.value.length>0?t.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,$6),[[e.vModelText,i.value]]),x[2]||(x[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",P6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(C,M)=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"selection-item"},[e.createTextVNode(e.toDisplayString(C.name)+" ",1),e.createElementVNode("button",{onClick:D=>y(C,M),class:"close-btn"},[...x[3]||(x[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,O6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([s.value.length>0&&t.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[e.createElementVNode("div",_6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":u.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass([{selected:C.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("span",{onClick:M=>m(C),class:"department-name h-full w-full"},e.toDisplayString(C.name),9,R6),t.multiSelect&&t.permissions?(e.openBlock(),e.createElementBlock("div",H6,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":M=>C.permission=M,onChange:M=>p(),class:"select-dropdown-depart bg-base-300"},[...x[4]||(x[4]=[e.createElementVNode("option",{value:"normal"},"normal",-1),e.createElementVNode("option",{value:"supervisor"},"supervisor",-1)])],40,z6),[[e.vModelSelect,C.permission]])])):e.createCommentVNode("",!0)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",j6,[b.$slots.default?e.renderSlot(b.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("p",G6,"Nenhum departamento disponível."))])):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",I6,[...x[5]||(x[5]=[e.createTextVNode(" Inicializando departamentos ",-1),e.createElementVNode("div",{class:"library-loader"},null,-1)])]))],2)])]))}},[["__scopeId","data-v-6721add7"]]),q6={class:"depart-select-container"},W6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},U6=["placeholder"],Z6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},Y6=["onClick"],X6={class:"department-list"},K6={style:{"padding-left":"5px"}},Q6=["src"],J6={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},e7=["onClick"],t7={key:0,class:"no-departments bg-base-300"},n7={key:1,class:"library-loading-spinner"},ni=we({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null},preselect:{type:Boolean,default:!0}},emits:["attend","component-mounted"],setup(t,{emit:n}){const a=t,o=n,r=Yt(),i=e.ref(""),s=e.ref(!1),l=e.ref([]);function c(){const k=Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[];return new Set(k.filter(Boolean).map(b=>typeof b=="object"?b.id:b))}const u=e.computed(()=>{const k=r.attendants.filter(x=>x.status===!0),b=i.value?k.filter(x=>x.name.toLowerCase().includes(i.value.toLowerCase())):k;return h(d(b))});function d(k){var b;if(a.method==="remove")return(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:k).filter(C=>{var D;return(typeof C=="object"?C.id:C)!==((D=a==null?void 0:a.attDel)==null?void 0:D.id)});if(a.method==="addParticipant"){const x=c();return(b=a==null?void 0:a.attDel)!=null&&b.id&&x.add(a.attDel.id),k.filter(C=>!x.has(C.id))}return k}function h(k){return Array.isArray(a.department)&&a.department.length>0?k.filter(b=>b.department.some(x=>a.department.some(C=>C.id===x.id))):k}e.onMounted(()=>{f(),o("component-mounted")}),e.watch(()=>r.attendants.length,async()=>{await e.nextTick(),f()},{immediate:!0}),e.watch(()=>a.modal_filter,()=>{!a.modal_filter&&a.multiSelect&&g()},{immediate:!0}),e.watch(()=>a.department,()=>f(),{deep:!0});function f(){g(),m()}function g(){r.attendants.forEach(k=>k.selected=!1),l.value=[]}function m(){if(!a.preselect)return;const k=r.attendants;if(!(k!=null&&k.length))return;(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[]).forEach(x=>{const C=typeof x=="object"?x.id:x,M=k.find(D=>D.id===C);M&&!l.value.some(D=>D.id===C)&&(M.selected=!0,l.value.push(M))}),o("attend",l.value)}function p(k){const b=l.value.findIndex(x=>x.id===k.id);b!==-1?(k.selected=!1,l.value.splice(b,1)):(a.multiSelect||g(),k.selected=!0,l.value.push(k)),o("attend",l.value)}function y(k,b){k.selected=!1,l.value.splice(b,1),o("attend",l.value)}return(k,b)=>(e.openBlock(),e.createElementBlock("div",q6,[e.createElementVNode("div",W6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:b[1]||(b[1]=x=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=x=>i.value=x),placeholder:l.value.length>0?t.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,U6),[[e.vModelText,i.value]]),b[2]||(b[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",Z6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(x,C)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"selection-item"},[e.createTextVNode(e.toDisplayString(x.name)+" ",1),e.createElementVNode("button",{onClick:M=>y(x,C),class:"close-btn"},[...b[3]||(b[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Y6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([l.value.length>0&&t.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[e.createElementVNode("div",X6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":u.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x,class:e.normalizeClass([{selected:x.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("div",K6,[x.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:x.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,Q6)):(e.openBlock(),e.createElementBlock("svg",J6,[...b[4]||(b[4]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"},null,-1)])]))]),e.createElementVNode("span",{onClick:C=>p(x),class:"department-name h-full w-full"},e.toDisplayString(x.name),9,e7)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&u.value.length===0?(e.openBlock(),e.createElementBlock("div",t7," Nenhum atendente disponível. ")):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",n7,[...b[5]||(b[5]=[e.createTextVNode(" Inicializando atendentes ",-1),e.createElementVNode("div",{class:"library-loader"},null,-1)])]))],2)])]))}},[["__scopeId","data-v-6d479fae"]]),a7={class:""},o7={class:"flex justify-between mb-3"},r7={class:""},ai=we({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(t){const n=e.ref(!0);return(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(r,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:e.withCtx(({close:i})=>[e.createElementVNode("section",a7,[e.createElementVNode("div",null,[e.createElementVNode("div",o7,[e.createElementVNode("p",null,e.toDisplayString(t.title),1),o[1]||(o[1]=e.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),e.createElementVNode("div",r7,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])])]),default:e.withCtx(()=>[e.createElementVNode("button",{onClick:o[0]||(o[0]=i=>n.value=!n.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},[...o[2]||(o[2]=[e.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"})],-1)])])]),_:3})}}},[["__scopeId","data-v-27cda391"]]);function i7(t,n){return e.openBlock(),e.createElementBlock("svg")}const s7={render:i7},l7=e.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url(&#39;#filter1&#39;)" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),c7=[l7];function d7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...c7])}const u7={render:d7},m7=e.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url(&#39;#filter1&#39;)" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),f7=[m7];function h7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...f7])}const p7={render:h7},g7=e.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),y7=[g7];function k7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...y7])}const x7={render:k7},b7=e.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url(&#39;#filter1&#39;)" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),w7=[b7];function E7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...w7])}const v7={render:E7},C7=e.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),S7=[C7];function B7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...S7])}const V7={render:B7},M7=e.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),N7=[M7];function A7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...N7])}const T7={render:A7},D7={Blank:s7,Prescription01:u7,Round:p7,Wayfarers:x7,Kurt:v7,Prescription02:V7,Sunglasses:T7},L7=e.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url(&#39;#BlazerShirt-mask1&#39;)"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url(&#39;#BlazerShirt-mask1&#39;)" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),F7=[L7];function $7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...F7])}const P7={render:$7},O7=e.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url(&#39;#BlazerSweater-mask1&#39;)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),_7=[O7];function R7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._7])}const H7={render:R7},z7=e.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),e.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),j7=[z7];function G7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...j7])}const I7={render:G7},q7=e.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url(&#39;#Hoodie-mask1&#39;)"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url(&#39;#Hoodie-mask1&#39;)" opacity=".16"></path></g>',1),W7=[q7];function U7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...W7])}const Z7={render:U7},Y7=e.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),e.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),X7=[Y7];function K7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...X7])}const Q7={render:K7},J7=e.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),eu=[J7];function tu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...eu])}const nu={render:tu},au=e.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url(&#39;#ShirtCrewNeck-mask1&#39;)" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),ou=[au];function ru(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ou])}const iu={render:ru},su=e.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),lu=[su];function cu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lu])}const du={render:cu},uu=e.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),mu=[uu];function fu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...mu])}const hu={render:fu},pu={BlazerShirt:P7,CollarSweater:I7,BlazerSweater:H7,Hoodie:Z7,GraphicShirt:Q7,Overall:nu,ShirtCrewNeck:iu,ShirtVNeck:du,ShirtScoopNeck:hu},gu=e.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url(&#39;#Eyepatch-mask1&#39;)"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),yu=[gu];function ku(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...yu])}const xu={render:ku},bu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url(&#39;#LongHairMiaWallace-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),wu=[bu];function Eu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...wu])}const vu={render:Eu},Cu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url(&#39;#ShortHairShortCurly-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),Su=[Cu];function Bu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Su])}const Vu={render:Bu},Mu=e.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url(&#39;#Hat-mask1&#39;)"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url(&#39;#Hat-mask2&#39;)" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url(&#39;#Hat-mask2&#39;)" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url(&#39;#Hat-mask2&#39;)" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url(&#39;#Hat-mask2&#39;)" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url(&#39;#Hat-mask2&#39;)" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),Nu=[Mu];function Au(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Nu])}const Tu={render:Au},Du=e.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url(&#39;#LongHairNotTooLong-mask1&#39;)"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),Lu=[Du];function Fu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Lu])}const $u={render:Fu},Pu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url(&#39;#ShortHairShortFlat-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),Ou=[Pu];function _u(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ou])}const Ru={render:_u},Hu=e.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url(&#39;#Hijab-mask1&#39;)"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url(&#39;#Hijab-mask2&#39;)" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url(&#39;#Hijab-mask2&#39;)" opacity=".16"></path></g></g></g>',1),zu=[Hu];function ju(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zu])}const Gu={render:ju},Iu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url(&#39;#LongHairShavedSides-mask2&#39;)"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url(&#39;#LongHairShavedSides-mask3&#39;)"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url(&#39;#LongHairShavedSides-mask1&#39;)" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),qu=[Iu];function Wu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qu])}const Uu={render:Wu},Zu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url(&#39;#ShortHairShortRound-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),Yu=[Zu];function Xu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Yu])}const Ku={render:Xu},Qu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url(&#39;#LongHairBigHair-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url(&#39;#LongHairBigHair-mask1&#39;)" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),Ju=[Qu];function e8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ju])}const t8={render:e8},n8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url(&#39;#LongHairStraight-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),a8=[n8];function o8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...a8])}const r8={render:o8},i8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url(&#39;#ShortHairShortWaved-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),s8=[i8];function l8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...s8])}const c8={render:l8},d8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url(&#39;#LongHairBob-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),u8=[d8];function m8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...u8])}const f8={render:m8},h8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url(&#39;#LongHairStraight2-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),p8=[h8];function g8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...p8])}const y8={render:g8},k8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url(&#39;#ShortHairSides-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),x8=[k8];function b8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...x8])}const w8={render:b8},E8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url(&#39;#LongHairBun-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),v8=[E8];function C8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...v8])}const S8={render:C8},B8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url(&#39;#LongHairStraightStrand-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),V8=[B8];function M8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...V8])}const N8={render:M8},A8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url(&#39;#ShortHairTheCaesar-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),T8=[A8];function D8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T8])}const L8={render:D8},F8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url(&#39;#LongHairCurly-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),$8=[F8];function P8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$8])}const O8={render:P8};function _8(t,n){return e.openBlock(),e.createElementBlock("svg")}const R8={render:_8},H8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url(&#39;#ShortHairTheCaesarSidePart-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),z8=[H8];function j8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...z8])}const G8={render:j8},I8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url(&#39;#LongHairCurvy-mask1&#39;)"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url(&#39;#LongHairCurvy-mask2&#39;)" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),q8=[I8];function W8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...q8])}const U8={render:W8},Z8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url(&#39;#ShortHairDreads01-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),Y8=[Z8];function X8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Y8])}const K8={render:X8},Q8=e.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url(&#39;#Turban-mask1&#39;)"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),J8=[Q8];function e9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...J8])}const t9={render:e9},n9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url(&#39;#LongHairDreads-mask2&#39;)"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url(&#39;#LongHairDreads-mask1&#39;)" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url(&#39;#LongHairDreads-mask1&#39;)" opacity=".3"></path></g></g></g></g>',1),a9=[n9];function o9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...a9])}const r9={render:o9},i9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url(&#39;#ShortHairDreads02-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),s9=[i9];function l9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...s9])}const c9={render:l9},d9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat1-path2&#39;)" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),u9=[d9];function m9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...u9])}const f9={render:m9},h9=e.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url(&#39;#LongHairFrida-mask1&#39;)"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url(&#39;#filter5&#39;)" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url(&#39;#filter6&#39;)" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url(&#39;#filter7&#39;)" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url(&#39;#filter1&#39;)" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url(&#39;#filter2&#39;)" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url(&#39;#filter3&#39;)" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url(&#39;#filter4&#39;)" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),p9=[h9];function g9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...p9])}const y9={render:g9},k9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url(&#39;#ShortHairFrizzle-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),x9=[k9];function b9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...x9])}const w9={render:b9},E9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url(&#39;#WinterHat2-mask2&#39;)" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),v9=[E9];function C9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...v9])}const S9={render:C9},B9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url(&#39;#LongHairFro-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),V9=[B9];function M9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...V9])}const N9={render:M9},A9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url(&#39;#ShortHairShaggy-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),T9=[A9];function D9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T9])}const L9={render:D9},F9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat3-path2&#39;)" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),$9=[F9];function P9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$9])}const O9={render:P9},_9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url(&#39;#LongHairFroBand-mask1&#39;)"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),R9=[_9];function H9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...R9])}const z9={render:H9},j9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url(&#39;#ShortHairShaggyMullet-mask1&#39;)"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),G9=[j9];function I9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...G9])}const q9={render:I9},W9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat4-path4&#39;)" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),U9=[W9];function Z9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...U9])}const Y9={render:Z9},X9={Eyepatch:xu,Hat:Tu,Hijab:Gu,LongHairBigHair:t8,LongHairBob:f8,LongHairBun:S8,LongHairCurly:O8,LongHairCurvy:U8,LongHairDreads:r9,LongHairFrida:y9,LongHairFro:N9,LongHairFroBand:z9,LongHairMiaWallace:vu,LongHairNotTooLong:$u,LongHairShavedSides:Uu,LongHairStraight:r8,LongHairStraight2:y8,LongHairStraightStrand:N8,NoHair:R8,ShortHairDreads01:K8,ShortHairDreads02:c9,ShortHairFrizzle:w9,ShortHairShaggy:L9,ShortHairShaggyMullet:q9,ShortHairShortCurly:Vu,ShortHairShortFlat:Ru,ShortHairShortRound:Ku,ShortHairShortWaved:c8,ShortHairSides:w8,ShortHairTheCaesar:L8,ShortHairTheCaesarSidePart:G8,Turban:t9,WinterHat1:f9,WinterHat2:S9,WinterHat3:O9,WinterHat4:Y9},K9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),Q9=[K9];function J9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Q9])}const em={render:J9},tm=e.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),nm=[tm];function am(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...nm])}const om={render:am},rm=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),im=[rm];function sm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...im])}const lm={render:sm},cm=e.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),dm=[cm];function um(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...dm])}const mm={render:um};function fm(t,n){return e.openBlock(),e.createElementBlock("svg")}const hm={render:fm},pm=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),gm=[pm];function ym(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gm])}const km={render:ym},xm={BeardMajestic:om,BeardLight:em,MoustacheFancy:lm,BeardMedium:mm,Blank:hm,MoustacheMagnum:km},bm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),wm=[bm];function Em(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...wm])}const vm={render:Em},Cm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),Sm=[Cm];function Bm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Sm])}const Vm={render:Bm},Mm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),Nm=[Mm];function Am(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Nm])}const Tm={render:Am},Dm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),Lm=[Dm];function Fm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Lm])}const $m={render:Fm},Pm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),Om=[Pm];function _m(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Om])}const Rm={render:_m},Hm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),zm=[Hm];function jm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zm])}const Gm={render:jm},Im=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),qm=[Im];function Wm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qm])}const Um={render:Wm},Zm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),Ym=[Zm];function Xm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ym])}const Km={render:Xm},Qm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),Jm=[Qm];function ef(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Jm])}const tf={render:ef},nf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),af=[nf];function of(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...af])}const rf={render:of},sf=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),lf=[sf];function cf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lf])}const df={render:cf},uf={Bat:vm,Cumbia:Vm,Diamond:Tm,Pizza:$m,Selena:Rm,SkullOutline:Gm,Bear:Um,Deer:Km,Hola:tf,Resist:rf,Skull:df},mf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),ff=[mf];function hf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ff])}const pf={render:hf},gf=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),yf=[gf];function kf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...yf])}const xf={render:kf},bf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),wf=[bf];function Ef(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...wf])}const vf={render:Ef},Cf=e.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Sf=[Cf];function Bf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Sf])}const Vf={render:Bf},Mf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url(&#39;#EyeMask1&#39;)" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url(&#39;#EyeMask2&#39;)" opacity=".7"></circle></g></g></g>',1),Nf=[Mf];function Af(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Nf])}const Tf={render:Af},Df=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),Lf=[Df];function Ff(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Lf])}const $f={render:Ff},Pf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),Of=[Pf];function _f(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Of])}const Rf={render:_f},Hf=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),zf=[Hf];function jf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zf])}const Gf={render:jf},If=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),qf=[If];function Wf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qf])}const Uf={render:Wf},Zf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),Yf=[Zf];function Xf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Yf])}const Kf={render:Xf},Qf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Jf=[Qf];function eh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Jf])}const th={render:eh},nh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),ah=[nh];function oh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ah])}const rh={render:oh},ih={Close:pf,Default:xf,EyeRoll:vf,Hearts:Vf,Squint:Tf,Wink:$f,Cry:Rf,Dizzy:Gf,Happy:Uf,Side:Kf,Surprised:th,WinkWacky:rh},sh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),lh=[sh];function ch(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lh])}const dh={render:ch},uh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),mh=[uh];function fh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...mh])}const hh={render:fh},ph=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),gh=[ph];function yh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gh])}const kh={render:yh},xh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),bh=[xh];function wh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bh])}const Eh={render:wh},vh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),Ch=[vh];function Sh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ch])}const Bh={render:Sh},Vh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),Mh=[Vh];function Nh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mh])}const Ah={render:Nh},Th=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),Dh=[Th];function Lh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Dh])}const Fh={render:Lh},$h=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),Ph=[$h];function Oh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ph])}const _h={render:Oh},Rh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),Hh=[Rh];function zh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hh])}const jh={render:zh},Gh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[e.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),e.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),Ih=[Gh];function qh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ih])}const Wh={render:qh},Uh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),Zh=[Uh];function Yh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zh])}const Xh={render:Yh},Kh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),Qh=[Kh];function Jh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Qh])}const ep={render:Jh},tp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),np=[tp];function ap(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...np])}const op={render:ap},rp={Angry:dh,FlatNatural:hh,SadConcerned:kh,UpDownNatural:Eh,AngryNatural:Bh,FrownNatural:Ah,SadConcernedNatural:Fh,Default:_h,RaisedExcited:jh,UnibrowNatural:Wh,DefaultNatural:Xh,RaisedExcitedNatural:ep,UpDown:op},ip=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#MouthMask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#MouthMask1&#39;)"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),sp=[ip];function lp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...sp])}const cp={render:lp},dp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),up=[dp];function mp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...up])}const fp={render:mp},hp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url(&#39;#Grimace-mask1&#39;)"></path></g></g>',1),pp=[hp];function gp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...pp])}const yp={render:gp},kp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#ScreamOpen-mask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#ScreamOpen-mask1&#39;)"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),xp=[kp];function bp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...xp])}const wp={render:bp},Ep=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#Smile-mask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#Smile-mask1&#39;)"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),vp=[Ep];function Cp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...vp])}const Sp={render:Cp},Bp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),Vp=[Bp];function Mp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Vp])}const Np={render:Mp},Ap=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),Tp=[Ap];function Dp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Tp])}const Lp={render:Dp},Fp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),$p=[Fp];function Pp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$p])}const Op={render:Pp},_p=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),Rp=[_p];function Hp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Rp])}const zp={render:Hp},jp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),Gp=[jp];function Ip(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Gp])}const qp={render:Ip},Wp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#Tongue-mask1&#39;)" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),Up=[Wp];function Zp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Up])}const Yp={render:Zp},Xp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url(&#39;#Vomit-mask1&#39;)" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url(&#39;#filter1&#39;)" href="#Vomit-path2"></use></g></g></g>',1),Kp=[Xp];function Qp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Kp])}const Jp={render:Qp},eg={Concerned:cp,Disbelief:fp,Grimace:yp,ScreamOpen:wp,Smile:Sp,Twinkle:Np,Default:Lp,Eating:Op,Sad:zp,Serious:qp,Tongue:Yp,Vomit:Jp},tg=(t="#6fb8e0")=>[e.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[e.h("mask",{id:"mask-1",fill:"white"},[e.h("use",{href:"#path-1"})]),e.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),e.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:t},[e.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),e.h("mask",{id:"mask-2",fill:"white"},[e.h("use",{href:"#path-2"})])],ng=t=>{const n={"--avataaar-hair-color":t.hairColor,"--avataaar-facial-hair-color":t.facialHairColor,"--avataaar-top-color":t.topColor,"--avataaar-shirt-color":t.clothesColor};return e.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e.h("desc","vue3-avataaars"),e.h("defs",[e.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),e.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),e.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),e.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[e.h("g",{transform:"translate(825.000000, 1100.000000)"},[t.isCircle?tg(t.circleColor):null,e.h("g",{id:"Mask"}),e.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:n},[e.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[e.h("mask",{id:"mask-silhouette",fill:"white"},[e.h("use",{href:"#path-silhouette"})]),e.h("use",{fill:t.skinColor,href:"#path-silhouette"}),e.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),e.h(pu[t.clothes]),t.clothes==="GraphicShirt"?e.h(uf[t.graphicShirt]):null,e.h(ih[t.eyes]),e.h(rp[t.eyebrows]),e.h(eg[t.mouth]),e.h("svg",[e.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[e.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[e.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),e.h(X9[t.top]),e.h(xm[t.facialHair]),e.h(D7[t.accessories])])])])])])};function Ct(t){return t[Math.floor(Math.random()*t.length)]}function ag(t){return Ct(Object.keys(t))}function En(t){return t[ag(t)]}const oi={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},ri={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},og={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},rg=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],ig=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],sg=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],lg=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],cg=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],dg=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],ug=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],mg=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],ia=(t={})=>{var n,a,o,r,i,s,l,c,u,d,h,f,g,m;return{isCircle:t.isCircle===void 0?!1:t.isCircle,circleColor:(n=t.circleColor)!=null?n:void 0,skinColor:(a=t.skinColor)!=null?a:En(og),hairColor:(o=t.hairColor)!=null?o:En(ri),topColor:(r=t.topColor)!=null?r:En(oi),clothesColor:(i=t.clothesColor)!=null?i:En(oi),facialHairColor:(s=t.facialHairColor)!=null?s:En(ri),accessories:(l=t.accessories)!=null?l:Ct(rg),eyes:(c=t.eyes)!=null?c:Ct(ig),eyebrows:(u=t.eyebrows)!=null?u:Ct(sg),mouth:(d=t.mouth)!=null?d:Ct(cg),top:(h=t.top)!=null?h:Ct(dg),clothes:(f=t.clothes)!=null?f:Ct(ug),graphicShirt:(g=t.graphicShirt)!=null?g:Ct(mg),facialHair:(m=t.facialHair)!=null?m:Ct(lg)}},ii={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},fg={class:"main-container"},hg=["src"],pg={key:1,class:"avatar-section flex flex-col"},gg={id:"avatar-container",class:"avatar-container"},yg={class:"controls"},kg={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},si=we({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(t,{emit:n}){const a=e.ref(ii),o=e.ref(ii),r=e.ref(!1);e.onMounted(async()=>{a.value=ia(a.value),await e.nextTick(),u()});const i=n,s=t,l=async()=>{if(r.value)a.value=ia(o.value);else{const d={...o.value,facialHair:"Blank"};a.value=ia(d)}await e.nextTick(),u()},c=async()=>{a.value=ia({isCircle:!0,circleColor:"#22c55e",facialHair:r.value?"Blank":null});const d=a.value;o.value=d,await e.nextTick(),u()},u=()=>{const d=document.querySelector("#avatar-container svg");if(!d){console.error("Avatar não encontrado!");return}let f=new XMLSerializer().serializeToString(d);const m=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(f)))}`;i("base64",m)};return(d,h)=>(e.openBlock(),e.createElementBlock("main",fg,[s.content?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,hg)):(e.openBlock(),e.createElementBlock("section",pg,[e.createElementVNode("div",gg,[e.createVNode(e.unref(ng),e.normalizeProps(e.guardReactiveProps(a.value)),null,16)]),e.createElementVNode("div",yg,[e.createElementVNode("label",kg,[e.withDirectives(e.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":h[0]||(h[0]=f=>r.value=f),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[e.vModelCheckbox,r.value]]),h[1]||(h[1]=e.createTextVNode(" Remover barba ",-1))]),e.createElementVNode("button",{onClick:c,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-25c1ac70"]]),xg={class:"modal_container"},bg={class:"modal_box"},wg={class:"modal_header"},li=we({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(t,{emit:n}){const a=n,o=()=>{a("close")};return(r,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"min_modal"},[e.createElementVNode("div",{class:"modal_overlay",onClick:o})]),e.createElementVNode("div",xg,[e.createElementVNode("div",{class:e.normalizeClass(["modal_content ",t.defineWidth])},[e.createElementVNode("div",bg,[e.createElementVNode("div",wg,[e.renderSlot(r.$slots,"header",{},void 0,!0),e.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>o())},[...i[1]||(i[1]=[e.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])])]),e.createElementVNode("div",null,[e.renderSlot(r.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-efcc01f4"]]),Eg={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
96
+ */const y1=["viewport","carousel"],qn={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},k1=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],S5={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},x1=["slide","fade"],b1=["center","start","end","center-even","center-odd"],w1=10,In=.08,_e={autoplay:0,breakpointMode:y1[0],breakpoints:void 0,dir:k1[0],enabled:!0,gap:0,height:"auto",i18n:S5,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:x1[0],snapAlign:b1[0],touchDrag:!0,transition:300,wrapAround:!1},Ft=Symbol("carousel"),B5=t=>{const n=e.shallowReactive([]),a=o=>{o!==void 0?n.slice(o).forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(o+i)}):n.forEach((r,i)=>{var s;(s=r.exposed)===null||s===void 0||s.setIndex(i)})};return{cleanup:()=>{n.splice(0,n.length)},getSlides:()=>n,registerSlide:(o,r)=>{if(!o||o.props.isClone)return;const i=r??n.length;n.splice(i,0,o),a(i),t("slide-registered",{slide:o,index:i})},unregisterSlide:o=>{const r=n.indexOf(o);r!==-1&&(t("slide-unregistered",{slide:o,index:r}),n.splice(r,1),a(r))}}};function V5(t){return t.length===0?0:t.reduce((a,o)=>a+o,0)/t.length}function E1({slides:t,position:n,toShow:a}){const o=[],r=n==="before",i=r?-a:0,s=r?0:a;if(t.length<=0)return o;for(let l=i;l<s;l++){const m={index:r?l:l+t.length,isClone:!0,id:void 0,key:`clone-${n}-${l}`},u=t[(l%t.length+t.length)%t.length].vnode,h=e.cloneVNode(u,m);h.el=null,o.push(h)}return o}const M5='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function v1(t){if(!t.el||!(t.el instanceof Element))return;const n=t.el.querySelectorAll(M5);for(const a of n)a instanceof HTMLElement&&!a.hasAttribute("disabled")&&a.getAttribute("aria-hidden")!=="true"&&a.setAttribute("tabindex","-1")}function N5(t,n){return Object.keys(t).filter(a=>!n.includes(a)).reduce((a,o)=>(a[o]=t[o],a),{})}function A5(t){const{isVertical:n,isReversed:a,dragged:o,effectiveSlideSize:r,threshold:i}=t,s=n?o.y:o.x;if(s===0)return 0;const l=s/r,c=Math.abs(l);if(c<i)return 0;const m=c<1?Math.sign(l):Math.round(l);return a?m:-m}function ht({val:t,max:n,min:a}){return n<a?t:Math.min(Math.max(t,isNaN(a)?t:a),isNaN(n)?t:n)}function T5(t){const{transform:n}=window.getComputedStyle(t);return n.split(/[(,)]/).slice(1,-1).map(a=>parseFloat(a))}function D5(t){let n=1,a=1;return t.forEach(o=>{const r=T5(o);r.length===6&&(n/=r[0],a/=r[3])}),{widthMultiplier:n,heightMultiplier:a}}function L5(t,n){switch(t){case"start":return 0;case"center":case"center-odd":return(n-1)/2;case"center-even":return(n-2)/2;case"end":return n-1;default:return 0}}function F5(t,n,a){switch(t){case"start":return 0;case"center":case"center-odd":return(a-n)/2;case"center-even":return a/2-n;case"end":return a-n;default:return 0}}function Ra({slideSize:t,viewportSize:n,align:a,itemsToShow:o}){return o!==void 0?L5(a,o):t!==void 0&&n!==void 0?F5(a,t,n):0}function C1(t="",n={}){return Object.entries(n).reduce((a,[o,r])=>a.replace(`{${o}}`,String(r)),t)}function S1({val:t,max:n,min:a=0}){const o=n-a+1;return((t-a)%o+o)%o+a}function Ha(t,n=0){let a=!1,o=0,r=null;function i(...s){if(a)return;a=!0;const l=()=>{r=requestAnimationFrame(c=>{c-o>n?(o=c,t(...s),a=!1):l()})};l()}return i.cancel=()=>{r&&(cancelAnimationFrame(r),r=null,a=!1)},i}function Wn(t,n="px"){if(!(t==null||t===""))return typeof t=="number"||parseFloat(t).toString()===t?`${t}${n}`:t}const $5=e.defineComponent({name:"CarouselAria",setup(){const t=e.inject(Ft);return t?()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},C1(t.config.i18n.itemXofY,{currentSlide:t.currentSlide+1,slidesCount:t.slidesCount})):()=>""}});function P5(t){let n=!1;const a={x:0,y:0},o=e.reactive({x:0,y:0}),r=e.ref(!1),{isSliding:i}=t,s=e.computed(()=>typeof i=="boolean"?i:i.value),l=u=>{var h;const f=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||s.value||(n=u.type==="touchstart",n&&u.touches.length>1))return;if(!n&&(u.preventDefault(),u.button!==0))return;a.x=n?u.touches[0].clientX:u.clientX,a.y=n?u.touches[0].clientY:u.clientY;const p=n?"touchmove":"mousemove",d=n?"touchend":"mouseup";document.addEventListener(p,c,{passive:!1}),document.addEventListener(d,m,{passive:!0}),(h=t.onDragStart)===null||h===void 0||h.call(t)},c=Ha(u=>{var h;if(n&&u.touches.length>1)return;r.value=!0;const f=n?u.touches[0].clientX:u.clientX,p=n?u.touches[0].clientY:u.clientY;o.x=f-a.x,o.y=p-a.y,(h=t.onDrag)===null||h===void 0||h.call(t,{deltaX:o.x,deltaY:o.y,isTouch:n})}),m=()=>{var u;c.cancel();const h=Math.abs(o.x)+Math.abs(o.y);!n&&h>10&&window.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation()},{once:!0,capture:!0}),(u=t.onDragEnd)===null||u===void 0||u.call(t),o.x=0,o.y=0,r.value=!1;const f=n?"touchmove":"mousemove",p=n?"touchend":"mouseup";document.removeEventListener(f,c),document.removeEventListener(p,m)};return{dragged:o,isDragging:r,handleDragStart:l}}function O5(){const t=e.ref(!1);return{isHover:t,handleMouseEnter:()=>{t.value=!0},handleMouseLeave:()=>{t.value=!1}}}function _5(t){const{isVertical:n,isSliding:a,config:o}=t,r=e.computed(()=>typeof n=="boolean"?n:n.value),i=e.computed(()=>typeof a=="boolean"?a:a.value);return{handleScroll:l=>{var c,m;if(l.preventDefault(),!o.mouseWheel||i.value)return;const u=typeof o.mouseWheel=="object"&&(c=o.mouseWheel.threshold)!==null&&c!==void 0?c:w1,h=Math.abs(l.deltaY)>u?l.deltaY:0,f=Math.abs(l.deltaX)>u?l.deltaX:0;if(h===0&&f===0)return;const p=r.value?h:f,g=(p!==0?p:r.value?f:h)>0;(m=t.onWheel)===null||m===void 0||m.call(t,{deltaX:f,deltaY:h,isScrollingForward:g})}}}const R5={autoplay:{default:_e.autoplay,type:Number},breakpoints:{default:_e.breakpoints,type:Object},breakpointMode:{default:_e.breakpointMode,validator(t){return y1.includes(t)}},clamp:{type:Boolean},dir:{type:String,default:_e.dir,validator(t,n){if(!k1.includes(t))return!1;const a=t in qn?qn[t]:t;return["ttb","btt"].includes(a)&&(!n.height||n.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${t}" is not supported with height "auto".`),!0}},enabled:{default:_e.enabled,type:Boolean},gap:{default:_e.gap,type:Number},height:{default:_e.height,type:[Number,String]},i18n:{default:_e.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:_e.itemsToScroll,type:Number},itemsToShow:{default:_e.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:_e.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:_e.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:_e.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:_e.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(t,n){return t&&n.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:_e.slideEffect,validator(t){return x1.includes(t)}},snapAlign:{default:_e.snapAlign,validator(t){return b1.includes(t)}},touchDrag:{default:_e.touchDrag,type:[Boolean,Object]},transition:{default:_e.transition,type:Number},wrapAround:{default:_e.wrapAround,type:Boolean}},H5=e.defineComponent({name:"VueCarousel",props:R5,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(t,{slots:n,emit:a,expose:o}){var r;const i=B5(a),s=i.getSlides(),l=e.computed(()=>s.length),c=e.ref(null),m=e.ref(null),u=e.ref(0),h=e.computed(()=>Object.assign(Object.assign(Object.assign({},_e),N5(t,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},_e.i18n),t.i18n)})),f=e.shallowReactive(Object.assign({},h.value)),p=e.ref((r=t.modelValue)!==null&&r!==void 0?r:0),d=e.ref(p.value);e.watch(p,R=>d.value=R);const g=e.ref(0),x=e.computed(()=>Math.ceil((l.value-1)/2)),b=e.computed(()=>l.value-1),k=e.computed(()=>0);let y=null,v=null,C=null;const L=e.computed(()=>u.value+f.gap),P=e.computed(()=>{const R=f.dir||"ltr";return R in qn?qn[R]:R}),E=e.computed(()=>["rtl","btt"].includes(P.value)),w=e.computed(()=>["ttb","btt"].includes(P.value)),A=e.computed(()=>f.itemsToShow==="auto"),S=e.computed(()=>w.value?"height":"width");function B(){var R;if(!Se.value)return;const Y=(h.value.breakpointMode==="carousel"?(R=c.value)===null||R===void 0?void 0:R.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,le=Object.keys(t.breakpoints||{}).map(ve=>Number(ve)).sort((ve,Me)=>+Me-+ve),xe={};le.some(ve=>Y>=ve?(Object.assign(xe,t.breakpoints[ve]),xe.i18n&&Object.assign(xe.i18n,h.value.i18n,t.breakpoints[ve].i18n),!0):!1),Object.assign(f,h.value,xe),A.value||(f.itemsToShow=ht({val:Number(f.itemsToShow),max:t.clamp?l.value:1/0,min:1}))}const N=Ha(()=>{B(),D(),F()}),M=e.shallowReactive(new Set),H=e.ref([]);function ie({widthMultiplier:R,heightMultiplier:Y}){H.value=s.map(le=>{var xe;const ve=(xe=le.exposed)===null||xe===void 0?void 0:xe.getBoundingRect();return{width:ve.width*R,height:ve.height*Y}})}const Q=e.ref({width:0,height:0});function fe({widthMultiplier:R,heightMultiplier:Y}){var le;const xe=((le=m.value)===null||le===void 0?void 0:le.getBoundingClientRect())||{width:0,height:0};Q.value={width:xe.width*R,height:xe.height*Y}}function F(){if(!m.value)return;const R=D5(M);if(fe(R),ie(R),A.value)u.value=V5(H.value.map(Y=>Y[S.value]));else{const Y=Number(f.itemsToShow),le=(Y-1)*f.gap;u.value=(Q.value[S.value]-le)/Y}}function D(){!f.wrapAround&&l.value>0&&(p.value=ht({val:p.value,max:b.value,min:k.value}))}const j=e.computed(()=>typeof t.ignoreAnimations=="string"?t.ignoreAnimations.split(","):Array.isArray(t.ignoreAnimations)?t.ignoreAnimations:t.ignoreAnimations?!1:[]);e.watchEffect(()=>D()),e.watchEffect(()=>{F()});let re;const se=R=>{const Y=R.target;if(!(!(Y!=null&&Y.contains(c.value))||Array.isArray(j.value)&&j.value.includes(R.animationName))&&(M.add(Y),!re)){const le=()=>{re=requestAnimationFrame(()=>{F(),le()})};le()}},be=R=>{const Y=R.target;Y&&M.delete(Y),re&&M.size===0&&(cancelAnimationFrame(re),F())},Se=e.ref(!1);typeof document<"u"&&e.watchEffect(()=>{Se.value&&j.value!==!1?(document.addEventListener("animationstart",se),document.addEventListener("animationend",be)):(document.removeEventListener("animationstart",se),document.removeEventListener("animationend",be))}),e.onMounted(()=>{Se.value=!0,B(),V(),c.value&&(C=new ResizeObserver(N),C.observe(c.value)),a("init")}),e.onBeforeUnmount(()=>{Se.value=!1,i.cleanup(),v&&clearTimeout(v),re&&cancelAnimationFrame(re),y&&clearInterval(y),C&&(C.disconnect(),C=null),typeof document<"u"&&ne(),c.value&&(c.value.removeEventListener("transitionend",F),c.value.removeEventListener("animationiteration",F))});const{isHover:Fe,handleMouseEnter:$e,handleMouseLeave:Ve}=O5(),G=Ha(R=>{if(!R.ctrlKey)switch(R.key){case"ArrowLeft":case"ArrowUp":w.value===R.key.endsWith("Up")&&(E.value?ge(!0):_(!0));break;case"ArrowRight":case"ArrowDown":w.value===R.key.endsWith("Down")&&(E.value?_(!0):ge(!0));break}},200),ne=()=>{document.removeEventListener("keydown",G)},J=()=>{document.addEventListener("keydown",G)};function V(){!f.autoplay||f.autoplay<=0||(y=setInterval(()=>{f.pauseAutoplayOnHover&&Fe.value||ge()},f.autoplay))}function $(){q(),V()}function q(){y&&(clearInterval(y),y=null)}const z=e.ref(!1),X=({deltaX:R,deltaY:Y,isTouch:le})=>{var xe,ve,Me,Ae;a("drag",{deltaX:R,deltaY:Y});const Ne=le?typeof f.touchDrag=="object"&&(ve=(xe=f.touchDrag)===null||xe===void 0?void 0:xe.threshold)!==null&&ve!==void 0?ve:In:typeof f.mouseDrag=="object"&&(Ae=(Me=f.mouseDrag)===null||Me===void 0?void 0:Me.threshold)!==null&&Ae!==void 0?Ae:In,Re=A5({isVertical:w.value,isReversed:E.value,dragged:{x:R,y:Y},effectiveSlideSize:L.value,threshold:Ne});Re!==0&&(d.value=f.wrapAround?p.value+Re:ht({val:p.value+Re,max:b.value,min:k.value}))},U=()=>K(d.value),{dragged:ee,isDragging:de,handleDragStart:we}=P5({isSliding:z,onDrag:X,onDragEnd:U}),ke=({deltaX:R,deltaY:Y,isScrollingForward:le})=>{a("wheel",{deltaX:R,deltaY:Y}),le?E.value?_():ge():E.value?ge():_()},{handleScroll:pe}=_5({isVertical:w,isSliding:z,config:f,onWheel:ke});function ge(R=!1){K(p.value+f.itemsToScroll,R)}function _(R=!1){K(p.value-f.itemsToScroll,R)}function K(R,Y=!1){if(!Y&&z.value)return;const le=(f.wrapAround?S1:ht)({val:R,max:b.value,min:k.value});if(p.value===le)return;g.value=p.value,a("slide-start",{slidingToIndex:R,currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),q(),z.value=!0,p.value=R,le!==R&&ce.pause(),a("update:modelValue",le),v=setTimeout(()=>{f.wrapAround&&le!==R&&(ce.resume(),p.value=le,a("loop",{currentSlideIndex:p.value,slidingToIndex:R})),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:g.value,slidesCount:l.value}),z.value=!1,$()},f.transition)}function ae(){B(),D(),F(),$()}e.watch(()=>[h.value,t.breakpoints],()=>B(),{deep:!0}),e.watch(()=>t.autoplay,()=>$());const ce=e.watch(()=>t.modelValue,R=>{R!==p.value&&K(Number(R),!0)});a("before-init");const Ee=e.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(A.value)return{before:s.length,after:s.length};const R=Number(f.itemsToShow),Y=Math.ceil(R+(f.itemsToScroll-1)),le=Y-d.value,xe=Y-(l.value-(d.value+1));return{before:Math.max(0,le),after:Math.max(0,xe)}}),ye=e.computed(()=>Ee.value.before?A.value?H.value.slice(-1*Ee.value.before).reduce((R,Y)=>R+Y[S.value]+f.gap,0)*-1:Ee.value.before*L.value*-1:0),T=e.computed(()=>{var R;if(A.value){const Y=(p.value%s.length+s.length)%s.length;return Ra({slideSize:(R=H.value[Y])===null||R===void 0?void 0:R[S.value],viewportSize:Q.value[S.value],align:f.snapAlign})}return Ra({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),O=e.computed(()=>{let R=0;if(A.value){if(p.value<0?R=H.value.slice(p.value).reduce((Y,le)=>Y+le[S.value]+f.gap,0)*-1:R=H.value.slice(0,p.value).reduce((Y,le)=>Y+le[S.value]+f.gap,0),R-=T.value,!f.wrapAround){const Y=H.value.reduce((le,xe)=>le+xe[S.value]+f.gap,0)-Q.value[S.value]-f.gap;R=ht({val:R,max:Y,min:0})}}else{let Y=p.value-T.value;f.wrapAround||(Y=ht({val:Y,max:l.value-+f.itemsToShow,min:0})),R=Y*L.value}return R*(E.value?1:-1)}),I=e.computed(()=>{var R,Y;if(!A.value){const ve=p.value-T.value;return f.wrapAround?{min:Math.floor(ve),max:Math.ceil(ve+Number(f.itemsToShow)-1)}:{min:Math.floor(ht({val:ve,max:l.value-Number(f.itemsToShow),min:0})),max:Math.ceil(ht({val:ve+Number(f.itemsToShow)-1,max:l.value-1,min:0}))}}let le=0;{let ve=0,Me=0-Ee.value.before;const Ae=Math.abs(O.value+ye.value);for(;ve<=Ae;){const Ne=(Me%s.length+s.length)%s.length;ve+=((R=H.value[Ne])===null||R===void 0?void 0:R[S.value])+f.gap,Me++}le=Me-1}let xe=0;{let ve=le,Me=0;for(ve<0?Me=H.value.slice(0,ve).reduce((Ae,Ne)=>Ae+Ne[S.value]+f.gap,0)-Math.abs(O.value+ye.value):Me=H.value.slice(0,ve).reduce((Ae,Ne)=>Ae+Ne[S.value]+f.gap,0)-Math.abs(O.value);Me<Q.value[S.value];){const Ae=(ve%s.length+s.length)%s.length;Me+=((Y=H.value[Ae])===null||Y===void 0?void 0:Y[S.value])+f.gap,ve++}xe=ve-1}return{min:Math.floor(le),max:Math.ceil(xe)}}),Z=e.computed(()=>{if(f.slideEffect==="fade")return;const R=w.value?"Y":"X",Y=w.value?ee.y:ee.x;let le=O.value+Y;if(!f.wrapAround&&f.preventExcessiveDragging){let xe=0;A.value?xe=H.value.reduce((Ae,Ne)=>Ae+Ne[S.value],0):xe=(l.value-Number(f.itemsToShow))*L.value;const ve=E.value?0:-1*xe,Me=E.value?xe:0;le=ht({val:le,min:ve,max:Me})}return`translate${R}(${le}px)`}),he=e.computed(()=>({"--vc-carousel-height":Wn(f.height),"--vc-cloned-offset":Wn(ye.value),"--vc-slide-gap":Wn(f.gap),"--vc-transition-duration":z.value?Wn(f.transition,"ms"):void 0})),te={slideTo:K,next:ge,prev:_},oe=e.reactive({activeSlide:d,config:f,currentSlide:p,isSliding:z,isVertical:w,maxSlide:b,minSlide:k,nav:te,normalizedDir:P,slideRegistry:i,slideSize:u,slides:s,slidesCount:l,viewport:m,visibleRange:I});e.provide(Ft,oe);const ue=e.reactive({config:f,currentSlide:p,maxSlide:b,middleSlide:x,minSlide:k,slideSize:u,slidesCount:l});return o(e.reactive(Object.assign({data:ue,next:ge,prev:_,restartCarousel:ae,slideTo:K,updateBreakpointsConfig:B,updateSlideSize:F,updateSlidesData:D},e.toRefs(oe)))),()=>{var R;const Y=n.default||n.slides,le=(Y==null?void 0:Y(ue))||[],{before:xe,after:ve}=Ee.value,Me=E1({slides:s,position:"before",toShow:xe}),Ae=E1({slides:s,position:"after",toShow:ve}),Ne=[...Me,...le,...Ae];if(!f.enabled||!Ne.length)return e.h("section",{ref:c,class:["carousel","is-disabled"]},Ne);const Re=((R=n.addons)===null||R===void 0?void 0:R.call(n,ue))||[],tt=e.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?we:null,onTouchstartPassiveCapture:f.touchDrag?we:null,onWheel:f.mouseWheel?pe:null,style:{transform:Z.value}},Ne),rt=e.h("div",{class:"carousel__viewport",ref:m},tt);return e.h("section",{ref:c,class:["carousel",`is-${P.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":de.value,"is-hover":Fe.value,"is-sliding":z.value,"is-vertical":w.value}],dir:P.value,style:he.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:ne,onFocus:J,onMouseenter:$e,onMouseleave:Ve},[rt,Re,e.h($5)])}}});var za;(function(t){t.arrowDown="arrowDown",t.arrowLeft="arrowLeft",t.arrowRight="arrowRight",t.arrowUp="arrowUp"})(za||(za={}));const B1=t=>`icon${t.charAt(0).toUpperCase()+t.slice(1)}`,z5={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function j5(t){return t in za}const V1=t=>t&&j5(t),M1=e.defineComponent({props:{name:{type:String,required:!0,validator:V1},title:{type:String,default:t=>t.name?_e.i18n[B1(t.name)]:""}},setup(t){const n=e.inject(Ft,null);return()=>{const a=t.name;if(!a||!V1(a))return;const o=z5[a],r=e.h("path",{d:o}),i=(n==null?void 0:n.config.i18n[B1(a)])||t.title,s=e.h("title",i);return e.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":i},[s,r])}}}),G5=e.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(t,{slots:n,attrs:a}){let o=e.inject(Ft,null);const{next:r,prev:i}=n,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[o.normalizedDir],l=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[o.normalizedDir],c=e.computed(()=>!o.config.wrapAround&&o.currentSlide<=o.minSlide),m=e.computed(()=>!o.config.wrapAround&&o.currentSlide>=o.maxSlide);return()=>{if(t.carousel&&(o=t.carousel),!o)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:u}=o.config,h=e.h("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:o.nav.prev},a),{class:["carousel__prev",{"carousel__prev--disabled":c.value},a.class]}),(i==null?void 0:i())||e.h(M1,{name:s()})),f=e.h("button",Object.assign(Object.assign({type:"button",disabled:m.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:o.nav.next},a),{class:["carousel__next",{"carousel__next--disabled":m.value},a.class]}),(r==null?void 0:r())||e.h(M1,{name:l()}));return[h,f]}}});e.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(t){let n=e.inject(Ft,null);const a=e.computed(()=>n.config.itemsToShow),o=e.computed(()=>Ra({align:n.config.snapAlign,itemsToShow:a.value})),r=e.computed(()=>t.paginateByItemsToShow&&a.value>1),i=e.computed(()=>Math.ceil((n.activeSlide-o.value)/a.value)),s=e.computed(()=>Math.ceil(n.slidesCount/a.value)),l=c=>S1(r.value?{val:i.value,max:s.value-1,min:0}:{val:n.activeSlide,max:n.maxSlide,min:n.minSlide})===c;return()=>{var c,m;if(t.carousel&&(n=t.carousel),!n)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const u=[];for(let h=r.value?0:n.minSlide;h<=(r.value?s.value-1:n.maxSlide);h++){const f=C1(n.config.i18n[r.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),p=l(h),d=e.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":p},"aria-label":f,"aria-pressed":p,"aria-controls":(m=(c=n.slides[h])===null||c===void 0?void 0:c.exposed)===null||m===void 0?void 0:m.id,title:f,disabled:t.disableOnClick,onClick:()=>n.nav.slideTo(r.value?Math.floor(h*+n.config.itemsToShow+o.value):h)}),g=e.h("li",{class:"carousel__pagination-item",key:h},d);u.push(g)}return e.h("ol",{class:"carousel__pagination"},u)}}});const q5=e.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:t=>t.isClone?void 0:e.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(t,{attrs:n,slots:a,expose:o}){const r=e.inject(Ft);if(e.provide(Ft,void 0),!r)return()=>"";const i=e.ref(t.index),s=d=>{i.value=d},l=e.getCurrentInstance(),c=()=>{const d=l.vnode.el;return d?d.getBoundingClientRect():{width:0,height:0}};o({id:t.id,setIndex:s,getBoundingRect:c});const m=e.computed(()=>i.value===r.activeSlide),u=e.computed(()=>i.value===r.activeSlide-1),h=e.computed(()=>i.value===r.activeSlide+1),f=e.computed(()=>i.value>=r.visibleRange.min&&i.value<=r.visibleRange.max),p=e.computed(()=>{if(r.config.itemsToShow==="auto")return;const d=r.config.itemsToShow,g=r.config.gap>0&&d>1?`calc(${100/d}% - ${r.config.gap*(d-1)/d}px)`:`${100/d}%`;return r.isVertical?{height:g}:{width:g}});return r.slideRegistry.registerSlide(l,t.index),e.onUnmounted(()=>{r.slideRegistry.unregisterSlide(l)}),t.isClone&&(e.onMounted(()=>{v1(l.vnode)}),e.onUpdated(()=>{v1(l.vnode)})),()=>{var d,g;return r.config.enabled?e.h("li",{style:[n.style,Object.assign({},p.value)],class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":m.value,"carousel__slide--prev":u.value,"carousel__slide--next":h.value,"carousel__slide--sliding":r.isSliding},onFocusin:()=>{r.viewport&&(r.viewport.scrollLeft=0),r.nav.slideTo(i.value)},id:t.isClone?void 0:t.id,"aria-hidden":t.isClone||void 0},(g=a.default)===null||g===void 0?void 0:g.call(a,{currentIndex:i.value,isActive:m.value,isClone:t.isClone,isPrev:u.value,isNext:h.value,isSliding:r.isSliding,isVisible:f.value})):(d=a.default)===null||d===void 0?void 0:d.call(a)}}}),I5={key:0,class:"preview-overlay bg-base-300"},W5={class:"preview-info"},U5={class:"text-black"},Z5={class:"queue-info"},Y5={class:"carousel-container bg-base-200"},X5={class:"carousel-item"},K5=["onClick"],Q5=["onClick"],J5={class:"send-footer"},e6={key:1,class:"toast-loader-files"},N1=Ce({__name:"dropFilesArea",props:{sendFilesToAttendant:{type:Function,required:!0},selectedAttendant:{type:Object,required:!0},attendant:{required:!0},isMobile:{type:Boolean,default:!1}},setup(t,{expose:n}){const a=t,o={itemsToShow:6,wrapAround:!1,gap:8,mouseDrag:!0,touchDrag:!0,mouseWheel:!0,snapAlign:"start",breakpoints:{1024:{itemsToShow:4},768:{itemsToShow:4},480:{itemsToShow:4},320:{itemsToShow:2},0:{itemsToShow:1}}},r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref([]),c=e.ref([]),m=e.ref(null),u=e.ref(0),h=e.ref(!1),f=e.ref(0),p=e.ref(0),d=B=>new Promise((N,M)=>{const H=new FileReader;H.readAsDataURL(B),H.onload=()=>{N(H.result)},H.onerror=ie=>{M(ie)}}),g=()=>{r.value=!0},x=()=>{r.value=!1},b=()=>{c.value=[],l.value=[],i.value="",m.value=null,u.value=0},k=B=>{if(!(B<0||B>=c.value.length)){if(c.value.splice(B,1),l.value.splice(B,1),c.value.length===0){m.value=null,u.value=0;return}if(B===u.value){const N=B>0?B-1:0;m.value=c.value[N],u.value=N}else B<u.value&&(u.value-=1)}},y=()=>{s.value.click()},v=async B=>{const N=Array.from(B.target.files);l.value=N,c.value=await Promise.all(N.map(async M=>({name:M.name,base64:await d(M)}))),m.value=c.value[0],e.nextTick(()=>{w()})},C=async B=>{r.value=!1;const N=Array.from(B.dataTransfer.files);l.value.push(...N);const M=await Promise.all(N.map(async H=>({name:H.name,base64:await d(H)})));c.value.push(...M),m.value||(m.value=c.value[0],u.value=0),e.nextTick(()=>{w()})},L=B=>B?B.split(";")[0].split(":")[1]:null,P=async()=>{try{h.value=!0,f.value=l.value.length,p.value=0;for(let B=0;B<l.value.length;B++){const N=B===l.value.length-1,M={type:"file",media:{name:c.value[B].name,mimetype:L(c.value[B].base64),data:c.value[B].base64}};N&&(M.content=i.value),await a.sendFilesToAttendant(a.selectedAttendant.id,M,a.attendant,!0),p.value++}await e.nextTick()}catch(B){console.error(B)}finally{h.value=!1,b(),x()}},E=e.ref(null),w=()=>{E.value&&E.value.focus()},A=(B,N)=>{m.value=B,u.value=N},S=async B=>{var H;const N=(H=B.clipboardData)==null?void 0:H.items;if(!N)return;const M=[];for(const ie of N)if(ie.kind==="file"){const Q=ie.getAsFile();Q&&M.push(Q)}if(M.length>0){const ie=new Set(l.value.map(F=>F.name));if(M.filter(F=>!ie.has(F.name)).length===0)return;l.value.push(...M);const fe=await Promise.all(M.map(async F=>({name:F.name,base64:await d(F)})));c.value.push(...fe),m.value||(m.value=fe[0],u.value=0)}e.nextTick(()=>{w()})};return e.watch(u,(B,N)=>{m.value=c.value[B]}),e.onMounted(()=>{window.addEventListener("paste",S)}),e.onUnmounted(()=>{window.removeEventListener("paste",S)}),n({chooseFiles:y}),(B,N)=>{var M,H,ie;return e.openBlock(),e.createElementBlock("main",{onDragover:e.withModifiers(g,["prevent"]),onDragleave:x,onDrop:e.withModifiers(C,["prevent"])},[e.createElementVNode("section",{class:e.normalizeClass(["dropzone-container ",{"dropzone-active":r.value}])},[!h.value&&c.value.length>0&&!r.value?(e.openBlock(),e.createElementBlock("div",I5,[e.createElementVNode("button",{onClick:N[0]||(N[0]=Q=>b()),class:"close-button"},N[6]||(N[6]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])),e.createElementVNode("section",W5,[e.createElementVNode("p",U5,e.toDisplayString((M=m.value)==null?void 0:M.name),1),e.createVNode(Oa,{isMobile:t.isMobile,avatar:null,mode:"preview",base64:(H=m.value)==null?void 0:H.base64,mimetype:L((ie=m.value)==null?void 0:ie.base64)},null,8,["isMobile","base64","mimetype"]),e.withDirectives(e.createElementVNode("input",{ref_key:"textInput",ref:E,onKeydown:N[1]||(N[1]=e.withKeys(Q=>P(),["enter"])),placeholder:"Digite uma mensagem para acompanhar o arquivo",class:"input-drop-files-area bg-base-200 text-text-base","onUpdate:modelValue":N[2]||(N[2]=Q=>i.value=Q),type:"text"},null,544),[[e.vModelText,i.value]])]),e.createElementVNode("div",Z5,[N[8]||(N[8]=e.createElementVNode("p",null,"fila de envio",-1)),e.createElementVNode("section",Y5,[e.createVNode(e.unref(H5),e.mergeProps({modelValue:u.value,"onUpdate:modelValue":N[4]||(N[4]=Q=>u.value=Q)},o),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(Q,fe)=>(e.openBlock(),e.createBlock(e.unref(q5),{key:fe},{default:e.withCtx(()=>[e.createElementVNode("section",X5,[u.value===fe?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:F=>k(fe),class:"remove-file-btn"},N[7]||(N[7]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule":"evenodd"})],-1)]),8,K5)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["bg-base-100",["carousel-preview",{active:u.value===fe}]]),onDragstart:N[3]||(N[3]=e.withModifiers(()=>{},["prevent"])),onClick:F=>A(Q,fe)},[e.createVNode(Oa,{isMobile:t.isMobile,avatar:null,mode:"miniature",base64:Q.base64,mimetype:L(Q.base64)},null,8,["isMobile","base64","mimetype"])],42,Q5)])]),_:2},1024))),128))]),_:2},[t.isMobile?{name:"addons",fn:e.withCtx(()=>[e.createVNode(e.unref(G5))]),key:"0"}:void 0]),1040,["modelValue"])])]),e.createElementVNode("footer",J5,[e.createElementVNode("button",{class:"send-button",onClick:N[5]||(N[5]=Q=>P())},N[9]||(N[9]=[e.createElementVNode("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2a1 1 0 0 1 .932.638l7 18a1 1 0 0 1-1.326 1.281L13 19.517V13a1 1 0 1 0-2 0v6.517l-5.606 2.402a1 1 0 0 1-1.326-1.281l7-18A1 1 0 0 1 12 2Z","clip-rule":"evenodd"})],-1)]))])])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("section",e6," Enviando Arquivos... ("+e.toDisplayString(p.value)+" / "+e.toDisplayString(f.value)+") ",1)):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"default",{},void 0,!0)],2),e.createElementVNode("input",{onChange:v,multiple:"",ref_key:"manualFile",ref:s,type:"file",hidden:""},null,544)],32)}}},[["__scopeId","data-v-931a7cac"]]),t6={key:0,class:"chat-icon"},n6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},a6={key:0,class:"unread-count"},o6={key:0,class:"chat-content"},r6={key:1,class:"h-full"},A1=Ce({__name:"chatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},mode:{type:String,default:"dark"}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:h}=cr(),f=e.ref(!1),p=e.ref(!1),d=e.ref(null),g=e.ref(null),x=n,b=e.ref(null),k=()=>{var S;(S=b.value)==null||S.chooseFiles()},y=e.computed(()=>{if(d.value){const S=o.value.find(B=>B.id===d.value.id);return S?S.internal_chat.unread:0}return 0}),v=S=>{var M;const B=(M=g.value)==null?void 0:M.contains(S.target),N=S.target.closest(".fancybox__container");!B&&!N&&f.value&&E()};e.onMounted(()=>{document.addEventListener("click",v)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v)});const C=e.ref(!1),L=e.ref(!1),P=e.computed(()=>L.value?{position:"absolute",width:"42px",height:"42px",transition:"width 0.2s ease-in, height 0.2s ease-out"}:C.value||f.value?{position:"absolute",width:"400px",height:"65vh",transition:"width 0.2s ease-in, height 0.2s ease-out"}:{position:"relative",width:"42px",height:"42px",transition:"none"}),E=()=>{f.value?(L.value=!0,setTimeout(()=>{f.value=!1,L.value=!1},200)):(f.value=!0,C.value=!0,setTimeout(()=>{C.value=!1},200))},w=()=>{f.value||E()},A=async S=>{const B=o.value.find(M=>M.id===S.id),N=B?B.internal_chat.unread:0;x("unreadMessagesEmit",N),d.value=S,u(S.id),S.hasNextPage||await i(S.id)};return e.watch(()=>a.socketMessage,(S,B)=>{var N;S!==B&&s(S,f.value,(N=d.value)==null?void 0:N.id)}),e.watch(f,S=>{S&&setTimeout(()=>{p.value=!0},400)}),(S,B)=>(e.openBlock(),e.createElementBlock("div",{class:"chat-container",ref_key:"chatContainer",ref:g},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(E,["stop"]),style:{width:"42px",height:"42px","border-radius":"50%","background-color":"#02a9db",display:"flex","justify-content":"center"}},B[1]||(B[1]=[e.createElementVNode("span",{style:{"margin-top":"auto","margin-bottom":"auto"},class:"chat-icon my-auto"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[e.createElementVNode("path",{fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"})])],-1)]))):e.createCommentVNode("",!0),!f.value&&t.countMessages>0?(e.openBlock(),e.createElementBlock("section",{key:1,style:e.normalizeStyle(t.countMessages>10?"padding: 0.2rem 0.500rem;":"padding: 0.2rem 0.625rem;"),class:"chat-count"},e.toDisplayString(t.countMessages),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:e.withModifiers(w,["stop"]),class:e.normalizeClass(["group relative",f.value?"chat-box border-base-200 open bg-base-200":"chat-box closed"]),style:e.normalizeStyle(P.value)},[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",t6,[(e.openBlock(),e.createElementBlock("svg",n6,[e.createElementVNode("path",{class:e.normalizeClass(t.mode==="dark"?"dark-chat-window-icon":"chat-window-icon"),fill:"currentColor",d:"M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"},null,2)])),y.value>0?(e.openBlock(),e.createElementBlock("span",a6,e.toDisplayString(y.value),1)):e.createCommentVNode("",!0),B[2]||(B[2]=e.createElementVNode("div",{class:"chat-tooltip"},[e.createElementVNode("div",{class:"text-sm my-auto text-center"},"Chat interno")],-1))])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[f.value&&!L.value?(e.openBlock(),e.createElementBlock("div",o6,[e.createElementVNode("button",{onClick:e.withModifiers(E,["stop"]),class:"close-button"},B[3]||(B[3]=[e.createElementVNode("svg",{class:"w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L17.94 6M18 18L6.06 6"})],-1)])),e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(g1,{key:0})):d.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",r6,[e.createVNode(N1,{ref_key:"dropFilesRef",ref:b,attendant:t.attendant,selectedAttendant:d.value,sendFilesToAttendant:e.unref(c)},{default:e.withCtx(()=>[e.createVNode(p1,{isMobile:!1,onSendFiles:k,attendant:t.attendant,selectedAtendente:d.value,onVoltar:B[0]||(B[0]=N=>d.value=null),loadMessagesForAtendente:e.unref(m),sendMessageToAtendente:e.unref(c),hasNextPageForAtendente:e.unref(l)},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!d.value&&!e.unref(h)?(e.openBlock(),e.createBlock(dr,{key:2,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:A},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})],6)],512))}},[["__scopeId","data-v-2a677344"]]),i6={class:"chat-content"},s6={key:1,class:"h-full"},T1=Ce({__name:"mobileChatWindow",props:{attendant:{default:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"}},socketMessage:{default:{id:"6170e5cd-a06f-4184-83a4-debd4bfaab35",channel_id:"e10b7177-3400-4457-bb43-b6c9d4a6faa1",sender:{id:"dea5c13f-4464-4cc6-8653-8c8524acdd3b",name:"Joao Pedro Souto Santos",photo:"https://sm-click.s3.us-east-1.amazonaws.com/clients/624dfe23-92d0-43f1-8061-a2321f2b5ebb/attendants/dea5c13f-4464-4cc6-8653-8c8524acdd3b.png"},content:{type:"text",content:"teste sockdet 3"},created_at:"2024-09-17T09:45:19.286087Z"}},countMessages:{type:Number,default:null},downloadFilesMobile:{type:Function,required:!0},openMobilePdf:{type:Function}},emits:["unreadMessagesEmit"],setup(t,{emit:n}){const a=t,{attendants:o,loadingMessages:r,fetchMessagesForAtendente:i,addMessageToAtendente:s,hasNextPageForAtendente:l,sendMessageToAtendente:c,loadMessagesForAtendente:m,resetUnreadMessages:u,loadingAttendants:h}=cr(),f=e.ref(!1),p=e.ref(!1),d=e.ref(null),g=e.ref(null),x=n,b=e.ref(null),k=()=>{var E;(E=b.value)==null||E.chooseFiles()};e.computed(()=>{if(d.value){const E=o.value.find(w=>w.id===d.value.id);return E?E.internal_chat.unread:0}return 0});const y=E=>{g.value&&!g.value.contains(E.target)&&f.value&&L()};e.onMounted(()=>{document.addEventListener("click",y)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",y)});const v=e.ref(!1),C=e.ref(!1),L=()=>{f.value?(C.value=!0,setTimeout(()=>{f.value=!1,C.value=!1},200)):(f.value=!0,v.value=!0,setTimeout(()=>{v.value=!1},200))},P=async E=>{const w=o.value.find(S=>S.id===E.id),A=w?w.internal_chat.unread:0;x("unreadMessagesEmit",A),d.value=E,u(E.id),E.hasNextPage||await i(E.id)};return e.watch(()=>a.socketMessage,(E,w)=>{var A;E!==w&&s(E,f.value,(A=d.value)==null?void 0:A.id)}),e.watch(f,E=>{E&&setTimeout(()=>{p.value=!0},400)}),(E,w)=>(e.openBlock(),e.createElementBlock("div",i6,[e.unref(r)||e.unref(h)?(e.openBlock(),e.createBlock(g1,{key:0})):d.value&&!e.unref(r)?(e.openBlock(),e.createElementBlock("div",s6,[e.createVNode(N1,{ref_key:"dropFilesRef",ref:b,isMobile:"",attendant:t.attendant,selectedAttendant:d.value,sendFilesToAttendant:e.unref(c)},{default:e.withCtx(()=>[e.createVNode(p1,{isMobile:"",attendant:t.attendant,selectedAtendente:d.value,loadMessagesForAtendente:e.unref(m),sendMessageToAtendente:e.unref(c),hasNextPageForAtendente:e.unref(l),downloadFilesMobile:t.downloadFilesMobile,openMobilePdf:t.openMobilePdf,onVoltar:w[0]||(w[0]=A=>d.value=null),onSendFiles:k},null,8,["attendant","selectedAtendente","loadMessagesForAtendente","sendMessageToAtendente","hasNextPageForAtendente","downloadFilesMobile","openMobilePdf"])]),_:1},8,["attendant","selectedAttendant","sendFilesToAttendant"])])):e.createCommentVNode("",!0),!d.value&&!e.unref(h)?(e.openBlock(),e.createBlock(dr,{key:2,mobile:!0,attendant:t.attendant,atendentes:e.unref(o),onAtendenteSelecionado:P},null,8,["attendant","atendentes"])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-56eadf01"]]),ja=Vt.defineStore("department",{state:()=>({departments:[],count:null,loaded:!1}),actions:{async fetchDepartments(t=""){try{let n=`${p0}`;const a=await Ue.get(n);this.departments=a.data,this.count=this.departments.length}catch(n){console.log("Erro ao buscar departamentos:",n)}},removeDepartments(t){this.departments=this.departments.filter(n=>n.id!==t)},addDepartments(t){const n=this.departments.findIndex(a=>a.id===t.id);n!==-1?this.departments[n]=t:this.departments.push(t)}}}),l6={class:"depart-select-container"},c6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},d6=["placeholder"],u6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},m6=["onClick"],f6={class:"department-list"},h6=["onClick"],p6={key:0,style:{width:"150px"}},g6=["onUpdate:modelValue","onChange"],y6={key:0,class:"no-departments bg-base-300"},k6={key:0},x6={key:1,class:"library-loading-spinner"},D1=Ce({__name:"departSelect",props:{department:{type:[Array,String],default:null},modal_filter:{type:String,default:null},multiSelect:{type:Boolean,default:!0},permissions:{type:Boolean,default:!1},externalDepartments:{type:Array,default:null},attDel:{type:String,default:null},hiddenDepartment:{type:String,default:null}},emits:["depart","component-mounted"],setup(t,{emit:n}){e.useSlots();const a=t,o=n,r=ja(),i=e.ref(""),s=e.ref([]),l=e.ref(!1),c=e.ref(!1),m=e.computed(()=>(a.externalDepartments||r.departments).filter(y=>!(a.hiddenDepartment&&y.id===a.hiddenDepartment)).filter(y=>!i.value||y.name.toLowerCase().includes(i.value.toLowerCase())));e.onMounted(async()=>{await f(),await h(),o("component-mounted")}),e.watch(()=>r.departments.length,async()=>{await f(),await e.nextTick(),await h()},{immediate:!0}),e.watch(()=>a.attDel,k=>k&&u(k),{immediate:!0});function u(k){const v=(a.externalDepartments||r.departments).findIndex(C=>C.id===k);v!==-1&&(s.value=s.value.filter(C=>C.id!==k),a.externalDepartments?a.externalDepartments.splice(v,1):r.removeDepartments(k),o("depart",s.value))}async function h(){c.value=!0;const k=a.externalDepartments||r.departments;a.permissions&&k.forEach(y=>{y.permission||(y.permission="normal")}),await p(),c.value=!1}async function f(){(a.externalDepartments||r.departments).forEach(y=>y.selected=!1),s.value=[]}async function p(){const k=a.externalDepartments||r.departments;if(!(k!=null&&k.length))return;(Array.isArray(a.department)?a.department:a.department?[a.department]:[]).forEach(v=>{const C=typeof v=="object"?v.id:v,L=typeof v=="object"?v.permission:void 0,P=k.find(E=>E.id===C);P&&(P.selected=!0,L&&(P.permission=L),s.value.some(E=>E.id===C)||s.value.push(P))}),o("depart",s.value)}function d(k){const y=s.value.findIndex(v=>v.id===k.id);y!==-1?(k.selected=!1,s.value.splice(y,1)):(a.multiSelect||f(),k.selected=!0,s.value.push(k)),o("depart",s.value)}function g(){o("depart",s.value)}function x(k,y){k.selected=!1,s.value.splice(y,1),o("depart",s.value)}const b=e.computed(()=>i.value.trim().length>0);return e.watch(b,k=>{o("searching",k)}),(k,y)=>(e.openBlock(),e.createElementBlock("div",l6,[e.createElementVNode("div",c6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:l.value||s.value.length>0}]),onClick:y[1]||(y[1]=v=>l.value=!l.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=v=>i.value=v),placeholder:s.value.length>0?t.multiSelect?`Selecionados: ${s.value.length}`:`Selecionado: ${s.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,d6),[[e.vModelText,i.value]]),y[2]||(y[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),s.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",u6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(v,C)=>(e.openBlock(),e.createElementBlock("div",{key:v.id,class:"selection-item"},[e.createTextVNode(e.toDisplayString(v.name)+" ",1),e.createElementVNode("button",{onClick:L=>x(v,C),class:"close-btn"},y[3]||(y[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,m6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([s.value.length>0&&t.multiSelect?"dropdown-depart-expanded":"dropdown-depart","dropdown-depart bg-base-300"])},[e.createElementVNode("div",f6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":m.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,v=>(e.openBlock(),e.createElementBlock("div",{key:v.id,class:e.normalizeClass([{selected:v.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("span",{onClick:C=>d(v),class:"department-name h-full w-full"},e.toDisplayString(v.name),9,h6),t.multiSelect&&t.permissions?(e.openBlock(),e.createElementBlock("div",p6,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":C=>v.permission=C,onChange:C=>g(),class:"select-dropdown-depart bg-base-300"},y[4]||(y[4]=[e.createElementVNode("option",{value:"normal"},"normal",-1),e.createElementVNode("option",{value:"supervisor"},"supervisor",-1)]),40,g6),[[e.vModelSelect,v.permission]])])):e.createCommentVNode("",!0)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&m.value.length===0?(e.openBlock(),e.createElementBlock("div",y6,[k.$slots.default?e.renderSlot(k.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("p",k6,"Nenhum departamento disponível."))])):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",x6,y[5]||(y[5]=[e.createTextVNode(" Inicializando departamentos "),e.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-6721add7"]]),b6={class:"depart-select-container"},w6={class:"search-container relative shadow shadow-gray-900 dark:shadow-gray-500"},E6=["placeholder"],v6={key:0,class:"selection-container bg-base-300 border-b border-base-200"},C6=["onClick"],S6={class:"department-list"},B6={style:{"padding-left":"5px"}},V6=["src"],M6={key:1,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"},class:"bg-base-300","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},N6=["onClick"],A6={key:0,class:"no-departments bg-base-300"},T6={key:1,class:"library-loading-spinner"},L1=Ce({__name:"attendantSelect",props:{attendance:{type:[Array,String],default:null},multiSelect:{type:Boolean,default:!0},department:{type:Array,default:[]},modal_filter:{type:String,default:null},attDel:{type:Object,default:{id:null}},method:{type:String,default:null},preselect:{type:Boolean,default:!0}},emits:["attend","component-mounted"],setup(t,{emit:n}){const a=t,o=n,r=Rt(),i=e.ref(""),s=e.ref(!1),l=e.ref([]);function c(){const b=Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[];return new Set(b.filter(Boolean).map(k=>typeof k=="object"?k.id:k))}const m=e.computed(()=>{const b=r.attendants.filter(y=>y.status===!0),k=i.value?b.filter(y=>y.name.toLowerCase().includes(i.value.toLowerCase())):b;return h(u(k))});function u(b){var k;if(a.method==="remove")return(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:b).filter(v=>{var L;return(typeof v=="object"?v.id:v)!==((L=a==null?void 0:a.attDel)==null?void 0:L.id)});if(a.method==="addParticipant"){const y=c();return(k=a==null?void 0:a.attDel)!=null&&k.id&&y.add(a.attDel.id),b.filter(v=>!y.has(v.id))}return b}function h(b){return Array.isArray(a.department)&&a.department.length>0?b.filter(k=>k.department.some(y=>a.department.some(v=>v.id===y.id))):b}e.onMounted(()=>{f(),o("component-mounted")}),e.watch(()=>r.attendants.length,async()=>{await e.nextTick(),f()},{immediate:!0}),e.watch(()=>a.modal_filter,()=>{!a.modal_filter&&a.multiSelect&&p()},{immediate:!0}),e.watch(()=>a.department,()=>f(),{deep:!0});function f(){p(),d()}function p(){r.attendants.forEach(b=>b.selected=!1),l.value=[]}function d(){if(!a.preselect)return;const b=r.attendants;if(!(b!=null&&b.length))return;(Array.isArray(a.attendance)?a.attendance:a.attendance?[a.attendance]:[]).forEach(y=>{const v=typeof y=="object"?y.id:y,C=b.find(L=>L.id===v);C&&!l.value.some(L=>L.id===v)&&(C.selected=!0,l.value.push(C))}),o("attend",l.value)}function g(b){const k=l.value.findIndex(y=>y.id===b.id);k!==-1?(b.selected=!1,l.value.splice(k,1)):(a.multiSelect||p(),b.selected=!0,l.value.push(b)),o("attend",l.value)}function x(b,k){b.selected=!1,l.value.splice(k,1),o("attend",l.value)}return(b,k)=>(e.openBlock(),e.createElementBlock("div",b6,[e.createElementVNode("div",w6,[e.createElementVNode("div",{class:e.normalizeClass(["input-wrapper bg-base-300 border-b border-base-200",{expanded:s.value||l.value.length>0}]),onClick:k[1]||(k[1]=y=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":k[0]||(k[0]=y=>i.value=y),placeholder:l.value.length>0?t.multiSelect?`Selecionados: ${l.value.length}`:`Selecionado: ${l.value[0].name}`:"Pesquise por nome.",class:"select-depart-input"},null,8,E6),[[e.vModelText,i.value]]),k[2]||(k[2]=e.createElementVNode("div",{class:"icon-container"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"search-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1))],2),l.value.length>0&&t.multiSelect&&e.unref(r).loaded?(e.openBlock(),e.createElementBlock("main",v6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(y,v)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"selection-item"},[e.createTextVNode(e.toDisplayString(y.name)+" ",1),e.createElementVNode("button",{onClick:C=>x(y,v),class:"close-btn"},k[3]||(k[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"close-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,C6)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([l.value.length>0&&t.multiSelect?"dropdown-attendance-expanded":"dropdown-attendance","dropdown-attendance bg-base-300"])},[e.createElementVNode("div",S6,[e.createElementVNode("div",{class:e.normalizeClass([{"two-columns":m.value.length>4},"grid-container"])},[e.unref(r).loaded?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,y=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass([{selected:y.selected},"department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])},[e.createElementVNode("div",B6,[y.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:y.photo,style:{"pointer-events":"none","border-radius":"100%",width:"24px",height:"24px"}},null,8,V6)):(e.openBlock(),e.createElementBlock("svg",M6,k[4]||(k[4]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"},null,-1)])))]),e.createElementVNode("span",{onClick:v=>g(y),class:"department-name h-full w-full"},e.toDisplayString(y.name),9,N6)],2))),128)):e.createCommentVNode("",!0)],2)]),e.unref(r).loaded&&m.value.length===0?(e.openBlock(),e.createElementBlock("div",A6," Nenhum atendente disponível. ")):e.createCommentVNode("",!0),e.unref(r).loaded?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",T6,k[5]||(k[5]=[e.createTextVNode(" Inicializando atendentes "),e.createElementVNode("div",{class:"library-loader"},null,-1)])))],2)])]))}},[["__scopeId","data-v-6d479fae"]]),D6={class:""},L6={class:"flex justify-between mb-3"},F6={class:""},F1=Ce({__name:"filterSelect",props:{title:{type:String,default:"Filtros"},modelValue:{default:null}},setup(t){const n=e.ref(!0);return(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(r,{placement:"bottom",arrow:!1,class:"dark:popper-light popper-dark"},{content:e.withCtx(({close:i})=>[e.createElementVNode("section",D6,[e.createElementVNode("div",null,[e.createElementVNode("div",L6,[e.createElementVNode("p",null,e.toDisplayString(t.title),1),o[1]||(o[1]=e.createElementVNode("svg",{class:"w-4 h-4 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M5 3a2 2 0 0 0-1.5 3.3l5.4 6v5c0 .4.3.9.6 1.1l3.1 2.3c1 .7 2.5 0 2.5-1.2v-7.1l5.4-6C21.6 5 20.7 3 19 3H5Z"})],-1))]),e.createElementVNode("div",F6,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])])]),default:e.withCtx(()=>[e.createElementVNode("button",{onClick:o[0]||(o[0]=i=>n.value=!n.value),class:"group max-w-max relative flex p-0.5 flex-col items-center justify-center cursor-pointer rounded-md text-xs font-semibold"},o[2]||(o[2]=[e.createElementVNode("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18.4 10.3A2 2 0 0 0 17 7H7a2 2 0 0 0-1.5 3.3l4.9 5.9a2 2 0 0 0 3 0l5-6Z","clip-rule":"evenodd"})],-1)]))]),_:3})}}},[["__scopeId","data-v-27cda391"]]);function $6(t,n){return e.openBlock(),e.createElementBlock("svg")}const P6={render:$6},O6=e.createStaticVNode('<g id="Top/_Resources/Prescription-01" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Glasses" fill="#D6EAF2" filter="url(&#39;#filter1&#39;)" transform="translate(8 8)"><path id="Frame-Stuff" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame-Stuff" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g>',1),_6=[O6];function R6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[..._6])}const H6={render:R6},z6=e.createStaticVNode('<g id="Top/_Resources/Round" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.6%" height="108.3%" x="-.8%" y="-2.1%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter><path id="Round-path1" d="M80.465 16.394C84.38 8.46 92.553 3 102 3c8.92 0 16.703 4.866 20.84 12.088q.316-.087.66-.088h8a2.5 2.5 0 1 1 0 5h-6.537A24 24 0 0 1 126 27c0 13.255-10.745 24-24 24S78 40.255 78 27c0-1.422.124-2.815.36-4.169C78.277 18.455 74.915 15 70.863 15c-3.736 0-6.887 2.94-7.42 6.83.365 1.665.558 3.395.558 5.17 0 13.255-10.745 24-24 24S16 40.255 16 27c0-2.435.363-4.785 1.037-7H10.5a2.5 2.5 0 1 1 0-5h8q.343 0 .66.088C23.297 7.866 31.08 3 40 3c9.352 0 17.455 5.35 21.416 13.155C63.493 13.039 66.949 11 70.862 11c4.013 0 7.545 2.144 9.603 5.394M40 47c11.046 0 20-8.954 20-20S51.046 7 40 7s-20 8.954-20 20 8.954 20 20 20m62 0c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20"></path></defs><g id="Lennon-Glasses"><use fill="#000" filter="url(&#39;#filter1&#39;)" href="#Round-path1"></use><use fill="#252C2F" href="#Round-path1"></use></g></g>',1),j6=[z6];function G6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...j6])}const q6={render:G6},I6=e.createStaticVNode('<g id="Top/_Resources/Wayfarers" fill="none" stroke-width="1" transform="translate(62 85)"><defs><path id="react-path-1157" d="M44.918 17.571c0 9.703-8.25 17.572-21.998 17.572h-2.75C6.423 35.143.923 27.27.923 17.57.923 7.866 2.207 0 21.455 0h2.931c19.248 0 20.532 7.866 20.532 17.571"></path><path id="react-path-1158" d="M106.486 17.571c0 9.703-8.247 17.572-21.997 17.572h-2.75c-13.748 0-19.248-7.872-19.248-17.572C62.491 7.866 63.775 0 83.023 0h2.932c19.244 0 20.531 7.866 20.531 17.571"></path><linearGradient id="react-linear-gradient-1160" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><filter id="react-filter-1159" width="101.6%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" filter="url(#react-filter-1159)" transform="translate(7 7)"><g id="Shades" fill-rule="evenodd" transform="translate(10.795 2.929)"><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1157"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1157" style="mix-blend-mode:screen;"></use></g><g id="Shade"><use fill="#000" fill-opacity=".7" href="#react-path-1158"></use><use fill="url(#react-linear-gradient-1160)" href="#react-path-1158" style="mix-blend-mode:screen;"></use></g></g><path id="Left" fill="#252C2F" fill-rule="nonzero" d="M33.716 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5C8.787 10.127 10.6 0 32.25 0h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.93 20.5M32.25 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.83 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Right" fill="#252C2F" fill-rule="nonzero" d="M95.284 41h-2.75c-13.888 0-22.18-7.664-22.18-20.5 0-10.373 1.813-20.5 23.464-20.5h2.932c21.651 0 23.463 10.127 23.463 20.5 0 12.069-10.25 20.5-24.929 20.5M93.818 5.854c-17.6 0-17.6 6.464-17.6 14.646 0 6.68 2.833 14.643 16.316 14.643h2.75c11.226 0 19.066-6.021 19.066-14.643 0-8.182 0-14.646-17.6-14.646z"></path><path id="Stuff" fill="#252C2F" fill-rule="nonzero" d="M2.932 5.857C3.618 5.172 11.123 0 32.25 0c17.714 0 21.464 1.88 27.14 4.72l.415.21c.395.143 2.413.844 4.773.921a16.5 16.5 0 0 0 4.528-.881C75.584 1.748 81.926 0 96.75 0c21.127 0 28.632 5.172 29.318 5.857A2.93 2.93 0 0 1 129 8.786v2.928c0 1.62-1.31 2.929-2.932 2.929 0 0-5.863 0-5.863 2.928s-2.932-4.237-2.932-5.857V8.862c-3.576-1.4-9.976-3.005-20.523-3.005-11.75 0-17.602 1.131-22.622 3.247l.056.139-2.496 1.007 2.493 1.008-2.2 5.43-2.717-1.1a13 13 0 0 0-1.493-.457c-2.024-.51-4.106-.666-5.946-.28a7.7 7.7 0 0 0-1.877.642l-2.622 1.31-2.623-5.238 2.622-1.31.006-.003-2.512-1.015.08-.198C50.57 6.976 46.58 5.857 32.25 5.857c-10.546 0-16.947 1.604-20.523 3.004v2.853c0 1.62-2.932 8.786-2.932 5.857s-5.863-2.928-5.863-2.928A2.93 2.93 0 0 1 0 11.714V8.786a2.93 2.93 0 0 1 2.932-2.929"></path></g></g>',1),W6=[I6];function U6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...W6])}const Z6={render:U6},Y6=e.createStaticVNode('<g id="Top/_Resources/Kurt" fill="none" transform="translate(62 85)"><defs><filter id="filter1" width="101.5%" height="108%" x="-.8%" y="-2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Kurts" filter="url(&#39;#filter1&#39;)" transform="translate(5 2)"><path id="It!" fill="#F4F4F4" d="M66 11.111c-11.037 0-12.63-9.084-35.33-10.37C7.987-.283.816 6.449.777 11.11c.037 4.293-1.128 15.45 13.589 28.519 14.772 15.512 29.905 10.252 35.33 5.185C55.134 42.473 61.34 21.46 66 21.48s10.865 20.992 16.306 23.334c5.424 5.067 20.557 10.327 35.33-5.185 14.716-13.069 13.55-24.226 13.588-28.519-.04-4.662-7.21-11.394-29.895-10.37C78.63 2.027 77.037 11.11 66 11.11"></path><path id="Did" fill="#2F383B" d="M55.13 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.256.299-16.111 9.453-16.306 12.963-.349 8.133 8.367 26.415 24.459 25.926 16.091-.51 18.803-18.28 19.023-23.334"></path><path id="Courtney" fill="#2F383B" d="M120.353 21.481c.38-7.658-12.914-15.839-27.177-15.555-14.255.299-16.11 9.453-16.305 12.963-.35 8.133 8.367 26.415 24.458 25.926 16.092-.51 18.804-18.28 19.024-23.334" transform="matrix(-1 0 0 1 197.224 0)"></path></g></g>',1),X6=[Y6];function K6(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...X6])}const Q6={render:K6},J6=e.createStaticVNode('<g id="Top/_Resources/Prescription-02" fill="none" stroke-width="1" transform="translate(62 85)"><defs><filter id="react-filter-1166" width="101.5%" height="109.8%" x="-.8%" y="-2.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Wayfarers" fill="#252C2F" fill-rule="nonzero" filter="url(#react-filter-1166)" transform="translate(6 7)"><path id="Left" d="M34 41h-2.758C17.315 41 9 33.336 9 20.5 9 10.127 10.817 0 32.53 0h2.94C57.183 0 59 10.127 59 20.5 59 32.569 48.721 41 34 41M32.385 6C13 6 13 12.841 13 21.502 13 28.572 16.116 37 30.97 37H34c12.365 0 21-6.373 21-15.498C55 12.84 55 6 35.615 6z"></path><path id="Right" d="M96 41h-2.758C79.315 41 71 33.336 71 20.5 71 10.127 72.817 0 94.53 0h2.94C119.183 0 121 10.127 121 20.5 121 32.569 110.721 41 96 41M94.385 6C75 6 75 12.841 75 21.502 75 28.572 78.12 37 92.97 37H96c12.365 0 21-6.373 21-15.498C117 12.84 117 6 97.615 6z"></path><path id="Stuff" d="M2.955 5.772C3.645 5.096 11.21 0 32.5 0c17.851 0 21.63 1.853 27.35 4.652l.419.207c.398.14 2.431.83 4.81.907a17 17 0 0 0 4.563-.869C76.17 1.722 82.562 0 97.5 0c21.29 0 28.854 5.096 29.545 5.772 1.634 0 2.955 1.29 2.955 2.885v2.886c0 1.596-1.32 2.886-2.955 2.886 0 0-6.901 0-6.901 2.886 0 2.885-1.962-4.176-1.962-5.772v-2.81c-3.603-1.38-10.054-3.947-20.682-3.947-11.842 0-17.739 2.1-22.798 4.185l.057.137-.003 1.986-2.217 5.35L69.8 15.36c-.244-.097-.772-.27-1.504-.451-2.04-.503-4.137-.656-5.992-.276q-1.021.21-1.891.633l-2.643 1.29-2.643-5.16.117-2.295.08-.195c-4.362-2.033-8.385-4.12-22.824-4.12-10.628 0-17.078 2.565-20.682 3.944v2.812c0 1.596-2.954 8.657-2.954 5.772 0-2.886-5.91-2.886-5.91-2.886-1.63 0-2.954-1.29-2.954-2.886V8.657c0-1.595 1.324-2.885 2.955-2.885"></path></g></g>',1),e7=[J6];function t7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...e7])}const n7={render:t7},a7=e.createStaticVNode('<g id="Top/_Resources/Sunglasses" fill="none" stroke-width="1" transform="translate(62 85)"><defs><linearGradient id="react-linear-gradient-1164" x1="50%" x2="50%" y1="0%" y2="70.506%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="100%" stop-opacity=".5"></stop></linearGradient><linearGradient id="react-linear-gradient-1165" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFF" stop-opacity=".5"></stop><stop offset="70.506%" stop-opacity=".5"></stop></linearGradient><path id="react-path-1161" d="M47.01 6.277c2.511.024 3.698.45 4.126 3.115.433 2.7.012 5.736-.488 8.395-.762 4.06-2.031 8.04-4.984 11.007-1.555 1.564-3.452 2.81-5.47 3.66-1.071.452-2.203.778-3.334 1.026-.33.072-3.154.468-1.422.267-4.041.47-8.425.45-11.8-2.168-3.74-2.901-6.301-7.493-7.427-12.066-.66-2.676-2.044-9.076.486-11.216 2.898-2.452 30.313-2.02 30.313-2.02"></path><path id="react-path-1162" d="M78.92 6.275c-2.512.024-3.699.449-4.126 3.114-.434 2.7-.012 5.736.487 8.395.763 4.061 2.032 8.04 4.984 11.008 1.556 1.563 3.453 2.809 5.47 3.66 1.072.451 2.204.778 3.335 1.025.33.072 3.153.469 1.422.267 4.04.47 8.425.45 11.8-2.167 3.74-2.902 6.3-7.493 7.427-12.066.66-2.677 2.043-9.077-.486-11.217-2.898-2.451-30.314-2.02-30.314-2.02"></path><filter id="react-filter-1163" width="101.6%" height="110.5%" x="-.8%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs><g id="Sunglasses" filter="url(#react-filter-1163)" transform="translate(8 8)"><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1161"></use><use fill="url(#react-linear-gradient-1164)" href="#react-path-1161" style="mix-blend-mode:screen;"></use></g><g id="shades"><use fill="#000" fill-opacity=".7" href="#react-path-1162"></use><use fill="url(#react-linear-gradient-1165)" href="#react-path-1162" style="mix-blend-mode:screen;"></use></g><g id="Glasses" fill="#252C2F"><path id="Frame" d="M46.25 7.275c2.37.022 3.492.417 3.896 2.89.41 2.506.011 5.322-.46 7.79-.721 3.768-1.92 7.46-4.708 10.214-1.47 1.45-3.261 2.606-5.167 3.395-1.012.42-2.081.722-3.15.952-.312.067-2.979.434-1.343.248-3.817.435-7.958.418-11.146-2.012-3.532-2.692-5.952-6.952-7.015-11.196-.623-2.483-1.93-8.422.459-10.407 2.737-2.274 28.633-1.874 28.633-1.874M22.217.491c-5.44.187-9.071 1.143-11.755 6.578-4.917 9.961 3.5 24.9 12.89 28.97 10.976 4.76 23.24-.507 29.043-10.033 3.073-5.044 4.626-12.683 4.526-18.502C56.795.077 51.607-.13 45.51.034zM79.68 7.273c-2.371.022-3.492.416-3.896 2.89-.41 2.505-.012 5.322.46 7.79.72 3.767 1.919 7.459 4.708 10.213 1.47 1.45 3.261 2.606 5.167 3.396 1.012.419 2.08.722 3.15.951.312.067 2.978.435 1.343.248 3.817.436 7.958.418 11.145-2.011 3.533-2.692 5.952-6.952 7.016-11.196.623-2.483 1.93-8.422-.46-10.407-2.737-2.275-28.632-1.874-28.632-1.874M103.713.488c5.44.187 9.071 1.144 11.754 6.579 4.918 9.96-3.5 24.9-12.889 28.97-10.977 4.76-23.24-.508-29.043-10.033C70.46 20.96 68.907 13.32 69.007 7.5 69.135.074 74.323-.132 80.42.031z"></path><path id="Frame" d="M13.197 4.927c-3.412.191-7.31.237-10.507 1.712-3.385 1.562-3.908 5.1.36 5.587 1.92.22 3.845-.143 5.737-.481 1.55-.277 3.655-.187 5.12-.78 2.729-1.103 2.553-6.225-.71-6.038m99.538 0c3.412.191 7.31.237 10.507 1.712 3.384 1.562 3.907 5.1-.36 5.587-1.921.22-3.845-.143-5.738-.481-1.55-.277-3.654-.187-5.119-.78-2.73-1.103-2.554-6.225.71-6.038M73.11 7.013c-1.947-2.3-7.019-3.628-10.219-3.628s-8.123 1.328-10.069 3.628c-.981 1.16-1.015 2.711.686 3.438 2.118.906 4.01-.737 5.705-1.596 2.168-1.098 5.499-.978 7.506 0 1.708.833 3.586 2.502 5.704 1.596 1.701-.727 1.668-2.279.686-3.438"></path></g></g></g>',1),o7=[a7];function r7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...o7])}const i7={render:r7},s7={Blank:P6,Prescription01:H6,Round:q6,Wayfarers:Z6,Kurt:Q6,Prescription02:n7,Sunglasses:i7},l7=e.createStaticVNode('<g id="Clothing/Blazer-+-Shirt" transform="translate(0 170)"><defs><path id="BlazerShirt-path1" d="M133.96.295c36.976 3.03 66.04 34 66.04 71.757V81H0v-8.948C0 33.952 29.592 2.765 67.045.22Q67 .78 67 1.348c0 11.863 14.998 21.48 33.5 21.48S134 13.211 134 1.348q0-.53-.04-1.053"></path></defs><g id="Shirt" transform="translate(32 29)"><mask id="BlazerShirt-mask1" fill="#fff"><use href="#BlazerShirt-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerShirt-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url(&#39;#BlazerShirt-mask1&#39;)"><path id="Color" d="M0 0h264v110H0z" transform="translate(-32 -29)"></path></g><g id="Shadowy" fill="#000" mask="url(&#39;#BlazerShirt-mask1&#39;)" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(60 -25)"></ellipse></g></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g></g>',1),c7=[l7];function d7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...c7])}const u7={render:d7},m7=e.createStaticVNode('<g id="Clothing/Blazer-+-Sweater" transform="translate(0 170)"><defs><path id="BlazerSweater-path1" d="M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"></path></defs><mask id="BlazerSweater-mask1" fill="#fff"><use href="#BlazerSweater-path1"></use></mask><use fill="#E6E6E6" class="CustomColor" href="#BlazerSweater-path1"></use><g id="Color/Palette/Black" fill="#262E33" mask="url(&#39;#BlazerSweater-mask1&#39;)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Blazer" transform="translate(32 28)"><path id="Saco" fill="#3A4C5A" d="M68.785 1.122C30.512 2.804 0 34.365 0 73.052V82h69.362C65.96 69.92 64 55.709 64 40.5c0-14.327 1.74-27.769 4.785-39.378M131.638 82H200v-8.948c0-38.345-29.975-69.69-67.771-71.878C135.265 12.77 137 26.194 137 40.5c0 15.209-1.96 29.42-5.362 41.5"></path><path id="Pocket-hanky" fill="#E6E6E6" d="m149 58 9.556-7.167a4 4 0 0 1 4.856.043L170 56z"></path><path id="Wing" fill="#2F4351" d="M69 0q-6 29 5 82H58L44 46l6-9-6-6L63 1q3.042-.945 6-1"></path><path id="Wing" fill="#2F4351" d="M151 0q-6 29 5 82h-16l-14-36 6-9-6-6 19-30q3.042-.945 6-1" transform="matrix(-1 0 0 1 282 0)"></path></g><path id="Collar" fill="#F2F2F2" d="M156 21.539c6.772 4.597 11 11.117 11 18.349 0 7.4-4.428 14.057-11.48 18.668l-5.94-4.68-4.58.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48 0c-6.772 4.597-11 11.117-11 18.349 0 7.4 4.428 14.057 11.48 18.668l5.94-4.68 4.58.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"></path></g>',1),f7=[m7];function h7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...f7])}const p7={render:h7},g7=e.createElementVNode("g",{id:"Clothing/Collar-+-Sweater",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"CollarSweater-path1",d:"M105.192 29.052H104c-39.765 0-72 32.235-72 72V110h200v-8.948c0-39.765-32.235-72-72-72h-1.192q.191 1.475.192 3c0 13.807-12.088 25-27 25s-27-11.193-27-25q0-1.525.192-3"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#CollarSweater-path1"}),e.createElementVNode("path",{id:"Collar",fill:"#F2F2F2",d:"M156 22.28c6.182 4.555 10 10.826 10 17.748 0 7.205-4.137 13.705-10.771 18.3l-5.65-4.452-4.579.332 1-3.151-.078-.061C152.022 47.853 156 42.7 156 36.876zm-48-.709c-6.767 4.603-11 11.169-11 18.457 0 7.398 4.362 14.052 11.308 18.664l6.113-4.816 4.579.332-1-3.151.078-.061C111.978 47.853 108 42.7 108 36.876z"})],-1),y7=[g7];function k7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...y7])}const x7={render:k7},b7=e.createStaticVNode('<g id="Clothing/Hoodie" transform="translate(0 170)"><defs><path id="Hoodie-path1" d="M108 13.07c-17.919 2.006-31.72 7.482-31.996 21.575C50.146 45.568 32 71.165 32 100.999V110h200v-9c0-29.835-18.146-55.432-44.004-66.355-.276-14.093-14.077-19.57-31.996-21.574V32c0 13.255-10.745 24-24 24s-24-10.745-24-24z"></path></defs><mask id="Hoodie-mask1" fill="#fff"><use href="#Hoodie-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Hoodie-path1"></use><path id="Straps" fill="#F4F4F4" d="M102 61.74V110h-7V58.15a65 65 0 0 0 7 3.59m67-3.59V98.5a3.5 3.5 0 1 1-7 0V61.74a65 65 0 0 0 7-3.59" mask="url(&#39;#Hoodie-mask1&#39;)"></path><path id="Shadow" fill="#000" d="M90.96 12.724C75.91 15.571 65.5 21.243 65.5 32.308 65.5 52.02 98.538 68 132 68s66.5-15.98 66.5-35.692c0-11.065-10.41-16.737-25.46-19.584 9.085 3.35 14.96 8.982 14.96 18.353C188 51.469 160.179 68 132 68S76 51.469 76 31.077c0-9.37 5.875-15.003 14.96-18.353" mask="url(&#39;#Hoodie-mask1&#39;)" opacity=".16"></path></g>',1),w7=[b7];function E7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...w7])}const v7={render:E7},C7=e.createElementVNode("g",{id:"Clothing/Graphic-Shirt",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"GraphicShirt-path1",d:"M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"})]),e.createElementVNode("use",{fill:"#E6E6E6",class:"CustomColor",href:"#GraphicShirt-path1"})],-1),S7=[C7];function B7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...S7])}const V7={render:B7},M7=e.createStaticVNode('<g id="Clothing/Overall" transform="translate(0 170)"><defs><path id="Overall-path1" d="M94 29.688V74h76V29.688a71.5 71.5 0 0 1 26 8.944V110H68V38.632a71.5 71.5 0 0 1 26-8.944"></path></defs><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#Overall-path1"></use><circle id="Button" cx="81" cy="83" r="5" fill="#F4F4F4"></circle><circle id="Button" cx="183" cy="83" r="5" fill="#F4F4F4"></circle></g>',1),N7=[M7];function A7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...N7])}const T7={render:A7},D7=e.createStaticVNode('<g id="Clothing/Shirt-Crew-Neck" transform="translate(0 170)"><defs><path id="ShirtCrewNeck-path1" d="M165.96 29.295c36.976 3.03 66.04 34 66.04 71.757V110H32v-8.948c0-38.1 29.592-69.287 67.045-71.832Q99 29.78 99 30.348c0 11.863 14.998 21.48 33.5 21.48s33.5-9.617 33.5-21.48q0-.53-.04-1.053"></path></defs><mask id="ShirtCrewNeck-mask1" fill="#fff"><use href="#ShirtCrewNeck-path1"></use></mask><use fill="var(--avataaar-shirt-color)" class="CustomColor" href="#ShirtCrewNeck-path1"></use><g id="Shadowy" fill="#000" mask="url(&#39;#ShirtCrewNeck-mask1&#39;)" opacity=".16"><ellipse id="Hola" cx="40.5" cy="27.848" rx="39.635" ry="26.914" transform="translate(92 4)"></ellipse></g></g>',1),L7=[D7];function F7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...L7])}const $7={render:F7},P7=e.createElementVNode("g",{id:"Clothing/Shirt-V-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtVNeck-path1",d:"M171.32 29.936C205.706 35.366 232 65.14 232 101.052V110H32v-8.948c0-35.914 26.294-65.686 60.682-71.116a23.9 23.9 0 0 0 7.554 13.603l29.085 26.229a4 4 0 0 0 5.358 0l29.085-26.229a24 24 0 0 0 1.234-1.196 23.9 23.9 0 0 0 6.322-12.407"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtVNeck-path1"})],-1),O7=[P7];function _7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...O7])}const R7={render:_7},H7=e.createElementVNode("g",{id:"Clothing/Shirt-Scoop-Neck",transform:"translate(0 170)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"ShirtScoopNeck-path1",d:"M181.544 32.33C210.784 41.488 232 68.792 232 101.052V110H32v-8.948c0-32.655 21.739-60.232 51.534-69.05A18 18 0 0 0 83 36.348c0 16.281 22.162 29.48 49.5 29.48S182 52.629 182 36.348c0-1.363-.155-2.704-.456-4.018"})]),e.createElementVNode("use",{fill:"var(--avataaar-shirt-color)",class:"CustomColor",href:"#ShirtScoopNeck-path1"})],-1),z7=[H7];function j7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...z7])}const G7={render:j7},q7={BlazerShirt:u7,CollarSweater:x7,BlazerSweater:p7,Hoodie:v7,GraphicShirt:V7,Overall:T7,ShirtCrewNeck:$7,ShirtVNeck:R7,ShirtScoopNeck:G7},I7=e.createStaticVNode('<g id="Top"><defs><path id="Eyepatch-path1" d="M0 0h264v280H0z"></path></defs><mask id="Eyepatch-mask1" fill="#fff"><use href="#Eyepatch-path1"></use></mask><g id="Top/Accesories/Eyepatch" mask="url(&#39;#Eyepatch-mask1&#39;)"><path fill="#28354B" d="M159.395 39.781c-3.077-3.088-6.276 3.858-7.772 5.647-3.61 4.32-7.083 8.755-10.755 13.024-7.252 8.43-14.429 16.922-21.634 25.388-1.094 1.286-.961 1.425-2.397 1.549-.951.082-2.274-.409-3.263-.463-2.75-.151-5.462.309-8.138.897-5.345 1.173-11.01 3.106-15.647 6.075-1.217.78-2.002 1.7-3.322 1.943-1.149.212-2.673-.211-3.845-.322-2.08-.195-5.084-1.046-7.127-.605-2.592.56-3.578 3.697-.935 5.086 2.01 1.056 6.01.476 8.264.645 2.573.192 1.788.06 1.423 2.52-.523 3.533.352 7.481 1.842 10.713 3.46 7.505 13.034 15.457 21.766 14.725 7.287-.61 13.672-7.19 16.664-13.503 1.532-3.231 2.436-6.908 2.731-10.472.189-2.266.084-4.67-.566-6.865-.321-1.085-.83-2.208-1.376-3.193-.442-.799-2.4-2.65-2.52-3.453-.232-1.557 4.185-5.73 5.028-6.773 3.973-4.916 7.964-9.812 11.906-14.755 3.881-4.869 7.784-9.725 11.768-14.51 1.804-2.17 10.828-10.364 7.905-13.298" class="CustomColor"></path></g></g>',1),W7=[I7];function U7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...W7])}const Z7={render:U7},Y7=e.createStaticVNode('<g id="Top"><defs><path id="LongHairMiaWallace-path1" d="M0 0h264v280H0z"></path><path id="LongHairMiaWallace-path2" d="M148.86 69q.14 1.982.14 4v38c0 22.34-13.08 41.623-32 50.611v8.706c18.146 1.499 35.721 4.018 46 6.683 9.953-13.56 22.885-26.2 23-51 .085-18.985-27.676-95.572-40-111-8.138-10.188-28.695-13.55-53-14S48.923 6.509 41 16C30.319 28.795-.085 107.015 0 126c.116 24.8 13.048 37.44 23 51 10.279-2.665 27.854-5.184 46-6.683v-8.706C50.08 152.623 37 133.339 37 111V73q0-2.018.14-4h28.234l3.879-21.444L72.058 69h76.801Z"></path></defs><mask id="LongHairMiaWallace-mask1" fill="#fff"><use href="#LongHairMiaWallace-path1"></use></mask><g id="Top/Long-Hair/Mia-Wallace" mask="url(&#39;#LongHairMiaWallace-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M69.033 76.213q19.407-49.626 41.025-49.626c.539 0 29.253-.238 48.055-.36C178.767 35.585 193 55.304 193 78.115V93h-82.942l-2.805-23.18-3.88 23.18H69V78.115q0-.955.033-1.902" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairMiaWallace-path2" transform="translate(40 19)"></use></g></g></g>',1),X7=[Y7];function K7(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...X7])}const Q7={render:K7},J7=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortCurly-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortCurly-path1" d="M94.252 52.022q.185-.081-.916-.062 1.338-.003.916.062m-8.135-15.72c-.002-.02.017.15 0 0m107.648 34.464c-.264-3.317-.732-6.614-1.518-9.855-.625-2.576-1.478-5.033-2.487-7.491-.61-1.485-2.032-3.524-2.2-5.126-.165-1.577 1.067-3.325 1.33-5.162a16 16 0 0 0-.156-5.438c-.833-4.023-3.594-7.764-7.857-8.813-.952-.234-2.964.055-3.636-.5-.771-.635-1.308-2.8-2.006-3.669-1.99-2.476-5.095-4.07-8.37-3.514-2.41.409-1.026.907-2.833-.512-1.005-.788-1.756-1.993-2.732-2.847-1.467-1.283-3.15-2.38-4.892-3.282-4.557-2.358-9.754-4.072-14.844-4.908-9.285-1.524-19.195-.195-28.195 2.22-4.479 1.201-8.987 2.726-13.147 4.743-1.783.864-2.813 1.582-4.673 1.808-2.928.357-5.409.339-8.183 1.581-8.536 3.822-12.381 12.689-9.06 21.174a14.6 14.6 0 0 0 2.82 4.584c1.521 1.68 2.072 1.35.762 3.282a53 53 0 0 0-4.955 9.172c-3.529 8.402-4.12 17.864-3.89 26.824.081 3.137.216 6.313.71 9.42.214 1.344.274 3.872 1.282 4.87.512.506 1.241.788 1.969.587 1.71-.474 1.121-1.735 1.161-2.906.2-5.884-.07-11.089 1.33-16.902 1.033-4.294 2.755-8.195 4.988-12.035 2.838-4.884 5.903-9.173 9.807-13.355.917-.984 1.118-1.4 2.349-1.472.932-.054 2.295.584 3.2.805 1.999.487 4 .968 6.034 1.296 3.74.603 7.444.644 11.217.525 7.426-.232 14.885-.753 22.085-2.623 4.782-1.242 9.022-3.47 13.602-5.105.082-.029 1.23-.847 1.43-.814.282.047 1.978 1.826 2.264 2.05 2.226 1.746 4.667 2.479 7.07 3.83 2.964 1.667.094-.718 1.728 1.359.477.605.72 1.726 1.103 2.411a18.1 18.1 0 0 0 4.93 5.624c1.956 1.47 4.894 2.18 5.891 4.095.769 1.477 1.028 3.484 1.648 5.06 1.628 4.136 3.777 7.992 5.926 11.887 1.732 3.14 3.625 5.881 3.818 9.468.067 1.248-1.121 8.737 1.773 6.46.429-.338 1.353-4.156 1.543-4.804.772-2.633 1.046-5.381 1.395-8.086.694-5.38.923-10.498.47-15.916"></path></defs><mask id="ShortHairShortCurly-mask2" fill="#fff"><use href="#ShortHairShortCurly-path2"></use></mask><g id="Top/Short-Hair/Short-Curly" mask="url(&#39;#ShortHairShortCurly-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortCurly-path1" transform="translate(-1)"></use></g></g>',1),e8=[J7];function t8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...e8])}const n8={render:t8},a8=e.createStaticVNode('<g id="Top"><defs><path id="Hat-path2" d="M0 0h264v280H0z"></path><path id="Hat-path1" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92a55.8 55.8 0 0 0-4.638-22.35C173.435 53 89.312 53.802 80.71 69.484A55.8 55.8 0 0 0 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path></defs><mask id="Hat-mask1" fill="#fff"><use href="#Hat-path2"></use></mask><g id="Top/Accesories/Hat" mask="url(&#39;#Hat-mask1&#39;)"><g transform="translate(-1)"><g id="Hat" transform="translate(1)"><mask id="Hat-mask2" fill="#fff"><use href="#Hat-path1"></use></mask><path fill="var(--avataaar-top-color)" d="M123.182 2h18.636c18.791 0 35.049 13.08 39.072 31.436L190 75H75l9.11-41.564C88.133 15.08 104.39 2 123.182 2" mask="url(&#39;#Hat-mask2&#39;)" style="fill-opacity:.6;"></path><ellipse id="Hipster" cx="132" cy="87.5" fill="var(--avataaar-top-color)" mask="url(&#39;#Hat-mask2&#39;)" rx="122" ry="57.5"></ellipse><ellipse id="Hipster" cx="132" cy="87.5" fill="#2e2e2e" mask="url(&#39;#Hat-mask2&#39;)" rx="122" ry="57.5" style="fill-opacity:.1;"></ellipse><ellipse id="Very" cx="132" cy="82" fill="var(--avataaar-top-color)" mask="url(&#39;#Hat-mask2&#39;)" rx="62" ry="25"></ellipse><ellipse id="Very" cx="132" cy="82" fill="#2e2e2e" mask="url(&#39;#Hat-mask2&#39;)" rx="62" ry="25" style="fill-opacity:.5;"></ellipse></g></g></g></g>',1),o8=[a8];function r8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...o8])}const i8={render:r8},s8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairNotTooLong-path1" d="M0 0h264v280H0z"></path><path id="LongHairNotTooLong-path2" d="M59 102.34V182a8 8 0 0 0 8 8h42v-9.389c-17.53-8.328-30.048-25.496-31.791-45.744C71.43 134.002 67 129.02 67 123v-13c0-3.49 1.49-6.633 3.87-8.826 11.539-2.619 24.1-7.536 36.472-14.679 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762c10.256 23.035 27.874 39.36 45.762 44.745.513 2.11.794 4.08.794 5.597v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V190h18c17.673 0 32-14.327 32-32v-54.125q0-.1-.028-.26-.216-18.391-.612-21.39C201.577 45.977 170.556 18 133 18c-36.085 0-66.137 25.828-73 60-5.523 0-10 5.596-10 12.5 0 4.55 1.695 8.643 4.853 10.773.905.61 2.47.925 4.147 1.067"></path></defs><mask id="LongHairNotTooLong-mask1" fill="#fff"><use href="#LongHairNotTooLong-path1"></use></mask><g id="Top/Long-Hair/Long-but-not-too-long" mask="url(&#39;#LongHairNotTooLong-mask1&#39;)"><g transform="translate(-1)"><use id="Behind" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairNotTooLong-path2"></use><g id="Top" opacity=".16" transform="translate(50 18)"><path id="Combined-Shape" fill="#FFF" d="M11.899 84.775c13.812-1.76 29.78-7.237 45.443-16.28 12.131-7.004 22.502-15.237 30.479-23.743q-5.14 11.862-12.449 20.783 19.013-8.285 25.892-26.639.565 1.383 1.18 2.762C114.382 68.471 136.296 86.194 157 88.151V74c0-40.87-33.13-74-74-74-36.085 0-66.137 25.828-72.679 60.006A8 8 0 0 0 10 60C4.477 60 0 65.596 0 72.5c0 6.482 3.947 11.811 9 12.438v.155q.474-.044.953-.093a8.2 8.2 0 0 0 1.946-.225"></path></g></g></g></g>',1),l8=[s8];function c8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...l8])}const d8={render:c8},u8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortFlat-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortFlat-path1" d="M180.15 39.92c-2.76-2.82-5.964-5.213-9.08-7.613-.688-.53-1.387-1.046-2.06-1.595-.152-.125-1.718-1.246-1.905-1.659-.451-.993-.19-.22-.128-1.404.079-1.498 3.134-5.73.854-6.7-1.003-.427-2.791.709-3.753 1.084a60 60 0 0 1-5.731 1.9c.932-1.857 2.708-5.574-.631-4.579-2.602.775-5.026 2.768-7.64 3.705.865-1.417 4.324-5.811 1.198-6.057-.972-.076-3.803 1.748-4.85 2.138-3.137 1.165-6.34 1.92-9.634 2.513-11.198 2.018-24.293 1.442-34.653 6.54-7.988 3.93-15.874 10.029-20.489 17.795-4.447 7.485-6.11 15.676-7.041 24.253-.683 6.295-.739 12.802-.42 19.119.105 2.07.338 11.61 3.345 8.721 1.498-1.44 1.487-7.253 1.864-9.22.751-3.916 1.474-7.848 2.726-11.638 2.206-6.68 4.809-13.793 10.305-18.393 3.527-2.952 6.004-6.941 9.379-9.919 1.516-1.337.36-1.198 2.797-1.022 1.638.117 3.282.162 4.923.205 3.796.099 7.598.074 11.395.087 7.647.028 15.258.136 22.898-.265 3.395-.177 6.799-.274 10.185-.588 1.891-.175 5.247-1.387 6.804-.461 1.425.847 2.905 3.615 3.928 4.748 2.418 2.679 5.3 4.724 8.126 6.92 5.895 4.58 8.87 10.332 10.66 17.488 1.784 7.13 1.284 13.745 3.491 20.762.389 1.233 1.416 3.36 2.682 1.454.235-.354.175-2.3.175-3.42 0-4.52 1.144-7.91 1.13-12.46-.056-13.832-.504-31.868-10.85-42.439"></path></defs><mask id="ShortHairShortFlat-mask2" fill="#fff"><use href="#ShortHairShortFlat-path2"></use></mask><g id="Top/Short-Hair/Short-Flat" mask="url(&#39;#ShortHairShortFlat-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortFlat-path1" transform="translate(-1)"></use></g></g>',1),m8=[u8];function f8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...m8])}const h8={render:f8},p8=e.createStaticVNode('<g id="Top"><defs><path id="Hijab-path1" d="M0 0h264v280H0z"></path><path id="Hijab-path2" d="M66.042 77.075C71.68 45.205 99.513 21 133 21c37.555 0 68 30.445 68 68v30.751q1.313 14.705 2.456 20.603c1.377 7.104 5.694 4.761 5.694 14.866s-4.328 13.5-4.347 22.485c-.019 8.986 15.397 16.131 15.397 27.538s-7.074 65.233-77.622 65.233q-22.605 0-38.51-12.862Q105.091 267.349 106 280H59c.932-23.771-7.284-37.064-7.284-63.554S65.353 151.428 65 142q.03-.873.062-2.068A69 69 0 0 1 65 137V89c0-3.976.341-7.872.996-11.661L66 77zM132.5 53C102.4 53 78 77.4 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23c0-30.1-24.4-54.5-54.5-54.5z"></path></defs><mask id="Hijab-mask1" fill="#fff"><use href="#Hijab-path1"></use></mask><g id="Top/Accesories/Hijab" mask="url(&#39;#Hijab-mask1&#39;)"><g transform="translate(-1)"><mask id="Hijab-mask2" fill="#fff"><use href="#Hijab-path2"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Hijab-path2"></use><path id="Band" fill="#FFF" stroke="none" d="M72.074 104.96A61.4 61.4 0 0 1 71 93.5C71 59.534 98.758 32 133 32s62 27.534 62 61.5c0 3.916-.369 7.747-1.074 11.46C192.34 72.683 165.67 47 133 47s-59.341 25.683-60.926 57.96" mask="url(&#39;#Hijab-mask2&#39;)" opacity=".5"></path><path id="Shadows" fill="#000" stroke="none" d="M187.93 104.695A55 55 0 0 1 189 115.5v23c0 30.1-24.4 54.5-54.5 54.5h-3c-30.1 0-54.5-24.4-54.5-54.5v-23c0-3.7.369-7.312 1.07-10.805Q78 106.089 78 107.5v23c0 30.1 24.4 54.5 54.5 54.5h1c30.1 0 54.5-24.4 54.5-54.5v-23q0-1.41-.07-2.805m-73.763 102.3c6.484 4.986 21.496 6.713 38.238 3.761 16.74-2.951 30.257-9.71 34.645-16.612q.102.379.171.767c1.71 9.695-13.236 20.434-33.38 23.987-20.146 3.552-37.863-1.428-39.573-11.123a9 9 0 0 1-.101-.78m11.868 28.926c8.192 5.654 24.387 5.923 41.069-.149s28.915-16.687 31.556-26.284q.215.48.396.98c4.527 12.436-8.077 28.441-28.151 35.748s-40.017 3.147-44.544-9.29q-.181-.498-.326-1.005" mask="url(&#39;#Hijab-mask2&#39;)" opacity=".16"></path></g></g></g>',1),g8=[p8];function y8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...g8])}const k8={render:y8},x8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairShavedSides-path2" d="M0 0h264v280H0z"></path><path id="LongHairShavedSides-path3" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="LongHairShavedSides-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><rect id="LongHairShavedSides-path4" width="112" height="150" x="0" y="0" rx="56"></rect></defs><mask id="LongHairShavedSides-mask2" fill="#fff"><use href="#LongHairShavedSides-path2"></use></mask><g id="Top/Long-Hair/Shaved-Sides" mask="url(&#39;#LongHairShavedSides-mask2&#39;)"><g transform="translate(-1)"><g id="Behind" fill="none" transform="translate(1)"><mask id="LongHairShavedSides-mask3" fill="#fff"><use href="#LongHairShavedSides-path3"></use></mask><path fill="var(--avataaar-hair-color)" d="M116.18 40H146c25.405 0 46 20.595 46 46v68.109c0 26.541 18.759 50.24 30.61 71.943s-7.355 42.19-26.84 50.717A38.5 38.5 0 0 1 180.332 280h-45.068c-56.352 0-65.046-63.69-67.566-133.496l2.52-62.36C71.213 59.48 91.497 40 116.179 40Z" class="CustomColor" mask="url(&#39;#LongHairShavedSides-mask3&#39;)"></path></g><g id="Top" fill="none" transform="translate(77 36)"><mask id="LongHairShavedSides-mask1" fill="#fff"><use href="#LongHairShavedSides-path4"></use></mask><path id="Shadow" fill="#000" d="M98.801 19.94C107.027 29.484 112 41.91 112 55.5v10-4c0-15.74-6.672-29.92-17.342-39.87q-46.107 16.57-77.717.378C6.505 31.937 0 45.958 0 61.5v4-10c0-13.607 4.987-26.05 13.233-35.6-3.834-3.04-4.974-11.713 6.234-15.023 11.845-3.499 9.84-18.079 27.99-20.803C65.61-18.65 63.972-11.375 81.03-12.35c17.057-.974 22.607-16.763 25.82-12.724 12.74 16.01 9.572 34.414-8.048 45.014Z" mask="url(&#39;#LongHairShavedSides-mask1&#39;)" opacity=".16"></path></g><path fill="#E0C863" d="M90.878 52.361q33.225 19.299 83.366 0c14.53-7.772 25.087-23.319 8.707-43.398-2.169-2.658-10.707 6.713-27.6 7.687s-13.271-3.3-31.248-.576-15.991 17.304-27.722 20.803c-11.73 3.498-9.803 12.987-5.503 15.484" class="CustomColor"></path></g></g></g>',1),b8=[x8];function w8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...b8])}const E8={render:w8},v8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortRound-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortRound-path1" d="M167.309 35.006c-20.188-11.7-40.18-9.784-55.272-5.976s-24.02 14.621-31.68 30.618c-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677 6.401-8.327 17.482-8.802 26.28-13.384-.764 1.405-3.707 3.68-2.688 5.263.705 1.094 3.37.762 4.643.727 3.349-.092 6.713-.674 10.02-1.147 5.214-.745 10.099-2.255 15.005-4.089 4.016-1.502 8.603-2.892 11.622-6.078 4.87 5.048 11.14 9.795 17.401 13.003 5.618 2.88 14.679 4.318 18.113 10.158 4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153"></path></defs><mask id="ShortHairShortRound-mask2" fill="#fff"><use href="#ShortHairShortRound-path2"></use></mask><g id="Top/Short-Hair/Short-Round" mask="url(&#39;#ShortHairShortRound-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortRound-path1" transform="translate(-1)"></use></g></g>',1),C8=[v8];function S8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...C8])}const B8={render:S8},V8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBigHair-path1" d="M0 0h264v280H0z"></path><path id="LongHairBigHair-path2" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806m-39.501-87.481c-21.52-11.588-39.994-28.18-52.038-47.023C112.764 73.924 76.53 78.535 51.224 94.68A12 12 0 0 0 51 97v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C178.57 121.002 183 116.02 183 110V97q-.001-.853-.116-1.675"></path><path id="LongHairBigHair-path3" d="M222.385 182.806c-5.374 5.712-10.737 9.322-10.554 15.194.317 11.889 43.608 47.051 5.169 69H16.005c-38.439-21.949 4.852-57.111 5.17-69 .182-5.872-5.18-9.482-10.555-15.194C5.247 177.094-.137 169.28.003 155c.941-29.028 31.369-26.412 31.2-46 .169-19-11.39-26.84 0-63C42.84 9.54 72.917.768 116.003.016V0l.5.008.5-.008v.016c43.086.752 73.163 9.523 84.8 45.984 11.388 36.16-.17 44 0 63-.17 19.588 30.258 16.972 31.2 46 .14 14.28-5.245 22.094-10.618 27.806M93 186h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4v-46H93z"></path></defs><mask id="LongHairBigHair-mask2" fill="#fff"><use href="#LongHairBigHair-path1"></use></mask><g id="Top/Long-Hair/Big-Hair" mask="url(&#39;#LongHairBigHair-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBigHair-path2" transform="translate(16 13)"></use><g id="Shadow" fill="none" transform="translate(16 13)"><mask id="LongHairBigHair-mask1" fill="#fff"><use href="#LongHairBigHair-path3"></use></mask><path id="Shadow-Mask" fill="#000" d="M30.099 115.057c-2.374 3.026-5.57 7.471-5.737 7.137 1.873-2.383 3.013-5.182 2.979-8.758.177-18.101-11.904-25.569 0-60.017.669-1.91 1.766-3.715 3.245-5.414-10.343 34.454.783 42.35.617 60.995.02 2.295-.38 4.285-1.104 6.057m172.32-67.052c1.48 1.7 2.577 3.504 3.245 5.414 10.158 29.394 2.852 39.144.6 52.617-.3.805-.069 1.754-.384 2.567-30.673-10.458-58.29-30.043-74.385-52.991-22.784 29.424-73.14 29.761-97.821 55.324.387-.544.754-1.051 1.084-1.49 22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.108-13.833 8.84-23.926.043-53.228" mask="url(&#39;#LongHairBigHair-mask1&#39;)" opacity=".16"></path></g><path id="Light" fill="#FFF" d="M50.758 122.446c22.536-29.919 73.489-29.122 96.088-61.144 15.398 24.088 41.818 44.648 71.163 55.625.301-.854.08-1.85.367-2.694 2.155-14.144 9.144-24.378-.573-55.233-11.637-36.46-41.714-45.232-84.8-45.984l-1-.016c-43.086.768-73.163 9.54-84.8 46-11.39 36.16.169 44 0 63 .032 3.753-1.059 6.691-2.85 9.193.183.402 4.153-5.756 6.405-8.747" opacity=".1"></path></g></g></g>',1),M8=[V8];function N8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...M8])}const A8={render:N8},T8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight-path2" d="M133.506 81.335A12 12 0 0 1 140 92v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744V181h4c17.49 0 33.525 6.237 46 16.608V74c0-20.435-8.283-38.935-21.674-52.326S94.435 0 74 0C33.13 0 0 33.13 0 74v183.716c13.57-1.94 24-13.61 24-27.716v-45.577A72 72 0 0 1 46 181h4v-18.389a56.23 56.23 0 0 1-26-25.365v-61.98c9.147-2.975 18.778-7.249 28.342-12.77 15.403-8.894 28.09-19.555 36.724-30.099a87 87 0 0 0 7.044 15.488c8.768 15.186 21.114 26.349 33.89 32.032v.249q.6.1 1.18.26 1.162.484 2.326.91Z"></path></defs><mask id="LongHairStraight-mask1" fill="#fff"><use href="#LongHairStraight-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url(&#39;#LongHairStraight-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M192.506 99.335c4.869 1.773 9.757 2.737 14.494 2.813V92c0-20.435-8.283-38.935-21.674-52.326C198.717 53.065 207 71.565 207 92v123.608C194.525 205.237 178.49 199 161 199h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13a12 12 0 0 0-6.494-10.665m-2.326-.91a12 12 0 0 0-1.18-.26v-.248q.59.262 1.18.509ZM83 155.246a56.23 56.23 0 0 0 26 25.366V199h-4c-7.673 0-15.065 1.2-22 3.423z" opacity=".24"></path></g></g></g>',1),D8=[T8];function L8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...D8])}const F8={render:L8},$8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShortWaved-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShortWaved-path1" d="M183.68 38.949c5.406-4.95 6.707-14.987 3.638-21.5-3.769-7.995-11.417-8.997-18.746-5.48-6.908 3.315-13.057 4.419-20.622 2.813-7.258-1.541-14.144-4.26-21.647-4.706-12.325-.733-24.3 3.839-32.7 13.053-1.603 1.758-2.894 3.768-4.115 5.805-.976 1.63-2.077 3.38-2.493 5.258-.198.894.17 3.098-.275 3.83-.48.79-2.296 1.515-3.069 2.102-1.567 1.189-2.924 2.53-4.18 4.047-2.666 3.222-4.133 6.587-5.368 10.572-4.102 13.245-4.45 28.998.854 42.004.707 1.734 2.898 5.352 4.186 1.638.255-.734-.334-3.194-.333-3.935.005-2.72 1.506-20.729 8.047-30.817 2.13-3.284 11.973-15.58 13.984-15.68 1.065 1.693 11.88 12.51 39.942 11.242 12.662-.572 22.4-6.26 24.738-8.727 1.028 5.533 12.992 13.816 14.815 17.224 5.267 9.846 6.435 30.304 8.445 30.265s3.453-5.237 3.867-6.23c3.072-7.375 3.595-16.632 3.267-24.559-.427-10.202-4.638-21.226-12.235-28.22Z"></path></defs><mask id="ShortHairShortWaved-mask2" fill="#fff"><use href="#ShortHairShortWaved-path2"></use></mask><g id="Top/Short-Hair/Short-Waved" mask="url(&#39;#ShortHairShortWaved-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShortWaved-path1" transform="translate(-1)"></use></g></g>',1),P8=[$8];function O8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...P8])}const _8={render:O8},R8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBob-path1" d="M0 0h264v280H0z"></path><path id="LongHairBob-path2" d="M38 79.36V111c0 22.34 13.08 41.623 32 50.611v13.135c-19.637 2.688-35.359 7.418-46.615 6.254C9.162 179.53 1.496 150.796 1 126 .383 95.164 29.319 30.795 40 18 47.923 8.509 69.695.55 94 1s46.862 5.812 55 16c12.324 15.428 37.869 74.079 38 109 .094 24.8-9.537 49.66-23 51-11.08 1.103-26.524-1.489-46-3.003v-12.386c18.92-8.988 32-28.272 32-50.611V82.988q-14.282-7.286-25.846-17.647 4.812 7.944 10.46 13.532-40.526-11.37-64.473-38.528Q58.169 65.042 38 79.36"></path></defs><mask id="LongHairBob-mask1" fill="#fff"><use href="#LongHairBob-path1"></use></mask><g id="Top/Long-Hair/Bob" mask="url(&#39;#LongHairBob-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBob-path2" transform="translate(39 19)"></use></g></g></g>',1),H8=[R8];function z8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...H8])}const j8={render:z8},G8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraight2-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraight2-path2" d="M21 157.54V69.047c0-3.532.398-6.971 1.152-10.275C25.205 38.731 36.775 22.811 50 13c19.905-14.76 53.442-19.018 65.047-1.478C123.698 7.681 136.52 11.182 146 20c9.565 9.415 17.2 30.197 12.657 47.204q.158 1.898.158 3.837v21.851A12.01 12.01 0 0 0 149 83.166V83c-6.036-21.536-23.77-31.42-34.57-41.223C97.535 60.673 44.823 60.74 27 98v10c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V166c2.93 43.855-6.642 98.797-69 82 13.606-7.962 20.808-58.944 21-90.46m96 8.071c17.53-8.328 30.048-25.496 31.791-45.744a12.01 12.01 0 0 0 10.024-9.76v1.363a100 100 0 0 0 10.963 45.524l26.949 52.707c6.963 13.619 4.919 29.473-3.936 40.768C189.966 213.289 158.903 184 121 184h-4z"></path><path id="LongHairStraight2-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraight2-mask1" fill="#fff"><use href="#LongHairStraight2-path1"></use></mask><g id="Top/Long-Hair/Straight" mask="url(&#39;#LongHairStraight2-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraight2-path2" transform="translate(40 15)"></use><path id="Shadow" fill="#000" d="M67 113c17.823-32.335 70.535-32.393 87.43-48.792 10.778 8.49 28.462 15.059 34.533 33.66-6.071-21.444-23.755-31.308-34.533-41.09C137.535 75.672 84.823 75.74 67 113" opacity=".16"></path></g></g></g>',1),q8=[G8];function I8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...q8])}const W8={render:I8},U8=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairSides-path1" d="M0 0h264v280H0z"></path><path id="ShortHairSides-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairSides-path3" d="M6 28c-5.076.071-6-1.006-6-5C0 17.344 4.04 6.778 8 2c1.176-2.17 3.619-3.432 3 1-2.66 8.477.417 24.914-5 25m114 0c-5.417-.086-2.34-16.523-5-25-.619-4.432 1.824-3.17 3-1 3.96 4.778 8 15.344 8 21 0 3.994-.924 5.071-6 5"></path></defs><mask id="ShortHairSides-mask2" fill="#fff"><use href="#ShortHairSides-path1"></use></mask><g id="Top/Short-Hair/Sides" mask="url(&#39;#ShortHairSides-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairSides-path3" transform="translate(70 74)"></use></g></g></g>',1),Z8=[U8];function Y8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Z8])}const X8={render:Y8},K8=e.createStaticVNode('<g id="Top"><defs><path id="LongHairBun-path2" d="M0 0h264v280H0z"></path><path id="LongHairBun-path1" d="M114.94 28.337q-1.48.334-2.903.693c-15.092 3.808-24.02 14.621-31.68 30.618-3.761 7.855-5.991 17.143-6.334 25.833-.135 3.412.325 6.934 1.245 10.22.337 1.205 2.155 5.386 2.654 2.008.167-1.125-.442-2.676-.5-3.871-.078-1.569.005-3.157.112-4.723.2-2.928.722-5.8 1.65-8.59 1.328-3.988 3.017-8.312 5.603-11.677C91.188 60.521 95.765 43.206 133 41.671s48.749 25.79 52.183 31.63c4.065 6.914 2.195 15.406 3.436 22.9.472 2.85 1.545 2.786 2.132.237.997-4.33 1.468-8.828 1.151-13.279-.718-10.048-4.405-36.453-24.593-48.153-5.443-3.154-10.87-5.319-16.192-6.723C154.177 25.31 156 21.568 156 17.5 156 7.835 145.703 0 133 0s-23 7.835-23 17.5c0 4.092 1.846 7.857 4.94 10.837"></path></defs><mask id="LongHairBun-mask2" fill="#fff"><use href="#LongHairBun-path2"></use></mask><g id="Top/Long-Hair/Bun" mask="url(&#39;#LongHairBun-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairBun-path1" transform="translate(-1)"></use></g></g>',1),Q8=[K8];function J8(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Q8])}const eu={render:J8},tu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairStraightStrand-path1" d="M0 0h264v280H0z"></path><path id="LongHairStraightStrand-path2" d="M8.461 88.694C8.161 89.744 8 90.854 8 92v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V181h-4c-15.619 0-30.076 4.973-41.875 13.423A73.9 73.9 0 0 1 0 170V74C0 33.13 33.13 0 74 0s74 33.13 74 74v96a73.9 73.9 0 0 1-4.125 24.423C132.076 185.973 117.619 181 102 181h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C135.57 116.002 140 111.02 140 105V92c0-1.69-.349-3.297-.979-4.755-12.956-2.188-27.542-7.476-41.872-15.75-12.132-7.004-22.503-15.237-30.48-23.743q5.14 11.862 12.45 20.783-19.013-8.285-25.892-26.639a100 100 0 0 1-1.18 2.762c-9.84 22.1-26.456 38.024-43.586 44.036"></path><path id="LongHairStraightStrand-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairStraightStrand-mask1" fill="#fff"><use href="#LongHairStraightStrand-path1"></use></mask><g id="Top/Long-Hair/Straight-+-Strand" mask="url(&#39;#LongHairStraightStrand-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairStraightStrand-path2" transform="translate(59 18)"></use><path id="Shadow" fill="#000" d="M59 102.419v6.419c19.945-3.088 40.59-20.448 52.046-46.18q.615-1.38 1.18-2.762 6.008 16.029 21.27 24.378a78 78 0 0 0 4.622 6.261q-19.012-8.285-25.891-26.639a101 101 0 0 1-1.18 2.762C99.59 92.39 78.944 109.75 59 112.838zm148-1.279v9.14c-14.953-.867-33.099-6.535-50.851-16.785-10.273-5.93-19.283-12.743-26.646-19.855a99 99 0 0 1-3.833-7.888c7.976 8.506 18.347 16.74 30.479 23.743 17.752 10.25 35.898 15.918 50.851 16.786z" opacity=".16"></path></g></g></g>',1),nu=[tu];function au(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...nu])}const ou={render:au},ru=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesar-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesar-path2" d="M1 64c.347 1.488 1.673 1.223 2 0-.463-1.554 3.296-28.752 13-36 3.618-2.517 23.008-4.768 42.313-4.754C77.409 23.259 96.42 25.51 100 28c9.704 7.248 13.463 34.446 13 36 .327 1.223 1.653 1.488 2 0 .72-10.298 0-63.726-57-63S.28 53.702 1 64"></path></defs><mask id="ShortHairTheCaesar-mask1" fill="#fff"><use href="#ShortHairTheCaesar-path1"></use></mask><g id="Top/Short-Hair/The-Caesar" mask="url(&#39;#ShortHairTheCaesar-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesar-path2" transform="translate(75 34)"></use></g></g></g>',1),iu=[ru];function su(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...iu])}const lu={render:su},cu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurly-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurly-path2" d="M48.725 89.219A12 12 0 0 0 42 100v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V189h-4q-2.38 0-4.721.152a72 72 0 0 1-13.689-9.103A48 48 0 0 1 48 182c-26.51 0-48-21.49-48-48 0-14.41 6.349-27.335 16.402-36.134A43.8 43.8 0 0 1 8 72c0-21.84 15.911-39.962 36.774-43.41C51.019 11.89 67.12 0 86 0a43.8 43.8 0 0 1 22 5.886A43.8 43.8 0 0 1 130 0c18.88 0 34.981 11.89 41.226 28.59C192.09 32.039 208 50.16 208 72a43.8 43.8 0 0 1-8.402 25.866C209.65 106.665 216 119.591 216 134c0 26.51-21.49 48-48 48-4.72 0-9.281-.681-13.59-1.951a72 72 0 0 1-13.689 9.103A73 73 0 0 0 136 189h-4v-18.389c17.53-8.328 30.048-25.496 31.791-45.744C169.57 124.002 174 119.02 174 113v-13a11.99 11.99 0 0 0-5.476-10.073 24 24 0 0 1-3.235-1.47q-.63-.18-1.289-.291v-.453c-8.68-5.303-17.235-16.538-22.55-30.914C131.312 58.835 119.547 60 107 60c-11.961 0-23.212-1.059-33.02-2.921C68.756 71.064 60.465 82.043 52 87.423v.743a12 12 0 0 0-3.275 1.053"></path></defs><mask id="LongHairCurly-mask1" fill="#fff"><use href="#LongHairCurly-path1"></use></mask><g id="Top/Long-Hair/Curly" mask="url(&#39;#LongHairCurly-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M105.985 27.764C114.013 26.627 122.796 26 132 26c10.358 0 20.183.794 29 2.216C183.451 38.75 199 61.56 199 88v17.044c-11.538-.371-25.169-14.28-32.55-34.245C156.312 72.835 144.547 74 132 74c-11.961 0-23.212-1.059-33.02-2.921-7.304 19.548-20.597 33.223-31.98 33.943V88c0-26.825 16.004-49.913 38.985-60.236" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurly-path2" transform="translate(25 10)"></use></g></g></g>',1),du=[cu];function uu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...du])}const mu={render:uu};function fu(t,n){return e.openBlock(),e.createElementBlock("svg")}const hu={render:fu},pu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairTheCaesarSidePart-path1" d="M0 0h264v280H0z"></path><path id="ShortHairTheCaesarSidePart-path2" d="M82.018 24.378c-7.032-.693-15.36-1.127-23.705-1.132C39.008 23.232 19.618 25.483 16 28 6.296 35.248 2.537 62.446 3 64c-.327 1.223-1.653 1.488-2 0C.28 53.702 1 1.726 58 1s57.72 52.702 57 63c-.347 1.488-1.673 1.223-2 0 .463-1.554-3.296-28.752-13-36-1.76-1.224-7.247-2.39-14.641-3.261L89 16z"></path></defs><mask id="ShortHairTheCaesarSidePart-mask1" fill="#fff"><use href="#ShortHairTheCaesarSidePart-path1"></use></mask><g id="Top/Short-Hair/The-Caesar-+-Side-Part" mask="url(&#39;#ShortHairTheCaesarSidePart-mask1&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairTheCaesarSidePart-path2" transform="translate(75 34)"></use></g></g></g>',1),gu=[pu];function yu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gu])}const ku={render:yu},xu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairCurvy-path1" d="M0 0h264v280H0z"></path><path id="LongHairCurvy-path2" d="M162.831 71.618A57 57 0 0 1 163 76v38c0 22.34-13.08 41.623-32 50.611V183h4c1.524 0 2.038.047 3.539.14-14.913 27.356-18.715 50.434-1.067 64.403 1.698 1.203 2.924 1.786 3.135 1.885 2.373 1.118 4.837 2.34 7.467 2.955 4.623 1.08 9.933-.373 14.557-.953 2.112-.266 4.217-.43 6.346-.436 2.565-.009 5.211.084 7.142 1.697 1.884 1.574 1.644 7.198-3.875 9.833 4.1 1.855 9.012-2.453 10.688-5.177 1.466-2.385 2.594-4.968 3.214-7.605.772-3.283.822-6.725.218-10.014-1.258-6.848-4.176-13.432-6.163-20.122-.732-2.466-1.686-5.165-2.102-7.69-.113-.684-.247-3.215-.141-3.744.078-.393.059-.797 1.415-1.176 3.916-1.096 8.007-2.933 10.852-5.52 3.365-3.058 5.119-7.03 6.533-10.979 2.24-6.252 3.523-12.947 4.113-19.44.122-1.349.191-2.695.215-4.047.015-.817-.085-1.747.008-2.565.153-1.34-.054-.987 1.248-1.874 4.257-2.9 7.58-7.122 9.71-11.37 3.346-6.672 3.782-13.708 1.066-20.467-2.253-5.607-5.827-11.235-11.392-14.846-2.137-1.386-4.392-2.643-6.61-3.93-1.21-.7-4.048-1.615-4.906-2.517-.6-.63.355-3.792.476-4.858.528-4.648-.08-9.157-1.165-13.696-2.394-10.008-12.033-26.149-15.903-35.662-3.325-8.172-8.136-55.3-65.031-55.026C51.69.473 41.419 50.438 33.716 59.774c-8.365 10.138-16.809 29.402-11.113 47.262-5.504 6.922-18.058 17.008-21.218 27.09-1.982 6.325-1.897 13.37.644 19.507 1.437 3.471 3.496 6.618 5.911 9.64 2.117 2.646 4.468 5.15 6.518 7.837 1.237 1.622 1.568 2.02 1.102 4.018-.92 3.94-2.819 7.725-4.466 11.475-2.552 5.81-4.697 11.22-5.014 17.413-.302 5.896 1.324 22.673 18.261 32.56a63 63 0 0 0 6.042 3.11c-1.09-3.396.146-15.524 2.343-20.032.56 1.55 1.511 3.043 2.536 4.398 1.6 2.115 5.374 7.409 10.147 7.655-1.937-2.984-4.02-4.998-4.624-8.598 3.977 1.96 9.634 3.747 14.262 3.582 3.404-.12 8.424-1.82 10.953-3.943-8.372 1.327-16.321-1.433-19.518-7.329-.667-1.23-1.174-2.52-1.468-3.86-.417-1.9-1.076-4.944-.191-6.697.215-.426.566-.86.984-1.29l-.197-.235c5.694-4.787 12.84-12.404 16.665-17.97q.106-.183.21-.367h.04l.085-.126A72.2 72.2 0 0 1 79 183h4v-18.389C64.08 155.623 51 136.339 51 114V76c0-2.463.159-4.888.467-7.267 3.942-1.263 7.898-2.455 11.932-3.528 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 2.503 2.279 7.226 4.024 10.574 5.905"></path></defs><mask id="LongHairCurvy-mask1" fill="#fff"><use href="#LongHairCurvy-path1"></use></mask><g id="Top/Long-Hair/Curvy" mask="url(&#39;#LongHairCurvy-mask1&#39;)"><g transform="translate(-1)"><path id="Top-Shadow" fill="#000" d="M100.9 42.465c-9.798 6.007-18.514 13.862-24.313 22.895-2.762 4.303-5.034 8.84-7.15 13.398a136 136 0 0 0-2.961 6.931c-.587 1.47-1.487 3.056-.64 4.599.517-.302.713-.194.388.347 2.692.734 6.434-1.335 8.767-2.099 4.763-1.56 9.53-3.033 14.408-4.331 4.456-1.186 14.399-3.114 18.29-4.01l2.736-2.98 1.063 1.955c2.158-.166 14.078-1.957 14.078-1.957l1.33-3.223c1.717 1.763 2.939 2.679 2.939 2.679 2.556-.209 13.653-.458 16.285-.426 0 0 7.34.258 9.12.328l1.668-.638.548 1.077c1.454.591 10.243 3.59 11.978 4.128l2.547-.906c1.12 2.694 3.94 2.354 6.276 4.481 3.092 2.814 9.569 4.816 12.66 7.263 1.108.876 2.143 1.792 3.183 2.726 1.156 1.037.985 1.188 1.36 2.378.113.356 1.256 2.199 1.743 2.35 1.733.536-10.154-30.486-13.417-34.453-3.368-4.094-25.211-31.654-54.174-30.752" opacity=".16"></path><g id="Hair" fill="none" transform="translate(26 16)"><mask id="LongHairCurvy-mask2" fill="#fff"><use href="#LongHairCurvy-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairCurvy-path2"></use><path id="Shadow" fill="#000" d="M62.68 184.462c7.075-9.707-.531-36.675-6.552-46.661q25.256-11.495 99.746 4.247-7.192 13.279-5.868 23.71-6.806 8.363-11.246 17.383l-34.871 8.606q-33.054 3.98-41.21-7.285Z" mask="url(&#39;#LongHairCurvy-mask2&#39;)" opacity=".24"></path></g><path id="Lights" fill="#FFF" d="M79.04 170.094c-.059-.201-.205-.427-.405-.665q.205.331.405.665m-22.63-49.719a88.6 88.6 0 0 0 4.456 18.002c2.062 5.721 4.42 11.46 7.813 16.69 3.161 4.876 6.924 9.425 9.956 14.362-.797-.948-2.472-2.1-3.114-2.778a50 50 0 0 1-2.984-3.458c-1.923-2.443-3.637-5-5.294-7.583-3.252-5.073-5.69-10.576-7.803-16.08-4.15-10.807-8.313-23.913-4.666-35.33-.282.735.459 2.488.575 3.297.204 1.414.386 2.837.478 4.26.185 2.883.184 5.749.583 8.618m12.445 44.666c-1.358-1.731-3.881-3.097-5.442-4.762-1.415-1.51-2.511-3.2-3.506-4.94-2.255-3.94-3.737-7.964-4.217-12.37.11.523.918 1.427 1.173 1.856a85 85 0 0 1 1.788 3.124c1.097 2.04 2.013 4.15 3.122 6.187 2.038 3.74 4.63 7.36 7.082 10.905m4.677 18.458c1.115 1.962 2.04 3.966 2.625 6.102a42 42 0 0 1 .77 3.413c.07.369.082 1.696.258 2.27-2.215-4.291-3.905-8.835-6.543-12.942-2.604-4.054-5.947-7.781-9.446-11.281-3.695-3.695-7.41-7.182-9.392-11.847-1.725-4.06-2.391-8.218-1.99-12.556.002 1.911 1.757 4.622 2.363 6.469.83 2.527 1.489 5.105 2.737 7.507 2.126 4.089 5.959 7.243 9.165 10.688 3.553 3.816 6.946 7.762 9.453 12.177m-14.303-9.32a22 22 0 0 1 2.806 3.275c.898 1.285 1.556 2.636 2.145 4.05.507 1.217.73 3.482 1.527 4.498-2.578-3.146-5.233-6.117-7.011-9.69-.607-1.222-1.548-3.023-2.243-4.495.231.593 2.253 1.86 2.776 2.362m-10.326 6.349c2.838 4.25 6.548 8.081 8.974 12.528 2.83 5.187 4.075 10.807 4.326 16.54.119 2.711.112 5.465-.253 8.168-.196 1.448-.51 2.886-.869 4.312-.136.54-.84 1.926-.977 2.77-.29-10.54 1.454-21.082-4.027-30.903-2.596-4.65-6.586-8.616-9.679-13.018-2.782-3.959-5.498-7.841-7.713-12.074 1.356 1.716 3.8 3.065 5.316 4.769 1.899 2.134 3.348 4.58 4.902 6.908m11.2 44.319c-.032.204-.033.377.014.5l-.013-.5Zm-9.543-22.353c.001.496.816 1.518 1.04 2.035.52 1.209.946 2.478 1.157 3.76.418 2.529-.13 5.14-1.067 7.561-1.9 4.907-4.874 9.253-8.613 13.3 1.335-1.748 1.867-4.589 2.806-6.538.965-2 2-3.97 2.85-6.011 1.92-4.605 1.75-9.311 1.827-14.107M41.917 221.2c.401-.548.193-3.183.405-3.872.392-1.273 1.07-2.502 1.849-3.635-.416.699.198 2.466-.005 3.373-.332 1.489-1.17 2.932-2.249 4.134m57.69-178.453a.9.9 0 0 0-.239.297zm-14.76 21.584c1.42-1.246 2.177-4.19 3.156-5.78 1.125-1.825 2.418-3.579 3.645-5.356 2.432-3.524 4.726-6.984 7.72-10.19-.622.934-1.173 3.768-1.514 4.513a34.6 34.6 0 0 1-3.221 5.605c-2.86 4.044-5.93 7.803-9.786 11.208m-.535-10.21c.75-1.327 1.894-2.448 3.18-3.414-.573.503-.831 2.575-1.225 3.275-.795 1.412-1.953 2.63-3.196 3.772.664-.582.772-2.803 1.24-3.633Zm119.194 98.006-.041.31c-.002-1.525-.68-3.2-.76-4.769-.113-2.19.202-4.315 1.082-6.392 1.74-4.101 5.003-7.207 9.164-9.638-1.145.674-2.267 3.213-3.001 4.268-1.103 1.586-2.282 3.187-3.214 4.85-1.943 3.469-2.506 7.618-3.23 11.371m-1.508-21.646a23 23 0 0 1-.989 3.626c-.474 1.279-1.093 2.523-1.783 3.728-.43.75-1.98 2.327-1.978 3.157-.083-4.898 1.728-9.335 5.172-13.257-.378.657-.283 2.03-.422 2.746m-.801 35.238c3.656-.517 7.105 1.261 9.421 3.551 1.238 1.224 2.338 2.63 3.065 4.133.547 1.13.546 2.983 1.28 3.92-1.797-2.419-4.076-4.373-6.324-6.464-1.564-1.455-4.688-5.181-7.442-5.14m-.778 10.377c-.192-.065-1.934-.558-2.337-.32.597-.267 1.33-.592 1.987-.679 4.284-.569 9.492 3.141 10.067 6.721-.478-1.226-3.025-2.24-4.176-2.85-1.823-.967-3.564-2.137-5.541-2.872m1.809 7.811c.742.182 2.32 1.176 3.047 1.165-2.929.07-5.572-.255-8.391-.914.152.041 1.759-.456 1.811-.463 1.215-.172 2.357-.076 3.533.212m-11.345 13.857c4.288-.242 9.336.384 13.431 1.417a22.3 22.3 0 0 1 5.692 2.295c1.414.814 3.93 1.932 4.876 3.137-3.74-6.452-11.85-9.803-20.16-8.14-1.107.222-2.808 1.276-3.84 1.291Zm-.96 12.433c2.688-.965 5.661-1.894 8.583-2.029 2.771-.127 5.845.29 8.41 1.173-.883-.24-2.993.332-3.92.437-1.297.147-2.596.299-3.896.418a52 52 0 0 1-4.801.222c-1.14-.002-3.32-.54-4.376-.221M179.46 227.41c.253 3.972 2.552 7.434 5.931 10.08 3.583 2.805 8.379 4.082 10.98 7.829 1.267 1.825 1.943 3.95 1.834 6.098-.056 1.106-.334 2.218-.635 3.294-.197.708-.902 1.868-.901 2.559.031-3.887.084-8.412-2.636-11.673-2.731-3.274-7.493-4.427-10.829-7.115-3.278-2.642-5.765-6.094-6.325-9.985-.452-3.144-.23-8.626 3.03-10.76-.662.39-.53 2.374-.547 2.931a74 74 0 0 0 .098 6.742m-2.453 15.262c.396.52 2.57 1.151 3.208 1.51 1.456.817 2.865 1.746 4.02 2.877 2.317 2.266 3.81 5.445 3.918 8.494 0-.72-1.646-2.457-2.109-3.073-.768-1.022-1.635-1.969-2.518-2.917-2.154-2.31-4.39-4.564-6.52-6.891Zm52.162-88.882c1.204 1.05 2.01 2.357 2.675 3.709 1.53 3.12 1.815 6.717.589 10 .203-.704-.401-2.184-.571-2.898-.373-1.563-.955-3.04-1.563-4.542-1.18-2.916-2.134-5.648-4.184-8.202.53.668 2.328 1.3 3.054 1.933M171.51 41.983c0 .332.917 1.293 1.123 1.654.517.902.924 1.849 1.064 2.855.158 1.142-.035 2.259-.381 3.369-.206.66-1.184 1.934-1.184 2.528-.16-3.498-.933-6.86-.622-10.406m7.637 6.822c.165 1.243-.24 2.644-.964 3.742.132-.31-.454-2.383-.473-2.762-.059-1.173.07-2.38.146-3.552.001.64 1.183 1.763 1.291 2.572m-60.77 1.568a35 35 0 0 1-4.15 4.243c-1.023.89-2.984 1.89-3.764 2.91 3.501-5.711 7.546-10.638 12.302-15.63-.716.92-.903 2.916-1.428 3.993-.774 1.587-1.81 3.076-2.96 4.484m5.898 2.479c.57-.336 1.104-1.993 1.538-2.55a17 17 0 0 1 2.578-2.63c-.205.22-.602 2.044-.825 2.402-.723 1.16-2 2.107-3.29 2.778Z" opacity=".6"></path></g></g></g>',1),bu=[xu];function wu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bu])}const Eu={render:wu},vu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads01-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads01-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads01-path3" d="M185.832 73.929c1.757.988 3.148 10.899 3.216 14.689.042 2.338.08 11.256-2.394 10.485-.753-.235-1.902-4.956-2.066-7.719s-1.733-12.164-4.141-16.49c-.55-.988-2.126-2.723-1.445-3.56.844-1.036 1.664-.434 2.695-.02 1.115.45 3.937 2.504 4.135 2.615m.805-2.972c-.746.962-5.841-1.74-7.966-2.913-17.845-9.86-21.31-12.995-49.425-12.586-28.116.409-47.379 13.582-48.462 14.93-.754.937-1.716 3.44-2.508 10.413-.791 6.972.22 19.477-2.646 19.462-2.438-.013-2.97-23.786-1.916-33.217.161-1.448.784-4.038.333-5.34-.394-1.138-2.322-1.135-2.014-3.03.35-2.159 2.525-1.087 3.473-2.119 1.795-1.954-.974-2.417-1.433-4.126-.682-2.542 1.29-3.197 3.067-4 1.966-.887 1.71-.108 3.306-1.846-2.131-1.563-2.902-3.691.016-4.833 1.24-.485 4.465.157 5.436-.572.253-.19.353-1.28.51-1.502 1.55-2.219 1.168-3.825 1.01-6.316-.129-2.038-.112-3.909 2.329-4.112 1.628-.136 2.952 1.194 4.411 1.586 1.619.435 1.01.752 2.279-.121 2.226-1.533.711-4.52 2.476-6.303 2.423-2.446 4.01 1.14 5.956 1.41 4.222.588 2.867-3.7 5.367-5.272 2.988-1.876 3.277 2.251 5.143 2.398 1.617.127 4.529-2.993 5.938-3.575 4.183-1.726 6.255 3.13 10.237 2.511 2.89-.45 3.67-.816 6.277.828 2.53 1.595 3.132.454 5.998.432 2.025-.016 3.265 1.676 4.959 1.853.844.088 1.653-.792 2.56-.737 3.237.197 3.442 4.383 6.014 5.536 2.35 1.053 5.112-.427 7.445-.7 5.69-.668 1.793 4.647 1.954 7.819 2.233.52 4.5-1.564 6.724-1.18 3.502.604 2.18 4.233 1.368 6.68 2.427-.044 8.76-2.737 10.332.707.81 1.776-1.078 4.147-1.047 5.952.043 2.542 1.91 4.645 2.571 7.05.892 3.247 2.163 11.95-.072 14.833"></path></defs><mask id="ShortHairDreads01-mask2" fill="#fff"><use href="#ShortHairDreads01-path1"></use></mask><g id="Top/Short-Hair/Dreads-01" mask="url(&#39;#ShortHairDreads01-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads01-path3" transform="translate(1)"></use></g></g></g>',1),Cu=[vu];function Su(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Cu])}const Bu={render:Su},Vu=e.createStaticVNode('<g id="Top"><defs><path id="Turban-path1" d="M0 0h264v280H0z"></path><path id="Turban-path2" d="M156 180.611c17.53-8.328 30.048-25.496 31.791-45.744C193.57 134.002 198 129.02 198 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-30.928-25.072-56-56-56S76 61.072 76 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744V199h-4c-39.765 0-72 32.235-72 72v9h200v-9c0-39.765-32.235-72-72-72h-4zM0 0h264v280H0z"></path><path id="Turban-path3" d="M83.972 55.817C107.404 69.414 145.115 82.111 139 138q29.066-8.46 29-46.676C167.918 44.148 115.85 0 86 0q-1.012 0-2.008.088A23 23 0 0 0 82 0C52.074 0 .08 44.148 0 91.324Q-.067 130.498 29 138c-6.138-55.889 31.51-68.586 54.972-82.183"></path></defs><mask id="Turban-mask1" fill="#fff"><use href="#Turban-path1"></use></mask><g id="Top/Accesories/Turban" mask="url(&#39;#Turban-mask1&#39;)"><g id="Turban"><path id="Band" fill="#EDECE3" d="M74.53 97.5c-1-2.41-1.53-4.92-1.53-7.5 0-18.225 26.415-33 59-33s59 14.775 59 33c0 2.58-.53 5.09-1.53 7.5C183.398 82.888 159.972 72 132 72S80.602 82.888 74.53 97.5"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#Turban-path3" transform="translate(48 3)"></use><path id="Shadow" fill="#000" d="M48.011 96.012q.555 37.65 28.99 44.988-29.068-7.066-29-43.97 0-.51.01-1.018m104.635-65.544c.744 5.727-.52 12.421-4.646 19.668-11.153 21.43-71.439 21.868-71.666 79.544-.229-61.919 60.471-62.3 71.666-85.136 2.67-4.977 4.141-9.709 4.646-14.076" opacity=".16"></path></g></g></g>',1),Mu=[Vu];function Nu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mu])}const Au={render:Nu},Tu=e.createStaticVNode('<g id="Top"><defs><path id="LongHairDreads-path1" d="M0 0h264v280H0z"></path><path id="LongHairDreads-path2" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99c-2.764-8.607-2.6-17.934-3.21-26.795-.805-11.68-.112-23.078 2.536-34.578 2.39-10.376 5.824-15.941 13.626-24.255 4.36-4.646 10.905-4.915 17.42-6.564 6.593-1.67 12.611-4.21 16.735-8.99 9.083 10.41 33.354 6.664 42.236 18.01 10.802 13.798 10.923 22.7 12.193 38.643.953 11.951-.528 33.564-.943 46.538A56.24 56.24 0 0 1 141 166.611V185h4c6.636 0 13.062.898 19.163 2.578-2.05 3.174-4.494 6.18-7.051 8.973-3.831 4.188-7.681 8.52-12 12.367-4.941 4.401-9.668 7.597-12.668 13.082-1.358 2.483-3.737 5.094-1.22 7.817 2.3 2.487 5.925 1.975 8.386.175 3.637-2.66 6.338-6.858 9.69-9.915-3.238 5.815-7.742 14.484-5.43 21.005.787 2.217 1.586 2.173 2.802 3.65q2.88.066 2.276 2.606l.54 1.451c1.456 2.594 4.243 4.41 7.78 3.188 11.56-3.994-1.775-21.961 10.953-27.302 2.278 2.83-1.086 10.779-1.177 14.256-.111 4.287.122 14.013 6.642 15.179 8.496 1.52 5.22-6.597 5.555-10.05.39-4.016 2.86-9.312 4.87-12.869-1.222 3.78-3.508 12.154 2.817 13.87 7.317 1.986 6.481-6.586 7.592-10.15.229 5.275 7.045 17.749 13.205 7.896 3.173-5.076 1.009-13.441.66-18.854 4.414 4.56 7.94-1.35 7.84-4.63 1.677 4.752 7.982 18.002 13.57 7.485 3.398-6.395-.226-14.985-2.483-21.16 5.944.52 4.75-5.236 3.864-8.095-1.307-4.222-.61-4.841-.34-9.206 8.25 4.805 7.997-8.234 7.542-11.432-1.146-8.051-7.409-15.261-12.243-22.052-3.466-4.871-9.935-13.352-8.038-19.226 1.957 2.468 6.507 2.442 8.316-.142 1.532-2.188-.091-5.796-.83-7.982-2.021-5.98-6.06-9.844-9.711-14.981-7.108-10.001-6.086-23.133-6.743-34.313-.82-13.949-3.814-27.68-16.48-37.827-6.787-5.437-15.058-9.914-21.37-15.682-1.722-1.573-2.45-3.521-4.066-5.038-1.813-1.701-2.66-1.298-4.158-3.72-2.668-4.315-5.802-8.355-12.25-8.558-4.22-.132-9.556 3.43-13.359 2.909-3.122-.427-5.094-4.879-7.656-6.373-3.966-2.312-6.734-1.414-10.972-.075-6.31 1.994-10.33 2.689-16.755.306C97.69 2.539 93.565-.846 88.402.357c-4.05.945-5.858 4.213-8.244 6.718-2.46 2.586-1.271 1.73-4.87 2.305-3.68.588-6.586 1.122-9.378 3.532-4.512 3.895-1.386 9.955-4.953 13.389-1.925 1.854-5.935 2.737-8.165 4.654-2.434 2.092-4.424 4.635-6.248 7.11-3.551 4.823-5.976 10.079-8.58 15.281-4.843 9.681-9.161 19.671-11.002 30.072-.945 5.347-2.538 10.577-3.512 15.912-.75 4.115-.43 8.622-1.896 12.617-1.74 4.74-5.899 9.096-8.152 13.757-2.988 6.183-4.994 12.115-5.63 18.771-.624 6.544 1.113 12.311 1.879 18.727.443 3.717-.324 4.139-2.88 7.647-1.967 2.7-3.96 5.373-5.225 8.378-2.361 5.615-2.23 11.077 1.879 16.013 2.82 3.388 12.299 6.933 11.523-.618-.36-3.508-4.772-5.095-3.93-9.12.584-2.787 3.425-4.715 6.874-5.577 2.436-.608 3.636-.582 4.735 2.09.996 2.42-.325 7.706-.63 10.25-.123 1.023-.305 1.92-.428 2.867-.868 6.674-1.028 12.815-4.682 18.944-2.244 3.766-6.636 9.073-1.628 12.703 3.959 2.87 10.79 1.121 13.877-1.882 3.256 4.027 2.532 8.423 1.314 12.869-.756 2.76-2.824 6.802.431 9.033 4.408 3.021 11.603-1.738 14.908-4.14 1.91 4.268 3.703 19.827 11.235 10.552 2.198-2.705 5.858-5.344 6.555-8.534 1.156-5.29.326-10.858.804-16.202 2.404 6.997 4.038 9.787 5.51 16.97.884 4.321 1.231 18.82 10.174 16.91 6.88-1.47 2.48-10.524 1.601-14.215-1.683-7.07-2.496-10.063-4.122-17.14 2.533 4.626 4.746 9.371 7.18 14.034 2.39 4.58 13.078 14.027 16.205 10.05 3.127-3.978-4.496-9.645-6.23-14.46-3.609-10.024-7.98-20.006-9.017-30.508-.499-5.049.436-9.712.846-14.703.28-3.41-.141-6.902-.812-10.34"></path></defs><mask id="LongHairDreads-mask2" fill="#fff"><use href="#LongHairDreads-path1"></use></mask><g id="Top/Long-Hair/Dreads" mask="url(&#39;#LongHairDreads-mask2&#39;)"><g transform="translate(-1)"><g id="Hair" transform="translate(16 14)"><mask id="LongHairDreads-mask1" fill="#fff"><use href="#LongHairDreads-path2"></use></mask><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairDreads-path2"></use><path id="Shadows" fill="#000" d="M85.718 185.073A73 73 0 0 1 89 185h4v-18.389a56.22 56.22 0 0 1-26.789-26.99 37 37 0 0 0 1.95 4.888c5.756 11.833 13.257 22.412 16.327 35.08.435 1.798.869 3.633 1.23 5.484m78.445 2.505A72 72 0 0 0 145 185h-4v-18.389a56.24 56.24 0 0 0 25.502-24.404c-.077 2.994-.01 5.972.373 8.849 1.07 8.044 4.001 15.31 2.64 23.58-.744 4.532-2.725 8.875-5.352 12.942" mask="url(&#39;#LongHairDreads-mask1&#39;)" opacity=".24"></path><path id="Highlights" fill="#FFF" d="M49.36 108.248c-.124-2.422-1.98-10.537.329-11.939 2.53-1.537 2.002 7.707 2.028 8.654.044 1.537 1.211 13.135-.927 13.084-2.132-.051-1.347-8.219-1.43-9.799m8.435 57.75c-.009 1.014-1.072.953-1.832.688-.937-.328-.363-2.484-.413-3.191-.13-1.86-1.023-7.338.34-8.873 2.726-3.069 1.916 9.948 1.905 11.376m-25.674 13.163c1.93-.054.144-37.832-2.821-37.79-2.083.03 1.361 37.827 2.821 37.79m2.232 19.355c-2.397 0-1.957 8.462-.545 9.139 2.14 1.025 3.227-9.139.545-9.139m15.237 3.539c.021 1.058-1.179 1.074-1.98.744-.908-.376-.528-3.506-.563-4.2-.114-2.188-2.017-10.672-.286-12.231 1.974-1.778 2.017.173 2.548 1.498 1.564 3.903.197 10.032.28 14.189Zm140.652-79.722c.11 1.463 1.069 11.018-.524 11.746-2.742 1.254-1.561-4.65-1.55-5.413.107-7.437-.969-14.812-1.787-22.21-.155-1.404-2.625-12.224-.816-13.12 2.707-1.342 2.303 2.245 2.458 3.41 1.129 8.468 1.628 17.078 2.22 25.587Zm-3.219 33.254c-2.532-.502-3.858 8.094-2.702 9.016 1.917 1.53 5.35-8.49 2.702-9.016m-.268 37.798c-1.139-.226-9.433 15.733-8.75 16.635 1.299 1.719 12.829-15.82 8.75-16.635m-20.422 7.374c-1.782-.803-9.334 10.75-7.406 11.619 1.748.786 9.561-10.652 7.406-11.62Zm42.092-43.312c-2.15 0-2.055 11.822-.4 12.568 1.711.77 2.942-12.568.4-12.568M178.14 48.844c-.609-.87-7.175-8.62-2.472-7.513 2.291.539 5.448 7.352 6.481 9.41.594 1.183 3.985 6.46.392 6.086-.977-.101-3.59-6.82-4.401-7.983m-23.092-15.488q-1.27.572.042 1.072 1.27-.57-.042-1.072m-84.43 8.13c-2.004 1.844-9.542 12.519-12.125 12.626-4.707.195 4.278-9.025 5.297-10.198.455-.527 2.486-3.092 3.722-3.723 1.261-.643 5.444-.859 3.107 1.295ZM43.255 69.981c-2.183-.43-5.835 10.264-4.56 11.555 1.923 1.95 7.007-11.07 4.56-11.555m24.939 119.011c.412 1.341 4.631 11.08 3.571 12.361-1.621 1.958-2.087-.817-2.617-1.967-1.178-2.555-4.238-8.846-3.746-11.536.477-2.608 2.375-.201 2.792 1.142m-8.207 22.824c-2.295 0-2.03 9.802-.663 10.385 2.116.902 3.478-10.385.663-10.385m161.805-8.37c.137.604 2.054 5.563-.663 4.845-1.562-.413-1.802-4.785-2.201-6.11-1.23-4.086-5.28-9.163-5.632-13.194-.34-3.897 1.84-2.412 3.515.889 2.236 4.407 3.913 8.87 4.981 13.57m-19.702-.495c-2.132-.01-2.235 10.773-.902 11.402 1.864.878 3.621-11.402.902-11.402m6.16-88.297c1.582-.412-3.41-13.325-5.177-13.183-2.695.217 2.776 13.803 5.178 13.183Zm-26.815 56.093q-1.27.57.043 1.071 1.27-.57-.043-1.071m-24.218 55.24c.794 0 1.121-1.223-.051-1.25-.775.006-1.184 1.25.051 1.25M58.684 170.63c.03-1.909-2.469-.51-2.453 1.101.032 3.214 2.4 1.746 2.453-1.101m-6.165-47.746c-.804 0-1.134 1.236.05 1.266.785-.006 1.198-1.266-.05-1.266m-19.132 62.51c-.078-1.941-1.7.043-1.61.046.288.007 1.67 1.417 1.61-.046M37.6 84.063c-2.368 0-2.025 5.754-.514 6.123 2.52.616 2.865-6.123.514-6.123m12.613 124.263c-2.286 0-2.44 7.814-.863 8.3 2.451.754 3.243-8.3.863-8.3m-18.756 5.606q-1.308.587.042 1.103 1.309-.585-.042-1.103m169.999 3.35c-2.32 0-2.23 9.554-.805 10.2 1.99.902 3.488-10.2.805-10.2m-23.51 8.88c-2.411-.482-3.674 7.405-2.55 8.29 1.852 1.459 5.025-7.796 2.55-8.29m-20.48 7.29c-1.998 0-1.508 3.574-.355 4.106 1.994.92 2.583-4.107.354-4.107ZM86.48 19.508c-1.672 0-12.16 4.744-8.24 6.15 2.396.859 12.497-6.15 8.24-6.15" mask="url(&#39;#LongHairDreads-mask1&#39;)" opacity=".3"></path></g></g></g></g>',1),Du=[Tu];function Lu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Du])}const Fu={render:Lu},$u=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairDreads02-path1" d="M0 0h264v280H0z"></path><path id="ShortHairDreads02-path2" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path><path id="ShortHairDreads02-path3" d="M153.503 98.874C157.9 100.654 161 104.965 161 110v13c0 5.288-3.42 9.776-8.168 11.375a55.7 55.7 0 0 1-11.076 29.29c.209.807.41 1.625.556 2.503.55 3.327-.12 6.093 1.645 9.093.457.78 1.183 1.247 1.522 2.144.533 1.415-.232 4.594 1.95 4.595 3.106 0 1.374-5.966.596-7.384-1.525-2.772-2.462-3.45-2.383-7.044 1.745 1.16 7.53 3.376 9.448 2.316 4.432-2.448-6.662-4.936-7.438-5.453 1.704-1.666 3.656-2.55 5.197-4.746 1.26-1.793 2.406-4.397 4.55-4.501 1.186-.058 4.657 2.884 5.71.866.964-1.85-1.115-2.122-1.928-2.777-1.502-1.21-1.84-.006-1.474-2.134 1.085 1.165 2.789.429 3.244-1.015.49-1.559-1.127-2.024-1.097-3.014-.012.387.834-5.115.7-4.938.86-1.135 3.908-.784 5.413-.62 2.296.248 2.164.317 3.255 2.436.882 1.715 3.198 5.178 3.707.641.121-1.085-.869-3.404-1.45-4.338-.627-1.007-2.517-1.643-2.912-2.427-.944-1.87 2.165-6.034 1.639-8.854 1.093.418 3.857 6.927 5.198 1.599.707-2.8-6.505-8.945-3.514-9.894 2.289-.726 4.612 2.225 5.25 4.044.473 1.348.26 4.238 1.068 5.353 3.036 4.203 3.41-2.74 3.157-4.572-.559-4.026-1.984-6.988-5.623-8.51 1.295-1.607-.345-2.887-1.275-3.893 1.528-1.657 11.437.104 9.208-4.327-.538-1.072-2.481-1.262-3.467-1.655-2.49-.992-4.985-3.01-6.257-5.562 1.841-.46 7.28.798 6.565-2.996-.563-2.982-5.403-2.067-7.278-1.61 1.692-1.016 4.973-.174 5.434-2.941.531-3.183-3.288-3.076-5.08-2.402-.422-3.358 5.53-5.83 7.213-8.4.568-.867 1.47-1.164.746-2.633-1.306-2.643-4.68 1.086-5.792 2.09.876-1.628 3.32-8.403 2.95-10.122-.546-2.526-2.353-2.615-3.79-.568-.93 1.33-1.19 4.703-1.68 6.427-2.04-1.537-2.143.246-2.248-2.191-.068-1.58 2.002-4.701 2.532-6.248.456-1.329 1.668-3.76.943-5.046-1.776-3.143-3.473 1.172-3.94 2.652-.789-3.411 2.214-6.057 3.103-9.431.541-2.048 1.976-7.578-.51-8.561-3.394-1.341-2.2 4.956-2.678 7-.365 1.559-.922 4.077-2.139 4.845-.176.111-2.82.343-2.948.193-1.734-2.021 3.038-6.447 3.284-8.351.223-1.73-.44-2.825-2.061-2.929-.81-.051-2.12 1.2-2.495 1.119-1.48-.322.447-7.089.587-8.967.15-2.003-.094-7.172-3.483-4.785.227-2.697.364-5.236.734-7.891.195-1.4 1.398-2.645-.374-3.767-2.156-1.365-3.35 1.492-3.842 3.168-.846 2.885.9 7.375-3.158 7.466-4.665.106-1.444-4.73-1.215-7.868.128-1.74-1.012-6.421-3.262-3.263-.896 1.259-.587 5.694-1.084 7.183-1.106-.493.733-4.515-.23-5.564-2.06-2.247-3.788 1.026-5.099 1.692-.086-1.445-.187-2.891-.248-4.338-.093-2.2 1.255-6.83-.113-8.347-2.337-2.59-3.823.431-4.506 2.523-.613 1.884-.697 3.744-3.233 4 .208-2.717-2.258-8.436-1.035-10.727.553-1.035 1.679-.301 2.179-1.46.821-1.902-.524-2.71-1.986-2.771-6.792-.286-1.562 9.134-3.969 11.491-1.099-1.04.072-2.113-1.065-3.596-1.223-1.595-3.173-1.46-4.918-.738-.056-1.613 2.364-12.92-3.08-7.817-1.352 1.271-.974 3.393-1.693 4.886-.696 1.445-2.39 3.598-3.341 4.771-.51-2.067.272-4.63.82-6.666.38-1.415 2.931-5.805 2.387-7.244-1.58-4.167-6.323 2.72-7.572 3.832-1.582 1.41-7.88 6.045-9.901 4.64-.701-.487-.07-2.29-1.027-3.128-.47-.41-2.477-.6-3.05-.548.358-1.494-.346-3.427-2.055-2.91-2.149.65-1.219 3.838-2.58 5.002-2.53 2.164-5.535-2.112-8.245-1.992.414-1.755 3.485-8.062-1.399-6.144-1.246.49-2.13 3.351-2.44 4.54-.792 3.036-.222 3.593-3.509 4.45.257-1.76-.2-3.948.649-5.521.696-1.289 4.305-4.645.462-5.063-4.74-.516-4.274 7.672-4.855 10.44-4.206-2.549-6.974 1.098-9.48 4.252.447-1.419 1.553-15.557-2.965-11.237-1.292 1.237.138 3.066.05 4.478-.078 1.28-.5 2.422-.995 3.618-.796 1.921-1.72 3.887-2.974 5.524-1.573 2.059-1.015 2.22-2.82.823-2.425-1.873-3.577-6.624-3.457-9.525.09-2.16 1.196-6.548-2.384-5.531-3.507.996-1.649 7.974-1.296 10.453.381 2.687.635 5.436.183 8.173-2.984-3.05-3.42 3.302-4.017 4.385-.98 1.777-2.868 2.647-4.335 3.86-.8-2.794 2.405-5.157 1.77-7.38-1.194-4.165-4.571 1.716-5.313 2.87-.619.963-2.635 6.442-3.365 6.933-1.023.69-7.605-2.527-8.27-3.14-1.223-1.125-.778-4.272-2.316-4.99-4.72-2.197-1.932 5.735-1.005 7.375 2.419 4.284 3.516 9.456 2.949 14.504-.858-.302-1.915-1.312-2.468-2.077-1.076-1.49-.685-3.865-1.808-4.987-3.288-3.28-3.673 2.878-3.406 4.791.5 3.588 2.291 4.75 3.778 7.734 1.368 2.75-.445 6.069-.828 9.125-3.429-3.3-18.195-.543-14.396 4.502 1.978 2.633 4.318-2.377 6.598-2.25 4.083.225 6.235 5.295 5.967 8.846-.497-1.898-2.422-3.761-3.746-1.444-.897 1.573.635 4.26 1.374 5.823-.906-.444-5.372-2.52-6.246-2.161-3.44 1.414 1.3 4.151 2.537 4.698 4.224 1.868 6.887 3.92 8.2 8.992-2.367-.757-1.955-1.878-3.552-3.043-1.466-1.07-1.74-.518-3.09-.868-2.362-.611-5.441-1.427-8.11-.318-1.97.819-5.287 3.31-5.906 5.65-.757 2.874.844 3.606 2.904 2.143 2.45-1.739 2.897-5.105 6.583-4.96 1.769.068 3.52.995 4.64 2.325.835.993 1.323 2.43 2.12 3.495.703.94 2.564 2.259 2.957 3.254 1.418 3.595-1.276 6.795-3.083 9.314-.419-.554-3.477-1.758-4.11-1.878-2.94-.561-4.037.798-2.199 3.512.58.856 1.798 1.216 2.436 1.994.711.87 1.112 2.2 1.818 3.144 1.393 1.863 3.115 2.822 4.778 4.322-.613.41-.546-.624-1.102-.41-.404.156-1.107-.155-1.617.014-.828.275-.718 1.717-1.248 1.929-3.299 1.314-6.627-3.615-9.586-3.775-1.614-.088-2.975.994-2.2 3.022.538 1.412 2.87 2.178 4.036 2.767 3.246 1.644 6.478 2.868 9.948 1.607 2.797 2.438 6.159 3.64 9.674 3.675-2.011.998-4 2.235-4.702 4.721-1.189-1.23-4.108-6.952-5.633-2.462-1.045 3.087 3.723 6.871 5.92 8.262-2.555.755-4.677.907-7.277.607-1.357-.156-4.337-1.974-3.238 1.748 1.182 4.016 8.24 2.21 10.48 1.516.083-1.198-10.77 12.108-3.158 9.489 2.176-.748 2.385-5 5.418-5.373 3.503-.43 3.855 3.077 5.882 5.646 1.01 1.282 5.67 4.165 5.449 5.265-.191.952-2.75 1.496-3.293 2.828-.633 1.55-.347 2.746.532 4.078 1.538 2.333 4.36 2.691 6.592 3.604 3.164 1.295 4.31 2.867 5.73 6.217-2.502.12-9.62 7.36-5.258 8.648 1.625.48 1.372-.966 2.049-1.765l.821-1.545q.687-1.797 1.52-.22c.123-.031 1.61.388 1.947.409 1.708.105 2.85-1.192 4.266-1.893 1.023-.506 2.024-.418 2.795-1.586-.089.135.554-2.51.565-2.536.276-.637.985-.547 1.31-1.234-8.749-9.085-14.457-21.119-15.489-34.464C36.42 132.776 33 128.288 33 123v-13c0-5.035 3.1-9.345 7.497-11.126.531.374 1.27 0 1.503-.842-.463-1.506 3.296-27.854 13-34.876 3.618-2.438 23.008-2.619 42.313-2.606 19.096.014 38.108.195 41.687 2.606 9.704 7.022 13.463 33.37 13 34.876.233.843.972 1.216 1.503.842"></path></defs><mask id="ShortHairDreads02-mask2" fill="#fff"><use href="#ShortHairDreads02-path1"></use></mask><g id="Top/Short-Hair/Dreads-02" mask="url(&#39;#ShortHairDreads02-mask2&#39;)"><g transform="translate(-1)"><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairDreads02-path3" transform="translate(36)"></use></g></g></g>',1),Pu=[$u];function Ou(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Pu])}const _u={render:Ou},Ru=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat1-path3" d="M0 0h264v280H0z"></path><path id="WinterHat1-path1" d="M120 54H20v101c0 5.523-4.477 10-10 10s-10-4.477-10-10V44C0 19.7 19.7 0 44 0h52c24.3 0 44 19.7 44 44v111c0 5.523-4.477 10-10 10s-10-4.477-10-10z"></path><rect id="WinterHat1-path2" width="118" height="36" x="74" y="50" rx="8"></rect></defs><g id="Top/Accessories/Winter-Hat-1" transform="translate(-1)"><g id="hat" transform="translate(63 20)"><path id="inside" fill="#F4F4F4" d="M1 48h22.671v105.664c0 6.26-5.075 11.336-11.335 11.336S1 159.925 1 153.664zm115.329 0H139v105.664c0 6.26-5.075 11.336-11.336 11.336-6.26 0-11.335-5.075-11.335-11.336z"></path><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat1-path1"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat1-path2&#39;)" href="#WinterHat1-path2"></use><use fill="#F4F4F4" href="#WinterHat1-path2"></use></g></g></g>',1),Hu=[Ru];function zu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hu])}const ju={render:zu},Gu=e.createStaticVNode('<g id="Top"><defs><filter id="filter5" width="107.7%" height="126.7%" x="-3.8%" y="-6.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter6" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter7" width="113.3%" height="113.8%" x="-6.7%" y="-3.4%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter1" width="107.7%" height="115.4%" x="-3.8%" y="-3.8%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter2" width="105%" height="110%" x="-2.5%" y="-2.5%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter3" width="105.4%" height="110.8%" x="-2.7%" y="-2.7%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><filter id="filter4" width="103.6%" height="107.4%" x="-1.8%" y="-1.9%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix in="shadowOffsetOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><path id="LongHairFrida-path2" d="M0 0h264v280H0z"></path><path id="LongHairFrida-path1" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFrida-mask1" fill="#fff"><use href="#LongHairFrida-path2"></use></mask><g id="Top/Long-Hair/Frida" mask="url(&#39;#LongHairFrida-mask1&#39;)"><g transform="translate(-1)"><path fill="var(--avataaar-hair-color)" d="M189 97.937v.229a12.01 12.01 0 0 1 9.893 10.227A16.44 16.44 0 0 0 203 97.5c0-2.13-.404-4.166-1.138-6.035A16.45 16.45 0 0 0 207 79.5c0-5.836-3.03-10.964-7.602-13.898A16.4 16.4 0 0 0 201 58.5c0-7.635-5.185-14.058-12.227-15.941q.226-1.499.227-3.059c0-11.322-9.178-20.5-20.5-20.5-2.63 0-5.143.495-7.453 1.397C157.317 15.306 151.295 12 144.5 12c-4.262 0-8.22 1.3-11.5 3.527A20.4 20.4 0 0 0 121.5 12c-6.795 0-12.817 3.306-16.547 8.397A20.5 20.5 0 0 0 97.5 19C86.178 19 77 28.178 77 39.5q.001 1.56.227 3.059C70.185 44.442 65 50.865 65 58.5c0 2.192.427 4.284 1.203 6.197C60.75 67.39 57 73.007 57 79.5c0 5.438 2.63 10.261 6.689 13.267A16.5 16.5 0 0 0 63 97.5c0 4.175 1.55 7.987 4.107 10.893A12.01 12.01 0 0 1 77 98.166v-.23l.083.064c2.903-47.147 48.47-30.258 55.917-56.664 7.447 26.406 53.014 9.517 55.917 56.664zm-80 82.674v4.2a16.6 16.6 0 0 1-2.5.189c-6.82 0-12.675-4.139-15.188-10.042C82.754 174.348 76 167.213 76 158.5c0-1.471.192-2.897.554-4.254C69.858 152.144 65 145.889 65 138.5c0-3.744 1.247-7.198 3.35-9.967a12.01 12.01 0 0 0 8.859 6.334c1.743 20.248 14.26 37.416 31.791 45.744m48 0v4.2q1.224.188 2.5.189c6.82 0 12.675-4.139 15.188-10.042 8.558-.61 15.312-7.745 15.312-16.458 0-1.471-.192-2.897-.554-4.254C196.142 152.144 201 145.889 201 138.5c0-3.744-1.247-7.198-3.35-9.967a12.01 12.01 0 0 1-8.859 6.334c-1.743 20.248-14.26 37.416-31.791 45.744" class="CustomColor"></path><g id="Ornamentos" transform="translate(67)"><g id="hoja" filter="url(&#39;#filter5&#39;)" opacity=".9" transform="scale(1 -1)rotate(-20 -137.666 -331.914)"><path id="leaf" fill="#5DD362" d="M3.611 10S1.95 0 13 0c7.222 0 12.278 5.714 12.278 5.714s-5.417 8.572-13.722 8.572C5.056 14.286 3.61 10 3.61 10Z"></path><path id="leaf" fill="#42BC53" d="M25.278 5.714s-5.417 8.572-13.722 8.572c-4.334 0-6.428-1.929-7.367-3.215-2.095 1.786-2.817 3.429-2.817 3.5-.072.286-.36.429-.65.429-.072 0-.216 0-.289-.071-.36-.143-.505-.572-.36-.929.071-.214 1.877-4.143 7.366-6.714 7.944-4.143 17.839-1.572 17.839-1.572"></path></g><g id="hoja" filter="url(&#39;#filter6&#39;)" transform="rotate(60 44.13 92.434)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="hoja" filter="url(&#39;#filter7&#39;)" transform="rotate(-120 31.465 30.827)"><path id="leaf" fill="#5DD362" d="M15 12C15 5.9 9 0 9 0S1.7 4.3 1 13s5.8 10.7 5.8 10.7S15 20.8 15 12"></path><path id="leaf" fill="#42BC53" d="M8 29c.1 0 .2 0 .3-.1.5-.2.8-.8.6-1.3-.5-1.5-.9-2.9-1.1-4.4C10 22.2 15 18.9 15 12 15 5.9 9 0 9 0s-.4 1.1-1 3c-.2.5-5.2 13.6-.9 25.3.1.4.5.7.9.7"></path></g><g id="Flor" filter="url(&#39;#filter1&#39;)" transform="matrix(-1 0 0 1 26 29)"><path fill="#4ACAD3" d="M24.424 20.956a5.17 5.17 0 0 0 .997-3.853 5.17 5.17 0 0 0-2.02-3.43c-.299-.225-.693-.41-1.141-.567.453-.141.854-.313 1.16-.527a5.206 5.206 0 0 0 1.277-7.243 5.206 5.206 0 0 0-7.242-1.277c-.306.215-.604.533-.893.911.006-.475-.033-.909-.143-1.267a5.16 5.16 0 0 0-2.532-3.07A5.17 5.17 0 0 0 9.926.25a5.207 5.207 0 0 0-3.453 6.493c.11.356.314.735.582 1.124-.448-.151-.869-.243-1.241-.25a5.206 5.206 0 0 0-5.29 5.11 5.18 5.18 0 0 0 .937 3.066 5.2 5.2 0 0 0 4.171 2.223c.373.006.796-.071 1.25-.206-.283.38-.5.75-.621 1.103a5.2 5.2 0 0 0 .662 4.68 5.17 5.17 0 0 0 2.561 1.93 5.206 5.206 0 0 0 6.61-3.225c.12-.352.178-.779.19-1.252.273.386.56.708.857.932a5.17 5.17 0 0 0 3.853.997 5.16 5.16 0 0 0 3.43-2.02Z"></path><path fill="#FFF" d="M11.178 8.64a1.444 1.444 0 1 1 2.763-.845c.233.763-.232 4.182-.232 4.182s-2.298-2.574-2.53-3.337Zm-2.242 5.797a1.444 1.444 0 1 1 .05-2.888c.798.014 3.905 1.513 3.905 1.513s-3.158 1.389-3.955 1.375m6.057-2.018s1.738-2.98 2.392-3.438a1.444 1.444 0 1 1 1.657 2.366c-.654.458-4.049 1.072-4.049 1.072m-3.073 6.838a1.444 1.444 0 0 1-.895-1.836c.26-.755 2.646-3.246 2.646-3.246s.345 3.432.086 4.187a1.445 1.445 0 0 1-1.837.895m5.32-1.96c-.638-.48-2.27-3.52-2.27-3.52s3.37.732 4.008 1.212a1.444 1.444 0 1 1-1.738 2.307Z"></path></g><g id="Flor" filter="url(&#39;#filter2&#39;)" transform="translate(20 16)"><path fill="#FDB599" d="m30.526 33.098.258-2.314 2.314-.26c2.847-.319 5.11-2.116 6.054-4.81 1.066-3.042.065-6.359-2.547-8.281l-1.874-1.38.932-2.134c1.229-2.806.645-5.895-1.52-8.061-2.167-2.166-5.256-2.75-8.063-1.522l-2.133.933-1.38-1.875C20.644.786 17.327-.218 14.284.848c-2.692.943-4.49 3.207-4.809 6.054l-.26 2.313-2.313.26c-2.847.319-5.11 2.117-6.054 4.81-.938 2.676-.298 5.56 1.669 7.528a8 8 0 0 0 .877.753l1.875 1.38-.934 2.134c-1.226 2.807-.643 5.896 1.523 8.062s5.255 2.749 8.062 1.523l2.134-.934 1.38 1.875c1.917 2.61 5.24 3.612 8.283 2.547 2.693-.945 4.49-3.208 4.809-6.055"></path><path fill="#FFF" d="M22.882 25.19a1.44 1.44 0 0 1-2.782.746C19.894 25.17 20 20 20 20s-2.492 4.529-3.055 5.091a1.44 1.44 0 0 1-2.036-2.036C15.47 22.492 20 20 20 20s-5.168.106-5.936-.1a1.44 1.44 0 0 1 .745-2.782C15.577 17.324 20 20 20 20s-2.676-4.423-2.882-5.19a1.44 1.44 0 0 1 2.782-.746c.206.768.1 5.936.1 5.936s2.492-4.529 3.055-5.091a1.44 1.44 0 0 1 2.036 2.036C24.53 17.508 20 20 20 20s5.169-.106 5.936.1a1.44 1.44 0 0 1-.745 2.782C24.423 22.676 20 20 20 20s2.675 4.422 2.882 5.19"></path></g><g id="Flor" filter="url(&#39;#filter3&#39;)" transform="translate(89 26)"><path fill="#F7D30C" d="M34.758 29.822a7.36 7.36 0 0 0 1.418-5.483 7.35 7.35 0 0 0-2.874-4.88c-.426-.321-.987-.584-1.625-.808.645-.201 1.216-.445 1.652-.75 3.342-2.34 4.158-6.964 1.817-10.307-2.34-3.342-6.964-4.157-10.306-1.817-.436.306-.86.758-1.27 1.296.008-.676-.048-1.294-.204-1.803A7.35 7.35 0 0 0 19.763.9a7.36 7.36 0 0 0-5.638-.543C10.223 1.55 8.019 5.695 9.21 9.597c.156.507.447 1.046.83 1.6-.638-.216-1.237-.346-1.768-.355-4.08-.071-7.456 3.19-7.528 7.27a7.37 7.37 0 0 0 1.334 4.363 7.4 7.4 0 0 0 5.936 3.164c.53.01 1.133-.1 1.777-.293-.4.54-.71 1.069-.883 1.57a7.4 7.4 0 0 0 .943 6.66 7.36 7.36 0 0 0 3.645 2.746c3.858 1.329 8.077-.73 9.405-4.588.173-.502.255-1.109.271-1.782.39.549.797 1.007 1.22 1.326a7.35 7.35 0 0 0 5.484 1.418 7.35 7.35 0 0 0 4.88-2.874Z"></path><path fill="#FFF" d="M15.908 12.295a2.055 2.055 0 1 1 3.93-1.202c.332 1.086-.33 5.95-.33 5.95s-3.269-3.662-3.6-4.748m-3.192 8.25a2.055 2.055 0 1 1 .072-4.11c1.135.02 5.558 2.153 5.558 2.153s-4.495 1.977-5.63 1.957m8.62-2.872s2.474-4.241 3.404-4.892a2.055 2.055 0 1 1 2.358 3.367c-.93.651-5.762 1.525-5.762 1.525m-4.373 9.731a2.055 2.055 0 0 1-1.274-2.613c.37-1.073 3.765-4.62 3.765-4.62s.492 4.886.123 5.96a2.056 2.056 0 0 1-2.614 1.273m7.57-2.79c-.907-.683-3.23-5.008-3.23-5.008s4.797 1.042 5.704 1.725a2.055 2.055 0 1 1-2.474 3.283"></path></g><g id="Flor" filter="url(&#39;#filter4&#39;)" transform="translate(48)"><path fill="#FF7398" d="M54.138 31.546c1.825-6.983-5.994-12.414-8.953-14.184.514-2.934 1.672-12.561-4.468-16.116C34.612-2.288 26.924 3.45 24.6 5.394q-.3-.189-.703-.423C20.83 3.196 13.13-.381 7.85 4.736 2.205 10.204 5.537 18.74 6.805 21.434c-2.16 2.01-8.384 8.592-5.818 15.59.706 1.929 2.011 3.456 3.882 4.538 4.03 2.334 9.607 1.958 11.723 1.707.993 1.88 3.83 6.712 7.888 9.061 1.67.967 3.375 1.413 5.07 1.325 6.905-.358 9.916-9.995 10.67-12.912 2.861-.396 12.086-2.199 13.918-9.197"></path><path fill="#FFF" d="M27.764 25.603s3.685 8.188.354 8.71c-3.334.521-1.46-8.591-1.46-8.591s-7.112 6.007-8.15 3.028c-1.04-2.979 7.7-4.048 7.7-4.048s-7.987-4.692-5.393-6.836 6.216 6.092 6.216 6.092 1.945-8.92 4.82-7.254c2.876 1.664-3.857 7.811-3.857 7.811s8.877-.99 8.37 2.352c-.505 3.342-8.6-1.264-8.6-1.264"></path></g></g><g id="Arete" transform="translate(182 129)"><rect id="Cadenita" width="2" height="39" x="9" y="0" fill="#E6E6E6" rx="1"></rect><path id="Rayo" fill="#9177FF" d="M20 37h-9.43L17 20H6L0 41h8.636L4 60z"></path></g></g></g></g>',1),qu=[Gu];function Iu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qu])}const Wu={render:Iu},Uu=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairFrizzle-path2" d="M0 0h264v280H0z"></path><path id="ShortHairFrizzle-path1" d="M90.91 55.361h84.176c18.247-10.527 21.673-29.21 8.764-45.435-3.214-4.04-8.764 11.75-25.821 12.724s-15.42-6.3-33.571-3.576c-18.152 2.724-16.146 17.304-27.99 20.803q-11.846 3.499-5.558 15.484"></path></defs><mask id="ShortHairFrizzle-mask2" fill="#fff"><use href="#ShortHairFrizzle-path2"></use></mask><g id="Top/Short-Hair/Frizzle" mask="url(&#39;#ShortHairFrizzle-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairFrizzle-path1" transform="translate(-1)"></use></g></g>',1),Zu=[Uu];function Yu(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zu])}const Xu={render:Yu},Ku=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat2-path3" d="M0 0h264v280H0z"></path><path id="WinterHat2-path1" d="M72 21c54.773 0 72 47.803 72 82.045v73.865c0 19.495-22.633 19.537-22.633-10.921V86.535c0-6.075-3.732-9-9.816-9H32.45c-6.084 0-9.816 2.925-9.816 9v79.454C22.633 196.447 0 196.405 0 176.91v-73.865C0 68.803 17.227 21 72 21"></path><path id="WinterHat2-path2" d="M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"></path></defs><g id="Top/Accessories/Winter-Hat-2" transform="translate(-1)"><g id="hat" transform="translate(61)"><g id="string" fill="#F4F4F4" transform="translate(0 176)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><g id="string" fill="#F4F4F4" transform="translate(126 168)"><circle id="puff" cx="9" cy="65" r="9"></circle><path d="M8 0h2v58H8z"></path></g><circle id="puff" cx="72" cy="20" r="20" fill="#F4F4F4"></circle><mask id="WinterHat2-mask2" fill="#fff"><use href="#WinterHat2-path1"></use></mask><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat2-path1"></use><path id="color-dark" fill="#000" d="M-1 21h146v46H-1z" mask="url(&#39;#WinterHat2-mask2&#39;)" opacity=".2"></path><g id="light-triangles" fill="#FFF" opacity=".5" transform="translate(29 32)"><path id="Triangle" d="M12.5 0 25 18H0z" transform="rotate(180 12.5 9)"></path><path id="Triangle" d="M43.5 0 56 18H31z" transform="rotate(180 43.5 9)"></path><path id="Triangle" d="M74.5 0 87 18H62z" transform="rotate(180 74.5 9)"></path></g><g id="dark-triangles" fill="#000" opacity=".5" transform="translate(13 41)"><path id="Triangle" d="M12.5 0 25 18H0zm31 0L56 18H31zm31 0L87 18H62zm31 0L118 18H93z"></path></g></g></g></g>',1),Qu=[Ku];function Ju(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Qu])}const e9={render:Ju},t9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFro-path1" d="M0 0h264v280H0z"></path><path id="LongHairFro-path2" d="M180.666 104.495A11.95 11.95 0 0 1 182 110v13c0 6.019-4.43 11.002-10.209 11.867-1.743 20.248-14.26 37.416-31.791 45.744v9.443c3.832 1.896 8.059 2.946 12.5 2.946 7.621 0 14.61-3.093 20.059-8.242q2.193.241 4.441.242c18.39 0 34.26-12.316 41.622-30.116C224.9 149.814 229 141.454 229 132a32 32 0 0 0-.426-5.223C230.786 120.339 232 113.33 232 106c0-12.866-3.739-24.736-10.046-34.275Q222 70.869 222 70c0-10.957-5.507-20.443-13.53-25.043-7.31-17.588-22.73-29.966-40.773-30.9C163.274 9.075 157.201 6 150.5 6q-1.427.001-2.812.182C137.91 2.196 127.211 0 116 0S94.09 2.196 84.312 6.182A22 22 0 0 0 81.5 6c-6.701 0-12.774 3.075-17.197 8.057-18.044.934-33.463 13.312-40.774 30.9C15.507 49.557 10 59.043 10 70q0 .87.046 1.725C3.739 81.265 0 93.135 0 106c0 7.331 1.214 14.34 3.426 20.777A32 32 0 0 0 3 132c0 9.454 4.1 17.814 10.378 22.884C20.74 172.684 36.61 185 55 185q2.248-.001 4.441-.242C64.889 189.907 71.879 193 79.5 193c4.441 0 8.668-1.05 12.5-2.946v-9.443c-17.53-8.328-30.048-25.496-31.791-45.744C54.43 134.002 50 129.02 50 123v-13c0-1.983.481-3.854 1.333-5.502 2.702-.802 5.677-3.053 8.658-6.33l.009-.002v-.009c6.866-7.556 13.755-20.555 17.37-33.822 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 3.62 13.226 10.486 26.172 17.332 33.71v.018l.02.003c2.976 3.272 5.947 5.522 8.646 6.326"></path><path id="LongHairFro-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="LongHairFro-mask1" fill="#fff"><use href="#LongHairFro-path1"></use></mask><g id="Top/Long-Hair/Fro" mask="url(&#39;#LongHairFro-mask1&#39;)"><g transform="translate(-1)"><path id="Shadow" fill="#000" d="M67 109.778c9.038-1.06 21.922-20.447 27.37-40.443 11.116 1.737 24.535 2.752 38.984 2.752 14.159 0 27.33-.975 38.314-2.649 5.462 19.953 18.31 39.269 27.332 40.339V89c0-22.884-11.647-43.048-29.336-54.887-.528 2.482-.88 5.222-1.04 8.184-10.34-1.404-22.396-2.21-35.27-2.21-13.164 0-25.472.842-35.964 2.306-.158-3-.512-5.775-1.047-8.286C78.65 45.947 67 66.113 67 89z" opacity=".16"></path><use id="Hair" fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFro-path2" transform="translate(17)"></use></g></g></g>',1),n9=[t9];function a9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...n9])}const o9={render:a9},r9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggy-path2" d="M0 0h264v280H0z"></path><path id="ShortHairShaggy-path1" d="M198.747 37.856c-5.14-3.832-11.219-7.116-17.56-8.378-6.446-1.282-10.358-1.593-16.704-.073-1.633.392-2.184.78-3.62-.148-1.212-.783-9.663-9.49-35.421-4.657-26.035 4.885-33.77 44.075-43.427 45.566-3.48.537-7.781-.384-7.916-2.527-3.963 6.034-5.008 14.007-3.327 21.074 1.447 6.086 4.497 11.804 9.989 15.137 4.726 2.867 11.26 4.116 16.72 3.587 2.486-.24 4.746-.763 7.033-1.766 2.759-1.21 4.957-3.39 7.664-4.543a54 54 0 0 1-9.176 6.418c-1.64.907-3.304 1.532-5.113 2.024-1.236.336-3.761 1.481-4.956 1.182 7.807 1.396 15.16.18 22.32-3.163 3.23-1.508 6.338-3.332 9.19-5.476 2.833-2.13 6.095-4.307 8.31-7.11-.93 1.204.698-.586.913-.805a67 67 0 0 0 1.787-1.895c1.002-1.104 1.998-2.228 2.93-3.391 1.995-2.486 3.852-5.082 5.508-7.803 1.678-2.756 8.359-13.873 10.375-16.49-1.905 5.708-3.98 11.418-6.407 16.925 4.713-1.47 9.284-5.544 12.295-9.34 3.392-4.276 5.4-9.268 6.108-14.666 3.826 10.416 12.785 18.63 22.032 24.295-2.003-3.73-5.055-6.885-7.052-10.678 9.191 9.329 24.568 13.893 28.595 27.574 1.033-4.758 4.353-8.58 5.348-13.433 1.104-5.389 1.896-11.11 1.72-16.616-.396-12.242-8.631-23.723-18.158-30.824"></path></defs><mask id="ShortHairShaggy-mask2" fill="#fff"><use href="#ShortHairShaggy-path2"></use></mask><g id="Top/Short-Hair/Shaggy" mask="url(&#39;#ShortHairShaggy-mask2&#39;)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggy-path1" transform="matrix(-1 0 0 1 285.93 0)"></use></g></g>',1),i9=[r9];function s9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...i9])}const l9={render:s9},c9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat3-path3" d="M0 0h264v280H0z"></path><path id="WinterHat3-path1" d="M66 0c36.45 0 66 29.55 66 66v5H0v-5C0 29.55 29.55 0 66 0"></path><path id="WinterHat3-path2" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-3" transform="translate(-1)"><g id="hat" transform="translate(67 12)"><circle id="puff" cx="66" cy="8" r="20" fill="#F4F4F4"></circle><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat3-path1"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat3-path2&#39;)" href="#WinterHat3-path2"></use><use fill="#F4F4F4" href="#WinterHat3-path2"></use></g></g></g>',1),d9=[c9];function u9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...d9])}const m9={render:u9},f9=e.createStaticVNode('<g id="Top"><defs><path id="LongHairFroBand-path1" d="M0 0h264v280H0z"></path><path id="LongHairFroBand-path2" d="M80.02 73.81A55.9 55.9 0 0 0 77 92v6.166c-5.675.952-10 5.888-10 11.834v13c0 6.019 4.43 11.002 10.209 11.867 1.743 20.248 14.26 37.416 31.791 45.744v10.944A36.4 36.4 0 0 1 93.5 195a36.35 36.35 0 0 1-23.19-8.312 54 54 0 0 1-5.81.312c-21.094 0-39.337-12.208-48.049-29.945C8.934 151.924 4 143.288 4 133.5c0-2.115.23-4.175.667-6.159A57.9 57.9 0 0 1 1 107c0-12.756 4.118-24.55 11.097-34.127A29 29 0 0 1 12 70.5c0-11.297 6.573-21.06 16.104-25.67 8.433-18.128 26.454-30.894 47.546-31.78A28.4 28.4 0 0 1 95.5 5c2.327 0 4.589.279 6.754.805C111.776 2.058 122.148 0 133 0c10.346 0 20.255 1.87 29.408 5.292A29 29 0 0 1 166.5 5a28.4 28.4 0 0 1 19.85 8.05c21.092.886 39.113 13.652 47.546 31.78C243.426 49.44 250 59.203 250 70.5q0 1.2-.097 2.373C256.882 82.45 261 94.243 261 107a57.9 57.9 0 0 1-3.667 20.341A28.6 28.6 0 0 1 258 133.5c0 9.788-4.934 18.424-12.451 23.555C236.837 174.792 218.594 187 197.5 187a54 54 0 0 1-5.81-.312A36.35 36.35 0 0 1 168.5 195c-4.018 0-7.884-.65-11.5-1.849v-12.54c17.53-8.328 30.048-25.496 31.791-45.744C194.57 134.002 199 129.02 199 123v-13c0-5.946-4.325-10.882-10-11.834V92c0-5.441-.776-10.702-2.224-15.676l1.377 12.87-11.34-24-45.136-19.523-30.114 10.557L80.065 76.42l-.045-2.609Z"></path></defs><mask id="LongHairFroBand-mask1" fill="#fff"><use href="#LongHairFroBand-path1"></use></mask><g id="Top/Long-Hair/Fro-+-Band" mask="url(&#39;#LongHairFroBand-mask1&#39;)"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#LongHairFroBand-path2"></use><path id="Band" fill="#92D9FF" stroke="none" d="M76.631 98.975A48.6 48.6 0 0 1 76 91.152C76 62.35 101.296 39 132.5 39S189 62.35 189 91.152c0 2.659-.216 5.271-.631 7.823-4.09-25.092-27.545-44.33-55.869-44.33s-51.78 19.238-55.869 44.33"></path></g></g></g>',1),h9=[f9];function p9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...h9])}const g9={render:p9},y9=e.createStaticVNode('<g id="Top"><defs><path id="ShortHairShaggyMullet-path1" d="M0 0h264v280H0z"></path><path id="ShortHairShaggyMullet-path2" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Zm114.59-82.914c.175 5.507-.617 11.227-1.721 16.616-.995 4.852-4.315 8.675-5.348 13.433-4.027-13.68-19.404-18.245-28.595-27.574 1.997 3.793 5.049 6.948 7.052 10.678-9.247-5.665-18.206-13.88-22.032-24.295-.707 5.398-2.716 10.39-6.108 14.666-3.011 3.796-7.582 7.87-12.295 9.34 2.428-5.507 4.502-11.217 6.407-16.925-2.016 2.617-8.697 13.734-10.375 16.49-1.656 2.72-3.513 5.317-5.507 7.803-.933 1.163-1.929 2.287-2.93 3.391a67 67 0 0 1-1.788 1.895c-.215.219-1.842 2.01-.912.806-2.216 2.802-5.478 4.979-8.31 7.109-2.853 2.144-5.96 3.968-9.192 5.476-7.159 3.343-14.512 4.56-22.32 3.163 1.196.299 3.721-.846 4.957-1.182 1.809-.492 3.474-1.117 5.113-2.024a54 54 0 0 0 9.176-6.418c-2.707 1.152-4.905 3.334-7.664 4.543-2.287 1.003-4.547 1.526-7.032 1.766-5.462.529-11.995-.72-16.721-3.587-5.492-3.333-8.542-9.051-9.99-15.137-1.68-7.067-.635-15.04 3.328-21.074.135 2.143 4.436 3.064 7.916 2.527 9.658-1.49 15.403-38.048 40.427-44.566 19.961-5.2 34.21 3.874 35.42 4.657 1.437.928 1.988.54 3.621.148 6.346-1.52 13.258-2.209 19.705-.927 6.34 1.262 12.418 4.546 17.559 8.378 9.527 7.101 17.762 18.582 18.159 30.824"></path><path id="ShortHairShaggyMullet-path3" d="M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"></path></defs><mask id="ShortHairShaggyMullet-mask1" fill="#fff"><use href="#ShortHairShaggyMullet-path1"></use></mask><g id="Top/Short-Hair/Shaggy-Mullet" mask="url(&#39;#ShortHairShaggyMullet-mask1&#39;)"><g transform="translate(-1)"><use fill="var(--avataaar-hair-color)" class="CustomColor" href="#ShortHairShaggyMullet-path2"></use><path id="Shadow" fill="#000" stroke="none" d="M175.126 166.898c.715 2.24 1.749 4.333 3.43 5.788 1.62 1.404 4.512 1.06 6.543 1.117 1.672.048 3.346.053 5.016-.02.839-.036 1.213 1.015.534 1.499q-.195.139-.39.262a39 39 0 0 1-3.25 1.812c-2.524 1.258-5.188 2.244-7.982 2.734-1.916.337-3.816.4-5.654.177a9.8 9.8 0 0 0 1.699 1.94c1.73 1.501 4.816 1.133 6.983 1.194 1.784.052 3.57.057 5.353-.02.895-.039 1.295 1.084.57 1.601a8 8 0 0 1-.416.28 42 42 0 0 1-3.469 1.937c-2.693 1.345-5.536 2.398-8.518 2.922-5.5.966-10.87-.177-15.194-3.708a25 25 0 0 1-3.381-3.36v-2.442a56.2 56.2 0 0 0 18.126-13.713m-93.81-15.304a140 140 0 0 1-2.31 4.597c-4.795 9.11-10.764 20.602-22.507 21.405-1.088.075-1.519 1.347-.67 1.992 11.12 8.453 36.432 13.6 45.445 11.982a54 54 0 0 0 7.726-1.96v-8.999a56.2 56.2 0 0 1-27.685-29.017Z" opacity=".16"></path></g></g></g>',1),k9=[y9];function x9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...k9])}const b9={render:x9},w9=e.createStaticVNode('<g id="Top"><defs><path id="WinterHat4-path5" d="M0 0h264v280H0z"></path><path id="WinterHat4-path1" d="M129.66 38.357A60.8 60.8 0 0 1 134 61v8H2v-8c0-8.025 1.55-15.688 4.366-22.707Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419C38.486 3.888 50.289 0 63 0h10c12.722 0 24.535 3.895 34.31 10.557q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237"></path><path id="WinterHat4-path2" d="M28.716 10.539c-9.957 6.778-17.804 16.426-22.35 27.754Q-3.238 18.099 2.636 5.12q11.257-3.414 26.08 5.419m100.943 27.818c-4.538-11.346-12.386-21.01-22.349-27.8q14.84-8.856 26.11-5.437 5.883 12.999-3.76 33.237Z"></path><path id="WinterHat4-path3" d="M21.862 15.96a61.3 61.3 0 0 0-11.433 14.08Q6.041 17.878 8.927 13.208q3.977-1.72 12.935 2.751Zm103.49 13.714a61.3 61.3 0 0 0-11.274-13.77q8.704-4.278 12.608-2.59 2.83 4.58-1.333 16.36Z"></path><path id="WinterHat4-path4" d="M67.285 61.451Q91.202 44 133.073 44q41.869 0 65.659 17.45A8 8 0 0 1 202 67.9v30.47a4 4 0 0 1-6.135 3.383Q170.902 85.999 133.805 86q-37.383 0-63.73 15.994A4 4 0 0 1 64 98.575V67.914a8 8 0 0 1 3.285-6.463"></path></defs><g id="Top/Accessories/Winter-Hat-4" transform="translate(-1)"><g id="hat" transform="translate(65 4)"><use fill="var(--avataaar-top-color)" class="CustomColor" href="#WinterHat4-path1"></use><use id="shadow" fill="#000" href="#WinterHat4-path2" opacity=".24"></use><use id="light" fill="#FFF" href="#WinterHat4-path3" opacity=".3"></use></g><g id="hat-front"><use filter="url(&#39;#WinterHat4-path4&#39;)" href="#WinterHat4-path4"></use><use fill="#F4F4F4" href="#WinterHat4-path4"></use></g></g></g>',1),E9=[w9];function v9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...E9])}const C9={render:v9},S9={Eyepatch:Z7,Hat:i8,Hijab:k8,LongHairBigHair:A8,LongHairBob:j8,LongHairBun:eu,LongHairCurly:mu,LongHairCurvy:Eu,LongHairDreads:Fu,LongHairFrida:Wu,LongHairFro:o9,LongHairFroBand:g9,LongHairMiaWallace:Q7,LongHairNotTooLong:d8,LongHairShavedSides:E8,LongHairStraight:F8,LongHairStraight2:W8,LongHairStraightStrand:ou,NoHair:hu,ShortHairDreads01:Bu,ShortHairDreads02:_u,ShortHairFrizzle:Xu,ShortHairShaggy:l9,ShortHairShaggyMullet:b9,ShortHairShortCurly:n8,ShortHairShortFlat:h8,ShortHairShortRound:B8,ShortHairShortWaved:_8,ShortHairSides:X8,ShortHairTheCaesar:lu,ShortHairTheCaesarSidePart:ku,Turban:Au,WinterHat1:ju,WinterHat2:e9,WinterHat3:m9,WinterHat4:C9},B9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Light",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardLight-path1",d:"M101.428 98.169c-2.513 2.294-5.19 3.325-8.575 2.604-.582-.124-2.957-4.538-8.853-4.538-5.897 0-8.27 4.414-8.853 4.538-3.385.721-6.062-.31-8.576-2.604-4.725-4.313-8.654-10.26-6.293-16.75 1.23-3.382 3.232-7.095 6.873-8.173 3.887-1.15 9.346-.002 13.264-.788 1.27-.254 2.656-.707 3.585-1.458.929.75 2.316 1.204 3.585 1.458 3.918.786 9.376-.362 13.264.788 3.64 1.078 5.642 4.79 6.873 8.173 2.361 6.49-1.568 12.437-6.294 16.75M140.081 26c-3.41 8.4-2.093 18.858-2.724 27.676-.513 7.167-2.02 17.91-8.384 22.539-3.255 2.367-9.179 6.345-13.431 5.235-2.927-.764-3.24-9.16-7.087-12.303-4.363-3.565-9.812-5.131-15.306-4.89-2.37.105-7.165.08-9.15 1.903-1.983-1.823-6.777-1.798-9.148-1.902-5.494-.242-10.943 1.324-15.306 4.889-3.847 3.143-4.16 11.54-7.087 12.303-4.252 1.11-10.176-2.868-13.431-5.235-6.365-4.63-7.87-15.372-8.384-22.54-.63-8.817.686-19.275-2.724-27.675-1.66 0-.565 16.129-.565 16.129v20.356c.032 15.288 9.581 38.17 30.754 46.908C63.286 111.53 75.015 115 84 115s20.714-3.14 25.892-5.277c21.173-8.737 30.722-31.95 30.754-47.238V42.13S141.74 26 140.081 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardLight-path1"})],-1),V9=[B9];function M9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...V9])}const N9={render:M9},A9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Majestic",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMajestic-path1",d:"M65.18 77.737c2.183-1.632 15.227-2.258 17.578-3.648.734-.434 1.303-.873 1.742-1.309.439.436 1.009.875 1.742 1.31 2.351 1.389 15.395 2.015 17.578 3.647 2.21 1.654 3.824 5.448 3.647 8.414-.212 3.56-4.106 12.052-13.795 13.03-2.114-2.353-5.435-3.87-9.172-3.87s-7.058 1.517-9.172 3.87c-9.69-.978-13.583-9.47-13.795-13.03-.176-2.966 1.437-6.76 3.647-8.414m.665 17.164.017.007zm79.018-38.916c-.389-5.955-1.585-11.833-2.629-17.699-.281-1.579-1.81-12.286-2.5-12.286-.232 9.11-1.032 18.08-2.064 27.14-.309 2.708-.632 5.416-.845 8.134-.171 2.196.135 4.848-.397 6.972-.679 2.706-4.08 5.232-6.725 6.165-6.6 2.326-12.105-7.303-17.742-10.12-7.318-3.656-19.897-4.527-27.38.239-7.645-4.766-20.224-3.895-27.542-.239-5.637 2.817-11.142 12.446-17.742 10.12-2.645-.933-6.047-3.459-6.725-6.165-.532-2.124-.226-4.776-.397-6.972-.213-2.718-.536-5.426-.845-8.135C30.298 44.08 29.497 35.11 29.265 26c-.689 0-2.218 10.707-2.5 12.286-1.043 5.866-2.24 11.744-2.627 17.7-.4 6.119.077 12.181 1.332 18.177a165 165 0 0 0 2.049 8.541c.834 3.143-.32 9.262.053 12.488.707 6.104 3.582 18.008 6.811 23.259 1.561 2.538 3.39 4.123 5.433 6.168 1.967 1.97 2.788 5.021 4.91 7.118 3.956 3.908 9.72 6.234 15.64 6.806C65.677 143.05 74.506 146 84.5 146s18.823-2.95 24.135-7.457c5.919-.572 11.683-2.898 15.64-6.806 2.121-2.097 2.942-5.149 4.909-7.118 2.042-2.045 3.872-3.63 5.433-6.168 3.229-5.251 6.104-17.155 6.81-23.259.374-3.226-.78-9.345.054-12.488.75-2.828 1.45-5.676 2.05-8.54 1.254-5.997 1.73-12.06 1.332-18.179"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMajestic-path1"})],-1),T9=[A9];function D9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...T9])}const L9={render:D9},F9=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Fancy",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheFancy-path1",d:"M84 69.297c-6.792-3.586-16.422-4.148-21.611-2.165-5.775 2.205-10.884 8.451-19.75 5.696-.37-.114-.73.217-.619.58 1.374 4.51 9.008 7.599 11.602 7.7 11.34.442 20.473-8.278 30.378-8.947 9.906.67 19.04 9.389 30.379 8.947 2.594-.101 10.228-3.19 11.601-7.7.111-.363-.25-.694-.618-.58-8.867 2.755-13.976-3.49-19.75-5.696-5.19-1.983-14.82-1.42-21.612 2.165"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheFancy-path1"})],-1),$9=[F9];function P9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...$9])}const O9={render:P9},_9=e.createElementVNode("g",{id:"Facial-Hair/Beard-Medium",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"BeardMedium-path1",d:"M105.018 94.13c-3.868 5.591-6.76 1.817-10.88-1.254-2.481-1.849-6.177-4.148-9.634-4.035-3.456-.113-7.152 2.186-9.633 4.035-4.12 3.07-7.013 6.845-10.88 1.254-2.903-4.198-1.688-11.256 1.024-15.227 3.859-5.652 9.094-2.918 14.947-3.563 1.592-.175 3.19-.617 4.542-1.34 1.352.723 2.95 1.165 4.542 1.34 5.854.645 11.089-2.089 14.948 3.563 2.712 3.97 3.926 11.03 1.024 15.227M140.39 26c-3.424 14.075-4.998 28.434-7.481 42.671a319 319 0 0 1-1.685 8.879c-.127.62-.251 2.923-.862 3.214-1.851.884-5.624-3.817-6.633-4.879-2.533-2.666-5.045-5.356-8.13-7.448-6.235-4.227-13.535-6.726-21.13-7.32-3.178-.248-7.475.186-10.47 1.993-2.995-1.807-7.292-2.24-10.47-1.992-7.596.593-14.895 3.092-21.13 7.32-3.085 2.091-5.597 4.781-8.13 7.447-1.01 1.062-4.782 5.763-6.633 4.88-.61-.292-.735-2.595-.862-3.215a319 319 0 0 1-1.685-8.879C32.607 54.434 31.034 40.075 27.61 26c-.997 0-1.871 18.748-1.983 20.495-.452 7.094-.98 14.03-.305 21.131 1.164 12.249 2.377 27.608 11.71 36.962 8.434 8.451 20.678 10.218 31.24 15.553 1.36.687 3.163 1.535 5.108 2.23 2.049 1.563 6.113 2.629 10.794 2.629 4.91 0 9.142-1.173 11.08-2.862a47 47 0 0 0 4.475-1.997c10.56-5.336 22.805-7.102 31.238-15.553 9.334-9.354 10.547-24.713 11.712-36.962.674-7.1.146-14.037-.306-21.131C142.26 44.748 141.387 26 140.39 26"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#BeardMedium-path1"})],-1),R9=[_9];function H9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...R9])}const z9={render:H9};function j9(t,n){return e.openBlock(),e.createElementBlock("svg")}const G9={render:j9},q9=e.createElementVNode("g",{id:"Facial-Hair/Moustache-Magnum",transform:"translate(49 72)"},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"MoustacheMagnum-path1",d:"M83.998 74.84a6.04 6.04 0 0 1-2.048 1.85c-8.902 4.82-18.073.642-23.074.94-2.416.144-5.535 1.785-6.66.05-1.24-1.913 2.852-12.46 12.505-14.216 7.01-1.275 16.776.138 19.277 3.474 2.5-3.336 12.267-4.749 19.276-3.474 9.654 1.757 13.745 12.303 12.506 14.215-1.125 1.736-4.244.095-6.66-.05-5.001-.297-14.172 3.881-23.074-.94a6.04 6.04 0 0 1-2.048-1.85Z"})]),e.createElementVNode("use",{fill:"var(--avataaar-facial-hair-color)",class:"CustomColor",href:"#MoustacheMagnum-path1"})],-1),I9=[q9];function W9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...I9])}const U9={render:W9},Z9={BeardMajestic:L9,BeardLight:N9,MoustacheFancy:O9,BeardMedium:z9,Blank:G9,MoustacheMagnum:U9},Y9=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bat" fill="#FFF" fill-rule="evenodd"><path id="Batman!" d="M87.685 13.403c-1.393-6.431-6.21-10.15-12.5-11.586-2.526-.577-10.913-2.387-9.607 2.408.593 2.172.263 3.964-1.553 5.766-1.77 1.755-5.231 2.2-6.952-.011-1.474-1.895.427-4.721-.721-6.567-.446-.717-1.216-1.083-2.028-.732-1.141.494-.534 1.555-1.073 2.318-.849 1.203-1.245.826-2.01-.373-.48-.754-.008-1.575-1.246-1.897-1.433-.372-1.903.828-2.032 1.923-.082.687.322 1.792.336 2.488.027 1.364-.09 3.323-.725 4.529-1.125 2.137-2.704 1.453-4.383.096-1.98-1.602-2.561-3.385-2.178-5.817.459-2.917.292-5.709-3.28-3.884-5.02 2.564-9.68 7.135-12.588 11.919-2.445 4.02-4.37 8.893-2.203 13.473 2.21 4.675 5.862 8.69 10.966 9.883 1.321.31 5.092 1.811 6.345.552 1.947-1.957-2.548-3.783-3.435-4.975-1.258-1.69-2.337-4.915-.957-6.822 1.76-2.427 3.6-1.074 5.045.644 1.136 1.348 2.75 4.826 4.506 2.022 1.21-1.931 1.101-5.102 4.4-3.717 4.715 1.978 4.86 11.112 5.7 15.291.367 1.83 2.035 4.064 3.47 1.525.79-1.396.364-4.421.22-5.863-.296-2.985-1.08-5.92-.11-8.877.562-1.71 2.001-4.16 4.13-2.844 1.725 1.066 1.006 5.816 3.353 5.807 2.066-.007 1.502-3.791 2.603-5.039 1.68-1.904 4.916-.999 5.91 1.249 1.336 3.025-2.203 5.126-2.044 7.785.154 2.591 3.494 1.58 4.89.923 2.872-1.35 5.119-3.853 6.676-6.571 2.407-4.204 4.125-10.222 3.075-15.026" transform="translate(77 58)"></path></g></g>',1),X9=[Y9];function K9(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...X9])}const Q9={render:K9},J9=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Cumbia" fill-rule="evenodd" stroke-width="1"><g id="Group" fill="#FFF" transform="translate(77 64)"><path id="Fill-1" d="M10.272 24.132c3.273-.559 5.73-3.554 5.18-6.788-.464-2.724-1.745-.343-2.976.853-1.335 1.298-2.45 2.574-4.536 2.054-3.607-.9-4.858-5.4-3.84-8.48a5.94 5.94 0 0 1 3.478-3.696c1.852-.746 3.204.09 4.748 1.094.289.187 1.73 1.37 1.994 1.25.462-.211.115-2.43.045-2.725-.338-1.421-1.266-2.575-2.617-3.238-3.333-1.635-7.514.489-9.64 3.055-4.884 5.897-.92 18.164 8.164 16.62"></path><path id="Fill-5" d="M20.283 5.038q0 .003 0 0m-1.594 12.865c.503 3.474 2.977 6.5 6.952 6.357 4.278-.155 6.056-4.098 7.008-7.486.957-3.399 2.052-7.683.664-11.093-.42-1.032-.685-2.38-1.716-1.53-1.252 1.033-1.409 4.039-1.515 5.442-.2 2.647-.781 9.97-4.108 10.944-4.179 1.222-4.048-5.847-4-7.977.04-1.896.246-3.734-.342-5.584-.313-.985-.59-2.44-1.528-1.634-1.29 1.108-1.453 3.828-1.544 5.327-.144 2.405-.214 4.842.129 7.234"></path><path id="Fill-7" d="M37.783 20.746c.188.412.624 1.402 1.02 1.679.944.66-.055.708.8-.059.813-.729 1.13-2.717 1.254-3.67.385-2.96-.12-6.108-.087-9.093 1.024 2.218 1.584 4.584 2.386 6.874.554 1.582 1.396 4.804 3.654 4.753 2.443-.055 2.57-3.145 2.894-4.819.461-2.37.97-4.721 1.676-7.037.092 3.91-1.427 10.995 2.108 13.92.014.013 1.432-4.15 1.467-4.406.223-1.691.083-3.444.107-5.148.051-3.597.718-8.003-.3-11.506C54.435 1.1 53.788-.03 52.354.001c-1.825.04-2.233 1.985-2.698 3.298-1.28 3.614-2.445 7.224-3.357 10.94-.548-1.68-5.339-16.421-8.789-10.901-.555.888-.315 2.218-.338 3.196-.044 1.879-.155 3.756-.196 5.635-.061 2.843-.41 5.907.808 8.577"></path><path id="Fill-9" d="M62.02 7.71c.72-.135 5.735-1.727 5.523-.136-.223 1.675-4.633 3.309-5.816 3.876a10.6 10.6 0 0 0-.643-3.567zm5.717-.64s-.027-.035 0 0m.122 8.341c2.272 1.22 1.287 3.417-.426 4.608-.649.45-6.53 1.802-6.513 1.663q.001.005-.004.005c.18-1.694-.257-5.018 1-6.02 1.304-1.04 4.5-.808 5.943-.256m.062-7.995c.009.022.001.002 0 0M57.944 24.26c.224.551.86 1.912 1.566 1.945.86.04.794-1.043.929-1.71 3.441 1.721 8.498-.047 10.907-3.03 2.787-3.45 1.348-8.27-2.579-9.745 2.113-1.688 4.026-5.399 1.255-7.49-2.196-1.655-5.828-1.747-8.123-.302-2.735 1.723-3.85 5.833-4.09 9.006-.255 3.382-1.158 8.125.135 11.326"></path><path id="Fill-11" d="M76.05 15.871c.074 2.07-.15 4.287.332 6.306.171.717.433 1.511.76 2.162.611 1.215.31 1.05 1.032.36 2.172-2.083 1.209-8.575 1.157-11.249-.041-2.078.064-4.28-.513-6.283-.162-.562-1.123-3.348-1.655-3.284-.816.098-1.376 3.93-1.423 4.693-.148 2.396.226 4.895.31 7.295"></path><path id="Fill-13" d="M94.748 16.43c-1.582-.137-3.622.075-5.117.557.697-1.916 1.475-4.054 2.238-5.79q.711-1.635 1.494-3.24c1.278 2.686 1.992 5.828 2.832 8.666q-.72-.13-1.447-.193m5.44.725c-.727-2.78-1.579-5.532-2.426-8.28-.538-1.743-1.13-3.911-2.6-5.168C91 .146 88.635 9.557 87.614 11.94c-.985 2.296-2.216 4.634-2.85 7.049a9.5 9.5 0 0 0-.244 3.652c.205 1.519-.004 1.741 1.294.914 1-.636 1.414-1.792 2.227-2.562.144-.136.218-.668.39-.755.188-.096 1.504.253 1.815.274 2.17.151 4.712-.218 6.715-1.054.205.842 1.627 5.962 2.977 5.773.597-.083.965-3.064.992-3.537.087-1.553-.352-3.049-.742-4.538"></path><path id="Fill-15" d="M109.302 3.432c-.264-1.203-.814-3.292-1.842-2.112-1.39 1.596-1.09 5.173-1.111 7.177-.015 1.451-1.552 12.062.556 11.883-.09 0 .845-1.668.98-1.922.815-1.524 1.131-2.97 1.329-4.722.365-3.237.783-7.111.088-10.304"></path><path id="Fill-17" d="M108.164 24.301c-2.24-2.728-6.311.658-5.041 3.374 1.729 3.7 7.331-.56 5.041-3.374"></path><path id="Fill-19" d="M94.898 28.545c-2.891-.738-6.297-.24-9.249-.152-3.081.092-6.16.264-9.24.357-6.568.198-13.124.092-19.692.038-12.454-.103-24.935.69-37.383.168-2.672-.112-5.545-.713-8.198-.209-.727.139-3.009.543-3.329 1.266-.336.76 1.402 1.555 2.331 1.955 2.422 1.044 5.329.858 7.9.964 2.93.12 5.887.058 8.819-.014 12.075-.297 24.089-1.343 36.18-1.165 6.976.103 13.937.038 20.912.001 3.32-.017 7 .526 10.273-.062.552-.1 3.763-.854 3.807-1.836.02-.453-2.806-1.228-3.13-1.311"></path></g></g></g>',1),em=[J9];function tm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...em])}const nm={render:tm},am=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Diamond" fill-rule="evenodd" stroke-width="1"><g id="Diamond" fill="#FFF" transform="translate(106 60)"><path id="Fill-21" d="M34.78 27.737c-2.389 2.656-4.857 5.243-7.335 7.82.985-3.553 1.74-7.578 3.204-10.958.417-.962.1-1.084.927-1.493.609-.301 2.078.043 2.807.062 1.557.039 3.15.192 4.696-.05a222 222 0 0 0-4.299 4.619m-15.264 4.061c-2.699-3.282-5.384-6.568-8.658-9.317 1.289.137 2.696-.043 3.958.206 1.944.384 1.837.99 2.82 2.959 1.45 2.906 2.889 5.789 4.05 8.823-.711-.9-1.441-1.785-2.17-2.67m-9.098-12.532c.963-1.575 1.144-2.972 2.92-3.78 2.06-.939 5.3-.742 7.488-.916-1.37 1.523-3.037 3.103-3.604 5.122-.874-1.718-1.962-3.174-3.67-4.17-.215-.107 1.158 4.55 1.338 4.87-1.716-.096-3.522-.408-5.225-.092zm16.406-5.008c1.591.036 3.17.16 4.74.42-1.267 1.674-1.649 3.631-2.099 5.63-.478-2.258-2.209-4.362-3.734-6.048zm-3.498 1.074c.234-.158 4.457 5.086 5.066 5.556-3.312-.008-6.618-.17-9.926-.315 1.907-1.487 3.023-3.688 4.86-5.24m2.686 17.095c-.401 1.349-.777 2.708-1.214 4.047-1.555-4.732-3.862-9.188-6.008-13.674 3.34.088 6.676.209 10.016.256-.82 3.158-1.862 6.245-2.794 9.37m7.23-17.462c1.277 1.128 3.097 3.44 3.686 4.217a10 10 0 0 0 .179.23c.21.261.966 1.255 1.263 1.644-2.227-.226-4.545-.13-6.78-.15.498-2.054 1.104-4.012.584-6.128q.536.086 1.068.187m7.648 5.617c-2.158-2.676-4.37-7.258-7.864-8.077-3.472-.814-7.548-.454-11.074-.23-3.075.194-8.083-.204-10.795 1.593-1.393.923-2.425 3.005-2.908 4.551-.434 1.393.266 2.285-1.246 2.285-.096 0 2.504 3.673 2.81 3.962 2.272 2.14 4.444 4.202 6.457 6.597 2.835 3.374 5.405 8.338 9.145 9.736-.686-.339 2.792-2.967 3.21-3.419 2.11-2.288 4.246-4.554 6.372-6.83 1.938-2.073 4.05-4.03 5.93-6.15 1.435-1.619 1.439-2.175-.037-4.018"></path><path id="Fill-23" d="M6.999 12c.043.014-.909-2.045-.825-1.919-.475-.719-1.046-1.24-1.738-1.727C3.708 7.843.127 7.254 0 7c1.494 2.652 4.167 4.128 6.999 5"></path><path id="Fill-25" d="M22.355 7.196A6.2 6.2 0 0 0 23.15 9c.07.078.859-4.184.85-4.547C23.988 3.832 23.613 0 22.815 0c-1.337 0-.674 6.47-.459 7.196"></path><path id="Fill-27" d="M48.97 5c-2.992 0-9.68 5.854-8.908 9 .005.01.447-.35.35-.283l.057-.043c1.272-1.025 2.718-2.02 3.992-3.206.911-.85 1.987-1.612 2.816-2.54C47.362 7.832 49.263 5 48.97 5"></path></g></g></g>',1),om=[am];function rm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...om])}const im={render:rm},sm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Pizza" fill-rule="evenodd" stroke-width="1"><g id="Group-2" fill="#FFF" transform="translate(112 59)"><path id="Fill-29" d="M30.933 24.391c-4.082 1.38-8.55 3.324-10.905 7.074-1.847 2.942-1.971-.455-4.55.593-2.508 1.019-1.822 5.223-2.733 7.301-.708-1.191-1.043-2.516-1.935-3.604a6.6 6.6 0 0 0 1.814-1.724c.156-.32-4.792.348-5.076.43-1.411.401-2.74.77-4.088 1.429a79 79 0 0 0 1.965-2.989q.31-1.02 1.108-.006c.748.036 1.178.357 1.962.177 2.915-.667 3.843-6.223.25-5.987a93 93 0 0 0 4.253-8.802c.502 4.291 6.08 2.813 7.719.525 2.14-2.989-.604-8.662-4.484-8.112.581-1.375 1.17-2.762 1.65-4.178 1.092 1.61 3.001 2.39 4.538 3.457a18.2 18.2 0 0 1 4.163 4.006c2.386 3.14 3.793 7.007 6.215 10.052a7 7 0 0 0-1.866.358m9.006-4.388c-.632-5.757-5.15-11.601-9.44-15.176-2.55-2.125-10.24-7.385-13.306-3.34 2.472 1.071 5.2 1.33 7.65 2.489 3.32 1.572 5.922 4.16 8.168 7.055 3.137 4.045 7.97 12.283.474 14.386.518-.338.819-.709 1.228-1.308-1.007-.233-.6-1.878-.954-2.952-.412-1.25-1.21-2.467-1.884-3.582a57 57 0 0 0-3.504-5.171c-1.678-2.186-3.686-3.907-5.977-5.396-.907-.589-1.775-1.11-2.817-1.415-1.349-.394-.907.086-1.276-1.146-.232-.773-.024-1.763-.246-2.592-1.973 1.658-2.615 4.055-3.5 6.381-1.02 2.684-2.122 5.335-3.196 7.997-2.635 6.535-6.034 12.395-9.891 18.247-.672 1.02-2.165 2.95-1.09 4.174.96 1.095 2.33.306 3.386-.139 1.436-.604 3.385-2.164 4.935-1.347 1.998 1.054 1.054 4.984 4.214 4.827 3.114-.154 2.527-5.28 3.527-7.317 2.311 1.685 4.175.64 5.579-1.611 1.626-2.61 3.775-3.657 6.513-4.938 1.12-.524 3.034-1.94 4.2-2.115.966-.145 1.893.883 3.184.837 3.098-.113 4.392-4.253 4.023-6.848"></path><path id="Fill-31" d="M18.537 22.834c-2.425-.445-5.807-.074-6.029 3.153-.136 1.978 1.41 3.848 3.082 4.664 5.122 2.5 9.109-6.688 2.947-7.817"></path><path id="Fill-33" d="M28.336 19.158c-.65-.706-1.703-1.24-2.675-.993.31-.214.568-.6.864-.839-3.156-2.286-5.14 3.479-3.346 5.748 2.717 3.44 8.037-.766 5.157-3.916"></path></g></g></g>',1),lm=[sm];function cm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lm])}const dm={render:cm},um=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Selena" fill-rule="evenodd" stroke-width="1"><g id="Selena" fill="#FFF" transform="translate(94 58)"><path id="Bom-Bom" d="M65.303 7.568c-.156.93-1.922 5.089-3.229 2.95-.509-.832.402-3.46.685-4.209.558-1.472.974-1.638 2.263-2.33.109 1.188.411 2.398.281 3.589m-2.984 3.319c.03.012.158.132 0 0m-.008-.007c-.006-.004 0 0 0 0M55.03 6.205c.01.008.053.042 0 0M42.555 11.16c-.207 1.22-.475 2.439-.904 3.6-.17-1.732.103-3.456 1-4.95q-.015.676-.096 1.35m-.01-2.502c-.004-.016-.159-.24 0 0M25.908 18.803c.153-1.533.768-3.017 1.906-4.044-.277 1.625-1.072 2.67-1.906 4.044m49.93-13.506c0 .637-2.06 2.335-2.574 2.803-.879.799-1.815 1.44-3.077 1.254-3.462-.51-2.09-4.206-2.641-6.481-.434-1.788-.879-1.114-2.082-1.227-1.118-.104-1.518-.656-2.682.187-2.096 1.519-3.766 3.496-4.659 5.98-.324-1.695-1.245-4.503-3.452-4.093-1.632.303-2.984 2.926-3.663 4.243-.052-1.198-.668-3.076-2.175-2.218-1.036.589-.991 3.381-1.218 4.41-.465 2.111-1.379 7.617-4.644 6.901 1.029-1.918 3.28-7.97 1.35-9.937-2.712-2.762-4.775 4.156-4.886 5.84-.08 1.205.806 3.944.329 4.692-.585.918-2.428 1.313-3.303.641-1.405-1.078-.85-2.83-.53-4.199.422-1.794.62-3.597.734-5.437.085-1.38 1.286-7.548-1.028-7.632-2.095-.075-2.309 5.138-2.458 6.563-.185 1.751-.296 3.525-.235 5.288.062 1.782.394 2.97-.297 4.643-.74 1.793-4.264 7.17-6.373 3.6 2.24-.983 4.911-5.518 3.71-8.067-1.667-3.534-5.416 1.85-5.96 3.656-.877 2.915-.491 6.722 2.864 7.671 3.493.989 6.19-2.286 7.421-5.18 1.002 1.588 2.845 1.986 4.55 1.505a5.8 5.8 0 0 0 1.89-.947c1.07-.81.444-.509 1.58-.542 3.297-.094 5.096-1.153 6.332-4.545-.015.934.343 2.36 1.598 1.849.974-.397.968-2.01 1.148-2.87.57-2.713 1.466-5.541 3.599-7.422 1.84 2.002.48 5.427 1.69 7.56 1.868 3.288 2.808-2.532 3.1-3.654.057 4.882 5.861 3.084 7.118-.157 3.3 3.515 10.234.349 8.923-4.678"></path><path id="Bidi" d="M69.434 15.349c-3.63 0-7.605 1.026-11.127 1.817a98 98 0 0 0-10.502 2.97c-3.871 1.339-7.812 2.554-11.59 4.122-3.276 1.36-7.508 2.353-9.512 5.416-.004.008 2.102-.088 2.272-.117 1.05-.174 1.952-.543 2.917-.956 1.747-.746 3.482-1.519 5.224-2.276 3.904-1.698 7.98-3.095 11.988-4.554 3.996-1.453 8.095-2.685 12.255-3.625 3.39-.767 7.182-.914 10.303-2.273q-.176.066.23-.091c-.079.038-2.221-.433-2.458-.433m-47.317 5.476c-2.27-.998-5.477-.558-7.835-.239-2.143.29-5.496.935-6.833 1.108-1.106.14-4.406 1.04-5.01-.197-.649-1.331 2.72-5.403 3.456-6.363 3.315-4.32 7.3-9.12 12.08-11.923-.44 1.95-.825 3.918-1.227 5.876-.166.808-.95 5.164.486 5.508.59.14 1.772-2.783 1.87-3.044.823-2.19 1.012-4.71 1.391-7.002.217-1.311 1.2-4.05-.694-4.502-1.629-.389-3.836 1.727-4.923 2.619-3.282 2.692-6.127 5.947-8.787 9.22-1.31 1.613-2.615 3.234-3.714 4.997-.904 1.45-3.09 4.49-2.145 6.282 1.698 3.221 9.84.398 12.432-.032 2.045-.339 4.152-.66 6.227-.376 2.162.295 2.057 1.27 1.339 3.196-1.478 3.96-4.776 7.36-7.724 10.32-1.299 1.303-6.38 7.419-7.66 4.091-.87-2.26-.1-5.035.9-7.114.468-.973 1.089-1.861 1.577-2.824.133-.263.802-2.425.947-2.473-3.87 1.35-6.117 6.585-6.332 10.287-.102 1.741.136 4.324 1.8 5.368s3.226-.227 4.549-1.185c3.642-2.64 6.891-5.998 9.865-9.335 1.626-1.824 8.453-10.287 3.965-12.263"></path></g></g></g>',1),mm=[um];function fm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...mm])}const hm={render:fm},pm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull-Outline" fill-rule="evenodd" stroke-width="1"><g id="Skull" fill="#FFF" transform="translate(113 59)"><path id="Boo!" d="M36.335 17.04c-.18 1.038-.442 2.069-.988 2.989-.72 1.211-2.026 1.707-2.783 2.818-1.193 1.752.392 4.276-.786 5.837-1.266 1.68-4.142.663-5.262 2.892-1.18 2.35.538 5.492-.943 7.83-1.47-.37-1.922-5.886-4.189-2.367-1.452 2.254-.471 3.475-2.649.235-.756-1.125-1.61-2.136-3.096-1.393-1.043.521-1.258 2.837-2.21 3.086-2.333.612-2.418-5.617-3.212-6.796-.436-.648-.842-1.032-1.617-1.277-.672-.213-1.869.215-2.425-.1-1.045-.592-1.186-2.556-1.225-3.598-.074-1.939.575-3.919.04-5.838-.451-1.612-1.887-2.603-2.357-4.183C.1 8.64 11.683 3.895 18.3 3.63c7.74-.31 19.037 4.222 18.036 13.41m1.838-5.316c-1.456-3.441-4.655-6.177-7.915-8.013a18.5 18.5 0 0 0-5.085-1.94c-1.641-.36-3.558-.123-5.125-.576C18.728.812 17.91-.048 16.356.002c-2.118.068-4.319 1.172-6.168 2.086-3.66 1.807-6.771 4.148-8.726 7.743-2.098 3.859-1.9 7.356.349 10.952 2.145 3.434-.974 8.262 2.167 11.526C5.3 33.68 6.6 32.68 7.85 33.34c.962.508.921 3.462 1.188 4.328 1.2 3.893 5.514 5.4 7.506 1.191.94 2.353 4.655 4.764 6.385 1.686 1.082 1.4 2.954 1.995 4.383.795 1.344-1.128 1.492-3.755 1.56-5.343.054-1.238-.497-2.764.454-3.658 1.047-.984 3.194-.57 4.37-1.839 1.34-1.45.789-3.146.892-4.872.104-1.746.416-1.301 1.71-2.562 2.885-2.81 3.374-7.807 1.875-11.343"></path><path id="Boo!" d="M14.42 28.121c2.02-1.822 1.591-7.397 1.424-9.959-.316-4.86-3.355-3.408-5.206-.38-1.4 2.29-4.766 5.994-3.257 8.876 1.202 2.296 5.18 3.136 7.039 1.463m13.37-8.847c-1.034-1.92-1.42-2.212-2.65-3.785-.791-1.011-1.9-2.802-3.404-2.442-2.582.62-1.528 6.612-1.498 8.402.024 1.358-.277 2.765.851 3.728 1.155.986 3.053.897 4.44.69 4.259-.633 4.062-3.253 2.262-6.593M19.24 31.83c-.284-.036.077-.362.12-.587.187.614.326.643-.12.587m1.045-4.31c-2.617-2.77-7.574 6.397-4.08 7.425.805.237 1.4-.363 2.155-.468 1.1-.153 2.024.487 2.973-.522 1.491-1.584.187-5.098-1.048-6.436"></path></g></g></g>',1),gm=[pm];function ym(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gm])}const km={render:ym},xm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Bear" fill-rule="evenodd" stroke-width="1"><defs><path id="poly-1" d="M47.892.43v41.49H.453V.43z"></path></defs><g id="Group-76" transform="translate(108 59)"><path id="Fill-74" fill="#FFF" d="M34.447 31.586c-.479 2.816-4.08 7.345-7.147 4.384-3.467-3.344 4.225-4.81 1.481-7.594-1.184-1.2-4.412-.537-6.002-.41-1.49.117-3.866.454-3.296 2.624.433 1.65 1.71.944 2.389 1.892.535.748.308 3.507-.49 4.267-1.002.956-2.189.663-3.584.05-3.192-1.4-4.677-5.312-2.575-8.216 4.155-5.741 20.067-7.059 19.224 3.003M14.985 14.724c.985-.443 2.148-.203 2.732.787.802 1.356-.357 3.173-1.975 2.956-1.707-.23-2.57-2.919-.757-3.743m17.962 1.655c-.856 3.006-5.636-.378-2.936-2.29 1.552-1.099 3.447.491 2.936 2.29m14.88 6.79c-.236-2.38-.9-4.646-2.088-6.73-.623-1.093-1.393-2.111-2.19-3.081-.3-.365-.906-1.008-1.023-1.213-.709-1.24-.638-.362-.247-1.785.616-2.243 1.947-4.08.884-6.49-.99-2.24-3.655-3.293-5.984-3.426a8.2 8.2 0 0 0-3.207.449c-1.035.368-2.001 1.64-2.9 1.9-.698.204-2.685-.46-3.441-.508-1.395-.089-2.798-.05-4.192.034-1.63.096-5.376 1.263-6.913.877-1.015-.255-2.209-1.781-3.381-2.164C11.853.61 10.467.468 9.178.954c-2.285.864-4 3.552-4.053 5.942-.028 1.255.655 2.115.79 3.25.203 1.716.437.357-.487 1.726-.47.697-1.295 1.31-1.824 1.982C.779 17.44-.28 22.732.974 27.074c3.159 10.94 13.668 15.394 24.44 14.793 9.25-.516 23.564-7.718 22.413-18.698"></path></g></g></g>',1),bm=[xm];function wm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bm])}const Em={render:wm},vm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Deer" fill="#FFF" fill-rule="evenodd"><path id="oh,-deer!" d="M76.96 16.235c.395 1.425-2.228 2.67-3.106 3.419-1.507 1.283-3.065 2.634-4.825 3.547-.748.388-1.553.703-2.362.935-1.247.357-1.104.107-1.58 1.165-.838 1.86-1.055 4.334-1.812 6.312-1.704 4.454-5.767 14.8-12.267 10.259-2.068-1.445-3.197-4.247-4.36-6.436-1.335-2.512-2.613-5.508-3.381-8.25-.375-1.336-.137-1.79-1.13-2.415-.622-.392-1.679-.493-2.383-.78-1.5-.61-2.813-1.436-4.088-2.43-1.238-.966-6.11-4.951-2.132-5.691 1.825-.34 4.217-.214 6.067-.12 2.027.102 4.073.57 5.876 1.535 1.841.987 1.301.701 3.21.15-3.322-1.126-6.649-2.998-8.884-5.781-1.207-1.503-4-7.654-1.9-9.065 2.52-1.696 2.73 5.346 3.439 6.567 1.592 2.744 4.508 3.78 7.042 5.299-1.74-1.668-3.04-3.505-3.673-5.868-.275-1.025-1.026-3.489-.519-4.486.529-1.04 1.772-1.106 2.458-.22.618.797.462 2.63.674 3.591.35 1.589.921 2.81 1.982 4.04 1.505 1.747 3.417 3.175 5.669 3.728 5.127 1.258 6.92-4.108 7.608-8.245.168-1.013-.08-2.693 1.05-3.18 1.367-.588 1.896.747 1.936 1.782.087 2.314-1.056 5.857-2.166 7.845 2.79-1.732 5.003-4.478 5.899-7.688.33-1.188.062-3.836 1.174-4.503 1.54-.924 2.029.917 1.975 2.022-.319 6.515-5.298 12.44-11.488 14.069 1.518.759 1.318.93 2.848.023.885-.525 1.845-.93 2.827-1.23 1.47-.452 3.055-.682 4.58-.817 1.22-.107 5.274-.817 5.742.917m-18.1 8.386c.86-2.138-2.496-2.216-2.822.095-.416 2.945 2.755 3.176 2.822-.095m-1.93 9.016c.659-2.196-3.526-2.112-3.896-.17-.436 2.291 3.406 1.73 3.896.17M51.702 27c2.324 0 3.272-3.065.997-3.861-2.89-1.013-3.815 3.861-.997 3.861" transform="translate(77 58)"></path></g></g>',1),Cm=[vm];function Sm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Cm])}const Bm={render:Sm},Vm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Hola" fill="#FFF" fill-rule="evenodd"><path id="Hola" d="M74.637 16.948c1.28 5.762-.904 11.244-5.33 15.004-2.08 1.768-4.434 3.074-7.056 3.835a25 25 0 0 1-4.497.87c-1.136.111-2.784-.4-3.79-.111-1.12.321-2.559 1.865-3.757 2.362a20 20 0 0 1-2.068.727c-1.506.438-3.065.734-4.613.977-1.602.25-8.283 1.302-7.455-1.637.284-1.01 3.11-2.504 3.724-3.184.454-.502 3.145-3.364 3.019-4.295-.04-.294-1.747-1.63-2.148-2.08-.909-1.019-1.762-2.058-2.245-3.351-.829-2.216-.786-4.998-.51-7.32.688-5.804 3.566-9.659 8.602-12.55 2.855-1.637 5.96-2.538 9.205-2.934 3.956-.483 7.11-.498 10.467 1.75 4.42 2.96 7.275 6.668 8.452 11.937m-5.131 6.988c1.086-.3-.308-3.053-1.079-1.72-.277.48.463 1.889 1.079 1.72m-1.821-5.322c.088.36.434.47.748.427.75-.104.28-.981.301-1.373.04-.749.107-2.639-.172-3.32-.513-1.254-.975-1.014-1.274.214-.267 1.1.123 2.947.397 4.052m-1.048 4.279c.843-.498-1.38-6.176-1.868-6.988-1.892-3.145-2.504 2.431-2.794 3.81-.125.596-1.518 6.781.339 4.787.99-1.064-.558-4.602 2.243-3.78.984.29.272.207.874 1.11.22.33.458 1.5 1.206 1.06Zm-6.342-1.294c.786-1.35-2.665-.721-3.062-.697.094-1.8.445-3.623.44-5.422 0-.475.165-2.191-.958-1.381-.454.327-.298 1.83-.336 2.28-.09 1.057-.948 4.707-.108 5.56.595.603 3.693.22 4.024-.34m-4.799-2.44c.338-1.344-.084-4.253-1.845-4.28-.613-.008-.335.831-.487.92-1.065.621-1.528.542-2.16 1.646-2.486 4.35 3.067 7.445 4.492 1.714m-6.027 3.83c.761-.21.546-9.977-.331-9.983-1.51-.008-.063 4.84-.635 5.49-.17.196-1.026.015-1.25.056-1.14.212-1.89.092-2.24-.606-.312-.62.36-4.88-1.258-2.79q.023 1.107.035 2.213.504 1.072-.376 1.306c-.03.47.392.864.397 1.017.025.771-.484 4.231.9 4.064.885-.107.32-3.481.317-4.03 1.143.027 2.34.155 3.475.008.006.427-.288 3.603.966 3.256ZM63.837 17A19 19 0 0 1 65 18.842q-.999.086-2 .158c.272-.668.544-1.335.837-2m-9.914 0c.145.423.256 3.288-1.355 2.976-.92-.177-.507-1.764-.246-2.091.55-.69.873-.448 1.601-.885" transform="translate(77 58)"></path></g></g>',1),Mm=[Vm];function Nm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mm])}const Am={render:Nm},Tm=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Resist" fill-rule="evenodd" stroke-width="1"><g id="Resist" fill="#FFF" transform="translate(80 67)"><path id="!" d="M102.565 21.071c-3.082-.666-5.192 3.535-1.912 4.784 2.815 1.072 4.845-4.145 1.912-4.784"></path><path id="H" d="M101.191 18c3.657 0 2.308-5.981 2.321-7.965.014-2.137 1.545-8.596-.89-9.734-4.216-1.971-3.06 6.325-3.034 7.968.028 1.816.167 3.72-.229 5.508-.35 1.58-1.129 4.223 1.832 4.223"></path><path id="C" d="M96.058 1.974c-1.082-.622-2.801-.32-3.987-.374-1.349-.06-2.69-.195-4.035-.293-2.177-.16-4.956-.563-7.118-.068-1.226.28-2.338 1.225-1.761 2.608.62 1.49 2.303 1.105 3.58 1.03.585-.035 2.033-.29 2.605-.089.997.35.573-.108.801 1.067.349 1.807.14 4 .125 5.838-.026 3.174-.036 6.364-.103 9.536-.026 1.236-.44 2.632.757 3.448.998.68 2.216.225 2.733-.793.514-1.013.026-3.067-.029-4.196-.066-1.347-.136-2.676-.097-4.025.104-3.585.282-7.167.368-10.754.943.046 1.922.018 2.856.15.683.095 1.665.535 2.322.5 1.9-.1 2.694-2.587.983-3.585"></path><path id="A" d="M67.722 8.813c-.012-.053-.082-.644 0 0m-.037-.276c.004.025 0 .008 0 0m1.432-3.11c3.416-3.981 4.583 4.347 7.246 3.995 4.26-.564-.941-6.953-2.669-7.776-3.515-1.675-6.605.08-8.277 3.267-2.098 4-.77 6.708 3.258 8.444 1.471.635 7.04 2.528 5.53 4.959-.76 1.224-3.526 1.329-4.7 1.086-2.356-.486-1.989-2.086-3.135-3.573-1.033-1.34-3.03-.947-3.342.781-.245 1.358 1.17 3.425 2.115 4.38 2.233 2.256 6.04 2.437 8.887 1.41 4.386-1.583 4.917-5.71 1.806-8.905-1.749-1.795-3.933-2.34-6.113-3.418-2.645-1.306-2.15-2.39-.606-4.65"></path><path id="E" d="M58.75 20.568c-.564-4.825-.696-9.717-.78-14.563-.027-1.554.706-5.206-1.453-5.865-2.915-.89-2.528 2.692-2.467 4.164.205 4.913.842 9.789 1.071 14.696.073 1.557-.429 4.574 1.831 4.946 2.75.454 2.008-2.081 1.798-3.378"></path><path id="P" d="M49.472 4.68c-2.36-3.159-7.154-3.669-10.09-.758-2.072 2.054-3.377 6.92-1.416 9.403 2.124 2.691 7.355.332 8.725 3.383 1.682 3.743-2.73 5.148-5.074 2.663-.843-.894-.659-2.454-1.9-3.007-1.763-.785-2.864.928-2.517 2.359.848 3.5 4.652 5.39 8.101 5.272 3.768-.13 5.402-2.977 5.163-6.4-.33-4.735-3.985-5.476-7.99-5.998-1.698-.22-1.92-.2-1.816-1.952.128-2.118 1.37-4.567 3.991-4.063 2.106.405 2.294 3.571 4.455 3.718 3.496.239 1.256-3.433.368-4.62"></path><path id="M" d="M31.721 20.438c-1.337.32-2.963.098-4.327.073-1.053-.019-4.574.427-5.261-.296-.76-.8-.513-3.247-.545-4.286-.046-1.454-.404-1.67.872-2 .749-.193 1.907-.096 2.682-.131 1.515-.07 3.465.21 4.93-.088 1.37-.28 2.502-1.751 1.25-3.004-.886-.888-2.542-.411-3.631-.386-2.034.046-4.069.036-6.103.072.008-1.568-.043-3.147.079-4.71 2.847.14 5.812.881 8.659.745 1.44-.07 3.04-.992 2.31-2.73-.624-1.49-2.521-1.287-3.843-1.346-1.653-.075-3.308-.113-4.962-.17-1.224-.042-3.005-.445-4.159.107-2.362 1.13-1.55 5.01-1.485 7.112.084 2.666.085 5.268.177 7.956.084 2.433-.037 5.641 2.852 6.325 2.89.684 6.245.033 9.192.176 1.209.058 2.861.41 3.455-.996.569-1.349-.73-2.774-2.142-2.423"></path><path id="I" d="M8.41 5.88c2.321.5 2.942 3.014 3.02 5.149.054 1.46.183 1.373-1.003 1.74-1.19.368-2.92.169-4.139.116-2.543-.11-2.235-.278-2.284-2.945-.012-.625-.475-3.504-.108-3.91.476-.528 3.839-.203 4.514-.15m5.077 14.838c-1.29-1.504-2.586-2.94-4.034-4.286 2.158-.06 4.503-.473 5.27-2.819.648-1.982.085-5-.668-6.872-.994-2.47-3.062-4.119-5.635-4.478-1.796-.251-6.278-.673-7.62.71C-.665 4.482.352 8.623.442 10.47c.16 3.271.044 6.518-.157 9.785-.064 1.055-.582 2.787-.041 3.737.6 1.054 2.059 1.317 2.969.537.984-.844.529-1.878.468-2.961-.093-1.676.075-3.404.174-5.074 1.608 1.312 3.25 2.591 4.762 4.022 1.493 1.414 2.564 3.202 3.99 4.627 1.011 1.01 2.82 1.425 3.331-.448.44-1.608-1.571-2.951-2.451-3.977"></path></g></g></g>',1),Dm=[Tm];function Lm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Dm])}const Fm={render:Lm},$m=e.createStaticVNode('<g id="Clothing/Graphic-Shirt" transform="translate(0 170)"><defs><path id="react-path-1153" d="M165.624 29.268C202.76 32.138 232 63.18 232 101.052V110H32v-8.948c0-38.217 29.775-69.48 67.393-71.855A14 14 0 0 0 99 32.5C99 44.374 113.998 54 132.5 54S166 44.374 166 32.5c0-1.098-.128-2.178-.376-3.232"></path></defs><mask id="react-mask-1154" fill="#fff"><use href="#react-path-1153"></use></mask><use id="Clothes" fill="#E6E6E6" fill-rule="evenodd" href="#react-path-1153"></use><g id="Color/Palette/" fill="var(--avataaar-shirt-color)" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Color" d="M0 0h264v110H0z"></path></g><g id="Clothing/Graphic/Skull" fill="#FFF" fill-rule="evenodd" mask="url(#react-mask-1154)"><path id="Fill-49" d="M65.282 19.929c-.298 2.777-5.693 4.274-7.672 2.448-.912-.842-.927-2.574-1.128-3.702-.38-2.133-.656-4.258-.751-6.423-.058-1.325-.406-2.385 1.044-2.582.883-.12 1.793.468 2.515.933 2.447 1.573 6.33 6.138 5.992 9.326m-12.4-5.853c.284 2.825 1.32 7.739-.936 10.105-2.016 2.115-6.16.018-6.783-2.473-.773-3.09 2.275-6.78 4.145-8.87.574-.641 1.844-2.412 2.836-1.82.382.228.693 2.612.737 3.058m1.44 11.03c.647-1.523 6.913 3.019 3.953 5.18-.482.352-4.16 1.465-4.864.941-1.485-1.103.43-4.964.911-6.12m19.004-7.58c-.443-15.476-20.26-19.84-30.85-11.023-4.048 3.372-6.362 7.5-6.468 12.779-.09 4.471.619 8.689 4.034 11.764 1.481 1.333 2.46 2.149 3.245 3.97.824 1.906 1.2 4.335 2.742 5.833.85.825 2.09 1.492 3.266.96 2.162-.98 1.47-3.978 2.125-5.65 2.037 4.97 7.211 6.554 8.15.25 1.031 1.819 3.726 4.2 5.7 2.21.812-.82.934-2.15 1.072-3.227.245-1.912-.18-2.664 1.355-3.975 4.039-3.45 5.773-8.672 5.63-13.891" transform="translate(77 58)"></path></g></g>',1),Pm=[$m];function Om(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Pm])}const _m={render:Om},Rm={Bat:Q9,Cumbia:nm,Diamond:im,Pizza:dm,Selena:hm,SkullOutline:km,Bear:Em,Deer:Bm,Hola:Am,Resist:Fm,Skull:_m},Hm=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Closed",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Closed-Eye",d:"M16.16 32.447C18.007 28.65 22.164 26 26.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 28.65 80.164 26 84.998 26c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125",transform:"matrix(1 0 0 -1 0 60)"})])],-1),zm=[Hm];function jm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zm])}const Gm={render:jm},qm=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("circle",{id:"Eye",cx:"82",cy:"22",r:"6"})],-1),Im=[qm];function Wm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Im])}const Um={render:Wm},Zm=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Eye-Roll" transform="translate(0 8)"><circle id="Eyeball" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="The-white-stuff" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="14" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="14" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Ym=[Zm];function Xm(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ym])}const Km={render:Xm},Qm=e.createElementVNode("g",{fill:"#FF5353",class:"CustomColor",opacity:".8",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Heart",d:"M35.958 10c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C17.552 10 14 13.334 14 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C40.585 26.77 45 23.37 45 17.64c0-4.306-3.552-7.64-9.042-7.64m53 0c-2.55 0-5.074 1.98-6.458 3.82-1.39-1.84-3.907-3.82-6.458-3.82C70.552 10 67 13.334 67 17.641c0 5.73 4.412 9.13 9.042 12.736 1.653 1.236 4.78 4.4 5.166 5.094.386.693 2.106.718 2.584 0 .477-.718 3.51-3.858 5.166-5.094C93.585 26.77 98 23.37 98 17.64c0-4.306-3.552-7.64-9.042-7.64"})],-1),Jm=[Qm];function ef(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Jm])}const tf={render:ef},nf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Squint" transform="translate(0 8)"><defs><path id="Eye1" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path><path id="Eye2" d="M14 14.048c9.61 0 14 4.451 14-2.486C28 4.624 21.732 0 14 0S0 4.624 0 11.562s4.39 2.486 14 2.486"></path></defs><g id="Eye" transform="translate(16 13)"><mask id="EyeMask1" fill="#fff"><use href="#Eye1"></use></mask><use id="The-white-stuff" fill="#FFF" href="#Eye1"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url(&#39;#EyeMask1&#39;)" opacity=".7"></circle></g><g id="Eye" transform="translate(68 13)"><mask id="EyeMask2" fill="#fff"><use href="#Eye2"></use></mask><use id="Eyeball-Mask" fill="#FFF" href="#Eye2"></use><circle cx="14" cy="10" r="6" class="CustomColor" mask="url(&#39;#EyeMask2&#39;)" opacity=".7"></circle></g></g></g>',1),af=[nf];function of(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...af])}const rf={render:of},sf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Wink",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("circle",{id:"Eye",cx:"30",cy:"22",r:"6"}),e.createElementVNode("path",{id:"Winky-Wink",d:"M70.412 24.205c1.847-3.799 6.005-6.447 10.838-6.447 4.816 0 8.961 2.63 10.818 6.407.551 1.122-.234 2.04-1.025 1.36-2.451-2.108-5.932-3.424-9.793-3.424-3.74 0-7.124 1.235-9.56 3.228-.891.729-1.818-.013-1.278-1.124",transform:"rotate(-4 81.252 21.758)"})])],-1),lf=[sf];function cf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...lf])}const df={render:cf},uf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Cry" transform="translate(0 8)"><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".6"></circle><path id="Drop" fill="#92D9FF" d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27"></path><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".6"></circle></g></g>',1),mf=[uf];function ff(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...mf])}const hf={render:ff},pf=e.createElementVNode("g",{class:"CustomColor",opacity:".6",transform:"translate(76 90)"},[e.createElementVNode("path",{id:"Eye",d:"m29 25.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L32.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L29 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0zm54 0 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L86.2 22l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L83 18.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0z"})],-1),gf=[pf];function yf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...gf])}const kf={render:yf},xf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Happy",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Squint",d:"M16.16 22.447C18.007 18.65 22.164 16 26.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125m58 0C76.007 18.65 80.164 16 84.998 16c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125"})])],-1),bf=[xf];function wf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...bf])}const Ef={render:wf},vf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyes/Side",opacity:".6",transform:"translate(0 8)"},[e.createElementVNode("path",{id:"Eye",d:"M27.241 20.346a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C33.9 17.317 30.506 16 26.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228zm58 0a6 6 0 1 0 10.699 2.8 2 2 0 0 0-.125-.739 8 8 0 0 0-.144-.372 6 6 0 0 0-1.646-2.484C91.9 17.317 88.506 16 84.998 16c-4.834 0-8.991 2.649-10.838 6.447-.54 1.111.387 1.853 1.278 1.125 2.436-1.993 5.82-3.228 9.56-3.228z"})])],-1),Cf=[vf];function Sf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Cf])}const Bf={render:Sf},Vf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Surprised" transform="translate(0 8)"><circle id="The-White-Stuff" cx="30" cy="22" r="14" fill="#FFF"></circle><circle id="Eye-Ball" cx="82" cy="22" r="14" fill="#FFF"></circle><circle cx="30" cy="22" r="6" class="CustomColor" opacity=".7"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle></g></g>',1),Mf=[Vf];function Nf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Mf])}const Af={render:Nf},Tf=e.createStaticVNode('<g transform="translate(76 82)"><g id="Eyes/Wink-Wacky" transform="translate(0 8)"><circle id="cornea" cx="82" cy="22" r="12" fill="#FFF"></circle><circle cx="82" cy="22" r="6" class="CustomColor" opacity=".7"></circle><path id="Winky-Doodle" fill="#000" d="M16.16 25.447C18.007 21.65 22.164 19 26.998 19c4.816 0 8.961 2.63 10.817 6.407.552 1.122-.233 2.04-1.024 1.36-2.451-2.107-5.932-3.423-9.793-3.423-3.74 0-7.124 1.235-9.56 3.228-.891.728-1.818-.014-1.278-1.125" opacity=".6"></path></g></g>',1),Df=[Tf];function Lf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Df])}const Ff={render:Lf},$f={Close:Gm,Default:Um,EyeRoll:Km,Hearts:tf,Squint:rf,Wink:df,Cry:hf,Dizzy:kf,Happy:Ef,Side:Bf,Surprised:Af,WinkWacky:Ff},Pf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Angry",d:"M15.611 15.185c4.24-5.769 6.878-5.484 13.313-.629l.67.508C34.422 18.726 36.708 20 40 20a2 2 0 1 0 0-4c-2.066 0-3.901-1.022-7.989-4.123-.375-.285-.492-.373-.678-.513-3.76-2.837-5.959-4.077-8.695-4.372-3.684-.398-7.058 1.482-10.25 5.823a2 2 0 0 0 3.223 2.37m80.777 0c-4.24-5.769-6.877-5.484-13.312-.629l-.67.508C77.578 18.726 75.292 20 72 20a2 2 0 1 1 0-4c2.066 0 3.901-1.022 7.989-4.123.375-.285.492-.373.678-.513 3.76-2.837 5.959-4.077 8.695-4.372 3.684-.398 7.058 1.482 10.25 5.823a2 2 0 0 1-3.224 2.37",class:"CustomColor",opacity:".6"})],-1),Of=[Pf];function _f(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Of])}const Rf={render:_f},Hf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Flat-Natural",d:"M38.66 11.09c-4.998.362-9.923.086-14.918-.122-3.83-.158-7.717-.681-11.374 1.012-.7.324-4.53 2.28-4.44 3.349.07.855 3.935 2.191 4.63 2.436 3.67 1.29 7.181.896 10.954.67 4.628-.278 9.236-.074 13.861-.214 3.116-.093 7.917-.62 9.457-4.398.464-1.137.105-3.413-.36-4.657-.185-.496-.72-.683-1.125-.397-1.45 1.023-4.261 2.146-6.685 2.321m34.68 0c4.998.362 9.923.086 14.918-.122 3.83-.158 7.717-.681 11.374 1.012.7.324 4.53 2.28 4.44 3.349-.07.855-3.935 2.191-4.63 2.436-3.67 1.29-7.181.896-10.954.67-4.628-.278-9.236-.074-13.861-.214-3.116-.093-7.917-.62-9.457-4.398-.464-1.137-.105-3.413.36-4.657.185-.496.72-.683 1.125-.397 1.45 1.023 4.261 2.146 6.685 2.321",class:"CustomColor",opacity:".6"})],-1),zf=[Hf];function jf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...zf])}const Gf={render:jf},qf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Sad-Concerned",d:"M38.028 5.591c-1.48 8.389-14.09 14.18-23.238 10.432-1.015-.416-2.19.031-2.627.999s.033 2.09 1.048 2.505c11.444 4.69 26.835-2.38 28.762-13.303.183-1.039-.551-2.023-1.64-2.197-1.09-.175-2.122.525-2.305 1.564m35.945 0c1.48 8.389 14.09 14.18 23.238 10.432 1.014-.416 2.19.031 2.627.999s-.033 2.09-1.048 2.505c-11.444 4.69-26.835-2.38-28.762-13.303-.183-1.039.551-2.023 1.64-2.197 1.09-.175 2.121.525 2.305 1.564",class:"CustomColor",opacity:".6"})],-1),If=[qf];function Wf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...If])}const Uf={render:Wf},Zf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Up-Down-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303M86.993 12.07c5.761.773 14.746 5.795 13.994 11.607-.024.19-.312.25-.436.091-2.487-3.188-21.712-7.872-28.714-6.894-.64.09-1.063-.571-.626-.984 3.744-3.535 10.62-4.518 15.782-3.82",class:"CustomColor",opacity:".6"})],-1),Yf=[Zf];function Xf(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Yf])}const Kf={render:Xf},Qf=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Angry-Natural",d:"M44.095 17.125q.006-.014 0 0M19.284 5.005c-2.368-.266-4.858.497-6.427 2.434-.59.728-1.553 2.48-1.509 3.417.017.356.225.375 1.124.59 1.646.392 4.5-1.114 6.355-.972 2.582.198 5.047 1.395 7.283 2.679 3.838 2.202 8.354 6.84 13.093 6.598.353-.018 5.42-1.739 4.41-2.723-.316-.484-3.034-1.128-3.501-1.361-2.172-1.084-4.367-2.448-6.443-3.718-4.528-2.772-8.944-6.338-14.385-6.944m48.746 12.12q-.006-.014 0 0m24.876-12.12c2.368-.266 4.857.497 6.426 2.434.59.728 1.554 2.48 1.509 3.417-.017.356-.225.375-1.124.59-1.645.392-4.5-1.114-6.355-.972-2.582.198-5.046 1.395-7.282 2.679-3.839 2.202-8.355 6.84-13.093 6.598-.353-.018-5.42-1.739-4.411-2.723.317-.484 3.034-1.128 3.502-1.361 2.171-1.084 4.367-2.448 6.442-3.718 4.528-2.772 8.945-6.338 14.386-6.944",class:"CustomColor",opacity:".6"})],-1),Jf=[Qf];function eh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Jf])}const th={render:eh},nh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Frown-Natural",d:"M36.37 6.876c-1.97 2.905-5.546 4.64-8.738 5.684-3.943 1.29-18.552 3.38-15.112 11.348a.147.147 0 0 0 .272.002c1.153-2.645 17.465-5.123 18.973-5.704 4.445-1.709 8.393-5.49 9.162-10.543.352-2.317-.637-6.049-1.548-7.55-.11-.18-.374-.136-.43.069-.36 1.331-1.41 4.971-2.58 6.694m39.261 0c1.97 2.905 5.546 4.64 8.738 5.684 3.943 1.29 18.551 3.379 15.112 11.348a.147.147 0 0 1-.272.002c-1.153-2.645-17.465-5.123-18.973-5.704-4.445-1.709-8.393-5.49-9.162-10.543-.352-2.317.637-6.049 1.548-7.55.11-.18.374-.136.43.069.36 1.331 1.41 4.971 2.58 6.694",class:"CustomColor",opacity:".6"})],-1),ah=[nh];function oh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ah])}const rh={render:oh},ih=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Sad-Concerned-Natural",d:"m31.234 20.422-.911.402c-5.242 2.081-13.188 1.209-18.046-1.123-.567-.272-.18-1.153.402-1.108 14.919 1.151 24.963-8.146 28.375-14.44.101-.187.407-.208.482-.034 2.308 5.319-4.45 13.985-10.302 16.303m49.532 0 .911.402c5.242 2.081 13.188 1.209 18.046-1.123.567-.272.18-1.153-.402-1.108-14.919 1.151-24.963-8.146-28.375-14.44-.101-.187-.407-.208-.482-.034-2.308 5.319 4.45 13.985 10.302 16.303",class:"CustomColor",opacity:".6"})],-1),sh=[ih];function lh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...sh])}const ch={render:lh},dh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Default",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.63 17.159c3.915-5.51 14.648-8.598 23.893-6.328a2 2 0 0 0 .954-3.884C29.74 4.31 17.312 7.887 12.37 14.84a2 2 0 0 0 3.26 2.318Zm80.74 0c-3.915-5.51-14.648-8.598-23.893-6.328a2 2 0 0 1-.954-3.884c10.737-2.637 23.165.94 28.108 7.894a2 2 0 0 1-3.26 2.318Z",class:"CustomColor"})])],-1),uh=[dh];function mh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...uh])}const fh={render:mh},hh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Outline/Raised-Excited",opacity:".6"},[e.createElementVNode("path",{id:"I-Browse",d:"M15.976 17.128C17.47 7.605 30.059 1.108 39.164 5.3a2 2 0 0 0 1.672-3.633c-11.487-5.29-26.9 2.664-28.812 14.84a2 2 0 1 0 3.952.62Zm80.048 0C94.53 7.605 81.942 1.108 72.837 5.3a2 2 0 0 1-1.673-3.633c11.487-5.29 26.9 2.664 28.812 14.84a2 2 0 0 1-3.952.62Z",class:"CustomColor"})])],-1),ph=[hh];function gh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ph])}const yh={render:gh},kh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Eyebrow/Natural/Unibrow-Natural",opacity:".6"},[e.createElementVNode("path",{d:"M56.997 12.82q0-.005 0 0m2.559 2.805c1.892 1.101 4.717 1.734 6.315 1.94 6.277.807 12.266-1.535 18.386-2.68 5.432-1.015 11.625-1.925 16.73.91.13.072 1.162.667 1.707 1.184a.81.81 0 0 0 1.291-.224c1.325-2.726-6.402-8.594-7.865-9.153-6.627-2.528-15.176.704-21.796 2.001-3.717.728-7.462 1.252-11.115 2.29-1.31.373-2.58 1.007-3.862 1.218-.162-.224-.362-.36-.588-.352-1.17.04-2.796 3.557-.56 3.676.7.038 1.13-.312 1.357-.81",class:"CustomColor"}),e.createElementVNode("path",{d:"M55.003 12.79q.002-.005 0 0M15.881 7.573c6.626-2.528 15.176.705 21.796 2.001 3.716.729 7.461 1.253 11.114 2.291 1.47.418 2.887 1.165 4.33 1.274.7.053 1.106.903.635 1.435-1.545 1.74-5.586 2.7-7.626 2.962-6.278.807-12.267-1.534-18.387-2.679-5.432-1.016-11.624-1.925-16.73.91-.13.071-1.161.666-1.707 1.184a.81.81 0 0 1-1.29-.224C6.69 14 14.417 8.133 15.881 7.573m39.092 4.217c1.17.041 2.762 4.5.525 4.674-2.237.173-1.696-4.715-.525-4.674",class:"CustomColor"})])],-1),xh=[kh];function bh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...xh])}const wh={render:bh},Eh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Default-Natural",d:"M26.547 6.148c-5.807.269-15.195 4.488-14.953 10.344.008.192.29.276.427.129 2.755-2.96 22.316-5.95 29.205-4.365.63.145 1.11-.477.71-.927-3.422-3.848-10.186-5.426-15.389-5.18m59.906-.001c5.807.269 15.195 4.488 14.953 10.344-.008.192-.29.276-.427.129-2.755-2.96-22.316-5.95-29.205-4.365-.63.145-1.11-.477-.71-.927 3.422-3.848 10.186-5.426 15.389-5.18",class:"CustomColor",opacity:".6"})],-1),vh=[Eh];function Ch(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...vh])}const Sh={render:Ch},Bh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Natural/Raised-Excited-Natural",d:"m22.766 1.578.911-.402C28.92-.905 36.865-.033 41.723 2.299c.567.272.18 1.153-.402 1.108-14.919-1.151-24.963 8.146-28.375 14.44-.101.187-.407.208-.482.034-2.308-5.319 4.45-13.985 10.302-16.303m66.468 0-.911-.402C83.08-.905 75.135-.033 70.277 2.299c-.567.272-.18 1.153.402 1.108 14.919-1.151 24.963 8.146 28.375 14.44.101.187.407.208.482.034 2.308-5.319-4.45-13.985-10.302-16.303",class:"CustomColor",opacity:".6"})],-1),Vh=[Bh];function Mh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Vh])}const Nh={render:Mh},Ah=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("path",{id:"Eyebrow/Outline/Up-Down",d:"M15.591 14.162c4.496-6.326 14.012-9.508 23.756-6.366a2 2 0 1 0 1.228-3.807c-11.408-3.68-22.74.11-28.244 7.856a2 2 0 1 0 3.26 2.317m80.786 6.996c-3.914-5.509-14.647-8.598-23.892-6.328a2 2 0 0 1-.954-3.884c10.736-2.637 23.165.94 28.107 7.895a2 2 0 1 1-3.26 2.317Z",class:"CustomColor",opacity:".6"})],-1),Th=[Ah];function Dh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Th])}const Lh={render:Dh},Fh={Angry:Rf,FlatNatural:Gf,SadConcerned:Uf,UpDownNatural:Kf,AngryNatural:th,FrownNatural:rh,SadConcernedNatural:ch,Default:fh,RaisedExcited:yh,UnibrowNatural:wh,DefaultNatural:Sh,RaisedExcitedNatural:Nh,UpDown:Lh},$h=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Concerned" transform="translate(2 52)"><defs><path id="Mouth1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="MouthMask1" fill="#fff"><use href="#Mouth1" transform="matrix(1 0 0 -1 0 45)"></use></mask><use id="Mouth" fill="#000" href="#Mouth1" opacity=".7" transform="matrix(1 0 0 -1 0 45)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#MouthMask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#MouthMask1&#39;)"><g transform="translate(38 24)"><circle id="friend?" cx="11" cy="11" r="11"></circle><circle id="How-you-doing" cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Ph=[$h];function Oh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ph])}const _h={render:Oh},Rh=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Disbelief",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14",transform:"matrix(1 0 0 -1 0 44)"})])],-1),Hh=[Rh];function zh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Hh])}const jh={render:zh},Gh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Grimace" transform="translate(2 52)"><defs><rect id="Grimace-path1" width="60" height="22" x="24" y="9" rx="11"></rect></defs><rect id="Mouth" width="64" height="26" x="22" y="7" fill="#000" opacity=".6" rx="13"></rect><mask id="Grimace-mask1" fill="#fff"><use href="#Grimace-path1"></use></mask><use id="Mouth" fill="#FFF" href="#Grimace-path1"></use><path id="Grimace-Teeth" fill="#E6E6E6" d="M71 22h-9v12h-4V22h-9v12h-4V22h-9v12h-4V22h-8v-4h8V6h4v12h9V6h4v12h9V6h4v12h9V6h4v12h8.867v4H75v12h-4z" mask="url(&#39;#Grimace-mask1&#39;)"></path></g></g>',1),qh=[Gh];function Ih(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...qh])}const Wh={render:Ih},Uh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Scream-Open" transform="translate(2 52)"><defs><path id="ScreamOpen-path1" d="M34.008 15.136C35.128 29.124 38.235 40.993 53.996 41c15.762.007 18.92-11.943 19.998-25.994.087-1.13-.82-2.006-1.957-2.006-6.686 0-9.367 1.994-18.048 2s-13.232-2-17.897-2c-1.143 0-2.196.737-2.084 2.136"></path></defs><mask id="ScreamOpen-mask1" fill="#fff"><use href="#ScreamOpen-path1" transform="matrix(1 0 0 -1 0 54)"></use></mask><use id="Mouth" fill="#000" href="#ScreamOpen-path1" opacity=".7" transform="matrix(1 0 0 -1 0 54)"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#ScreamOpen-mask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#ScreamOpen-mask1&#39;)"><g id="Say-ahhhh" transform="translate(38 32)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Zh=[Uh];function Yh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Zh])}const Xh={render:Yh},Kh=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Smile" transform="translate(2 52)"><defs><path id="Smile-path1" d="M35.118 15.128C36.176 24.62 44.226 32 54 32c9.804 0 17.874-7.426 18.892-16.96.082-.767-.775-2.04-1.85-2.04H37.088c-1.08 0-2.075 1.178-1.97 2.128"></path></defs><mask id="Smile-mask1" fill="#fff"><use href="#Smile-path1"></use></mask><use id="Mouth" fill="#000" href="#Smile-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#Smile-mask1&#39;)" rx="5"></rect><g id="Tongue" fill="#FF4F6D" mask="url(&#39;#Smile-mask1&#39;)"><g transform="translate(38 24)"><circle cx="11" cy="11" r="11"></circle><circle cx="21" cy="11" r="11"></circle></g></g></g></g>',1),Qh=[Kh];function Jh(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Qh])}const ep={render:Jh},tp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Twinkle",fill:"#000",opacity:".6",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 16c0 5.372 6.158 9 14 9s14-3.628 14-9c0-1.105-.95-2-2-2-1.293 0-1.87.905-2 2-1.242 2.938-4.317 4.716-10 5-5.683-.284-8.758-2.062-10-5-.13-1.095-.707-2-2-2-1.05 0-2 .895-2 2"})])],-1),np=[tp];function ap(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...np])}const op={render:ap},rp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Default",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40 15c0 7.732 6.268 14 14 14s14-6.268 14-14"})])],-1),ip=[rp];function sp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...ip])}const lp={render:sp},cp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Eating" transform="translate(2 52)"><g id="Om-Nom-Nom" fill="#000" opacity=".6" transform="translate(28 6)"><path id="Delicious" d="M16.19 10.106C16.019 4.996 11.793.797 6.295 0 9.66 1.959 11.98 5.495 11.98 9.677c0 5.668-5.473 10.568-11.803 10.568H0A13 13 0 0 0 4.392 21c5.322 0 9.821-3.153 11.294-7.486 2.475 2.156 6.177 3.525 10.314 3.525s7.84-1.37 10.314-3.525C37.787 17.847 42.286 21 47.608 21c1.552 0 3.034-.268 4.392-.756l-.177.001c-6.33 0-11.803-4.9-11.803-10.568 0-4.182 2.32-7.718 5.686-9.677-5.498.797-9.724 4.996-9.897 10.106-2.564 1.736-6.014 2.8-9.809 2.8s-7.245-1.064-9.81-2.8"></path></g><circle id="Redish" cx="17" cy="15" r="9" fill="#FF4646" opacity=".2"></circle><circle id="Redish" cx="91" cy="15" r="9" fill="#FF4646" opacity=".2"></circle></g></g>',1),dp=[cp];function up(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...dp])}const mp={render:up},fp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Sad",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("path",{id:"Mouth",d:"M40.058 16.654c.65 7.03 6.644 11.723 13.942 11.723 7.342 0 13.363-4.75 13.953-11.848.031-.378-.876-.676-1.324-.452q-8.308 4.16-12.629 4.16-4.266 0-12.446-4.069c-.507-.252-1.534.068-1.496.486",transform:"matrix(1 0 0 -1 0 44.377)"})])],-1),hp=[fp];function pp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...hp])}const gp={render:pp},yp=e.createElementVNode("g",{transform:"translate(76 82)"},[e.createElementVNode("g",{id:"Mouth/Serious",fill:"#000",opacity:".7",transform:"translate(2 52)"},[e.createElementVNode("rect",{id:"Why-so-serious?",width:"24",height:"6",x:"42",y:"18",rx:"3"})])],-1),kp=[yp];function xp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...kp])}const bp={render:xp},wp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Tongue" transform="translate(2 52)"><defs><path id="Tongue-path1" d="M29 15.609C30.41 25.23 41.062 33 54 33c12.968 0 23.646-7.817 25-18.26.101-.4-.225-1.74-2.174-1.74H31.174c-1.79 0-2.304 1.24-2.174 2.609"></path></defs><mask id="Tongue-mask1" fill="#fff"><use href="#Tongue-path1"></use></mask><use id="Mouth" fill="#000" href="#Tongue-path1" opacity=".7"></use><rect id="Teeth" width="31" height="16" x="39" y="2" fill="#FFF" mask="url(&#39;#Tongue-mask1&#39;)" rx="5"></rect><path id="Tongue" fill="#FF4F6D" d="M65.984 23.747Q66 23.871 66 24v9c0 6.075-4.925 11-11 11h-1c-6.075 0-11-4.925-11-11v-9q0-.129.016-.253A2 2 0 0 1 43 23.5c0-1.933 2.91-3.5 6.5-3.5 2.01 0 3.808.491 5 1.263 1.192-.772 2.99-1.263 5-1.263 3.59 0 6.5 1.567 6.5 3.5q0 .124-.016.247"></path></g></g>',1),Ep=[wp];function vp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Ep])}const Cp={render:vp},Sp=e.createStaticVNode('<g transform="translate(76 82)"><g id="Mouth/Vomit" transform="translate(2 52)"><defs><path id="Vomit-path1" d="M34.008 12.602c1.12 10.49 4.227 19.392 19.988 19.398 15.762.006 18.92-8.958 19.998-19.495.087-.848-.82-1.505-1.957-1.505-6.686 0-9.367 1.495-18.048 1.5S40.757 11 36.092 11c-1.143 0-2.196.552-2.084 1.602"></path><path id="Vomit-path2" d="M59.917 36H60a6 6 0 1 0 12 0v-5a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v7a6 6 0 1 0 12 0v-2h.083a6.002 6.002 0 0 1 11.834 0"></path><filter id="filter1" width="102.8%" height="105.3%" x="-1.4%" y="-2.6%" filterUnits="objectBoundingBox"><feOffset dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset><feComposite in="shadowOffsetInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"></feComposite><feColorMatrix in="shadowInnerInner1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix></filter></defs><mask id="Vomit-mask1" fill="#fff"><use href="#Vomit-path1" transform="matrix(1 0 0 -1 0 43)"></use></mask><use id="Mouth" fill="#000" href="#Vomit-path1" opacity=".7" transform="matrix(1 0 0 -1 0 43)"></use><rect id="Teeth" width="31" height="16" x="39" y="0" fill="#FFF" mask="url(&#39;#Vomit-mask1&#39;)" rx="5"></rect><g id="Vomit-Stuff"><use fill="#88C553" href="#Vomit-path2"></use><use filter="url(&#39;#filter1&#39;)" href="#Vomit-path2"></use></g></g></g>',1),Bp=[Sp];function Vp(t,n){return e.openBlock(),e.createElementBlock("svg",null,[...Bp])}const Mp={render:Vp},Np={Concerned:_h,Disbelief:jh,Grimace:Wh,ScreamOpen:Xh,Smile:ep,Twinkle:op,Default:lp,Eating:mp,Sad:gp,Serious:bp,Tongue:Cp,Vomit:Mp},Ap=(t="#6fb8e0")=>[e.h("g",{id:"Circle","stroke-width":"1","fill-rule":"evenodd",transform:"translate(12.000000, 40.000000)"},[e.h("mask",{id:"mask-1",fill:"white"},[e.h("use",{href:"#path-1"})]),e.h("use",{id:"Circle-Background",fill:"#E6E6E6",href:"#path-1"}),e.h("g",{id:"Color/Palette/Blue-01",mask:"url(#mask-1)",fill:t},[e.h("rect",{id:"Color",x:"0",y:"0",width:"240",height:"240"})])]),e.h("mask",{id:"mask-2",fill:"white"},[e.h("use",{href:"#path-2"})])],Tp=t=>{const n={"--avataaar-hair-color":t.hairColor,"--avataaar-facial-hair-color":t.facialHairColor,"--avataaar-top-color":t.topColor,"--avataaar-shirt-color":t.clothesColor};return e.h("svg",{viewBox:"0 0 264 280",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e.h("desc","vue3-avataaars"),e.h("defs",[e.h("circle",{id:"path-1",cx:"120",cy:"120",r:"120"}),e.h("path",{id:"path-2",d:"M12,160 C12,226.27417 65.72583,280 132,280 C198.27417,280 252,226.27417 252,160 L264,160 L264,-1.42108547e-14 L-3.19744231e-14,-1.42108547e-14 L-3.19744231e-14,160 L12,160 Z"}),e.h("path",{id:"path-silhouette",d:"M124,144.610951 L124,163 L128,163 L128,163 C167.764502,163 200,195.235498 200,235 L200,244 L0,244 L0,235 C-4.86974701e-15,195.235498 32.235498,163 72,163 L72,163 L76,163 L76,144.610951 C58.7626345,136.422372 46.3722246,119.687011 44.3051388,99.8812385 C38.4803105,99.0577866 34,94.0521096 34,88 L34,74 C34,68.0540074 38.3245733,63.1180731 44,62.1659169 L44,56 L44,56 C44,25.072054 69.072054,5.68137151e-15 100,0 L100,0 L100,0 C130.927946,-5.68137151e-15 156,25.072054 156,56 L156,62.1659169 C161.675427,63.1180731 166,68.0540074 166,74 L166,88 C166,94.0521096 161.51969,99.0577866 155.694861,99.8812385 C153.627775,119.687011 141.237365,136.422372 124,144.610951 Z"})]),e.h("g",{id:"Avataaar",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.h("g",{id:"Avataaar/Circle",transform:"translate(-825.000000, -1100.000000)"},[e.h("g",{transform:"translate(825.000000, 1100.000000)"},[t.isCircle?Ap(t.circleColor):null,e.h("g",{id:"Mask"}),e.h("g",{id:"Avataaar","stroke-width":"1","fill-rule":"evenodd",fill:"black",mask:"url(#mask-2)",style:n},[e.h("g",{id:"Body",transform:"translate(32.000000, 36.000000)"},[e.h("mask",{id:"mask-silhouette",fill:"white"},[e.h("use",{href:"#path-silhouette"})]),e.h("use",{fill:t.skinColor,href:"#path-silhouette"}),e.h("path",{id:"Neck-Shadow",d:"M156,79 L156,102 C156,132.927946 130.927946,158 100,158 C69.072054,158 44,132.927946 44,102 L44,79 L44,94 C44,124.927946 69.072054,150 100,150 C130.927946,150 156,124.927946 156,94 L156,79 Z","fill-opacity":"0.100000001",fill:"#000000",mask:"url(#mask-silhouette)"})]),e.h(q7[t.clothes]),t.clothes==="GraphicShirt"?e.h(Rm[t.graphicShirt]):null,e.h($f[t.eyes]),e.h(Fh[t.eyebrows]),e.h(Np[t.mouth]),e.h("svg",[e.h("g",{fill:"black",transform:"translate(76.000000, 82.000000)"},[e.h("g",{id:"Nose/Default",transform:"translate(28.000000, 40.000000)",opacity:"0.16"},[e.h("path",{id:"Nose",d:"M16,8 C16,12.418278 21.372583,16 28,16 L28,16 C34.627417,16 40,12.418278 40,8"})])])]),e.h(S9[t.top]),e.h(Z9[t.facialHair]),e.h(s7[t.accessories])])])])])])};function pt(t){return t[Math.floor(Math.random()*t.length)]}function Dp(t){return pt(Object.keys(t))}function ln(t){return t[Dp(t)]}const $1={Black:"#262E33",Blue01:"#65C9FF",Blue02:"#5199E4",Blue03:"#25557C",Gray01:"#E6E6E6",Gray02:"#929598",Heather:"#3C4F5C",PastelBlue:"#B1E2FF",PastelGreen:"#A7FFC4",PastelOrange:"#FFBC69",PastelRed:"#FFAFB9",PastelYellow:"#FFFFB1",Pink:"#FF488E",Red:"#FF5C5C",White:"#FFFFFF"},P1={Auburn:"#A55728",Black:"#2C1B18",Blonde:"#B58143",BlondeGolden:"#D6B370",Brown:"#724133",BrownDark:"#4A312C",PastelPink:"#F59797",Platinum:"#ECDCBF",Red:"#C93305",SilverGray:"#E8E1E1"},Lp={Tanned:"#FD9841",Yellow:"#F8D25C",Pale:"#FFDBB4",Light:"#EDB98A",Brown:"#D08B5B",DarkBrown:"#AE5D29",Black:"#614335"},Fp=["Blank","Prescription01","Round","Wayfarers","Kurt","Prescription02","Sunglasses"],$p=["Close","Default","EyeRoll","Hearts","Squint","Wink","Cry","Dizzy","Happy","Side","Surprised","WinkWacky"],Pp=["Angry","FlatNatural","SadConcerned","UpDownNatural","AngryNatural","FrownNatural","SadConcernedNatural","Default","RaisedExcited","UnibrowNatural","DefaultNatural","RaisedExcitedNatural","UpDown"],Op=["BeardMajestic","BeardLight","MoustacheFancy","BeardMedium","Blank","MoustacheMagnum"],_p=["Concerned","Disbelief","Grimace","ScreamOpen","Smile","Twinkle","Default","Eating","Sad","Serious","Tongue","Vomit"],Rp=["Eyepatch","Hat","Hijab","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairMiaWallace","LongHairNotTooLong","LongHairShavedSides","LongHairStraight","LongHairStraight2","LongHairStraightStrand","NoHair","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4"],Hp=["BlazerShirt","CollarSweater","BlazerSweater","Hoodie","GraphicShirt","Overall","ShirtCrewNeck","ShirtVNeck","ShirtScoopNeck"],zp=["Bat","Cumbia","Diamond","Pizza","Selena","SkullOutline","Bear","Deer","Hola","Resist","Skull"],Un=(t={})=>{var n,a,o,r,i,s,l,c,m,u,h,f,p,d;return{isCircle:t.isCircle===void 0?!1:t.isCircle,circleColor:(n=t.circleColor)!=null?n:void 0,skinColor:(a=t.skinColor)!=null?a:ln(Lp),hairColor:(o=t.hairColor)!=null?o:ln(P1),topColor:(r=t.topColor)!=null?r:ln($1),clothesColor:(i=t.clothesColor)!=null?i:ln($1),facialHairColor:(s=t.facialHairColor)!=null?s:ln(P1),accessories:(l=t.accessories)!=null?l:pt(Fp),eyes:(c=t.eyes)!=null?c:pt($p),eyebrows:(m=t.eyebrows)!=null?m:pt(Pp),mouth:(u=t.mouth)!=null?u:pt(_p),top:(h=t.top)!=null?h:pt(Rp),clothes:(f=t.clothes)!=null?f:pt(Hp),graphicShirt:(p=t.graphicShirt)!=null?p:pt(zp),facialHair:(d=t.facialHair)!=null?d:pt(Op)}},O1={isCircle:!0,circleColor:"#22c55e",skinColor:"#D08B5B",hairColor:"#E8E1E1",topColor:"#E6E6E6",clothesColor:"blue",facialHairColor:"#E8E1E1",accessories:"Blank",eyes:"Default",eyebrows:"DefaultNatural",mouth:"Default",top:"NoHair",clothes:"GraphicShirt",graphicShirt:"Pizza",facialHair:"Blank"},jp={class:"main-container"},Gp=["src"],qp={key:1,class:"avatar-section flex flex-col"},Ip={id:"avatar-container",class:"avatar-container"},Wp={class:"controls"},Up={class:"checkbox-label checkbox-wrapper-2",for:"avatarLabel"},_1=Ce({__name:"randomAvatar",props:{content:{type:String,default:null}},emits:["base64","random"],setup(t,{emit:n}){const a=e.ref(O1),o=e.ref(O1),r=e.ref(!1);e.onMounted(async()=>{a.value=Un(a.value),await e.nextTick(),m()});const i=n,s=t,l=async()=>{if(r.value)a.value=Un(o.value);else{const u={...o.value,facialHair:"Blank"};a.value=Un(u)}await e.nextTick(),m()},c=async()=>{a.value=Un({isCircle:!0,circleColor:"#22c55e",facialHair:r.value?"Blank":null});const u=a.value;o.value=u,await e.nextTick(),m()},m=()=>{const u=document.querySelector("#avatar-container svg");if(!u){console.error("Avatar não encontrado!");return}let f=new XMLSerializer().serializeToString(u);const d=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(f)))}`;i("base64",d)};return(u,h)=>(e.openBlock(),e.createElementBlock("main",jp,[s.content?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-w-[45%] max-h-[45%] flex items-center justify-center mx-auto",src:s.content},null,8,Gp)):(e.openBlock(),e.createElementBlock("section",qp,[e.createElementVNode("div",Ip,[e.createVNode(e.unref(Tp),e.normalizeProps(e.guardReactiveProps(a.value)),null,16)]),e.createElementVNode("div",Wp,[e.createElementVNode("label",Up,[e.withDirectives(e.createElementVNode("input",{id:"avatarLabel","onUpdate:modelValue":h[0]||(h[0]=f=>r.value=f),type:"checkbox",onInput:l,class:"sc-gJwTLC ikxBAC"},null,544),[[e.vModelCheckbox,r.value]]),h[1]||(h[1]=e.createTextVNode(" Remover barba "))]),e.createElementVNode("button",{onClick:c,class:"generate-button"}," Gerar Avatar ")])]))]))}},[["__scopeId","data-v-25c1ac70"]]),Zp={class:"modal_container"},Yp={class:"modal_box"},Xp={class:"modal_header"},R1=Ce({__name:"min_modal",props:{defineWidth:{type:String,default:"max-width-md"}},emits:["close"],setup(t,{emit:n}){const a=n,o=()=>{a("close")};return(r,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"min_modal"},[e.createElementVNode("div",{class:"modal_overlay",onClick:o})]),e.createElementVNode("div",Zp,[e.createElementVNode("div",{class:e.normalizeClass(["modal_content ",t.defineWidth])},[e.createElementVNode("div",Yp,[e.createElementVNode("div",Xp,[e.renderSlot(r.$slots,"header",{},void 0,!0),e.createElementVNode("button",{class:"modal_close",onClick:i[0]||(i[0]=s=>o())},i[1]||(i[1]=[e.createElementVNode("svg",{class:"modal_close_icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),e.createElementVNode("div",null,[e.renderSlot(r.$slots,"body",{},void 0,!0)])])],2)])],64))}},[["__scopeId","data-v-efcc01f4"]]),Kp={v:"5.4.4",fr:30,ip:0,op:110,w:800,h:600,nm:"Comp 1",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Sub Rocket 01",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
98
97
  $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:0,op:15,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Sub Rocket 09",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
99
98
  $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:90,op:105,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Sub Rocket 07",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
100
99
  $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[10.363,-.002],[6.523,-9.638],[0,0],[0,0],[0,0]],o:[[-6.525,-9.644],[-10.359,.002],[0,0],[0,0],[0,0],[0,0]],v:[[27.251,-647.527],[-.003,-661.989],[-27.243,-647.53],[-49.314,-614.918],[-.003,-614.918],[49.314,-614.918]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.689,67.302],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.804,26.312],[0,0],[0,0],[0,0],[0,-31.776],[0,0],[-9.442,0],[0,0],[0,0],[0,9.441],[0,0]],o:[[0,0],[0,0],[0,0],[-17.81,26.316],[0,0],[0,9.441],[0,0],[0,0],[9.442,0],[0,0],[0,-31.769]],v:[[49.321,-774.672],[49.318,-774.677],[0,-774.677],[-49.31,-774.677],[-76.639,-685.538],[-76.639,118.392],[-59.543,135.488],[0,135.488],[59.543,135.488],[76.639,118.392],[76.639,-685.549]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.560553696576,.605397961186,.635294117647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.685,226.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[2.731,0],[0,0],[0,2.731],[-2.731,0],[0,0],[0,-2.731]],o:[[0,0],[-2.731,0],[0,-2.731],[0,0],[2.731,0],[0,2.731]],v:[[74.921,16.932],[-74.92,16.932],[-79.885,11.967],[-74.92,7.002],[74.921,7.002],[79.885,11.967]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.270999983245,.352999997606,.39199999641,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.698,377.35],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[58.922,-4.853],[55.933,-16.807],[-54.757,-16.807],[-58.068,-4.853],[-66.808,26.697],[66.809,26.697]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.328999986836,.430999995213,.477999997606,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[307.699,357.655],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:60,op:75,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Sub Rocket 05",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
@@ -118,7 +117,7 @@ $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833]
118
117
  $bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0},{ddd:0,ind:36,ty:4,nm:"Sub Rocket 01 Joint",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[219.02,362.805,0],e:[358.52,362.805,0],to:[23.25,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[358.52,362.805,0],e:[219.02,362.805,0],to:[0,0,0],ti:[23.25,0,0]},{t:30}],ix:2,x:`var $bm_rt;
119
118
  $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[250,400,0],ix:1},s:{a:0,k:[12.773,12.773,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[520.1,-144.585],[290.744,84.771],[288.864,289.211],[520.1,57.975]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[57.36,0],e:[556.36,0],to:[83.167,0],ti:[0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:15,s:[556.36,0],e:[57.36,0],to:[0,0],ti:[83.167,0]},{t:30}],ix:2,x:`var $bm_rt;
120
119
  $bm_rt = loopOut('cycle', 0);`},a:{a:0,k:[0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:0,s:[100,100],e:[-100,100]},{i:{x:[.833,.833],y:[.833,.833]},o:{x:[.167,.167],y:[.167,.167]},t:15,s:[-100,100],e:[100,100]},{t:30}],ix:3,x:`var $bm_rt;
121
- $bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},vg={class:"main-send-suggestion"},Cg={key:0,class:"sent-suggestion-section"},Sg={class:"sent-suggestion-content"},Bg={class:"container-send-suggestion"},Vg={key:0,class:"tool_tip_suggestion_error"},Mg={key:0,class:"loader-suggestion"},Ng={key:1},Ag=we({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(t,{emit:n}){const a=n,o=e.ref(""),r=e.ref(!1),i=()=>{if(r.value=!1,!o.value){r.value=!0;return}a("postSuccess",o.value)};return(s,l)=>{const c=e.resolveComponent("Vue3Lottie");return e.openBlock(),e.createElementBlock("main",vg,[t.sentSuccess?(e.openBlock(),e.createElementBlock("section",Cg,[e.createElementVNode("div",Sg,[l[2]||(l[2]=e.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),e.createVNode(c,{"animation-data":e.unref(Eg),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=e.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[e.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),e.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=e.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("section",Bg,[l[5]||(l[5]=e.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[e.vModelText,o.value]]),r.value?(e.openBlock(),e.createElementBlock("span",Vg," Por favor, preencha o campo antes de continuar ")):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:l[1]||(l[1]=u=>i()),class:"submit-button-send-suggestion"},[t.loader?(e.openBlock(),e.createElementBlock("div",Mg)):(e.openBlock(),e.createElementBlock("p",Ng,"Enviar"))])])])}}},[["__scopeId","data-v-b6717495"]]),Tg=t=>`<svg class="${t}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,Dg=t=>`<svg class="${t}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,Lg=["innerHTML"],ci={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{innerHTML:t.svgContent},null,8,Lg))}},Fg={class:"feature-card__header"},$g={class:"feature-card__title"},Pg={class:"flex items-center gap-2"},Og={key:0,class:"sparkle-badge"},_g={key:0},Rg={class:"feature-card__content"},Hg={class:"feature-card__description scroll_area_feature_card"},zg=["innerHTML"],jg=["href"],Gg={class:"feature-card__footer"},Ig={class:"feature-card__footer-section"},di=we({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(t){const n=e.ref(!1),a=e.ref(null),o=t;Bn(a,()=>{n.value=!1});const i=e.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!n.value})),s=e.computed(()=>({"feature-card":!0,"feature-card--updated":o.state==="updated","feature-card--future":o.state==="future-update","feature-card--other":o.state!=="updated"&&o.state!=="future-update"})),l=e.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":o.flag==="new-feature","pill-flag--improvement":o.flag==="improvement","pill-flag--bug-fix":o.flag==="bug-fix"})),c=e.computed(()=>o.flag==="improvement"?"Melhorias":o.flag==="new-feature"?"Novo Recurso":"correção de erros"),u=e.computed(()=>({"pill-date":!0,"pill-date--updated":o.state==="updated","pill-date--future":o.state!=="updated"}));return(d,h)=>{const f=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:a,onClick:h[0]||(h[0]=g=>n.value=!n.value)},[e.createElementVNode("header",Fg,[e.createElementVNode("h1",$g,e.toDisplayString(t.title),1),e.createElementVNode("section",Pg,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},[...h[1]||(h[1]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2)),t.sparkles?(e.openBlock(),e.createElementBlock("div",Og,[...h[2]||(h[2]=[e.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-548200ae><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-548200ae></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-548200ae></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-548200ae></path><g data-v-548200ae><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-548200ae></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-548200ae></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-548200ae></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-548200ae></path></svg>',1)])])):e.createCommentVNode("",!0)])]),e.createVNode(e.Transition,{name:"fade-slide"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",_g,[h[4]||(h[4]=e.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),e.createElementVNode("section",Rg,[e.createElementVNode("span",Hg,[e.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:t.description.replace(/\n/g,"<br>")},null,8,zg)]),t.tutorial?(e.openBlock(),e.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:t.tutorial,target:"__blank"},[h[3]||(h[3]=e.createTextVNode(" Veja o tutorial ",-1)),e.createVNode(ci,{svgContent:e.unref(Tg)("size-4 text-blue-900")},null,8,["svgContent"])],8,jg)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("footer",Gg,[e.createElementVNode("section",Ig,[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(c.value),3),e.createVNode(f,{class:"pill_date_popper",hover:"",disabled:t.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(u.value)},[e.createVNode(ci,{svgContent:e.unref(Dg)("size-4 text-white")},null,8,["svgContent"]),e.createElementVNode("p",null,e.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(t.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-548200ae"]]),qg={class:"modal-container-patch-notes"},Wg={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},Ug={class:"modal-header-patch-notes"},Zg={class:"modal-body-patch-notes"},Yg={class:"modal-body-control"},Xg={class:"modal-section-patch-notes updates-section-patch-notes"},Kg={key:0,class:"sections-skeleton-loader"},Qg={class:"skeleton-loader skeleton-color-latest_update"},Jg={key:1,class:"text-not-patchs"},ey={class:"modal-section-patch-notes future-section-patch-notes"},ty={key:0,class:"sections-skeleton-loader"},ny={class:"skeleton-loader skeleton-color-latest_update"},ay={key:1,class:"text-not-patchs"},ui=we({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(t,{emit:n}){const a=e.ref(1),o=e.ref(1),r=e.ref(null),i=e.ref(null),s=n,l=f=>{s("postSuggestion",f)},c=()=>{s("close"),a.value=1,o.value=1},u=({loaded:f,complete:g})=>{s("loadMoreFutureUpdates",{loaded:f,complete:g,page:a.value}),a.value++},d=({loaded:f,complete:g})=>{s("loadMoreLatestUpdates",{loaded:f,complete:g,page:o.value}),o.value++},h=f=>{if(!f)return!1;const g=new Date,m=new Date(f+"T12:00:00");return Math.abs(g-m)/(1e3*60*60*24)<=3};return(f,g)=>(e.openBlock(),e.createElementBlock("main",null,[g[8]||(g[8]=e.createElementVNode("div",{class:"modal-overlay-patch-notes"},[e.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),e.createElementVNode("div",qg,[e.createElementVNode("div",Wg,[e.createElementVNode("div",Ug,[e.createElementVNode("button",{onClick:g[0]||(g[0]=m=>c()),class:"modal-close-btn-patch-notes"},[...g[1]||(g[1]=[e.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)])])]),e.createElementVNode("div",Zg,[e.createElementVNode("div",Yg,[e.createElementVNode("section",Xg,[g[4]||(g[4]=e.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[t.latest_update?t.latest_update<=0?(e.openBlock(),e.createElementBlock("span",Jg," Nenhuma atualização programada ")):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",Kg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,m=>e.createElementVNode("div",Qg)),64))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.latest_update,(m,p)=>(e.openBlock(),e.createBlock(di,{key:p,state:"updated",title:m.title,description:m.description,date:m.launched_at,tutorial:m.tutorial,flag:m.flag,sparkles:h(m.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),e.createVNode(e.unref(Xt),{distance:20,target:i.value,onInfinite:d},{complete:e.withCtx(()=>[...g[2]||(g[2]=[e.createElementVNode("span",{class:""},null,-1)])]),spinner:e.withCtx(()=>[...g[3]||(g[3]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])]),_:1},8,["target"])],512)]),e.createElementVNode("section",ey,[g[7]||(g[7]=e.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollFutContainer",ref:r,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[t.future_updates?t.future_updates<=0?(e.openBlock(),e.createElementBlock("span",ay," Nenhuma atualização programada ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.future_updates,(m,p)=>(e.openBlock(),e.createBlock(di,{key:p,state:"future-update",title:m.title,description:m.description,date:m.launched_at,tutorial:m.tutorial,flag:m.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(e.openBlock(),e.createElementBlock("section",ty,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,m=>e.createElementVNode("div",ny)),64))])),e.createVNode(e.unref(Xt),{distance:20,target:r.value,onInfinite:u},{complete:e.withCtx(()=>[...g[5]||(g[5]=[e.createElementVNode("span",{class:""},null,-1)])]),spinner:e.withCtx(()=>[...g[6]||(g[6]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])]),_:1},8,["target"])],512)])]),e.createVNode(Ag,{loader:t.loader,sentSuccess:t.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-a451d2d0"]]),oy={key:0,class:"sparkle-badge"},ry={key:0,class:"text-white text-center flex-1"},iy={key:1,class:"sparkle-badge"},mi=we({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(t,{emit:n}){const a=n,o=t,r=(l,c)=>{const u={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return u[l]||u.attendant},i=e.computed(()=>r(o.type,o.sparkles)),s=()=>{a("openNewUpdates")};return(l,c)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.value.button)},[...c[0]||(c[0]=[e.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)])],2),t.sparkles?(e.openBlock(),e.createElementBlock("div",oy,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},[...c[1]||(c[1]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)])],2))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:e.normalizeClass(["relative",i.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},[...c[2]||(c[2]=[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)])],2)),i.value.text?(e.openBlock(),e.createElementBlock("span",ry,e.toDisplayString(i.value.text),1)):e.createCommentVNode("",!0),t.sparkles?(e.openBlock(),e.createElementBlock("div",iy,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},[...c[3]||(c[3]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)])],2))])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[e.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-200168a7"]]),sy=["innerHTML"],ly=["src"],fi={__name:"libPhotoPicker",props:{modelValue:{type:[String,null],default:null},sizeClass:{type:String,default:"size-22"},baseClass:{type:String,default:"shadow shadow-black rounded-xl relative border-2 border-gray-500 bg-base-300 hover:bg-base-300/70 transition-all"},emptyPlaceholder:{type:String,default:'<svg class="size-32 text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M7.5 4.586A2 2 0 0 1 8.914 4h6.172a2 2 0 0 1 1.414.586L17.914 6H19a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1.086L7.5 4.586ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z" clip-rule="evenodd"/> </svg>'}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n,o=async()=>{const i=document.createElement("input");i.type="file",i.accept="image/*",i.onchange=async s=>{const l=s.target.files[0];if(!l)return;const c=new FileReader;c.onload=()=>{a("update:modelValue",c.result)},c.readAsDataURL(l)},i.click()},r=async()=>{a("update:modelValue",null)};return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(t.baseClass)},[t.modelValue?(e.openBlock(),e.createElementBlock("img",{key:1,src:typeof t.modelValue=="string"&&t.modelValue.startsWith("data:image/")?t.modelValue:`${t.modelValue}?t=${Date.now()}`,onClick:o,class:e.normalizeClass(`${t.sizeClass} rounded-xl z-10 object-center bg-base-300 object-scale-down hover:bg-base-300/70`)},null,10,ly)):(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(`flex items-center justify-center ${t.sizeClass}`),onClick:o},[e.createElementVNode("span",{class:e.normalizeClass("p-3 rounded-xl text-gray-400 hover:scale-105 hover:text-primary hover:border-primary"),innerHTML:t.emptyPlaceholder},null,8,sy)],2)),t.modelValue?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(r,["stop"]),class:"absolute top-1 right-1 rounded-lg bg-red-600 hover:bg-red-500 z-50 py-1 px-1"},[...s[0]||(s[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)],2))}},cy={key:0,class:"text-gray-500 text-xs"},dy={key:1,class:"text-gray-300 text-xs"},uy={class:"text-green-500"},my={key:0,class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md max-h-64 overflow-y-auto hide-scrollbar"},fy={class:"p-2 sticky top-0 bg-base-300"},hy=["onClick"],py={class:"text-xs truncate max-w-32"},gy={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},yy={key:0,class:"text-center text-gray-400 py-2"},hi=we({__name:"selectMultipleDepartments",props:{modelValue:{type:Array,default:()=>[]},departments:{type:Array,default:()=>[],required:!0},placeholder:{type:String,default:"Selecione departamentos..."}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null);Bn(s,()=>r.value=!1);const l=e.computed(()=>a.departments.filter(u=>u.name.toLowerCase().includes(i.value.toLowerCase()))),c=u=>{const d=[...a.modelValue],h=d.findIndex(f=>f.id===u.id);h===-1?d.push({id:u.id,name:u.name}):d.splice(h,1),o("update:modelValue",d)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:d[0]||(d[0]=h=>r.value=!r.value),class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",dy,[d[2]||(d[2]=e.createTextVNode(" Selecionados: ",-1)),e.createElementVNode("a",uy,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",cy,e.toDisplayString(t.placeholder),1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...d[3]||(d[3]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))]),r.value?(e.openBlock(),e.createElementBlock("div",my,[e.createElementVNode("div",fy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=h=>i.value=h),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,i.value]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("button",{key:h.id,class:e.normalizeClass([t.modelValue.some(f=>f.id===h.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:f=>c(h)},[e.createElementVNode("span",py,e.toDisplayString(h.name),1),t.modelValue.some(f=>f.id===h.id)?(e.openBlock(),e.createElementBlock("svg",gy,[...d[4]||(d[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,hy))),128)),l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",yy,[...d[5]||(d[5]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])]))])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-c83e0000"]]);function vn(t){if(!t)return"black";const n=t.replace("#",""),a=parseInt(n,16),o=a>>16&255,r=a>>8&255,i=a&255;return(o*299+r*587+i*114)/1e3>=128?"text-black":"text-white"}const ky={key:0,class:"text-gray-500 text-xs"},xy={key:1,class:"text-gray-300 text-xs"},by={class:"text-green-500"},wy={key:0,class:"text-gray-500 text-xs"},Ey={key:1,class:"inline-flex items-center gap-1"},vy={class:"text-xs truncate max-w-32 rounded-r-md"},Cy={class:"p-2 sticky top-0 bg-base-300"},Sy=["onClick"],By={class:"inline-flex"},Vy={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},My={key:0,class:"text-center text-gray-400 py-2"},Ny={class:"p-2 sticky top-0 bg-base-300"},Ay=["onClick"],Ty={class:"inline-flex"},Dy={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Ly={key:0,class:"text-center text-gray-400 py-2"},to=we({__name:"selectMultipleTags",props:{modelValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},closeOnSelectSingle:{type:Boolean,default:!0},teleportTo:{type:String,default:null},maxHeight:{type:String,default:"10rem"},allTags:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref(null),c=e.ref(null),u=e.ref({}),d=e.ref([]),h=e.ref(1),f=e.ref(null),g=e.ref(null),m=e.ref(!1),p=e.ref({name:""});e.ref(!1);const y=e.computed(()=>a.modelValue[0]||null),k=w=>{var V,N,B;if(!r.value)return;const T=w.target;(V=c.value)!=null&&V.contains(T)||(N=s.value)!=null&&N.contains(T)||(B=l.value)!=null&&B.contains(T)||(r.value=!1)},b=()=>{if(!a.teleportTo||!c.value)return;const w=c.value.getBoundingClientRect();u.value={position:"fixed",top:`${w.bottom+3}px`,left:`${w.left}px`,width:`${w.width}px`,zIndex:9999}};e.watch(r,w=>{w&&b()});const x=e.computed(()=>d.value.filter(w=>w.name.toLowerCase().includes(i.value.toLowerCase()))),C=w=>{var N;if(!a.multiple){if(((N=y.value)==null?void 0:N.id)===w.id){o("update:modelValue",[]);return}o("update:modelValue",[{id:w.id,name:w.name,color:w.color}]),a.closeOnSelectSingle&&(r.value=!1);return}const T=[...a.modelValue],V=T.findIndex(B=>B.id===w.id);V===-1?T.push({id:w.id,name:w.name,color:w.color}):T.splice(V,1),o("update:modelValue",T)},M=(w,T)=>{const V=new URLSearchParams,N=w;return Object.keys(T).forEach(B=>V.append(B,T[B])),`${N}?${V.toString()}`},D=async w=>{try{const T=await Xe.get(M(z0,{page:h.value,...w})),{results:V,next:N,previous:B}=T.data;f.value=N,g.value=B,h.value===1?d.value=V:d.value=[...d.value,...V]}catch(T){console.error(T)}},H=async w=>{if(!m.value){m.value=!0;try{await D(),f.value?(h.value++,w.loaded()):w.complete()}catch(T){console.error("Erro ao carregar tags:",T),w.complete()}finally{m.value=!1}}};let S;return e.watch(p,()=>{clearTimeout(S),S=setTimeout(async()=>{const{name:w}=p.value;h.value=1,await D({name:w.toString()})},800)},{deep:!0}),e.onMounted(async()=>{var w;if(a.allTags&&((w=a.allTags.results)==null?void 0:w.length)>0?(d.value=a.allTags.results,f.value=a.allTags.next||null,g.value=a.allTags.previous||null,h.value=2):await D(),a.teleportTo){const T=()=>{r.value&&b()};window.addEventListener("scroll",T,!0),window.addEventListener("resize",T)}document.addEventListener("mousedown",k)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",k)}),(w,T)=>{var V;return e.openBlock(),e.createElementBlock("div",{class:"relative w-full z-[9999]",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:T[0]||(T[0]=N=>r.value=!r.value),ref_key:"triggerRef",ref:c,class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",xy,[T[3]||(T[3]=e.createTextVNode(" Selecionados: ",-1)),e.createElementVNode("a",by,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",ky," Selecione suas etiquetas "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.modelValue.length?(e.openBlock(),e.createElementBlock("section",Ey,[e.createElementVNode("span",vy,e.toDisplayString((V=t.modelValue[0])==null?void 0:V.name),1)])):(e.openBlock(),e.createElementBlock("span",wy," Selecione a etiqueta "))],64)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[...T[4]||(T[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))],512),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",Cy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":T[1]||(T[1]=N=>p.value.name=N),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,p.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,N=>(e.openBlock(),e.createElementBlock("button",{key:N.id,class:e.normalizeClass([t.modelValue.some(B=>B.id===N.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:B=>C(N)},[e.createElementVNode("section",By,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:N.color||"#ffff"})},[...T[5]||(T[5]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:N.color||"#ffff"}),class:e.normalizeClass(["text-xs truncate max-w-32 p-1 rounded-r-md",e.unref(vn)(N.color||"#ffff")])},e.toDisplayString(N.name),7)]),t.modelValue.some(B=>B.id===N.id)?(e.openBlock(),e.createElementBlock("svg",Vy,[...T[6]||(T[6]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,Sy))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",My,[...T[7]||(T[7]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])])),f.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:1,onInfinite:H,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>[...T[8]||(T[8]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{ref_key:"teleportedRef",ref:l,style:e.normalizeStyle({...u.value,maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",Ny,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":T[2]||(T[2]=N=>p.value.name=N),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,p.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,N=>(e.openBlock(),e.createElementBlock("button",{key:N.id,class:e.normalizeClass(["select-tag-btn",{selected:t.modelValue.some(B=>B.id===N.id)}]),onClick:B=>C(N)},[e.createElementVNode("section",Ty,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:N.color||"#ffff"})},[...T[9]||(T[9]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:N.color||"#ffff"}),class:e.normalizeClass(["viewTag",e.unref(vn)(N.color||"#ffff")])},e.toDisplayString(N.name),7)]),t.modelValue.some(B=>B.id===N.id)?(e.openBlock(),e.createElementBlock("svg",Dy,[...T[10]||(T[10]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)])])):e.createCommentVNode("",!0)],10,Ay))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ly,[...T[11]||(T[11]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])])),f.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:1,onInfinite:H,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>[...T[12]||(T[12]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)],4)],8,["to"])):e.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-0c9ed5ba"]]),Fy={class:"flex flex-col gap-2 w-full h-full"},$y={class:"flex items-center justify-between px-1"},Py={class:"text-xs font-medium text-left"},Oy=["innerHTML"],_y=["type","placeholder"],Ry=["placeholder"],Hy={key:3,class:"input__error"},no=we({__name:"primaryInput",props:{content:{type:Object,default:()=>({})}},emits:["update:content"],setup(t,{emit:n}){const a=t,o=n,r=e.reactive({title:a.content.title??"Nome do produto",svg:a.content.svg??`<svg class="size-4 flex items-center text-base-100" fill="currentColor" viewBox="0 0 495.554 495.554">
120
+ $bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:132,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"Position Control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:0,k:400,ix:3},y:{a:1,k:[{i:{x:[.349],y:[1]},o:{x:[.039],y:[.602]},t:0,s:[840],e:[300]},{i:{x:[.65],y:[1]},o:{x:[.333],y:[0]},t:30,s:[300],e:[460]},{i:{x:[.818],y:[.968]},o:{x:[.023],y:[.564]},t:80,s:[460],e:[-420]},{t:96}],ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.49,.49,.49],y:[1,1,1]},o:{x:[.49,.49,.49],y:[0,0,0]},t:15,s:[70,70,100],e:[40,40,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle Rate",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:0,k:0,ix:1}}]}],ip:0,op:100,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"Rocket",parent:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.833,0,0],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[148.754,148.754,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.21],y:[.928]},o:{x:[.04],y:[.361]},t:0,s:[.667],e:[2]},{i:{x:[.38],y:[1]},o:{x:[.49],y:[0]},t:30.062,s:[2],e:[3.2]},{i:{x:[.82],y:[.986]},o:{x:[.49],y:[0]},t:80,s:[3.2],e:[4.333]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:96,s:[4.333],e:[4.333]},{t:130}],ix:2},w:600,h:600,ip:0,op:110,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fire 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fire 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,329.554],[-38.976,320.296],[.001,386.814],[38.976,320.296],[45.339,329.554]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{t:30}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:30,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fire 1 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,101.791,0],ix:2},a:{a:0,k:[250,380.848,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,136.488,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,136.488,100],e:[100,101,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,101,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,ef:[{ty:5,nm:"Scale Wiggle",np:3,mn:"ADBE Slider Control",ix:1,en:1,ef:[{ty:0,nm:"Slider",mn:"ADBE Slider Control-0001",ix:1,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:29,s:[0],e:[1]},{t:30}],ix:1}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,191.098],[-24.746,185.22],[0,227.453],[24.746,185.22],[28.785,191.098]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,5.384],[-24.745,-.494],[.001,41.739],[24.746,-.494],[28.785,5.384]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.785,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,534.199],[-24.745,528.322],[.001,570.555],[24.746,528.322],[28.785,534.199]],c:!0}],e:[{i:[[7.185,19.04],[0,0],[0,0],[-4.257,-5.66],[0,0],[-10.521,-10.232],[0,11.755],[0,0]],o:[[0,0],[0,0],[-7.186,19.04],[0,0],[0,11.755],[10.52,-10.232],[0,0],[4.257,-5.66]],v:[[32.583,-41.739],[.001,-41.739],[-32.581,-41.739],[-28.786,107.501],[-24.746,101.624],[0,143.856],[24.746,101.624],[28.785,107.501]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.788000009574,.156999999402,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.338,422.749],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fire 2 Wiggle",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-.118,103.916,0],ix:2},a:{a:0,k:[250,385.497,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100],e:[100,144.049,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[100,144.049,100],e:[100,96,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:71,s:[100,96,100],e:[100,124,100]},{t:80}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.35,y:1},o:{x:.04,y:.6},t:9,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,169.194],[-38.976,159.936],[.001,226.454],[38.976,159.936],[45.339,169.194]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.04,y:0},t:30,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:80,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,8.48],[-38.977,-.778],[.001,65.74],[38.975,-.778],[45.339,8.48]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:81,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.339,514.557],[-38.977,505.299],[0,571.817],[38.975,505.299],[45.338,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}]},{i:{x:.833,y:1},o:{x:.167,y:0},t:82,s:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,514.557],[-38.976,505.299],[.001,571.817],[38.976,505.299],[45.339,514.557]],c:!0}],e:[{i:[[11.317,29.988],[0,0],[0,0],[-6.705,-8.915],[0,0],[-16.571,-16.115],[0,18.516],[0,0]],o:[[0,0],[0,0],[-11.316,29.988],[0,0],[0,18.516],[16.57,-16.115],[0,0],[6.706,-8.915]],v:[[51.318,-65.74],[.001,-65.74],[-51.318,-65.74],[-45.338,168.845],[-38.976,159.587],[.001,226.105],[38.976,159.587],[45.339,168.845]],c:!0}]},{t:83}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.995999983245,.340999977261,.13300000359,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[250.339,446.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 12",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:110,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-142,ix:10},p:{a:0,k:[401.5,412,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:74,s:[0],e:[100]},{t:78}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[6],e:[100]},{t:75}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[5],e:[0]},{t:78}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:71,op:110,st:71,bm:0},{ddd:0,ind:8,ty:4,nm:"Line 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-7,ix:10},p:{a:0,k:[405.5,406,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:71,s:[0],e:[100]},{t:75}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[6],e:[100]},{t:72}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:68,s:[5],e:[0]},{t:75}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:68,op:110,st:68,bm:0},{ddd:0,ind:9,ty:4,nm:"Line 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-88,ix:10},p:{a:0,k:[399.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[390.439,-149.673],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:69,s:[0],e:[100]},{t:73}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[6],e:[100]},{t:70}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[5],e:[0]},{t:73}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:66,op:110,st:66,bm:0},{ddd:0,ind:10,ty:4,nm:"Line 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-197,ix:10},p:{a:0,k:[395.5,400,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:66,s:[0],e:[100]},{t:70}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[6],e:[100]},{t:67}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:63,s:[5],e:[0]},{t:70}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:63,op:110,st:63,bm:0},{ddd:0,ind:11,ty:4,nm:"Line 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:98,ix:10},p:{a:0,k:[393.5,418,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:55,s:[0],e:[100]},{t:59}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[6],e:[100]},{t:56}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:52,s:[5],e:[0]},{t:59}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:52,op:110,st:52,bm:0},{ddd:0,ind:12,ty:4,nm:"Line 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:68,ix:10},p:{a:0,k:[411.5,320,0],ix:2},a:{a:0,k:[-2.5,200,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[344,-100],[-1.75,200.25]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:37,s:[0],e:[100]},{t:41}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[6],e:[100]},{t:38}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:34,s:[5],e:[0]},{t:41}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.270588235294,.352941176471,.392156862745,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:34,op:110,st:34,bm:0},{ddd:0,ind:13,ty:4,nm:"Blasting Circle 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,855,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:14,ty:4,nm:"Blasting Circle 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,615,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.37,.37],y:[1,1]},o:{x:[.42,.42],y:[0,0]},t:78,s:[0,0],e:[1127,1127]},{t:94}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.37],y:[1]},o:{x:[.42],y:[0]},t:78,s:[5],e:[0]},{t:94}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:78,op:110,st:78,bm:0},{ddd:0,ind:15,ty:4,nm:"Blasting Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400.5,415,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:61,s:[1007,1007],e:[0,0]},{t:71}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[5],e:[0]},{t:71}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:61,op:110,st:61,bm:0},{ddd:0,ind:16,ty:4,nm:"Blasting Circle ",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[399,320,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:40,s:[1007,1007],e:[0,0]},{t:50}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[5],e:[0]},{t:50}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:40,op:110,st:40,bm:0},{ddd:0,ind:17,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"rc",d:1,s:{a:0,k:[800,600],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.03137254902,.101960784314,.149019607843,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:110,op:110,st:0,bm:0,hidden:0}],markers:[]},Qp={class:"main-send-suggestion"},Jp={key:0,class:"sent-suggestion-section"},eg={class:"sent-suggestion-content"},tg={class:"container-send-suggestion"},ng={key:0,class:"tool_tip_suggestion_error"},ag={key:0,class:"loader-suggestion"},og={key:1},rg=Ce({__name:"sendSuggestion",props:{loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["postSuccess"],setup(t,{emit:n}){const a=n,o=e.ref(""),r=e.ref(!1),i=()=>{if(r.value=!1,!o.value){r.value=!0;return}a("postSuccess",o.value)};return(s,l)=>{const c=e.resolveComponent("Vue3Lottie");return e.openBlock(),e.createElementBlock("main",Qp,[t.sentSuccess?(e.openBlock(),e.createElementBlock("section",Jp,[e.createElementVNode("div",eg,[l[2]||(l[2]=e.createElementVNode("p",{class:"text-lg font-semibold uppercase"}," Sua sugestão foi recebida com sucesso ",-1)),e.createVNode(c,{"animation-data":e.unref(Kp),height:200,width:200,"auto-play":!0,loop:!0},null,8,["animation-data"]),l[3]||(l[3]=e.createElementVNode("span",{class:"flex flex-col gap-3 lg:text-justify"},[e.createElementVNode("p",{class:"font-semibold"}," Nossa equipe irá avaliá-la com atenção e considerar sua implementação. "),e.createElementVNode("p",{class:"text-[12px]"}," Você irá receber um e-mail com as informações da solicitação e nossa equipe irá responder em até 30 dias ")],-1)),l[4]||(l[4]=e.createElementVNode("p",{class:"font-bold"},"Agradecemos sua colaboração",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("section",tg,[l[5]||(l[5]=e.createElementVNode("h1",{class:"header_send_suggestion"},"Envie sua sugestão para nós",-1)),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=m=>o.value=m),class:"input_send_suggestion textarea-send-suggestion",placeholder:"Gostaria que vocês adicionassem...",type:"text"},null,512),[[e.vModelText,o.value]]),r.value?(e.openBlock(),e.createElementBlock("span",ng," Por favor, preencha o campo antes de continuar ")):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:l[1]||(l[1]=m=>i()),class:"submit-button-send-suggestion"},[t.loader?(e.openBlock(),e.createElementBlock("div",ag)):(e.openBlock(),e.createElementBlock("p",og,"Enviar"))])])])}}},[["__scopeId","data-v-b6717495"]]),ig=t=>`<svg class="${t}" aria-hidden="true" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 14v4.833A1.166 1.166 0 0 1 16.833 20H5.167A1.167 1.167 0 0 1 4 18.833V7.167A1.166 1.166 0 0 1 5.167 6h4.618m4.447-2H20v5.768m-7.889 2.121 7.778-7.778" /> </svg>`,sg=t=>`<svg class="${t}" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" > <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 10h16m-8-3V4M7 7V4m10 3V4M5 20h14a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Zm3-7h.01v.01H8V13Zm4 0h.01v.01H12V13Zm4 0h.01v.01H16V13Zm-8 4h.01v.01H8V17Zm4 0h.01v.01H12V17Zm4 0h.01v.01H16V17Z" /> </svg>`,lg=["innerHTML"],H1={__name:"svg",props:{svgContent:{type:String,required:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{innerHTML:t.svgContent},null,8,lg))}},cg={class:"feature-card__header"},dg={class:"feature-card__title"},ug={class:"flex items-center gap-2"},mg={key:0,class:"sparkle-badge"},fg={key:0},hg={class:"feature-card__content"},pg={class:"feature-card__description scroll_area_feature_card"},gg=["innerHTML"],yg=["href"],kg={class:"feature-card__footer"},xg={class:"feature-card__footer-section"},z1=Ce({__name:"feature_card",props:{state:{type:String,required:!0,default:"updated"},title:{type:String,required:!0},description:{type:String,required:!0},date:{type:[String,null],required:!0},tutorial:{type:String,default:null},flag:{type:String,required:!0},sparkles:{type:Boolean,default:!1}},setup(t){const n=e.ref(!1),a=e.ref(null),o=t;mn(a,()=>{n.value=!1});const i=e.computed(()=>({"arrow-icon-patch-notes":!0,rotate:!n.value})),s=e.computed(()=>({"feature-card":!0,"feature-card--updated":o.state==="updated","feature-card--future":o.state==="future-update","feature-card--other":o.state!=="updated"&&o.state!=="future-update"})),l=e.computed(()=>({"pill-flag":!0,"pill-flag--new-feature":o.flag==="new-feature","pill-flag--improvement":o.flag==="improvement","pill-flag--bug-fix":o.flag==="bug-fix"})),c=e.computed(()=>o.flag==="improvement"?"Melhorias":o.flag==="new-feature"?"Novo Recurso":"correção de erros"),m=e.computed(()=>({"pill-date":!0,"pill-date--updated":o.state==="updated","pill-date--future":o.state!=="updated"}));return(u,h)=>{const f=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["feature_style relative",s.value]),ref_key:"targetFeatureCard",ref:a,onClick:h[0]||(h[0]=p=>n.value=!n.value)},[e.createElementVNode("header",cg,[e.createElementVNode("h1",dg,e.toDisplayString(t.title),1),e.createElementVNode("section",ug,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value),viewBox:"0 0 24 24",fill:"none"},h[1]||(h[1]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M15 11L12 8M12 8L9 11M12 8V16M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)),t.sparkles?(e.openBlock(),e.createElementBlock("div",mg,h[2]||(h[2]=[e.createStaticVNode('<svg class="size-4" viewBox="0 0 128 128" data-v-548200ae><path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-548200ae></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-548200ae></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-548200ae></path><g data-v-548200ae><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-548200ae></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-548200ae></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-548200ae></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-548200ae></path></svg>',1)]))):e.createCommentVNode("",!0)])]),e.createVNode(e.Transition,{name:"fade-slide"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",fg,[h[4]||(h[4]=e.createElementVNode("hr",{class:"feature-card__divider"},null,-1)),e.createElementVNode("section",hg,[e.createElementVNode("span",pg,[e.createElementVNode("p",{class:"feature-card__paragraph",innerHTML:t.description.replace(/\n/g,"<br>")},null,8,gg)]),t.tutorial?(e.openBlock(),e.createElementBlock("a",{key:0,class:"feature-card__tutorial-button",href:t.tutorial,target:"__blank"},[h[3]||(h[3]=e.createTextVNode(" Veja o tutorial ")),e.createVNode(H1,{svgContent:e.unref(ig)("size-4 text-blue-900")},null,8,["svgContent"])],8,yg)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("footer",kg,[e.createElementVNode("section",xg,[e.createElementVNode("span",{class:e.normalizeClass(l.value)},e.toDisplayString(c.value),3),e.createVNode(f,{class:"pill_date_popper",hover:"",disabled:t.state==="updated",arrow:!0,content:"Essa é uma data prevista para o lançamento deste recurso, a mesma está sujeita a mudanças a qualquer momento"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.createVNode(H1,{svgContent:e.unref(sg)("size-4 text-white")},null,8,["svgContent"]),e.createElementVNode("p",null,e.toDisplayString(new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(t.date+"T12:00:00")).replace(/ de /g," ")),1)],2)]),_:1},8,["disabled"])])])],2)}}},[["__scopeId","data-v-548200ae"]]),bg={class:"modal-container-patch-notes"},wg={class:"modal-content-patch-notes scroll_area_patch_notes_latest_update"},Eg={class:"modal-header-patch-notes"},vg={class:"modal-body-patch-notes"},Cg={class:"modal-body-control"},Sg={class:"modal-section-patch-notes updates-section-patch-notes"},Bg={key:0,class:"sections-skeleton-loader"},Vg={class:"skeleton-loader skeleton-color-latest_update"},Mg={key:1,class:"text-not-patchs"},Ng={class:"modal-section-patch-notes future-section-patch-notes"},Ag={key:0,class:"sections-skeleton-loader"},Tg={class:"skeleton-loader skeleton-color-latest_update"},Dg={key:1,class:"text-not-patchs"},j1=Ce({__name:"patchNotes",props:{future_updates:{type:[Object,null],required:!0},latest_update:{type:[Object,null],required:!0},loader:{type:Boolean,default:!1},sentSuccess:{type:Boolean,default:!1}},emits:["close","postSuggestion","loadMoreFutureUpdates","loadMoreLatestUpdates"],setup(t,{emit:n}){const a=e.ref(1),o=e.ref(1),r=e.ref(null),i=e.ref(null),s=n,l=f=>{s("postSuggestion",f)},c=()=>{s("close"),a.value=1,o.value=1},m=({loaded:f,complete:p})=>{s("loadMoreFutureUpdates",{loaded:f,complete:p,page:a.value}),a.value++},u=({loaded:f,complete:p})=>{s("loadMoreLatestUpdates",{loaded:f,complete:p,page:o.value}),o.value++},h=f=>{if(!f)return!1;const p=new Date,d=new Date(f+"T12:00:00");return Math.abs(p-d)/(1e3*60*60*24)<=3};return(f,p)=>(e.openBlock(),e.createElementBlock("main",null,[p[8]||(p[8]=e.createElementVNode("div",{class:"modal-overlay-patch-notes"},[e.createElementVNode("div",{class:"modal-backdrop-patch-notes"})],-1)),e.createElementVNode("div",bg,[e.createElementVNode("div",wg,[e.createElementVNode("div",Eg,[e.createElementVNode("button",{onClick:p[0]||(p[0]=d=>c()),class:"modal-close-btn-patch-notes"},p[1]||(p[1]=[e.createElementVNode("svg",{class:"modal-close-icon-patch-notes","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)]))]),e.createElementVNode("div",vg,[e.createElementVNode("div",Cg,[e.createElementVNode("section",Sg,[p[4]||(p[4]=e.createElementVNode("h1",{class:"header_latest_update"},"Ultimas Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollLasContainer",ref:i,class:"features-list scrollable-section scroll_area_patch_notes_latest_update"},[t.latest_update?t.latest_update<=0?(e.openBlock(),e.createElementBlock("span",Mg," Nenhuma atualização programada ")):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("section",Bg,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,d=>e.createElementVNode("div",Vg)),64))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.latest_update,(d,g)=>(e.openBlock(),e.createBlock(z1,{key:g,state:"updated",title:d.title,description:d.description,date:d.launched_at,tutorial:d.tutorial,flag:d.flag,sparkles:h(d.launched_at)},null,8,["title","description","date","tutorial","flag","sparkles"]))),128)),e.createVNode(e.unref(Ht),{distance:20,target:i.value,onInfinite:u},{complete:e.withCtx(()=>p[2]||(p[2]=[e.createElementVNode("span",{class:""},null,-1)])),spinner:e.withCtx(()=>p[3]||(p[3]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-latest_update"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)]),e.createElementVNode("section",Ng,[p[7]||(p[7]=e.createElementVNode("h1",{class:"header_future_updates"},"Futuras Atualizações",-1)),e.createElementVNode("div",{ref_key:"scrollFutContainer",ref:r,class:"features-list scrollable-section scroll_area_patch_notes_future_updates"},[t.future_updates?t.future_updates<=0?(e.openBlock(),e.createElementBlock("span",Dg," Nenhuma atualização programada ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.future_updates,(d,g)=>(e.openBlock(),e.createBlock(z1,{key:g,state:"future-update",title:d.title,description:d.description,date:d.launched_at,tutorial:d.tutorial,flag:d.flag},null,8,["title","description","date","tutorial","flag"]))),128)):(e.openBlock(),e.createElementBlock("section",Ag,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,d=>e.createElementVNode("div",Tg)),64))])),e.createVNode(e.unref(Ht),{distance:20,target:r.value,onInfinite:m},{complete:e.withCtx(()=>p[5]||(p[5]=[e.createElementVNode("span",{class:""},null,-1)])),spinner:e.withCtx(()=>p[6]||(p[6]=[e.createElementVNode("section",{class:"sections-skeleton-loader"},[e.createElementVNode("div",{class:"skeleton-loader skeleton-color-future_updates"},[e.createElementVNode("div",{class:"infinite-loader-spin"})])],-1)])),_:1},8,["target"])],512)])]),e.createVNode(rg,{loader:t.loader,sentSuccess:t.sentSuccess,onPostSuccess:l},null,8,["loader","sentSuccess"])])])])]))}},[["__scopeId","data-v-a451d2d0"]]),Lg={key:0,class:"sparkle-badge"},Fg={key:0,class:"text-white text-center flex-1"},$g={key:1,class:"sparkle-badge"},G1=Ce({__name:"btnNewUpdates",props:{type:{type:String,default:"attendant",required:!0},mode:{type:String,default:"dark"},sparkles:{type:Boolean,default:!1}},emits:["openNewUpdates"],setup(t,{emit:n}){const a=n,o=t,r=(l,c)=>{const m={attendant:{container:"main-container-new-update",button:"update-button",tooltip:"tooltip-new-update",iconSize:"size-4",usePopper:!1,text:null},managerSideBarClose:{container:"main-container-new-update-manager-close",button:"new_update-button ",tooltip:null,iconSize:"size-6",usePopper:!0,text:null},managerSideBarOpen:{container:"main-container-new-update-manager-open",button:"new_update-button-open-side open-width",tooltip:null,iconSize:"size-6",usePopper:!1,text:"Notas de atualização"}};return m[l]||m.attendant},i=e.computed(()=>r(o.type,o.sparkles)),s=()=>{a("openNewUpdates")};return(l,c)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["relative",i.value.container]),onClick:s},[i.value.usePopper?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.value.button)},c[0]||(c[0]=[e.createElementVNode("svg",{class:"new_update-icon",fill:"currentColor",viewBox:"0 0 420.827 420.827"},[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])])],-1)]),2),t.sparkles?(e.openBlock(),e.createElementBlock("div",Lg,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[1]||(c[1]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)]),2))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{class:e.normalizeClass(["relative",i.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.mode==="dark"?"dark_new_update-icon":"new_update-icon"),fill:"currentColor",viewBox:"0 0 420.827 420.827"},c[2]||(c[2]=[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M210.29,0C156,0,104.43,20.693,65.077,58.269C25.859,95.715,2.794,146.022,0.134,199.921 c-0.135,2.734,0.857,5.404,2.744,7.388c1.889,1.983,4.507,3.105,7.244,3.105h45.211c5.275,0,9.644-4.098,9.979-9.362 c4.871-76.214,68.553-135.914,144.979-135.914c80.105,0,145.275,65.171,145.275,145.276c0,80.105-65.17,145.276-145.275,145.276 c-18.109,0-35.772-3.287-52.501-9.771l17.366-15.425c2.686-2.354,3.912-5.964,3.217-9.468c-0.696-3.506-3.209-6.371-6.592-7.521 l-113-32.552c-3.387-1.149-7.122-0.407-9.81,1.948c-2.686,2.354-3.913,5.963-3.218,9.467L69.71,403.157 c0.696,3.505,3.209,6.372,6.591,7.521c3.383,1.147,7.122,0.408,9.81-1.946l18.599-16.298 c31.946,18.574,68.456,28.394,105.581,28.394c116.021,0,210.414-94.392,210.414-210.414C420.705,94.391,326.312,0,210.29,0z"}),e.createElementVNode("path",{d:"M195.112,237.9h118.5c2.757,0,5-2.242,5-5v-30c0-2.757-2.243-5-5-5h-83.5v-91c0-2.757-2.243-5-5-5h-30 c-2.757,0-5,2.243-5,5v126C190.112,235.658,192.355,237.9,195.112,237.9z"})])],-1)]),2)),i.value.text?(e.openBlock(),e.createElementBlock("span",Fg,e.toDisplayString(i.value.text),1)):e.createCommentVNode("",!0),t.sparkles?(e.openBlock(),e.createElementBlock("div",$g,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value.iconSize),viewBox:"0 0 128 128"},c[3]||(c[3]=[e.createStaticVNode('<path d="M121.59 60.83l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.16-.59-.55-1.38-1.75-1.38c-1.01 0-1.59.79-1.75 1.38l-6.13 29.87c-2.46 9.06-7.67 16.27-16.58 19.21l-13.93 4.49c-1.97.64-2 3.42-.04 4.09l14.03 4.83c8.88 2.95 14.06 10.15 16.52 19.17l6.14 29.53c.16.59.49 1.65 1.75 1.65c1.33 0 1.59-1.06 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c1.94-.68 1.91-3.46-.06-4.1z" fill="#fdd835" data-v-200168a7></path><path d="M122.91 62.08c-.22-.55-.65-1.03-1.32-1.25l-13.93-4.49c-8.91-2.94-14.13-10.15-16.58-19.21L84.95 7.27c-.09-.34-.41-.96-.78-1.14l1.98 29.97c1.47 13.68 2.73 20.12 13.65 22c9.38 1.62 20.23 3.48 23.11 3.98z" fill="#ffee58" data-v-200168a7></path><path d="M122.94 63.64l-24.16 5.54c-8.51 2.16-13.2 7.09-13.2 19.99l-2.37 30.94c.81-.08 1.47-.52 1.75-1.65l6.14-29.53c2.46-9.03 7.64-16.23 16.52-19.17l14.03-4.83c.66-.24 1.08-.73 1.29-1.29z" fill="#f4b400" data-v-200168a7></path><g data-v-200168a7><path d="M41.81 86.81c-8.33-2.75-9.09-5.85-10.49-11.08l-3.49-12.24c-.21-.79-2.27-.79-2.49 0L22.97 74.8c-1.41 5.21-4.41 9.35-9.53 11.04l-8.16 3.54c-1.13.37-1.15 1.97-.02 2.35l8.22 2.91c5.1 1.69 8.08 5.83 9.5 11.02l2.37 10.82c.22.79 2.27.79 2.48 0l2.78-10.77c1.41-5.22 3.57-9.37 10.5-11.07l7.72-2.91c1.13-.39 1.12-1.99-.02-2.36l-7-2.56z" fill="#fdd835" data-v-200168a7></path><path d="M28.49 75.55c.85 7.86 1.28 10.04 7.65 11.67l13.27 2.59c-.14-.19-.34-.35-.61-.43l-7-2.57c-7.31-2.5-9.33-5.68-10.7-12.04c-1.37-6.36-2.83-10.51-2.83-10.51c-.51-1.37-1.24-1.3-1.24-1.3l1.46 12.59z" fill="#ffee58" data-v-200168a7></path><path d="M28.73 102.99c0-7.41 4.05-11.08 10.49-11.08l10.02-.41s-.58.77-1.59 1.01l-6.54 2.13c-5.55 2.23-8.08 3.35-9.8 10.94c0 0-2.22 8.83-2.64 9.76c-.58 1.3-1.27 1.57-1.27 1.57l1.33-13.92z" fill="#f4b400" data-v-200168a7></path></g><path d="M59.74 28.14c.56-.19.54-.99-.03-1.15l-7.72-2.08a4.77 4.77 0 0 1-3.34-3.3L45.61 9.06c-.15-.61-1.02-.61-1.17.01l-2.86 12.5a4.734 4.734 0 0 1-3.4 3.37l-7.67 1.99c-.57.15-.61.95-.05 1.15l8.09 2.8c1.45.5 2.57 1.68 3.01 3.15l2.89 11.59c.15.6 1.01.61 1.16 0l2.99-11.63a4.773 4.773 0 0 1 3.04-3.13l8.1-2.72z" fill="#f4b400" stroke="#f4b400" stroke-miterlimit="10" data-v-200168a7></path>',5)]),2))])):e.createCommentVNode("",!0)],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass(i.value.tooltip)}," Notas de atualização ",2),[[e.vShow,i.value.tooltip]])],64))],2))}},[["__scopeId","data-v-200168a7"]]),Pg=["innerHTML"],Og=["src"],q1={__name:"libPhotoPicker",props:{modelValue:{type:[String,null],default:null},sizeClass:{type:String,default:"size-22"},baseClass:{type:String,default:"shadow shadow-black rounded-xl relative border-2 border-gray-500 bg-base-300 hover:bg-base-300/70 transition-all"},emptyPlaceholder:{type:String,default:'<svg class="size-32 text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"> <path fill-rule="evenodd" d="M7.5 4.586A2 2 0 0 1 8.914 4h6.172a2 2 0 0 1 1.414.586L17.914 6H19a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1.086L7.5 4.586ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z" clip-rule="evenodd"/> </svg>'}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n,o=async()=>{const i=document.createElement("input");i.type="file",i.accept="image/*",i.onchange=async s=>{const l=s.target.files[0];if(!l)return;const c=new FileReader;c.onload=()=>{a("update:modelValue",c.result)},c.readAsDataURL(l)},i.click()},r=async()=>{a("update:modelValue",null)};return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(t.baseClass)},[t.modelValue?(e.openBlock(),e.createElementBlock("img",{key:1,src:typeof t.modelValue=="string"&&t.modelValue.startsWith("data:image/")?t.modelValue:`${t.modelValue}?t=${Date.now()}`,onClick:o,class:e.normalizeClass(`${t.sizeClass} rounded-xl z-10 object-center bg-base-300 object-scale-down hover:bg-base-300/70`)},null,10,Og)):(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(`flex items-center justify-center ${t.sizeClass}`),onClick:o},[e.createElementVNode("span",{class:e.normalizeClass("p-3 rounded-xl text-gray-400 hover:scale-105 hover:text-primary hover:border-primary"),innerHTML:t.emptyPlaceholder},null,8,Pg)],2)),t.modelValue?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:e.withModifiers(r,["stop"]),class:"absolute top-1 right-1 rounded-lg bg-red-600 hover:bg-red-500 z-50 py-1 px-1"},s[0]||(s[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]))):e.createCommentVNode("",!0)],2))}},_g={key:0,class:"text-gray-500 text-xs"},Rg={key:1,class:"text-gray-300 text-xs"},Hg={class:"text-green-500"},zg={key:0,class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md max-h-64 overflow-y-auto hide-scrollbar"},jg={class:"p-2 sticky top-0 bg-base-300"},Gg=["onClick"],qg={class:"text-xs truncate max-w-32"},Ig={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Wg={key:0,class:"text-center text-gray-400 py-2"},I1=Ce({__name:"selectMultipleDepartments",props:{modelValue:{type:Array,default:()=>[]},departments:{type:Array,default:()=>[],required:!0},placeholder:{type:String,default:"Selecione departamentos..."}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null);mn(s,()=>r.value=!1);const l=e.computed(()=>a.departments.filter(m=>m.name.toLowerCase().includes(i.value.toLowerCase()))),c=m=>{const u=[...a.modelValue],h=u.findIndex(f=>f.id===m.id);h===-1?u.push({id:m.id,name:m.name}):u.splice(h,1),o("update:modelValue",u)};return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:u[0]||(u[0]=h=>r.value=!r.value),class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",Rg,[u[2]||(u[2]=e.createTextVNode(" Selecionados: ")),e.createElementVNode("a",Hg,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",_g,e.toDisplayString(t.placeholder),1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},u[3]||(u[3]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))]),r.value?(e.openBlock(),e.createElementBlock("div",zg,[e.createElementVNode("div",jg,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[1]||(u[1]=h=>i.value=h),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,i.value]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("button",{key:h.id,class:e.normalizeClass([t.modelValue.some(f=>f.id===h.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:f=>c(h)},[e.createElementVNode("span",qg,e.toDisplayString(h.name),1),t.modelValue.some(f=>f.id===h.id)?(e.openBlock(),e.createElementBlock("svg",Ig,u[4]||(u[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,Gg))),128)),l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wg,u[5]||(u[5]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)])))])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-c83e0000"]]);function cn(t){if(!t)return"black";const n=t.replace("#",""),a=parseInt(n,16),o=a>>16&255,r=a>>8&255,i=a&255;return(o*299+r*587+i*114)/1e3>=128?"text-black":"text-white"}const Ug={key:0,class:"text-gray-500 text-xs"},Zg={key:1,class:"text-gray-300 text-xs"},Yg={class:"text-green-500"},Xg={key:0,class:"text-gray-500 text-xs"},Kg={key:1,class:"inline-flex items-center gap-1"},Qg={class:"text-xs truncate max-w-32 rounded-r-md"},Jg={class:"p-2 sticky top-0 bg-base-300"},ey=["onClick"],ty={class:"inline-flex"},ny={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},ay={key:0,class:"text-center text-gray-400 py-2"},oy={class:"p-2 sticky top-0 bg-base-300"},ry=["onClick"],iy={class:"inline-flex"},sy={key:0,class:"size-4 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},ly={key:0,class:"text-center text-gray-400 py-2"},Ga=Ce({__name:"selectMultipleTags",props:{modelValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},closeOnSelectSingle:{type:Boolean,default:!0},teleportTo:{type:String,default:null},maxHeight:{type:String,default:"10rem"},allTags:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(""),s=e.ref(null),l=e.ref(null),c=e.ref(null),m=e.ref({}),u=e.ref([]),h=e.ref(1),f=e.ref(null),p=e.ref(null),d=e.ref(!1),g=e.ref({name:""});e.ref(!1);const x=e.computed(()=>a.modelValue[0]||null),b=w=>{var S,B,N;if(!r.value)return;const A=w.target;(S=c.value)!=null&&S.contains(A)||(B=s.value)!=null&&B.contains(A)||(N=l.value)!=null&&N.contains(A)||(r.value=!1)},k=()=>{if(!a.teleportTo||!c.value)return;const w=c.value.getBoundingClientRect();m.value={position:"fixed",top:`${w.bottom+3}px`,left:`${w.left}px`,width:`${w.width}px`,zIndex:9999}};e.watch(r,w=>{w&&k()});const y=e.computed(()=>u.value.filter(w=>w.name.toLowerCase().includes(i.value.toLowerCase()))),v=w=>{var B;if(!a.multiple){if(((B=x.value)==null?void 0:B.id)===w.id){o("update:modelValue",[]);return}o("update:modelValue",[{id:w.id,name:w.name,color:w.color}]),a.closeOnSelectSingle&&(r.value=!1);return}const A=[...a.modelValue],S=A.findIndex(N=>N.id===w.id);S===-1?A.push({id:w.id,name:w.name,color:w.color}):A.splice(S,1),o("update:modelValue",A)},C=(w,A)=>{const S=new URLSearchParams,B=w;return Object.keys(A).forEach(N=>S.append(N,A[N])),`${B}?${S.toString()}`},L=async w=>{try{const A=await Ue.get(C(b0,{page:h.value,...w})),{results:S,next:B,previous:N}=A.data;f.value=B,p.value=N,h.value===1?u.value=S:u.value=[...u.value,...S]}catch(A){console.error(A)}},P=async w=>{if(!d.value){d.value=!0;try{await L(),f.value?(h.value++,w.loaded()):w.complete()}catch(A){console.error("Erro ao carregar tags:",A),w.complete()}finally{d.value=!1}}};let E;return e.watch(g,()=>{clearTimeout(E),E=setTimeout(async()=>{const{name:w}=g.value;h.value=1,await L({name:w.toString()})},800)},{deep:!0}),e.onMounted(async()=>{var w;if(a.allTags&&((w=a.allTags.results)==null?void 0:w.length)>0?(u.value=a.allTags.results,f.value=a.allTags.next||null,p.value=a.allTags.previous||null,h.value=2):await L(),a.teleportTo){const A=()=>{r.value&&k()};window.addEventListener("scroll",A,!0),window.addEventListener("resize",A)}document.addEventListener("mousedown",b)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",b)}),(w,A)=>{var S;return e.openBlock(),e.createElementBlock("div",{class:"relative w-full z-[9999]",ref_key:"dropdownRef",ref:s},[e.createElementVNode("div",{onClick:A[0]||(A[0]=B=>r.value=!r.value),ref_key:"triggerRef",ref:c,class:"flex flex-wrap items-center justify-between gap-2 bg-base-300 p-3 rounded-md border border-base-300 cursor-pointer"},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.modelValue.length?(e.openBlock(),e.createElementBlock("span",Zg,[A[3]||(A[3]=e.createTextVNode(" Selecionados: ")),e.createElementVNode("a",Yg,e.toDisplayString(t.modelValue.length),1)])):(e.openBlock(),e.createElementBlock("span",Ug," Selecione suas etiquetas "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.modelValue.length?(e.openBlock(),e.createElementBlock("section",Kg,[e.createElementVNode("span",Qg,e.toDisplayString((S=t.modelValue[0])==null?void 0:S.name),1)])):(e.openBlock(),e.createElementBlock("span",Xg," Selecione a etiqueta "))],64)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3.5 text-white transition duration-300",r.value?"rotate-180":""]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},A[4]||(A[4]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))],512),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",Jg,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":A[1]||(A[1]=B=>g.value.name=B),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,B=>(e.openBlock(),e.createElementBlock("button",{key:B.id,class:e.normalizeClass([t.modelValue.some(N=>N.id===B.id)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 cursor-pointer transition w-full"]),onClick:N=>v(B)},[e.createElementVNode("section",ty,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:B.color||"#ffff"})},A[5]||(A[5]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:B.color||"#ffff"}),class:e.normalizeClass(["text-xs truncate max-w-32 p-1 rounded-r-md",e.unref(cn)(B.color||"#ffff")])},e.toDisplayString(B.name),7)]),t.modelValue.some(N=>N.id===B.id)?(e.openBlock(),e.createElementBlock("svg",ny,A[6]||(A[6]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,ey))),128)),y.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ay,A[7]||(A[7]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)]))),f.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:1,onInfinite:P,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>A[8]||(A[8]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{ref_key:"teleportedRef",ref:l,style:e.normalizeStyle({...m.value,maxHeight:a.maxHeight}),class:"absolute z-10 mt-1.5 w-full bg-base-300 shadow-sm shadow-base-100 border border-base-300 rounded-md overflow-y-auto hide-scrollbar"},[e.createElementVNode("div",oy,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":A[2]||(A[2]=B=>g.value.name=B),type:"text",placeholder:"Buscar...",class:"w-full text-[10px] bg-base-200 rounded-md p-2 outline-none border-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-gray-500"},null,512),[[e.vModelText,g.value.name]])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,B=>(e.openBlock(),e.createElementBlock("button",{key:B.id,class:e.normalizeClass(["select-tag-btn",{selected:t.modelValue.some(N=>N.id===B.id)}]),onClick:N=>v(B)},[e.createElementVNode("section",iy,[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 3 97",style:e.normalizeStyle({color:B.color||"#ffff"})},A[9]||(A[9]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:B.color||"#ffff"}),class:e.normalizeClass(["viewTag",e.unref(cn)(B.color||"#ffff")])},e.toDisplayString(B.name),7)]),t.modelValue.some(N=>N.id===B.id)?(e.openBlock(),e.createElementBlock("svg",sy,A[10]||(A[10]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 11.917 9.724 16.5 19 7.5"},null,-1)]))):e.createCommentVNode("",!0)],10,ry))),128)),y.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ly,A[11]||(A[11]=[e.createElementVNode("span",{class:"text-xs"},"Nenhum resultado encontrado",-1)]))),f.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:1,onInfinite:P,class:"p-3 bg-base-300"},{spinner:e.withCtx(()=>A[12]||(A[12]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)],4)],8,["to"])):e.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-273f3308"]]),cy={class:"flex flex-col gap-2 w-full h-full"},dy={class:"flex items-center justify-between px-1"},uy={class:"text-xs font-medium text-left"},my=["innerHTML"],fy=["type","placeholder"],hy=["placeholder"],py={key:3,class:"input__error"},qa=Ce({__name:"primaryInput",props:{content:{type:Object,default:()=>({})}},emits:["update:content"],setup(t,{emit:n}){const a=t,o=n,r=e.reactive({title:a.content.title??"Nome do produto",svg:a.content.svg??`<svg class="size-4 flex items-center text-base-100" fill="currentColor" viewBox="0 0 495.554 495.554">
122
121
  <path d="M353.732,451.163c3.388,10.912-2.324,22.536-13.024,26.545c-35.256,13.208-68.455,17.846-111.453,17.846
123
122
  c-118.188,0-222.136-84.711-222.136-224.283C7.118,126.042,112.492,0,273.4,0c125.316,0,215.036,86.156,215.036,205.784
124
123
  c0,103.949-58.388,169.434-135.282,169.434c-33.456,0-57.69-17.076-61.225-54.813h-1.423
@@ -129,4 +128,4 @@ $bm_rt = loopOut('cycle', 0);`},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,
129
128
  c5.426-1.969,11.42-1.629,16.591,0.935c5.171,2.565,9.08,7.133,10.792,12.646L353.732,451.163z M296.189,175.873
130
129
  c-5.686-1.423-12.815-2.847-22.064-2.847c-47.017,0-84.035,46.27-84.035,101.11c0,27.053,12.117,44.117,35.594,44.117
131
130
  c26.346,0,54.125-33.443,60.527-74.754L296.189,175.873z"/>
132
- </svg>`,info:a.content.info??"Nome que será atribuído no Produto",type:a.content.type??"text",placeholder:a.content.placeholder??"Integração de sistemas",empty:a.content.empty??!1,data:a.content.data??""}),i=e.ref(r.data);e.watch(i,l=>{o("update:content",{...r,data:l})},{immediate:!0,deep:!0}),e.watch(()=>a.content,l=>{l.data!==i.value&&(i.value=l.data),l.empty!==r.empty&&(r.empty=l.empty)},{deep:!0});const s=e.computed(()=>r.empty&&!i.value);return(l,c)=>{const u=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",Fy,[e.createElementVNode("header",$y,[e.createElementVNode("p",Py,e.toDisplayString(r.title),1),r.info?(e.openBlock(),e.createBlock(u,{key:0,hover:"",content:r.info,placement:"top",arrow:""},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["input__container bg-base-300",s.value?"input__container--error":"",r.type==="textArea"?"textArea":""])},[r.type!=="textArea"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(s.value?"text-red-500":"text-base-100"),innerHTML:r.svg},null,10,Oy)):e.createCommentVNode("",!0),r.type!=="textArea"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:r.type,key:r.type,placeholder:r.placeholder,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),class:e.normalizeClass([s.value?"empty":null,"input__field bg-base-300"])},null,10,_y)),[[e.vModelDynamic,i.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:2,class:e.normalizeClass([s.value?"empty":null,"input__field bg-base-300 h-full resize-y"]),"onUpdate:modelValue":c[1]||(c[1]=d=>i.value=d),placeholder:r.placeholder},null,10,Ry)),[[e.vModelText,i.value]]),s.value?(e.openBlock(),e.createElementBlock("span",Hy," Campo obrigatório ")):e.createCommentVNode("",!0)],2)])}}},[["__scopeId","data-v-406b36cd"]]),zy=["onClick"],jy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Gy=["onClick"],Iy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},pi=we({__name:"simpleSelect",props:{modelValue:{type:[Array,String,Number,Object],default:()=>[]},options:{type:Array,required:!0,default:()=>[]},placeholder:{type:String,default:"Selecione uma opção..."},multiple:{type:Boolean,default:!1},theme:{type:String,default:"bg-base-300 border-base-300"},teleportTo:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({});Bn(i,()=>r.value=!1);const c=()=>{if(!a.teleportTo||!s.value)return;const g=s.value.getBoundingClientRect();l.value={position:"fixed",top:`${g.bottom+6}px`,left:`${g.left}px`,width:`${g.width}px`,zIndex:9999}};e.watch(r,g=>{g&&c()});const u=[];e.onMounted(()=>{if(a.teleportTo){const g=()=>{r.value&&c()};window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),u.push(["scroll",g],["resize",g])}}),e.onUnmounted(()=>{u.forEach(([g,m])=>window.removeEventListener(g,m,g==="scroll"?!0:void 0))});const d=g=>a.multiple&&Array.isArray(a.modelValue)?a.modelValue.includes(g):a.modelValue===g,h=g=>{if(a.multiple){const m=Array.isArray(a.modelValue)?[...a.modelValue]:[],p=m.indexOf(g);p===-1?m.push(g):m.splice(p,1),o("update:modelValue",m)}else o("update:modelValue",g),r.value=!1},f=e.computed(()=>{if(a.multiple&&Array.isArray(a.modelValue))return a.modelValue.length===0?a.placeholder:a.options.filter(p=>a.modelValue.includes(p.value)).map(p=>p.name).join(", ");const g=a.options.find(m=>m.value===a.modelValue);return(g==null?void 0:g.name)||a.placeholder});return(g,m)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:i},[e.createElementVNode("div",{onClick:m[0]||(m[0]=p=>r.value=!r.value),class:e.normalizeClass(["flex flex-wrap items-center justify-between p-3 gap-2 rounded-md cursor-pointer transition",t.theme]),ref_key:"triggerRef",ref:s},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs truncate max-w-full",f.value===t.placeholder?"text-gray-400":"text-white"])},e.toDisplayString(f.value),3),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3 text-white transition-transform duration-300",r.value?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[...m[1]||(m[1]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)])],2))],2),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute flex flex-col z-10 mt-1.5 w-full shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,p=>(e.openBlock(),e.createElementBlock("button",{key:p.value,class:e.normalizeClass([d(p.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(p.value)},[e.createElementVNode("span",null,e.toDisplayString(p.name),1),d(p.value)?(e.openBlock(),e.createElementBlock("svg",jy,[...m[2]||(m[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,zy))),128))],2)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{style:e.normalizeStyle(l.value),class:e.normalizeClass(["flex flex-col shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,p=>(e.openBlock(),e.createElementBlock("button",{key:p.value,class:e.normalizeClass([d(p.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:y=>h(p.value)},[e.createElementVNode("span",null,e.toDisplayString(p.name),1),d(p.value)?(e.openBlock(),e.createElementBlock("svg",Iy,[...m[3]||(m[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,Gy))),128))],6)],8,["to"])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-68d165f3"]]),qy={class:"flex gap-2"},ao=we({__name:"outcomeButton",props:{outcome:{type:String,default:null}},emits:["update:outcome","change"],setup(t,{emit:n}){const a=t,o=n;async function r(l){const c=a.outcome===l?null:l;o("update:outcome",c),o("change",c)}const i=e.computed(()=>a.outcome==="won"),s=e.computed(()=>a.outcome==="lost");return(l,c)=>(e.openBlock(),e.createElementBlock("div",qy,[e.createElementVNode("button",{onClick:c[0]||(c[0]=u=>r("won")),class:e.normalizeClass(["button_outcome-base bg-base-300 dark:bg-base-100",{"button_outcome-active-won":i.value}])},[c[3]||(c[3]=e.createElementVNode("p",null,"Ganho",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-won":i.value},"text-white size-4"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none"},[...c[2]||(c[2]=[e.createElementVNode("path",{d:"M3.16666 6.37502C3.74962 6.37502 4.2222 6.85073 4.22222 7.43752V15.9375C4.22222 16.5243 3.74963 17 3.16666 17H1.05555C0.472588 17 0 16.5243 0 15.9375V7.43752C1.50967e-05 6.85073 0.472597 6.37502 1.05555 6.37502H3.16666Z",fill:"CurrentColor"},null,-1),e.createElementVNode("path",{d:"M9.48143 1.4454C9.79496 -0.637173 11.5194 0.143216 11.5194 0.143216C13.863 1.75728 13.005 4.80783 12.2832 6.13118H17.4424C19.5307 6.65187 19.0768 8.34354 18.5887 9.12465C19.5056 10.7905 18.4191 11.7716 17.7609 12.0538C18.1175 13.7717 17.0601 14.4178 16.4869 14.5264C16.8944 16.4004 15.5533 16.9564 14.8314 17H10.436C8.49997 16.9999 6.19055 16.1753 5.27777 15.7632V7.368C9.03523 5.6108 9.09933 3.98356 9.48143 1.4454Z",fill:"CurrentColor"},null,-1)])],2))],2),e.createElementVNode("button",{onClick:c[1]||(c[1]=u=>r("lost")),class:e.normalizeClass(["button_outcome-base bg-base-300 dark:bg-base-100",{"button_outcome-active-lost":s.value}])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-lost":s.value},"text-white size-4 mt-0.8"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 19",fill:"none"},[...c[4]||(c[4]=[e.createElementVNode("path",{d:"M15.8333 10.625C15.2504 10.625 14.7778 10.1493 14.7778 9.56249L14.7778 1.0625C14.7778 0.475698 15.2504 1.57955e-06 15.8333 1.63051e-06L17.9444 1.81507e-06C18.5274 1.86603e-06 19 0.475698 19 1.0625L19 9.56249C19 10.1493 18.5274 10.625 17.9444 10.625L15.8333 10.625Z",fill:"CurrentColor"},null,-1),e.createElementVNode("path",{d:"M9.51857 15.5546C9.20504 17.6372 7.48065 16.8568 7.48065 16.8568C5.13698 15.2427 5.99503 12.1922 6.71681 10.8688L1.55759 10.8688C-0.530671 10.3481 -0.0768444 8.65646 0.411319 7.87535C-0.50562 6.20951 0.580926 5.22844 1.23906 4.94622C0.882549 3.22832 1.93994 2.5822 2.51315 2.47363C2.10564 0.59965 3.44673 0.0436064 4.16864 6.1075e-07L8.56403 9.95007e-07C10.5 0.000138493 12.8095 0.824657 13.7222 1.23682L13.7222 9.632C9.96477 11.3892 9.90067 13.0164 9.51857 15.5546Z",fill:"CurrentColor"},null,-1)])],2)),c[5]||(c[5]=e.createElementVNode("p",null,"Perdido",-1))],2)]))}},[["__scopeId","data-v-9e141c80"]]),Wy=["disabled"],Uy=["onMousemove","onClick"],oo=we({__name:"ratingInput",props:{modelValue:{type:Number,default:0},size:{type:Number,default:24},gap:{type:Number,default:4},onRate:{type:Function,default:null},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(a.modelValue),i=e.ref(0),s=e.ref(!1),l=e.ref(null);e.watch(()=>a.modelValue,y=>{r.value=y});const c=e.computed(()=>i.value||r.value);function u(y){const k=c.value-y+1;return k>=1?"100%":k>=.5?"50%":k>0?`${k*100}%`:"0%"}function d(y,k){const b=y.currentTarget.getBoundingClientRect(),x=y.offsetX<b.width/2;i.value=k-(x?.5:0)}function h(y,k){const b=y.currentTarget.getBoundingClientRect(),x=y.offsetX<b.width/2,C=k-(x?.5:0);r.value=r.value===C?0:C,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)}function f(){a.readonly||(s.value=!0)}function g(){s.value=!1,i.value=0}function m(y){if(!s.value||!l.value||a.readonly)return;const k=y.touches[0],b=l.value.getBoundingClientRect(),x=k.clientX-b.left,C=a.size+a.gap,M=Math.floor(x/C)+1;if(M>=1&&M<=5){const D=l.value.children[M-1];if(D){const H=D.getBoundingClientRect(),S=k.clientX-H.left<H.width/2;i.value=M-(S?.5:0)}}}function p(){s.value&&i.value>0&&(r.value=r.value===i.value?0:i.value,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)),s.value=!1,i.value=0}return(y,k)=>(e.openBlock(),e.createElementBlock("main",{ref_key:"containerRef",ref:l,disabled:a.readonly,class:"flex select-none",style:e.normalizeStyle({gap:`${t.gap}px`}),onMouseleave:k[1]||(k[1]=b=>!a.readonly&&(i.value=0)),onTouchstart:f,onTouchmove:m,onTouchend:p,onTouchcancel:g},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,b=>e.createElementVNode("div",{key:b,class:e.normalizeClass(["relative",{"cursor-pointer":!a.readonly,"cursor-default":a.readonly}]),style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),onMousemove:x=>!a.readonly&&d(x,b),onMouseleave:k[0]||(k[0]=x=>!a.readonly&&(i.value=0)),onClick:x=>!a.readonly&&h(x,b)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"absolute top-0 left-0 color-disabled",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[...k[2]||(k[2]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)])],4)),e.createElementVNode("div",{class:e.normalizeClass(["absolute top-0 left-0 h-full overflow-hidden transition-all duration-150",{"text-primary":!i.value,"text-hover":i.value>0}]),style:e.normalizeStyle({width:u(b),height:`${t.size}px`})},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[...k[3]||(k[3]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)])],4))],6)],46,Uy)),64))],44,Wy))}},[["__scopeId","data-v-08c60929"]]),Zy={class:"flex gap-1 px-1"},Yy=["onClick"],gi=we({__name:"toggleListButtons",props:{modelValue:{type:String,required:!0},buttons:{type:Array,required:!0,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("main",Zy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass(["toggle-page-button bg-base-200",{selected:t.modelValue===r.value}]),onClick:i=>a.$emit("update:modelValue",r.value)},e.toDisplayString(r.label),11,Yy))),128))]))}},[["__scopeId","data-v-c43374a9"]]),Xy={key:0,class:"header-products-list"},Ky={class:"total-price-badge text-white"},Qy={key:1,class:"flex items-center justify-center overflow-hidden h-full"},Jy={key:2,class:"list-products-list"},ek={key:0},tk={class:"w-full text-gray-500 list-none list-inside dark:text-gray-400 divide-y divide-base-200"},nk={key:0,class:"department-blocked"},ak={class:"flex gap-2 items-center pl-2"},ok=["src"],rk={key:1,class:"empty-product-photo"},ik={class:"flex flex-col items-start"},sk=["title"],lk={class:"text-[10px] flex gap-1 items-center"},ck={class:"text-xs font-semibold font-sans"},dk={key:0,class:"font-sans text-primary text-white dark:text-primary font-semibold"},uk={class:"text-green-400 dark:text-[#14532d] font-semibold"},mk={class:"flex flex-col gap-1 pr-2"},fk={class:"flex gap-1"},hk=["disabled","onClick"],pk=["disabled","onClick"],gk={key:1,class:"flex flex-col flex-1 gap-2 items-center justify-center"},yk={key:0,class:"text-gray-200 text-[10px] md:text-xs font-sans"},ro=we({__name:"listProducts",props:{modelValue:{type:Array,default:()=>[]},allProducts:{type:Object,default:()=>{}},onMouseLeave:{type:Function,required:!1},departmentBypass:{type:String,default:""},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref([]),s=e.computed(()=>[...i.value].sort((V,N)=>{const B=H(V),v=H(N);return B===v?0:B-v}));function l(V){return Array.isArray(V)?V.map(N=>N&&N.product?{product:{...N.product},quantity:N.quantity??0}:{product:{...N},quantity:N.quantity??0}):[]}const c=e.ref(l(a.modelValue)),u=e.ref(1),d=e.ref(null),h=e.ref(null),f=e.computed(()=>c.value.reduce((V,N)=>{var P;const B=((P=N.product)==null?void 0:P.price)||N.price||0,v=N.quantity||0;return V+B*v},0));function g(V){var N;return((N=V==null?void 0:V.product)==null?void 0:N.id)??(V==null?void 0:V.id)}const m=e.computed(()=>{const V={};return c.value.forEach(N=>{const B=g(N);B!=null&&(V[B]=N.quantity)}),V}),p=V=>m.value[V.id]||0,y=V=>{if(a.readonly||H(V))return;const N=c.value.find(B=>g(B)===V.id);N?N.quantity++:c.value.push({product:{...V},quantity:1})},k=V=>{if(a.readonly||H(V))return;const N=c.value.find(B=>g(B)===V.id);N&&(N.quantity>0?N.quantity--:N.quantity=0)},b=(V,N)=>{const B=new URLSearchParams,v=V;return Object.keys(N).forEach(P=>B.append(P,N[P])),`${v}?${B.toString()}`},x=async V=>{try{const{data:N}=await Xe.get(b(H0,{page:u.value,...V})),{results:B,next:v,previous:P}=N;if(d.value=v,h.value=P,u.value===1)i.value=B;else{const Z=new Set(i.value.map(J=>J.id)),Q=B.filter(J=>!Z.has(J.id));i.value=[...i.value,...Q]}d.value&&(u.value+=1)}catch(N){console.error("Erro ao buscar produtos:",N)}};e.onMounted(async()=>{var V;a.allProducts&&((V=a.allProducts.results)==null?void 0:V.length)>0?(i.value=a.allProducts.results,d.value=a.allProducts.next||null,h.value=a.allProducts.previous||null,u.value=2):(r.value=!0,await x(),r.value=!1)}),e.watch(c,V=>{o("update:modelValue",V.map(N=>({product:N.product,quantity:N.quantity})))},{deep:!0}),e.watch(()=>a.modelValue,V=>{const N=l(V);JSON.stringify(N)!==JSON.stringify(c.value)&&(c.value=N)},{deep:!0});const C=e.ref(!1),M=async V=>{if(!C.value){C.value=!0;try{if(!d.value){V.complete();return}await x(),d.value?V.loaded():V.complete()}catch(N){console.error("Erro ao carregar produtos:",N),V.complete()}finally{C.value=!1}}};function D(){typeof a.onMouseLeave=="function"&&a.onMouseLeave()}const H=V=>{if(C.value)return!1;const N=a.departmentBypass;if(!N)return!1;const B=Array.isArray(V==null?void 0:V.department)?V.department:[];return B.length===0?!1:!B.some(P=>P&&P.id===N)},S=e.ref({query:""}),w=e.ref(!1);let T;return e.watch(S,()=>{clearTimeout(T),T=setTimeout(async()=>{const{query:V}=S.value;u.value=1,w.value=V!=null,console.log("Buscando por:",w.value),r.value=!0,await x({query:V}),r.value=!1},500)},{deep:!0}),(V,N)=>{const B=e.resolveComponent("SimpleLoader");return e.openBlock(),e.createElementBlock("div",{class:"list-products-wrapper",onMouseleave:D},[i.value.length>0&&!w.value||w.value?(e.openBlock(),e.createElementBlock("header",Xy,[e.withDirectives(e.createElementVNode("input",{class:"search-products-input text-white dark:text-black",type:"text",placeholder:"Buscar...","onUpdate:modelValue":N[0]||(N[0]=v=>S.value.query=v)},null,512),[[e.vModelText,S.value.query]]),e.createElementVNode("section",Ky," Valor total: "+e.toDisplayString(f.value.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",Qy,[e.createVNode(B)])):(e.openBlock(),e.createElementBlock("main",Jy,[i.value.length>0?(e.openBlock(),e.createElementBlock("div",ek,[e.createElementVNode("ul",tk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(v,P)=>(e.openBlock(),e.createElementBlock("li",{class:"flex w-full justify-between items-center py-1.5 relative",key:v.id},[H(v)?(e.openBlock(),e.createElementBlock("span",nk,[...N[1]||(N[1]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"})],-1),e.createElementVNode("p",{class:"text-xs text-white/80"}," Este produto não faz parte do seu departamento ",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ak,[e.createElementVNode("section",null,[v.photo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"size-8 rounded-md",src:v.photo},null,8,ok)):(e.openBlock(),e.createElementBlock("div",rk,[...N[2]||(N[2]=[e.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9 3c0-.55228.44772-1 1-1h8c.5523 0 1 .44772 1 1v3c0 .55228-.4477 1-1 1h-2v1h2c.5096 0 .9376.38314.9939.88957L19.8951 17H4.10498l.90116-8.11043C5.06241 8.38314 5.49047 8 6.00002 8H12V7h-2c-.55228 0-1-.44772-1-1V3Zm1.01 8H8.00002v2.01H10.01V11Zm.99 0h2.01v2.01H11V11Zm5.01 0H14v2.01h2.01V11Zm-8.00998 3H10.01v2.01H8.00002V14ZM13.01 14H11v2.01h2.01V14Zm.99 0h2.01v2.01H14V14ZM11 4h6v1h-6V4Z","clip-rule":"evenodd"})],-1)])]))]),e.createElementVNode("section",ik,[e.createElementVNode("p",{title:v.name,class:e.normalizeClass(["label-product-name",p(v)>0?"text-white dark:text-primary":""])},e.toDisplayString(v.name),11,sk),e.createElementVNode("span",lk,[e.createElementVNode("p",ck," R$ "+e.toDisplayString(v.price.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1),p(v)>0?(e.openBlock(),e.createElementBlock("p",dk,[e.createTextVNode(" - x "+e.toDisplayString(p(v))+" = ",1),e.createElementVNode("a",uk,e.toDisplayString((v.price*p(v)).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("section",mk,[e.createElementVNode("p",{class:e.normalizeClass(["text-xs font-semibold font-sans products-and-services_badge dark:text-white",v.recurrence])},e.toDisplayString(v.recurrence==="monthly"?"Mensal":"Único"),3),e.createElementVNode("div",fk,[e.createElementVNode("button",{disabled:H(v)||t.readonly,class:"action-list-button bg-base-200",onClick:Z=>k(v)}," - ",8,hk),e.createElementVNode("p",{class:e.normalizeClass(["w-5 text-xs flex items-center justify-center font-semibold font-sans",p(v)>0?"text-white dark:text-black":""])},e.toDisplayString(p(v)),3),e.createElementVNode("button",{disabled:H(v)||t.readonly,class:"action-list-button bg-base-200",onClick:Z=>y(v)}," + ",8,pk)])])]))),128))]),d.value?(e.openBlock(),e.createBlock(e.unref(Xt),{key:0,onInfinite:M,class:"p-3"},{spinner:e.withCtx(()=>[...N[3]||(N[3]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!r.value&&i.value.length<=0?(e.openBlock(),e.createElementBlock("section",gk,[N[5]||(N[5]=e.createElementVNode("p",{class:"text-gray-200 dark:text-gray-900 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1)),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",yk,[...N[4]||(N[4]=[e.createTextVNode(" Comece criando seu primeiro na aba ",-1),e.createElementVNode("strong",null,"Produtos",-1)])]))])):e.createCommentVNode("",!0)]))],32)}}},[["__scopeId","data-v-adc2d84f"]]),kk={},xk={class:"flex items-center justify-center h-full"};function bk(t,n){return e.openBlock(),e.createElementBlock("div",xk,[...n[0]||(n[0]=[e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1)])])}const io=we(kk,[["render",bk],["__scopeId","data-v-7f621883"]]),wk={key:0,class:"flex items-center justify-center overflow-hidden h-full"},Ek={key:1},vk={class:"flex flex-col gap-2 p-2"},Ck=["id","onUpdate:modelValue"],Sk=["for","title"],Bk=["id","onUpdate:modelValue"],Vk=["id","onUpdate:modelValue"],Mk={key:2,class:"flex-1 justify-center items-center flex flex-col gap-2 h-full"},Nk=we({__name:"listSegmentationsFields",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(s(a.modelValue)),i=e.ref(!1);function s(c){return JSON.parse(JSON.stringify(c))}const l=async()=>{try{i.value=!0;const c=await Xe.get(j0);r.value=c.data}catch(c){console.error("Error fetching segmentation fields:",c)}finally{i.value=!1}};return e.onMounted(()=>{a.modelValue.length===0&&l(),r.value.forEach(c=>{c.type==="bool"&&(c.content=c.content==="True")})}),e.watch(r,c=>{JSON.stringify(c)!==JSON.stringify(a.modelValue)&&o("update:modelValue",s(c))},{deep:!0}),(c,u)=>{const d=e.resolveComponent("SimpleSelect");return i.value?(e.openBlock(),e.createElementBlock("div",wk,[e.createVNode(io)])):r.value.length>0?(e.openBlock(),e.createElementBlock("div",Ek,[u[0]||(u[0]=e.createElementVNode("header",{class:"header-segmentation-fields bg-base-200"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Campos Personalizados")],-1)),e.createElementVNode("div",vk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("section",{key:h.id},[e.createElementVNode("div",{class:e.normalizeClass(["flex w-full gap-1.5 rounded-md",h.type==="bool"?"flex-row items-center":"flex-col items-start"])},[h.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:"seg-label-"+h.id,class:"checkbox size-4 rounded-sm",type:"checkbox","onUpdate:modelValue":f=>h.content=f},null,8,Ck)),[[e.vModelCheckbox,h.content]]):e.createCommentVNode("",!0),e.createElementVNode("label",{for:"seg-label-"+h.id,class:"text-xs text-[12px] font-sans font-semibold",title:h.type==="string"?"texto":h.type==="bool"?"verdadeiro/falso":h.type==="float"?"número":h.type==="list"?"lista":"Desconhecido"},e.toDisplayString(h.name),9,Sk),h.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,id:"seg-label-"+h.id,placeholder:"campo do tipo texto",class:"input_field bg-base-300",type:"text","onUpdate:modelValue":f=>h.content=f},null,8,Bk)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="float"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,id:"seg-label-"+h.id,placeholder:"campo do tipo número",class:"input_field bg-base-300",type:"number","onUpdate:modelValue":f=>h.content=f},null,8,Vk)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="list"?(e.openBlock(),e.createBlock(d,{key:3,modelValue:h.content,"onUpdate:modelValue":f=>h.content=f,options:h.additional_info.list.options.map(f=>({value:f,name:f})),placeholder:"Selecione uma opção",theme:"bg-base-300 border-base-100 text-white","teleport-to":"body"},null,8,["modelValue","onUpdate:modelValue","options"])):e.createCommentVNode("",!0)],2)]))),128))])])):(e.openBlock(),e.createElementBlock("section",Mk,[...u[1]||(u[1]=[e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1),e.createElementVNode("p",{class:"text-gray-200 text-[10px] md:text-xs font-sans"},[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Campos Personalizados")],-1)])]))}}},[["__scopeId","data-v-78be53b9"]]),Ak={style:{"border-bottom-right-radius":"0.35rem","border-bottom-left-radius":"0.35rem"},class:"flex w-full relative bg-base-300"},Tk={key:0,class:"text-xs absolute z-50 -bottom-2 left-1 bg-base-300 px-2 py-0.5 rounded-lg text-red-500 select-none shadow-sm shadow-base-100"},Dk={class:"segmentation-fields-container bg-base-200"},Lk={class:"list-products-container"},yi=we({__name:"contactSection",props:e.mergeModels({hasCrmPlus:{type:Boolean,default:!1},handlerToggleButtons:{type:Array,default:()=>[]},allProducts:{type:Array,default:()=>[]},departmentBypass:{type:[String,Number,Boolean,Object],default:void 0},isEmptyNumber:{type:Boolean,default:!1},isLargeScreen:{type:Boolean,default:!0}},{pageState:{type:String,default:"data"},pageStateModifiers:{},telephone:{type:String,default:""},telephoneModifiers:{},country:{type:String,default:"br"},countryModifiers:{},segmentationFields:{type:Array,default:()=>[]},segmentationFieldsModifiers:{},products:{type:Array,default:()=>[]},productsModifiers:{}}),emits:["update:pageState","update:telephone","update:country","update:segmentationFields","update:products"],setup(t){const n=t,a=e.useModel(t,"pageState"),o=e.useModel(t,"telephone"),r=e.useModel(t,"country"),i=e.useModel(t,"segmentationFields"),s=e.useModel(t,"products");return(l,c)=>{const u=e.resolveComponent("vue-tel-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.isLargeScreen?(e.openBlock(),e.createBlock(gi,{key:0,buttons:n.handlerToggleButtons,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d)},null,8,["buttons","modelValue"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([n.hasCrmPlus?"pt-1.5":"pt-0","flex flex-col gap-2 flex-1 min-h-0 px-1.5 overflow-hidden"])},[e.createElementVNode("div",{class:e.normalizeClass([n.isEmptyNumber&&!o.value?"border-red-500":"border-white/10","rounded-md bg-base-200 border shadow-sm transition-shadow duration-200 hover:shadow-md"])},[c[6]||(c[6]=e.createElementVNode("h1",{class:"text-start w-full items-center justify-between flex p-2"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Contatos")],-1)),e.createElementVNode("div",Ak,[c[5]||(c[5]=e.createElementVNode("span",{class:"flex justify-center items-center w-8"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"size-4 text-gray-500 ml-1.5",viewBox:"0 0 17 17"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})])],-1)),e.createVNode(u,{class:"z-40 w-full",onCountryChanged:c[1]||(c[1]=d=>r.value=d.iso2),mode:"national",validCharactersOnly:!0,defaultCountry:r.value,inputOptions:{placeholder:"Coloque seu telefone",showDialCode:!1,required:!0,searchBoxPlaceholder:"Brazil"},dropdownOptions:{showSearchBox:!0,showFlags:!0,searchBoxPlaceholder:"Brazil"},modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=d=>o.value=d)},null,8,["defaultCountry","modelValue"]),n.isEmptyNumber&&!o.value?(e.openBlock(),e.createElementBlock("span",Tk," Campo obrigatorio ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",Dk,[e.createVNode(Nk,{modelValue:i.value,"onUpdate:modelValue":c[3]||(c[3]=d=>i.value=d)},null,8,["modelValue"])])],2),[[e.vShow,a.value==="data"]]),e.withDirectives(e.createElementVNode("div",Lk,[e.createVNode(ro,{modelValue:s.value,"onUpdate:modelValue":c[4]||(c[4]=d=>s.value=d),allProducts:n.allProducts,departmentBypass:n.departmentBypass},null,8,["modelValue","allProducts","departmentBypass"])],512),[[e.vShow,a.value==="products"]])],64)}}},[["__scopeId","data-v-6382117e"]]),Fk={class:"modal-form-container-wrapper"},$k={class:"modal_responsive"},Pk={style:{"min-height":"100%"},class:"flex min-h-full items-center justify-center text-center"},Ok={class:"modal-form-container"},_k={class:"modal-form-header bg-base-300"},Rk={class:"flex items-center gap-2"},Hk={class:"flex flex-col items-start"},zk={class:"text-lg"},jk={key:0,class:"id-label-clients"},Gk={class:"flex gap-2 items-center"},Ik={key:1,class:"flex flex-col gap-2 items-center"},qk={title:"Não é possível alterar a foto do cliente neste momento",class:"flex items-center justify-center w-full"},Wk=["src"],Uk={key:1,class:"no-avatar-client"},Zk={key:2,class:"modal-form-left-column-body"},Yk={class:"w-full"},Xk={class:"flex flex-col gap-2 w-full"},Kk={class:"flex items-center justify-between px-1"},Qk={key:0,class:"h-full flex flex-col gap-2 w-full"},Jk={class:"flex items-center justify-between px-1"},ex={class:"w-full h-full bg-base-300 rounded-lg flex flex-col min-h-0"},tx={class:"right-column bg-base-300"},nx={class:"right-column bg-base-300"},ax={class:"modal-form-end-button bg-base-300"},ox=["disabled"],rx={key:0,class:"size-4 animate-spin rounded-full border-4 border-solid text-white border-t-transparent"},ix={key:1,class:"text-xs font-semibold"},ki="selectTags-portal-container",xi=we({__name:"clientsForm",props:{form:{type:Object,default:()=>({tags:[],country:"BR",name:"",photo:null,raw_telephone:"",telephone:"",whatsapp_id:"",whatsapp_jid:"",whatsapp_lid:null,rating:null,outcome:null,created_at:"",updated_at:"",client:"",segmentation_fields:[],products:[],notes:""})},save:{type:Function,default:()=>{}},hasCrmPlus:{type:Boolean,default:!1},allProducts:{type:Object,default:()=>{}},allTags:{type:Object,default:()=>{}},departmentBypass:{type:String,default:""}},emits:["close","save"],setup(t,{emit:n}){const a=n,o=e.ref("contact"),r=t,i=e.reactive({...r.form}),s=e.ref(!1),l=e.ref(!1),c=e.ref([{title:"Nome",info:!1,type:"text",placeholder:"Digite o nome do contato",empty:e.computed(()=>l.value?l.value.some(b=>b.startsWith("name")):!1),data:e.computed({get:()=>i.name,set:b=>i.name=b})},{title:"Descrição",info:"Descreva o produto para facilitar a identificação",type:"textArea",placeholder:"Automatize fluxos de trabalho com integração rápida e segura entre sistemas.",empty:!1,data:e.computed({get:()=>i.notes,set:b=>i.notes=b})}]),u=e.computed(()=>r.form.mode==="edit"?"Editar cliente":"Adicionar Novo Cliente"),d=b=>{var C,M;const x=[];return(C=b.name)!=null&&C.trim()||x.push("name"),(M=b.telephone)!=null&&M.trim()||x.push("telephone"),x},h=e.computed(()=>l.value?l.value.some(b=>b.startsWith("telephone")):!1),f=async()=>{try{if(s.value=!0,l.value=d(i),l.value.length>0)return;await r.save(i)}catch(b){console.error(b)}finally{s.value=!1}};e.watch(()=>r.form,b=>{Object.assign(i,e.toRaw(b))},{immediate:!0});const g=e.ref(window.innerWidth),m=()=>{g.value=window.innerWidth};e.onMounted(()=>{window.addEventListener("resize",m)}),e.onUnmounted(()=>{window.removeEventListener("resize",m)});const p=e.computed(()=>g.value>=640);e.watch(p,(b,x)=>{x?o.value="contact":!x&&b&&(o.value="data")},{immediate:!0});const y=[{label:"Informações",value:"data"},{label:"Produtos",value:"products",disabled:!r.hasCrmPlus}],k=e.computed(()=>{const b={label:"Contato",value:"contact"},x=y.filter(C=>C.value!=="contact");return r.hasCrmPlus?p.value?[...x]:[b,...x]:[b,...x.filter(C=>C.value!=="products")]});return(b,x)=>{var M,D,H;const C=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",Fk,[x[25]||(x[25]=e.createElementVNode("div",{class:"modal-form-background"},null,-1)),e.createElementVNode("div",$k,[e.createElementVNode("div",Pk,[e.createElementVNode("div",Ok,[e.createElementVNode("div",{class:e.normalizeClass([{noCrmPlus:!t.hasCrmPlus},"clients-form-background relative rounded-2xl bg-base-200 backdrop-blur-lg"])},[e.createElementVNode("div",{id:ki,class:"relative"}),e.createElementVNode("div",_k,[e.createElementVNode("span",Rk,[x[18]||(x[18]=e.createElementVNode("svg",{class:"size-6 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("span",Hk,[e.createElementVNode("p",zk,e.toDisplayString(u.value),1),i.id?(e.openBlock(),e.createElementBlock("p",jk," ID: "+e.toDisplayString(i.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("section",Gk,[e.createElementVNode("button",{class:"bg-base-200 p-1.5 rounded-md hover:bg-base-100 transition",onClick:x[0]||(x[0]=S=>a("close"))},[...x[19]||(x[19]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)])])])]),e.createElementVNode("div",{class:e.normalizeClass([p.value?"grid grid-cols-2":"flex","modal-form-body"])},[e.createElementVNode("section",{class:e.normalizeClass([o.value!=="contact"&&!p.value?"pt-1.5":"p-1.5","left-column"])},[p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(gi,{key:0,buttons:k.value,modelValue:o.value,"onUpdate:modelValue":x[1]||(x[1]=S=>o.value=S)},null,8,["buttons","modelValue"])),p.value||o.value==="contact"?(e.openBlock(),e.createElementBlock("div",Ik,[t.hasCrmPlus?(e.openBlock(),e.createBlock(ao,{key:0,outcome:i.outcome,"onUpdate:outcome":x[2]||(x[2]=S=>i.outcome=S)},null,8,["outcome"])):e.createCommentVNode("",!0),e.createElementVNode("div",qk,[i.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.photo,alt:"",class:"avatar-client"},null,8,Wk)):(e.openBlock(),e.createElementBlock("span",Uk,[...x[20]||(x[20]=[e.createElementVNode("svg",{class:"size-14","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"})],-1)])]))]),t.hasCrmPlus?(e.openBlock(),e.createBlock(oo,{key:1,modelValue:i.rating,"onUpdate:modelValue":x[3]||(x[3]=S=>i.rating=S)},null,8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),p.value||o.value==="contact"?(e.openBlock(),e.createElementBlock("div",Zk,[e.createElementVNode("div",Yk,[e.createVNode(no,{"onUpdate:content":x[4]||(x[4]=S=>c.value[0].data=S.data),content:c.value[0]},null,8,["content"])]),e.createElementVNode("div",Xk,[e.createElementVNode("header",Kk,[x[22]||(x[22]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Escolha suas etiquetas ",-1)),e.createVNode(C,{hover:"",content:"Etiquetas que estão atribuídas ao cliente",placement:"top",arrow:""},{default:e.withCtx(()=>[...x[21]||(x[21]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1})]),e.createVNode(to,{teleportTo:`#${ki}`,maxHeight:"10rem",allTags:t.allTags,modelValue:i.tags,"onUpdate:modelValue":x[5]||(x[5]=S=>i.tags=S)},null,8,["teleportTo","allTags","modelValue"])]),t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",Qk,[e.createElementVNode("header",Jk,[x[24]||(x[24]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Anotações sobre o cliente ",-1)),e.createVNode(C,{hover:"",content:"Anotações adicionais sobre o cliente",placement:"top",arrow:""},{default:e.withCtx(()=>[...x[23]||(x[23]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])]),_:1})]),e.createElementVNode("div",ex,[e.withDirectives(e.createElementVNode("textarea",{class:"form-text-area bg-base-300 min-h-0 flex-1","onUpdate:modelValue":x[6]||(x[6]=S=>i.notes=S),maxlength:"1000","aria-label":"Anotações do cliente"},null,512),[[e.vModelText,i.notes]]),e.createElementVNode("div",{class:e.normalizeClass(["text-[10px] bg-base-300 px-1 rounded-md text-right mb-1 mr-1",((M=i.notes)==null?void 0:M.length)>900?"text-red-500":((D=i.notes)==null?void 0:D.length)>700?"text-yellow-500":"text-gray-400"])},e.toDisplayString(((H=i.notes)==null?void 0:H.length)||0)+"/1000 ",3)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("section",tx,[e.createVNode(yi,{hasCrmPlus:t.hasCrmPlus,handlerToggleButtons:k.value,allProducts:t.allProducts,departmentBypass:t.departmentBypass,isEmptyNumber:h.value,isLargeScreen:p.value,pageState:o.value,"onUpdate:pageState":x[7]||(x[7]=S=>o.value=S),telephone:i.telephone,"onUpdate:telephone":x[8]||(x[8]=S=>i.telephone=S),country:i.country,"onUpdate:country":x[9]||(x[9]=S=>i.country=S),segmentationFields:i.segmentation_fields,"onUpdate:segmentationFields":x[10]||(x[10]=S=>i.segmentation_fields=S),products:i.products,"onUpdate:products":x[11]||(x[11]=S=>i.products=S)},null,8,["hasCrmPlus","handlerToggleButtons","allProducts","departmentBypass","isEmptyNumber","isLargeScreen","pageState","telephone","country","segmentationFields","products"])],512),[[e.vShow,!p.value&&o.value!=="contact"]])],2),e.withDirectives(e.createElementVNode("section",nx,[e.createVNode(yi,{hasCrmPlus:t.hasCrmPlus,handlerToggleButtons:k.value,allProducts:t.allProducts,departmentBypass:t.departmentBypass,isEmptyNumber:h.value,isLargeScreen:p.value,pageState:o.value,"onUpdate:pageState":x[12]||(x[12]=S=>o.value=S),telephone:i.telephone,"onUpdate:telephone":x[13]||(x[13]=S=>i.telephone=S),country:i.country,"onUpdate:country":x[14]||(x[14]=S=>i.country=S),segmentationFields:i.segmentation_fields,"onUpdate:segmentationFields":x[15]||(x[15]=S=>i.segmentation_fields=S),products:i.products,"onUpdate:products":x[16]||(x[16]=S=>i.products=S)},null,8,["hasCrmPlus","handlerToggleButtons","allProducts","departmentBypass","isEmptyNumber","isLargeScreen","pageState","telephone","country","segmentationFields","products"])],512),[[e.vShow,p.value]])],2),e.createElementVNode("div",ax,[e.createElementVNode("button",{disabled:s.value,class:"button-save-clients",onClick:x[17]||(x[17]=S=>f())},[s.value?(e.openBlock(),e.createElementBlock("div",rx)):(e.openBlock(),e.createElementBlock("p",ix,"Salvar"))],8,ox)])],2)])])])])}}},[["__scopeId","data-v-9b5b841e"]]),sx={class:"flex justify-center items-center"},lx={class:"text-[8px] font-bold"},cx={class:"tag-view-popper-content-text"},dx={class:"flex"},ux={class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 25 100",style:{color:"#d1d5db"}},mx={style:{backgroundColor:"#d1d5db"},class:"w-full ml-[-0.5rem] rounded-r-md inline-flex items-center justify-center p-0.5 border-b-2 border-gray-900"},fx={class:"text-[8px] text-black font-bold"},hx={class:"max-h-64 overflow-y-auto hide-scrollbar"},px={class:"flex flex-col gap-2"},gx={class:"tag-view-popper-content-text"},yx={key:1},bi=we({__name:"tagView",props:{clients:{type:Object,required:!0}},setup(t){const n=t;return e.computed(()=>{var a,o;return((o=(a=n.clients)==null?void 0:a.tags)==null?void 0:o.slice(0,4))||[]}),(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",sx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags.slice(0,4),(i,s)=>(e.openBlock(),e.createBlock(r,{class:"tag-view-theme",arrow:"",hover:"",key:s},{content:e.withCtx(()=>[e.createElementVNode("p",cx,e.toDisplayString(i.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex",e.unref(vn)(i.color)])},[(e.openBlock(),e.createElementBlock("svg",{class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 30 100",style:e.normalizeStyle({color:i.color||"#fff"})},[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:i.color||"#fff"}),class:"w-full ml-[-0.10rem] rounded-r-md inline-flex items-center justify-center px-1 py-0.5 border-b-2 border-gray-900"},[e.createElementVNode("p",lx,e.toDisplayString(i.name.charAt(0).toUpperCase()),1)],4)],2)]),_:2},1024))),128)),t.clients.tags.length>4?(e.openBlock(),e.createBlock(r,{key:0,arrow:"",hover:"",class:"tag-view-theme"},{content:e.withCtx(()=>[e.createElementVNode("section",hx,[e.createElementVNode("div",px,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id||i.name,class:"relative inline-flex items-center rounded-md overflow-hidden"},[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 75 100",style:e.normalizeStyle({color:i.color||"#fff"})},[...o[2]||(o[2]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])],4)),e.createElementVNode("span",{class:e.normalizeClass(["p-0.5 w-full text-sm font-semibold truncate text-start -ml-2",e.unref(vn)(i.color)]),style:e.normalizeStyle(["max-width: 12rem",{background:i.color||"#fff"}])},[e.createElementVNode("p",gx,e.toDisplayString(i.name),1)],6)]))),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",dx,[(e.openBlock(),e.createElementBlock("svg",ux,[...o[1]||(o[1]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)])])),e.createElementVNode("span",mx,[e.createElementVNode("p",fx," +"+e.toDisplayString(t.clients.tags.length-4),1)])])]),_:1})):e.createCommentVNode("",!0),!t.clients.tags||t.clients.tags.length===0?(e.openBlock(),e.createElementBlock("span",yx,"-")):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-8b61820e"]]),wi=we({__name:"floating-dev",setup(t){const n=e.ref(!1),a=e.ref({x:30,y:30}),o=e.ref({x:0,y:0}),r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({vertical:"bottom",horizontal:"right"}),c=e.computed(()=>({position:"fixed",left:`${a.value.x}px`,top:`${a.value.y}px`,zIndex:1e3,cursor:r.value?"grabbing":"grab"})),u=e.computed(()=>{const p={position:"absolute",background:"#fff",borderRadius:"10px",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.2)",width:"280px",maxWidth:"90vw",zIndex:1001};return l.value.vertical==="top"?p.bottom="60px":p.top="60px",l.value.horizontal==="left"?p.right="0":p.left="0",p});async function d(){if(n.value){n.value=!1;return}n.value=!0,await e.nextTick(),h()}function h(){if(!i.value||!s.value)return;const p=i.value.getBoundingClientRect(),y=s.value.offsetWidth,k=s.value.offsetHeight,b={top:p.top,bottom:window.innerHeight-(p.top+p.height),left:p.left,right:window.innerWidth-(p.left+p.width)};l.value.vertical=b.bottom<k&&b.top>k?"top":"bottom",l.value.horizontal=b.right<y&&b.left>y?"left":"right"}function f(p){r.value=!0;const y=p.type.includes("touch")?p.touches[0]:p;o.value={x:y.clientX-a.value.x,y:y.clientY-a.value.y},document.addEventListener("mousemove",g),document.addEventListener("mouseup",m),document.addEventListener("touchmove",g),document.addEventListener("touchend",m)}function g(p){if(!r.value)return;const y=p.type.includes("touch")?p.touches[0]:p,k=y.clientX-o.value.x,b=y.clientY-o.value.y,x=window.innerWidth-i.value.offsetWidth,C=window.innerHeight-i.value.offsetHeight;a.value.x=Math.min(Math.max(0,k),x),a.value.y=Math.min(Math.max(0,b),C)}function m(){r.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",m)}return e.onBeforeUnmount(m),(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:"floating-widget",style:e.normalizeStyle(c.value),ref_key:"widgetRef",ref:i,onMousedown:f,onTouchstart:f},[e.createElementVNode("button",{class:"floating-button",onClick:e.withModifiers(d,["stop"]),"aria-label":"Abrir painel flutuante"},[...y[0]||(y[0]=[e.createElementVNode("svg",{class:"floating-button-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[e.createElementVNode("path",{d:"M370 378c28.89 23.52 46 46.07 46 86M142 378c-28.89 23.52-46 46.06-46 86M384 208c28.89-23.52 32-56.07 32-96M128 206c-28.89-23.52-32-54.06-32-94M464 288.13h-80M128 288.13H48M256 192v256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"floating-panel",ref_key:"panelRef",ref:s,style:e.normalizeStyle(u.value)},[e.renderSlot(p.$slots,"default",{},()=>[y[1]||(y[1]=e.createElementVNode("p",{style:{"text-align":"center","font-size":"0.9rem"}}," Adicione seu conteúdo aqui 👇 ",-1))],!0)],4)):e.createCommentVNode("",!0)]),_:3})],36))}},[["__scopeId","data-v-9a761c09"]]);Dt.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});const kx={class:"audio-player hover:bg-base-100"},xx=["disabled"],bx={class:"audio-player-info"},wx={class:"audio-progress-container"},Ex=["max","value","disabled"],vx={class:"audio-duration"},Cx={key:0,class:"align-middle"},Sx=["src"],Bx=we({__name:"AudioPlayer",props:{src:{type:String,required:!0},label:{type:String,required:!0},type:{type:String,required:!0,validator:t=>["client","attendant","general"].includes(t)},activeSrc:{type:String,required:!1}},emits:["play-start","play-pause"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(0),c=e.ref(!1),u=e.ref(!1);function d(){if(r.value)if(i.value)r.value.pause(),i.value=!1,w();else{if(S(),!r.value)return;u.value=!0;const T=r.value.play();T&&typeof T.then=="function"?T.then(()=>{u.value=!1,i.value=!0}).catch(V=>{console.error("Audio play failed:",V),u.value=!1,i.value=!1}):(u.value=!1,i.value=!0)}}function h(T){r.value&&(r.value.currentTime=T.target.value)}function f(){r.value&&(l.value=r.value.duration||0)}function g(){c.value=!0}function m(){c.value=!1}function p(){u.value=!1,i.value=!0}function y(){u.value=!0}function k(T){console.error("Audio error:",T),c.value=!1,u.value=!1,i.value=!1}function b(){r.value&&(s.value=r.value.currentTime)}function x(){i.value=!1,s.value=0,w()}function C(){window.open(o.src,"_blank")}function M(T){if(!T||isNaN(T))return"0:00";const V=Math.floor(T/60),N=Math.floor(T%60);return`${V}:${N.toString().padStart(2,"0")}`}function D(){switch(o.type){case"client":return"#22d3ee";case"attendant":return"#14b8a6";case"general":return"#0ea5e9";default:return"#9ca3af"}}function H(){return{backgroundColor:`${D()}20`,color:D()}}function S(){a("play-start",o.src)}function w(){a("play-pause",o.src)}return e.watch(()=>o.activeSrc,T=>{T&&T!==o.src&&i.value&&r.value&&(r.value.pause(),i.value=!1)}),e.onUnmounted(()=>{r.value&&(r.value.pause(),r.value.src="")}),(T,V)=>(e.openBlock(),e.createElementBlock("div",kx,[e.createElementVNode("button",{onClick:e.withModifiers(d,["stop"]),class:"audio-play-btn hover:bg-base-100",title:"Reproduzir",disabled:c.value||u.value,style:e.normalizeStyle(H())},[c.value||u.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"audio-play-spinner",style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[...V[0]||(V[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10","stroke-width":"4","stroke-opacity":"0.2"},null,-1),e.createElementVNode("path",{d:"M4 12a8 8 0 018-8","stroke-width":"4","stroke-linecap":"round"},null,-1)])],4)):i.value?(e.openBlock(),e.createElementBlock("svg",{key:2,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...V[2]||(V[2]=[e.createElementVNode("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"},null,-1)])],4)):(e.openBlock(),e.createElementBlock("svg",{key:1,style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[...V[1]||(V[1]=[e.createElementVNode("path",{d:"M8 5v14l11-7z"},null,-1)])],4))],12,xx),e.createElementVNode("div",bx,[e.createElementVNode("div",{class:"audio-player-title",style:e.normalizeStyle({color:D()})},e.toDisplayString(t.label),5),e.createElementVNode("div",wx,[e.createElementVNode("div",{class:"audio-progress-track",style:e.normalizeStyle({backgroundColor:`${D()}20`})},[e.createElementVNode("div",{class:"audio-progress-fill",style:e.normalizeStyle({width:l.value>0?`${s.value/l.value*100}%`:"0%",backgroundColor:D()})},null,4),e.createElementVNode("input",{type:"range",class:"audio-progress-input",min:"0",max:l.value,value:s.value,onInput:e.withModifiers(h,["stop"]),disabled:c.value||u.value},null,40,Ex)],4)])]),e.createElementVNode("span",vx,[c.value||u.value?(e.openBlock(),e.createElementBlock("span",Cx,"-- : --")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(M(s.value))+" : "+e.toDisplayString(M(l.value)),1)],64))]),e.createElementVNode("button",{onClick:e.withModifiers(C,["stop"]),class:"audio-download-btn hover:bg-base-300",title:"Baixar"},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({color:D()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[...V[3]||(V[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"},null,-1)])],4))]),e.createElementVNode("audio",{ref_key:"audioElement",ref:r,src:t.src,onLoadstart:g,onLoadedmetadata:f,onCanplay:m,onPlaying:p,onWaiting:y,onTimeupdate:b,onEnded:x,onError:k,preload:"metadata"},null,40,Sx)]))}},[["__scopeId","data-v-fbc276d0"]]),Vx=we({__name:"CallRecordPlayer",props:{recordMetadata:{type:Object,required:!0}},emits:["close"],setup(t){const n=e.ref(null);function a(r){n.value=r}function o(r){n.value===r&&(n.value=null)}return(r,i)=>{var s,l;return e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c=>null,["stop"]),class:"call-record-player bg-base-200"},[(l=(s=t.recordMetadata)==null?void 0:s.urls)!=null&&l.general?(e.openBlock(),e.createBlock(Bx,{key:0,src:t.recordMetadata.urls.general,label:"Conversa",type:"general","active-src":n.value,onPlayStart:a,onPlayPause:o},null,8,["src","active-src"])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-b2bf056b"]]),Mx={class:"call-history-container"},Nx={key:0,class:"call-history-loading"},Ax={key:1,class:"call-history-error"},Tx={key:2,class:"call-history-empty"},Dx={key:3,class:"call-history-list"},Lx=["onClick"],Fx={class:"call-card-header"},$x={class:"call-card-header-left"},Px={class:"call-card-content"},Ox={class:"call-card-title"},_x={class:"opacity-70"},Rx={class:"call-card-actions"},Hx=["onClick"],zx=["onClick"],jx=["onClick"],Gx={key:0,class:"call-card-expanded"},Ix={class:"call-events"},qx={class:"call-event-left"},Wx={class:"call-event-time"},Ei=we({__name:"CallHistory",props:{chatId:{type:[String,Number],required:!0},callsApiUrl:{type:String,required:!1,default:G0},onMessageClick:{type:Function,required:!1,default:null}},setup(t){const n=t,a=e.ref(!1),o=e.ref(null),r=e.ref([]),i=e.ref({}),s=e.ref([]);e.onMounted(()=>{l()}),e.watch(()=>n.chatId,()=>{l()});async function l(){var C,M;if(n.chatId){a.value=!0,o.value=null;try{const D=await Xe.get(`${n.callsApiUrl}?chat_id=${n.chatId}`);s.value=D.data.results||D.data||[]}catch(D){console.error("Erro ao buscar ligações:",D),o.value=((M=(C=D.response)==null?void 0:C.data)==null?void 0:M.message)||"Erro ao carregar o histórico de ligações"}finally{a.value=!1}}}function c(C){const M=r.value.indexOf(C);M>-1?r.value.splice(M,1):r.value.push(C)}function u(C){i.value[C]=!i.value[C]}function d(C){r.value.includes(C)||r.value.push(C),u(C)}function h(C){n.onMessageClick&&n.onMessageClick(C)}function f(C){return!C.events||C.events.length===0?"":C.events[0].event_type}function g(C){switch(C){case"offer":return"event-status-offer";case"answer":return"event-status-answer";case"accepted":return"event-status-accepted";case"ringing":return"event-status-ringing";case"rejected":case"error":return"event-status-rejected";case"terminated":return"event-status-terminated";case"update":return"event-status-update";default:return"event-status-unknown"}}function m(C){switch(C){case"offer":return"event-bg-offer";case"answer":return"event-bg-answer";case"accepted":return"event-bg-accepted";case"ringing":return"event-bg-ringing";case"rejected":case"error":return"event-bg-rejected";case"terminated":return"bg-primary";case"update":return"event-bg-update";default:return"event-bg-unknown"}}function p(C){switch(C){case"offer":return"event-dot-offer";case"answer":return"event-dot-answer";case"accepted":return"event-dot-accepted";case"ringing":return"event-dot-ringing";case"rejected":case"error":return"event-dot-rejected";case"terminated":return"event-dot-terminated";case"update":return"event-dot-update";default:return"event-dot-unknown"}}function y(C){switch(C){case"offer":return"Chamada recebida";case"answer":return"Chamada iniciada";case"ringing":return"Tocando...";case"accepted":return"Chamada atendida";case"rejected":return"Chamada rejeitada";case"terminated":return"Chamada terminada";case"error":return"Erro na chamada";case"update":return"Chamada atualizada";default:return"Evento desconhecido"}}function k(C){if(!C)return"";const M=new Date(C),H=new Date-M,S=Math.floor(H/(1e3*60*60*24));return S===0?"Hoje":S===1?"Ontem":S<7?`${S}d atrás`:M.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})}function b(C){return C?new Date(C).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):""}function x(C){var M,D,H,S,w,T;return((D=(M=C.record_metadata)==null?void 0:M.urls)==null?void 0:D.client)||((S=(H=C.record_metadata)==null?void 0:H.urls)==null?void 0:S.attendant)||((T=(w=C.record_metadata)==null?void 0:w.urls)==null?void 0:T.general)}return(C,M)=>(e.openBlock(),e.createElementBlock("div",Mx,[a.value?(e.openBlock(),e.createElementBlock("div",Nx,[...M[0]||(M[0]=[e.createElementVNode("svg",{class:"call-history-loading-spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})],-1),e.createElementVNode("span",{class:"call-history-loading-text"},"Carregando ligações...",-1)])])):o.value?(e.openBlock(),e.createElementBlock("div",Ax,e.toDisplayString(o.value),1)):s.value.length===0?(e.openBlock(),e.createElementBlock("div",Tx," Nenhuma ligação registrada nesta conversa ")):(e.openBlock(),e.createElementBlock("div",Dx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,D=>(e.openBlock(),e.createElementBlock("div",{key:D.id,"data-test":"call-card",onClick:e.withModifiers(H=>c(D.id),["stop"]),class:"call-card bg-base-300 border hover:bg-base-300 border-base-300"},[e.createElementVNode("div",Fx,[e.createElementVNode("div",$x,[e.createElementVNode("div",{class:e.normalizeClass(["call-icon bg-primary",m(f(D))])},[...M[1]||(M[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"})],-1)])],2),e.createElementVNode("div",Px,[e.createElementVNode("div",Ox,[e.createTextVNode(e.toDisplayString(D.direction==="outbound"?"Efetuada":"Recebida")+" ",1),e.createElementVNode("span",_x,"• "+e.toDisplayString(k(D.started_at)),1)]),D.events&&D.events.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["call-card-status",g(f(D))])},e.toDisplayString(y(f(D))),3)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Rx,[D.external_id&&t.onMessageClick?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(H=>h(D),["stop"]),title:"Ver mensagem",class:"hover:bg-base-100"},[...M[2]||(M[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)])],8,Hx)):e.createCommentVNode("",!0),x(D)?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass({"bg-base-100":i.value[D.id],"hover:bg-base-100":!0}),onClick:e.withModifiers(H=>d(D.id),["stop"]),title:"Ver gravações"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(i.value[D.id]?"text-primary":"opacity-70"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[...M[3]||(M[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M17.316 4.052a.99.99 0 0 0-.9.14c-.262.19-.416.495-.416.82v8.566a4.573 4.573 0 0 0-2-.464c-1.99 0-4 1.342-4 3.443 0 2.1 2.01 3.443 4 3.443 1.99 0 4-1.342 4-3.443V6.801c.538.5 1 1.219 1 2.262 0 .56.448 1.013 1 1.013s1-.453 1-1.013c0-1.905-.956-3.18-1.86-3.942a6.391 6.391 0 0 0-1.636-.998 4 4 0 0 0-.166-.063l-.013-.005-.005-.002h-.002l-.002-.001ZM4 5.012c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.453 1-1.013 0-.559-.448-1.012-1-1.012H4Zm0 4.051c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.454 1-1.013 0-.56-.448-1.013-1-1.013H4Zm0 4.05c-.552 0-1 .454-1 1.014 0 .559.448 1.012 1 1.012h4c.552 0 1-.453 1-1.012 0-.56-.448-1.013-1-1.013H4Z","clip-rule":"evenodd"},null,-1)])],2))],10,zx)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:e.withModifiers(H=>c(D.id),["stop"]),class:e.normalizeClass(["call-expand-btn hover:bg-base-100",{rotated:r.value.includes(D.id)}])},[...M[4]||(M[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])],10,jx)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value.includes(D.id)?(e.openBlock(),e.createElementBlock("div",Gx,[i.value[D.id]&&x(D)?(e.openBlock(),e.createBlock(Vx,{key:0,"record-metadata":D.record_metadata,onClose:H=>u(D.id)},null,8,["record-metadata","onClose"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ix,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.events,(H,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"call-event-item"},[e.createElementVNode("div",qx,[e.createElementVNode("div",{class:e.normalizeClass(["call-event-dot",p(H.event_type)])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["call-event-text",g(H.event_type)])},e.toDisplayString(y(H.event_type)),3)]),e.createElementVNode("span",Wx,e.toDisplayString(b(H.created_at)),1)]))),128))])])):e.createCommentVNode("",!0)]),_:2},1024)],8,Lx))),128))]))]))}},[["__scopeId","data-v-83a7d882"]]);function Ux(t){t.component("primarySelect",ko),t.component("departSelect",ti),t.component("attendantSelect",ni),t.component("SimpleModal",xo),t.component("simpleCard",bo),t.component("instanceSelect",sr),t.component("calendarEvents",xr),t.component("MFA",br),t.component("MfaQrCode",Od),t.component("chatWindow",J1),t.component("FilterSelectLib",ai),t.component("MobileInternalChat",ei),t.component("RandomAvatar",si),t.component("MinModal",li),t.component("LibPatchNotes",ui),t.component("BtnNewUpdates",mi),t.component("LibPhotoPicker",fi),t.component("SelectMultipleDepartments",hi),t.component("PrimaryInput",no),t.component("SimpleSelect",pi),t.component("FloatingDev",wi),t.component("RatingInput",oo),t.component("TagView",bi),t.component("ClientsForm",xi),t.component("SelectMultipleTags",to),t.component("SimpleLoader",io),t.component("OutcomeButton",ao),t.component("CallHistory",Ei),t.component("ListProducts",ro)}function vi(t,n="add"){const a=eo();n==="add"?a.addDepartments(t):n==="delete"?a.removeDepartments(t):n==="update"?(a.departments=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibDeparts.`)}function Ci(t,n="add"){const a=Yt();n==="add"?a.addAttendants(t):n==="delete"?a.removeAttendants(t):n==="update"?(a.attendants=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibAttendants.`)}function Si(t,n="add"){const a=va();n==="add"?a.addInstance(t):n==="delete"?a.removeInstance(t):n==="update"?(a.instances=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibInstances.`)}async function Bi(t,n,a,o=[],r=[],i=[]){try{const s=await ir(t);n&&await s.setToken(n),a&&(Xe.defaults.baseURL=a);const l=eo(t);r.length>0&&(l.departments=r,l.count=r.length);const c=Yt(t);o.length>0&&(c.attendants=o,c.count=o.length),await va(t).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}function Vi(t){return vn(t)}const Zx={install:Ux,setupLibrary:Bi,attLibDeparts:vi,attLibAttendants:Ci,attLibInstances:Si,primarySelect:ko,simpleModal:xo,simpleCard:bo,instanceSelect:sr,SimpleSelect:pi,FloatingDev:wi,calendar:xr,SimpleLoader:io,MFA:br,chatWindow:J1,departSelect:ti,attendantSelect:ni,FilterSelectLib:ai,MobileInternalChat:ei,RandomAvatar:si,MinModal:li,libPatchNotes:ui,btnNewUpdates:mi,LibPhotoPicker:fi,SelectMultipleDepartments:hi,SelectMultipleTags:to,PrimaryInput:no,getWithContrastColor:Vi,RatingInput:oo,TagView:bi,ClientsForm:xi,OutcomeButton:ao,CallHistory:Ei,ListProducts:ro};function Yx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return new Proxy({},{get(o,r){return(i,s,l)=>{const c=t.Capacitor.Plugins[a];if(c===void 0){l(new Error(`Capacitor plugin ${a} not found`));return}if(typeof c[r]!="function"){l(new Error(`Method ${r} not found in Capacitor plugin ${a}`));return}(async()=>{try{const u=await c[r](i);s(u)}catch(u){l(u)}})()}}})}})}function Xx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return t.cordova.plugins[a]}})}function Kx(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?Yx(window):window.cordova!==void 0&&Xx(window))}var Mi;(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(Mi||(Mi={}));var so;(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(so||(so={}));const sa=wn("Filesystem",{web:()=>Promise.resolve().then(()=>yb).then(t=>new t.FilesystemWeb)});Kx();const Qx=wn("BlobWriter");function Jx(t){return window.btoa(Array.from(new Uint8Array(t)).map(function(n){return String.fromCharCode(n)}).join(""))}function eb({path:t,directory:n,blob:a,recursive:o}){return sa.writeFile({directory:n,path:t,recursive:o,data:""}).then(function(){return new Promise(function(r,i){function s(c){i(c.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const u=l.result.transaction("FileStorage","readwrite");u.onerror=s;const d=u.objectStore("FileStorage"),h=`/${n}/${t.replace(/^\//,"")}`,f=d.get(h);f.onsuccess=function(){f.result.size=a.size,f.result.content=a;const g=d.put(f.result);g.onsuccess=function(){r(void 0)}}}})})}function Ni({path:t,directory:n,blob:a,recursive:o}){return sa.writeFile({directory:n,path:t,recursive:o,data:""}).then(function r(){if(a.size===0)return Promise.resolve();const i=3*128*1024,s=a.slice(0,i);return a=a.slice(i),new Response(s).arrayBuffer().then(function(c){return sa.appendFile({directory:n,path:t,data:Jx(c)})}).then(r)})}function tb(t){const{path:n,directory:a,blob:o,fast_mode:r=!1,recursive:i,on_fallback:s}=t;return!o||!Number.isSafeInteger(o.size)||typeof o.type!="string"?Promise.reject(new Error("Not a Blob.")):ea.getPlatform()==="web"?r?eb(t):Ni(t):Promise.all([Qx.get_config(),sa.getUri({path:n,directory:a})]).then(function([l,c]){const u=c.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+u+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:o}).then(function(h){if(h.status!==204)throw new Error("Bad HTTP status: "+h.status);return c.uri})}).catch(function(c){return s!==void 0&&s(c),Ni(t)})}const nb=Object.freeze(tb);function ab(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ai={};function ob(t){return t&&t.__esModule?t:{default:t}}var rb=ob,lo={exports:{}},Ti;function ib(){return Ti||(Ti=1,function(t){var n=function(a){var o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(O,R,_){O[R]=_.value},s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(O,R,_){return Object.defineProperty(O,R,{value:_,enumerable:!0,configurable:!0,writable:!0}),O[R]}try{h({},"")}catch{h=function(R,_,oe){return R[_]=oe}}function f(O,R,_,oe){var de=R&&R.prototype instanceof x?R:x,pe=Object.create(de.prototype),ye=new Z(oe||[]);return i(pe,"_invoke",{value:N(O,_,ye)}),pe}a.wrap=f;function g(O,R,_){try{return{type:"normal",arg:O.call(R,_)}}catch(oe){return{type:"throw",arg:oe}}}var m="suspendedStart",p="suspendedYield",y="executing",k="completed",b={};function x(){}function C(){}function M(){}var D={};h(D,c,function(){return this});var H=Object.getPrototypeOf,S=H&&H(H(Q([])));S&&S!==o&&r.call(S,c)&&(D=S);var w=M.prototype=x.prototype=Object.create(D);C.prototype=M,i(w,"constructor",{value:M,configurable:!0}),i(M,"constructor",{value:C,configurable:!0}),C.displayName=h(M,d,"GeneratorFunction");function T(O){["next","throw","return"].forEach(function(R){h(O,R,function(_){return this._invoke(R,_)})})}a.isGeneratorFunction=function(O){var R=typeof O=="function"&&O.constructor;return R?R===C||(R.displayName||R.name)==="GeneratorFunction":!1},a.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,M):(O.__proto__=M,h(O,d,"GeneratorFunction")),O.prototype=Object.create(w),O},a.awrap=function(O){return{__await:O}};function V(O,R){function _(pe,ye,Ve,Fe){var Ae=g(O[pe],O,ye);if(Ae.type==="throw")Fe(Ae.arg);else{var qe=Ae.arg,_e=qe.value;return _e&&typeof _e=="object"&&r.call(_e,"__await")?R.resolve(_e.__await).then(function($e){_("next",$e,Ve,Fe)},function($e){_("throw",$e,Ve,Fe)}):R.resolve(_e).then(function($e){qe.value=$e,Ve(qe)},function($e){return _("throw",$e,Ve,Fe)})}}var oe;function de(pe,ye){function Ve(){return new R(function(Fe,Ae){_(pe,ye,Fe,Ae)})}return oe=oe?oe.then(Ve,Ve):Ve()}i(this,"_invoke",{value:de})}T(V.prototype),h(V.prototype,u,function(){return this}),a.AsyncIterator=V,a.async=function(O,R,_,oe,de){de===void 0&&(de=Promise);var pe=new V(f(O,R,_,oe),de);return a.isGeneratorFunction(R)?pe:pe.next().then(function(ye){return ye.done?ye.value:pe.next()})};function N(O,R,_){var oe=m;return function(pe,ye){if(oe===y)throw new Error("Generator is already running");if(oe===k){if(pe==="throw")throw ye;return J()}for(_.method=pe,_.arg=ye;;){var Ve=_.delegate;if(Ve){var Fe=B(Ve,_);if(Fe){if(Fe===b)continue;return Fe}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(oe===m)throw oe=k,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);oe=y;var Ae=g(O,R,_);if(Ae.type==="normal"){if(oe=_.done?k:p,Ae.arg===b)continue;return{value:Ae.arg,done:_.done}}else Ae.type==="throw"&&(oe=k,_.method="throw",_.arg=Ae.arg)}}}function B(O,R){var _=R.method,oe=O.iterator[_];if(oe===s)return R.delegate=null,_==="throw"&&O.iterator.return&&(R.method="return",R.arg=s,B(O,R),R.method==="throw")||_!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+_+"' method")),b;var de=g(oe,O.iterator,R.arg);if(de.type==="throw")return R.method="throw",R.arg=de.arg,R.delegate=null,b;var pe=de.arg;if(!pe)return R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,b;if(pe.done)R[O.resultName]=pe.value,R.next=O.nextLoc,R.method!=="return"&&(R.method="next",R.arg=s);else return pe;return R.delegate=null,b}T(w),h(w,d,"Generator"),h(w,c,function(){return this}),h(w,"toString",function(){return"[object Generator]"});function v(O){var R={tryLoc:O[0]};1 in O&&(R.catchLoc=O[1]),2 in O&&(R.finallyLoc=O[2],R.afterLoc=O[3]),this.tryEntries.push(R)}function P(O){var R=O.completion||{};R.type="normal",delete R.arg,O.completion=R}function Z(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(v,this),this.reset(!0)}a.keys=function(O){var R=Object(O),_=[];for(var oe in R)_.push(oe);return _.reverse(),function de(){for(;_.length;){var pe=_.pop();if(pe in R)return de.value=pe,de.done=!1,de}return de.done=!0,de}};function Q(O){if(O){var R=O[c];if(R)return R.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var _=-1,oe=function de(){for(;++_<O.length;)if(r.call(O,_))return de.value=O[_],de.done=!1,de;return de.value=s,de.done=!0,de};return oe.next=oe}}return{next:J}}a.values=Q;function J(){return{value:s,done:!0}}return Z.prototype={constructor:Z,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(P),!O)for(var R in this)R.charAt(0)==="t"&&r.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=s)},stop:function(){this.done=!0;var O=this.tryEntries[0],R=O.completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var R=this;function _(Fe,Ae){return pe.type="throw",pe.arg=O,R.next=Fe,Ae&&(R.method="next",R.arg=s),!!Ae}for(var oe=this.tryEntries.length-1;oe>=0;--oe){var de=this.tryEntries[oe],pe=de.completion;if(de.tryLoc==="root")return _("end");if(de.tryLoc<=this.prev){var ye=r.call(de,"catchLoc"),Ve=r.call(de,"finallyLoc");if(ye&&Ve){if(this.prev<de.catchLoc)return _(de.catchLoc,!0);if(this.prev<de.finallyLoc)return _(de.finallyLoc)}else if(ye){if(this.prev<de.catchLoc)return _(de.catchLoc,!0)}else if(Ve){if(this.prev<de.finallyLoc)return _(de.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(O,R){for(var _=this.tryEntries.length-1;_>=0;--_){var oe=this.tryEntries[_];if(oe.tryLoc<=this.prev&&r.call(oe,"finallyLoc")&&this.prev<oe.finallyLoc){var de=oe;break}}de&&(O==="break"||O==="continue")&&de.tryLoc<=R&&R<=de.finallyLoc&&(de=null);var pe=de?de.completion:{};return pe.type=O,pe.arg=R,de?(this.method="next",this.next=de.finallyLoc,b):this.complete(pe)},complete:function(O,R){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&R&&(this.next=R),b},finish:function(O){for(var R=this.tryEntries.length-1;R>=0;--R){var _=this.tryEntries[R];if(_.finallyLoc===O)return this.complete(_.completion,_.afterLoc),P(_),b}},catch:function(O){for(var R=this.tryEntries.length-1;R>=0;--R){var _=this.tryEntries[R];if(_.tryLoc===O){var oe=_.completion;if(oe.type==="throw"){var de=oe.arg;P(_)}return de}}throw new Error("illegal catch attempt")},delegateYield:function(O,R,_){return this.delegate={iterator:Q(O),resultName:R,nextLoc:_},this.method==="next"&&(this.arg=s),b}},a}(t.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}(lo)),lo.exports}var co,Di;function sb(){return Di||(Di=1,co=ib()),co}var uo,Li;function lb(){if(Li)return uo;Li=1;function t(a,o,r,i,s,l,c){try{var u=a[l](c),d=u.value}catch(h){r(h);return}u.done?o(d):Promise.resolve(d).then(i,s)}function n(a){return function(){var o=this,r=arguments;return new Promise(function(i,s){var l=a.apply(o,r);function c(d){t(l,i,s,c,u,"next",d)}function u(d){t(l,i,s,c,u,"throw",d)}c(void 0)})}}return uo=n,uo}(function(t){var n=rb;Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(sb()),o=n(lb());function r(s){return i.apply(this,arguments)}function i(){return(i=(0,o.default)(a.default.mark(function s(l){var c,u;return a.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return c=document.createElement("video"),u=new Promise(function(h,f){c.addEventListener("loadedmetadata",function(){c.duration===1/0?(c.currentTime=Number.MAX_SAFE_INTEGER,c.ontimeupdate=function(){c.ontimeupdate=null,h(c.duration),c.currentTime=0}):h(c.duration)}),c.onerror=function(g){return f(g.target.error)}}),c.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),d.abrupt("return",u);case 4:case"end":return d.stop()}},s)}))).apply(this,arguments)}})(Ai);const cb=ab(Ai),Tt=()=>({value:!0}),Cn=()=>({value:!1}),db=()=>new Error("MISSING_PERMISSION"),ub=()=>new Error("ALREADY_RECORDING"),mb=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),Fi=()=>new Error("FAILED_TO_RECORD"),fb=()=>new Error("EMPTY_RECORDING"),mo=()=>new Error("RECORDING_HAS_NOT_STARTED"),$i=()=>new Error("FAILED_TO_FETCH_RECORDING"),fo=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),Pi={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},Oi=()=>new Promise(()=>{});class ht{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=Oi()}static async canDeviceVoiceRecord(){var n;return((n=navigator==null?void 0:navigator.mediaDevices)===null||n===void 0?void 0:n.getUserMedia)==null||ht.getSupportedMimeType()==null?Cn():Tt()}async startRecording(n){if(this.mediaRecorder!=null)throw ub();if(!(await ht.canDeviceVoiceRecord()).value)throw mb();if(!(await ht.hasAudioRecordingPermission().catch(()=>Tt())).value)throw db();return navigator.mediaDevices.getUserMedia({audio:!0}).then(r=>this.onSuccessfullyStartedRecording(r,n)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw mo();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(n=>n.stop()),this.pendingResult}catch{throw $i()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(fo()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>Tt()).catch(()=>{throw fo()}):navigator.permissions.query({name:"microphone"}).then(n=>({value:n.state==="granted"})).catch(()=>{throw fo()})}static async requestAudioRecordingPermission(){return(await ht.hasAudioRecordingPermission().catch(()=>Cn())).value?Tt():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>Tt()).catch(()=>Cn())}pauseRecording(){if(this.mediaRecorder==null)throw mo();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(Tt())):Promise.resolve(Cn())}resumeRecording(){if(this.mediaRecorder==null)throw mo();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(Tt())):Promise.resolve(Cn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:na.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:na.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:na.PAUSED}):Promise.resolve({status:na.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const n=Object.keys(Pi).find(a=>MediaRecorder.isTypeSupported(a));return n??null}onSuccessfullyStartedRecording(n,a){return this.pendingResult=new Promise((o,r)=>{this.mediaRecorder=new MediaRecorder(n),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),r(Fi())},this.mediaRecorder.onstop=async()=>{var i,s,l;const c=ht.getSupportedMimeType();if(c==null){this.prepareInstanceForNextOperation(),r($i());return}const u=new Blob(this.chunks,{type:c});if(u.size<=0){this.prepareInstanceForNextOperation(),r(fb());return}let d,h;a!=null?(d=`${(l=(s=(i=a.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${Pi[c]}`,await nb({blob:u,directory:a.directory,fast_mode:!0,path:d,recursive:!0})):h=await ht.blobToBase64(u);const f=await cb(u);this.prepareInstanceForNextOperation(),o({value:{recordDataBase64:h,mimeType:c,msDuration:f*1e3,path:d}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),Tt()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),Fi()}static blobToBase64(n){return new Promise(a=>{const o=new FileReader;o.onloadend=()=>{const r=String(o.result),i=r.split("base64,"),s=i.length>1?i[1]:r;a(s.trim())},o.readAsDataURL(n)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(n){console.warn("While trying to stop a media recorder, an error was thrown",n)}this.pendingResult=Oi(),this.mediaRecorder=null,this.chunks=[]}}class hb extends ta{constructor(){super(...arguments),this.voiceRecorderInstance=new ht}canDeviceVoiceRecord(){return ht.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return ht.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return ht.requestAudioRecordingPermission()}startRecording(n){return this.voiceRecorderInstance.startRecording(n)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const pb=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:hb},Symbol.toStringTag,{value:"Module"}));function _i(t){const n=t.split("/").filter(o=>o!=="."),a=[];return n.forEach(o=>{o===".."&&a.length>0&&a[a.length-1]!==".."?a.pop():a.push(o)}),a.join("/")}function gb(t,n){t=_i(t),n=_i(n);const a=t.split("/"),o=n.split("/");return t!==n&&a.every((r,i)=>r===o[i])}class la extends ta{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async n=>{var a,o;const r=$1(n,n.webFetchExtra),i=await fetch(n.url,r);let s;if(!n.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const c=i.body.getReader();let u=0;const d=[],h=i.headers.get("content-type"),f=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:p,value:y}=await c.read();if(p)break;d.push(y),u+=(y==null?void 0:y.length)||0;const k={url:n.url,bytes:u,contentLength:f};this.notifyListeners("progress",k)}const g=new Uint8Array(u);let m=0;for(const p of d)typeof p>"u"||(g.set(p,m),m+=p.length);s=new Blob([g.buffer],{type:h||void 0})}return{path:(await this.writeFile({path:n.path,directory:(a=n.directory)!==null&&a!==void 0?a:void 0,recursive:(o=n.recursive)!==null&&o!==void 0?o:!1,data:s})).uri,blob:s}}}readFileInChunks(n,a){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((n,a)=>{const o=indexedDB.open(this.DB_NAME,this.DB_VERSION);o.onupgradeneeded=la.doUpgrade,o.onsuccess=()=>{this._db=o.result,n(o.result)},o.onerror=()=>a(o.error),o.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(n){const o=n.target.result;switch(n.oldVersion){case 0:case 1:default:o.objectStoreNames.contains("FileStorage")&&o.deleteObjectStore("FileStorage"),o.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(n,a){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(r=>new Promise((i,s)=>{const u=r.transaction(["FileStorage"],o).objectStore("FileStorage")[n](...a);u.onsuccess=()=>i(u.result),u.onerror=()=>s(u.error)}))}async dbIndexRequest(n,a,o){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const h=i.transaction(["FileStorage"],r).objectStore("FileStorage").index(n)[a](...o);h.onsuccess=()=>s(h.result),h.onerror=()=>l(h.error)}))}getPath(n,a){const o=a!==void 0?a.replace(/^[/]+|[/]+$/g,""):"";let r="";return n!==void 0&&(r+="/"+n),a!==""&&(r+="/"+o),r}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(o===void 0)throw Error("File does not exist.");return{data:o.content?o.content:""}}async writeFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=n.recursive,s=await this.dbRequest("get",[a]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=a.substr(0,a.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const h=l.indexOf("/",1);if(h!==-1){const f=l.substr(h);await this.mkdir({path:f,directory:n.directory,recursive:i})}}if(!r&&!(o instanceof Blob)&&(o=o.indexOf(",")>=0?o.split(",")[1]:o,!this.isBase64String(o)))throw Error("The supplied data is not valid base64 content.");const u=Date.now(),d={path:a,folder:l,type:"file",size:o instanceof Blob?o.size:o.length,ctime:u,mtime:u,content:o};return await this.dbRequest("put",[d]),{uri:d.path}}async appendFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=a.substr(0,a.lastIndexOf("/")),s=Date.now();let l=s;const c=await this.dbRequest("get",[a]);if(c&&c.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const h=i.indexOf("/",1);if(h!==-1){const f=i.substr(h);await this.mkdir({path:f,directory:n.directory,recursive:!0})}}if(!r&&!this.isBase64String(o))throw Error("The supplied data is not valid base64 content.");if(c!==void 0){if(c.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");c.content!==void 0&&!r?o=btoa(atob(c.content)+atob(o)):o=c.content+o,l=c.ctime}const d={path:a,folder:i,type:"file",size:o.length,ctime:l,mtime:s,content:o};await this.dbRequest("put",[d])}async deleteFile(n){const a=this.getPath(n.directory,n.path);if(await this.dbRequest("get",[a])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[a])}async mkdir(n){const a=this.getPath(n.directory,n.path),o=n.recursive,r=a.substr(0,a.lastIndexOf("/")),i=(a.match(/\//g)||[]).length,s=await this.dbRequest("get",[r]),l=await this.dbRequest("get",[a]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!o&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(o&&i!==2&&s===void 0){const d=r.substr(r.indexOf("/",1));await this.mkdir({path:d,directory:n.directory,recursive:o})}const c=Date.now(),u={path:a,folder:r,type:"directory",size:0,ctime:c,mtime:c};await this.dbRequest("put",[u])}async rmdir(n){const{path:a,directory:o,recursive:r}=n,i=this.getPath(o,a),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:a,directory:o});if(l.files.length!==0&&!r)throw Error("Folder is not empty");for(const c of l.files){const u=`${a}/${c.name}`;(await this.stat({path:u,directory:o})).type==="file"?await this.deleteFile({path:u,directory:o}):await this.rmdir({path:u,directory:o,recursive:r})}await this.dbRequest("delete",[i])}async readdir(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(n.path!==""&&o===void 0)throw Error("Folder does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)]);return{files:await Promise.all(r.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(a.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);return o===void 0&&(o=await this.dbRequest("get",[a+"/"])),{uri:(o==null?void 0:o.path)||a}}async stat(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);if(o===void 0&&(o=await this.dbRequest("get",[a+"/"])),o===void 0)throw Error("Entry does not exist.");return{name:o.path.substring(a.length+1),type:o.type,size:o.size,ctime:o.ctime,mtime:o.mtime,uri:o.path}}async rename(n){await this._copy(n,!0)}async copy(n){return this._copy(n,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(n,a=!1){let{toDirectory:o}=n;const{to:r,from:i,directory:s}=n;if(!r||!i)throw Error("Both to and from must be provided");o||(o=s);const l=this.getPath(s,i),c=this.getPath(o,r);if(l===c)return{uri:c};if(gb(l,c))throw Error("To path cannot contain the from path");let u;try{u=await this.stat({path:r,directory:o})}catch{const m=r.split("/");m.pop();const p=m.join("/");if(m.length>0&&(await this.stat({path:p,directory:o})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(u&&u.type==="directory")throw new Error("Cannot overwrite a directory with a file");const d=await this.stat({path:i,directory:s}),h=async(g,m,p)=>{const y=this.getPath(o,g),k=await this.dbRequest("get",[y]);k.ctime=m,k.mtime=p,await this.dbRequest("put",[k])},f=d.ctime?d.ctime:Date.now();switch(d.type){case"file":{const g=await this.readFile({path:i,directory:s});a&&await this.deleteFile({path:i,directory:s});let m;!(g.data instanceof Blob)&&!this.isBase64String(g.data)&&(m=so.UTF8);const p=await this.writeFile({path:r,directory:o,data:g.data,encoding:m});return a&&await h(r,f,d.mtime),p}case"directory":{if(u)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:r,directory:o,recursive:!1}),a&&await h(r,f,d.mtime)}catch{}const g=(await this.readdir({path:i,directory:s})).files;for(const m of g)await this._copy({from:`${i}/${m.name}`,to:`${r}/${m.name}`,directory:s,toDirectory:o},a);a&&await this.rmdir({path:i,directory:s})}}return{uri:c}}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}la._debug=!0;const yb=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:la},Symbol.toStringTag,{value:"Module"}));tt.attLibAttendants=Ci,tt.attLibDeparts=vi,tt.attLibInstances=Si,tt.default=Zx,tt.getWithContrastColor=Vi,tt.setupLibrary=Bi,tt.useScheduledStore=pr,Object.defineProperties(tt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
131
+ </svg>`,info:a.content.info??"Nome que será atribuído no Produto",type:a.content.type??"text",placeholder:a.content.placeholder??"Integração de sistemas",empty:a.content.empty??!1,data:a.content.data??""}),i=e.ref(r.data);e.watch(i,l=>{o("update:content",{...r,data:l})},{immediate:!0,deep:!0}),e.watch(()=>a.content,l=>{l.data!==i.value&&(i.value=l.data),l.empty!==r.empty&&(r.empty=l.empty)},{deep:!0});const s=e.computed(()=>r.empty&&!i.value);return(l,c)=>{const m=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",cy,[e.createElementVNode("header",dy,[e.createElementVNode("p",uy,e.toDisplayString(r.title),1),r.info?(e.openBlock(),e.createBlock(m,{key:0,hover:"",content:r.info,placement:"top",arrow:""},{default:e.withCtx(()=>c[2]||(c[2]=[e.createElementVNode("svg",{class:"size-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[2]},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["input__container bg-base-300",s.value?"input__container--error":"",r.type==="textArea"?"textArea":""])},[r.type!=="textArea"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(s.value?"text-red-500":"text-base-100"),innerHTML:r.svg},null,10,my)):e.createCommentVNode("",!0),r.type!=="textArea"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{type:r.type,key:r.type,placeholder:r.placeholder,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),class:e.normalizeClass([s.value?"empty":null,"input__field bg-base-300"])},null,10,fy)),[[e.vModelDynamic,i.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:2,class:e.normalizeClass([s.value?"empty":null,"input__field bg-base-300 h-full resize-y"]),"onUpdate:modelValue":c[1]||(c[1]=u=>i.value=u),placeholder:r.placeholder},null,10,hy)),[[e.vModelText,i.value]]),s.value?(e.openBlock(),e.createElementBlock("span",py," Campo obrigatório ")):e.createCommentVNode("",!0)],2)])}}},[["__scopeId","data-v-c4bd6a62"]]),gy=["onClick"],yy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},ky=["onClick"],xy={key:0,xmlns:"http://www.w3.org/2000/svg",class:"size-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},W1=Ce({__name:"simpleSelect",props:{modelValue:{type:[Array,String,Number,Object],default:()=>[]},options:{type:Array,required:!0,default:()=>[]},placeholder:{type:String,default:"Selecione uma opção..."},multiple:{type:Boolean,default:!1},theme:{type:String,default:"bg-base-300 border-base-300"},teleportTo:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({});mn(i,()=>r.value=!1);const c=()=>{if(!a.teleportTo||!s.value)return;const p=s.value.getBoundingClientRect();l.value={position:"fixed",top:`${p.bottom+6}px`,left:`${p.left}px`,width:`${p.width}px`,zIndex:9999}};e.watch(r,p=>{p&&c()});const m=[];e.onMounted(()=>{if(a.teleportTo){const p=()=>{r.value&&c()};window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),m.push(["scroll",p],["resize",p])}}),e.onUnmounted(()=>{m.forEach(([p,d])=>window.removeEventListener(p,d,p==="scroll"?!0:void 0))});const u=p=>a.multiple&&Array.isArray(a.modelValue)?a.modelValue.includes(p):a.modelValue===p,h=p=>{if(a.multiple){const d=Array.isArray(a.modelValue)?[...a.modelValue]:[],g=d.indexOf(p);g===-1?d.push(p):d.splice(g,1),o("update:modelValue",d)}else o("update:modelValue",p),r.value=!1},f=e.computed(()=>{if(a.multiple&&Array.isArray(a.modelValue))return a.modelValue.length===0?a.placeholder:a.options.filter(g=>a.modelValue.includes(g.value)).map(g=>g.name).join(", ");const p=a.options.find(d=>d.value===a.modelValue);return(p==null?void 0:p.name)||a.placeholder});return(p,d)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full",ref_key:"dropdownRef",ref:i},[e.createElementVNode("div",{onClick:d[0]||(d[0]=g=>r.value=!r.value),class:e.normalizeClass(["flex flex-wrap items-center justify-between p-3 gap-2 rounded-md cursor-pointer transition",t.theme]),ref_key:"triggerRef",ref:s},[e.createElementVNode("span",{class:e.normalizeClass(["text-xs truncate max-w-full",f.value===t.placeholder?"text-gray-400":"text-white"])},e.toDisplayString(f.value),3),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["size-3 text-white transition-transform duration-300",r.value?"rotate-180":""]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},d[1]||(d[1]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 9-7 7-7-7"},null,-1)]),2))],2),r.value&&!t.teleportTo?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute flex flex-col z-10 mt-1.5 w-full shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([u(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:x=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),u(g.value)?(e.openBlock(),e.createElementBlock("svg",yy,d[2]||(d[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):e.createCommentVNode("",!0)],10,gy))),128))],2)):e.createCommentVNode("",!0),r.value&&t.teleportTo?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:t.teleportTo},[e.createElementVNode("div",{style:e.normalizeStyle(l.value),class:e.normalizeClass(["flex flex-col shadow-sm border rounded-md max-h-64 overflow-y-auto hide-scrollbar",t.theme])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass([u(g.value)?"bg-green-500/30 hover:bg-green-500/50":"hover:bg-base-200","flex items-center justify-between gap-2 px-3 py-2 text-left text-sm cursor-pointer transition w-full"]),onClick:x=>h(g.value)},[e.createElementVNode("span",null,e.toDisplayString(g.name),1),u(g.value)?(e.openBlock(),e.createElementBlock("svg",xy,d[3]||(d[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):e.createCommentVNode("",!0)],10,ky))),128))],6)],8,["to"])):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-68d165f3"]]),by={class:"flex gap-2"},Ia=Ce({__name:"outcomeButton",props:{outcome:{type:String,default:null}},emits:["update:outcome","change"],setup(t,{emit:n}){const a=t,o=n;async function r(l){const c=a.outcome===l?null:l;o("update:outcome",c),o("change",c)}const i=e.computed(()=>a.outcome==="won"),s=e.computed(()=>a.outcome==="lost");return(l,c)=>(e.openBlock(),e.createElementBlock("div",by,[e.createElementVNode("button",{onClick:c[0]||(c[0]=m=>r("won")),class:e.normalizeClass(["button_outcome-base bg-base-300 dark:bg-base-100",{"button_outcome-active-won":i.value}])},[c[3]||(c[3]=e.createElementVNode("p",null,"Ganho",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-won":i.value},"text-white size-4"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none"},c[2]||(c[2]=[e.createElementVNode("path",{d:"M3.16666 6.37502C3.74962 6.37502 4.2222 6.85073 4.22222 7.43752V15.9375C4.22222 16.5243 3.74963 17 3.16666 17H1.05555C0.472588 17 0 16.5243 0 15.9375V7.43752C1.50967e-05 6.85073 0.472597 6.37502 1.05555 6.37502H3.16666Z",fill:"CurrentColor"},null,-1),e.createElementVNode("path",{d:"M9.48143 1.4454C9.79496 -0.637173 11.5194 0.143216 11.5194 0.143216C13.863 1.75728 13.005 4.80783 12.2832 6.13118H17.4424C19.5307 6.65187 19.0768 8.34354 18.5887 9.12465C19.5056 10.7905 18.4191 11.7716 17.7609 12.0538C18.1175 13.7717 17.0601 14.4178 16.4869 14.5264C16.8944 16.4004 15.5533 16.9564 14.8314 17H10.436C8.49997 16.9999 6.19055 16.1753 5.27777 15.7632V7.368C9.03523 5.6108 9.09933 3.98356 9.48143 1.4454Z",fill:"CurrentColor"},null,-1)]),2))],2),e.createElementVNode("button",{onClick:c[1]||(c[1]=m=>r("lost")),class:e.normalizeClass(["button_outcome-base bg-base-300 dark:bg-base-100",{"button_outcome-active-lost":s.value}])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([{"svg_outcome-active-lost":s.value},"text-white size-4 mt-0.8"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 19",fill:"none"},c[4]||(c[4]=[e.createElementVNode("path",{d:"M15.8333 10.625C15.2504 10.625 14.7778 10.1493 14.7778 9.56249L14.7778 1.0625C14.7778 0.475698 15.2504 1.57955e-06 15.8333 1.63051e-06L17.9444 1.81507e-06C18.5274 1.86603e-06 19 0.475698 19 1.0625L19 9.56249C19 10.1493 18.5274 10.625 17.9444 10.625L15.8333 10.625Z",fill:"CurrentColor"},null,-1),e.createElementVNode("path",{d:"M9.51857 15.5546C9.20504 17.6372 7.48065 16.8568 7.48065 16.8568C5.13698 15.2427 5.99503 12.1922 6.71681 10.8688L1.55759 10.8688C-0.530671 10.3481 -0.0768444 8.65646 0.411319 7.87535C-0.50562 6.20951 0.580926 5.22844 1.23906 4.94622C0.882549 3.22832 1.93994 2.5822 2.51315 2.47363C2.10564 0.59965 3.44673 0.0436064 4.16864 6.1075e-07L8.56403 9.95007e-07C10.5 0.000138493 12.8095 0.824657 13.7222 1.23682L13.7222 9.632C9.96477 11.3892 9.90067 13.0164 9.51857 15.5546Z",fill:"CurrentColor"},null,-1)]),2)),c[5]||(c[5]=e.createElementVNode("p",null,"Perdido",-1))],2)]))}},[["__scopeId","data-v-fe2aae2c"]]),wy=["disabled"],Ey=["onMousemove","onClick"],Wa=Ce({__name:"ratingInput",props:{modelValue:{type:Number,default:0},size:{type:Number,default:24},gap:{type:Number,default:4},onRate:{type:Function,default:null},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(a.modelValue),i=e.ref(0),s=e.ref(!1),l=e.ref(null);e.watch(()=>a.modelValue,x=>{r.value=x});const c=e.computed(()=>i.value||r.value);function m(x){const b=c.value-x+1;return b>=1?"100%":b>=.5?"50%":b>0?`${b*100}%`:"0%"}function u(x,b){const k=x.currentTarget.getBoundingClientRect(),y=x.offsetX<k.width/2;i.value=b-(y?.5:0)}function h(x,b){const k=x.currentTarget.getBoundingClientRect(),y=x.offsetX<k.width/2,v=b-(y?.5:0);r.value=r.value===v?0:v,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)}function f(){a.readonly||(s.value=!0)}function p(){s.value=!1,i.value=0}function d(x){if(!s.value||!l.value||a.readonly)return;const b=x.touches[0],k=l.value.getBoundingClientRect(),y=b.clientX-k.left,v=a.size+a.gap,C=Math.floor(y/v)+1;if(C>=1&&C<=5){const L=l.value.children[C-1];if(L){const P=L.getBoundingClientRect(),E=b.clientX-P.left<P.width/2;i.value=C-(E?.5:0)}}}function g(){s.value&&i.value>0&&(r.value=r.value===i.value?0:i.value,o("update:modelValue",r.value),typeof a.onRate=="function"&&a.onRate(r.value)),s.value=!1,i.value=0}return(x,b)=>(e.openBlock(),e.createElementBlock("main",{ref_key:"containerRef",ref:l,disabled:a.readonly,class:"flex select-none",style:e.normalizeStyle({gap:`${t.gap}px`}),onMouseleave:b[1]||(b[1]=k=>!a.readonly&&(i.value=0)),onTouchstart:f,onTouchmove:d,onTouchend:g,onTouchcancel:p},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,k=>e.createElementVNode("div",{key:k,class:e.normalizeClass(["relative",{"cursor-pointer":!a.readonly,"cursor-default":a.readonly}]),style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),onMousemove:y=>!a.readonly&&u(y,k),onMouseleave:b[0]||(b[0]=y=>!a.readonly&&(i.value=0)),onClick:y=>!a.readonly&&h(y,k)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"absolute top-0 left-0 color-disabled",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},b[2]||(b[2]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)]),4)),e.createElementVNode("div",{class:e.normalizeClass(["absolute top-0 left-0 h-full overflow-hidden transition-all duration-150",{"text-primary":!i.value,"text-hover":i.value>0}]),style:e.normalizeStyle({width:m(k),height:`${t.size}px`})},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},b[3]||(b[3]=[e.createElementVNode("path",{d:"M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"},null,-1)]),4))],6)],46,Ey)),64))],44,wy))}},[["__scopeId","data-v-1c07576c"]]),vy={class:"flex gap-1 px-1"},Cy=["onClick"],U1=Ce({__name:"toggleListButtons",props:{modelValue:{type:String,required:!0},buttons:{type:Array,required:!0,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){return(a,o)=>(e.openBlock(),e.createElementBlock("main",vy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass(["toggle-page-button bg-base-200",{selected:t.modelValue===r.value}]),onClick:i=>a.$emit("update:modelValue",r.value)},e.toDisplayString(r.label),11,Cy))),128))]))}},[["__scopeId","data-v-d3860b40"]]),Sy={key:0,class:"header-products-list"},By={class:"total-price-badge text-white"},Vy={key:1,class:"flex items-center justify-center overflow-hidden h-full"},My={key:2,class:"list-products-list"},Ny={key:0},Ay={class:"w-full text-gray-500 list-none list-inside dark:text-gray-400 divide-y divide-base-200"},Ty={key:0,class:"department-blocked"},Dy={class:"flex gap-2 items-center pl-2"},Ly=["src"],Fy={key:1,class:"empty-product-photo"},$y={class:"flex flex-col items-start"},Py=["title"],Oy={class:"text-[10px] flex gap-1 items-center"},_y={class:"text-xs font-semibold font-sans"},Ry={key:0,class:"font-sans text-primary text-white dark:text-primary font-semibold"},Hy={class:"text-green-400 dark:text-[#14532d] font-semibold"},zy={class:"flex flex-col gap-1 pr-2"},jy={class:"flex gap-1"},Gy=["disabled","onClick"],qy=["disabled","onClick"],Iy={key:1,class:"flex flex-col flex-1 gap-2 items-center justify-center"},Wy={key:0,class:"text-gray-200 text-[10px] md:text-xs font-sans"},Ua=Ce({__name:"listProducts",props:{modelValue:{type:Array,default:()=>[]},allProducts:{type:Object,default:()=>{}},onMouseLeave:{type:Function,required:!1},departmentBypass:{type:String,default:""},readonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(!1),i=e.ref([]),s=e.computed(()=>[...i.value].sort((S,B)=>{const N=P(S),M=P(B);return N===M?0:N-M}));function l(S){return Array.isArray(S)?S.map(B=>B&&B.product?{product:{...B.product},quantity:B.quantity??0}:{product:{...B},quantity:B.quantity??0}):[]}const c=e.ref(l(a.modelValue)),m=e.ref(1),u=e.ref(null),h=e.ref(null),f=e.computed(()=>c.value.reduce((S,B)=>{var H;const N=((H=B.product)==null?void 0:H.price)||B.price||0,M=B.quantity||0;return S+N*M},0));function p(S){var B;return((B=S==null?void 0:S.product)==null?void 0:B.id)??(S==null?void 0:S.id)}const d=e.computed(()=>{const S={};return c.value.forEach(B=>{const N=p(B);N!=null&&(S[N]=B.quantity)}),S}),g=S=>d.value[S.id]||0,x=S=>{if(a.readonly||P(S))return;const B=c.value.find(N=>p(N)===S.id);B?B.quantity++:c.value.push({product:{...S},quantity:1})},b=S=>{if(a.readonly||P(S))return;const B=c.value.find(N=>p(N)===S.id);B&&(B.quantity>0?B.quantity--:B.quantity=0)},k=(S,B)=>{const N=new URLSearchParams,M=S;return Object.keys(B).forEach(H=>N.append(H,B[H])),`${M}?${N.toString()}`},y=async S=>{try{const{data:B}=await Ue.get(k(x0,{page:m.value,...S})),{results:N,next:M,previous:H}=B;if(u.value=M,h.value=H,m.value===1)i.value=N;else{const ie=new Set(i.value.map(fe=>fe.id)),Q=N.filter(fe=>!ie.has(fe.id));i.value=[...i.value,...Q]}u.value&&(m.value+=1)}catch(B){console.error("Erro ao buscar produtos:",B)}};e.onMounted(async()=>{var S;a.allProducts&&((S=a.allProducts.results)==null?void 0:S.length)>0?(i.value=a.allProducts.results,u.value=a.allProducts.next||null,h.value=a.allProducts.previous||null,m.value=2):(r.value=!0,await y(),r.value=!1)}),e.watch(c,S=>{o("update:modelValue",S.map(B=>({product:B.product,quantity:B.quantity})))},{deep:!0}),e.watch(()=>a.modelValue,S=>{const B=l(S);JSON.stringify(B)!==JSON.stringify(c.value)&&(c.value=B)},{deep:!0});const v=e.ref(!1),C=async S=>{if(!v.value){v.value=!0;try{if(!u.value){S.complete();return}await y(),u.value?S.loaded():S.complete()}catch(B){console.error("Erro ao carregar produtos:",B),S.complete()}finally{v.value=!1}}};function L(){typeof a.onMouseLeave=="function"&&a.onMouseLeave()}const P=S=>{if(v.value)return!1;const B=a.departmentBypass;if(!B)return!1;const N=Array.isArray(S==null?void 0:S.department)?S.department:[];return N.length===0?!1:!N.some(H=>H&&H.id===B)},E=e.ref({query:""}),w=e.ref(!1);let A;return e.watch(E,()=>{clearTimeout(A),A=setTimeout(async()=>{const{query:S}=E.value;m.value=1,w.value=S!=null,console.log("Buscando por:",w.value),r.value=!0,await y({query:S}),r.value=!1},500)},{deep:!0}),(S,B)=>{const N=e.resolveComponent("SimpleLoader");return e.openBlock(),e.createElementBlock("div",{class:"list-products-wrapper",onMouseleave:L},[i.value.length>0&&!w.value||w.value?(e.openBlock(),e.createElementBlock("header",Sy,[e.withDirectives(e.createElementVNode("input",{class:"search-products-input text-white dark:text-black",type:"text",placeholder:"Buscar...","onUpdate:modelValue":B[0]||(B[0]=M=>E.value.query=M)},null,512),[[e.vModelText,E.value.query]]),e.createElementVNode("section",By," Valor total: "+e.toDisplayString(f.value.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",Vy,[e.createVNode(N)])):(e.openBlock(),e.createElementBlock("main",My,[i.value.length>0?(e.openBlock(),e.createElementBlock("div",Ny,[e.createElementVNode("ul",Ay,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(M,H)=>(e.openBlock(),e.createElementBlock("li",{class:"flex w-full justify-between items-center py-1.5 relative",key:M.id},[P(M)?(e.openBlock(),e.createElementBlock("span",Ty,B[1]||(B[1]=[e.createElementVNode("svg",{class:"size-5 text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 10V7a4 4 0 1 1 8 0v3h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2-3a2 2 0 1 1 4 0v3h-4V7Zm2 6a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z","clip-rule":"evenodd"})],-1),e.createElementVNode("p",{class:"text-xs text-white/80"}," Este produto não faz parte do seu departamento ",-1)]))):e.createCommentVNode("",!0),e.createElementVNode("div",Dy,[e.createElementVNode("section",null,[M.photo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"size-8 rounded-md",src:M.photo},null,8,Ly)):(e.openBlock(),e.createElementBlock("div",Fy,B[2]||(B[2]=[e.createElementVNode("svg",{class:"size-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M4 19v2c0 .5523.44772 1 1 1h14c.5523 0 1-.4477 1-1v-2H4Z"}),e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9 3c0-.55228.44772-1 1-1h8c.5523 0 1 .44772 1 1v3c0 .55228-.4477 1-1 1h-2v1h2c.5096 0 .9376.38314.9939.88957L19.8951 17H4.10498l.90116-8.11043C5.06241 8.38314 5.49047 8 6.00002 8H12V7h-2c-.55228 0-1-.44772-1-1V3Zm1.01 8H8.00002v2.01H10.01V11Zm.99 0h2.01v2.01H11V11Zm5.01 0H14v2.01h2.01V11Zm-8.00998 3H10.01v2.01H8.00002V14ZM13.01 14H11v2.01h2.01V14Zm.99 0h2.01v2.01H14V14ZM11 4h6v1h-6V4Z","clip-rule":"evenodd"})],-1)])))]),e.createElementVNode("section",$y,[e.createElementVNode("p",{title:M.name,class:e.normalizeClass(["label-product-name",g(M)>0?"text-white dark:text-primary":""])},e.toDisplayString(M.name),11,Py),e.createElementVNode("span",Oy,[e.createElementVNode("p",_y," R$ "+e.toDisplayString(M.price.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1),g(M)>0?(e.openBlock(),e.createElementBlock("p",Ry,[e.createTextVNode(" - x "+e.toDisplayString(g(M))+" = ",1),e.createElementVNode("a",Hy,e.toDisplayString((M.price*g(M)).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("section",zy,[e.createElementVNode("p",{class:e.normalizeClass(["text-xs font-semibold font-sans products-and-services_badge dark:text-white",M.recurrence])},e.toDisplayString(M.recurrence==="monthly"?"Mensal":"Único"),3),e.createElementVNode("div",jy,[e.createElementVNode("button",{disabled:P(M)||t.readonly,class:"action-list-button bg-base-200",onClick:ie=>b(M)}," - ",8,Gy),e.createElementVNode("p",{class:e.normalizeClass(["w-5 text-xs flex items-center justify-center font-semibold font-sans",g(M)>0?"text-white dark:text-black":""])},e.toDisplayString(g(M)),3),e.createElementVNode("button",{disabled:P(M)||t.readonly,class:"action-list-button bg-base-200",onClick:ie=>x(M)}," + ",8,qy)])])]))),128))]),u.value?(e.openBlock(),e.createBlock(e.unref(Ht),{key:0,onInfinite:C,class:"p-3"},{spinner:e.withCtx(()=>B[3]||(B[3]=[e.createElementVNode("section",{class:"w-full justify-center items-center flex"},[e.createElementVNode("div",{class:"size-4 animate-spin rounded-full border-4 border-solid border-primary border-t-transparent"})],-1)])),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),!r.value&&i.value.length<=0?(e.openBlock(),e.createElementBlock("section",Iy,[B[5]||(B[5]=e.createElementVNode("p",{class:"text-gray-200 dark:text-gray-900 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1)),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Wy,B[4]||(B[4]=[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Produtos",-1)])))])):e.createCommentVNode("",!0)]))],32)}}},[["__scopeId","data-v-d07a5a81"]]),Uy={},Zy={class:"flex items-center justify-center h-full"};function Yy(t,n){return e.openBlock(),e.createElementBlock("div",Zy,n[0]||(n[0]=[e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1),e.createElementVNode("span",{class:"products-and-services_bar"},null,-1)]))}const Za=Ce(Uy,[["render",Yy],["__scopeId","data-v-7f621883"]]),Xy={key:0,class:"flex items-center justify-center overflow-hidden h-full"},Ky={key:1},Qy={class:"flex flex-col gap-2 p-2"},Jy=["id","onUpdate:modelValue"],ek=["for","title"],tk=["id","onUpdate:modelValue"],nk=["id","onUpdate:modelValue"],ak={key:2,class:"flex-1 justify-center items-center flex flex-col gap-2 h-full"},ok=Ce({__name:"listSegmentationsFields",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,r=e.ref(s(a.modelValue)),i=e.ref(!1);function s(c){return JSON.parse(JSON.stringify(c))}const l=async()=>{try{i.value=!0;const c=await Ue.get(w0);r.value=c.data}catch(c){console.error("Error fetching segmentation fields:",c)}finally{i.value=!1}};return e.onMounted(()=>{a.modelValue.length===0&&l(),r.value.forEach(c=>{c.type==="bool"&&(c.content=c.content==="True")})}),e.watch(r,c=>{JSON.stringify(c)!==JSON.stringify(a.modelValue)&&o("update:modelValue",s(c))},{deep:!0}),(c,m)=>{const u=e.resolveComponent("SimpleSelect");return i.value?(e.openBlock(),e.createElementBlock("div",Xy,[e.createVNode(Za)])):r.value.length>0?(e.openBlock(),e.createElementBlock("div",Ky,[m[0]||(m[0]=e.createElementVNode("header",{class:"header-segmentation-fields bg-base-200"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Campos Personalizados")],-1)),e.createElementVNode("div",Qy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("section",{key:h.id},[e.createElementVNode("div",{class:e.normalizeClass(["flex w-full gap-1.5 rounded-md",h.type==="bool"?"flex-row items-center":"flex-col items-start"])},[h.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:"seg-label-"+h.id,class:"checkbox size-4 rounded-sm",type:"checkbox","onUpdate:modelValue":f=>h.content=f},null,8,Jy)),[[e.vModelCheckbox,h.content]]):e.createCommentVNode("",!0),e.createElementVNode("label",{for:"seg-label-"+h.id,class:"text-xs text-[12px] font-sans font-semibold",title:h.type==="string"?"texto":h.type==="bool"?"verdadeiro/falso":h.type==="float"?"número":h.type==="list"?"lista":"Desconhecido"},e.toDisplayString(h.name),9,ek),h.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,id:"seg-label-"+h.id,placeholder:"campo do tipo texto",class:"input_field bg-base-300",type:"text","onUpdate:modelValue":f=>h.content=f},null,8,tk)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="float"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,id:"seg-label-"+h.id,placeholder:"campo do tipo número",class:"input_field bg-base-300",type:"number","onUpdate:modelValue":f=>h.content=f},null,8,nk)),[[e.vModelText,h.content]]):e.createCommentVNode("",!0),h.type==="list"?(e.openBlock(),e.createBlock(u,{key:3,modelValue:h.content,"onUpdate:modelValue":f=>h.content=f,options:h.additional_info.list.options.map(f=>({value:f,name:f})),placeholder:"Selecione uma opção",theme:"bg-base-300 border-base-100 text-white","teleport-to":"body"},null,8,["modelValue","onUpdate:modelValue","options"])):e.createCommentVNode("",!0)],2)]))),128))])])):(e.openBlock(),e.createElementBlock("section",ak,m[1]||(m[1]=[e.createElementVNode("p",{class:"text-gray-200 text-xs md:text-base font-sans"}," Nenhum item encontrado ",-1),e.createElementVNode("p",{class:"text-gray-200 text-[10px] md:text-xs font-sans"},[e.createTextVNode(" Comece criando seu primeiro na aba "),e.createElementVNode("strong",null,"Campos Personalizados")],-1)])))}}},[["__scopeId","data-v-29df1f18"]]),rk={style:{"border-bottom-right-radius":"0.35rem","border-bottom-left-radius":"0.35rem"},class:"flex w-full relative bg-base-300"},ik={key:0,class:"text-xs absolute z-50 -bottom-2 left-1 bg-base-300 px-2 py-0.5 rounded-lg text-red-500 select-none shadow-sm shadow-base-100"},sk={class:"segmentation-fields-container bg-base-200"},lk={class:"list-products-container"},Z1=Ce({__name:"contactSection",props:e.mergeModels({hasCrmPlus:{type:Boolean,default:!1},handlerToggleButtons:{type:Array,default:()=>[]},allProducts:{type:Array,default:()=>[]},departmentBypass:{type:[String,Number,Boolean,Object],default:void 0},isEmptyNumber:{type:Boolean,default:!1},isLargeScreen:{type:Boolean,default:!0}},{pageState:{type:String,default:"data"},pageStateModifiers:{},telephone:{type:String,default:""},telephoneModifiers:{},country:{type:String,default:"br"},countryModifiers:{},segmentationFields:{type:Array,default:()=>[]},segmentationFieldsModifiers:{},products:{type:Array,default:()=>[]},productsModifiers:{}}),emits:["update:pageState","update:telephone","update:country","update:segmentationFields","update:products"],setup(t){const n=t,a=e.useModel(t,"pageState"),o=e.useModel(t,"telephone"),r=e.useModel(t,"country"),i=e.useModel(t,"segmentationFields"),s=e.useModel(t,"products");return(l,c)=>{const m=e.resolveComponent("vue-tel-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.isLargeScreen&&t.hasCrmPlus?(e.openBlock(),e.createBlock(U1,{key:0,buttons:n.handlerToggleButtons,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u)},null,8,["buttons","modelValue"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([n.hasCrmPlus?"pt-1.5":"pt-0","flex flex-col gap-2 flex-1 min-h-0 px-1.5 overflow-hidden"])},[e.createElementVNode("div",{class:e.normalizeClass([n.isEmptyNumber&&!o.value?"border-red-500":"border-white/10","rounded-md bg-base-200 border shadow-sm transition-shadow duration-200 hover:shadow-md"])},[c[6]||(c[6]=e.createElementVNode("h1",{class:"text-start w-full items-center justify-between flex p-2"},[e.createElementVNode("p",{class:"text-xs font-semibold"},"Contatos")],-1)),e.createElementVNode("div",rk,[c[5]||(c[5]=e.createElementVNode("span",{class:"flex justify-center items-center w-8"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"size-4 text-gray-500 ml-1.5",viewBox:"0 0 17 17"},[e.createElementVNode("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})])],-1)),e.createVNode(m,{class:"z-40 w-full",onCountryChanged:c[1]||(c[1]=u=>r.value=u.iso2),mode:"national",validCharactersOnly:!0,defaultCountry:r.value,inputOptions:{placeholder:"Coloque seu telefone",showDialCode:!1,required:!0,searchBoxPlaceholder:"Brazil"},dropdownOptions:{showSearchBox:!0,showFlags:!0,searchBoxPlaceholder:"Brazil"},modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=u=>o.value=u)},null,8,["defaultCountry","modelValue"]),n.isEmptyNumber&&!o.value?(e.openBlock(),e.createElementBlock("span",ik," Campo obrigatorio ")):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",sk,[e.createVNode(ok,{modelValue:i.value,"onUpdate:modelValue":c[3]||(c[3]=u=>i.value=u)},null,8,["modelValue"])])],2),[[e.vShow,a.value==="data"]]),e.withDirectives(e.createElementVNode("div",lk,[e.createVNode(Ua,{modelValue:s.value,"onUpdate:modelValue":c[4]||(c[4]=u=>s.value=u),allProducts:n.allProducts,departmentBypass:n.departmentBypass},null,8,["modelValue","allProducts","departmentBypass"])],512),[[e.vShow,a.value==="products"]])],64)}}},[["__scopeId","data-v-935a10d1"]]),ck={class:"modal-form-container-wrapper"},dk={class:"modal_responsive"},uk={style:{"min-height":"100%"},class:"flex min-h-full items-center justify-center text-center"},mk={class:"modal-form-container"},fk={class:"modal-form-header bg-base-300"},hk={class:"flex items-center gap-2"},pk={class:"flex flex-col items-start"},gk={class:"text-lg"},yk={key:0,class:"id-label-clients"},kk={class:"flex gap-2 items-center"},xk={key:1,class:"flex flex-col gap-2 items-center"},bk={title:"Não é possível alterar a foto do cliente neste momento",class:"flex items-center justify-center w-full"},wk=["src"],Ek={key:1,class:"no-avatar-client"},vk={key:2,class:"modal-form-left-column-body"},Ck={class:"w-full"},Sk={class:"flex flex-col gap-2 w-full"},Bk={class:"flex items-center justify-between px-1"},Vk={key:0,class:"h-full flex flex-col gap-2 w-full"},Mk={class:"flex items-center justify-between px-1"},Nk={class:"w-full h-full bg-base-300 rounded-lg flex flex-col min-h-0"},Ak={class:"right-column bg-base-300"},Tk={class:"right-column bg-base-300"},Dk={class:"modal-form-end-button bg-base-300"},Lk=["disabled"],Fk={key:0,class:"size-4 animate-spin rounded-full border-4 border-solid text-white border-t-transparent"},$k={key:1,class:"text-xs font-semibold"},Y1="selectTags-portal-container",X1=Ce({__name:"clientsForm",props:{form:{type:Object,default:()=>({tags:[],country:"BR",name:"",photo:null,raw_telephone:"",telephone:"",whatsapp_id:"",whatsapp_jid:"",whatsapp_lid:null,rating:null,outcome:null,created_at:"",updated_at:"",client:"",segmentation_fields:[],products:[],notes:""})},save:{type:Function,default:()=>{}},hasCrmPlus:{type:Boolean,default:!1},allProducts:{type:Object,default:()=>{}},allTags:{type:Object,default:()=>{}},departmentBypass:{type:String,default:""}},emits:["close","save"],setup(t,{emit:n}){const a=n,o=e.ref("contact"),r=t,i=e.reactive({...r.form}),s=e.ref(!1),l=e.ref(!1),c=e.ref([{title:"Nome",info:!1,type:"text",placeholder:"Digite o nome do contato",empty:e.computed(()=>l.value?l.value.some(k=>k.startsWith("name")):!1),data:e.computed({get:()=>i.name,set:k=>i.name=k})},{title:"Descrição",info:"Descreva o produto para facilitar a identificação",type:"textArea",placeholder:"Automatize fluxos de trabalho com integração rápida e segura entre sistemas.",empty:!1,data:e.computed({get:()=>i.notes,set:k=>i.notes=k})}]),m=e.computed(()=>r.form.mode==="edit"?"Editar cliente":"Adicionar Novo Cliente"),u=k=>{var v,C;const y=[];return(v=k.name)!=null&&v.trim()||y.push("name"),(C=k.telephone)!=null&&C.trim()||y.push("telephone"),y},h=e.computed(()=>l.value?l.value.some(k=>k.startsWith("telephone")):!1),f=async()=>{try{if(s.value=!0,l.value=u(i),l.value.length>0)return;await r.save(i)}catch(k){console.error(k)}finally{s.value=!1}};e.watch(()=>r.form,k=>{Object.assign(i,e.toRaw(k))},{immediate:!0});const p=e.ref(window.innerWidth),d=()=>{p.value=window.innerWidth};e.onMounted(()=>{window.addEventListener("resize",d)}),e.onUnmounted(()=>{window.removeEventListener("resize",d)});const g=e.computed(()=>p.value>=640);e.watch(g,(k,y)=>{y?o.value="contact":!y&&k&&(o.value="data")},{immediate:!0});const x=[{label:"Informações",value:"data"},{label:"Produtos",value:"products",disabled:!r.hasCrmPlus}],b=e.computed(()=>{const k={label:"Contato",value:"contact"},y=x.filter(v=>v.value!=="contact");return r.hasCrmPlus?g.value?[...y]:[k,...y]:[k,...y.filter(v=>v.value!=="products")]});return(k,y)=>{var C,L,P;const v=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("div",ck,[y[25]||(y[25]=e.createElementVNode("div",{class:"modal-form-background"},null,-1)),e.createElementVNode("div",dk,[e.createElementVNode("div",uk,[e.createElementVNode("div",mk,[e.createElementVNode("div",{class:e.normalizeClass([{noCrmPlus:!t.hasCrmPlus},"clients-form-background relative rounded-2xl bg-base-200 backdrop-blur-lg"])},[e.createElementVNode("div",{id:Y1,class:"relative"}),e.createElementVNode("div",fk,[e.createElementVNode("span",hk,[y[18]||(y[18]=e.createElementVNode("svg",{class:"size-6 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"})],-1)),e.createElementVNode("span",pk,[e.createElementVNode("p",gk,e.toDisplayString(m.value),1),i.id?(e.openBlock(),e.createElementBlock("p",yk," ID: "+e.toDisplayString(i.id),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("section",kk,[e.createElementVNode("button",{class:"bg-base-200 p-1.5 rounded-md hover:bg-base-100 transition",onClick:y[0]||(y[0]=E=>a("close"))},y[19]||(y[19]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 17.94 6M18 18 6.06 6"})],-1)]))])]),e.createElementVNode("div",{class:e.normalizeClass([g.value?"grid grid-cols-2":"flex","modal-form-body"])},[e.createElementVNode("section",{class:e.normalizeClass([o.value!=="contact"&&!g.value?"pt-1.5":"p-1.5","left-column"])},[g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(U1,{key:0,buttons:b.value,modelValue:o.value,"onUpdate:modelValue":y[1]||(y[1]=E=>o.value=E)},null,8,["buttons","modelValue"])),g.value||o.value==="contact"?(e.openBlock(),e.createElementBlock("div",xk,[t.hasCrmPlus?(e.openBlock(),e.createBlock(Ia,{key:0,outcome:i.outcome,"onUpdate:outcome":y[2]||(y[2]=E=>i.outcome=E)},null,8,["outcome"])):e.createCommentVNode("",!0),e.createElementVNode("div",bk,[i.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.photo,alt:"",class:"avatar-client"},null,8,wk)):(e.openBlock(),e.createElementBlock("span",Ek,y[20]||(y[20]=[e.createElementVNode("svg",{class:"size-14","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2 9a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-1a4 4 0 0 0-4-4h-4Z","clip-rule":"evenodd"})],-1)])))]),t.hasCrmPlus?(e.openBlock(),e.createBlock(Wa,{key:1,modelValue:i.rating,"onUpdate:modelValue":y[3]||(y[3]=E=>i.rating=E)},null,8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),g.value||o.value==="contact"?(e.openBlock(),e.createElementBlock("div",vk,[e.createElementVNode("div",Ck,[e.createVNode(qa,{"onUpdate:content":y[4]||(y[4]=E=>c.value[0].data=E.data),content:c.value[0]},null,8,["content"])]),e.createElementVNode("div",Sk,[e.createElementVNode("header",Bk,[y[22]||(y[22]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Escolha suas etiquetas ",-1)),e.createVNode(v,{hover:"",content:"Etiquetas que estão atribuídas ao cliente",placement:"top",arrow:""},{default:e.withCtx(()=>y[21]||(y[21]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[21]})]),e.createVNode(Ga,{teleportTo:`#${Y1}`,maxHeight:"10rem",allTags:t.allTags,modelValue:i.tags,"onUpdate:modelValue":y[5]||(y[5]=E=>i.tags=E)},null,8,["teleportTo","allTags","modelValue"])]),t.hasCrmPlus?(e.openBlock(),e.createElementBlock("div",Vk,[e.createElementVNode("header",Mk,[y[24]||(y[24]=e.createElementVNode("p",{class:"text-xs font-medium text-left"}," Anotações sobre o cliente ",-1)),e.createVNode(v,{hover:"",content:"Anotações adicionais sobre o cliente",placement:"top",arrow:""},{default:e.withCtx(()=>y[23]||(y[23]=[e.createElementVNode("svg",{class:"size-4 text-white dark:text-black",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.408-5.5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2h-.01ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4a1 1 0 0 0-1-1h-2Z"})],-1)])),_:1,__:[23]})]),e.createElementVNode("div",Nk,[e.withDirectives(e.createElementVNode("textarea",{class:"form-text-area bg-base-300 min-h-0 flex-1","onUpdate:modelValue":y[6]||(y[6]=E=>i.notes=E),maxlength:"1000","aria-label":"Anotações do cliente"},null,512),[[e.vModelText,i.notes]]),e.createElementVNode("div",{class:e.normalizeClass(["text-[10px] bg-base-300 px-1 rounded-md text-right mb-1 mr-1",((C=i.notes)==null?void 0:C.length)>900?"text-red-500":((L=i.notes)==null?void 0:L.length)>700?"text-yellow-500":"text-gray-400"])},e.toDisplayString(((P=i.notes)==null?void 0:P.length)||0)+"/1000 ",3)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("section",Ak,[e.createVNode(Z1,{hasCrmPlus:t.hasCrmPlus,handlerToggleButtons:b.value,allProducts:t.allProducts,departmentBypass:t.departmentBypass,isEmptyNumber:h.value,isLargeScreen:g.value,pageState:o.value,"onUpdate:pageState":y[7]||(y[7]=E=>o.value=E),telephone:i.telephone,"onUpdate:telephone":y[8]||(y[8]=E=>i.telephone=E),country:i.country,"onUpdate:country":y[9]||(y[9]=E=>i.country=E),segmentationFields:i.segmentation_fields,"onUpdate:segmentationFields":y[10]||(y[10]=E=>i.segmentation_fields=E),products:i.products,"onUpdate:products":y[11]||(y[11]=E=>i.products=E)},null,8,["hasCrmPlus","handlerToggleButtons","allProducts","departmentBypass","isEmptyNumber","isLargeScreen","pageState","telephone","country","segmentationFields","products"])],512),[[e.vShow,!g.value&&o.value!=="contact"]])],2),e.withDirectives(e.createElementVNode("section",Tk,[e.createVNode(Z1,{hasCrmPlus:t.hasCrmPlus,handlerToggleButtons:b.value,allProducts:t.allProducts,departmentBypass:t.departmentBypass,isEmptyNumber:h.value,isLargeScreen:g.value,pageState:o.value,"onUpdate:pageState":y[12]||(y[12]=E=>o.value=E),telephone:i.telephone,"onUpdate:telephone":y[13]||(y[13]=E=>i.telephone=E),country:i.country,"onUpdate:country":y[14]||(y[14]=E=>i.country=E),segmentationFields:i.segmentation_fields,"onUpdate:segmentationFields":y[15]||(y[15]=E=>i.segmentation_fields=E),products:i.products,"onUpdate:products":y[16]||(y[16]=E=>i.products=E)},null,8,["hasCrmPlus","handlerToggleButtons","allProducts","departmentBypass","isEmptyNumber","isLargeScreen","pageState","telephone","country","segmentationFields","products"])],512),[[e.vShow,g.value]])],2),e.createElementVNode("div",Dk,[e.createElementVNode("button",{disabled:s.value,class:"button-save-clients",onClick:y[17]||(y[17]=E=>f())},[s.value?(e.openBlock(),e.createElementBlock("div",Fk)):(e.openBlock(),e.createElementBlock("p",$k,"Salvar"))],8,Lk)])],2)])])])])}}},[["__scopeId","data-v-3fb2b118"]]),Pk={class:"flex justify-center items-center"},Ok={class:"text-[8px] font-bold"},_k={class:"tag-view-popper-content-text"},Rk={class:"flex"},Hk={class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 25 100",style:{color:"#d1d5db"}},zk={style:{backgroundColor:"#d1d5db"},class:"w-full ml-[-0.5rem] rounded-r-md inline-flex items-center justify-center p-0.5 border-b-2 border-gray-900"},jk={class:"text-[8px] text-black font-bold"},Gk={class:"max-h-64 overflow-y-auto hide-scrollbar"},qk={class:"flex flex-col gap-2"},Ik={class:"tag-view-popper-content-text"},Wk={key:1},K1=Ce({__name:"tagView",props:{clients:{type:Object,required:!0}},setup(t){const n=t;return e.computed(()=>{var a,o;return((o=(a=n.clients)==null?void 0:a.tags)==null?void 0:o.slice(0,4))||[]}),(a,o)=>{const r=e.resolveComponent("Popper");return e.openBlock(),e.createElementBlock("section",Pk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags.slice(0,4),(i,s)=>(e.openBlock(),e.createBlock(r,{class:"tag-view-theme",arrow:"",hover:"",key:s},{content:e.withCtx(()=>[e.createElementVNode("p",_k,e.toDisplayString(i.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["flex",e.unref(cn)(i.color)])},[(e.openBlock(),e.createElementBlock("svg",{class:"svg-list-tag","aria-hidden":"true",viewBox:"0 0 30 100",style:e.normalizeStyle({color:i.color||"#fff"})},o[0]||(o[0]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{style:e.normalizeStyle({backgroundColor:i.color||"#fff"}),class:"w-full ml-[-0.10rem] rounded-r-md inline-flex items-center justify-center px-1 py-0.5 border-b-2 border-gray-900"},[e.createElementVNode("p",Ok,e.toDisplayString(i.name.charAt(0).toUpperCase()),1)],4)],2)]),_:2},1024))),128)),t.clients.tags.length>4?(e.openBlock(),e.createBlock(r,{key:0,arrow:"",hover:"",class:"tag-view-theme"},{content:e.withCtx(()=>[e.createElementVNode("section",Gk,[e.createElementVNode("div",qk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.clients.tags,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id||i.name,class:"relative inline-flex items-center rounded-md overflow-hidden"},[(e.openBlock(),e.createElementBlock("svg",{class:"size-6","aria-hidden":"true",viewBox:"0 0 75 100",style:e.normalizeStyle({color:i.color||"#fff"})},o[2]||(o[2]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]),4)),e.createElementVNode("span",{class:e.normalizeClass(["p-0.5 w-full text-sm font-semibold truncate text-start -ml-2",e.unref(cn)(i.color)]),style:e.normalizeStyle(["max-width: 12rem",{background:i.color||"#fff"}])},[e.createElementVNode("p",Ik,e.toDisplayString(i.name),1)],6)]))),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",Rk,[(e.openBlock(),e.createElementBlock("svg",Hk,o[1]||(o[1]=[e.createElementVNode("path",{d:"M49.9,0a17.1,17.1,0,0,0-12,5L5,37.9A17,17,0,0,0,5,62L37.9,94.9a17.1,17.1,0,0,0,12,5ZM25.4,59.4a9.5,9.5,0,1,1,9.5-9.5A9.5,9.5,0,0,1,25.4,59.4Z",fill:"currentColor"},null,-1)]))),e.createElementVNode("span",zk,[e.createElementVNode("p",jk," +"+e.toDisplayString(t.clients.tags.length-4),1)])])]),_:1})):e.createCommentVNode("",!0),!t.clients.tags||t.clients.tags.length===0?(e.openBlock(),e.createElementBlock("span",Wk,"-")):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-8b61820e"]]),Q1=Ce({__name:"floating-dev",setup(t){const n=e.ref(!1),a=e.ref({x:30,y:30}),o=e.ref({x:0,y:0}),r=e.ref(!1),i=e.ref(null),s=e.ref(null),l=e.ref({vertical:"bottom",horizontal:"right"}),c=e.computed(()=>({position:"fixed",left:`${a.value.x}px`,top:`${a.value.y}px`,zIndex:1e3,cursor:r.value?"grabbing":"grab"})),m=e.computed(()=>{const g={position:"absolute",background:"#fff",borderRadius:"10px",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.2)",width:"280px",maxWidth:"90vw",zIndex:1001};return l.value.vertical==="top"?g.bottom="60px":g.top="60px",l.value.horizontal==="left"?g.right="0":g.left="0",g});async function u(){if(n.value){n.value=!1;return}n.value=!0,await e.nextTick(),h()}function h(){if(!i.value||!s.value)return;const g=i.value.getBoundingClientRect(),x=s.value.offsetWidth,b=s.value.offsetHeight,k={top:g.top,bottom:window.innerHeight-(g.top+g.height),left:g.left,right:window.innerWidth-(g.left+g.width)};l.value.vertical=k.bottom<b&&k.top>b?"top":"bottom",l.value.horizontal=k.right<x&&k.left>x?"left":"right"}function f(g){r.value=!0;const x=g.type.includes("touch")?g.touches[0]:g;o.value={x:x.clientX-a.value.x,y:x.clientY-a.value.y},document.addEventListener("mousemove",p),document.addEventListener("mouseup",d),document.addEventListener("touchmove",p),document.addEventListener("touchend",d)}function p(g){if(!r.value)return;const x=g.type.includes("touch")?g.touches[0]:g,b=x.clientX-o.value.x,k=x.clientY-o.value.y,y=window.innerWidth-i.value.offsetWidth,v=window.innerHeight-i.value.offsetHeight;a.value.x=Math.min(Math.max(0,b),y),a.value.y=Math.min(Math.max(0,k),v)}function d(){r.value=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",d)}return e.onBeforeUnmount(d),(g,x)=>(e.openBlock(),e.createElementBlock("div",{class:"floating-widget",style:e.normalizeStyle(c.value),ref_key:"widgetRef",ref:i,onMousedown:f,onTouchstart:f},[e.createElementVNode("button",{class:"floating-button",onClick:e.withModifiers(u,["stop"]),"aria-label":"Abrir painel flutuante"},x[0]||(x[0]=[e.createElementVNode("svg",{class:"floating-button-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[e.createElementVNode("path",{d:"M370 378c28.89 23.52 46 46.07 46 86M142 378c-28.89 23.52-46 46.06-46 86M384 208c28.89-23.52 32-56.07 32-96M128 206c-28.89-23.52-32-54.06-32-94M464 288.13h-80M128 288.13H48M256 192v256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M256 448h0c-70.4 0-128-57.6-128-128v-96.07c0-65.07 57.6-96 128-96h0c70.4 0 128 25.6 128 96V320c0 70.4-57.6 128-128 128z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),e.createElementVNode("path",{d:"M179.43 143.52a49.08 49.08 0 01-3.43-15.73A80 80 0 01255.79 48h.42A80 80 0 01336 127.79a41.91 41.91 0 01-3.12 14.3",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1)])),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"floating-panel",ref_key:"panelRef",ref:s,style:e.normalizeStyle(m.value)},[e.renderSlot(g.$slots,"default",{},()=>[x[1]||(x[1]=e.createElementVNode("p",{style:{"text-align":"center","font-size":"0.9rem"}}," Adicione seu conteúdo aqui 👇 ",-1))],!0)],4)):e.createCommentVNode("",!0)]),_:3})],36))}},[["__scopeId","data-v-9a761c09"]]);Vt.defineStore("debug",{state:()=>({message:"Debug store initialized"}),actions:{logMessage(){console.log(this.message)}}});const Uk={class:"audio-player hover:bg-base-100"},Zk=["disabled"],Yk={class:"audio-player-info"},Xk={class:"audio-progress-container"},Kk=["max","value","disabled"],Qk={class:"audio-duration"},Jk={key:0,class:"align-middle"},ex=["src"],tx=Ce({__name:"AudioPlayer",props:{src:{type:String,required:!0},label:{type:String,required:!0},type:{type:String,required:!0,validator:t=>["client","attendant","general"].includes(t)},activeSrc:{type:String,required:!1}},emits:["play-start","play-pause"],setup(t,{emit:n}){const a=n,o=t,r=e.ref(null),i=e.ref(!1),s=e.ref(0),l=e.ref(0),c=e.ref(!1),m=e.ref(!1);function u(){if(r.value)if(i.value)r.value.pause(),i.value=!1,w();else{if(E(),!r.value)return;m.value=!0;const A=r.value.play();A&&typeof A.then=="function"?A.then(()=>{m.value=!1,i.value=!0}).catch(S=>{console.error("Audio play failed:",S),m.value=!1,i.value=!1}):(m.value=!1,i.value=!0)}}function h(A){r.value&&(r.value.currentTime=A.target.value)}function f(){r.value&&(l.value=r.value.duration||0)}function p(){c.value=!0}function d(){c.value=!1}function g(){m.value=!1,i.value=!0}function x(){m.value=!0}function b(A){console.error("Audio error:",A),c.value=!1,m.value=!1,i.value=!1}function k(){r.value&&(s.value=r.value.currentTime)}function y(){i.value=!1,s.value=0,w()}function v(){window.open(o.src,"_blank")}function C(A){if(!A||isNaN(A))return"0:00";const S=Math.floor(A/60),B=Math.floor(A%60);return`${S}:${B.toString().padStart(2,"0")}`}function L(){switch(o.type){case"client":return"#22d3ee";case"attendant":return"#14b8a6";case"general":return"#0ea5e9";default:return"#9ca3af"}}function P(){return{backgroundColor:`${L()}20`,color:L()}}function E(){a("play-start",o.src)}function w(){a("play-pause",o.src)}return e.watch(()=>o.activeSrc,A=>{A&&A!==o.src&&i.value&&r.value&&(r.value.pause(),i.value=!1)}),e.onUnmounted(()=>{r.value&&(r.value.pause(),r.value.src="")}),(A,S)=>(e.openBlock(),e.createElementBlock("div",Uk,[e.createElementVNode("button",{onClick:e.withModifiers(u,["stop"]),class:"audio-play-btn hover:bg-base-100",title:"Reproduzir",disabled:c.value||m.value,style:e.normalizeStyle(P())},[c.value||m.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"audio-play-spinner",style:e.normalizeStyle({color:L()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},S[0]||(S[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10","stroke-width":"4","stroke-opacity":"0.2"},null,-1),e.createElementVNode("path",{d:"M4 12a8 8 0 018-8","stroke-width":"4","stroke-linecap":"round"},null,-1)]),4)):i.value?(e.openBlock(),e.createElementBlock("svg",{key:2,style:e.normalizeStyle({color:L()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},S[2]||(S[2]=[e.createElementVNode("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"},null,-1)]),4)):(e.openBlock(),e.createElementBlock("svg",{key:1,style:e.normalizeStyle({color:L()}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},S[1]||(S[1]=[e.createElementVNode("path",{d:"M8 5v14l11-7z"},null,-1)]),4))],12,Zk),e.createElementVNode("div",Yk,[e.createElementVNode("div",{class:"audio-player-title",style:e.normalizeStyle({color:L()})},e.toDisplayString(t.label),5),e.createElementVNode("div",Xk,[e.createElementVNode("div",{class:"audio-progress-track",style:e.normalizeStyle({backgroundColor:`${L()}20`})},[e.createElementVNode("div",{class:"audio-progress-fill",style:e.normalizeStyle({width:l.value>0?`${s.value/l.value*100}%`:"0%",backgroundColor:L()})},null,4),e.createElementVNode("input",{type:"range",class:"audio-progress-input",min:"0",max:l.value,value:s.value,onInput:e.withModifiers(h,["stop"]),disabled:c.value||m.value},null,40,Kk)],4)])]),e.createElementVNode("span",Qk,[c.value||m.value?(e.openBlock(),e.createElementBlock("span",Jk,"-- : --")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(C(s.value))+" : "+e.toDisplayString(C(l.value)),1)],64))]),e.createElementVNode("button",{onClick:e.withModifiers(v,["stop"]),class:"audio-download-btn hover:bg-base-300",title:"Baixar"},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({color:L()}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},S[3]||(S[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"},null,-1)]),4))]),e.createElementVNode("audio",{ref_key:"audioElement",ref:r,src:t.src,onLoadstart:p,onLoadedmetadata:f,onCanplay:d,onPlaying:g,onWaiting:x,onTimeupdate:k,onEnded:y,onError:b,preload:"metadata"},null,40,ex)]))}},[["__scopeId","data-v-fbc276d0"]]),nx=Ce({__name:"CallRecordPlayer",props:{recordMetadata:{type:Object,required:!0}},emits:["close"],setup(t){const n=e.ref(null);function a(r){n.value=r}function o(r){n.value===r&&(n.value=null)}return(r,i)=>{var s,l;return e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c=>null,["stop"]),class:"call-record-player bg-base-200"},[(l=(s=t.recordMetadata)==null?void 0:s.urls)!=null&&l.general?(e.openBlock(),e.createBlock(tx,{key:0,src:t.recordMetadata.urls.general,label:"Conversa",type:"general","active-src":n.value,onPlayStart:a,onPlayPause:o},null,8,["src","active-src"])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-b2bf056b"]]),ax={class:"call-card-header"},ox={class:"call-card-header-left"},rx={class:"call-card-content"},ix={class:"call-card-title"},sx={key:0,class:"opacity-70"},lx={key:0,class:"call-card-text"},cx={class:"call-card-actions"},dx={key:0,class:"call-card-expanded"},ux={class:"call-events"},mx={class:"call-event-left"},fx={class:"call-event-time"},J1=Ce({__name:"CallCard",props:{call:{type:Object,required:!0},hideMessageButton:{type:Boolean,default:!1},onMessageClick:{type:Function,required:!1,default:null}},setup(t){const n=t,a=e.ref([]),o=e.ref({});function r(k){const y=a.value.indexOf(k);y>-1?a.value.splice(y,1):a.value.push(k)}function i(k){o.value[k]=!o.value[k]}function s(k){a.value.includes(k)||a.value.push(k),i(k)}function l(k){n.onMessageClick&&n.onMessageClick(k)}function c(k){return k.events&&k.events.length>0?k.events[0].event_type:k.historical&&k.historical.length>0?k.historical[k.historical.length-1].status:""}function m(k){switch(k){case"offer":return"event-status-offer";case"answer":return"event-status-answer";case"accepted":return"event-status-accepted";case"ringing":return"event-status-ringing";case"rejected":case"error":return"event-status-rejected";case"terminated":return"event-status-terminated";case"update":return"event-status-update";default:return"event-status-unknown"}}function u(k){switch(k){case"offer":return"event-bg-offer";case"answer":return"event-bg-answer";case"accepted":return"event-bg-accepted";case"ringing":return"event-bg-ringing";case"rejected":case"error":return"event-bg-rejected";case"terminated":return"bg-primary";case"update":return"event-bg-update";default:return"event-bg-unknown"}}function h(k){switch(k){case"offer":return"event-dot-offer";case"answer":return"event-dot-answer";case"accepted":return"event-dot-accepted";case"ringing":return"event-dot-ringing";case"rejected":case"error":return"event-dot-rejected";case"terminated":return"event-dot-terminated";case"update":return"event-dot-update";default:return"event-dot-unknown"}}function f(k){switch(k){case"offer":return"Chamada recebida";case"answer":return"Chamada iniciada";case"ringing":return"Tocando...";case"accepted":return"Chamada atendida";case"rejected":return"Chamada rejeitada";case"terminated":return"Chamada terminada";case"error":return"Erro na chamada";case"update":return"Chamada atualizada";default:return"Evento desconhecido"}}function p(k){if(!k)return"";const y=new Date(k),C=new Date-y,L=Math.floor(C/(1e3*60*60*24));return L===0?"Hoje":L===1?"Ontem":L<7?`${L}d atrás`:y.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})}function d(k){return k?new Date(k).toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):""}function g(k){var y,v,C,L,P,E;return((v=(y=k.record_metadata)==null?void 0:y.urls)==null?void 0:v.client)||((L=(C=k.record_metadata)==null?void 0:C.urls)==null?void 0:L.attendant)||((E=(P=k.record_metadata)==null?void 0:P.urls)==null?void 0:E.general)}function x(k){return k.events&&k.events.length>0?[...k.events].reverse():k.historical&&k.historical.length>0?k.historical:[]}function b(k){return k.event_type||k.status}return(k,y)=>(e.openBlock(),e.createElementBlock("div",{key:t.call.id,"data-test":"call-card",onClick:y[4]||(y[4]=e.withModifiers(v=>r(t.call.id),["stop"])),class:"call-card bg-base-300 border hover:bg-base-300 border-base-300"},[e.createElementVNode("div",ax,[e.createElementVNode("div",ox,[e.createElementVNode("div",{class:e.normalizeClass(["call-icon bg-primary",u(c(t.call))])},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle(t.hideMessageButton?{width:"2.2rem",height:"2.2rem"}:{width:"1.3rem",height:"1.3rem"}),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},y[5]||(y[5]=[e.createElementVNode("path",{d:"M7.978 4a2.553 2.553 0 0 0-1.926.877C4.233 6.7 3.699 8.751 4.153 10.814c.44 1.995 1.778 3.893 3.456 5.572 1.68 1.679 3.577 3.018 5.57 3.459 2.062.456 4.115-.073 5.94-1.885a2.556 2.556 0 0 0 .001-3.861l-1.21-1.21a2.689 2.689 0 0 0-3.802 0l-.617.618a.806.806 0 0 1-1.14 0l-1.854-1.855a.807.807 0 0 1 0-1.14l.618-.62a2.692 2.692 0 0 0 0-3.803l-1.21-1.211A2.555 2.555 0 0 0 7.978 4Z"},null,-1)]),4))],2),e.createElementVNode("div",rx,[e.createElementVNode("div",ix,[e.createTextVNode(e.toDisplayString(t.call.direction==="outbound"?"Efetuada":"Recebida")+" ",1),t.call.started_at?(e.openBlock(),e.createElementBlock("span",sx," • "+e.toDisplayString(p(t.call.started_at)),1)):e.createCommentVNode("",!0)]),t.hideMessageButton?(e.openBlock(),e.createElementBlock("div",lx,e.toDisplayString(t.call.direction==="outbound"?"Uma ligação foi efetuada":"Uma ligação foi recebida"),1)):e.createCommentVNode("",!0),x(t.call).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["call-card-status",m(c(t.call))])},e.toDisplayString(f(c(t.call))),3)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cx,[!t.hideMessageButton&&t.call.external_id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:y[0]||(y[0]=e.withModifiers(v=>l(t.call),["stop"])),title:"Ver mensagem",class:"hover:bg-base-100"},y[6]||(y[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)]))):e.createCommentVNode("",!0),g(t.call)?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass({"bg-base-100":o.value[t.call.id],"hover:bg-base-100":!0}),onClick:y[1]||(y[1]=e.withModifiers(v=>s(t.call.id),["stop"])),title:"Ver gravações"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.value[t.call.id]?"text-primary":"opacity-70"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},y[7]||(y[7]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M17.316 4.052a.99.99 0 0 0-.9.14c-.262.19-.416.495-.416.82v8.566a4.573 4.573 0 0 0-2-.464c-1.99 0-4 1.342-4 3.443 0 2.1 2.01 3.443 4 3.443 1.99 0 4-1.342 4-3.443V6.801c.538.5 1 1.219 1 2.262 0 .56.448 1.013 1 1.013s1-.453 1-1.013c0-1.905-.956-3.18-1.86-3.942a6.391 6.391 0 0 0-1.636-.998 4 4 0 0 0-.166-.063l-.013-.005-.005-.002h-.002l-.002-.001ZM4 5.012c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.453 1-1.013 0-.559-.448-1.012-1-1.012H4Zm0 4.051c-.552 0-1 .454-1 1.013 0 .56.448 1.013 1 1.013h9c.552 0 1-.454 1-1.013 0-.56-.448-1.013-1-1.013H4Zm0 4.05c-.552 0-1 .454-1 1.014 0 .559.448 1.012 1 1.012h4c.552 0 1-.453 1-1.012 0-.56-.448-1.013-1-1.013H4Z","clip-rule":"evenodd"},null,-1)]),2))],2)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:y[2]||(y[2]=e.withModifiers(v=>r(t.call.id),["stop"])),class:e.normalizeClass(["call-expand-btn hover:bg-base-100",{rotated:a.value.includes(t.call.id)}])},y[8]||(y[8]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)]),2)])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value.includes(t.call.id)?(e.openBlock(),e.createElementBlock("div",dx,[o.value[t.call.id]&&g(t.call)?(e.openBlock(),e.createBlock(nx,{key:0,"record-metadata":t.call.record_metadata,onClose:y[3]||(y[3]=v=>i(t.call.id))},null,8,["record-metadata"])):e.createCommentVNode("",!0),e.createElementVNode("div",ux,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x(t.call),(v,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"call-event-item"},[e.createElementVNode("div",mx,[e.createElementVNode("div",{class:e.normalizeClass(["call-event-dot",h(b(v))])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["call-event-text",m(b(v))])},e.toDisplayString(f(b(v))),3)]),e.createElementVNode("span",fx,e.toDisplayString(d(v.created_at)),1)]))),128))])])):e.createCommentVNode("",!0)]),_:1})]))}},[["__scopeId","data-v-e6544d90"]]),hx={class:"call-history-container"},px={key:0,class:"call-history-loading"},gx={key:1,class:"call-history-error"},yx={key:2,class:"call-history-empty"},kx={key:3,class:"call-history-list"},ei=Ce({__name:"CallHistory",props:{chatId:{type:[String,Number],required:!0},callsApiUrl:{type:String,required:!1,default:E0},onMessageClick:{type:Function,required:!1,default:null}},setup(t){const n=t,a=e.ref(!1),o=e.ref(null),r=e.ref([]);e.onMounted(()=>{i()}),e.watch(()=>n.chatId,()=>{i()});async function i(){var l,c;if(n.chatId){a.value=!0,o.value=null;try{const m=await Ue.get(`${n.callsApiUrl}?chat_id=${n.chatId}`);r.value=m.data.results||m.data||[]}catch(m){console.error("Erro ao buscar ligações:",m),o.value=((c=(l=m.response)==null?void 0:l.data)==null?void 0:c.message)||"Erro ao carregar o histórico de ligações"}finally{a.value=!1}}}function s(l){n.onMessageClick&&n.onMessageClick(l)}return(l,c)=>(e.openBlock(),e.createElementBlock("div",hx,[a.value?(e.openBlock(),e.createElementBlock("div",px,c[0]||(c[0]=[e.createElementVNode("svg",{class:"call-history-loading-spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})],-1),e.createElementVNode("span",{class:"call-history-loading-text"},"Carregando ligações...",-1)]))):o.value?(e.openBlock(),e.createElementBlock("div",gx,e.toDisplayString(o.value),1)):r.value.length===0?(e.openBlock(),e.createElementBlock("div",yx," Nenhuma ligação registrada nesta conversa ")):(e.openBlock(),e.createElementBlock("div",kx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,m=>(e.openBlock(),e.createBlock(J1,{key:m.id,call:m,"on-message-click":s},null,8,["call"]))),128))]))]))}},[["__scopeId","data-v-c90f4d47"]]),xx={class:"call-message-container"},ti=Ce(e.defineComponent({__name:"CallMessage",props:{content:{type:Object,required:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",xx,[e.createVNode(J1,{call:t.content,"hide-message-button":!0},null,8,["call"])]))}}),[["__scopeId","data-v-5b27980f"]]);function bx(t){t.component("primarySelect",io),t.component("departSelect",D1),t.component("attendantSelect",L1),t.component("SimpleModal",so),t.component("simpleCard",lo),t.component("instanceSelect",Zo),t.component("calendarEvents",ir),t.component("MFA",sr),t.component("MfaQrCode",gd),t.component("chatWindow",A1),t.component("FilterSelectLib",F1),t.component("MobileInternalChat",T1),t.component("RandomAvatar",_1),t.component("MinModal",R1),t.component("LibPatchNotes",j1),t.component("BtnNewUpdates",G1),t.component("LibPhotoPicker",q1),t.component("SelectMultipleDepartments",I1),t.component("PrimaryInput",qa),t.component("SimpleSelect",W1),t.component("FloatingDev",Q1),t.component("RatingInput",Wa),t.component("TagView",K1),t.component("ClientsForm",X1),t.component("SelectMultipleTags",Ga),t.component("SimpleLoader",Za),t.component("OutcomeButton",Ia),t.component("CallHistory",ei),t.component("CallMessage",ti),t.component("ListProducts",Ua)}function ni(t,n="add"){const a=ja();n==="add"?a.addDepartments(t):n==="delete"?a.removeDepartments(t):n==="update"?(a.departments=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibDeparts.`)}function ai(t,n="add"){const a=Rt();n==="add"?a.addAttendants(t):n==="delete"?a.removeAttendants(t):n==="update"?(a.attendants=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibAttendants.`)}function oi(t,n="add"){const a=ua();n==="add"?a.addInstance(t):n==="delete"?a.removeInstance(t):n==="update"?(a.instances=t,a.loaded=!0):console.error(`Ação "${n}" não suportada em attLibInstances.`)}async function ri(t,n,a,o=[],r=[],i=[]){try{const s=await Uo(t);n&&await s.setToken(n),a&&(Ue.defaults.baseURL=a);const l=ja(t);r.length>0&&(l.departments=r,l.count=r.length);const c=Rt(t);o.length>0&&(c.attendants=o,c.count=o.length),await ua(t).fetchInstances()}catch(s){console.error("Erro no setupLibrary:",s)}}function ii(t){return cn(t)}const wx={install:bx,setupLibrary:ri,attLibDeparts:ni,attLibAttendants:ai,attLibInstances:oi,primarySelect:io,simpleModal:so,simpleCard:lo,instanceSelect:Zo,SimpleSelect:W1,FloatingDev:Q1,calendar:ir,SimpleLoader:Za,MFA:sr,chatWindow:A1,departSelect:D1,attendantSelect:L1,FilterSelectLib:F1,MobileInternalChat:T1,RandomAvatar:_1,MinModal:R1,libPatchNotes:j1,btnNewUpdates:G1,LibPhotoPicker:q1,SelectMultipleDepartments:I1,SelectMultipleTags:Ga,PrimaryInput:qa,getWithContrastColor:ii,RatingInput:Wa,TagView:K1,ClientsForm:X1,OutcomeButton:Ia,CallHistory:ei,CallMessage:ti,ListProducts:Ua};function Ex(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return new Proxy({},{get(o,r){return(i,s,l)=>{const c=t.Capacitor.Plugins[a];if(c===void 0){l(new Error(`Capacitor plugin ${a} not found`));return}if(typeof c[r]!="function"){l(new Error(`Method ${r} not found in Capacitor plugin ${a}`));return}(async()=>{try{const m=await c[r](i);s(m)}catch(m){l(m)}})()}}})}})}function vx(t){t.CapacitorUtils.Synapse=new Proxy({},{get(n,a){return t.cordova.plugins[a]}})}function Cx(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?Ex(window):window.cordova!==void 0&&vx(window))}var si;(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(si||(si={}));var Ya;(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(Ya||(Ya={}));const Zn=sn("Filesystem",{web:()=>Promise.resolve().then(()=>qx).then(t=>new t.FilesystemWeb)});Cx();const Sx=sn("BlobWriter");function Bx(t){return window.btoa(Array.from(new Uint8Array(t)).map(function(n){return String.fromCharCode(n)}).join(""))}function Vx({path:t,directory:n,blob:a,recursive:o}){return Zn.writeFile({directory:n,path:t,recursive:o,data:""}).then(function(){return new Promise(function(r,i){function s(c){i(c.target.error)}const l=window.indexedDB.open("Disc");l.onerror=s,l.onsuccess=function(){const m=l.result.transaction("FileStorage","readwrite");m.onerror=s;const u=m.objectStore("FileStorage"),h=`/${n}/${t.replace(/^\//,"")}`,f=u.get(h);f.onsuccess=function(){f.result.size=a.size,f.result.content=a;const p=u.put(f.result);p.onsuccess=function(){r(void 0)}}}})})}function li({path:t,directory:n,blob:a,recursive:o}){return Zn.writeFile({directory:n,path:t,recursive:o,data:""}).then(function r(){if(a.size===0)return Promise.resolve();const i=3*128*1024,s=a.slice(0,i);return a=a.slice(i),new Response(s).arrayBuffer().then(function(c){return Zn.appendFile({directory:n,path:t,data:Bx(c)})}).then(r)})}function Mx(t){const{path:n,directory:a,blob:o,fast_mode:r=!1,recursive:i,on_fallback:s}=t;return!o||!Number.isSafeInteger(o.size)||typeof o.type!="string"?Promise.reject(new Error("Not a Blob.")):zn.getPlatform()==="web"?r?Vx(t):li(t):Promise.all([Sx.get_config(),Zn.getUri({path:n,directory:a})]).then(function([l,c]){const m=c.uri.replace("file://","");return(window.CapacitorWebFetch||window.fetch)(l.base_url+m+(i?"?recursive=true":""),{headers:{authorization:l.auth_token},method:"put",body:o}).then(function(h){if(h.status!==204)throw new Error("Bad HTTP status: "+h.status);return c.uri})}).catch(function(c){return s!==void 0&&s(c),li(t)})}const Nx=Object.freeze(Mx);function Ax(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ci={};function Tx(t){return t&&t.__esModule?t:{default:t}}var Dx=Tx,Xa={exports:{}},di;function Lx(){return di||(di=1,function(t){var n=function(a){var o=Object.prototype,r=o.hasOwnProperty,i=Object.defineProperty||function(F,D,j){F[D]=j.value},s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",m=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function h(F,D,j){return Object.defineProperty(F,D,{value:j,enumerable:!0,configurable:!0,writable:!0}),F[D]}try{h({},"")}catch{h=function(D,j,re){return D[j]=re}}function f(F,D,j,re){var se=D&&D.prototype instanceof y?D:y,be=Object.create(se.prototype),Se=new ie(re||[]);return i(be,"_invoke",{value:B(F,j,Se)}),be}a.wrap=f;function p(F,D,j){try{return{type:"normal",arg:F.call(D,j)}}catch(re){return{type:"throw",arg:re}}}var d="suspendedStart",g="suspendedYield",x="executing",b="completed",k={};function y(){}function v(){}function C(){}var L={};h(L,c,function(){return this});var P=Object.getPrototypeOf,E=P&&P(P(Q([])));E&&E!==o&&r.call(E,c)&&(L=E);var w=C.prototype=y.prototype=Object.create(L);v.prototype=C,i(w,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:v,configurable:!0}),v.displayName=h(C,u,"GeneratorFunction");function A(F){["next","throw","return"].forEach(function(D){h(F,D,function(j){return this._invoke(D,j)})})}a.isGeneratorFunction=function(F){var D=typeof F=="function"&&F.constructor;return D?D===v||(D.displayName||D.name)==="GeneratorFunction":!1},a.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,C):(F.__proto__=C,h(F,u,"GeneratorFunction")),F.prototype=Object.create(w),F},a.awrap=function(F){return{__await:F}};function S(F,D){function j(be,Se,Fe,$e){var Ve=p(F[be],F,Se);if(Ve.type==="throw")$e(Ve.arg);else{var G=Ve.arg,ne=G.value;return ne&&typeof ne=="object"&&r.call(ne,"__await")?D.resolve(ne.__await).then(function(J){j("next",J,Fe,$e)},function(J){j("throw",J,Fe,$e)}):D.resolve(ne).then(function(J){G.value=J,Fe(G)},function(J){return j("throw",J,Fe,$e)})}}var re;function se(be,Se){function Fe(){return new D(function($e,Ve){j(be,Se,$e,Ve)})}return re=re?re.then(Fe,Fe):Fe()}i(this,"_invoke",{value:se})}A(S.prototype),h(S.prototype,m,function(){return this}),a.AsyncIterator=S,a.async=function(F,D,j,re,se){se===void 0&&(se=Promise);var be=new S(f(F,D,j,re),se);return a.isGeneratorFunction(D)?be:be.next().then(function(Se){return Se.done?Se.value:be.next()})};function B(F,D,j){var re=d;return function(be,Se){if(re===x)throw new Error("Generator is already running");if(re===b){if(be==="throw")throw Se;return fe()}for(j.method=be,j.arg=Se;;){var Fe=j.delegate;if(Fe){var $e=N(Fe,j);if($e){if($e===k)continue;return $e}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(re===d)throw re=b,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);re=x;var Ve=p(F,D,j);if(Ve.type==="normal"){if(re=j.done?b:g,Ve.arg===k)continue;return{value:Ve.arg,done:j.done}}else Ve.type==="throw"&&(re=b,j.method="throw",j.arg=Ve.arg)}}}function N(F,D){var j=D.method,re=F.iterator[j];if(re===s)return D.delegate=null,j==="throw"&&F.iterator.return&&(D.method="return",D.arg=s,N(F,D),D.method==="throw")||j!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+j+"' method")),k;var se=p(re,F.iterator,D.arg);if(se.type==="throw")return D.method="throw",D.arg=se.arg,D.delegate=null,k;var be=se.arg;if(!be)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,k;if(be.done)D[F.resultName]=be.value,D.next=F.nextLoc,D.method!=="return"&&(D.method="next",D.arg=s);else return be;return D.delegate=null,k}A(w),h(w,u,"Generator"),h(w,c,function(){return this}),h(w,"toString",function(){return"[object Generator]"});function M(F){var D={tryLoc:F[0]};1 in F&&(D.catchLoc=F[1]),2 in F&&(D.finallyLoc=F[2],D.afterLoc=F[3]),this.tryEntries.push(D)}function H(F){var D=F.completion||{};D.type="normal",delete D.arg,F.completion=D}function ie(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(M,this),this.reset(!0)}a.keys=function(F){var D=Object(F),j=[];for(var re in D)j.push(re);return j.reverse(),function se(){for(;j.length;){var be=j.pop();if(be in D)return se.value=be,se.done=!1,se}return se.done=!0,se}};function Q(F){if(F){var D=F[c];if(D)return D.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var j=-1,re=function se(){for(;++j<F.length;)if(r.call(F,j))return se.value=F[j],se.done=!1,se;return se.value=s,se.done=!0,se};return re.next=re}}return{next:fe}}a.values=Q;function fe(){return{value:s,done:!0}}return ie.prototype={constructor:ie,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(H),!F)for(var D in this)D.charAt(0)==="t"&&r.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=s)},stop:function(){this.done=!0;var F=this.tryEntries[0],D=F.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var D=this;function j($e,Ve){return be.type="throw",be.arg=F,D.next=$e,Ve&&(D.method="next",D.arg=s),!!Ve}for(var re=this.tryEntries.length-1;re>=0;--re){var se=this.tryEntries[re],be=se.completion;if(se.tryLoc==="root")return j("end");if(se.tryLoc<=this.prev){var Se=r.call(se,"catchLoc"),Fe=r.call(se,"finallyLoc");if(Se&&Fe){if(this.prev<se.catchLoc)return j(se.catchLoc,!0);if(this.prev<se.finallyLoc)return j(se.finallyLoc)}else if(Se){if(this.prev<se.catchLoc)return j(se.catchLoc,!0)}else if(Fe){if(this.prev<se.finallyLoc)return j(se.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,D){for(var j=this.tryEntries.length-1;j>=0;--j){var re=this.tryEntries[j];if(re.tryLoc<=this.prev&&r.call(re,"finallyLoc")&&this.prev<re.finallyLoc){var se=re;break}}se&&(F==="break"||F==="continue")&&se.tryLoc<=D&&D<=se.finallyLoc&&(se=null);var be=se?se.completion:{};return be.type=F,be.arg=D,se?(this.method="next",this.next=se.finallyLoc,k):this.complete(be)},complete:function(F,D){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&D&&(this.next=D),k},finish:function(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.finallyLoc===F)return this.complete(j.completion,j.afterLoc),H(j),k}},catch:function(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.tryLoc===F){var re=j.completion;if(re.type==="throw"){var se=re.arg;H(j)}return se}}throw new Error("illegal catch attempt")},delegateYield:function(F,D,j){return this.delegate={iterator:Q(F),resultName:D,nextLoc:j},this.method==="next"&&(this.arg=s),k}},a}(t.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}(Xa)),Xa.exports}var Ka,ui;function Fx(){return ui||(ui=1,Ka=Lx()),Ka}var Qa,mi;function $x(){if(mi)return Qa;mi=1;function t(a,o,r,i,s,l,c){try{var m=a[l](c),u=m.value}catch(h){r(h);return}m.done?o(u):Promise.resolve(u).then(i,s)}function n(a){return function(){var o=this,r=arguments;return new Promise(function(i,s){var l=a.apply(o,r);function c(u){t(l,i,s,c,m,"next",u)}function m(u){t(l,i,s,c,m,"throw",u)}c(void 0)})}}return Qa=n,Qa}(function(t){var n=Dx;Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(Fx()),o=n($x());function r(s){return i.apply(this,arguments)}function i(){return(i=(0,o.default)(a.default.mark(function s(l){var c,m;return a.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=document.createElement("video"),m=new Promise(function(h,f){c.addEventListener("loadedmetadata",function(){c.duration===1/0?(c.currentTime=Number.MAX_SAFE_INTEGER,c.ontimeupdate=function(){c.ontimeupdate=null,h(c.duration),c.currentTime=0}):h(c.duration)}),c.onerror=function(p){return f(p.target.error)}}),c.src=typeof l=="string"||l instanceof String?l:window.URL.createObjectURL(l),u.abrupt("return",m);case 4:case"end":return u.stop()}},s)}))).apply(this,arguments)}})(ci);const Px=Ax(ci),St=()=>({value:!0}),dn=()=>({value:!1}),Ox=()=>new Error("MISSING_PERMISSION"),_x=()=>new Error("ALREADY_RECORDING"),Rx=()=>new Error("DEVICE_CANNOT_VOICE_RECORD"),fi=()=>new Error("FAILED_TO_RECORD"),Hx=()=>new Error("EMPTY_RECORDING"),Ja=()=>new Error("RECORDING_HAS_NOT_STARTED"),hi=()=>new Error("FAILED_TO_FETCH_RECORDING"),eo=()=>new Error("COULD_NOT_QUERY_PERMISSION_STATUS"),pi={"audio/aac":".aac","audio/mp4":".mp3","audio/webm;codecs=opus":".ogg","audio/webm":".ogg","audio/ogg;codecs=opus":".ogg"},gi=()=>new Promise(()=>{});class st{constructor(){this.mediaRecorder=null,this.chunks=[],this.pendingResult=gi()}static async canDeviceVoiceRecord(){var n;return((n=navigator==null?void 0:navigator.mediaDevices)===null||n===void 0?void 0:n.getUserMedia)==null||st.getSupportedMimeType()==null?dn():St()}async startRecording(n){if(this.mediaRecorder!=null)throw _x();if(!(await st.canDeviceVoiceRecord()).value)throw Rx();if(!(await st.hasAudioRecordingPermission().catch(()=>St())).value)throw Ox();return navigator.mediaDevices.getUserMedia({audio:!0}).then(r=>this.onSuccessfullyStartedRecording(r,n)).catch(this.onFailedToStartRecording.bind(this))}async stopRecording(){if(this.mediaRecorder==null)throw Ja();try{return this.mediaRecorder.stop(),this.mediaRecorder.stream.getTracks().forEach(n=>n.stop()),this.pendingResult}catch{throw hi()}finally{this.prepareInstanceForNextOperation()}}static async hasAudioRecordingPermission(){return navigator.permissions.query==null?navigator.mediaDevices==null?Promise.reject(eo()):navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>St()).catch(()=>{throw eo()}):navigator.permissions.query({name:"microphone"}).then(n=>({value:n.state==="granted"})).catch(()=>{throw eo()})}static async requestAudioRecordingPermission(){return(await st.hasAudioRecordingPermission().catch(()=>dn())).value?St():navigator.mediaDevices.getUserMedia({audio:!0}).then(()=>St()).catch(()=>dn())}pauseRecording(){if(this.mediaRecorder==null)throw Ja();return this.mediaRecorder.state==="recording"?(this.mediaRecorder.pause(),Promise.resolve(St())):Promise.resolve(dn())}resumeRecording(){if(this.mediaRecorder==null)throw Ja();return this.mediaRecorder.state==="paused"?(this.mediaRecorder.resume(),Promise.resolve(St())):Promise.resolve(dn())}getCurrentStatus(){return this.mediaRecorder==null?Promise.resolve({status:Gn.NONE}):this.mediaRecorder.state==="recording"?Promise.resolve({status:Gn.RECORDING}):this.mediaRecorder.state==="paused"?Promise.resolve({status:Gn.PAUSED}):Promise.resolve({status:Gn.NONE})}static getSupportedMimeType(){if((MediaRecorder==null?void 0:MediaRecorder.isTypeSupported)==null)return null;const n=Object.keys(pi).find(a=>MediaRecorder.isTypeSupported(a));return n??null}onSuccessfullyStartedRecording(n,a){return this.pendingResult=new Promise((o,r)=>{this.mediaRecorder=new MediaRecorder(n),this.mediaRecorder.onerror=()=>{this.prepareInstanceForNextOperation(),r(fi())},this.mediaRecorder.onstop=async()=>{var i,s,l;const c=st.getSupportedMimeType();if(c==null){this.prepareInstanceForNextOperation(),r(hi());return}const m=new Blob(this.chunks,{type:c});if(m.size<=0){this.prepareInstanceForNextOperation(),r(Hx());return}let u,h;a!=null?(u=`${(l=(s=(i=a.subDirectory)===null||i===void 0?void 0:i.match(/^\/?(.+[^/])\/?$/))===null||s===void 0?void 0:s[1])!==null&&l!==void 0?l:""}/recording-${new Date().getTime()}${pi[c]}`,await Nx({blob:m,directory:a.directory,fast_mode:!0,path:u,recursive:!0})):h=await st.blobToBase64(m);const f=await Px(m);this.prepareInstanceForNextOperation(),o({value:{recordDataBase64:h,mimeType:c,msDuration:f*1e3,path:u}})},this.mediaRecorder.ondataavailable=i=>this.chunks.push(i.data),this.mediaRecorder.start()}),St()}onFailedToStartRecording(){throw this.prepareInstanceForNextOperation(),fi()}static blobToBase64(n){return new Promise(a=>{const o=new FileReader;o.onloadend=()=>{const r=String(o.result),i=r.split("base64,"),s=i.length>1?i[1]:r;a(s.trim())},o.readAsDataURL(n)})}prepareInstanceForNextOperation(){if(this.mediaRecorder!=null&&this.mediaRecorder.state==="recording")try{this.mediaRecorder.stop()}catch(n){console.warn("While trying to stop a media recorder, an error was thrown",n)}this.pendingResult=gi(),this.mediaRecorder=null,this.chunks=[]}}class zx extends jn{constructor(){super(...arguments),this.voiceRecorderInstance=new st}canDeviceVoiceRecord(){return st.canDeviceVoiceRecord()}hasAudioRecordingPermission(){return st.hasAudioRecordingPermission()}requestAudioRecordingPermission(){return st.requestAudioRecordingPermission()}startRecording(n){return this.voiceRecorderInstance.startRecording(n)}stopRecording(){return this.voiceRecorderInstance.stopRecording()}pauseRecording(){return this.voiceRecorderInstance.pauseRecording()}resumeRecording(){return this.voiceRecorderInstance.resumeRecording()}getCurrentStatus(){return this.voiceRecorderInstance.getCurrentStatus()}}const jx=Object.freeze(Object.defineProperty({__proto__:null,VoiceRecorderWeb:zx},Symbol.toStringTag,{value:"Module"}));function yi(t){const n=t.split("/").filter(o=>o!=="."),a=[];return n.forEach(o=>{o===".."&&a.length>0&&a[a.length-1]!==".."?a.pop():a.push(o)}),a.join("/")}function Gx(t,n){t=yi(t),n=yi(n);const a=t.split("/"),o=n.split("/");return t!==n&&a.every((r,i)=>r===o[i])}class Yn extends jn{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async n=>{var a,o;const r=m1(n,n.webFetchExtra),i=await fetch(n.url,r);let s;if(!n.progress)s=await i.blob();else if(!(i!=null&&i.body))s=new Blob;else{const c=i.body.getReader();let m=0;const u=[],h=i.headers.get("content-type"),f=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:x}=await c.read();if(g)break;u.push(x),m+=(x==null?void 0:x.length)||0;const b={url:n.url,bytes:m,contentLength:f};this.notifyListeners("progress",b)}const p=new Uint8Array(m);let d=0;for(const g of u)typeof g>"u"||(p.set(g,d),d+=g.length);s=new Blob([p.buffer],{type:h||void 0})}return{path:(await this.writeFile({path:n.path,directory:(a=n.directory)!==null&&a!==void 0?a:void 0,recursive:(o=n.recursive)!==null&&o!==void 0?o:!1,data:s})).uri,blob:s}}}readFileInChunks(n,a){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((n,a)=>{const o=indexedDB.open(this.DB_NAME,this.DB_VERSION);o.onupgradeneeded=Yn.doUpgrade,o.onsuccess=()=>{this._db=o.result,n(o.result)},o.onerror=()=>a(o.error),o.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(n){const o=n.target.result;switch(n.oldVersion){case 0:case 1:default:o.objectStoreNames.contains("FileStorage")&&o.deleteObjectStore("FileStorage"),o.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(n,a){const o=this._writeCmds.indexOf(n)!==-1?"readwrite":"readonly";return this.initDb().then(r=>new Promise((i,s)=>{const m=r.transaction(["FileStorage"],o).objectStore("FileStorage")[n](...a);m.onsuccess=()=>i(m.result),m.onerror=()=>s(m.error)}))}async dbIndexRequest(n,a,o){const r=this._writeCmds.indexOf(a)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,l)=>{const h=i.transaction(["FileStorage"],r).objectStore("FileStorage").index(n)[a](...o);h.onsuccess=()=>s(h.result),h.onerror=()=>l(h.error)}))}getPath(n,a){const o=a!==void 0?a.replace(/^[/]+|[/]+$/g,""):"";let r="";return n!==void 0&&(r+="/"+n),a!==""&&(r+="/"+o),r}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(o===void 0)throw Error("File does not exist.");return{data:o.content?o.content:""}}async writeFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=n.recursive,s=await this.dbRequest("get",[a]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");const l=a.substr(0,a.lastIndexOf("/"));if(await this.dbRequest("get",[l])===void 0){const h=l.indexOf("/",1);if(h!==-1){const f=l.substr(h);await this.mkdir({path:f,directory:n.directory,recursive:i})}}if(!r&&!(o instanceof Blob)&&(o=o.indexOf(",")>=0?o.split(",")[1]:o,!this.isBase64String(o)))throw Error("The supplied data is not valid base64 content.");const m=Date.now(),u={path:a,folder:l,type:"file",size:o instanceof Blob?o.size:o.length,ctime:m,mtime:m,content:o};return await this.dbRequest("put",[u]),{uri:u.path}}async appendFile(n){const a=this.getPath(n.directory,n.path);let o=n.data;const r=n.encoding,i=a.substr(0,a.lastIndexOf("/")),s=Date.now();let l=s;const c=await this.dbRequest("get",[a]);if(c&&c.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){const h=i.indexOf("/",1);if(h!==-1){const f=i.substr(h);await this.mkdir({path:f,directory:n.directory,recursive:!0})}}if(!r&&!this.isBase64String(o))throw Error("The supplied data is not valid base64 content.");if(c!==void 0){if(c.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");c.content!==void 0&&!r?o=btoa(atob(c.content)+atob(o)):o=c.content+o,l=c.ctime}const u={path:a,folder:i,type:"file",size:o.length,ctime:l,mtime:s,content:o};await this.dbRequest("put",[u])}async deleteFile(n){const a=this.getPath(n.directory,n.path);if(await this.dbRequest("get",[a])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[a])}async mkdir(n){const a=this.getPath(n.directory,n.path),o=n.recursive,r=a.substr(0,a.lastIndexOf("/")),i=(a.match(/\//g)||[]).length,s=await this.dbRequest("get",[r]),l=await this.dbRequest("get",[a]);if(i===1)throw Error("Cannot create Root directory");if(l!==void 0)throw Error("Current directory does already exist.");if(!o&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(o&&i!==2&&s===void 0){const u=r.substr(r.indexOf("/",1));await this.mkdir({path:u,directory:n.directory,recursive:o})}const c=Date.now(),m={path:a,folder:r,type:"directory",size:0,ctime:c,mtime:c};await this.dbRequest("put",[m])}async rmdir(n){const{path:a,directory:o,recursive:r}=n,i=this.getPath(o,a),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");const l=await this.readdir({path:a,directory:o});if(l.files.length!==0&&!r)throw Error("Folder is not empty");for(const c of l.files){const m=`${a}/${c.name}`;(await this.stat({path:m,directory:o})).type==="file"?await this.deleteFile({path:m,directory:o}):await this.rmdir({path:m,directory:o,recursive:r})}await this.dbRequest("delete",[i])}async readdir(n){const a=this.getPath(n.directory,n.path),o=await this.dbRequest("get",[a]);if(n.path!==""&&o===void 0)throw Error("Folder does not exist.");const r=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(a)]);return{files:await Promise.all(r.map(async s=>{let l=await this.dbRequest("get",[s]);return l===void 0&&(l=await this.dbRequest("get",[s+"/"])),{name:s.substring(a.length+1),type:l.type,size:l.size,ctime:l.ctime,mtime:l.mtime,uri:l.path}}))}}async getUri(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);return o===void 0&&(o=await this.dbRequest("get",[a+"/"])),{uri:(o==null?void 0:o.path)||a}}async stat(n){const a=this.getPath(n.directory,n.path);let o=await this.dbRequest("get",[a]);if(o===void 0&&(o=await this.dbRequest("get",[a+"/"])),o===void 0)throw Error("Entry does not exist.");return{name:o.path.substring(a.length+1),type:o.type,size:o.size,ctime:o.ctime,mtime:o.mtime,uri:o.path}}async rename(n){await this._copy(n,!0)}async copy(n){return this._copy(n,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(n,a=!1){let{toDirectory:o}=n;const{to:r,from:i,directory:s}=n;if(!r||!i)throw Error("Both to and from must be provided");o||(o=s);const l=this.getPath(s,i),c=this.getPath(o,r);if(l===c)return{uri:c};if(Gx(l,c))throw Error("To path cannot contain the from path");let m;try{m=await this.stat({path:r,directory:o})}catch{const d=r.split("/");d.pop();const g=d.join("/");if(d.length>0&&(await this.stat({path:g,directory:o})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(m&&m.type==="directory")throw new Error("Cannot overwrite a directory with a file");const u=await this.stat({path:i,directory:s}),h=async(p,d,g)=>{const x=this.getPath(o,p),b=await this.dbRequest("get",[x]);b.ctime=d,b.mtime=g,await this.dbRequest("put",[b])},f=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=await this.readFile({path:i,directory:s});a&&await this.deleteFile({path:i,directory:s});let d;!(p.data instanceof Blob)&&!this.isBase64String(p.data)&&(d=Ya.UTF8);const g=await this.writeFile({path:r,directory:o,data:p.data,encoding:d});return a&&await h(r,f,u.mtime),g}case"directory":{if(m)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:r,directory:o,recursive:!1}),a&&await h(r,f,u.mtime)}catch{}const p=(await this.readdir({path:i,directory:s})).files;for(const d of p)await this._copy({from:`${i}/${d.name}`,to:`${r}/${d.name}`,directory:s,toDirectory:o},a);a&&await this.rmdir({path:i,directory:s})}}return{uri:c}}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}Yn._debug=!0;const qx=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:Yn},Symbol.toStringTag,{value:"Module"}));Ke.attLibAttendants=ai,Ke.attLibDeparts=ni,Ke.attLibInstances=oi,Ke.default=wx,Ke.getWithContrastColor=ii,Ke.setupLibrary=ri,Ke.useScheduledStore=nr,Object.defineProperties(Ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});