vendor: 4,373 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AboutPage-DkWLJg7-.js","assets/AboutPage-r4hndyft.css","assets/PeoplePage-CXPUpxwQ.js","assets/usePeople-Bf_1fYnb.js","assets/PeoplePage-B0YrHVv8.css","assets/PeopleDetailsPage-DU0KOzYc.js","assets/ContentSkeleton-B3HUs2qJ.js","assets/ContentSkeleton-DmpNDYQ_.css","assets/PublicationsPage-B3-jCY6E.js","assets/usePublication-lqh3pC7L.js","assets/PublicationsListSkeleton-CsPmy8kw.js","assets/PublicationsListSkeleton-B-A48nIP.css","assets/PublicationsPage-jq9WXjSD.css","assets/PublicationDetailsPage-C9lNv4hA.js","assets/PublicationDetailsPage-6ZRXTQG_.css","assets/IdeasForIndianCitiesPage-Bw8vWY_8.js","assets/IdeasForIndianCitiesPage-ConYHr3P.css","assets/EventsPage-M7TCawco.js","assets/useEvents-Cu4UusKt.js","assets/EventsPage-B4g4zt7U.css","assets/EventDetailsPage-CvRfuHrr.js","assets/EventDetailsPage-DXnb7cxr.css","assets/ContactPage-Bj7PeBAN.js","assets/ContactPage-DSjQGZPf.css","assets/CareersPage-BCrs_6Wk.js","assets/useCareer-CtL5w6I3.js","assets/CareersPage-DpIl2AZH.css","assets/CareersDetailsPage-Bx6cV7oN.js","assets/TermsAndConditionsPage-auXIc1Pe.js","assets/SearchPage-Du9UVAo8.js","assets/filter-search-icon-DarBSQO6.js","assets/SearchResultPage-ClghesGo.js","assets/SearchResultPage-D5FSgQF4.css","assets/ResourcesPage-CoZhYUnU.js","assets/ResourcesPage-DiQPfwb7.css","assets/ResourceDetailPage-BDJ8V-bU.js","assets/ResourceDetailPage-B9eP1LOP.css","assets/FiguresAndGroundsPage-DuLnqwkA.js","assets/PublicationsSearchPage-BF-ZwZbX.js","assets/PublicationsSearchPage-D6OW8Fib.css"])))=>i.map(i=>d[i]); 2function za(e,t){return function(){return e.apply(t,arguments)}}const{toString:mc}=Object.prototype,{getPrototypeOf:Qo}=Object,{iterator:Fn,toStringTag:Wa}=Symbol,Mn=(e=>t=>{const s=mc.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>Mn(t)===e),Nn=e=>t=>typeof t===e,{isArray:Ts}=Array,xs=Nn("undefined");function en(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&it(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ka=xt("ArrayBuffer");function hc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ka(e.buffer),t}const gc=Nn("string"),it=Nn("function"),Ga=Nn("number"),tn=e=>e!==null&&typeof e=="object",_c=e=>e===!0||e===!1,_n=e=>{if(Mn(e)!=="object")return!1;const t=Qo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wa in e)&&!(Fn in e)},vc=e=>{if(!tn(e)||en(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yc=xt("Date"),bc=xt("File"),wc=xt("Blob"),kc=xt("FileList"),xc=e=>tn(e)&&it(e.pipe),Ec=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||it(e.append)&&((t=Mn(e))==="formdata"||t==="object"&&it(e.toString)&&e.toString()==="[object FormData]"))},$c=xt("URLSearchParams"),[Sc,Cc,Tc,Ac]=["ReadableStream","Request","Response","Headers"].map(xt),Rc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),Ts(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(en(e))return;const a=s?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(n=0;n<o;n++)l=a[n],t.call(null,e[l],l,e)}}function Qa(e,t){if(en(e))return null;t=t.toLowerCase();const s=Object.keys(e);let n=s.length,r;for(;n-- >0;)if(r=s[n],t===r.toLowerCase())return r;return null}const us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ja=e=>!xs(e)&&e!==us;function Co(){const{caseless:e,skipUndefined:t}=Ja(this)&&this||{},s={},n=(r,a)=>{const o=e&&Qa(s,a)||a;_n(s[o])&&_n(r)?s[o]=Co(s[o],r):_n(r)?s[o]=Co({},r):Ts(r)?s[o]=r.slice():(!t||!xs(r))&&(s[o]=r)};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&sn(arguments[r],n);return s}const Pc=(e,t,s,{allOwnKeys:n}={})=>(sn(t,(r,a)=>{s&&it(r)?e[a]=za(r,s):e[a]=r},{allOwnKeys:n}),e),Ic=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dc=(e,t,s,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},Lc=(e,t,s,n)=>{let r,a,o;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;
2)o=r[a],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=s!==!1&&Qo(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},Oc=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;const n=e.indexOf(t,s);return n!==-1&&n===s},jc=e=>{if(!e)return null;if(Ts(e))return e;let t=e.length;if(!Ga(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},Fc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qo(Uint8Array)),Mc=(e,t)=>{const n=(e&&e[Fn]).call(e);let r;for(;(r=n.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},Nc=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},Uc=xt("HTMLFormElement"),Bc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,r){return n.toUpperCase()+r}),$r=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),Vc=xt("RegExp"),Ya=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};sn(s,(r,a)=>{let o;(o=t(r,a,e))!==!1&&(n[a]=o||r)}),Object.defineProperties(e,n)},Hc=e=>{Ya(e,(t,s)=>{if(it(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=e[s];if(it(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},qc=(e,t)=>{const s={},n=r=>{r.forEach(a=>{s[a]=!0})};return Ts(e)?n(e):n(String(e).split(t)),s},zc=()=>{},Wc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Kc(e){return!!(e&&it(e.append)&&e[Wa]==="FormData"&&e[Fn])}const Gc=e=>{const t=new Array(10),s=(n,r)=>{if(tn(n)){if(t.indexOf(n)>=0)return;if(en(n))return n;if(!("toJSON"in n)){t[r]=n;const a=Ts(n)?[]:{};return sn(n,(o,l)=>{const c=s(o,r+1);!xs(c)&&(a[l]=c)}),t[r]=void 0,a}}return n};return s(e,0)},Qc=xt("AsyncFunction"),Jc=e=>e&&(tn(e)||it(e))&&it(e.then)&&it(e.catch),Xa=((e,t)=>e?setImmediate:t?((s,n)=>(us.addEventListener("message",({source:r,data:a})=>{r===us&&a===s&&n.length&&n.shift()()},!1),r=>{n.push(r),us.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",it(us.postMessage)),Yc=typeof queueMicrotask<"u"?queueMicrotask.bind(us):typeof process<"u"&&process.nextTick||Xa,Xc=e=>e!=null&&it(e[Fn]),L={isArray:Ts,isArrayBuffer:Ka,isBuffer:en,isFormData:Ec,isArrayBufferView:hc,isString:gc,isNumber:Ga,isBoolean:_c,isObject:tn,isPlainObject:_n,isEmptyObject:vc,isReadableStream:Sc,isRequest:Cc,isResponse:Tc,isHeaders:Ac,isUndefined:xs,isDate:yc,isFile:bc,isBlob:wc,isRegExp:Vc,isFunction:it,isStream:xc,isURLSearchParams:$c,isTypedArray:Fc,isFileList:kc,forEach:sn,merge:Co,extend:Pc,trim:Rc,stripBOM:Ic,inherits:Dc,toFlatObject:Lc,kindOf:Mn,kindOfTest:xt,endsWith:Oc,toArray:jc,forEachEntry:Mc,matchAll:Nc,isHTMLForm:Uc,hasOwnProperty:$r,hasOwnProp:$r,reduceDescriptors:Ya,freezeMethods:Hc,toObjectSet:qc,toCamelCase:Bc,noop:zc,toFiniteNumber:Wc,findKey:Qa,global:us,isContextDefined:Ja,isSpecCompliantForm:Kc,toJSONObject:Gc,isAsyncFn:Qc,isThenable:Jc,setImmediate:Xa,asap:Yc,isIterable:Xc};function ve(e,t,s,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}L.inherits(ve,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:L.toJSONObject(this.config),code:this.code,status:this.status}}});const Za=ve.prototype,ei={};["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(e=>{ei[e]={value:e}});Object.defineProperties(ve,ei);Object.defineProperty(Za,"isAxiosError",{value:!0});ve.from=(e,t,s,n,r,a)=>{const o=Object.create(Za);L.toFlatObject(e,o,function(f){return f!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ve.call(o,l,c,s,n,r),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const Zc=null;function To(e){return L.isPlainObject(e)||L.isArray(e)}function ti(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}
vendor: 1,489 bytes, line 2
2function Sr(e,t,s){return e?e.concat(t).map(function(r,a){return r=ti(r),!s&&a?"["+r+"]":r}).join(s?".":""):t}function eu(e){return L.isArray(e)&&!e.some(To)}const tu=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Un(e,t,s){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=L.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!L.isUndefined(x[S])});const n=s.metaTokens,r=s.visitor||f,a=s.dots,o=s.indexes,c=(s.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(r))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(L.isDate(y))return y.toISOString();if(L.isBoolean(y))return y.toString();if(!c&&L.isBlob(y))throw new ve("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(y)||L.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,S,x){let E=y;if(y&&!x&&typeof y=="object"){if(L.endsWith(S,"{}"))S=n?S:S.slice(0,-2),y=JSON.stringify(y);else if(L.isArray(y)&&eu(y)||(L.isFileList(y)||L.endsWith(S,"[]"))&&(E=L.toArray(y)))return S=ti(S),E.forEach(function(U,B){!(L.isUndefined(U)||U===null)&&t.append(o===!0?Sr([S],B,a):o===null?S:S+"[]",d(U))}),!1}return To(y)?!0:(t.append(Sr(x,S,a),d(y)),!1)}const u=[],_=Object.assign(tu,{defaultVisitor:f,convertValue:d,isVisitable:To});function b(y,S){if(!L.isUndefined(y)){if(u.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));
vendor: 3,094 bytes, line 2
2u.push(y),L.forEach(y,function(E,j){(!(L.isUndefined(E)||E===null)&&r.call(t,E,L.isString(j)?j.trim():j,S,_))===!0&&b(E,S?S.concat(j):[j])}),u.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Cr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Jo(e,t){this._pairs=[],e&&Un(e,this,t)}const si=Jo.prototype;si.append=function(t,s){this._pairs.push([t,s])};si.toString=function(t){const s=t?function(n){return t.call(this,n,Cr)}:Cr;return this._pairs.map(function(r){return s(r[0])+"="+s(r[1])},"").join("&")};function su(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ni(e,t,s){if(!t)return e;const n=s&&s.encode||su;L.isFunction(s)&&(s={serialize:s});const r=s&&s.serialize;let a;if(r?a=r(t,s):a=L.isURLSearchParams(t)?t.toString():new Jo(t,s).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Tr{constructor(){this.handlers=[]}use(t,s,n){return this.handlers.push({fulfilled:t,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(n){n!==null&&t(n)})}}const oi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nu=typeof URLSearchParams<"u"?URLSearchParams:Jo,ou=typeof FormData<"u"?FormData:null,ru=typeof Blob<"u"?Blob:null,au={isBrowser:!0,classes:{URLSearchParams:nu,FormData:ou,Blob:ru},protocols:["http","https","file","blob","url","data"]},Yo=typeof window<"u"&&typeof document<"u",Ao=typeof navigator=="object"&&navigator||void 0,iu=Yo&&(!Ao||["ReactNative","NativeScript","NS"].indexOf(Ao.product)<0),lu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cu=Yo&&window.location.href||"http://localhost",uu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yo,hasStandardBrowserEnv:iu,hasStandardBrowserWebWorkerEnv:lu,navigator:Ao,origin:cu},Symbol.toStringTag,{value:"Module"})),Ye={...uu,...au};function du(e,t){return Un(e,new Ye.classes.URLSearchParams,{visitor:function(s,n,r,a){return Ye.isNode&&L.isBuffer(s)?(this.append(n,s.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function fu(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pu(e){const t={},s=Object.keys(e);let n;const r=s.length;let a;for(n=0;n<r;n++)a=s[n],t[a]=e[a];return t}function ri(e){function t(s,n,r,a){let o=s[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=a>=s.length;return o=!o&&L.isArray(r)?r.length:o,c?(L.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l):((!r[o]||!L.isObject(r[o]))&&(r[o]=[]),t(s,n,r[o],a)&&L.isArray(r[o])&&(r[o]=pu(r[o])),!l)}if(L.isFormData(e)&&L.isFunction(e.entries)){const s={};return L.forEachEntry(e,(n,r)=>{t(fu(n),r,s,0)}),s}return null}
vendor: 4,470 bytes, lines 2-3
2function mu(e,t,s){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const nn={transitional:oi,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const n=s.getContentType()||"",r=n.indexOf("application/json")>-1,a=L.isObject(t);if(a&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return r?JSON.stringify(ri(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return du(t,this.formSerializer).toString();if((l=L.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Un(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||r?(s.setContentType("application/json",!1),mu(t)):t}],transformResponse:[function(t){const s=this.transitional||nn.transitional,n=s&&s.forcedJSONParsing,r=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(n&&!this.responseType||r)){const o=!(s&&s.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?ve.from(l,ve.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{nn.headers[e]={}});const hu=L.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"]),gu=e=>{const t={};let s,n,r;return e&&e.split(` 3`).forEach(function(o){r=o.indexOf(":"),s=o.substring(0,r).trim().toLowerCase(),n=o.substring(r+1).trim(),!(!s||t[s]&&hu[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},Ar=Symbol("internals");function Ps(e){return e&&String(e).trim().toLowerCase()}function vn(e){return e===!1||e==null?e:L.isArray(e)?e.map(vn):String(e)}function _u(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}const vu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ro(e,t,s,n,r){if(L.isFunction(n))return n.call(this,t,s);if(r&&(t=s),!!L.isString(t)){if(L.isString(n))return t.indexOf(n)!==-1;if(L.isRegExp(n))return n.test(t)}}function yu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function bu(e,t){const s=L.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{value:function(r,a,o){return this[n].call(this,t,r,a,o)},configurable:!0})})}let lt=class{constructor(t){t&&this.set(t)}set(t,s,n){const r=this;function a(l,c,d){const f=Ps(c);if(!f)throw new Error("header name must be a non-empty string");const u=L.findKey(r,f);(!u||r[u]===void 0||d===!0||d===void 0&&r[u]!==!1)&&(r[u||c]=vn(l))}const o=(l,c)=>L.forEach(l,(d,f)=>a(d,f,c));if(L.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(L.isString(t)&&(t=t.trim())&&!vu(t))o(gu(t),s);else if(L.isObject(t)&&L.isIterable(t)){let l={},c,d;for(const f of t){if(!L.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[d=f[0]]=(c=l[d])?L.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}o(l,s)}else t!=null&&a(s,t,n);return this}get(t,s){if(t=Ps(t),t){const n=L.findKey(this,t);if(n){const r=this[n];if(!s)return r;if(s===!0)return _u(r);if(L.isFunction(s))return s.call(this,r,n);if(L.isRegExp(s))return s.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=Ps(t),t){const n=L.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||ro(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let r=!1;function a(o){if(o=Ps(o),o){const l=L.findKey(n,o);l&&(!s||ro(n,n[l],l,s))&&(delete n[l],r=!0)}}return L.isArray(t)?t.forEach(a):a(t),r}clear(t){const s=Object.keys(this);let n=s.length,r=!1;for(;n--;){const a=s[n];(!t||ro(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const s=this,n={};
vendor: 4,634 bytes, lines 3-4
3return L.forEach(this,(r,a)=>{const o=L.findKey(n,a);if(o){s[o]=vn(r),delete s[a];return}const l=t?yu(a):String(a).trim();l!==a&&delete s[a],s[l]=vn(r),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return L.forEach(this,(n,r)=>{n!=null&&n!==!1&&(s[r]=t&&L.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(` 4`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Ar]=this[Ar]={accessors:{}}).accessors,r=this.prototype;function a(o){const l=Ps(o);n[l]||(bu(r,o),n[l]=!0)}return L.isArray(t)?t.forEach(a):a(t),this}};lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(lt.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});L.freezeMethods(lt);function ao(e,t){const s=this||nn,n=t||s,r=lt.from(n.headers);let a=n.data;return L.forEach(e,function(l){a=l.call(s,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function ai(e){return!!(e&&e.__CANCEL__)}function As(e,t,s){ve.call(this,e??"canceled",ve.ERR_CANCELED,t,s),this.name="CanceledError"}L.inherits(As,ve,{__CANCEL__:!0});function ii(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new ve("Request failed with status code "+s.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function wu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ku(e,t){e=e||10;const s=new Array(e),n=new Array(e);let r=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=n[a];o||(o=d),s[r]=c,n[r]=d;let u=a,_=0;for(;u!==r;)_+=s[u++],u=u%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),d-o<t)return;const b=f&&d-f;return b?Math.round(_*1e3/b):void 0}}function xu(e,t){let s=0,n=1e3/t,r,a;const o=(d,f=Date.now())=>{s=f,r=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const f=Date.now(),u=f-s;u>=n?o(d,f):(r=d,a||(a=setTimeout(()=>{a=null,o(r)},n-u)))},()=>r&&o(r)]}const Sn=(e,t,s=3)=>{let n=0;const r=ku(50,250);return xu(a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,c=o-n,d=r(c),f=o<=l;n=o;const u={loaded:o,total:l,progress:l?o/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&f?(l-o)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(u)},s)},Rr=(e,t)=>{const s=e!=null;return[n=>t[0]({lengthComputable:s,total:e,loaded:n}),t[1]]},Pr=e=>(...t)=>L.asap(()=>e(...t)),Eu=Ye.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,Ye.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(Ye.origin),Ye.navigator&&/(msie|trident)/i.test(Ye.navigator.userAgent)):()=>!0,$u=Ye.hasStandardBrowserEnv?{write(e,t,s,n,r,a,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];L.isNumber(s)&&l.push(`expires=${new Date(s).toUTCString()}`),L.isString(n)&&l.push(`path=${n}`),L.isString(r)&&l.push(`domain=${r}`),a===!0&&l.push("secure"),L.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Su(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Cu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function li(e,t,s){let n=!Su(t);return e&&(n||s==!1)?Cu(e,t):t}const Ir=e=>e instanceof lt?{...e}:e;function ms(e,t){t=t||{};const s={};function n(d,f,u,_){return L.isPlainObject(d)&&L.isPlainObject(f)?L.merge.call({caseless:_},d,f):L.isPlainObject(f)?L.merge({},f):L.isArray(f)?f.slice():f}function r(d,f,u,_){if(L.isUndefined(f)){if(!L.isUndefined(d))return n(void 0,d,u,_)}else return n(d,f,u,_)}function a(d,f){if(!L.isUndefined(f))return n(void 0,f)}function o(d,f){if(L.isUndefined(f)){if(!L.isUndefined(d))return n(void 0,d)}else return n(void 0,f)}function l(d,f,u){if(u in t)return n(d,f);if(u in e)return n(void 0,d)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
vendor: 13,649 bytes, lines 4-7
4dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,f,u)=>r(Ir(d),Ir(f),u,!0)};return L.forEach(Object.keys({...e,...t}),function(f){const u=c[f]||r,_=u(e[f],t[f],f);L.isUndefined(_)&&u!==l||(s[f]=_)}),s}const ci=e=>{const t=ms({},e);let{data:s,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=lt.from(o),t.url=ni(li(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),L.isFormData(s)){if(Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(L.isFunction(s.getHeaders)){const c=s.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([f,u])=>{d.includes(f.toLowerCase())&&o.set(f,u)})}}if(Ye.hasStandardBrowserEnv&&(n&&L.isFunction(n)&&(n=n(t)),n||n!==!1&&Eu(t.url))){const c=r&&a&&$u.read(a);c&&o.set(r,c)}return t},Tu=typeof XMLHttpRequest<"u",Au=Tu&&function(e){return new Promise(function(s,n){const r=ci(e);let a=r.data;const o=lt.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=r,f,u,_,b,y;function S(){b&&b(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function E(){if(!x)return;const U=lt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),Y={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:U,config:e,request:x};ii(function(Z){s(Z),S()},function(Z){n(Z),S()},Y),x=null}"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},x.onabort=function(){x&&(n(new ve("Request aborted",ve.ECONNABORTED,e,x)),x=null)},x.onerror=function(B){const Y=B&&B.message?B.message:"Network Error",re=new ve(Y,ve.ERR_NETWORK,e,x);re.event=B||null,n(re),x=null},x.ontimeout=function(){let B=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const Y=r.transitional||oi;r.timeoutErrorMessage&&(B=r.timeoutErrorMessage),n(new ve(B,Y.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,x)),x=null},a===void 0&&o.setContentType(null),"setRequestHeader"in x&&L.forEach(o.toJSON(),function(B,Y){x.setRequestHeader(Y,B)}),L.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),l&&l!=="json"&&(x.responseType=r.responseType),d&&([_,y]=Sn(d,!0),x.addEventListener("progress",_)),c&&x.upload&&([u,b]=Sn(c),x.upload.addEventListener("progress",u),x.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(f=U=>{x&&(n(!U||U.type?new As(null,e,x):U),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const j=wu(r.url);if(j&&Ye.protocols.indexOf(j)===-1){n(new ve("Unsupported protocol "+j+":",ve.ERR_BAD_REQUEST,e));return}x.send(a||null)})},Ru=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let n=new AbortController,r;const a=function(d){if(!r){r=!0,l();const f=d instanceof Error?d:this.reason;n.abort(f instanceof ve?f:new As(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=n;return c.unsubscribe=()=>L.asap(l),c}},Pu=function*(e,t){let s=e.byteLength;if(s<t){yield e;return}let n=0,r;for(;n<s;)r=n+t,yield e.slice(n,r),n=r},Iu=async function*(e,t){for await(const s of Du(e))yield*Pu(s,t)},Du=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:s,value:n}=await t.read();if(s)break;yield n}}finally{await t.cancel()}},Dr=(e,t,s,n)=>{const r=Iu(e,t);let a=0,o,l=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await r.next();if(d){l(),c.close();return}let u=f.byteLength;if(s){let _=a+=u;s(_)}c.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Lr=64*1024,{isFunction:dn}=L,Lu=(({Request:e,Response:t})=>({Request:e,Response:t}))(L.global),{ReadableStream:Or,TextEncoder:jr}=L.global,Fr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ou=e=>{e=L.merge.call({skipUndefined:!0},Lu,e);const{fetch:t,Request:s,Response:n}=e,r=t?dn(t):typeof fetch=="function",a=dn(s),o=dn(n);if(!r)return!1;const l=r&&dn(Or),c=r&&(typeof jr=="function"?(y=>S=>y.encode(S))(new jr):async y=>new Uint8Array(await new s(y).arrayBuffer())),d=a&&l&&Fr(()=>{let y=!1;const S=new s(Ye.origin,{body:new Or,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),f=o&&l&&Fr(()=>L.isReadableStream(new n("").body)),u={stream:f&&(y=>y.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!u[y]&&(u[y]=(S,x)=>{let E=S&&S[y];if(E)return E.call(S);throw new ve(`Response type '${y}' is not supported`,ve.ERR_NOT_SUPPORT,x)})});const _=async y=>{if(y==null)return 0;if(L.isBlob(y))return y.size;if(L.isSpecCompliantForm(y))return(await new s(Ye.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(L.isArrayBufferView(y)||L.isArrayBuffer(y))return y.byteLength;if(L.isURLSearchParams(y)&&(y=y+""),L.isString(y))return(await c(y)).byteLength},b=async(y,S)=>{const x=L.toFiniteNumber(y.getContentLength());return x??_(S)};return async y=>{let{url:S,method:x,data:E,signal:j,cancelToken:U,timeout:B,onDownloadProgress:Y,onUploadProgress:re,responseType:Z,headers:fe,withCredentials:T="same-origin",fetchOptions:C}=ci(y),M=t||fetch;Z=Z?(Z+"").toLowerCase():"text";let A=Ru([j,U&&U.toAbortSignal()],B),G=null;const k=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let h;try{if(re&&d&&x!=="get"&&x!=="head"&&(h=await b(fe,E))!==0){let X=new s(S,{method:"POST",body:E,duplex:"half"}),ie;if(L.isFormData(E)&&(ie=X.headers.get("content-type"))&&fe.setContentType(ie),X.body){const[ye,Ce]=Rr(h,Sn(Pr(re)));E=Dr(X.body,Lr,ye,Ce)}}L.isString(T)||(T=T?"include":"omit");const p=a&&"credentials"in s.prototype,g={...C,signal:A,method:x.toUpperCase(),headers:fe.normalize().toJSON(),body:E,duplex:"half",credentials:p?T:void 0};G=a&&new s(S,g);let P=await(a?M(G,C):M(S,g));const O=f&&(Z==="stream"||Z==="response");if(f&&(Y||O&&k)){const X={};["status","statusText","headers"].forEach(De=>{X[De]=P[De]});const ie=L.toFiniteNumber(P.headers.get("content-length")),[ye,Ce]=Y&&Rr(ie,Sn(Pr(Y),!0))||[];P=new n(Dr(P.body,Lr,ye,()=>{Ce&&Ce(),k&&k()}),X)}Z=Z||"text";let z=await u[L.findKey(u,Z)||"text"](P,y);return!O&&k&&k(),await new Promise((X,ie)=>{ii(X,ie,{data:z,headers:lt.from(P.headers),status:P.status,statusText:P.statusText,config:y,request:G})})}catch(p){throw k&&k(),p&&p.name==="TypeError"&&/Load failed|fetch/i.test(p.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,y,G),{cause:p.cause||p}):ve.from(p,p&&p.code,y,G)}}},ju=new Map,ui=e=>{let t=e&&e.env||{};const{fetch:s,Request:n,Response:r}=t,a=[n,r,s];let o=a.length,l=o,c,d,f=ju;for(;l--;)c=a[l],d=f.get(c),d===void 0&&f.set(c,d=l?new Map:Ou(t)),f=d;return d};ui();const Xo={http:Zc,xhr:Au,fetch:{get:ui}};L.forEach(Xo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mr=e=>`- ${e}`,Fu=e=>L.isFunction(e)||e===null||e===!1;function Mu(e,t){e=L.isArray(e)?e:[e];const{length:s}=e;let n,r;const a={};for(let o=0;o<s;o++){n=e[o];let l;if(r=n,!Fu(n)&&(r=Xo[(l=String(n)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${l}'`);if(r&&(L.isFunction(r)||(r=r.get(t))))break;a[l||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=s?o.length>1?`since : 5`+o.map(Mr).join(` 6`):" "+Mr(o[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const di={getAdapter:Mu,adapters:Xo};function io(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new As(null,e)}function Nr(e){return io(e),e.headers=lt.from(e.headers),e.data=ao.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),di.getAdapter(e.adapter||nn.adapter,e)(e).then(function(n){return io(e),n.data=ao.call(e,e.transformResponse,n),n.headers=lt.from(n.headers),n},function(n){return ai(n)||(io(e),n&&n.response&&(n.response.data=ao.call(e,e.transformResponse,n.response),n.response.headers=lt.from(n.response.headers))),Promise.reject(n)})}const fi="1.13.0",Bn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ur={};Bn.transitional=function(t,s,n){function r(a,o){return"[Axios v"+fi+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,l)=>{if(t===!1)throw new ve(r(o," has been removed"+(s?" in "+s:"")),ve.ERR_DEPRECATED);return s&&!Ur[o]&&(Ur[o]=!0,console.warn(r(o," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(a,o,l):!0}};Bn.spelling=function(t){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Nu(e,t,s){if(typeof e!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const a=n[r],o=t[a];if(o){const l=e[a],c=l===void 0||o(l,a,e);if(c!==!0)throw new ve("option "+a+" must be "+c,ve.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ve("Unknown option "+a,ve.ERR_BAD_OPTION)}}const yn={assertOptions:Nu,validators:Bn},Ct=yn.validators;let fs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Tr,response:new Tr}}async request(t,s){try{return await this._request(t,s)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` 7`+a):n.stack=a}catch{}}throw n}}_request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=ms(this.defaults,s);const{transitional:n,paramsSerializer:r,headers:a}=s;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),r!=null&&(L.isFunction(r)?s.paramsSerializer={serialize:r}:yn.assertOptions(r,{encode:Ct.function,serialize:Ct.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),yn.assertOptions(s,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=a&&L.merge(a.common,a[s.method]);a&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),s.headers=lt.concat(o,a);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(s)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let f,u=0,_;if(!c){const y=[Nr.bind(this),void 0];for(y.unshift(...l),y.push(...d),_=y.length,f=Promise.resolve(s);u<_;)f=f.then(y[u++],y[u++]);return f}_=l.length;let b=s;for(;u<_;){const y=l[u++],S=l[u++];try{b=y(b)}catch(x){S.call(this,x);break}}try{f=Nr.call(this,b)}catch(y){return Promise.reject(y)}for(u=0,_=d.length;u<_;)f=f.then(d[u++],d[u++]);return f}getUri(t){t=ms(this.defaults,t);const s=li(t.baseURL,t.url,t.allowAbsoluteUrls);return ni(s,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){fs.prototype[t]=function(s,n){return this.request(ms(n||{},{method:t,url:s,data:(n||{}).data}))}});L.forEach(["post","put","patch"],function(t){function s(n){return function(a,o,l){return this.request(ms(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}fs.prototype[t]=s(),fs.prototype[t+"Form"]=s(!0)});let Uu=class pi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(a){s=a});const n=this;this.promise.then(r=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](r);n._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(l=>{n.subscribe(l),a=l}).then(r);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,l){n.reason||(n.reason=new As(a,o,l),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const t=new AbortController,s=n=>{t.abort(n)};return this.subscribe(s),t.signal.unsubscribe=()=>this.unsubscribe(s),t.signal}static source(){let t;return{token:new pi(function(r){t=r}),cancel:t}}};function Bu(e){return function(s){return e.apply(null,s)}}function Vu(e){return L.isObject(e)&&e.isAxiosError===!0}const Ro={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 2,195 bytes, lines 7-10
7alContent: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(Ro).forEach(([e,t])=>{Ro[t]=e});function mi(e){const t=new fs(e),s=za(fs.prototype.request,t);return L.extend(s,fs.prototype,t,{allOwnKeys:!0}),L.extend(s,t,null,{allOwnKeys:!0}),s.create=function(r){return mi(ms(e,r))},s}const Ue=mi(nn);Ue.Axios=fs;Ue.CanceledError=As;Ue.CancelToken=Uu;Ue.isCancel=ai;Ue.VERSION=fi;Ue.toFormData=Un;Ue.AxiosError=ve;Ue.Cancel=Ue.CanceledError;Ue.all=function(t){return Promise.all(t)};Ue.spread=Bu;Ue.isAxiosError=Vu;Ue.mergeConfig=ms;Ue.AxiosHeaders=lt;Ue.formToJSON=e=>ri(L.isHTMLForm(e)?new FormData(e):e);Ue.getAdapter=di.getAdapter;Ue.HttpStatusCode=Ro;Ue.default=Ue;const{Axios:_S,AxiosError:vS,CanceledError:yS,isCancel:bS,CancelToken:wS,VERSION:kS,all:xS,Cancel:ES,isAxiosError:$S,spread:SS,toFormData:CS,AxiosHeaders:TS,HttpStatusCode:AS,formToJSON:RS,getAdapter:PS,mergeConfig:IS}=Ue;window.axios=Ue;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";/** 8* @vue/shared v3.5.22 9* (c) 2018-present Yuxi (Evan) You and Vue contributors 10* @license MIT
vendor: 3,473 bytes, lines 11-14
11**/function Zo(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Oe={},vs=[],Pt=()=>{},hi=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),er=e=>e.startsWith("onUpdate:"),Ke=Object.assign,tr=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Hu=Object.prototype.hasOwnProperty,Re=(e,t)=>Hu.call(e,t),ue=Array.isArray,ys=e=>on(e)==="[object Map]",Hn=e=>on(e)==="[object Set]",Br=e=>on(e)==="[object Date]",ge=e=>typeof e=="function",Ve=e=>typeof e=="string",It=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",gi=e=>(Le(e)||ge(e))&&ge(e.then)&&ge(e.catch),_i=Object.prototype.toString,on=e=>_i.call(e),qu=e=>on(e).slice(8,-1),vi=e=>on(e)==="[object Object]",sr=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=Zo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qn=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},zu=/-\w/g,_t=qn(e=>e.replace(zu,t=>t.slice(1).toUpperCase())),Wu=/\B([A-Z])/g,ss=qn(e=>e.replace(Wu,"-$1").toLowerCase()),zn=qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),lo=qn(e=>e?`on${zn(e)}`:""),Zt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},yi=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Po=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ku=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let Vr;const Wn=()=>Vr||(Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vt(e){if(ue(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Ve(n)?Yu(n):vt(n);if(r)for(const a in r)t[a]=r[a]}return t}else if(Ve(e)||Le(e))return e}const Gu=/;(?![^(]*\))/g,Qu=/:([^]+)/,Ju=/\/\*[^]*?\*\//g;function Yu(e){const t={};return e.replace(Ju,"").split(Gu).forEach(s=>{if(s){const n=s.split(Qu);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ne(e){let t="";if(Ve(e))t=e;else if(ue(e))for(let s=0;s<e.length;s++){const n=Ne(e[s]);n&&(t+=n+" ")}else if(Le(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Xu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zu=Zo(Xu);function bi(e){return!!e||e===""}function ed(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Es(e[n],t[n]);return s}function Es(e,t){if(e===t)return!0;let s=Br(e),n=Br(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=It(e),n=It(t),s||n)return e===t;if(s=ue(e),n=ue(t),s||n)return s&&n?ed(e,t):!1;if(s=Le(e),n=Le(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,a=Object.keys(t).length;if(r!==a)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Es(e[o],t[o]))return!1}}return String(e)===String(t)}function wi(e,t){return e.findIndex(s=>Es(s,t))}const ki=e=>!!(e&&e.__v_isRef===!0),R=e=>Ve(e)?e:e==null?"":ue(e)||Le(e)&&(e.toString===_i||!ge(e.toString))?ki(e)?R(e.value):JSON.stringify(e,xi,2):String(e),xi=(e,t)=>ki(t)?xi(e,t.value):ys(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],a)=>(s[co(n,a)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>co(s))}:It(t)?co(t):Le(t)&&!ue(t)&&!vi(t)?String(t):t,co=(e,t="")=>{var s;return It(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** 12* @vue/reactivity v3.5.22 13* (c) 2018-present Yuxi (Evan) You and Vue contributors 14* @license MIT
vendor: 5,186 bytes, line 15
15**/let at;class td{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=at,!t&&at&&(this.index=(at.scopes||(at.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=at;try{return at=this,t()}finally{at=s}}}on(){++this._on===1&&(this.prevScope=at,at=this)}off(){this._on>0&&--this._on===0&&(at=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function sd(){return at}let Fe;const uo=new WeakSet;class Ei{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,at&&at.active&&at.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,uo.has(this)&&(uo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Si(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Hr(this),Ci(this);const t=Fe,s=yt;Fe=this,yt=!0;try{return this.fn()}finally{Ti(this),Fe=t,yt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rr(t);this.deps=this.depsTail=void 0,Hr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?uo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Io(this)&&this.run()}get dirty(){return Io(this)}}let $i=0,Ns,Us;function Si(e,t=!1){if(e.flags|=8,t){e.next=Us,Us=e;return}e.next=Ns,Ns=e}function nr(){$i++}function or(){if(--$i>0)return;if(Us){let t=Us;for(Us=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ns;){let t=Ns;for(Ns=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ci(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ti(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),rr(n),nd(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Io(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ai(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ai(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ws)||(e.globalVersion=Ws,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Io(e))))return;e.flags|=2;const t=e.dep,s=Fe,n=yt;Fe=e,yt=!0;try{Ci(e);const r=e.fn(e._value);(t.version===0||Zt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Fe=s,yt=n,Ti(e),e.flags&=-3}}function rr(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let a=s.computed.deps;a;a=a.nextDep)rr(a,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function nd(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let yt=!0;const Ri=[];function Ht(){Ri.push(yt),yt=!1}function qt(){const e=Ri.pop();yt=e===void 0?!0:e}function Hr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Fe;Fe=void 0;try{t()}finally{Fe=s}}}let Ws=0;class od{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ar{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Fe||!yt||Fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Fe)s=this.activeLink=new od(Fe,this),Fe.deps?(s.prevDep=Fe.depsTail,Fe.depsTail.nextDep=s,Fe.depsTail=s):Fe.deps=Fe.depsTail=s,Pi(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Fe.depsTail,s.nextDep=void 0,Fe.depsTail.nextDep=s,Fe.depsTail=s,Fe.deps===s&&(Fe.deps=n)}return s}trigger(t){this.version++,Ws++,this.notify(t)}notify(t){nr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{or()}}}function Pi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Pi(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Do=new WeakMap,ps=Symbol(""),Lo=Symbol(""),Ks=Symbol("");
vendor: 10,657 bytes, lines 15-18
15function Je(e,t,s){if(yt&&Fe){let n=Do.get(e);n||Do.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new ar),r.map=n,r.key=s),r.track()}}function Mt(e,t,s,n,r,a){const o=Do.get(e);if(!o){Ws++;return}const l=c=>{c&&c.trigger()};if(nr(),t==="clear")o.forEach(l);else{const c=ue(e),d=c&&sr(s);if(c&&s==="length"){const f=Number(n);o.forEach((u,_)=>{(_==="length"||_===Ks||!It(_)&&_>=f)&&l(u)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Ks)),t){case"add":c?d&&l(o.get("length")):(l(o.get(ps)),ys(e)&&l(o.get(Lo)));break;case"delete":c||(l(o.get(ps)),ys(e)&&l(o.get(Lo)));break;case"set":ys(e)&&l(o.get(ps));break}}or()}function hs(e){const t=Te(e);return t===e?t:(Je(t,"iterate",Ks),ht(e)?t:t.map(Ge))}function Kn(e){return Je(e=Te(e),"iterate",Ks),e}const rd={__proto__:null,[Symbol.iterator](){return fo(this,Symbol.iterator,Ge)},concat(...e){return hs(this).concat(...e.map(t=>ue(t)?hs(t):t))},entries(){return fo(this,"entries",e=>(e[1]=Ge(e[1]),e))},every(e,t){return Dt(this,"every",e,t,void 0,arguments)},filter(e,t){return Dt(this,"filter",e,t,s=>s.map(Ge),arguments)},find(e,t){return Dt(this,"find",e,t,Ge,arguments)},findIndex(e,t){return Dt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Dt(this,"findLast",e,t,Ge,arguments)},findLastIndex(e,t){return Dt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Dt(this,"forEach",e,t,void 0,arguments)},includes(...e){return po(this,"includes",e)},indexOf(...e){return po(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return po(this,"lastIndexOf",e)},map(e,t){return Dt(this,"map",e,t,void 0,arguments)},pop(){return Is(this,"pop")},push(...e){return Is(this,"push",e)},reduce(e,...t){return qr(this,"reduce",e,t)},reduceRight(e,...t){return qr(this,"reduceRight",e,t)},shift(){return Is(this,"shift")},some(e,t){return Dt(this,"some",e,t,void 0,arguments)},splice(...e){return Is(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return Is(this,"unshift",e)},values(){return fo(this,"values",Ge)}};function fo(e,t,s){const n=Kn(e),r=n[t]();return n!==e&&!ht(e)&&(r._next=r.next,r.next=()=>{const a=r._next();return a.done||(a.value=s(a.value)),a}),r}const ad=Array.prototype;function Dt(e,t,s,n,r,a){const o=Kn(e),l=o!==e&&!ht(e),c=o[t];if(c!==ad[t]){const u=c.apply(e,a);return l?Ge(u):u}let d=s;o!==e&&(l?d=function(u,_){return s.call(this,Ge(u),_,e)}:s.length>2&&(d=function(u,_){return s.call(this,u,_,e)}));const f=c.call(o,d,n);return l&&r?r(f):f}function qr(e,t,s,n){const r=Kn(e);let a=s;return r!==e&&(ht(e)?s.length>3&&(a=function(o,l,c){return s.call(this,o,l,c,e)}):a=function(o,l,c){return s.call(this,o,Ge(l),c,e)}),r[t](a,...n)}function po(e,t,s){const n=Te(e);Je(n,"iterate",Ks);const r=n[t](...s);return(r===-1||r===!1)&&cr(s[0])?(s[0]=Te(s[0]),n[t](...s)):r}function Is(e,t,s=[]){Ht(),nr();const n=Te(e)[t].apply(e,s);return or(),qt(),n}const id=Zo("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(It));function ld(e){It(e)||(e=String(e));const t=Te(this);return Je(t,"has",e),t.hasOwnProperty(e)}class Di{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,a=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return a;if(s==="__v_raw")return n===(r?a?vd:Fi:a?ji:Oi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ue(t);if(!r){let c;if(o&&(c=rd[s]))return c;if(s==="hasOwnProperty")return ld}const l=Reflect.get(t,s,Ze(t)?t:n);if((It(s)?Ii.has(s):id(s))||(r||Je(t,"get",s),a))return l;if(Ze(l)){const c=o&&sr(s)?l:l.value;return r&&Le(c)?jo(c):c}return Le(l)?r?jo(l):Gn(l):l}}class Li extends Di{constructor(t=!1){super(!1,t)}set(t,s,n,r){let a=t[s];if(!this._isShallow){const c=es(a);if(!ht(n)&&!es(n)&&(a=Te(a),n=Te(n)),!ue(t)&&Ze(a)&&!Ze(n))return c||(a.value=n),!0}const o=ue(t)&&sr(s)?Number(s)<t.length:Re(t,s),l=Reflect.set(t,s,n,Ze(t)?t:r);return t===Te(r)&&(o?Zt(n,a)&&Mt(t,"set",s,n):Mt(t,"add",s,n)),l}deleteProperty(t,s){const n=Re(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Mt(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!It(s)||!Ii.has(s))&&Je(t,"has",s),n}ownKeys(t){return Je(t,"iterate",ue(t)?"length":ps),Reflect.ownKeys(t)}}class cd extends Di{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ud=new Li,dd=new cd,fd=new Li(!0);const Oo=e=>e,fn=e=>Reflect.getPrototypeOf(e);function pd(e,t,s){return function(...n){const r=this.__v_raw,a=Te(r),o=ys(a),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=r[e](...n),f=s?Oo:t?Cn:Ge;return!t&&Je(a,"iterate",c?Lo:ps),{next(){const{value:u,done:_}=d.next();return _?{value:u,done:_}:{value:l?[f(u[0]),f(u[1])]:f(u),done:_}},[Symbol.iterator](){return this}}}}function pn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function md(e,t){const s={get(r){const a=this.__v_raw,o=Te(a),l=Te(r);e||(Zt(r,l)&&Je(o,"get",r),Je(o,"get",l));const{has:c}=fn(o),d=t?Oo:e?Cn:Ge;if(c.call(o,r))return d(a.get(r));if(c.call(o,l))return d(a.get(l));a!==o&&a.get(r)},get size(){const r=this.__v_raw;return!e&&Je(Te(r),"iterate",ps),r.size},has(r){const a=this.__v_raw,o=Te(a),l=Te(r);return e||(Zt(r,l)&&Je(o,"has",r),Je(o,"has",l)),r===l?a.has(r):a.has(r)||a.has(l)},forEach(r,a){const o=this,l=o.__v_raw,c=Te(l),d=t?Oo:e?Cn:Ge;return!e&&Je(c,"iterate",ps),l.forEach((f,u)=>r.call(a,d(f),d(u),o))}};return Ke(s,e?{add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear")}:{add(r){!t&&!ht(r)&&!es(r)&&(r=Te(r));const a=Te(this);return fn(a).has.call(a,r)||(a.add(r),Mt(a,"add",r,r)),this},set(r,a){!t&&!ht(a)&&!es(a)&&(a=Te(a));const o=Te(this),{has:l,get:c}=fn(o);let d=l.call(o,r);d||(r=Te(r),d=l.call(o,r));const f=c.call(o,r);return o.set(r,a),d?Zt(a,f)&&Mt(o,"set",r,a):Mt(o,"add",r,a),this},delete(r){const a=Te(this),{has:o,get:l}=fn(a);let c=o.call(a,r);c||(r=Te(r),c=o.call(a,r)),l&&l.call(a,r);const d=a.delete(r);return c&&Mt(a,"delete",r,void 0),d},clear(){const r=Te(this),a=r.size!==0,o=r.clear();return a&&Mt(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=pd(r,e,t)}),s}function ir(e,t){const s=md(e,t);return(n,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Re(s,r)&&r in n?s:n,r,a)}const hd={get:ir(!1,!1)},gd={get:ir(!1,!0)},_d={get:ir(!0,!1)};const Oi=new WeakMap,ji=new WeakMap,Fi=new WeakMap,vd=new WeakMap;function yd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bd(e){return e.__v_skip||!Object.isExtensible(e)?0:yd(qu(e))}function Gn(e){return es(e)?e:lr(e,!1,ud,hd,Oi)}function Mi(e){return lr(e,!1,fd,gd,ji)}function jo(e){return lr(e,!0,dd,_d,Fi)}function lr(e,t,s,n,r){if(!Le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=bd(e);if(a===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,a===2?n:s);return r.set(e,l),l}function bs(e){return es(e)?bs(e.__v_raw):!!(e&&e.__v_isReactive)}function es(e){return!!(e&&e.__v_isReadonly)}function ht(e){return!!(e&&e.__v_isShallow)}function cr(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function wd(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&yi(e,"__v_skip",!0),e}const Ge=e=>Le(e)?Gn(e):e,Cn=e=>Le(e)?jo(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function K(e){return Ni(e,!1)}function kd(e){return Ni(e,!0)}function Ni(e,t){return Ze(e)?e:new xd(e,t)}class xd{constructor(t,s){this.dep=new ar,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Te(t),this._value=s?t:Ge(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ht(t)||es(t);t=n?t:Te(t),Zt(t,s)&&(this._rawValue=t,this._value=n?t:Ge(t),this.dep.trigger())}}function D(e){return Ze(e)?e.value:e}const Ed={get:(e,t,s)=>t==="__v_raw"?e:D(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Ze(r)&&!Ze(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Ui(e){return bs(e)?e:new Proxy(e,Ed)}class $d{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ar(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ws-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return Si(this,!0),!0}get value(){const t=this.dep.track();return Ai(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sd(e,t,s=!1){let n,r;return ge(e)?n=e:(n=e.get,r=e.set),new $d(n,r,s)}const mn={},Tn=new WeakMap;let ls;function Cd(e,t=!1,s=ls){if(s){let n=Tn.get(s);n||Tn.set(s,n=[]),n.push(e)}}function Td(e,t,s=Oe){const{immediate:n,deep:r,once:a,scheduler:o,augmentJob:l,call:c}=s,d=B=>r?B:ht(B)||r===!1||r===0?Nt(B,1):Nt(B);let f,u,_,b,y=!1,S=!1;if(Ze(e)?(u=()=>e.value,y=ht(e)):bs(e)?(u=()=>d(e),y=!0):ue(e)?(S=!0,y=e.some(B=>bs(B)||ht(B)),u=()=>e.map(B=>{if(Ze(B))return B.value;if(bs(B))return d(B);if(ge(B))return c?c(B,2):B()})):ge(e)?t?u=c?()=>c(e,2):e:u=()=>{if(_){Ht();try{_()}finally{qt()}}const B=ls;ls=f;try{return c?c(e,3,[b]):e(b)}finally{ls=B}}:u=Pt,t&&r){const B=u,Y=r===!0?1/0:r;u=()=>Nt(B(),Y)}const x=sd(),E=()=>{f.stop(),x&&x.active&&tr(x.effects,f)};if(a&&t){const B=t;t=(...Y)=>{B(...Y),E()}}let j=S?new Array(e.length).fill(mn):mn;const U=B=>{if(!(!(f.flags&1)||!f.dirty&&!B))if(t){const Y=f.run();if(r||y||(S?Y.some((re,Z)=>Zt(re,j[Z])):Zt(Y,j))){_&&_();const re=ls;ls=f;try{const Z=[Y,j===mn?void 0:S&&j[0]===mn?[]:j,b];j=Y,c?c(t,3,Z):t(...Z)}finally{ls=re}}}else f.run()};return l&&l(U),f=new Ei(u),f.scheduler=o?()=>o(U,!1):U,b=B=>Cd(B,!1,f),_=f.onStop=()=>{const B=Tn.get(f);if(B){if(c)c(B,4);else for(const Y of B)Y();Tn.delete(f)}},t?n?U(!0):j=f.run():o?o(U.bind(null,!0),!0):f.run(),E.pause=f.pause.bind(f),E.resume=f.resume.bind(f),E.stop=E,E}function Nt(e,t=1/0,s){if(t<=0||!Le(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ze(e))Nt(e.value,t,s);else if(ue(e))for(let n=0;n<e.length;n++)Nt(e[n],t,s);else if(Hn(e)||ys(e))e.forEach(n=>{Nt(n,t,s)});else if(vi(e)){for(const n in e)Nt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Nt(e[n],t,s)}return e}/** 16* @vue/runtime-core v3.5.22 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/function rn(e,t,s,n){try{return n?e(...n):e()}catch(r){Qn(r,t,s)}}function wt(e,t,s,n){if(ge(e)){const r=rn(e,t,s,n);return r&&gi(r)&&r.catch(a=>{Qn(a,t,s)}),r}if(ue(e)){const r=[];for(let a=0;a<e.length;a++)r.push(wt(e[a],t,s,n));return r}}function Qn(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Oe;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,c,d)===!1)return}l=l.parent}if(a){Ht(),rn(a,null,10,[e,c,d]),qt();return}}Ad(e,s,r,n,o)}function Ad(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const st=[];let At=-1;const ws=[];let Qt=null,gs=0;const Bi=Promise.resolve();let An=null;function Me(e){const t=An||Bi;return e?t.then(this?e.bind(this):e):t}function Rd(e){let t=At+1,s=st.length;for(;t<s;){const n=t+s>>>1,r=st[n],a=Gs(r);a<e||a===e&&r.flags&2?t=n+1:s=n}return t}function ur(e){if(!(e.flags&1)){const t=Gs(e),s=st[st.length-1];!s||!(e.flags&2)&&t>=Gs(s)?st.push(e):st.splice(Rd(t),0,e),e.flags|=1,Vi()}}function Vi(){An||(An=Bi.then(qi))}function Pd(e){ue(e)?ws.push(...e):Qt&&e.id===-1?Qt.splice(gs+1,0,e):e.flags&1||(ws.push(e),e.flags|=1),Vi()}function zr(e,t,s=At+1){for(;s<st.length;s++){const n=st[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;st.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Hi(e){if(ws.length){const t=[...new Set(ws)].sort((s,n)=>Gs(s)-Gs(n));if(ws.length=0,Qt){Qt.push(...t);return}for(Qt=t,gs=0;gs<Qt.length;gs++){const s=Qt[gs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Qt=null,gs=0}}const Gs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qi(e){try{for(At=0;At<st.length;At++){const t=st[At];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;At<st.length;At++){const t=st[At];t&&(t.flags&=-2)}At=-1,st.length=0,Hi(),An=null,(st.length||ws.length)&&qi()}}let dt=null,zi=null;function Rn(e){const t=dt;return dt=e,zi=e&&e.type.__scopeId||null,t}function we(e,t=dt,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Dn(-1);const a=Rn(t);let o;try{o=e(...r)}finally{Rn(a),n._d&&Dn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function he(e,t){if(dt===null)return e;const s=eo(dt),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[a,o,l,c=Oe]=t[r];a&&(ge(a)&&(a={mounted:a,updated:a}),a.deep&&Nt(o),n.push({dir:a,instance:s,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function os(e,t,s,n){const r=e.dirs,a=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];a&&(l.oldValue=a[o].value);let c=l.dir[n];c&&(Ht(),wt(c,s,8,[e.el,l,e,t]),qt())}}const Id=Symbol("_vte"),Wi=e=>e.__isTeleport,Ft=Symbol("_leaveCb"),hn=Symbol("_enterCb");function Dd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),tl(()=>{e.isUnmounting=!0}),e}const mt=[Function,Array],Ki={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mt,onEnter:mt,onAfterEnter:mt,onEnterCancelled:mt,onBeforeLeave:mt,onLeave:mt,onAfterLeave:mt,onLeaveCancelled:mt,onBeforeAppear:mt,onAppear:mt,onAfterAppear:mt,onAppearCancelled:mt},Gi=e=>{const t=e.subTree;return t.component?Gi(t.component):t},Ld={name:"BaseTransition",props:Ki,setup(e,{slots:t}){const s=El(),n=Dd();return()=>{const r=t.default&&Yi(t.default(),!0);if(!r||!r.length)return;const a=Qi(r),o=Te(e),{mode:l}=o;if(n.isLeaving)return mo(a);const c=Wr(a);if(!c)return mo(a);let d=Fo(c,o,n,s,u=>d=u);c.type!==nt&&Qs(c,d);let f=s.subTree&&Wr(s.subTree);if(f&&f.type!==nt&&!cs(f,c)&&Gi(s).type!==nt){let u=Fo(f,o,n,s);if(Qs(f,u),l==="out-in"&&c.type!==nt)return n.isLeaving=!0,u.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete u.afterLeave,f=void 0},mo(a);l==="in-out"&&c.type!==nt?u.delayLeave=(_,b,y)=>{const S=Ji(n,f);S[String(f.key)]=f,_[Ft]=()=>{b(),_[Ft]=void 0,delete d.delayedLeave,f=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function Qi(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==nt){t=s;break}}return t}const Od=Ld;
vendor: 2,529 bytes, line 19
19function Ji(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Fo(e,t,s,n,r){const{appear:a,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:f,onEnterCancelled:u,onBeforeLeave:_,onLeave:b,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:x,onAppear:E,onAfterAppear:j,onAppearCancelled:U}=t,B=String(e.key),Y=Ji(s,e),re=(T,C)=>{T&&wt(T,n,9,C)},Z=(T,C)=>{const M=C[1];re(T,C),ue(T)?T.every(A=>A.length<=1)&&M():T.length<=1&&M()},fe={mode:o,persisted:l,beforeEnter(T){let C=c;if(!s.isMounted)if(a)C=x||c;else return;T[Ft]&&T[Ft](!0);const M=Y[B];M&&cs(e,M)&&M.el[Ft]&&M.el[Ft](),re(C,[T])},enter(T){let C=d,M=f,A=u;if(!s.isMounted)if(a)C=E||d,M=j||f,A=U||u;else return;let G=!1;const k=T[hn]=h=>{G||(G=!0,h?re(A,[T]):re(M,[T]),fe.delayedLeave&&fe.delayedLeave(),T[hn]=void 0)};C?Z(C,[T,k]):k()},leave(T,C){const M=String(e.key);if(T[hn]&&T[hn](!0),s.isUnmounting)return C();re(_,[T]);let A=!1;const G=T[Ft]=k=>{A||(A=!0,C(),k?re(S,[T]):re(y,[T]),T[Ft]=void 0,Y[M]===e&&delete Y[M])};Y[M]=e,b?Z(b,[T,G]):G()},clone(T){const C=Fo(T,t,s,n,r);return r&&r(C),C}};return fe}function mo(e){if(Jn(e))return e=ts(e),e.children=null,e}function Wr(e){if(!Jn(e))return Wi(e.type)&&e.children?Qi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&ge(s.default))return s.default()}}function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Yi(e,t=!1,s){let n=[],r=0;for(let a=0;a<e.length;a++){let o=e[a];const l=s==null?o.key:String(s)+String(o.key!=null?o.key:a);o.type===ae?(o.patchFlag&128&&r++,n=n.concat(Yi(o.children,t,l))):(t||o.type!==nt)&&n.push(l!=null?ts(o,{key:l}):o)}if(r>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function Xi(e,t){return ge(e)?Ke({name:e.name},t,{setup:e}):e}function Zi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Pn=new WeakMap;function Bs(e,t,s,n,r=!1){if(ue(e)){e.forEach((y,S)=>Bs(y,t&&(ue(t)?t[S]:t),s,n,r));return}if(Vs(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Bs(e,t,s,n.component.subTree);return}const a=n.shapeFlag&4?eo(n.component):n.el,o=r?null:a,{i:l,r:c}=e,d=t&&t.r,f=l.refs===Oe?l.refs={}:l.refs,u=l.setupState,_=Te(u),b=u===Oe?hi:y=>Re(_,y);if(d!=null&&d!==c){if(Kr(t),Ve(d))f[d]=null,b(d)&&(u[d]=null);else if(Ze(d)){d.value=null;const y=t;
vendor: 5,062 bytes, line 19
19y.k&&(f[y.k]=null)}}if(ge(c))rn(c,l,12,[o,f]);else{const y=Ve(c),S=Ze(c);if(y||S){const x=()=>{if(e.f){const E=y?b(c)?u[c]:f[c]:c.value;if(r)ue(E)&&tr(E,a);else if(ue(E))E.includes(a)||E.push(a);else if(y)f[c]=[a],b(c)&&(u[c]=f[c]);else{const j=[a];c.value=j,e.k&&(f[e.k]=j)}}else y?(f[c]=o,b(c)&&(u[c]=o)):S&&(c.value=o,e.k&&(f[e.k]=o))};if(o){const E=()=>{x(),Pn.delete(e)};E.id=-1,Pn.set(e,E),ut(E,s)}else Kr(e),x()}}}function Kr(e){const t=Pn.get(e);t&&(t.flags|=8,Pn.delete(e))}Wn().requestIdleCallback;Wn().cancelIdleCallback;const Vs=e=>!!e.type.__asyncLoader,Jn=e=>e.type.__isKeepAlive;function jd(e,t){el(e,"a",t)}function Fd(e,t){el(e,"da",t)}function el(e,t,s=Xe){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Yn(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Jn(r.parent.vnode)&&Md(n,t,s,r),r=r.parent}}function Md(e,t,s,n){const r=Yn(t,e,n,!0);an(()=>{tr(n[t],r)},s)}function Yn(e,t,s=Xe,n=!1){if(s){const r=s[e]||(s[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Ht();const l=ln(s),c=wt(t,s,e,o);return l(),qt(),c});return n?r.unshift(a):r.push(a),a}}const Wt=e=>(t,s=Xe)=>{(!Ys||e==="sp")&&Yn(e,(...n)=>t(...n),s)},Nd=Wt("bm"),Qe=Wt("m"),Ud=Wt("bu"),Bd=Wt("u"),tl=Wt("bum"),an=Wt("um"),Vd=Wt("sp"),Hd=Wt("rtg"),qd=Wt("rtc");function zd(e,t=Xe){Yn("ec",e,t)}const sl="components";function dr(e,t){return ol(sl,e,!0,t)||e}const nl=Symbol.for("v-ndc");function DS(e){return Ve(e)?ol(sl,e,!1)||e:e||nl}function ol(e,t,s=!0,n=!1){const r=dt||Xe;if(r){const a=r.type;{const l=Df(a,!1);if(l&&(l===t||l===_t(t)||l===zn(_t(t))))return a}const o=Gr(r[e]||a[e],t)||Gr(r.appContext[e],t);return!o&&n?a:o}}function Gr(e,t){return e&&(e[t]||e[_t(t)]||e[zn(_t(t))])}function xe(e,t,s,n){let r;const a=s,o=ue(e);if(o||Ve(e)){const l=o&&bs(e);let c=!1,d=!1;l&&(c=!ht(e),d=es(e),e=Kn(e)),r=new Array(e.length);for(let f=0,u=e.length;f<u;f++)r[f]=t(c?d?Cn(Ge(e[f])):Ge(e[f]):e[f],f,void 0,a)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,a)}else if(Le(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,a));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const f=l[c];r[c]=t(e[f],f,c,a)}}else r=[];return r}const Mo=e=>e?$l(e)?eo(e):Mo(e.parent):null,Hs=Ke(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mo(e.parent),$root:e=>Mo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>al(e),$forceUpdate:e=>e.f||(e.f=()=>{ur(e.update)}),$nextTick:e=>e.n||(e.n=Me.bind(e.proxy)),$watch:e=>pf.bind(e)}),ho=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Re(e,t),Wd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:a,accessCache:o,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return a[t]}else{if(ho(n,t))return o[t]=1,n[t];if(r!==Oe&&Re(r,t))return o[t]=2,r[t];if((d=e.propsOptions[0])&&Re(d,t))return o[t]=3,a[t];if(s!==Oe&&Re(s,t))return o[t]=4,s[t];No&&(o[t]=0)}}const f=Hs[t];let u,_;if(f)return t==="$attrs"&&Je(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==Oe&&Re(s,t))return o[t]=4,s[t];if(_=c.config.globalProperties,Re(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:a}=e;return ho(r,t)?(r[t]=s,!0):n!==Oe&&Re(n,t)?(n[t]=s,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:a,type:o}},l){let c,d;return!!(s[l]||e!==Oe&&l[0]!=="$"&&Re(e,l)||ho(t,l)||(c=a[0])&&Re(c,l)||Re(n,l)||Re(Hs,l)||Re(r.config.globalProperties,l)||(d=o.__cssModules)&&d[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Re(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Qr(e){return ue(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let No=!0;function Kd(e){const t=al(e),s=e.proxy,n=e.ctx;No=!1,t.beforeCreate&&Jr(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:o,watch:l,provide:c,inject:d,created:f,beforeMount:u,mounted:_,beforeUpdate:b,updated:y,activated:S,deactivated:x,beforeDestroy:E,beforeUnmount:j,destroyed:U,unmounted:B,render:Y,renderTracked:re,renderTriggered:Z,errorCaptured:fe,serverPrefetch:T,expose:C,inheritAttrs:M,components:A,directives:G,filters:k}=t;if(d&&Gd(d,n,null),o)for(const g in o){const P=o[g];ge(P)&&(n[g]=P.bind(s))}if(r){const g=r.call(s,s);Le(g)&&(e.data=Gn(g))}if(No=!0,a)for(const g in a){const P=a[g],O=ge(P)?P.bind(s,s):ge(P.get)?P.get.bind(s,s):Pt,z=!ge(P)&&ge(P.set)?P.set.bind(s):Pt,X=pe({get:O,set:z});Object.defineProperty(n,g,{enumerable:!0,configurable:!0,get:()=>X.value,set:ie=>X.value=ie})}if(l)for(const g in l)rl(l[g],n,s,g);if(c){const g=ge(c)?c.call(s):c;Reflect.ownKeys(g).forEach(P=>{wn(P,g[P])})}f&&Jr(f,e,"c");function p(g,P){ue(P)?P.forEach(O=>g(O.bind(s))):P&&g(P.bind(s))}if(p(Nd,u),p(Qe,_),p(Ud,b),p(Bd,y),p(jd,S),p(Fd,x),p(zd,fe),p(qd,re),p(Hd,Z),p(tl,j),p(an,B),p(Vd,T),ue(C))if(C.length){const g=e.exposed||(e.exposed={});
vendor: 4,852 bytes, line 19
19C.forEach(P=>{Object.defineProperty(g,P,{get:()=>s[P],set:O=>s[P]=O,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Pt&&(e.render=Y),M!=null&&(e.inheritAttrs=M),A&&(e.components=A),G&&(e.directives=G),T&&Zi(e)}function Gd(e,t,s=Pt){ue(e)&&(e=Uo(e));for(const n in e){const r=e[n];let a;Le(r)?"default"in r?a=bt(r.from||n,r.default,!0):a=bt(r.from||n):a=bt(r),Ze(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function Jr(e,t,s){wt(ue(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function rl(e,t,s,n){let r=n.includes(".")?yl(s,n):()=>s[n];if(Ve(e)){const a=t[e];ge(a)&>(r,a)}else if(ge(e))gt(r,e.bind(s));else if(Le(e))if(ue(e))e.forEach(a=>rl(a,t,s,n));else{const a=ge(e.handler)?e.handler.bind(s):t[e.handler];ge(a)&>(r,a,e)}}function al(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,l=a.get(t);let c;return l?c=l:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>In(c,d,o,!0)),In(c,t,o)),Le(t)&&a.set(t,c),c}function In(e,t,s,n=!1){const{mixins:r,extends:a}=t;a&&In(e,a,s,!0),r&&r.forEach(o=>In(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Qd[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Qd={data:Yr,props:Xr,emits:Xr,methods:js,computed:js,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:js,directives:js,watch:Yd,provide:Yr,inject:Jd};function Yr(e,t){return t?e?function(){return Ke(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Jd(e,t){return js(Uo(e),Uo(t))}function Uo(e){if(ue(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function et(e,t){return e?[...new Set([].concat(e,t))]:t}function js(e,t){return e?Ke(Object.create(null),e,t):t}function Xr(e,t){return e?ue(e)&&ue(t)?[...new Set([...e,...t])]:Ke(Object.create(null),Qr(e),Qr(t??{})):t}function Yd(e,t){if(!e)return t;if(!t)return e;const s=Ke(Object.create(null),e);for(const n in t)s[n]=et(e[n],t[n]);return s}function il(){return{app:null,config:{isNativeTag:hi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Xd=0;function Zd(e,t){return function(n,r=null){ge(n)||(n=Ke({},n)),r!=null&&!Le(r)&&(r=null);const a=il(),o=new WeakSet,l=[];let c=!1;const d=a.app={_uid:Xd++,_component:n,_props:r,_container:null,_context:a,_instance:null,version:Of,get config(){return a.config},set config(f){},use(f,...u){return o.has(f)||(f&&ge(f.install)?(o.add(f),f.install(d,...u)):ge(f)&&(o.add(f),f(d,...u))),d},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),d},component(f,u){return u?(a.components[f]=u,d):a.components[f]},directive(f,u){return u?(a.directives[f]=u,d):a.directives[f]},mount(f,u,_){if(!c){const b=d._ceVNode||ke(n,r);return b.appContext=a,_===!0?_="svg":_===!1&&(_=void 0),e(b,f,_),c=!0,d._container=f,f.__vue_app__=d,eo(b.component)}},onUnmount(f){l.push(f)},unmount(){c&&(wt(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,u){return a.provides[f]=u,d},runWithContext(f){const u=ks;ks=d;try{return f()}finally{ks=u}}};return d}}let ks=null;function wn(e,t){if(Xe){let s=Xe.provides;const n=Xe.parent&&Xe.parent.provides;n===s&&(s=Xe.provides=Object.create(n)),s[e]=t}}function bt(e,t,s=!1){const n=El();if(n||ks){let r=ks?ks._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&ge(t)?t.call(n&&n.proxy):t}}const ll={},cl=()=>Object.create(ll),ul=e=>Object.getPrototypeOf(e)===ll;function ef(e,t,s,n=!1){const r={},a=cl();e.propsDefaults=Object.create(null),dl(e,t,r,a);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Mi(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function tf(e,t,s,n){const{props:r,attrs:a,vnode:{patchFlag:o}}=e,l=Te(r),[c]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let _=f[u];if(Xn(e.emitsOptions,_))continue;const b=t[_];if(c)if(Re(a,_))b!==a[_]&&(a[_]=b,d=!0);else{const y=_t(_);r[y]=Bo(c,l,y,b,e,!1)}else b!==a[_]&&(a[_]=b,d=!0)}}}else{dl(e,t,r,a)&&(d=!0);let f;for(const u in l)(!t||!Re(t,u)&&((f=ss(u))===u||!Re(t,f)))&&(c?s&&(s[u]!==void 0||s[f]!==void 0)&&(r[u]=Bo(c,l,u,void 0,e,!0)):delete r[u]);if(a!==l)for(const u in a)(!t||!Re(t,u))&&(delete a[u],d=!0)}d&&Mt(e.attrs,"set","")}function dl(e,t,s,n){const[r,a]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Ms(c))continue;const d=t[c];let f;
vendor: 1,701 bytes, line 19
19r&&Re(r,f=_t(c))?!a||!a.includes(f)?s[f]=d:(l||(l={}))[f]=d:Xn(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,o=!0)}if(a){const c=Te(s),d=l||Oe;for(let f=0;f<a.length;f++){const u=a[f];s[u]=Bo(r,c,u,d[u],e,!Re(d,u))}}return o}function Bo(e,t,s,n,r,a){const o=e[s];if(o!=null){const l=Re(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&ge(c)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const f=ln(r);n=d[s]=c.call(null,t),f()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(a&&!l?n=!1:o[1]&&(n===""||n===ss(s))&&(n=!0))}return n}const sf=new WeakMap;function fl(e,t,s=!1){const n=s?sf:t.propsCache,r=n.get(e);if(r)return r;const a=e.props,o={},l=[];let c=!1;if(!ge(e)){const f=u=>{c=!0;const[_,b]=fl(u,t,!0);Ke(o,_),b&&l.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!c)return Le(e)&&n.set(e,vs),vs;if(ue(a))for(let f=0;f<a.length;f++){const u=_t(a[f]);Zr(u)&&(o[u]=Oe)}else if(a)for(const f in a){const u=_t(f);if(Zr(u)){const _=a[f],b=o[u]=ue(_)||ge(_)?{type:_}:Ke({},_),y=b.type;let S=!1,x=!0;if(ue(y))for(let E=0;E<y.length;++E){const j=y[E],U=ge(j)&&j.name;if(U==="Boolean"){S=!0;break}else U==="String"&&(x=!1)}else S=ge(y)&&y.name==="Boolean";b[0]=S,b[1]=x,(S||Re(b,"default"))&&l.push(u)}}const d=[o,l];return Le(e)&&n.set(e,d),d}function Zr(e){return e[0]!=="$"&&!Ms(e)}const fr=e=>e==="_"||e==="_ctx"||e==="$stable",pr=e=>ue(e)?e.map(Rt):[Rt(e)],nf=(e,t,s)=>{if(t._n)return t;const n=we((...r)=>pr(t(...r)),s);return n._c=!1,n},pl=(e,t,s)=>{const n=e._ctx;for(const r in e){if(fr(r))continue;const a=e[r];if(ge(a))t[r]=nf(r,a,n);else if(a!=null){const o=pr(a);t[r]=()=>o}}},ml=(e,t)=>
vendor: 19,376 bytes, line 19
19{const s=pr(t);e.slots.default=()=>s},hl=(e,t,s)=>{for(const n in t)(s||!fr(n))&&(e[n]=t[n])},of=(e,t,s)=>{const n=e.slots=cl();if(e.vnode.shapeFlag&32){const r=t._;r?(hl(n,t,s),s&&yi(n,"_",r,!0)):pl(t,n)}else t&&ml(e,t)},rf=(e,t,s)=>{const{vnode:n,slots:r}=e;let a=!0,o=Oe;if(n.shapeFlag&32){const l=t._;l?s&&l===1?a=!1:hl(r,t,s):(a=!t.$stable,pl(t,r)),o=t}else t&&(ml(e,t),o={default:1});if(a)for(const l in r)!fr(l)&&o[l]==null&&delete r[l]},ut=wf;function af(e){return lf(e)}function lf(e,t){const s=Wn();s.__VUE__=!0;const{insert:n,remove:r,patchProp:a,createElement:o,createText:l,createComment:c,setText:d,setElementText:f,parentNode:u,nextSibling:_,setScopeId:b=Pt,insertStaticContent:y}=e,S=(w,$,I,H=null,W=null,V=null,se=void 0,te=null,ee=!!$.dynamicChildren)=>{if(w===$)return;w&&!cs(w,$)&&(H=F(w),ie(w,W,V,!0),w=null),$.patchFlag===-2&&(ee=!1,$.dynamicChildren=null);const{type:J,ref:de,shapeFlag:oe}=$;switch(J){case Zn:x(w,$,I,H);break;case nt:E(w,$,I,H);break;case kn:w==null&&j($,I,H,se);break;case ae:A(w,$,I,H,W,V,se,te,ee);break;default:oe&1?Y(w,$,I,H,W,V,se,te,ee):oe&6?G(w,$,I,H,W,V,se,te,ee):(oe&64||oe&128)&&J.process(w,$,I,H,W,V,se,te,ee,ne)}de!=null&&W?Bs(de,w&&w.ref,V,$||w,!$):de==null&&w&&w.ref!=null&&Bs(w.ref,null,V,w,!0)},x=(w,$,I,H)=>{if(w==null)n($.el=l($.children),I,H);else{const W=$.el=w.el;$.children!==w.children&&d(W,$.children)}},E=(w,$,I,H)=>{w==null?n($.el=c($.children||""),I,H):$.el=w.el},j=(w,$,I,H)=>{[w.el,w.anchor]=y(w.children,$,I,H,w.el,w.anchor)},U=({el:w,anchor:$},I,H)=>{let W;for(;w&&w!==$;)W=_(w),n(w,I,H),w=W;n($,I,H)},B=({el:w,anchor:$})=>{let I;for(;w&&w!==$;)I=_(w),r(w),w=I;r($)},Y=(w,$,I,H,W,V,se,te,ee)=>{$.type==="svg"?se="svg":$.type==="math"&&(se="mathml"),w==null?re($,I,H,W,V,se,te,ee):T(w,$,W,V,se,te,ee)},re=(w,$,I,H,W,V,se,te)=>{let ee,J;const{props:de,shapeFlag:oe,transition:le,dirs:me}=w;if(ee=w.el=o(w.type,V,de&&de.is,de),oe&8?f(ee,w.children):oe&16&&fe(w.children,ee,null,H,W,go(w,V),se,te),me&&os(w,null,H,"created"),Z(ee,w,w.scopeId,se,H),de){for(const je in de)je!=="value"&&!Ms(je)&&a(ee,je,null,de[je],V,H);"value"in de&&a(ee,"value",null,de.value,V),(J=de.onVnodeBeforeMount)&&Tt(J,H,w)}me&&os(w,null,H,"beforeMount");const $e=cf(W,le);$e&&le.beforeEnter(ee),n(ee,$,I),((J=de&&de.onVnodeMounted)||$e||me)&&ut(()=>{J&&Tt(J,H,w),$e&&le.enter(ee),me&&os(w,null,H,"mounted")},W)},Z=(w,$,I,H,W)=>{if(I&&b(w,I),H)for(let V=0;V<H.length;V++)b(w,H[V]);if(W){let V=W.subTree;if($===V||wl(V.type)&&(V.ssContent===$||V.ssFallback===$)){const se=W.vnode;Z(w,se,se.scopeId,se.slotScopeIds,W.parent)}}},fe=(w,$,I,H,W,V,se,te,ee=0)=>{for(let J=ee;J<w.length;J++){const de=w[J]=te?Jt(w[J]):Rt(w[J]);S(null,de,$,I,H,W,V,se,te)}},T=(w,$,I,H,W,V,se)=>{const te=$.el=w.el;let{patchFlag:ee,dynamicChildren:J,dirs:de}=$;ee|=w.patchFlag&16;const oe=w.props||Oe,le=$.props||Oe;let me;if(I&&rs(I,!1),(me=le.onVnodeBeforeUpdate)&&Tt(me,I,$,w),de&&os($,w,I,"beforeUpdate"),I&&rs(I,!0),(oe.innerHTML&&le.innerHTML==null||oe.textContent&&le.textContent==null)&&f(te,""),J?C(w.dynamicChildren,J,te,I,H,go($,W),V):se||P(w,$,te,null,I,H,go($,W),V,!1),ee>0){if(ee&16)M(te,oe,le,I,W);else if(ee&2&&oe.class!==le.class&&a(te,"class",null,le.class,W),ee&4&&a(te,"style",oe.style,le.style,W),ee&8){const $e=$.dynamicProps;for(let je=0;je<$e.length;je++){const Pe=$e[je],ot=oe[Pe],rt=le[Pe];(rt!==ot||Pe==="value")&&a(te,Pe,ot,rt,W,I)}}ee&1&&w.children!==$.children&&f(te,$.children)}else!se&&J==null&&M(te,oe,le,I,W);((me=le.onVnodeUpdated)||de)&&ut(()=>{me&&Tt(me,I,$,w),de&&os($,w,I,"updated")},H)},C=(w,$,I,H,W,V,se)=>{for(let te=0;te<$.length;te++){const ee=w[te],J=$[te],de=ee.el&&(ee.type===ae||!cs(ee,J)||ee.shapeFlag&198)?u(ee.el):I;S(ee,J,de,null,H,W,V,se,!0)}},M=(w,$,I,H,W)=>{if($!==I){if($!==Oe)for(const V in $)!Ms(V)&&!(V in I)&&a(w,V,$[V],null,W,H);for(const V in I){if(Ms(V))continue;const se=I[V],te=$[V];se!==te&&V!=="value"&&a(w,V,te,se,W,H)}"value"in I&&a(w,"value",$.value,I.value,W)}},A=(w,$,I,H,W,V,se,te,ee)=>{const J=$.el=w?w.el:l(""),de=$.anchor=w?w.anchor:l("");let{patchFlag:oe,dynamicChildren:le,slotScopeIds:me}=$;me&&(te=te?te.concat(me):me),w==null?(n(J,I,H),n(de,I,H),fe($.children||[],I,de,W,V,se,te,ee)):oe>0&&oe&64&&le&&w.dynamicChildren?(C(w.dynamicChildren,le,I,W,V,se,te),($.key!=null||W&&$===W.subTree)&&gl(w,$,!0)):P(w,$,I,de,W,V,se,te,ee)},G=(w,$,I,H,W,V,se,te,ee)=>{$.slotScopeIds=te,w==null?$.shapeFlag&512?W.ctx.activate($,I,H,se,ee):k($,I,H,W,V,se,ee):h(w,$,ee)},k=(w,$,I,H,W,V,se)=>{const te=w.component=Tf(w,H,W);if(Jn(w)&&(te.ctx.renderer=ne),Af(te,!1,se),te.asyncDep){if(W&&W.registerDep(te,p,se),!w.el){const ee=te.subTree=ke(nt);E(null,ee,$,I),w.placeholder=ee.el}}else p(te,w,$,I,W,V,se)},h=(w,$,I)=>{const H=$.component=w.component;if(yf(w,$,I))if(H.asyncDep&&!H.asyncResolved){g(H,$,I);return}else H.next=$,H.update();else $.el=w.el,H.vnode=$},p=(w,$,I,H,W,V,se)=>{const te=()=>{if(w.isMounted){let{next:oe,bu:le,u:me,parent:$e,vnode:je}=w;{const $t=_l(w);if($t){oe&&(oe.el=je.el,g(w,oe,se)),$t.asyncDep.then(()=>{w.isUnmounted||te()});return}}let Pe=oe,ot;rs(w,!1),oe?(oe.el=je.el,g(w,oe,se)):oe=je,le&&bn(le),(ot=oe.props&&oe.props.onVnodeBeforeUpdate)&&Tt(ot,$e,oe,je),rs(w,!0);const rt=ta(w),Et=w.subTree;w.subTree=rt,S(Et,rt,u(Et.el),F(Et),w,W,V),oe.el=rt.el,Pe===null&&bf(w,rt.el),me&&ut(me,W),(ot=oe.props&&oe.props.onVnodeUpdated)&&ut(()=>Tt(ot,$e,oe,je),W)}else{let oe;const{el:le,props:me}=$,{bm:$e,m:je,parent:Pe,root:ot,type:rt}=w,Et=Vs($);rs(w,!1),$e&&bn($e),!Et&&(oe=me&&me.onVnodeBeforeMount)&&Tt(oe,Pe,$),rs(w,!0);{ot.ce&&ot.ce._def.shadowRoot!==!1&&ot.ce._injectChildStyle(rt);const $t=w.subTree=ta(w);S(null,$t,I,H,w,W,V),$.el=$t.el}if(je&&ut(je,W),!Et&&(oe=me&&me.onVnodeMounted)){const $t=$;ut(()=>Tt(oe,Pe,$t),W)}($.shapeFlag&256||Pe&&Vs(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&w.a&&ut(w.a,W),w.isMounted=!0,$=I=H=null}};w.scope.on();const ee=w.effect=new Ei(te);w.scope.off();const J=w.update=ee.run.bind(ee),de=w.job=ee.runIfDirty.bind(ee);de.i=w,de.id=w.uid,ee.scheduler=()=>ur(de),rs(w,!0),J()},g=(w,$,I)=>{$.component=w;const H=w.vnode.props;w.vnode=$,w.next=null,tf(w,$.props,H,I),rf(w,$.children,I),Ht(),zr(w),qt()},P=(w,$,I,H,W,V,se,te,ee=!1)=>{const J=w&&w.children,de=w?w.shapeFlag:0,oe=$.children,{patchFlag:le,shapeFlag:me}=$;if(le>0){if(le&128){z(J,oe,I,H,W,V,se,te,ee);return}else if(le&256){O(J,oe,I,H,W,V,se,te,ee);return}}me&8?(de&16&&Se(J,W,V),oe!==J&&f(I,oe)):de&16?me&16?z(J,oe,I,H,W,V,se,te,ee):Se(J,W,V,!0):(de&8&&f(I,""),me&16&&fe(oe,I,H,W,V,se,te,ee))},O=(w,$,I,H,W,V,se,te,ee)=>{w=w||vs,$=$||vs;const J=w.length,de=$.length,oe=Math.min(J,de);let le;for(le=0;le<oe;le++){const me=$[le]=ee?Jt($[le]):Rt($[le]);S(w[le],me,I,null,W,V,se,te,ee)}J>de?Se(w,W,V,!0,!1,oe):fe($,I,H,W,V,se,te,ee,oe)},z=(w,$,I,H,W,V,se,te,ee)=>{let J=0;const de=$.length;let oe=w.length-1,le=de-1;for(;J<=oe&&J<=le;){const me=w[J],$e=$[J]=ee?Jt($[J]):Rt($[J]);if(cs(me,$e))S(me,$e,I,null,W,V,se,te,ee);else break;J++}for(;J<=oe&&J<=le;){const me=w[oe],$e=$[le]=ee?Jt($[le]):Rt($[le]);if(cs(me,$e))S(me,$e,I,null,W,V,se,te,ee);else break;oe--,le--}if(J>oe){if(J<=le){const me=le+1,$e=me<de?$[me].el:H;for(;J<=le;)S(null,$[J]=ee?Jt($[J]):Rt($[J]),I,$e,W,V,se,te,ee),J++}}else if(J>le)for(;J<=oe;)ie(w[J],W,V,!0),J++;else{const me=J,$e=J,je=new Map;for(J=$e;J<=le;J++){const ct=$[J]=ee?Jt($[J]):Rt($[J]);ct.key!=null&&je.set(ct.key,J)}let Pe,ot=0;const rt=le-$e+1;let Et=!1,$t=0;const Rs=new Array(rt);for(J=0;J<rt;J++)Rs[J]=0;for(J=me;J<=oe;J++){const ct=w[J];if(ot>=rt){ie(ct,W,V,!0);continue}let St;if(ct.key!=null)St=je.get(ct.key);else for(Pe=$e;Pe<=le;Pe++)if(Rs[Pe-$e]===0&&cs(ct,$[Pe])){St=Pe;break}St===void 0?ie(ct,W,V,!0):(Rs[St-$e]=J+1,St>=$t?$t=St:Et=!0,S(ct,$[St],I,null,W,V,se,te,ee),ot++)}const kr=Et?uf(Rs):vs;for(Pe=kr.length-1,J=rt-1;J>=0;J--){const ct=$e+J,St=$[ct],xr=$[ct+1],Er=ct+1<de?xr.el||xr.placeholder:H;Rs[J]===0?S(null,St,I,Er,W,V,se,te,ee):Et&&(Pe<0||J!==kr[Pe]?X(St,I,Er,2):Pe--)}}},X=(w,$,I,H,W=null)=>{const{el:V,type:se,transition:te,children:ee,shapeFlag:J}=w;if(J&6){X(w.component.subTree,$,I,H);return}if(J&128){w.suspense.move($,I,H);return}if(J&64){se.move(w,$,I,ne);return}if(se===ae){n(V,$,I);for(let oe=0;oe<ee.length;oe++)X(ee[oe],$,I,H);n(w.anchor,$,I);return}if(se===kn){U(w,$,I);return}if(H!==2&&J&1&&te)if(H===0)te.beforeEnter(V),n(V,$,I),ut(()=>te.enter(V),W);else{const{leave:oe,delayLeave:le,afterLeave:me}=te,$e=()=>{w.ctx.isUnmounted?r(V):n(V,$,I)},je=()=>{V._isLeaving&&V[Ft](!0),oe(V,()=>{$e(),me&&me()})};le?le(V,$e,je):je()}else n(V,$,I)},ie=(w,$,I,H=!1,W=!1)=>{const{type:V,props:se,ref:te,children:ee,dynamicChildren:J,shapeFlag:de,patchFlag:oe,dirs:le,cacheIndex:me}=w;if(oe===-2&&(W=!1),te!=null&&(Ht(),Bs(te,null,I,w,!0),qt()),me!=null&&($.renderCache[me]=void 0),de&256){$.ctx.deactivate(w);return}const $e=de&1&&le,je=!Vs(w);let Pe;if(je&&(Pe=se&&se.onVnodeBeforeUnmount)&&Tt(Pe,$,w),de&6)De(w.component,I,H);else{if(de&128){w.suspense.unmount(I,H);return}$e&&os(w,null,$,"beforeUnmount"),de&64?w.type.remove(w,$,I,ne,H):J&&!J.hasOnce&&(V!==ae||oe>0&&oe&64)?Se(J,$,I,!1,!0):(V===ae&&oe&384||!W&&de&16)&&Se(ee,$,I),H&&ye(w)}(je&&(Pe=se&&se.onVnodeUnmounted)||$e)&&ut(()=>{Pe&&Tt(Pe,$,w),$e&&os(w,null,$,"unmounted")},I)},ye=w=>{const{type:$,el:I,anchor:H,transition:W}=w;if($===ae){Ce(I,H);return}if($===kn){B(w);return}const V=()=>{r(I),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(w.shapeFlag&1&&W&&!W.persisted){const{leave:se,delayLeave:te}=W,ee=()=>se(I,V);te?te(w.el,V,ee):ee()}else V()},Ce=(w,$)=>{let I;for(;w!==$;)I=_(w),r(w),w=I;r($)},De=(w,$,I)=>{const{bum:H,scope:W,job:V,subTree:se,um:te,m:ee,a:J}=w;ea(ee),ea(J),H&&bn(H),W.stop(),V&&(V.flags|=8,ie(se,w,$,I)),te&&ut(te,$),ut(()=>{w.isUnmounted=!0},$)},Se=(w,$,I,H=!1,W=!1,V=0)=>{for(let se=V;se<w.length;se++)ie(w[se],$,I,H,W)},F=w=>{if(w.shapeFlag&6)return F(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const $=_(w.anchor||w.el),I=$&&$[Id];return I?_(I):$};let Q=!1;const q=(w,$,I)=>{w==null?$._vnode&&ie($._vnode,null,null,!0):S($._vnode||null,w,$,null,null,null,I),$._vnode=w,Q||(Q=!0,zr(),Hi(),Q=!1)},ne={p:S,um:ie,m:X,r:ye,mt:k,mc:fe,pc:P,pbc:C,n:F,o:e};return{render:q,hydrate:void 0,createApp:Zd(q)}}function go({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function rs({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gl(e,t,s=!1){const n=e.children,r=t.children;if(ue(n)&&ue(r))for(let a=0;a<n.length;a++){const o=n[a];let l=r[a];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[a]=Jt(r[a]),l.el=o.el),!s&&l.patchFlag!==-2&&gl(o,l)),l.type===Zn&&l.patchFlag!==-1&&(l.el=o.el),l.type===nt&&!l.el&&(l.el=o.el)}}function uf(e){const t=e.slice(),s=[0];let n,r,a,o,l;const c=e.length;for(n=0;n<c;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(a=0,o=s.length-1;a<o;)l=a+o>>1,e[s[l]]<d?a=l+1:o=l;d<e[s[a]]&&(a>0&&(t[n]=s[a-1]),s[a]=n)}}for(a=s.length,o=s[a-1];a-- >0;)s[a]=o,o=t[o];return s}function _l(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_l(t)}function ea(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const df=Symbol.for("v-scx"),ff=()=>bt(df);function gt(e,t,s){return vl(e,t,s)}function vl(e,t,s=Oe){const{immediate:n,deep:r,flush:a,once:o}=s,l=Ke({},s),c=t&&n||!t&&a!=="post";let d;if(Ys){if(a==="sync"){const b=ff();d=b.__watcherHandles||(b.__watcherHandles=[])}else if(!c){const b=()=>{};return b.stop=Pt,b.resume=Pt,b.pause=Pt,b}}const f=Xe;l.call=(b,y,S)=>wt(b,f,y,S);let u=!1;a==="post"?l.scheduler=b=>{ut(b,f&&f.suspense)}:a!=="sync"&&(u=!0,l.scheduler=(b,y)=>{y?b():ur(b)}),l.augmentJob=b=>{t&&(b.flags|=4),u&&(b.flags|=2,f&&(b.id=f.uid,b.i=f))};const _=Td(e,t,l);return Ys&&(d?d.push(_):c&&_()),_}function pf(e,t,s){const n=this.proxy,r=Ve(e)?e.includes(".")?yl(n,e):()=>n[e]:e.bind(n,n);let a;ge(t)?a=t:(a=t.handler,s=t);const o=ln(this),l=vl(r,a.bind(n),s);return o(),l}function yl(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const mf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${ss(t)}Modifiers`];function hf(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Oe;let r=s;const a=t.startsWith("update:"),o=a&&mf(n,t.slice(7));o&&(o.trim&&(r=s.map(f=>Ve(f)?f.trim():f)),o.number&&(r=s.map(Po)));let l,c=n[l=lo(t)]||n[l=lo(_t(t))];!c&&a&&(c=n[l=lo(ss(t))]),c&&wt(c,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,wt(d,e,6,r)}}const gf=new WeakMap;function bl(e,t,s=!1){const n=s?gf:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const a=e.emits;let o={},l=!1;if(!ge(e)){const c=d=>{const f=bl(d,t,!0);f&&(l=!0,Ke(o,f))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Le(e)&&n.set(e,null),null):(ue(a)?a.forEach(c=>o[c]=null):Ke(o,a),Le(e)&&n.set(e,o),o)}function Xn(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,ss(t))||Re(e,t))}function ta(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[a],slots:o,attrs:l,emit:c,render:d,renderCache:f,props:u,data:_,setupState:b,ctx:y,inheritAttrs:S}=e,x=Rn(e);let E,j;try{if(s.shapeFlag&4){const B=r||n,Y=B;E=Rt(d.call(Y,B,f,u,b,_,y)),j=l}else{const B=t;E=Rt(B.length>1?B(u,{attrs:l,slots:o,emit:c}):B(u,null)),j=t.props?l:_f(l)}}catch(B){qs.length=0,Qn(B,e,1),E=ke(nt)}let U=E;if(j&&S!==!1){const B=Object.keys(j),{shapeFlag:Y}=U;B.length&&Y&7&&(a&&B.some(er)&&(j=vf(j,a)),U=ts(U,j,!1,!0))}return s.dirs&&(U=ts(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition&&Qs(U,s.transition),E=U,Rn(x),E}const _f=e=>{let t;for(const s in e)(s==="class"||s==="style"||Vn(s))&&((t||(t={}))[s]=e[s]);return t},vf=(e,t)=>{const s={};for(const n in e)(!er(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function yf(e,t,s){const{props:n,children:r,component:a}=e,{props:o,children:l,patchFlag:c}=t,d=a.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?sa(n,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const _=f[u];if(o[_]!==n[_]&&!Xn(d,_))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?sa(n,o,d):!0:!!o;return!1}function sa(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const a=n[r];if(t[a]!==e[a]&&!Xn(s,a))return!0}return!1}function bf({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const wl=e=>e.__isSuspense;function wf(e,t){t&&t.pendingBranch?ue(e)?t.effects.push(...e):t.effects.push(e):Pd(e)}const ae=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),qs=[];let ft=null;function m(e=!1){qs.push(ft=e?null:[])}function kf(){qs.pop(),ft=qs[qs.length-1]||null}let Js=1;function Dn(e,t=!1){Js+=e,e<0&&ft&&t&&(ft.hasOnce=!0)}function kl(e){return e.dynamicChildren=Js>0?ft||vs:null,kf(),Js>0&&ft&&ft.push(e),e}function v(e,t,s,n,r,a){return kl(i(e,t,s,n,r,a,!0))}function We(e,t,s,n,r){return kl(ke(e,t,s,n,r,!0))}function Ln(e){return e?e.__v_isVNode===!0:!1}function cs(e,t){return e.type===t.type&&e.key===t.key}const xl=({key:e})=>e??null,xn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Ze(e)||ge(e)?{i:dt,r:e,k:t,f:!!s}:e:null);function i(e,t=null,s=null,n=0,r=null,a=e===ae?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xl(t),ref:t&&xn(t),scopeId:zi,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:dt};return l?(mr(c,s),a&128&&e.normalize(c)):s&&(c.shapeFlag|=Ve(s)?8:16),Js>0&&!o&&ft&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ft.push(c),c}const ke=xf;function xf(e,t=null,s=null,n=0,r=null,a=!1){if((!e||e===nl)&&(e=nt),Ln(e)){const l=ts(e,t,!0);return s&&mr(l,s),Js>0&&!a&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag=-2,l}if(Lf(e)&&(e=e.__vccOpts),t){t=Ef(t);let{class:l,style:c}=t;l&&!Ve(l)&&(t.class=Ne(l)),Le(c)&&(cr(c)&&!ue(c)&&(c=Ke({},c)),t.style=vt(c))}const o=Ve(e)?1:wl(e)?128:Wi(e)?64:Le(e)?4:ge(e)?2:0;return i(e,t,s,n,r,o,a,!0)}function Ef(e){return e?cr(e)||ul(e)?Ke({},e):e:null}function ts(e,t,s=!1,n=!1){const{props:r,ref:a,patchFlag:o,children:l,transition:c}=e,d=t?$f(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&xl(d),ref:t&&t.ref?s&&a?ue(a)?a.concat(xn(t)):[a,xn(t)]:xn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ts(e.ssContent),ssFallback:e.ssFallback&&ts(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Qs(f,c.clone(f)),f}function ce(e=" ",t=0){return ke(Zn,null,e,t)}function na(e,t){const s=ke(kn,null,e);return s.staticCount=t,s}function N(e="",t=!1){return t?(m(),We(nt,null,e)):ke(nt,null,e)}function Rt(e){return e==null||typeof e=="boolean"?ke(nt):ue(e)?ke(ae,null,e.slice()):Ln(e)?Jt(e):ke(Zn,null,String(e))}function Jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ts(e)}function mr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ue(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),mr(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!ul(t)?t._ctx=dt:r===3&&dt&&(dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:dt},s=32):(t=String(t),n&64?(s=16,t=[ce(t)]):s=8);e.children=t,e.shapeFlag|=s}function $f(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ne([t.class,n.class]));else if(r==="style")t.style=vt([t.style,n.style]);else if(Vn(r)){const a=t[r],o=n[r];o&&a!==o&&!(ue(a)&&a.includes(o))&&(t[r]=a?[].concat(a,o):o)}else r!==""&&(t[r]=n[r])}return t}function Tt(e,t,s,n=null){wt(e,t,7,[s,n])}const Sf=il();let Cf=0;function Tf(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Sf,a={uid:Cf++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new td(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fl(n,r),emitsOptions:bl(n,r),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:n.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,049 bytes, lines 19-22
19sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=hf.bind(null,a),e.ce&&e.ce(a),a}let Xe=null;const El=()=>Xe||dt;let On,Vo;{const e=Wn(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),a=>{r.length>1?r.forEach(o=>o(a)):r[0](a)}};On=t("__VUE_INSTANCE_SETTERS__",s=>Xe=s),Vo=t("__VUE_SSR_SETTERS__",s=>Ys=s)}const ln=e=>{const t=Xe;return On(e),e.scope.on(),()=>{e.scope.off(),On(t)}},oa=()=>{Xe&&Xe.scope.off(),On(null)};function $l(e){return e.vnode.shapeFlag&4}let Ys=!1;function Af(e,t=!1,s=!1){t&&Vo(t);const{props:n,children:r}=e.vnode,a=$l(e);ef(e,n,a,t),of(e,r,s||t);const o=a?Rf(e,t):void 0;return t&&Vo(!1),o}function Rf(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wd);const{setup:n}=s;if(n){Ht();const r=e.setupContext=n.length>1?If(e):null,a=ln(e),o=rn(n,e,0,[e.props,r]),l=gi(o);if(qt(),a(),(l||e.sp)&&!Vs(e)&&Zi(e),l){if(o.then(oa,oa),t)return o.then(c=>{ra(e,c)}).catch(c=>{Qn(c,e,0)});e.asyncDep=o}else ra(e,o)}else Sl(e)}function ra(e,t,s){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Le(t)&&(e.setupState=Ui(t)),Sl(e)}function Sl(e,t,s){const n=e.type;e.render||(e.render=n.render||Pt);{const r=ln(e);Ht();try{Kd(e)}finally{qt(),r()}}}const Pf={get(e,t){return Je(e,"get",""),e[t]}};function If(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Pf),slots:e.slots,emit:e.emit,expose:t}}function eo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ui(wd(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Hs)return Hs[s](e)},has(t,s){return s in t||s in Hs}})):e.proxy}function Df(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Lf(e){return ge(e)&&"__vccOpts"in e}const pe=(e,t)=>Sd(e,t,Ys);function hr(e,t,s){try{Dn(-1);const n=arguments.length;return n===2?Le(t)&&!ue(t)?Ln(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ln(s)&&(s=[s]),ke(e,t,s))}finally{Dn(1)}}const Of="3.5.22";/** 20* @vue/runtime-dom v3.5.22 21* (c) 2018-present Yuxi (Evan) You and Vue contributors 22* @license MIT
23**/let Ho;const aa=typeof window<"u"&&window.trustedTypes;if(aa)try{Ho=aa.createPolicy("vue",{createHTML:e=>e})}catch{}const Cl=Ho?e=>Ho.createHTML(e):e=>e,jf="http://www.w3.org/2000/svg",Ff="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,ia=jt&&jt.createElement("template"),Mf={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?jt.createElementNS(jf,e):t==="mathml"?jt.createElementNS(Ff,e):s?jt.createElement(e,{is:s}):jt.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,a){const o=s?s.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===a||
vendor: 32,097 bytes, lines 23-31
23!(r=r.nextSibling)););else{ia.innerHTML=Cl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ia.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Kt="transition",Ds="animation",Xs=Symbol("_vtc"),Tl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Nf=Ke({},Ki,Tl),Uf=e=>(e.displayName="Transition",e.props=Nf,e),to=Uf((e,{slots:t})=>hr(Od,Bf(e),t)),as=(e,t=[])=>{ue(e)?e.forEach(s=>s(...t)):e&&e(...t)},la=e=>e?ue(e)?e.some(t=>t.length>1):e.length>1:!1;function Bf(e){const t={};for(const A in e)A in Tl||(t[A]=e[A]);if(e.css===!1)return t;const{name:s="v",type:n,duration:r,enterFromClass:a=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:l=`${s}-enter-to`,appearFromClass:c=a,appearActiveClass:d=o,appearToClass:f=l,leaveFromClass:u=`${s}-leave-from`,leaveActiveClass:_=`${s}-leave-active`,leaveToClass:b=`${s}-leave-to`}=e,y=Vf(r),S=y&&y[0],x=y&&y[1],{onBeforeEnter:E,onEnter:j,onEnterCancelled:U,onLeave:B,onLeaveCancelled:Y,onBeforeAppear:re=E,onAppear:Z=j,onAppearCancelled:fe=U}=t,T=(A,G,k,h)=>{A._enterCancelled=h,is(A,G?f:l),is(A,G?d:o),k&&k()},C=(A,G)=>{A._isLeaving=!1,is(A,u),is(A,b),is(A,_),G&&G()},M=A=>(G,k)=>{const h=A?Z:j,p=()=>T(G,A,k);as(h,[G,p]),ca(()=>{is(G,A?c:a),Lt(G,A?f:l),la(h)||ua(G,n,S,p)})};return Ke(t,{onBeforeEnter(A){as(E,[A]),Lt(A,a),Lt(A,o)},onBeforeAppear(A){as(re,[A]),Lt(A,c),Lt(A,d)},onEnter:M(!1),onAppear:M(!0),onLeave(A,G){A._isLeaving=!0;const k=()=>C(A,G);Lt(A,u),A._enterCancelled?(Lt(A,_),pa(A)):(pa(A),Lt(A,_)),ca(()=>{A._isLeaving&&(is(A,u),Lt(A,b),la(B)||ua(A,n,x,k))}),as(B,[A,k])},onEnterCancelled(A){T(A,!1,void 0,!0),as(U,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),as(fe,[A])},onLeaveCancelled(A){C(A),as(Y,[A])}})}function Vf(e){if(e==null)return null;if(Le(e))return[_o(e.enter),_o(e.leave)];{const t=_o(e);return[t,t]}}function _o(e){return Ku(e)}function Lt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Xs]||(e[Xs]=new Set)).add(t)}function is(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Xs];s&&(s.delete(t),s.size||(e[Xs]=void 0))}function ca(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hf=0;function ua(e,t,s,n){const r=e._endId=++Hf,a=()=>{r===e._endId&&n()};if(s!=null)return setTimeout(a,s);const{type:o,timeout:l,propCount:c}=qf(e,t);if(!o)return n();const d=o+"end";let f=0;const u=()=>{e.removeEventListener(d,_),a()},_=b=>{b.target===e&&++f>=c&&u()};setTimeout(()=>{f<c&&u()},l+1),e.addEventListener(d,_)}function qf(e,t){const s=window.getComputedStyle(e),n=y=>(s[y]||"").split(", "),r=n(`${Kt}Delay`),a=n(`${Kt}Duration`),o=da(r,a),l=n(`${Ds}Delay`),c=n(`${Ds}Duration`),d=da(l,c);let f=null,u=0,_=0;t===Kt?o>0&&(f=Kt,u=o,_=a.length):t===Ds?d>0&&(f=Ds,u=d,_=c.length):(u=Math.max(o,d),f=u>0?o>d?Kt:Ds:null,_=f?f===Kt?a.length:c.length:0);const b=f===Kt&&/\b(?:transform|all)(?:,|$)/.test(n(`${Kt}Property`).toString());return{type:f,timeout:u,propCount:_,hasTransform:b}}function da(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>fa(s)+fa(e[n])))}function fa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function pa(e){return(e?e.ownerDocument:document).body.offsetHeight}function zf(e,t,s){const n=e[Xs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const jn=Symbol("_vod"),Al=Symbol("_vsh"),cn={name:"show",beforeMount(e,{value:t},{transition:s}){e[jn]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Ls(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Ls(e,!0),n.enter(e)):n.leave(e,()=>{Ls(e,!1)}):Ls(e,t))},beforeUnmount(e,{value:t}){Ls(e,t)}};function Ls(e,t){e.style.display=t?e[jn]:"none",e[Al]=!t}const Wf=Symbol(""),Kf=/(?:^|;)\s*display\s*:/;function Gf(e,t,s){const n=e.style,r=Ve(s);let a=!1;if(s&&!r){if(t)if(Ve(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&En(n,l,"")}else for(const o in t)s[o]==null&&En(n,o,"");for(const o in s)o==="display"&&(a=!0),En(n,o,s[o])}else if(r){if(t!==s){const o=n[Wf];o&&(s+=";"+o),n.cssText=s,a=Kf.test(s)}}else t&&e.removeAttribute("style");jn in e&&(e[jn]=a?n.display:"",e[Al]&&(n.display="none"))}const ma=/\s*!important$/;function En(e,t,s){if(ue(s))s.forEach(n=>En(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Qf(e,t);ma.test(s)?e.setProperty(ss(n),s.replace(ma,""),"important"):e[n]=s}}const ha=["Webkit","Moz","ms"],vo={};function Qf(e,t){const s=vo[t];if(s)return s;let n=_t(t);if(n!=="filter"&&n in e)return vo[t]=n;n=zn(n);for(let r=0;r<ha.length;r++){const a=ha[r]+n;if(a in e)return vo[t]=a}return t}const ga="http://www.w3.org/1999/xlink";function _a(e,t,s,n,r,a=Zu(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ga,t.slice(6,t.length)):e.setAttributeNS(ga,t,s):s==null||a&&!bi(s)?e.removeAttribute(t):e.setAttribute(t,a?"":It(s)?String(s):s)}function va(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Cl(s):s);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const l=a==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=bi(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function Xt(e,t,s,n){e.addEventListener(t,s,n)}function Jf(e,t,s,n){e.removeEventListener(t,s,n)}const ya=Symbol("_vei");function Yf(e,t,s,n,r=null){const a=e[ya]||(e[ya]={}),o=a[t];if(n&&o)o.value=n;else{const[l,c]=Xf(t);if(n){const d=a[t]=tp(n,r);Xt(e,l,d,c)}else o&&(Jf(e,l,o,c),a[t]=void 0)}}const ba=/(?:Once|Passive|Capture)$/;function Xf(e){let t;if(ba.test(e)){t={};let n;for(;n=e.match(ba);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ss(e.slice(2)),t]}let yo=0;const Zf=Promise.resolve(),ep=()=>yo||(Zf.then(()=>yo=0),yo=Date.now());function tp(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;wt(sp(n,s.value),t,5,[n])};return s.value=e,s.attached=ep(),s}function sp(e,t){if(ue(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const wa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,np=(e,t,s,n,r,a)=>{const o=r==="svg";t==="class"?zf(e,n,o):t==="style"?Gf(e,s,n):Vn(t)?er(t)||Yf(e,t,s,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):op(e,t,n,o))?(va(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_a(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ve(n))?va(e,_t(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),_a(e,t,n,o))};function op(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&wa(t)&&ge(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return wa(t)&&Ve(s)?!1:t in e}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ue(t)?s=>bn(t,s):t};function rp(e){e.target.composing=!0}function ka(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ut=Symbol("_assign"),ze={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[Ut]=$s(r);const a=n||r.props&&r.props.type==="number";Xt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),a&&(l=Po(l)),e[Ut](l)}),s&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",rp),Xt(e,"compositionend",ka),Xt(e,"change",ka))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:a}},o){if(e[Ut]=$s(o),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Po(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===c)||(e.value=c))}},He={deep:!0,created(e,t,s){e[Ut]=$s(s),Xt(e,"change",()=>{const n=e._modelValue,r=Rl(e),a=e.checked,o=e[Ut];if(ue(n)){const l=wi(n,r),c=l!==-1;if(a&&!c)o(n.concat(r));else if(!a&&c){const d=[...n];d.splice(l,1),o(d)}}else if(Hn(n)){const l=new Set(n);a?l.add(r):l.delete(r),o(l)}else o(Pl(e,a))})},mounted:xa,beforeUpdate(e,t,s){e[Ut]=$s(s),xa(e,t,s)}};function xa(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(ue(t))r=wi(t,n.props.value)>-1;else if(Hn(t))r=t.has(n.props.value);else{if(t===s)return;r=Es(t,Pl(e,!0))}e.checked!==r&&(e.checked=r)}const ap={created(e,{value:t},s){e.checked=Es(t,s.props.value),e[Ut]=$s(s),Xt(e,"change",()=>{e[Ut](Rl(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Ut]=$s(n),t!==s&&(e.checked=Es(t,n.props.value))}};function Rl(e){return"_value"in e?e._value:e.value}function Pl(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const ip=["ctrl","shift","alt","meta"],lp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ip.some(s=>e[`${s}Key`]&&!t.includes(s))},zt=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...a)=>{for(let o=0;o<t.length;o++){const l=lp[t[o]];if(l&&l(r,t))return}return e(r,...a)}))},cp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Il=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(r=>{if(!("key"in r))return;const a=ss(r.key);if(t.some(o=>o===a||cp[o]===a))return e(r)}))},up=Ke({patchProp:np},Mf);let Ea;function dp(){return Ea||(Ea=af(up))}const fp=((...e)=>{const t=dp().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=mp(n);if(!r)return;const a=t._component;!ge(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,pp(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function pp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mp(e){return Ve(e)?document.querySelector(e):e}const hp="/build/assets/cupdf-logo-th-C76TYpIs.png",gp="/build/assets/cept-logo-B2zGRPNv.png";/*! 24 * vue-router v4.6.3 25 * (c) 2025 Eduardo San Martin Morote 26 * @license MIT 27 */const _s=typeof document<"u";function Dl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _p(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Dl(e.default)}const Ae=Object.assign;function bo(e,t){const s={};for(const n in t){const r=t[n];s[n]=kt(r)?r.map(e):e(r)}return s}const zs=()=>{},kt=Array.isArray;function $a(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Ll=/#/g,vp=/&/g,yp=/\//g,bp=/=/g,wp=/\?/g,Ol=/\+/g,kp=/%5B/g,xp=/%5D/g,jl=/%5E/g,Ep=/%60/g,Fl=/%7B/g,$p=/%7C/g,Ml=/%7D/g,Sp=/%20/g;function gr(e){return e==null?"":encodeURI(""+e).replace($p,"|").replace(kp,"[").replace(xp,"]")}function Cp(e){return gr(e).replace(Fl,"{").replace(Ml,"}").replace(jl,"^")}function qo(e){return gr(e).replace(Ol,"%2B").replace(Sp,"+").replace(Ll,"%23").replace(vp,"%26").replace(Ep,"`").replace(Fl,"{").replace(Ml,"}").replace(jl,"^")}function Tp(e){return qo(e).replace(bp,"%3D")}function Ap(e){return gr(e).replace(Ll,"%23").replace(wp,"%3F")}function Rp(e){return Ap(e).replace(yp,"%2F")}function Zs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Pp=/\/$/,Ip=e=>e.replace(Pp,"");function wo(e,t,s="/"){let n,r={},a="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(n=t.slice(0,c),a=t.slice(c,l>0?l:t.length),r=e(a.slice(1))),l>=0&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=jp(n??t,s),{fullPath:n+a+o,path:n,query:r,hash:Zs(o)}}function Dp(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Sa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Lp(e,t,s){const n=t.matched.length-1,r=s.matched.length-1;return n>-1&&n===r&&Ss(t.matched[n],s.matched[r])&&Nl(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Nl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!Op(e[s],t[s]))return!1;return!0}function Op(e,t){return kt(e)?Ca(e,t):kt(t)?Ca(t,e):e===t}function Ca(e,t){return kt(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function jp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let a=s.length-1,o,l;for(o=0;o<n.length;o++)if(l=n[o],l!==".")if(l==="..")a>1&&a--;else break;return s.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let zo=(function(e){return e.pop="pop",e.push="push",e})({}),ko=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Fp(e){if(!e)if(_s){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ip(e)}const Mp=/^[^#]+#/;function Np(e,t){return e.replace(Mp,"#")+t}function Up(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const so=()=>({left:window.scrollX,top:window.scrollY});function Bp(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=Up(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Wo=new Map;function Vp(e,t){Wo.set(e,t)}function Hp(e){const t=Wo.get(e);return Wo.delete(e),t}function qp(e){return typeof e=="string"||e&&typeof e=="object"}function Ul(e){return typeof e=="string"||typeof e=="symbol"}let Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Bl=Symbol("");Be.MATCHER_NOT_FOUND+"",Be.NAVIGATION_GUARD_REDIRECT+"",Be.NAVIGATION_ABORTED+"",Be.NAVIGATION_CANCELLED+"",Be.NAVIGATION_DUPLICATED+"";function Cs(e,t){return Ae(new Error,{type:e,[Bl]:!0},t)}function Ot(e,t){return e instanceof Error&&Bl in e&&(t==null||!!(e.type&t))}const zp=["params","query","hash"];function Wp(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of zp)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Kp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const r=s[n].replace(Ol," "),a=r.indexOf("="),o=Zs(a<0?r:r.slice(0,a)),l=a<0?null:Zs(r.slice(a+1));if(o in t){let c=t[o];kt(c)||(c=t[o]=[c]),c.push(l)}else t[o]=l}return t}function Aa(e){let t="";for(let s in e){const n=e[s];if(s=Tp(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(kt(n)?n.map(r=>r&&qo(r)):[n&&qo(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function Gp(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=kt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const Qp=Symbol(""),Ra=Symbol(""),no=Symbol(""),_r=Symbol(""),Ko=Symbol("");function Os(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Yt(e,t,s,n,r,a=o=>o()){const o=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const d=_=>{_===!1?c(Cs(Be.NAVIGATION_ABORTED,{from:s,to:t})):_ instanceof Error?c(_):qp(_)?c(Cs(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:_})):(o&&n.enterCallbacks[r]===o&&typeof _=="function"&&o.push(_),l())},f=a(()=>e.call(n&&n.instances[r],t,s,d));let u=Promise.resolve(f);e.length<3&&(u=u.then(d)),u.catch(_=>c(_))})}function xo(e,t,s,n,r=a=>a()){const a=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Dl(c)){const d=(c.__vccOpts||c)[t];d&&a.push(Yt(d,s,n,o,l,r))}else{let d=c();a.push(()=>d.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const u=_p(f)?f.default:f;o.mods[l]=f,o.components[l]=u;const _=(u.__vccOpts||u)[t];return _&&Yt(_,s,n,o,l,r)()}))}}return a}function Jp(e,t){const s=[],n=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const l=t.matched[o];l&&(e.matched.find(d=>Ss(d,l))?n.push(l):s.push(l));const c=e.matched[o];c&&(t.matched.find(d=>Ss(d,c))||r.push(c))}return[s,n,r]}/*! 28 * vue-router v4.6.3 29 * (c) 2025 Eduardo San Martin Morote 30 * @license MIT 31 */let Yp=()=>location.protocol+"//"+location.host;function Vl(e,t){const{pathname:s,search:n,hash:r}=t,a=e.indexOf("#");if(a>-1){let o=r.includes(e.slice(a))?e.slice(a).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Sa(l,"")}return Sa(s,e)+n+r}function Xp(e,t,s,n){let r=[],a=[],o=null;const l=({state:_})=>{const b=Vl(e,location),y=s.value,S=t.value;let x=0;if(_){if(s.value=b,t.value=_,o&&o===y){o=null;return}x=S?_.position-S.position:0}else n(b);r.forEach(E=>{E(s.value,y,{delta:x,type:zo.pop,direction:x?x>0?ko.forward:ko.back:ko.unknown})})};function c(){o=s.value}function d(_){r.push(_);const b=()=>{const y=r.indexOf(_);y>-1&&r.splice(y,1)};return a.push(b),b}function f(){if(document.visibilityState==="hidden"){const{history:_}=window;if(!_.state)return;_.replaceState(Ae({},_.state,{scroll:so()}),"")}}function u(){for(const _ of a)_();a=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:c,listen:d,destroy:u}}function Pa(e,t,s,n=!1,r=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:r?so():null}}function Zp(e){const{history:t,location:s}=window,n={value:Vl(e,s)},r={value:t.state};r.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,f){const u=e.indexOf("#"),_=u>-1?(s.host&&document.querySelector("base")?e:e.slice(u))+c:Yp()+e+c;try{t[f?"replaceState":"pushState"](d,"",_),r.value=d}catch(b){console.error(b),s[f?"replace":"assign"](_)}}function o(c,d){a(c,Ae({},t.state,Pa(r.value.back,c,r.value.forward,!0),d,{position:r.value.position}),!0),n.value=c}function l(c,d){const f=Ae({},r.value,t.state,{forward:c,scroll:so()});a(f.current,f,!0),a(c,Ae({},Pa(n.value,c,null),{position:f.position+1},d),!1),n.value=c}return{location:n,state:r,push:l,replace:o}}function em(e){e=Fp(e);const t=Zp(e),s=Xp(e,t.state,t.location,t.replace);function n(a,o=!0){o||s.pauseListeners(),history.go(a)}const r=Ae({location:"",base:e,go:n,createHref:Np.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var qe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(qe||{});const tm={type:ds.Static,value:""},sm=/[a-zA-Z0-9_]/;function nm(e){if(!e)return[[]];if(e==="/")return[[tm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${s})/"${d}": ${b}`)}let s=qe.Static,n=s;const r=[];let a;function o(){a&&r.push(a),a=[]}let l=0,c,d="",f="";function u(){d&&(s===qe.Static?a.push({type:ds.Static,value:d}):s===qe.Param||s===qe.ParamRegExp||s===qe.ParamRegExpEnd?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:ds.Param,value:d,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function _(){d+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&s!==qe.ParamRegExp){n=s,s=qe.EscapeNext;continue}switch(s){case qe.Static:c==="/"?(d&&u(),o()):c===":"?(u(),s=qe.Param):_();break;case qe.EscapeNext:_(),s=n;break;case qe.Param:c==="("?s=qe.ParamRegExp:sm.test(c)?_():(u(),s=qe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case qe.ParamRegExp:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:s=qe.ParamRegExpEnd:f+=c;break;case qe.ParamRegExpEnd:u(),s=qe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,f="";break;default:t("Unknown state");break}}return s===qe.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),u(),o(),r}const Ia="[^/]+?",om={sensitive:!1,strict:!1,start:!0,end:!0};var tt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(tt||{});const rm=/[.+*?^${}()[\]/\\]/g;function am(e,t){const s=Ae({},om,t),n=[];let r=s.start?"^":"";const a=[];for(const d of e){const f=d.length?[]:[tt.Root];s.strict&&!d.length&&(r+="/");for(let u=0;u<d.length;u++){const _=d[u];let b=tt.Segment+(s.sensitive?tt.BonusCaseSensitive:0);if(_.type===ds.Static)u||(r+="/"),r+=_.value.replace(rm,"\\$&"),b+=tt.Static;else if(_.type===ds.Param){const{value:y,repeatable:S,optional:x,regexp:E}=_;a.push({name:y,repeatable:S,optional:x});const j=E||Ia;if(j!==Ia){b+=tt.BonusCustomRegExp;try{`${j}`}catch(B){throw new Error(`Invalid custom RegExp for param "${y}" (${j}): `+B.message)}}let U=S?`((?:${j})(?:/(?:${j}))*)`:`(${j})`;u||(U=x&&d.length<2?`(?:/${U})`:"/"+U),x&&(U+="?"),r+=U,b+=tt.Dynamic,x&&(b+=tt.BonusOptional),S&&(b+=tt.BonusRepeatable),j===".*"&&(b+=tt.BonusWildcard)}f.push(b)}n.push(f)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=tt.BonusStrict}s.strict||(r+="/?"),s.end?r+="$":s.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,s.sensitive?"":"i");function l(d){const f=d.match(o),u={};if(!f)return null;for(let _=1;_<f.length;_++){const b=f[_]||"",y=a[_-1];u[y.name]=b&&y.repeatable?b.split("/"):b}return u}function c(d){let f="",u=!1;for(const _ of e){(!u||!f.endsWith("/"))&&(f+="/"),u=!1;for(const b of _)if(b.type===ds.Static)f+=b.value;else if(b.type===ds.Param){const{value:y,repeatable:S,optional:x}=b,E=y in d?d[y]:"";if(kt(E)&&!S)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const j=kt(E)?E.join("/"):E;if(!j)if(x)_.length<2&&(f.endsWith("/")?f=f.slice(0,-1):u=!0);else throw new Error(`Missing required param "${y}"`);f+=j}}return f||"/"}return{re:o,score:n,keys:a,parse:l,stringify:c}}function im(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===tt.Static+tt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===tt.Static+tt.Segment?1:-1:0}function Hl(e,t){let s=0;const n=e.score,r=t.score;for(;s<n.length&&s<r.length;){const a=im(n[s],r[s]);if(a)return a;s++}if(Math.abs(r.length-n.length)===1){if(Da(n))return 1;if(Da(r))return-1}return r.length-n.length}function Da(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const lm={strict:!1,end:!0,sensitive:!1};function cm(e,t,s){const n=am(nm(e.path),s),r=Ae(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function um(e,t){const s=[],n=new Map;t=$a(lm,t);function r(u){return n.get(u)}function a(u,_,b){const y=!b,S=Oa(u);S.aliasOf=b&&b.record;const x=$a(t,u),E=[S];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const Y of B)E.push(Oa(Ae({},S,{components:b?b.record.components:S.components,path:Y,aliasOf:b?b.record:S})))}let j,U;for(const B of E){const{path:Y}=B;if(_&&Y[0]!=="/"){const re=_.record.path,Z=re[re.length-1]==="/"?"":"/";B.path=_.record.path+(Y&&Z+Y)}if(j=cm(B,_,x),b?b.alias.push(j):(U=U||j,U!==j&&U.alias.push(j),y&&u.name&&!ja(j)&&o(u.name)),ql(j)&&c(j),S.children){const re=S.children;for(let Z=0;Z<re.length;Z++)a(re[Z],j,b&&b.children[Z])}b=b||j}return U?()=>{o(U)}:zs}function o(u){if(Ul(u)){const _=n.get(u);_&&(n.delete(u),s.splice(s.indexOf(_),1),_.children.forEach(o),_.alias.forEach(o))}else{const _=s.indexOf(u);_>-1&&(s.splice(_,1),u.record.name&&n.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function l(){return s}function c(u){const _=pm(u,s);s.splice(_,0,u),u.record.name&&!ja(u)&&n.set(u.record.name,u)}function d(u,_){let b,y={},S,x;if("name"in u&&u.name){if(b=n.get(u.name),!b)throw Cs(Be.MATCHER_NOT_FOUND,{location:u});x=b.record.name,y=Ae(La(_.params,b.keys.filter(U=>!U.optional).concat(b.parent?b.parent.keys.filter(U=>U.optional):[]).map(U=>U.name)),u.params&&La(u.params,b.keys.map(U=>U.name))),S=b.stringify(y)}else if(u.path!=null)S=u.path,b=s.find(U=>U.re.test(S)),b&&(y=b.parse(S),x=b.record.name);else{if(b=_.name?n.get(_.name):s.find(U=>U.re.test(_.path)),!b)throw Cs(Be.MATCHER_NOT_FOUND,{location:u,currentLocation:_});x=b.record.name,y=Ae({},_.params,u.params),S=b.stringify(y)}const E=[];let j=b;for(;j;)E.unshift(j.record),j=j.parent;return{name:x,path:S,params:y,matched:E,meta:fm(E)}}e.forEach(u=>a(u));function f(){s.length=0,n.clear()}return{addRoute:a,resolve:d,removeRoute:o,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function La(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Oa(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dm(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function ja(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fm(e){return e.reduce((t,s)=>Ae(t,s.meta),{})}function pm(e,t){let s=0,n=t.length;for(;s!==n;){const a=s+n>>1;Hl(e,t[a])<0?n=a:s=a+1}const r=mm(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function mm(e){let t=e;for(;t=t.parent;)if(ql(t)&&Hl(e,t)===0)return t}function ql({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fa(e){const t=bt(no),s=bt(_r),n=pe(()=>{const c=D(e.to);return t.resolve(c)}),r=pe(()=>{const{matched:c}=n.value,{length:d}=c,f=c[d-1],u=s.matched;if(!f||!u.length)return-1;const _=u.findIndex(Ss.bind(null,f));if(_>-1)return _;const b=Ma(c[d-2]);return d>1&&Ma(f)===b&&u[u.length-1].path!==b?u.findIndex(Ss.bind(null,c[d-2])):_}),a=pe(()=>r.value>-1&&vm(s.params,n.value.params)),o=pe(()=>r.value>-1&&r.value===s.matched.length-1&&Nl(s.params,n.value.params));function l(c={}){if(_m(c)){const d=t[D(e.replace)?"replace":"push"](D(e.to)).catch(zs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:pe(()=>n.value.href),isActive:a,isExactActive:o,navigate:l}}function hm(e){return e.length===1?e[0]:e}const gm=Xi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Fa,setup(e,{slots:t}){const s=Gn(Fa(e)),{options:n}=bt(no),r=pe(()=>({[Na(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Na(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const a=t.default&&hm(t.default(s));return e.custom?a:hr("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},a)}}}),Ie=gm;function _m(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function vm(e,t){for(const s in t){const n=t[s],r=e[s];if(typeof n=="string"){if(n!==r)return!1}else if(!kt(r)||r.length!==n.length||n.some((a,o)=>a!==r[o]))return!1}return!0}function Ma(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Na=(e,t,s)=>e??t??s,ym=Xi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=bt(Ko),r=pe(()=>e.route||n.value),a=bt(Ra,0),o=pe(()=>{let d=D(a);const{matched:f}=r.value;let u;for(;(u=f[d])&&!u.components;)d++;return d}),l=pe(()=>r.value.matched[o.value]);wn(Ra,pe(()=>o.value+1)),wn(Qp,l),wn(Ko,r);const c=K();return gt(()=>[c.value,l.value,e.name],([d,f,u],[_,b,y])=>{f&&(f.instances[u]=d,b&&b!==f&&d&&d===_&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),d&&f&&(!b||!Ss(f,b)||!_)&&(f.enterCallbacks[u]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,u=l.value,_=u&&u.components[f];if(!_)return Ua(s.default,{Component:_,route:d});const b=u.props[f],y=b?b===!0?d.params:typeof b=="function"?b(d):b:null,x=hr(_,Ae({},y,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(u.instances[f]=null)},ref:c}));return Ua(s.default,{Component:x,route:d})||x}}});function Ua(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const bm=ym;function wm(e){const t=um(e.routes,e),s=e.parseQuery||Kp,n=e.stringifyQuery||Aa,r=e.history,a=Os(),o=Os(),l=Os(),c=kd(Gt);let d=Gt;_s&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=bo.bind(null,F=>""+F),u=bo.bind(null,Rp),_=bo.bind(null,Zs);function b(F,Q){let q,ne;return Ul(F)?(q=t.getRecordMatcher(F),ne=Q):ne=F,t.addRoute(ne,q)}function y(F){const Q=t.getRecordMatcher(F);Q&&t.removeRoute(Q)}function S(){return t.getRoutes().map(F=>F.record)}function x(F){return!!t.getRecordMatcher(F)}function E(F,Q){if(Q=Ae({},Q||c.value),typeof F=="string"){const I=wo(s,F,Q.path),H=t.resolve({path:I.path},Q),W=r.createHref(I.fullPath);return Ae(I,H,{params:_(H.params),hash:Zs(I.hash),redirectedFrom:void 0,href:W})}let q;if(F.path!=null)q=Ae({},F,{path:wo(s,F.path,Q.path).path});else{const I=Ae({},F.params);for(const H in I)I[H]==null&&delete I[H];q=Ae({},F,{params:u(I)}),Q.params=u(Q.params)}const ne=t.resolve(q,Q),_e=F.hash||"";ne.params=f(_(ne.params));const w=Dp(n,Ae({},F,{hash:Cp(_e),path:ne.path})),$=r.createHref(w);
31return Ae({fullPath:w,hash:_e,query:n===Aa?Gp(F.query):F.query||{}},ne,{redirectedFrom:void 0,href:$})}function j(F){return typeof F=="string"?wo(s,F,c.value.path):Ae({},F)}function U(F,Q){if(d!==F)return Cs(Be.NAVIGATION_CANCELLED,{from:Q,to:F})}function B(F){return Z(F)}function Y(F){return B(Ae(j(F),{replace:!0}))}function re(F,Q){const q=F.matched[F.matched.length-1];if(q&&q.redirect){const{redirect:ne}=q;let _e=typeof ne=="function"?ne(F,Q):ne;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=j(_e):{path:_e},_e.params={}),Ae({query:F.query,hash:F.hash,params:_e.path!=null?{}:F.params},_e)}}function Z(F,Q){const q=d=E(F),ne=c.value,_e=F.state,w=F.force,$=F.replace===!0,I=re(q,ne);if(I)return Z(Ae(j(I),{state:typeof I=="object"?Ae({},_e,I.state):_e,force:w,replace:$}),Q||q);const H=q;H.redirectedFrom=Q;let W;return!w&&Lp(n,ne,q)&&(W=Cs(Be.NAVIGATION_DUPLICATED,{to:H,from:ne}),X(ne,ne,!0,!1)),(W?Promise.resolve(W):C(H,ne)).catch(V=>Ot(V)?Ot(V,Be.NAVIGATION_GUARD_REDIRECT)?V:z(V):P(V,H,ne)).then(V=>{if(V){if(Ot(V,Be.NAVIGATION_GUARD_REDIRECT))return Z(Ae({replace:$},j(V.to),{state:typeof V.to=="object"?Ae({},_e,V.to.state):_e,force:w}),Q||H)}else V=A(H,ne,!0,$,_e);return M(H,ne,V),V})}function fe(F,Q){const q=U(F,Q);return q?Promise.reject(q):Promise.resolve()}function T(F){const Q=Ce.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(F):F()}function C(F,Q){let q;const[ne,_e,w]=Jp(F,Q);q=xo(ne.reverse(),"beforeRouteLeave",F,Q);for(const I of ne)I.leaveGuards.forEach(H=>{q.push(Yt(H,F,Q))});const $=fe.bind(null,F,Q);return q.push($),Se(q).then(()=>{q=[];for(const I of a.list())q.push(Yt(I,F,Q));return q.push($),Se(q)}).then(()=>{q=xo(_e,"beforeRouteUpdate",F,Q);for(const I of _e)I.updateGuards.forEach(H=>{q.push(Yt(H,F,Q))});return q.push($),Se(q)}).then(()=>{q=[];for(const I of w)if(I.beforeEnter)if(kt(I.beforeEnter))for(const H of I.beforeEnter)q.push(Yt(H,F,Q));else q.push(Yt(I.beforeEnter,F,Q));return q.push($),Se(q)}).then(()=>(F.matched.forEach(I=>I.enterCallbacks={}),q=xo(w,"beforeRouteEnter",F,Q,T),q.push($),Se(q))).then(()=>{q=[];for(const I of o.list())q.push(Yt(I,F,Q));return q.push($),Se(q)}).catch(I=>Ot(I,Be.NAVIGATION_CANCELLED)?I:Promise.reject(I))}function M(F,Q,q){l.list().forEach(ne=>T(()=>ne(F,Q,q)))}function A(F,Q,q,ne,_e){const w=U(F,Q);if(w)return w;const $=Q===Gt,I=_s?history.state:{};q&&(ne||$?r.replace(F.fullPath,Ae({scroll:$&&I&&I.scroll},_e)):r.push(F.fullPath,_e)),c.value=F,X(F,Q,q,$),z()}let G;function k(){G||(G=r.listen((F,Q,q)=>{if(!De.listening)return;const ne=E(F),_e=re(ne,De.currentRoute.value);if(_e){Z(Ae(_e,{replace:!0,force:!0}),ne).catch(zs);return}d=ne;const w=c.value;_s&&Vp(Ta(w.fullPath,q.delta),so()),C(ne,w).catch($=>Ot($,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?$:Ot($,Be.NAVIGATION_GUARD_REDIRECT)?(Z(Ae(j($.to),{force:!0}),ne).then(I=>{Ot(I,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!q.delta&&q.type===zo.pop&&r.go(-1,!1)}).catch(zs),Promise.reject()):(q.delta&&r.go(-q.delta,!1),P($,ne,w))).then($=>{$=$||A(ne,w,!1),$&&(q.delta&&!Ot($,Be.NAVIGATION_CANCELLED)?r.go(-q.delta,!1):q.type===zo.pop&&Ot($,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),M(ne,w,$)}).catch(zs)}))}let h=Os(),p=Os(),g;function P(F,Q,q){z(F);const ne=p.list();return ne.length?ne.forEach(_e=>_e(F,Q,q)):console.error(F),Promise.reject(F)}function O(){return g&&c.value!==Gt?Promise.resolve():new Promise((F,Q)=>{h.add([F,Q])})}function z(F){return g||(g=!F,k(),h.list().forEach(([Q,q])=>F?q(F):Q()),h.reset()),F}function X(F,Q,q,ne){const{scrollBehavior:_e}=e;if(!_s||!_e)return Promise.resolve();const w=!q&&Hp(Ta(F.fullPath,0))||(ne||!q)&&history.state&&history.state.scroll||null;return Me().then(()=>_e(F,Q,w)).then($=>$&&Bp($)).catch($=>P($,F,Q))}const ie=F=>r.go(F);let ye;const Ce=new Set,De={currentRoute:c,listening:!0,addRoute:b,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:S,resolve:E,options:e,push:B,replace:Y,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:o.add,afterEach:l.add,onError:p.add,isReady:O,install(F){F.component("RouterLink",Ie),F.component("RouterView",bm),F.config.globalProperties.$router=De,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>D(c)}),_s&&!ye&&c.value===Gt&&(ye=!0,B(r.location).catch(ne=>{}));const Q={};for(const ne in Gt)Object.defineProperty(Q,ne,{get:()=>c.value[ne],enumerable:!0});F.provide(no,De),F.provide(_r,Mi(Q)),F.provide(Ko,c);const q=F.unmount;Ce.add(F),F.unmount=function(){Ce.delete(F),Ce.size<1&&(d=Gt,G&&G(),G=null,c.value=Gt,ye=!1,g=!1),q()}}};function Se(F){return F.reduce((Q,q)=>Q.then(()=>T(q)),Promise.resolve())}return De}function vr(){return bt(no)}function yr(e){return bt(_r)}const zl="https://cupdf.org/api",km="cupdf_frontend_2024",xm="cupdf_secret_key_2024_secure",be=Ue.create({baseURL:zl,headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:3e4});let Fs=null,$n=null;const Wl=async()=>{try{if(Fs&&$n&&Date.now()<$n)return Fs;const e=await Ue.post(`${zl}/auth/token`,{api_key:km,api_secret:xm});if(e.data.success&&e.data.data.access_token){Fs=e.data.data.access_token;const t=e.data.data.expires_in||86400;return $n=Date.now()+t*1e3,Fs}throw new Error("Failed to get access token")}catch(e){throw console.error("Auth token error:",e),e}};be.interceptors.request.use(async e=>{try{const t=await Wl();return t&&(e.headers.Authorization=`Bearer ${t}`),e}catch(t){return Promise.reject(t)}},e=>Promise.reject(e));be.interceptors.response.use(e=>e.data&&e.data.success?e.data:e,async e=>{if(e.response&&e.response.status===401){Fs=null,$n=null;const s=e.config;if(!s._retry){s._retry=!0;const n=await Wl();return s.headers.Authorization=`Bearer ${n}`,be(s)}}const t=e.response?.data?.message||e.message||"An error occurred";return console.error("API Error:",t),Promise.reject({message:t,status:e.response?.status,data:e.response?.data})});const Kl=async()=>
31{try{return await be.get("/page/home")}catch(e){throw e}},Gl=async e=>{try{return await be.get(`/figure-grounds/state-data/${e}`)}catch(t){throw t}},Ql=async()=>{try{return await be.get("/page/about")}catch(e){throw e}},Jl=async()=>{try{return await be.get("/page/terms")}catch(e){throw e}},Yl=async()=>{try{return await be.get("/page/data")}catch(e){throw e}},Xl=async()=>{try{return await be.get("/contact/info")}catch(e){throw e}},Em=async()=>{try{return await be.get("/career/listing")}catch(e){throw e}},$m=async e=>{try{return await be.get(`/career/detail/${e}`)}catch(t){throw t}},Sm=async()=>{try{return await be.get("/people/listing")}catch(e){throw e}},Cm=async e=>{try{return await be.get(`/people/detail/${e}`)}catch(t){throw t}},Tm=async(e=1)=>{try{return await be.get("/newsletter/listing",{params:{page:e}})}catch(t){throw t}},Am=async(e=1)=>{try{return await be.get("/publication/listing",{params:{page:e}})}catch(t){throw t}},Rm=async e=>{try{return await be.post("/publication/listing/filter",e)}catch(t){throw t}},Pm=async e=>{try{return await be.get(`/publication/detail/${e}`)}catch(t){throw t}},br=async(e=null)=>{try{const t=e?{study_type:e}:{};return await be.get("/master-data",{params:t})}catch(t){throw t}},Zl=async e=>{try{return await be.get(`/city-data/${e}`)}catch(t){throw t}},ec=async()=>{try{return await be.get("/resources/listing")}catch(e){throw e}},tc=async e=>{try{return await be.get(`/resources/detail/${e}`)}catch(t){throw t}},sc=async(e={})=>{try{return await be.get("/urban-morphology/listing",{params:e})}catch(t){throw t}},nc=async e=>{try{return await be.get(`/urban-morphology/detail/${e}`)}catch(t){throw t}},Im=async(e=1,t=1)=>{try{return await be.get("/event/listing",{params:{upcoming_page:e,completed_page:t}})}catch(s){throw s}},Dm=async e=>{try{return await be.get(`/event/detail/${e}`)}catch(t){throw t}},Lm=async e=>{try{return await be.post("/project-download-request",e)}catch(t){throw t}},Om=async e=>{try{return await be.post("/dataset-download-request",e)}catch(t){throw t}},oc=async(e={})=>{try{return await be.get("/figure-grounds/listing",{params:e})}catch(t){throw t}},rc=async e=>{try{return await be.get(`/figure-grounds/detail/${e}`)}catch(t){throw t}},ac=async()=>{try{return await be.get("/morphology-types")}catch(e){throw e}},ic=async(e={})=>{try{return await be.get("/urban-morphology-studies",{params:e})}catch(t){throw t}},lc=async()=>{try{return await be.get("/urban-morphology-dropdown")}catch(e){throw e}},Go=async e=>{try{return await be.get("/urban-morphology-image",{params:e})}catch(t){throw t}},cc=async()=>{try{return await be.get("/figure-grounds/compare-studies")}catch(e){throw e}},uc=async()=>{try{return await be.get("/figure-grounds/compare-dropdown")}catch(e){throw e}},dc=async e=>{try{return await be.get(`/figure-grounds/compare-image/${e}`)}catch(t){throw t}},jm=async(e,t=1,s=18)=>{try{const n={q:e,page:t,per_page:s};return await be.get("/search",{params:n})}catch(n){throw n}},un=Object.freeze(Object.defineProperty({__proto__:null,getAboutPage:Ql,getCareerDetail:$m,getCareerListing:Em,getCityData:Zl,getContactInfo:Xl,getDataPage:Yl,getEventsDetail:Dm,getEventsListing:Im,getFigureGroundsCompareDropdown:uc,getFigureGroundsCompareImage:dc,getFigureGroundsCompareStudies:cc,getFigureGroundsDetail:rc,getFigureGroundsListing:oc,getFigureGroundsStateData:Gl,getHomePage:Kl,getMasterData:br,getMorphologyTypes:ac,getNewsletterListing:Tm,getPeopleDetail:Cm,getPeopleListing:Sm,getPublicationDetail:Pm,getPublicationsFiltered:Rm,getPublicationsListing:Am,getResourceDetail:tc,getResourcesListing:ec,getTermsPage:Jl,getUrbanMorphologyDetail:nc,getUrbanMorphologyDropdown:lc,getUrbanMorphologyImage:Go,getUrbanMorphologyListing:sc,getUrbanMorphologyStudies:ic,searchSite:jm,submitDatasetDownloadRequest:Om,submitProjectDownloadRequest:Lm},Symbol.toStringTag,{value:"Module"})),gn=K(null),Eo=K(!1),$o=K(null);function oo(){const e=K(!1),t=K(null),s=K(null),n=K(null),r=async u=>{e.value=!0,t.value=null,s.value=null,n.value=null;try{const _=await u();if(_.success)return s.value=_.data,_.seo&&(n.value=_.seo),_.data;throw new Error(_.message||"Failed to fetch page data")}catch(_){throw t.value=_.message||"An error occurred while fetching data",_}finally{e.value=!1}};return{loading:e,error:t,data:s,seo:n,contactInfo:gn,contactLoading:Eo,contactError:$o,fetchHomePage:()=>r(Kl),fetchAboutPage:()=>r(Ql),fetchTermsPage:()=>r(Jl),fetchDataPage:()=>r(Yl),fetchContactInfo:async()=>{e.value=!0,t.value=null,n.value=null,Eo.value=!0,$o.value=null;try{const u=await Xl();if(u.success)return gn.value=u.data,s.value=u.data,u.seo&&(n.value=u.seo),u.data;throw new Error(u.message||"Failed to fetch contact info")}catch(u){throw $o.value=u.message||"An error occurred while fetching contact info",t.value=u.message||"An error occurred while fetching contact info",u}finally{Eo.value=!1,e.value=!1}},getPageLabel:u=>gn.value?.pages_modules&&gn.value.pages_modules.find(b=>b.id===u)?.label||""}}function Fm(){const e=K(!1),t=K(null),s=K(null),n=K(null),r=K(null),a=K(null);
31return{loading:e,error:t,resources:s,resourceDetail:n,pageHeader:r,seo:a,fetchResourcesListing:async()=>{e.value=!0,t.value=null,s.value=null,r.value=null,a.value=null;try{const c=await ec();if(c.success)return s.value=c.data,r.value=c.page_header,a.value=c.seo,c;throw new Error(c.message||"Failed to fetch resources listing")}catch(c){throw t.value=c.message||"An error occurred while fetching resources",console.error("Error fetching resources listing:",c),c}finally{e.value=!1}},fetchResourceDetail:async c=>{e.value=!0,t.value=null,n.value=null,a.value=null;try{const d=await tc(c);if(d.success)return n.value=d.data,a.value=d.seo,d.data;throw new Error(d.message||"Failed to fetch resource detail")}catch(d){throw t.value=d.message||"An error occurred while fetching resource detail",console.error("Error fetching resource detail:",d),d}finally{e.value=!1}}}}const pt=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Mm={class:"container mw-100 position-relative"},Nm={class:"navbar-brand d-flex align-items-center gap-3"},Um={class:"collapse navbar-collapse nav-menu",id:"mainNav"},Bm={class:"header-menu-fixd"},Vm={class:"navbar-nav mx-auto justify-content-end align-items-center inner-menu"},Hm={class:"dropdown-menu"},qm=["href"],zm={class:"nav-search-icon-con nav-icon-btn m-0 search-icon-magnifying",id:"search_icon"},Wm={class:"input-group add-on"},Km={__name:"Header",setup(e){const t=yr(),s=vr(),n=K(""),r=K(!1),{fetchContactInfo:a,getPageLabel:o}=oo(),{resources:l,fetchResourcesListing:c}=Fm();Qe(async()=>{try{await a()}catch(T){console.warn("Failed to load contact info for navigation labels:",T)}try{await c()}catch(T){console.warn("Failed to load resources for navigation menu:",T)}});const d=pe(()=>o(2)),f=pe(()=>o(3)),u=pe(()=>o(4)),_=pe(()=>o(6)),b=pe(()=>o(5)),y=pe(()=>!l.value||!Array.isArray(l.value)?[]:l.value.filter(T=>T.add_on_navigation===1)),S=pe(()=>t.path==="/"),x=T=>!!(t.path===T||T==="/about"&&t.path.startsWith("/people")||T==="/publication"&&t.path.startsWith("/publication")||T==="/resources"&&t.path.startsWith("/resources")||T==="/events"&&t.path.startsWith("/events")),E=T=>{if(!T.resource_id)return"#";if(T.tab_activation==1)return T.resource_id===1?"/resources/study-of-urban-morphology":T.resource_id===2?"/resources/figure-grounds-of-indian-cities":"/resources/"+T.slug;if(!T.link_url||T.link_url.trim()==="")return"#";try{let C=T.link_url.trim();return/^https?:\/\//i.test(C)||(C=`https://${C}`),new URL(C).href}catch{return"#"}},j=T=>T?.tab_activation!=1&&!!T?.link_url?.trim(),U=T=>{const C=E(T);return t.path.startsWith(C)},B=T=>{if(t.path==="/publications"&&Object.keys(t.query).length>0){T.preventDefault(),s.replace({name:"publications",query:{}});return}},Y=T=>{T&&T.stopPropagation(),r.value=!r.value,r.value&&re(),r.value&&Me(()=>{const C=document.getElementById("s");C&&C.focus()})},re=()=>{const T=document.querySelector(".navbar-toggler"),C=document.getElementById("mainNav");if(T&&C)if(window.bootstrap){const M=window.bootstrap.Collapse.getInstance(C);M&&M.hide()}else C.classList.remove("show"),T.classList.add("collapsed"),T.setAttribute("aria-expanded","false")},Z=T=>{const C=document.getElementById("search_icon"),M=document.querySelector(".header-search"),A=document.getElementById("search_toggle");if(r.value&&C&&M){const G=A&&A.contains(T.target),k=C.contains(T.target)||M.contains(T.target);!G&&!k&&(r.value=!1)}},fe=T=>{T&&T.preventDefault();let C=n.value?n.value.trim():"";C&&(s.push({path:"/search-result",query:{q:C}}),n.value="",r.value=!1)};return Qe(()=>{document.addEventListener("click",Z)}),an(()=>{document.removeEventListener("click",Z)}),(T,C)=>(m(),v("nav",{class:Ne(["navbar navbar-expand-xl container-fluid main-navbar fixed-top",{"is-home-page":S.value,"search-open":r.value}])},[i("div",Mm,[C[6]||(C[6]=i("button",{class:"navbar-toggler collapsed order-last order-xl-first",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNav","aria-controls":"mainNav","aria-expanded":"false","aria-label":"Toggle navigation"},[i("i",{class:"bi bi-list"})],-1)),i("div",Nm,[ke(D(Ie),{to:"/"},{default:we(()=>[...C[1]||(C[1]=[i("img",{src:hp,alt:"CUPDF Logo",class:"cupdf-logo logo-page-main"},null,-1)])]),_:1}),C[2]||(C[2]=i("div",{class:"img-line logo-page-line"},null,-1)),C[3]||(C[3]=i("img",{src:gp,alt:"CEPT University Logo",class:"cept-logo logo-page-cept"},null,-1))]),i("div",Um,[i("div",Bm,[i("ul",Vm,[i("li",{class:Ne(["nav-item",{active:x("/about")||x("/people")}])},[ke(D(Ie),{class:"nav-link btn-2",to:"/about"},{default:we(()=>[i("span",null,R(d.value),1)]),_:1})],2),i("li",{class:Ne(["nav-item",{active:x("/publications")||x("/publication")}])},[ke(D(Ie),{class:"nav-link btn-2",to:"/publications",onClick:B},{default:we(()=>[i("span",null,R(f.value),1)]),_:1})],2),i("li",{class:Ne(["nav-item dropend",{active:x("/resources")}])},[ke(D(Ie),{class:"nav-link btn-2 main-link",to:"/resources"},{default:we(()=>[i("span",null,R(u.value),1)]),_:1}),C[4]||(C[4]=i("span",{class:"toggle-icon submenu-toggle d-xl-none",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[i("i",{class:"bi bi-plus-lg"})],-1)),i("ul",Hm,[(m(!0),v(ae,null,xe(y.value,M=>(m(),v("li",{key:M.resource_id,class:Ne({active:U(M)})},[j(M)?(m(),v("a",{key:0,class:"dropdown-item nav-link btn-2",href:E(M),target:"_blank",rel:"noopener"},[i("span",null,R(M.title),1)],8,qm)):(m(),We(D(Ie),{key:1,class:"dropdown-item nav-link btn-2",to:E(M)},{default:we(()=>[i("span",null,R(M.title),1)]),_:2},1032,["to"]))],2))),128))])],2),i("li",{class:Ne(["nav-item",{active:x("/ideas-for-indian-cities")}])},[ke(D(Ie),{class:"nav-link btn-2",to:"/ideas-for-indian-cities"},{default:we(()=>[i("span",null,R(b.value),1)]),_:1})],2),i("li",{class:Ne(["nav-item",{active:x("/events")||x("/events")}])},[ke(D(Ie),{class:"nav-link btn-2",to:"/events"},{default:we(()=>[i("span",null,R(_.value),1)]),_:1})],2)])])]),i("div",zm,[i("a",{class:"nav-icon-btn m-0 search-toggle-btn",id:"search_toggle",onClick:zt(Y,["prevent"])},[i("i",{class:Ne(["bi bi-search search-icon",{"d-none":r.value}])},null,2),i("i",{class:Ne(["bi bi-x-lg close-icon",{"d-none":!r.value}])},null,2)]),i("div",{class:Ne(["header-search",{active:r.value}])},[i("form",{class:"mb-0",onSubmit:zt(fe,["prevent"])},[i("div",Wm,[he(i("input",{class:"form-control",placeholder:"Enter Keyword",name:"s",id:"s",type:"text","onUpdate:modelValue":C[0]||(C[0]=M=>n.value=M)},null,512),[[ze,n.value]]),C[5]||(C[5]=i("div",{class:"input-group-btn"},[i("button",{class:"btn btn-default",type:"submit"},[i("i",{class:"bi bi-search"}
31)])],-1))])],32)],2)])])],2))}},Gm=pt(Km,[["__scopeId","data-v-a767d018"]]),Qm={class:"footer container-fluid py-2 mt-4"},Jm={class:"container mw-100"},Ym={class:"row align-items-center",id:"desktopfooter"},Xm={class:"col-lg-3 col-xl-4 col-xxl-4 order-2 order-sm-2 order-md-2 order-lg-1 copy-right"},Zm={class:"mb-0 d-flex align-items-center justify-content-center justify-content-md-start",style:{"padding-top":"5px"}},eh={class:"col-lg-9 col-xl-8 col-xxl-8 d-flex footer-links justify-content-end align-items-center gap-3 order-1 order-sm-1 order-md-1"},th={class:"nav justify-content-lg-end justify-content-md-center w-100",style:{"padding-top":"5px"}},sh={class:"moblie-gap social-icons d-flex gap-3 ms-3 justify-content-center justify-content-md-end"},nh=["href"],oh=["href"],rh=["href"],ah=["href"],ih=["href"],lh=["href"],ch={class:"row align-items-center",id:"mobliefooter"},uh={class:"col-8 col-sm-8 col-md-8 order-2 order-sm-2 order-md-2 order-lg-1 copy-right"},dh={class:"mb-0 d-flex align-items-center justify-content-center justify-content-md-start",style:{"padding-top":"5px"}},fh={class:"col-sm-12 col-md-12 d-flex footer-links justify-content-end align-items-center gap-3 order-1 order-sm-1 order-md-1"},ph={class:"nav justify-content-center w-100",style:{"padding-top":"5px"}},mh={class:"col-4 col-sm-4 col-md-4 col-xxl-2 d-flex justify-content-end align-items-center gap-3 order-3"},hh={class:"moblie-gap social-icons d-flex gap-3 ms-3 justify-content-center justify-content-md-end"},gh=["href"],_h=["href"],vh=["href"],yh=["href"],bh=["href"],wh=["href"],kh={__name:"Footer",setup(e){const t=K({facebook:"",twitter:"",instagram:"",linkedin:"",youtube:"",substack:""}),{contactInfo:s,fetchContactInfo:n,getPageLabel:r}=oo(),a=pe(()=>r(8)||"Careers"),o=pe(()=>r(9)||"Contact"),l=pe(()=>r(7)||"Terms and Conditions"),c=pe(()=>new Date().getFullYear()),d=async()=>{try{await n(),s.value?.social_media&&(t.value=s.value.social_media)}catch(f){console.error("Failed to fetch footer data:",f)}};return Qe(()=>{d()}),(f,u)=>(m(),v(ae,null,[u[16]||(u[16]=i("a",{href:"#",class:"fab"},[i("i",{class:"bi bi-chevron-up"})],-1)),i("footer",Qm,[i("div",Jm,[i("div",Ym,[i("div",Xm,[i("p",Zm,[u[0]||(u[0]=i("i",{class:"bi bi-c-circle"},null,-1)),ce("Â "+R(c.value)+" CUPDF, All rights reserved. ",1)])]),i("div",eh,[i("nav",th,[ke(D(Ie),{class:"nav-link text-secondary",to:"/careers"},{default:we(()=>[ce(R(a.value),1)]),_:1}),ke(D(Ie),{class:"nav-link text-secondary",to:"/contact"},{default:we(()=>[ce(R(o.value),1)]),_:1}),ke(D(Ie),{class:"nav-link text-secondary",to:"/terms-and-conditions"},{default:we(()=>[ce(R(l.value),1)]),_:1}),u[7]||(u[7]=i("a",{class:"nav-link text-secondary",href:"https://cept.ac.in/",target:"_blank"},"CEPT university",-1)),i("div",sh,[t.value.facebook?(m(),v("a",{key:0,href:t.value.facebook,target:"_blank",class:"text-secondary fs-5"},[...u[1]||(u[1]=[i("i",{class:"bi bi-facebook"},null,-1)])],8,nh)):N("",!0),t.value.twitter?(m(),v("a",{key:1,href:t.value.twitter,target:"_blank",class:"text-secondary fs-5"},[...u[2]||(u[2]=[i("i",{class:"bi bi-twitter"},null,-1)])],8,oh)):N("",!0),t.value.instagram?(m(),v("a",{key:2,href:t.value.instagram,target:"_blank",class:"text-secondary fs-5"},[...u[3]||(u[3]=[i("i",{class:"bi bi-instagram"},null,-1)])],8,rh)):N("",!0),t.value.linkedin?(m(),v("a",{key:3,href:t.value.linkedin,target:"_blank",class:"text-secondary fs-5"},[...u[4]||(u[4]=[i("i",{class:"bi bi-linkedin"},null,-1)])],8,ah)):N("",!0),t.value.youtube?(m(),v("a",{key:4,href:t.value.youtube,target:"_blank",class:"text-secondary fs-5"},[...u[5]||(u[5]=[i("i",{class:"bi bi-youtube"},null,-1)])],8,ih)):N("",!0),t.value.substack?(m(),v("a",{key:5,href:t.value.substack,target:"_blank",class:"text-secondary fs-5"},[...u[6]||(u[6]=[i("i",{class:"bi bi-substack"},null,-1)])],8,lh)):N("",!0)])])])]),i("div",ch,[i("div",uh,[i("p",dh,[u[8]||(u[8]=i("i",{class:"bi bi-c-circle"},null,-1)),ce("Â "+R(c.value)+" CUPDF, All rights reserved. ",1)])]),i("div",fh,[i("nav",ph,[ke(D(Ie),{class:"nav-link text-secondary",to:"/careers"},{default:we(()=>[ce(R(a.value),1)]),_:1}),ke(D(Ie),{class:"nav-link text-secondary",to:"/contact"},{default:we(()=>[ce(R(o.value),1)]),_:1}),ke(D(Ie),{class:"nav-link text-secondary",to:"/terms-and-conditions"},{default:we(()=>[ce(R(l.value),1)]),_:1}),u[9]||(u[9]=i("a",{class:"nav-link text-secondary pe-0",href:"https://cept.ac.in/",target:"_blank"},"CEPT university",-1))])]),i("div",mh,[i("div",hh,[t.value.facebook?(m(),v("a",{key:0,href:t.value.facebook,target:"_blank",class:"text-secondary fs-5"},[...u[10]||(u[10]=[i("i",{class:"bi bi-facebook"},null,-1)])],8,gh)):N("",!0),t.value.twitter?(m(),v("a",{key:1,href:t.value.twitter,target:"_blank",class:"text-secondary fs-5"},[...u[11]||(u[11]=[i("i",{class:"bi bi-twitter"},null,-1)])],8,_h)):N("",!0),t.value.instagram?(m(),v("a",{key:2,href:t.value.instagram,target:"_blank",class:"text-secondary fs-5"},[...u[12]||(u[12]=[i("i",{class:"bi bi-instagram"},null,-1)])],8,vh)):N("",!0),t.value.linkedin?(m(),v("a",{key:3,href:t.value.linkedin,target:"_blank",class:"text-secondary fs-5"},[...u[13]||(u[13]=[i("i",{class:"bi bi-linkedin"},null,-1)])],8,yh)):N("",!0),t.value.youtube?(m(),v("a",{key:4,href:t.value.youtube,target:"_blank",class:"text-secondary fs-5"},[...u[14]||(u[14]=[i("i",{class:"bi bi-youtube"},null,-1)])],8,bh)):N("",!0),t.value.substack?(m(),v("a",{key:5,href:t.value.substack,target:"_blank",class:"text-secondary fs-5"},[...u[15]||(u[15]=[i("i",{class:"bi bi-substack"},null,-1)])],8,wh)):N("",!0)])])])])])],64))}},xh={id:"app"},Eh={__name:"App",setup(e){const{fetchContactInfo:t}=oo(),s=n=>{if(!n)return;document.querySelectorAll('link[rel*="icon"]').forEach(l=>l.remove());const a=document.createElement("link");a.rel="icon",a.type="image/x-icon",a.href=n,document.head.appendChild(a);const o=document.createElement("link");o.rel="shortcut icon",o.type="image/x-icon",o.href=n,document.head.appendChild(o)};return Qe(async()=>{try{const n=await t();n&&n.front_side_favicon&&s(n.front_side_favicon)}catch(n){console.warn("Failed to load favicon from API:",n)}}),(n,r)=>{const a=dr("router-view");return m(),v("div",xh,[ke(Gm),ke(a),ke(kh)])}}},$h="modulepreload",Sh=function(e){return"/build/"+e},Ba={},Ee=function(t,s,n){let r=Promise.resolve();if(s&&s.length>0){let c=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");r=c(s.map(d=>{if(d=Sh(d),d in Ba)return;Ba[d]=!0;const f=d.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${u}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":$h,f||(_.as="script"),_.crossOrigin="",_.href=d,l&&_.setAttribute("nonce",l),document.head.appendChild(_),f)return new Promise((b,y)=>{_.addEventListener("load",b),_.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};function ns(){const e=K(!1);return Qe(()=>{e.value=window.innerWidth<768,window.addEventListener("resize",()=>{e.value=window.innerWidth<768})}),{responsiveImage:s=>{if(!s)return s;if(e.value){const n=s.split("/"),r=n.pop();return[...n,"mobile-"+r].join("/")}return s}}}const Ch={},Th={class:"skeleton-loading"},Ah={class:"section-padding container-fluid pt-0"},Rh={class:"container mw-100"},Ph={class:"row g-5 home-approch-section"};function Ih(e,t){return m(),v("main",Th,[t[3]||(t[3]=na('<section data-v-c149ba48><div class="hero-section container-fluid position-relative d-flex align-items-center" data-v-c149ba48><div class="container mw-100" data-v-c149ba48><div class="hero-logos d-flex flex-column flex-md-row align-items-center justify-content-center" data-v-c149ba48><div class="d-flex flex-column flex-md-row align-items-center justify-content-center gap-4 gap-md-4" data-v-c149ba48><div class="skeleton-box" style="width:240px;height:45px;" data-v-c149ba48></div><div class="skeleton-box" style="width:2px;height:50px;" data-v-c149ba48></div><div class="skeleton-box" style="width:100px;height:45px;" data-v-c149ba48></div></div></div></div></div></section><section class="section-padding container-fluid about-home" data-v-c149ba48><div class="container mw-100" data-v-c149ba48><hr class="section-divider my-0" data-v-c149ba48><div class="skeleton-box mt-3 mb-3" style="width:120px;height:20px;" data-v-c149ba48></div><div class="row gx-5 gy-5 about-main about-top-space" data-v-c149ba48><div class="col-lg-4" data-v-c149ba48><div class="skeleton-box mb-3" style="width:80%;height:40px;" data-v-c149ba48></div><div class="skeleton-box mb-3" style="width:100%;height:80px;" data-v-c149ba48></div><div class="skeleton-box" style="width:120px;height:40px;" data-v-c149ba48></div></div><div class="col-lg-8" data-v-c149ba48><div class="skeleton-box" style="width:100%;aspect-ratio:16/9;" data-v-c149ba48></div></div></div></div></section><section class="section-padding container-fluid pt-0" data-v-c149ba48><div class="container mw-100" data-v-c149ba48><hr class="section-divider my-0" data-v-c149ba48><div class="skeleton-box mt-3 mb-3" style="width:150px;height:20px;" data-v-c149ba48></div><div class="skeleton-box" style="width:100%;height:100px;" data-v-c149ba48></div></div></section>',3)),i("section",Ah,[i("div",Rh,[t[1]||(t[1]=i("hr",{class:"section-divider my-0"},null,-1)),t[2]||(t[2]=i("div",{class:"skeleton-box mt-3 mb-4",style:{width:"150px",height:"20px"}},null,-1)),i("div",Ph,[(m(),v(ae,null,xe(3,s=>i("div",{class:"col-lg-4 col-md-6 d-flex pe-0",key:s},[...t[0]||(t[0]=[i("div",{class:"d-flex flex-column w-100"},[i("div",{class:"skeleton-box mb-3",style:{width:"100%","aspect-ratio":"4/3"}}),i("div",{class:"skeleton-box mb-2",style:{width:"70%",height:"30px"}}),i("div",{class:"skeleton-box mb-3",style:{width:"100%",height:"60px"}})],-1)])])),64))])])]),t[4]||(t[4]=na('<section class="section-padding container-fluid pt-0 newsletter-section" data-v-c149ba48><div class="container mw-100" data-v-c149ba48><hr class="section-divider my-0" data-v-c149ba48><div class="skeleton-box mt-3 mb-4" style="width:120px;height:20px;" data-v-c149ba48></div><div class="row g-5 mt-0" data-v-c149ba48><div class="col-lg-4" data-v-c149ba48><div class="skeleton-box mb-3" style="width:80%;height:50px;" data-v-c149ba48></div><div class="skeleton-box mb-4" style="width:100%;height:80px;" data-v-c149ba48></div></div><div class="col-lg-8" data-v-c149ba48><div class="skeleton-box mb-4" style="width:100%;aspect-ratio:16/9;" data-v-c149ba48></div><div class="skeleton-box" style="width:100%;aspect-ratio:16/9;" data-v-c149ba48></div></div></div></div></section><section class="section-padding infra-fixed-slider-con pt-0" data-v-c149ba48><div class="container-fluid" data-v-c149ba48><div class="container mw-100" data-v-c149ba48><hr class="section-divider my-0" data-v-c149ba48>
31<div class="skeleton-box mt-3 mb-4" style="width:200px;height:20px;" data-v-c149ba48></div></div></div><div class="container-fluid pe-0" data-v-c149ba48><div class="container mw-100 pe-0" data-v-c149ba48><div class="row g-5" data-v-c149ba48><div class="col-lg-5 col-xl-4" data-v-c149ba48><div class="skeleton-box mb-4" style="width:100%;height:80px;" data-v-c149ba48></div></div><div class="col-lg-7 col-xl-8" data-v-c149ba48><div class="skeleton-box" style="width:100%;aspect-ratio:16/9;" data-v-c149ba48></div></div></div></div></div></section>',2))])}const Dh=pt(Ch,[["render",Ih],["__scopeId","data-v-c149ba48"]]);function wr(){const e=[],t=a=>{a?document.title=`${a} | CUPDF - CEPT University`:document.title="A Centre of Excellence for Research and Capacity Building | CUPDF - CEPT University"},s=(a,o,l)=>{if(!l)return;let c=document.querySelector(`meta[${a}="${o}"]`);c||(c=document.createElement("meta"),c.setAttribute(a,o),document.head.appendChild(c),e.push({attribute:a,key:o})),c.setAttribute("content",l)},n=a=>{if(!a||!a.title){document.title="A Centre of Excellence for Research and Capacity Building | CUPDF - CEPT University";const o=document.querySelector('meta[name="description"]');o&&o.setAttribute("content","CUPDF creates knowledge, supports reform initiatives, and builds professional capacity to improve the practice of urban planning and design in India.");const l=document.querySelector('meta[name="keywords"]');l&&l.setAttribute("content","urban planning, urban design, urban development, urban management, urban policy, urban research, urban education");const c=document.querySelector('meta[property="og:title"]');c&&c.setAttribute("content","A Centre of Excellence for Research and Capacity Building | CUPDF - CEPT University");const d=document.querySelector('meta[property="og:description"]');d&&d.setAttribute("content","CUPDF creates knowledge, supports reform initiatives, and builds professional capacity to improve the practice of urban planning and design in India.");const f=document.querySelector('meta[property="og:url"]');f&&f.setAttribute("content",window.location.href);const u=document.querySelector('meta[name="twitter:title"]');u&&u.setAttribute("content","A Centre of Excellence for Research and Capacity Building | CUPDF - CEPT University");const _=document.querySelector('meta[name="twitter:description"]');_&&_.setAttribute("content","CUPDF creates knowledge, supports reform initiatives, and builds professional capacity to improve the practice of urban planning and design in India.");const b=document.querySelector('meta[name="twitter:url"]');b&&b.setAttribute("content",window.location.href);return}t(a.title),s("name","description",a.description),s("name","keywords",a.keywords),s("property","og:title",a.title),s("property","og:description",a.description),s("property","og:url",a.url||window.location.href),s("property","og:type",a.type||"website"),s("name","twitter:card","summary_large_image"),s("name","twitter:title",a.title),s("name","twitter:description",a.description)},r=()=>{e.forEach(({attribute:a,key:o})=>{const l=document.querySelector(`meta[${a}="${o}"]`);l&&l.remove()}),e.length=0};return an(()=>{}),{setTitle:t,setMetaTag:s,setSeoTags:n,clearSeoTags:r}}const Lh={key:"content"},Oh={class:"hero-section container-fluid position-relative d-flex align-items-center"},jh={class:"container mw-100"},Fh={class:"hero-logos d-flex flex-column flex-md-row align-items-center justify-content-center"},Mh={class:"d-flex flex-column flex-md-row align-items-center justify-content-center gap-4 gap-md-4"},Nh=["src"],Uh=["src"],Bh={key:0,id:"about-us",class:"section-padding container-fluid about-home"},Vh={class:"container mw-100"},Hh={key:0,class:"section-heading-sm pt-3 mb-0"},qh={class:"row gx-5 gy-5 about-main about-top-space"},zh={class:"col-lg-4"},Wh={class:"newsletter"},Kh={key:0,class:"section-heading-lg"},Gh=["innerHTML"],Qh={key:0,class:"about-main-head"},Jh={class:"sub-nav"},Yh=["href"],Xh={key:0,class:"col-lg-8"},Zh=["src"],eg={key:1,class:"section-padding container-fluid pt-0"},tg={class:"container mw-100"},sg={key:0,class:"section-heading-sm pt-3 mb-0"},ng={key:1,class:"about-main approch-main"},og={key:0,class:"custom-blockquote mb-0"},rg={key:2,class:"section-padding container-fluid pt-0"},ag={class:"container mw-100"},ig={class:"about-main approch-main"},lg={class:"row g-5 home-approch-section"},cg=["href"],ug=["src","alt"],dg=["src","alt"],fg=["src","alt"],pg={class:"pt-4 flex-fill d-flex flex-column"},mg={key:0,class:"card-title featured-heading"},hg=["href"],gg={key:1,class:"card-text text-muted"},_g={key:2,class:"mt-auto about-main-head"},vg={class:"sub-nav"},yg=["href"],bg={key:3,class:"section-padding container-fluid pt-0 newsletter-section"},wg={class:"container mw-100"},kg={key:0,class:"section-heading-sm pt-3 mb-0"},xg={class:"row g-5 mt-0 align-items-end"},Eg={class:"col-lg-4 newsletter-left"},$g={class:"newsletter"},Sg={key:0,class:"mb-5"},Cg={key:0,class:"section-heading-lg"},Tg=["innerHTML"],Ag={key:1,class:"about-main-head"},Rg={class:"sub-nav"},Pg=["href"],Ig={key:0,class:"col-lg-8 newsletter-right"}
31,Dg={key:0,class:"col-sm-7 col-md-7 col-lg-8"},Lg={key:0,class:"mb-3"},Og=["href"],jg={key:1,class:"mb-5 text-muted card-text"},Fg={key:2,class:"newsletter-item-meta mb-0"},Mg={key:1,class:"col-sm-5 col-md-5 col-lg-4 text-end pe-0"},Ng=["href"],Ug=["src","alt"],Bg={key:4,class:"section-padding infra-fixed-slider-con pt-0"},Vg={class:"container-fluid"},Hg={class:"container mw-100"},qg={key:0,class:"section-heading-sm pt-3 mb-0",style:{"z-index":"3"}},zg={class:"container-fluid pe-0"},Wg={class:"container mw-100 pe-0"},Kg={class:"row align-items-end g-5 mt-0"},Gg={key:0,class:"col-lg-5 col-xl-4 pb-4 event-bg"},Qg=["innerHTML"],Jg={key:1,class:"about-main-head"},Yg={class:"sub-nav"},Xg=["href"],Zg={key:1,class:"col-lg-7 col-xl-8"},e_={class:"infra-fixed-slider-box"},t_={class:"infra-fixed-slider"},s_=["src"],n_={__name:"HomePage",setup(e){const{loading:t,data:s,seo:n,fetchHomePage:r}=oo(),{responsiveImage:a}=ns(),{setSeoTags:o}=wr(),l=S=>a(S);gt(n,S=>{S&&o({title:S.title,description:S.description,keywords:S.keywords,url:window.location.href,type:"website"})},{immediate:!0});const c=S=>{if(!s.value||!s.value[S])return!1;const x=s.value[S];if(S==="section-3")return Array.isArray(x)&&x.length>0&&x.some(j=>j&&(j.title||j.short_description||j.image));if(S==="section-4"){const j=x.label||x.title||x.short_description||x.link,U=x.newsletters&&Array.isArray(x.newsletters)&&x.newsletters.length>0;return j||U}if(S==="section-5"){const j=x.label||x.short_description||x.link,U=x.images&&Array.isArray(x.images)&&x.images.length>0;return j||U}return["label","title","short_description","image","link"].some(j=>x[j]&&x[j].toString().trim()!=="")},d=S=>{if(!S.resource_id)return"#";if(S.tab_activation==1)return S.resource_id===1?"/resources/study-of-urban-morphology":S.resource_id===2?"/resources/figure-grounds-of-indian-cities":"/resources/"+S.slug;if(!S.link_url||S.link_url.trim()==="")return"#";try{let x=S.link_url.trim();return/^https?:\/\//i.test(x)||(x=`https://${x}`),new URL(x).href}catch{return"#"}},f=S=>S?.tab_activation!=1&&!!S?.link_url?.trim(),u=S=>d(S)!=="#",_=["/assets/images/event-1.jpg","/assets/images/event-2.jpg","https://placehold.co/600x400/EFEFEF/CCCCCC?text=Event+3","https://placehold.co/600x400/EFEFEF/CCCCCC?text=Event+4"],b=()=>{window.jQuery&&setTimeout(()=>{const S=window.jQuery(".infra-fixed-slider"),x=S.find(".infra-fixed-slide-col").length;S.hasClass("slick-initialized")&&S.slick("unslick"),x>1?S.slick({dots:!0,infinite:!0,speed:300,slidesToShow:1,variableWidth:!0,autoplay:!0,autoplaySpeed:3e3,arrows:!0,prevArrow:'<button type="button" class="slick-prev"><i class="bi bi-chevron-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="bi bi-chevron-right"></i></button>'}):x<=1&&window.jQuery(".infra-fixed-slider-arrow").hide()},200)},y=()=>{setTimeout(()=>{b()},50)};return Qe(async()=>{try{await r()}catch{}}),(S,x)=>(m(),v("div",null,[ke(to,{name:"fade",mode:"out-in",onAfterEnter:y},{default:we(()=>[D(t)?(m(),We(Dh,{key:"skeleton"})):D(s)?(m(),v("main",Lh,[i("section",null,[i("div",Oh,[i("div",jh,[i("div",Fh,[i("div",Mh,[i("img",{src:D(s).logos?.logo_1||"/assets/images/cupdf-logo-th.png",alt:"CUPDF Logo",class:"cupdf-logo"},null,8,Nh),x[0]||(x[0]=i("div",{class:"img-line"},null,-1)),i("img",{src:D(s).logos?.logo_2||"/assets/images/cept-logo.png",alt:"CEPT University Logo",class:"cept-logo"},null,8,Uh)])])]),x[1]||(x[1]=i("a",{href:"#about-us",class:"scroll-down-icon start-50 translate-middle-x"},[i("i",{class:"bi bi-chevron-down"})],-1))])]),c("section-1")?(m(),v("section",Bh,[i("div",Vh,[x[2]||(x[2]=i("hr",{class:"section-divider my-0"},null,-1)),D(s)["section-1"].label?(m(),v("p",Hh,[i("b",null,R(D(s)["section-1"].label),1)])):N("",!0),i("div",qh,[i("div",zh,[i("div",Wh,[i("div",null,[D(s)["section-1"].title?(m(),v("h1",Kh,R(D(s)["section-1"].title),1)):N("",!0),D(s)["section-1"].short_description?(m(),v("p",{key:1,class:"lead text-muted section-para ck-content ckeditorTag",innerHTML:D(s)["section-1"].short_description},null,8,Gh)):N("",!0)]),D(s)["section-1"].link?(m(),v("div",Qh,[i("div",Jh,[i("a",{href:D(s)["section-1"].link,class:"nav-link btn-2 ps-0 read-more-btn"},"Read More",8,Yh)])])):N("",!0)])]),D(s)["section-1"].image?(m(),v("div",Xh,[i("img",{src:l(D(s)["section-1"].image),alt:"CEPT University Building",class:"img-fluid w-100"},null,8,Zh)])):N("",!0)])])])):N("",!0),c("section-2")?(m(),v("section",eg,[i("div",tg,[x[3]||(x[3]=i("hr",{class:"section-divider my-0"},null,-1)),D(s)["section-2"].label?(m(),v("p",sg,[i("b",null,R(D(s)["section-2"].label),1)])):N("",!0),D(s)["section-2"].short_description?(m(),v("div",ng,[D(s)["section-2"].short_description?(m(),v("blockquote",og,R(D(s)["section-2"].short_description),1)):N("",!0)])):N("",!0)])])):N("",!0),c("section-3")?(m(),v("section",rg,[i("div",ag,[x[5]||(x[5]=i("hr",{class:"section-divider my-0"},null,-1)),x[6]||(x[6]=i("p",{class:"section-heading-sm pt-3 mb-0"},[i("b",null,"Featured Works")],-1)),i("div",ig,[i("div",lg,[(m(!0),v(ae,null,xe(D(s)["section-3"],(E,j)=>(m(),v("div",{class:"col-lg-4 col-md-6 d-flex pe-0",key:j},[i("div",{class:Ne(["featured-work-item",j<2?"border-end":"","d-flex flex-column"])},[u(E)?(m(),v(ae,{key:0},[f(E)?(m(),v("a",{key:0,href:d(E),target:"_blank",rel:"noopener"},[i("img",{src:E.image,class:"card-img-top",alt:E.title},null,8,ug)],8,cg)):(m(),We(D(Ie),{key:1,to:d(E)},{default:we(()=>[i("img",{src:E.image,class:"card-img-top",alt:E.title},null,8,dg)]),_:2},1032,["to"]))],64)):(m(),v("img",{key:1,src:E.image,class:"card-img-top",alt:E.title},null,8,fg)),i("div",pg,[E.title?(m(),v("h3",mg,[u(E)?(m(),v(ae,{key:0},[f(E)?(m(),v("a",{key:0,href:d(E),target:"_blank",rel:"noopener"},R(E.title),9,hg)):(m(),We(D(Ie),{key:1,to:d(E)},{default:we(()=>[ce(R(E.title),1)]),_:2},1032,["to"]))],64)):(m(),v(ae,{key:1},[ce(R(E.title),1)],64))])):N("",!0),E.short_description?(m(),v("p",gg,R(E.short_description),1)):N("",!0),d(E)!=="#"?(m(),v("div",_g,[i("div",vg,[f(E)?(m(),v("a",{key:0,href:d(E),class:"nav-link btn-2 ps-0 read-more-btn",target:"_blank",rel:"noopener"}," Read More ",8,yg)):(m(),We(D(Ie),{key:1,to:d(E),class:"nav-link btn-2 ps-0 read-more-btn"},{default:we(()=>[...x[4]||(x[4]=[ce(" Read More ",-1)])]),_:1},8,["to"]))])])):N("",!0)])],2)]))),128))])])])])):N("",!0),c("section-4")?(m(),v("section",bg,[i("div",wg,[x[7]||(x[7]=i("hr",{class:"section-divider my-0"},null,-1)),D(s)["section-4"].label?(m(),v("p",kg,[i("b",null,R(D(s)["section-4"].label),1)])):N("",!0),i("div",xg,[i("div",Eg,[i("div",$g,[D(s)["section-4"].title||D(s)["section-4"].short_description?(m(),v("div",Sg,[D(s)["section-4"].title?(m(),v("h2",Cg,R(D(s)["section-4"].title),1)):N("",!0),D(s)["section-4"].short_description?(m(),v("p",{key:1,class:"text-muted card-text ck-content ckeditorTag",innerHTML:D(s)["section-4"].short_description},null,8,Tg)):N("",!0)])):N("",!0),D(s)["section-4"].link?(m(),v("div",Ag,[i("div",Rg,[i("a",{href:D(s)["section-4"].link,class:"nav-link btn-2 ps-0 read-more-btn"},"Read More",8,Pg)])])):N("",!0)])]),D(s)["section-4"].newsletters&&D(s)["section-4"].newsletters.length>0?(m(),v("div",Ig,[(m(!0),v(ae,null,xe(D(s)["section-4"].newsletters,(E,j)=>(m(),v("div",{class:"newsletter-item row g-4 align-items-center",key:E.id},[E.title||E.short_description||E.pub_date||E.creator_name?(m(),v("div",Dg,[E.title?(m(),v("h4",Lg,[i("a",{href:E.link,target:"_blank",class:"text-decoration-none text-dark"},R(E.title),9,Og)])):N("",!0),E.short_description?(m(),v("p",jg,R(E.short_description),1)):N("",!0),E.pub_date||E.creator_name?(m(),v("p",Fg,R(E.pub_date)+R(E.pub_date&&E.creator_name?" ⢠":"")+R(E.creator_name),1)):N("",!0)])):N("",!0),E.image?(m(),v("div",Mg,[i("a",{href:E.link,target:"_blank"},[i("img",{src:E.image,class:"img-fluid newsletter-img",alt:E.title},null,8,Ug)],8,Ng)])):N("",!0)]))),128))])):N("",!0)])])])):N("",!0),c("section-5")?(m(),v("section",Bg,[i("div",Vg,[i("div",Hg,[x[8]||(x[8]=i("hr",{class:"section-divider my-0 event-bg"},null,-1)),D(s)["section-5"].label?(m(),v("p",qg,[i("b",null,R(D(s)["section-5"].label),1)])):N("",!0)])]),i("div",zg,[i("div",Wg,[i("div",Kg,[D(s)["section-5"].short_description||D(s)["section-5"].link?(m(),v("div",Gg,[D(s)["section-5"].short_description?(m(),v("p",{key:0,class:"text-muted card-text ck-content ckeditorTag",innerHTML:D(s)["section-5"].short_description},null,8,Qg)):N("",!0),D(s)["section-5"].link?(m(),v("div",Jg,[i("div",Yg,[i("a",{href:D(s)["section-5"].link,class:"nav-link btn-2 ps-0 read-more-btn"},"Read More",8,Xg)])])):N("",!0)])):N("",!0),D(s)["section-5"].images&&D(s)["section-5"].images.length>0||_.length>0?(m(),v("div",Zg,[i("div",e_,[i("div",t_,[(m(!0),v(ae,null,xe(D(s)["section-5"].images?.length?D(s)["section-5"].images:_,(E,j)=>(m(),v("div",{key:"event-"+j,class:"infra-fixed-slide-col"},[i("img",{src:typeof E=="string"?E:E.url,alt:"Event image",loading:"lazy"},null,8,s_)]))),128))])])])):N("",!0)])])])])):N("",!0)])):N("",!0)]),_:1})]))}},o_=pt(n_,[["__scopeId","data-v-9cd7e50e"]]),r_={class:"section-padding pb-0",style:{"padding-top":"15px"}}
31,a_={class:"collapse d-lg-block",id:"mobileFilters"},i_={class:"filter-panel mb-4"},l_={class:"search-select",role:"search","aria-label":"Search with filter"},c_={class:"search-input"},u_={class:"form-control",id:"city"},d_=["value"],f_=["value"],p_=["value"],m_={id:"filtersBody",class:"row g-5 gutter-lg mt-1"},h_={class:"slider-row col-lg-4 col-md-6"},g_={class:"d-flex align-items-center justify-content-between"},__={class:"value-box"},v_={class:"range-container position-relative"},y_=["min","max"],b_=["min","max"],w_={class:"slider-row col-lg-4 col-md-6"},k_={class:"d-flex align-items-center justify-content-between"},x_={class:"value-box"},E_={class:"range-container position-relative"},$_=["min","max"],S_=["min","max"],C_={class:"slider-row col-lg-4 col-md-6"},T_={class:"d-flex align-items-center justify-content-between"},A_={class:"value-box"},R_={class:"range-container position-relative"},P_=["min","max"],I_=["min","max"],D_={class:"slider-row col-lg-4 col-md-6"},L_={class:"d-flex align-items-center justify-content-between"},O_={class:"value-box"},j_={class:"range-container position-relative"},F_=["min","max"],M_=["min","max"],N_={class:"slider-row col-lg-4 col-md-6"},U_={class:"d-flex align-items-center justify-content-between"},B_={class:"value-box"},V_={class:"range-container position-relative"},H_=["min","max"],q_=["min","max"],z_={class:"slider-row col-lg-4 col-md-6"},W_={class:"d-flex align-items-center justify-content-between"},K_={class:"value-box"},G_={class:"range-container position-relative"},Q_=["min","max"],J_=["min","max"],Y_={class:"mobile-filter-actions d-md-none mt-4"},X_={id:"content-results",class:"row g-5 gutter-lg"},Z_=["href","onClick"],ev=["src"],tv=["href","onClick"],sv={class:"text-muted mb-0"},nv={key:0,class:"col-12 text-center py-5"},ov={key:0,class:"pagination-wrapper mt-5",tabindex:"-1"},rv={class:"text-center mt-3 page-list"},av={class:"text-muted small"},iv={"aria-label":"Pagination"},lv={class:"pagination justify-content-center"},cv=["disabled"],uv=["onClick"],dv={key:1,class:"page-link"},fv=["disabled"],pv={__name:"home",props:{resourceDetail:Object,activeTab:String},setup(e){ns();const t=K(""),s=K({search:"",city_id:"",area_id:"",year:"",public_open_spaces:{min:0,max:100},streets:{min:0,max:100},private_open_spaces:{min:0,max:100},buildings:{min:0,max:100},uninhabited_area:{min:0,max:100},far:{min:0,max:100}}),n=K([]),r=K([]),a=K([]),o=K(0),l=K(0),c=K({public_open_spaces:{min:0,max:100},streets:{min:0,max:100},private_open_spaces:{min:0,max:100},buildings:{min:0,max:100},uninhabited_area:{min:0,max:100},far:{min:0,max:100}}),d=K([]),f=K(!1),u=K(1),_=K(null),b=K(new Set),y=K(!0),S=K(!1),x=()=>{S.value=window.innerWidth<768};let E=null;const j=pe(()=>{if(!_.value||_.value.last_page<=1)return[];const h=_.value.last_page,p=u.value,g=[];if(h<=7)for(let P=1;P<=h;P++)g.push(P);else if(g.push(1),p<=3){for(let P=2;P<=4;P++)g.push(P);g.push("..."),g.push(h)}else if(p>=h-2){g.push("...");for(let P=h-3;P<=h;P++)g.push(P)}else{g.push("...");for(let P=p-1;P<=p+1;P++)g.push(P);g.push("..."),g.push(h)}return g}),U=h=>{const p=s.value[h],g=c.value[h];if(!p||!g||g.max<=g.min)return{left:"0%",width:"0%"};const P=Math.max(g.min,Math.min(g.max,p.min)),O=Math.max(g.min,Math.min(g.max,p.max)),z=g.max-g.min;if(z<=0)return{left:"0%",width:"0%"};const X=(P-g.min)/z*100,ie=(O-P)/z*100;return{left:Math.max(0,Math.min(100,X))+"%",width:Math.max(0,Math.min(100,ie))+"%"}},B=()=>window.innerWidth<768,Y=h=>{const p=s.value[h],g=c.value[h];p.min=Math.max(g.min,Math.min(g.max,p.min)),p.max=Math.max(g.min,Math.min(g.max,p.max)),p.min>p.max&&([p.min,p.max]=[p.max,p.min]),B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))},re=async()=>{if(t.value="",s.value.search="",s.value.city_id="",s.value.area_id="",s.value.year="",s.value.public_open_spaces={...c.value.public_open_spaces},s.value.streets={...c.value.streets},s.value.private_open_spaces={...c.value.private_open_spaces},s.value.buildings={...c.value.buildings},s.value.uninhabited_area={...c.value.uninhabited_area},s.value.far={...c.value.far},typeof window.jQuery<"u"&&window.jQuery){const h=window.jQuery;try{const p=h("#city");p.length&&p.data("select2")?p.val(null).trigger("change"):p.length&&p.val("");const g=h("#area"),P=h("#year");r.value=[],a.value=[],g.empty().append('<option value="">
31Please select city first</option>'),P.empty().append('<option value="">Please select city first</option>'),g.val(null).trigger("change"),P.val(null).trigger("change"),g.prop("disabled",!0),P.prop("disabled",!0)}catch(p){console.warn("Error clearing Select2 dropdowns:",p)}}u.value=1,b.value.clear(),d.value=[],T(!1)},Z=async h=>{h<1||_.value&&h>_.value.last_page||(u.value=h,y.value=!1,await T(!1),y.value||(await Me(),setTimeout(()=>{const p=document.getElementById("content-results");p?p.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})},100)))};let fe=null;const T=async(h=!1)=>{try{f.value=!0;const p=t.value.trim();s.value.search=p;let g=String(s.value.city_id||"").trim(),P=String(s.value.area_id||"").trim(),O=String(s.value.year||"").trim();try{if(typeof window.jQuery<"u"&&window.jQuery.fn&&window.jQuery.fn.select2){const Ce=window.jQuery,De=Ce("#city"),Se=Ce("#area"),F=Ce("#year");if(De.length)try{if(De.data("select2")){const q=De.val();q!=null&&(g=String(q).trim())}}catch(Q){console.warn("Could not read city from Select2:",Q)}if(Se.length)try{if(Se.data("select2")){const q=Se.val();q!=null&&(P=String(q).trim())}}catch(Q){console.warn("Could not read area from Select2:",Q)}if(F.length)try{if(F.data("select2")){const q=F.val();q!=null&&(O=String(q).trim())}}catch(Q){console.warn("Could not read year from Select2:",Q)}}}catch(Ce){console.warn("Error reading Select2 values, using reactive values:",Ce)}s.value.city_id=g,s.value.area_id=P,s.value.year=O;const z={};p&&p.length>0&&(z.search=p),g&&g!==""&&g!=="null"&&g!=="undefined"&&(z.city_id=g),P&&P!==""&&P!=="null"&&P!=="undefined"&&(z.area_id=P),O&&O!==""&&O!=="null"&&O!=="undefined"&&(z.year=O),(s.value.public_open_spaces.min>c.value.public_open_spaces.min||s.value.public_open_spaces.max<c.value.public_open_spaces.max)&&(z.public_open_spaces_min=s.value.public_open_spaces.min,z.public_open_spaces_max=s.value.public_open_spaces.max),(s.value.streets.min>c.value.streets.min||s.value.streets.max<c.value.streets.max)&&(z.streets_min=s.value.streets.min,z.streets_max=s.value.streets.max),(s.value.private_open_spaces.min>c.value.private_open_spaces.min||s.value.private_open_spaces.max<c.value.private_open_spaces.max)&&(z.private_open_spaces_min=s.value.private_open_spaces.min,z.private_open_spaces_max=s.value.private_open_spaces.max),(s.value.buildings.min>c.value.buildings.min||s.value.buildings.max<c.value.buildings.max)&&(z.buildings_min=s.value.buildings.min,z.buildings_max=s.value.buildings.max),(s.value.uninhabited_area.min>c.value.uninhabited_area.min||s.value.uninhabited_area.max<c.value.uninhabited_area.max)&&(z.uninhabited_area_min=s.value.uninhabited_area.min,z.uninhabited_area_max=s.value.uninhabited_area.max),(s.value.far.min>c.value.far.min||s.value.far.max<c.value.far.max)&&(z.far_min=s.value.far.min,z.far_max=s.value.far.max);const X=JSON.stringify(z),ie=fe!==null&&fe!==X;ie&&(u.value=1,b.value.clear(),d.value=[]),z.page=u.value;const ye=await sc(z);if(ye&&ye.success){const Ce=ye.data||[];d.value=[],ie&&b.value.clear();const De=new Set;Ce.forEach(F=>{De.has(F.id)||(d.value.push(F),De.add(F.id),b.value.add(F.id))}),_.value=ye.pagination||null;const Se={...z};delete Se.page,fe=JSON.stringify(Se)}else d.value=[],_.value=null,ye&&ye.message}catch{d.value=[]}
31finally{f.value=!1,S.value&&h&&!y.value&&(await Me(),setTimeout(()=>{const p=document.getElementById("content-results");p&&p.scrollIntoView({behavior:"smooth",block:"start"})},100))}},C=()=>{const h=window.jQuery;h("#city").select2({placeholder:"City",allowClear:!0,width:"100%"}).on("change",async function(){const O=h(this).val()||"";s.value.city_id=O,s.value.area_id="",s.value.year="",r.value=[],a.value=[],o.value++,l.value++,await Me(),h("#area").prop("disabled",!0).select2({placeholder:"Please select city first",allowClear:!0,width:"100%"}),h("#year").prop("disabled",!0).select2({placeholder:"Please select city first",allowClear:!0,width:"100%"}),O&&await M(O),B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))}),h("#area").prop("disabled",!0).select2({placeholder:"Please select city first",allowClear:!0,width:"100%"}).on("change",function(){s.value.area_id=h(this).val()||"",B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))}),h("#year").prop("disabled",!0).select2({placeholder:"Please select city first",allowClear:!0,width:"100%"}).on("change",function(){s.value.year=h(this).val()||"",B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))})},M=async h=>{try{const p=await Zl(h),g=p.success?p.data:p.data||p;if(g){const P=window.jQuery;if(typeof window.jQuery<"u"&&window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2){const O=P("#area"),z=P("#year");if(O.length&&O.data("select2"))try{O.off("change.select2"),O.select2("destroy")}catch{try{O.removeData("select2"),O.next(".select2-container").remove()}catch{}}if(z.length&&z.data("select2"))try{z.off("change.select2"),z.select2("destroy")}catch{try{z.removeData("select2"),z.next(".select2-container").remove()}catch{}}}if(g.areas&&Array.isArray(g.areas)){const O=[];g.areas.forEach(z=>{if(z&&typeof z=="object"){const X=z.id||z.Id||z.ID,ie=z.title||z.Title||z.name||"";X&&O.push({id:Number(X),title:String(ie)})}}),r.value=O,o.value++}else r.value=[],o.value++;if(g.years&&Array.isArray(g.years)?(a.value=g.years.filter(O=>O!=null).map(O=>typeof O=="object"&&O.value!==void 0?String(O.value):String(O)),l.value++):(a.value=[],l.value++),await Me(),await new Promise(O=>setTimeout(O,100)),typeof window.jQuery<"u"&&window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2){const O=P("#area"),z=P("#year");if(O.length&&!O.data("select2"))try{O.prop("disabled",!1),O.select2({placeholder:"Area",allowClear:!0,width:"100%"}),O.on("change.select2",function(){try{const X=P(this).val();s.value.area_id=X?String(X):"",B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))}catch(X){console.error("Error in area select change handler:",X)}})}catch(X){console.error("Error initializing area Select2:",X)}if(z.length&&!z.data("select2"))try{z.prop("disabled",!1),z.select2({placeholder:"Year",allowClear:!0,width:"100%"}),z.on("change.select2",function(){try{const X=P(this).val();s.value.year=X?String(X):"",B()||(E&&clearTimeout(E),E=setTimeout(()=>{T()},300))}catch(X){console.error("Error in year select change handler:",X)}})}catch(X){console.error("Error initializing year Select2:",X)}}}else r.value=[],a.value=[]}catch{r.value=[],a.value=[]}},A=async()=>{try{const h=await br();if(h.success&&h.data&&(h.data.cities&&(n.value=h.data.cities),r.value=[],a.value=[],h.data.filter_ranges))try{const p=h.data.filter_ranges;c.value={public_open_spaces:{min:parseFloat(p.public_open_spaces?.min)||0,max:parseFloat(p.public_open_spaces?.max)||100},streets:{min:parseFloat(p.streets?.min)||0,max:parseFloat(p.streets?.max)||100},private_open_spaces:{min:parseFloat(p.private_open_spaces?.min)||0,max:parseFloat(p.private_open_spaces?.max)||100},buildings:{min:parseFloat(p.buildings?.min)||0,max:parseFloat(p.buildings?.max)||100},uninhabited_area:{min:parseFloat(p.uninhabited_area?.min)||0,max:parseFloat(p.uninhabited_area?.max)||100},far:{min:parseFloat(p.far?.min)||0,max:parseFloat(p.far?.max)||100}},s.value.public_open_spaces={min:c.value.public_open_spaces.min,max:c.value.public_open_spaces.max},s.value.streets={min:c.value.streets.min,max:c.value.streets.max},s.value.private_open_spaces={min:c.value.private_open_spaces.min,max:c.value.private_open_spaces.max},s.value.buildings={min:c.value.buildings.min,max:c.value.buildings.max},s.value.uninhabited_area={min:c.value.uninhabited_area.min,max:c.value.uninhabited_area.max},s.value.far={min:c.value.far.min,max:c.value.far.max}}catch{}}catch(h){console.error("Error fetching master data:",h)}},G=h=>{S.value&&setTimeout(()=>{const p=document.querySelector(".filter-panel");p&&p.scrollIntoView({behavior:"smooth",block:"start"})},300)};Qe(async()=>{const h=window.scrollY;window.addEventListener("scroll",k,{passive:!0});let p=setInterval(()=>{y.value&&window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})},100);gt(()=>y.value,g=>{!g&&p&&(clearInterval(p),p=null,window.removeEventListener("scroll",k)
31)}),x(),window.addEventListener("resize",x),await A(),await Me(),setTimeout(()=>{if(C(),S.value){const g=document.getElementById("q");if(g&&g.addEventListener("focus",G),window.jQuery&&window.jQuery.fn.select2){const P=window.jQuery;P("#city, #area, #year").on("select2:open",G)}}},200),await T(!1),await Me(),setTimeout(()=>{y.value=!1},500),requestAnimationFrame(()=>{requestAnimationFrame(()=>{h===0&&window.scrollTo({top:0,behavior:"instant"})})})}),gt(()=>_.value,h=>{h&&y.value&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})})})},{immediate:!0});const k=()=>{y.value&&window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})};return(h,p)=>(m(),v("div",r_,[i("div",a_,[i("div",i_,[i("div",l_,[i("div",c_,[he(i("input",{id:"q",type:"text","onUpdate:modelValue":p[0]||(p[0]=g=>t.value=g),onKeypress:Il(T,["enter"]),placeholder:"Keyword Search","aria-label":"Search query"},null,544),[[ze,t.value]])]),S.value?N("",!0):(m(),v("button",{key:0,type:"button",onClick:T,class:"search-btn-filter","aria-label":"Search"},[...p[28]||(p[28]=[i("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("path",{d:"M21 21l-4.35-4.35",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("circle",{cx:"11.5",cy:"11.5",r:"5.5",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])),i("select",u_,[p[29]||(p[29]=i("option",{value:""},"City",-1)),(m(!0),v(ae,null,xe(n.value,g=>(m(),v("option",{key:g.id,value:g.id},R(g.name),9,d_))),128))]),(m(),v("select",{class:"form-control",id:"area",key:`area-${o.value}`},[p[30]||(p[30]=i("option",{value:""},"Please select city first",-1)),(m(!0),v(ae,null,xe(r.value,g=>(m(),v("option",{key:g.id,value:g.id},R(g.title),9,f_))),128))])),(m(),v("select",{class:"form-control w-100",id:"year",key:`year-${l.value}`},[p[31]||(p[31]=i("option",{value:""},"Please select city first",-1)),(m(!0),v(ae,null,xe(a.value,g=>(m(),v("option",{key:g,value:g},R(g),9,p_))),128))])),S.value?N("",!0):(m(),v("button",{key:1,type:"button",onClick:re,class:"btn-reset-filters"}," Reset Filters "))]),p[44]||(p[44]=i("div",{class:"d-flex justify-content-between align-items-center mb-2"},[i("div",{class:"form-check p-0"},[i("label",{class:"form-check-label"},"Land utilization")])],-1)),i("div",m_,[i("div",h_,[i("div",g_,[p[32]||(p[32]=i("div",{class:"slider-label"},"Public open spaces",-1)),i("div",__,R(s.value.public_open_spaces.min)+" - "+R(s.value.public_open_spaces.max)+"%",1)]),i("div",v_,[p[33]||(p[33]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("public_open_spaces"))},null,4),he(i("input",{type:"range",min:c.value.public_open_spaces.min,max:c.value.public_open_spaces.max,step:"0.01","onUpdate:modelValue":p[1]||(p[1]=g=>s.value.public_open_spaces.min=g),onInput:p[2]||(p[2]=g=>Y("public_open_spaces")),class:"range-input range-min"},null,40,y_),[[ze,s.value.public_open_spaces.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.public_open_spaces.min,max:c.value.public_open_spaces.max,step:"0.01","onUpdate:modelValue":p[3]||(p[3]=g=>s.value.public_open_spaces.max=g),onInput:p[4]||(p[4]=g=>Y("public_open_spaces")),class:"range-input range-max"},null,40,b_),[[ze,s.value.public_open_spaces.max,void 0,{number:!0}]])])]),i("div",w_,[i("div",k_,[p[34]||(p[34]=i("div",{class:"slider-label"},"Streets",-1)),i("div",x_,R(s.value.streets.min)+" - "+R(s.value.streets.max)+"%",1)]),i("div",E_,[p[35]||(p[35]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("streets"))},null,4),he(i("input",{type:"range",min:c.value.streets.min,max:c.value.streets.max,step:"0.01","onUpdate:modelValue":p[5]||(p[5]=g=>s.value.streets.min=g),onInput:p[6]||(p[6]=g=>Y("streets")),class:"range-input range-min"},null,40,$_),[[ze,s.value.streets.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.streets.min,max:c.value.streets.max,step:"0.01","onUpdate:modelValue":p[7]||(p[7]=g=>s.value.streets.max=g),onInput:p[8]||(p[8]=g=>Y("streets")),class:"range-input range-max"},null,40,S_),[[ze,s.value.streets.max,void 0,{number:!0}]])])]),i("div",C_,[i("div",T_,[p[36]||(p[36]=i("div",{class:"slider-label"},"Private open spaces",-1)),i("div",A_,R(s.value.private_open_spaces.min)+" - "+R(s.value.private_open_spaces.max)+"%",1)]),i("div",R_,[p[37]||(p[37]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("private_open_spaces"))},null,4),he(i("input",{type:"range",min:c.value.private_open_spaces.min,max:c.value.private_open_spaces.max,step:"0.01","onUpdate:modelValue":p[9]||(p[9]=g=>s.value.private_open_spaces.min=g),onInput:p[10]||(p[10]=g=>Y("private_open_spaces")),class:"range-input range-min"},null,40,P_),[[ze,s.value.private_open_spaces.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.private_open_spaces.min,max:c.value.private_open_spaces.max,step:"0.01","onUpdate:modelValue":p[11]||(p[11]=g=>s.value.private_open_spaces.max=g),onInput:p[12]||(p[12]=g=>Y("private_open_spaces")),class:"range-input range-max"},null,40,I_),[[ze,s.value.private_open_spaces.max,void 0,{number:!0}]])])]),i("div",D_,[i("div",L_,[p[38]||(p[38]=i("div",{class:"slider-label"},"Buildings",-1)),i("div",O_,R(s.value.buildings.min)+" - "+R(s.value.buildings.max)+"%",1)]),i("div",j_,[p[39]||(p[39]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("buildings"))},null,4),he(i("input",{type:"range",min:c.value.buildings.min,max:c.value.buildings.max,step:"0.01","onUpdate:modelValue":p[13]||(p[13]=g=>s.value.buildings.min=g),onInput:p[14]||(p[14]=g=>Y("buildings")),class:"range-input range-min"},null,40,F_),[[ze,s.value.buildings.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.buildings.min,max:c.value.buildings.max,step:"0.01","onUpdate:modelValue":p[15]||(p[15]=g=>s.value.buildings.max=g),onInput:p[16]||(p[16]=g=>Y("buildings")),class:"range-input range-max"},null,40,M_),[[ze,s.value.buildings.max,void 0,{number:!0}]])])]),i("div",N_,[i("div",U_,[p[40]||(p[40]=i("div",{class:"slider-label"},"Uninhabited area",-1)),i("div",B_,R(s.value.uninhabited_area.min)+" - "+R(s.value.uninhabited_area.max)+"%",1)]),i("div",V_,[p[41]||(p[41]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("uninhabited_area"))},null,4),he(i("input",{type:"range",min:c.value.uninhabited_area.min,max:c.value.uninhabited_area.max,step:"0.01","onUpdate:modelValue":p[17]||(p[17]=g=>s.value.uninhabited_area.min=g),onInput:p[18]||(p[18]=g=>Y("uninhabited_area")),class:"range-input range-min"},null,40,H_),[[ze,s.value.uninhabited_area.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.uninhabited_area.min,max:c.value.uninhabited_area.max,step:"0.01","onUpdate:modelValue":p[19]||(p[19]=g=>s.value.uninhabited_area.max=g),onInput:p[20]||(p[20]=g=>Y("uninhabited_area")),class:"range-input range-max"},null,40,q_),[[ze,s.value.uninhabited_area.max,void 0,{number:!0}]])])]),i("div",z_,[i("div",W_,[p[42]||(p[42]=i("div",{class:"slider-label"},"FAR",-1)),i("div",K_,R(s.value.far.min)+" - "+R(s.value.far.max),1)]),i("div",G_,[p[43]||(p[43]=i("div",{class:"range-track"},null,-1)),i("div",{class:"range-highlight",style:vt(U("far"))},null,4),he(i("input",{type:"range",min:c.value.far.min,max:c.value.far.max,step:"0.01","onUpdate:modelValue":p[21]||(p[21]=g=>s.value.far.min=g),onInput:p[22]||(p[22]=g=>Y("far")),class:"range-input range-min"},null,40,Q_),[[ze,s.value.far.min,void 0,{number:!0}]]),he(i("input",{type:"range",min:c.value.far.min,max:c.value.far.max,step:"0.01","onUpdate:modelValue":p[23]||(p[23]=g=>s.value.far.max=g),onInput:p[24]||(p[24]=g=>Y("far")),class:"range-input range-max"},null,40,J_),[[ze,s.value.far.max,void 0,{number:!0}]])])])]),i("div",Y_,[i("button",{type:"button",onClick:p[25]||(p[25]=()=>T(!0)),class:"btn-mobile-submit"}," Submit Filters "),i("button",{type:"button",onClick:re,class:"btn-mobile-reset"}," Reset Filters ")])])]),i("div",X_,[(m(!0),v(ae,null,xe(d.value,g=>(m(),v("div",{class:"col-lg-4 col-md-6 col-sm-6 morphology-card",key:g.id},[i("a",{href:`/resources/study-of-urban-morphology/projects/${g.slug}`,onClick:zt(P=>h.$router.push(`/resources/study-of-urban-morphology/projects/${g.slug}`),["prevent"])},[i("img",{src:g.listing_image||"/assets/images/placeholder.jpg",class:"img-fluid"},null,8,ev)],8,Z_),i("h4",null,[i("a",{href:`/resources/study-of-urban-morphology/projects/${g.slug}`,onClick:zt(P=>h.$router.push(`/resources/study-of-urban-morphology/projects/${g.slug}`),["prevent"])},R(g.title),9,tv)]),i("p",sv,R(g.city)+", "+R(g.state),1)]))),128)),!f.value&&(!d.value||d.value.length===0)?(m(),v("div",nv,[...p[45]||(p[45]=[i("p",{class:"text-muted"},"No urban morphology items found matching your filters.",-1)])])):N("",!0)]),_.value&&_.value.last_page>1?(m(),v("div",ov,[i("div",rv,[i("p",av," Showing "+R(_.value.from||0)+" to "+R(_.value.to||0)+" of "+R(_.value.total||0)+" results ",1)]),i("nav",iv,[i("ul",lv,[i("li",{class:Ne(["page-item",{disabled:u.value===1}])},[i("button",{class:"page-link",onClick:p[26]||(p[26]=g=>Z(u.value-1)),disabled:u.value===1,"aria-label":"Previous"},[...p[46]||(p[46]=[i("span",{"aria-hidden":"true"},"Prev",-1)])],8,cv)],2),(m(!0),v(ae,null,xe(j.value,g=>(m(),v("li",{key:g,class:Ne(["page-item",{active:g===u.value,disabled:g==="..."}])},[g!=="..."?(m(),v("button",{key:0,class:Ne(["page-link",{active:g===u.value}]),onClick:P=>Z(g)},R(g),11,uv)):(m(),v("span",dv,R(g),1))],2))),128)),i("li",{class:Ne(["page-item",{disabled:u.value===_.value.last_page}])},[i("button",{class:"page-link",onClick:p[27]||(p[27]=g=>Z(u.value+1)),disabled:u.value===_.value.last_page,"aria-label":"Next"},[...p[47]||(p[47]=[i("span",{"aria-hidden":"true"},"Next",-1)])],8,fv)],2)])])])):N("",!0)]))}},mv=pt(pv,[["__scopeId","data-v-46edd2e4"]]),hv={class:"section-padding newsletter-section publication-section pb-0"},gv={class:"row justify-content-center"},_v={class:"col-lg-9"},vv=["innerHTML"],yv={key:1,class:"accordion custom-accordion mt-4",id:"projectAccordion"},bv=["id"],wv=["data-bs-target"],kv=["id"],xv={key:0,class:"accordion-body pt-0"},Ev={class:"row profile-card-sm"},$v={class:"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 profile-card-col text-muted"},Sv=["innerHTML"],Cv={key:1,class:"accordion-body text-muted pt-0"},Tv=["innerHTML"],Av={key:0,class:"text-center py-5"}
31,Rv={__name:"project-description",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=()=>{const r=localStorage.getItem("cupd_disclaimer_clicked");if(r)try{if(JSON.parse(r).expires>Date.now()){localStorage.removeItem("cupd_disclaimer_clicked");const o=s?.project_description?.items;if(o&&o.length>0){const c=`collapse${o[o.length-1].id}`;Me(()=>{const d=document.getElementById(c);if(d){const f=new window.bootstrap.Collapse(d,{show:!0});setTimeout(()=>{const u=document.getElementById("projectAccordion");u&&u.scrollIntoView({behavior:"smooth",block:"start"})},300)}})}}else localStorage.removeItem("cupd_disclaimer_clicked")}catch{localStorage.removeItem("cupd_disclaimer_clicked")}};return Qe(()=>{n()}),(r,a)=>(m(),v("div",hv,[i("div",gv,[i("div",_v,[D(s)?.project_description?.section_1?(m(),v("div",{key:0,class:"text-muted mb-4 ck-content ckeditorTag",innerHTML:D(s)?.project_description?.section_1},null,8,vv)):N("",!0),D(s)?.project_description?.items&&D(s).project_description.items.length>0?(m(),v("div",yv,[(m(!0),v(ae,null,xe(D(s).project_description.items,(o,l)=>(m(),v("div",{class:"accordion-item",key:o.id},[i("div",{class:"accordion-header",id:`heading${o.id}`},[i("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse${o.id}`},R(o.label),9,wv)],8,bv),i("div",{id:`collapse${o.id}`,class:"accordion-collapse collapse","data-bs-parent":"#projectAccordion"},[o.label==="Project Team"?(m(),v("div",xv,[i("div",Ev,[i("div",$v,[i("div",{class:"ck-content ckeditorTag",innerHTML:o.description},null,8,Sv)])])])):(m(),v("div",Cv,[i("div",{class:"ck-content ckeditorTag",innerHTML:o.description},null,8,Tv)]))],8,kv)]))),128))])):N("",!0)]),!D(s)?.project_description?.section_1&&(!D(s)?.project_description?.items||D(s).project_description.items.length===0)&&!D(s)?.project_description?.youtube_link?(m(),v("div",Av,[...a[0]||(a[0]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}};function Pv(){const e=K(!1),t=K(null),s=K([]),n=K([]),r=K([]),a=K([]),o=async()=>{e.value=!0,t.value=null;try{const b=await ac();if(b.success)return s.value=b.data,b.data;throw new Error(b.message||"Failed to fetch morphology types")}catch(b){throw t.value=b.message||"An error occurred while fetching morphology types",b}finally{e.value=!1}},l=async(b={})=>{e.value=!0,t.value=null;try{const y=await ic(b);if(y.success){n.value=y.data;for(let S=0;S<Math.min(6,y.data.length);S++)a.value[S]=y.data[S];return y.data}else throw new Error(y.message||"Failed to fetch studies")}catch(y){throw t.value=y.message||"An error occurred while fetching studies",y}finally{e.value=!1}},c=async()=>{e.value=!0,t.value=null;try{const b=await lc();if(b.success)return r.value=b.data,b.data;throw new Error(b.message||"Failed to fetch dropdown data")}catch(b){throw t.value=b.message||"An error occurred while fetching dropdown data",b}finally{e.value=!1}},d=async(b,y)=>{if(y)try{const S=await Go({slug:y,morphology_type:"morphology_type_one"});if(S.success){const x={slug:S.data.slug,title:S.data.study_title,city:S.data.city,listing_image:S.data.listing_image,morphology_image:"",percentage:S.data.percentage||0};return a.value.splice(b,1,x),x}else throw new Error(S.message||"Failed to update study")}catch(S){throw S}},f=async(b,y,S)=>{if(!(!y||!S))try{const x=await Go({slug:y,morphology_type:S});if(x.success){const E={slug:x.data.slug,title:x.data.study_title,city:x.data.city,listing_image:x.data.listing_image,morphology_image:x.data.image_url,percentage:x.data.percentage||0};return a.value.splice(b,1,E),E}else throw new Error(x.message||"Failed to update study image")}catch(x){throw x}};return{loading:e,error:t,morphologyTypes:s,studies:n,dropdownData:r,selectedStudies:a,fetchMorphologyTypes:o,fetchStudies:l,fetchDropdownData:c,updateStudy:d,updateStudyImage:f,updateAllStudyImages:async b=>{for(let y=0;y<a.value.length;y++){const S=a.value[y];S&&S.slug&&await f(y,S.slug,b)}},getStudyImage:(b,y=!1)=>b?y?b.morphology_image||b.listing_image||"":b.morphology_image||"":""}}const Iv={class:"custom-radio-group d-flex flex-wrap gap-4 align-items-center"},Dv=["id","value"],Lv=["for"],Ov={class:"thumbnail-list"},jv={class:"row g-5 project-compare-form"},Fv=["id"],Mv=["src","alt","onError"],Nv={key:0,class:"zoom-control
31s"},Uv={key:1,class:"area-spaces-count"},Bv={class:"mt-3"},Vv={class:"text-muted"},Hv={__name:"compare-features",props:{filteredItems:Array,searchQuery:String,selectedCity:String,selectedArea:String,selectedYear:String},setup(e){const{morphologyTypes:t,dropdownData:s,selectedStudies:n,fetchMorphologyTypes:r,fetchStudies:a,fetchDropdownData:o,updateStudy:l,updateStudyImage:c,updateAllStudyImages:d,getStudyImage:f}=Pv(),u=K(null),_=()=>{Me(()=>{if(u.value){const A=u.value.offsetTop-150;window.scrollTo({top:A,behavior:"smooth"})}})};gt(n,(A,G)=>{A&&A.forEach((k,h)=>{setTimeout(()=>{const g=document.querySelectorAll(".map-container")[h];if(g){if(E.value[h])try{E.value[h].dispose()}catch{}re(g,h)}},500)})},{deep:!0});const b=K(""),y=K(new Set),S=K(!0),x=K(!1),E=K([]);let j=!1;const U=()=>{E.value.forEach((A,G)=>{if(A&&typeof A.dispose=="function")try{A.dispose()}catch{}}),E.value.length=0,j=!1},B=()=>{document.querySelectorAll(".map-container").forEach((h,p)=>{h.addEventListener("wheel",function(g){g.preventDefault(),E.value.forEach((P,O)=>{if(P&&typeof P.zoomWithWheel=="function")try{const z=document.querySelectorAll(".map-container")[O];if(z){const X=z.querySelector(".pannable-map");X&&X.isConnected&&!y.value.has(O)?P.zoomWithWheel(g):(P.dispose&&P.dispose(),E.value[O]=null)}}catch{if(E.value[O]&&E.value[O].dispose)try{E.value[O].dispose()}catch{}E.value[O]=null}})})});const G=document.querySelectorAll(".zoom-in"),k=document.querySelectorAll(".zoom-out");G.forEach(h=>{h.addEventListener("click",()=>{E.value.forEach((p,g)=>{if(p&&typeof p.zoomIn=="function")try{const P=document.querySelectorAll(".map-container")[g];if(P){const O=P.querySelector(".pannable-map");O&&O.isConnected&&!y.value.has(g)?p.zoomIn():(p.dispose&&p.dispose(),E.value[g]=null)}}catch{if(E.value[g]&&E.value[g].dispose)try{E.value[g].dispose()}catch{}E.value[g]=null}})})}),k.forEach(h=>{h.addEventListener("click",()=>{E.value.forEach((p,g)=>{if(p&&typeof p.zoomOut=="function")try{const P=document.querySelectorAll(".map-container")[g];if(P){const O=P.querySelector(".pannable-map");O&&O.isConnected&&!y.value.has(g)?p.zoomOut():(p.dispose&&p.dispose(),E.value[g]=null)}}catch{if(E.value[g]&&E.value[g].dispose)try{E.value[g].dispose()}catch{}E.value[g]=null}})})})},Y=()=>{document.querySelectorAll(".map-container").forEach((G,k)=>{y.value.has(k)||re(G,k)}),setTimeout(()=>{j||(B(),j=!0)},200)},re=(A,G)=>{const k=A.querySelector(".pannable-map");if(!k||!k.isConnected||y.value.has(G))return;if(k.tagName==="IMG"){const p=()=>{k.src&&k.src.includes("placehold.co")||k.isConnected&&!y.value.has(G)&&h()};k.complete?p():(k.addEventListener("load",p,{once:!0}),k.addEventListener("error",()=>{setTimeout(p,100)},{once:!0}))}else h();function h(){if(!k||!k.isConnected||y.value.has(G)||A.querySelector(".pannable-map")!==k)return;const g={maxScale:5,minScale:.5,step:.1,contain:"outside"};try{const P=Panzoom(k,g);E.value[G]=P}catch{E.value[G]=null}}},Z=async()=>{if(b.value)try{S.value=!1,x.value=!0,U(),await d(b.value),y.value.clear(),await Me(),setTimeout(()=>{Y()},100)}catch{}},fe=async()=>{try{b.value="",x.value=!1,S.value=!0,n.value=n.value.map(A=>({...A,morphology_image:""})),y.value.clear(),U(),await Me(),_(),setTimeout(()=>{Y()},300)}catch(A){console.error("Error resetting filters:",A)}},T=A=>{const G=document.querySelectorAll(".map-container")[A];if(G){const k=G.querySelector(".pannable-map");if(k&&k.src&&!k.src.includes("placehold.co")){if(y.value.add(A),E.value[A]&&typeof E.value[A].dispose=="function"){try{E.value[A].dispose()}catch{}E.value[A]=null}}else k&&k.src&&k.src.includes("placehold.co")&&setTimeout(()=>{if(E.value[A])return;const h={maxScale:5,minScale:.5,step:.1,contain:"outside"};try{const p=Panzoom(k,h);E.value[A]=p}catch{}},200)}},C=A=>{const G=f(A,!x.value);return G||"https://placehold.co/500x500/EFEFEF/CCCCCC?text=Morphology+Not+Available"},M=A=>{if(A==null)return!1;const G=Number(A);return Number.isFinite(G)&&G!==0};return Qe(async()=>{try{await r(),await a(),await o()}catch{}setTimeout(()=>{Y()},300);const A=()=>{function G(k,h,p="Select Morphology",g,P=null){const O=document.getElementById(k);if(!O)return null;const z="dropdown_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);O.innerHTML=` 32 <div class="custom-dropdown"> 33 <div class="form-select dropdown-selected" id="${z}_selected">
34 <span id="${z}_selectedText">${P||p}</span> 35 </div> 36 <div class="dropdown-list" id="${z}_list"> 37 <div class="search-box"> 38 <input type="text" class="search-input" id="${z}_search" placeholder=""> 39 </div> 40 <div class="dropdown-content" id="${z}_content"> 41 <!-- Items will be populated by JavaScript --> 42 </div> 43 </div> 44 </div> 45 `;const X=document.getElementById(`${z}_selected`),ie=document.getElementById(`${z}_list`),ye=document.getElementById(`${z}_content`),Ce=document.getElementById(`${z}_search`),De=document.getElementById(`${z}_selectedText`);X.addEventListener("click",function(){ie.classList.toggle("show"),ie.classList.contains("show")&&Ce.focus()}),document.addEventListener("click",function(Q){Q.target.closest(`#${k}`)||ie.classList.remove("show")});function Se(Q){if(ye.innerHTML="",Q.length===0){ye.innerHTML='<div class="no-results">No results found</div>';return}Q.forEach(q=>{const ne=document.createElement("div");if(q.children&&q.children.length>0){ne.className="dropdown-item has-children",ne.innerHTML=`<span>
45${q.name}</span>`;const _e=document.createElement("div");_e.className="sub-items",q.children.forEach(w=>{const $=document.createElement("div");$.className="sub-item",$.textContent=w.name,$.dataset.slug=w.slug,$.dataset.value=`${w.name} - ${q.name}`,$.addEventListener("click",function(I){I.stopPropagation(),F(this.dataset.value,w.slug)}),_e.appendChild($)}),ne.addEventListener("click",function(w){w.stopPropagation(),this.classList.toggle("expanded"),_e.classList.toggle("show")}),ye.appendChild(ne),ye.appendChild(_e)}else ne.className="dropdown-item",ne.textContent=q.name,ne.dataset.value=q.name,ne.addEventListener("click",function(_e){_e.stopPropagation(),F(this.dataset.value)}),ye.appendChild(ne)})}function F(Q,q=null){De.textContent=Q,ie.classList.remove("show"),Ce.value="",q&&(y.value.delete(g),x.value?c(g,q,b.value).then(()=>{y.value.delete(g)}).catch(ne=>{}):l(g,q).then(()=>{y.value.delete(g)}).catch(ne=>{})),Se(h)}return Ce.addEventListener("input",function(){const Q=this.value.toLowerCase();if(Q===""){Se(h);return}const q=[];h.forEach(ne=>{const _e=ne.name.toLowerCase().includes(Q),w=ne.children?ne.children.filter($=>$.name.toLowerCase().includes(Q)):[];_e?q.push(ne):w.length>0&&q.push({...ne,children:w})}),Se(q)}),Se(h),{getValue:()=>De.textContent,setValue:Q=>F(Q),reset:()=>{De.textContent=p,Se(h)}}}for(let k=0;k<6;k++){const h=n.value[k],p=h?`${h.title} - ${h.city}`:null;G(`dropdown${k+1}`,s.value,"Select Morphology",k,p)}};s.value.length>0&&n.value.length>0&&Me(()=>{A()})}),(A,G)=>(m(),v(ae,null,[i("div",{class:"select-radio-list d-flex flex-wrap align-items-center gap-4 my-5",ref_key:"stickyTabsRef",ref:u},[G[1]||(G[1]=i("label",{class:"label-btn"},"Select Morphology",-1)),i("div",Iv,[(m(!0),v(ae,null,xe(D(t),(k,h)=>(m(),v("div",{key:k.id,class:"form-check form-check-inline",onClick:_},[he(i("input",{class:"form-check-input",type:"radio",name:"featureOptions",id:`radio${k.id}`,value:k.id,"onUpdate:modelValue":G[0]||(G[0]=p=>b.value=p),onChange:Z},null,40,Dv),[[ap,b.value]]),i("label",{class:"form-check-label",for:`radio${k.id}`},R(k.name),9,Lv)]))),128))]),i("div",{class:""},[i("button",{onClick:fe,class:"btn btn-dark btn-lg btn-modal-pdf-download reset-filter-compare"},"Reset Filters")])],512),i("div",Ov,[i("div",jv,[(m(!0),v(ae,null,xe(D(n),(k,h)=>(m(),v("div",{key:h,class:"col-lg-4 col-md-6 col-sm-6 col-6"},[i("div",{class:"mb-3 mb-sm-4",id:`dropdown${h+1}`},null,8,Fv),i("div",{class:"map-container",style:vt(C(k).includes("placehold.co")?"pointer-events: none;":"")},[(m(),v("img",{key:`img-${h}-${b.value}-${k?.slug}-${k?.morphology_image}-${k?.listing_image}`,src:C(k),class:"img-fluid pannable-map",alt:`Map of ${k?.title||"Study"}`,style:vt(C(k).includes("placehold.co")?"pointer-events: none;":""),onError:p=>T(h)},null,44,Mv)),C(k).includes("placehold.co")?N("",!0):(m(),v("div",Nv,[...G[2]||(G[2]=[i("button",{class:"zoom-in"},[i("i",{class:"bi bi-plus"})],-1),i("button",{class:"zoom-out mt-1"},[i("i",{class:"bi bi-dash"})],-1)])])),x.value&&M(k?.percentage)?(m(),v("div",Uv,R(k?.percentage)+"% ",1)):N("",!0)],4),i("h5",Bv,R(k?.title||"Loading..."),1),i("p",Vv,R(k?.city||"Loading..."),1)]))),128))])])],64))}},Va=pt(Hv,[["__scopeId","data-v-7c35c6c7"]]),qv={class:"section-padding newsletter-section publication-section pb-0 first-child-pt-none"},zv={class:"row"},Wv={class:"col-xl-8 col-lg-9 newsletter-right"},Kv={class:"col-sm-5 col-md-5 col-lg-4"},Gv=["href"],Qv=["src","alt"],Jv=["src","alt"],Yv=["href"],Xv=["src","alt"],Zv=["href"],ey=["src","alt"],ty={key:4,class:"d-block publication-no-link"},sy=["src","alt"],ny={class:"col-sm-7 col-md-7 col-lg-8"},oy={class:"event-card-label"},ry={class:"mb-2"},ay=["href"],iy=["href"],ly=["href"],cy={key:4,class:"text-dark publication-title-no-link"},uy={class:"newsletter-item-meta mb-4"},dy={key:0},fy={key:1},py={class:"mb-3 text-muted card-text"},my={class:"about-main-head"},hy={key:0,class:"sub-nav"},gy=["href"],_y=["href"],vy=["href"],yy={key:0,class:"col-12 text-center py-5"},by={__name:"insights",props:{resourceDetail:Object,activeTab:String}
45,setup(e){const t=e,{resourceDetail:s}=t,n=r=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"";return(r,a)=>(m(),v("div",qv,[i("div",zv,[i("div",Wv,[(m(!0),v(ae,null,xe(D(s)?.insights,o=>(m(),v("div",{class:"newsletter-item row g-5",key:`${o.type}-${o.id}`},[i("div",Kv,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"d-block"},[i("img",{src:o.image,class:"img-fluid newsletter-img",alt:o.title},null,8,Qv)],8,Gv)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"d-block"},{default:we(()=>[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Jv)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Xv)],8,Yv)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,ey)],8,Zv)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("div",ty,[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,sy)])):N("",!0)]),i("div",ny,[i("p",oy,R(o.type==="publication"?"Publication":"Newsletter"),1),i("h4",ry,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"text-dark text-decoration-none"},R(o.title),9,ay)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"text-dark text-decoration-none"},{default:we(()=>[ce(R(o.title),1)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,iy)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,ly)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("span",cy,R(o.title),1)):N("",!0)]),i("p",uy,[o.type==="newsletter"?(m(),v("span",dy,R(n(o.pub_date))+" ⢠"+R(o.creator_name),1)):o.type==="publication"?(m(),v("span",fy,R(o.publish_by)+"  |  "+R(n(o.publication_date)),1)):N("",!0)]),i("p",py,R(o.short_description),1),i("div",my,[o.type==="newsletter"||o.type==="publication"&&o.detail_page_option!=="2"?(m(),v("div",hy,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,gy)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"nav-link btn-2 ps-0 read-more-btn"},{default:we(()=>[...a[0]||(a[0]=[ce(" Read More ",-1)])]),_:1},8,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,_y)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",download:"",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,vy)):N("",!0)])):N("",!0)])])]))),128))]),!D(s)?.insights||D(s).insights.length===0?(m(),v("div",yy,[...a[1]||(a[1]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},wy=pt(by,[["__scopeId","data-v-88099850"]]),ky={class:"section-padding pb-0 newsletter-section publication-section data-list-con"},xy={key:0,class:"row"},Ey={class:"col-md-12 col-lg-8 col-xl-8"},$y={class:"ck-content ckeditorTag"},Sy=["innerHTML"],Cy={class:"row"},Ty={class:"col-xl-8 col-lg-9 newsletter-right"},Ay={class:"row"},Ry={class:"col-sm-12"},Py={class:"mb-2"},Iy={class:"newsletter-item-meta mb-4"},Dy={class:"mb-3 text-muted card-text"},Ly={key:0,class:"long-description mt-3"},Oy=["innerHTML"],jy={class:"about-main-head"},Fy={key:0,class:"sub-nav"}
45,My=["onClick"],Ny={key:0,class:"btn-list-ul mt-3 pt-3"},Uy=["onClick"],By={key:0,class:"col-12 text-center py-5"},Vy={class:"modal fade download-modal",id:"downloadModal",tabindex:"-1"},Hy={class:"modal-dialog modal-xl modal-dialog-centered"},qy={class:"modal-content"},zy={class:"modal-body pt-0"},Wy={class:"container-fluid ps-3 pe-3"},Ky={class:"d-inline-block w-100 mt-3 mb-4"},Gy={class:"bg-color"},Qy={class:"row g-4"},Jy={class:"col-md-12"},Yy={class:"form-group form-check"},Xy={class:"col-md-12 mt-2"},Zy={class:"form-group form-check"},eb={class:"col-md-6",id:"emailField"},tb={class:"text-center d-flex multi-download"},sb={class:"form-group me-4"},nb={for:"downloadFile"},ob={class:"text-center mt-5"},rb=["disabled"],ab={__name:"data",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=pe(()=>!s?.datasets||!Array.isArray(s.datasets)?[]:s.datasets),r=K({}),a=k=>{const h=n.value[k]?.id;h&&(r.value[h]=!r.value[h],Object.keys(r.value).forEach(p=>{p!==String(h)&&(r.value[p]=!1)}))},o=k=>r.value[k]||!1,l=K({pdf:!1,zip:!1}),c=K(!1),d=K(!1),f=K(""),u=K(""),_=K(null),b=K("");let y=!1;const S=pe(()=>d.value),x=pe(()=>{const k=l.value.pdf&&u.value==="pdf"||l.value.zip&&u.value==="zip";return c.value&&k}),E=(k,h,p,g)=>{_.value=k,u.value=h,b.value=g,l.value={pdf:h==="pdf",zip:h==="zip"},c.value=!1,d.value=!1,f.value="",new window.bootstrap.Modal(document.getElementById("downloadModal")).show(),Z.value=p},j=async()=>{if(y)return;if(y=!0,!c.value){y=!1;return}if(d.value&&(!f.value||!f.value.trim())){y=!1;return}const k={dataset_id:_.value,email:d.value?f.value.trim():"",url:window.location.href,resource_id:s.dataid,newsletter_subscribed:d.value};Z.value&&B(Z.value);const h=document.getElementById("downloadModal");h&&window.bootstrap?.Modal&&window.bootstrap.Modal.getInstance(h)?.hide(),U(),y=!1;try{const{submitDatasetDownloadRequest:p}=await Ee(async()=>{const{submitDatasetDownloadRequest:g}=await Promise.resolve().then(()=>un);return{submitDatasetDownloadRequest:g}},void 0);p(k).catch(g=>{console.error("Background download tracking failed:",g)})}catch(p){console.error("Failed to load API for background tracking:",p)}},U=()=>{l.value={pdf:!1,zip:!1},c.value=!1,d.value=!1,f.value="",u.value="",_.value=null,Z.value="",b.value=""},B=k=>{const h=document.createElement("a");h.href=k,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),document.body.removeChild(h)},Y=k=>k.toLowerCase().includes(".pdf")?"pdf":k.toLowerCase().includes(".zip")?"zip":"pdf",re=k=>{k.preventDefault();const p={value:!0,expires:Date.now()+120*1e3};localStorage.setItem("cupd_disclaimer_clicked",JSON.stringify(p)),window.open("project-description","_blank")},Z=K(""),fe=k=>{k.style.height="0",k.style.opacity="0",k.style.overflow="hidden"},T=k=>{k.style.transition="all 0.3s ease",k.style.height=k.scrollHeight+"px",k.style.opacity="1"},C=k=>{k.style.height="auto"},M=k=>{k.style.height=k.scrollHeight+"px",k.style.opacity="1",k.style.overflow="hidden"},A=k=>{k.style.transition="all 0.3s ease",k.style.height="0",k.style.opacity="0"},G=k=>{k.style.height="auto"};return(k,h)=>(m(),v(ae,null,[i("div",ky,[D(s)?.data&&D(s).data.trim()?(m(),v("div",xy,[i("div",Ey,[i("div",$y,[i("div",{innerHTML:D(s).data},null,8,Sy)])])])):N("",!0),i("div",Cy,[i("div",Ty,[(m(!0),v(ae,null,xe(n.value,(p,g)=>(m(),v("div",{class:"newsletter-item",key:`dataset-${p.id}`},[i("div",Ay,[i("div",Ry,[i("h4",Py,R(p.title),1),i("p",Iy,R(p.date),1),i("p",Dy,R(p.short_description),1),ke(to,{onBeforeEnter:fe,onEnter:T,onAfterEnter:C,onBeforeLeave:M,onLeave:A,onAfterLeave:G},{default:we(()=>[o(p.id)?(m(),v("div",Ly,[p.long_description?(m(),v("div",{key:0,innerHTML:p.long_description},null,8,Oy)):N("",!0)])):N("",!0)]),_:2},1024),i("div",jy,[p.long_description?(m(),v("div",Fy,[i("a",{href:"javascript:void(0)",class:"nav-link btn-2 ps-0 read-more-btn",onClick:P=>a(g)},R(o(p.id)?"Read Less":"Read More"),9,My)])):N("",!0)]),p.downloadLinks&&p.downloadLinks.length>0?(m(),v("div",Ny,[i("ul",null,[(m(!0),v(ae,null,xe(p.downloadLinks,(P,O)=>(m(),v("li",{key:O},[i("a",{href:"javascript:void(0)",onClick:z=>E(p.id,Y(P.url),P.url,P.text)},R(P.text),9,Uy)]))),128))])])):N("",!0)])])]))),128))]),(!n.value||n.value.length===0)&&!D(s)?.data?(m(),v("div",By,[...h[5]||(h[5]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]),i("div",Vy,[i("div",Hy,[i("div",qy,[h[10]||(h[10]=i("div",{class:"modal-header border-0"},[i("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"})],-1)),i("div",zy,[i("div",Wy,[i("div",Ky,[i("form",{onSubmit:zt(j,["prevent"])},[i("div",Gy,[i("div",Qy,[i("div",Jy,[i("div",Yy,[he(i("input",{class:"form-check-input",type:"checkbox",id:"termsCheck","onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p)},null,512),[[He,c.value]]),i("label",{class:"form-check-label",for:"termsCheck"},[h[6]||(h[6]=ce(" I have read and agree to the terms of usage as de
45scribed in the ",-1)),i("a",{href:"project-description",target:"_blank",onClick:re},"disclaimer.")])])]),i("div",Xy,[i("div",Zy,[he(i("input",{class:"form-check-input",type:"checkbox",id:"newsCheck","onUpdate:modelValue":h[1]||(h[1]=p=>d.value=p)},null,512),[[He,d.value]]),h[7]||(h[7]=i("label",{class:"form-check-label",for:"newsCheck"}," I would like to receive updates from CUPDF. ",-1))])]),he(i("div",eb,[he(i("input",{type:"email",class:"form-control form-control-lg",placeholder:"Email address","onUpdate:modelValue":h[2]||(h[2]=p=>f.value=p)},null,512),[[ze,f.value]])],512),[[cn,S.value]])])]),h[9]||(h[9]=i("hr",{class:"mt-5 mb-4"},null,-1)),i("div",tb,[i("div",sb,[u.value==="pdf"?he((m(),v("input",{key:0,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[3]||(h[3]=p=>l.value.pdf=p),disabled:""},null,512)),[[He,l.value.pdf]]):N("",!0),u.value==="zip"?he((m(),v("input",{key:1,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[4]||(h[4]=p=>l.value.zip=p),disabled:""},null,512)),[[He,l.value.zip]]):N("",!0),i("label",nb,R(b.value),1)])]),i("div",ob,[i("button",{type:"submit",class:"btn btn-dark btn-lg btn-modal-pdf-download",id:"downloadBtn",disabled:!x.value},[...h[8]||(h[8]=[ce(" Download ",-1),i("i",{class:"bi bi-download ms-4"},null,-1)])],8,rb)])],32)])])])])])])],64))}},Bt="/build/assets/icon-calendar-D9-QN20T.svg",Vt="/build/assets/icon-location-DlQ2fFBL.svg",ib={class:"section-padding pb-0"},lb={class:"row gutter-lg"},cb=["href"],ub={class:"event-card"},db={key:0,class:"card-img-placeholder"},fb=["src","alt"],pb={class:"card-body pb-0"},mb={class:"event-card-label"},hb={class:"event-card-meta"},gb={class:"event-card-meta"},_b=["href"],vb={class:"event-card"},yb={key:0,class:"card-img-placeholder"},bb=["src","alt"],wb={class:"card-body pb-0"},kb={class:"event-card-label"},xb={class:"event-card-meta"},Eb={class:"event-card-meta"},$b={key:2,class:"event-card-link event-card-no-link"},Sb={class:"event-card"},Cb={key:0,class:"card-img-placeholder"},Tb=["src","alt"],Ab={class:"card-body pb-0"},Rb={class:"event-card-label"},Pb={class:"event-card-meta"},Ib={class:"event-card-meta"},Db={key:0,class:"col-12 text-center py-5"},Lb={__name:"events",props:{resourceDetail:Object,activeTab:String},setup(e){ns();const t=e,{resourceDetail:s}=t,n=r=>{const a="col-lg-4 col-md-6 col-sm-6",o=s?.resource_events?.length||0;if(o===1)return a;if(o===2)return a+(r===0?" border-end":"");const c=r%3<2?" border-end":"";return a+c};return(r,a)=>(m(),v("div",ib,[i("div",lb,[(m(!0),v(ae,null,xe(D(s)?.resource_events,(o,l)=>(m(),v("div",{key:o.id,class:Ne(n(l))},[!o?.detail_page_option||o?.detail_page_option===""?(m(),v("a",{key:0,href:`/events/${o.slug}`,class:"event-card-link"},[i("div",ub,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,fb)):(m(),v("div",db)),i("div",pb,[i("p",mb,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",hb,[a[0]||(a[0]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",gb,[a[1]||(a[1]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,cb)):o?.detail_page_option==="1"&&o?.external_detail_link?(m(),v("a",{key:1,href:o?.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"event-card-link"},[i("div",vb,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,bb)):(m(),v("div",yb)),i("div",wb,[i("p",kb,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",xb,[a[2]||(a[2]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",Eb,[a[3]||(a[3]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,_b)):o?.detail_page_option==="2"?(m(),v("div",$b,[i("div",Sb,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,Tb)):(m(),v("div",Cb)),i("div",Ab,[i("p",Rb,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",Pb,[a[4]||(a[4]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",Ib,[a[5]||(a[5]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])])):N("",!0)],2))),128)),!D(s)?.resource_events||D(s).resource_events.length===0?(m(),v("div",Db,[...a[6]||(a[6]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},Ob=pt(Lb,[["__scopeId","data-v-0e7fc8cc"]]),jb="/build/assets/scale-bar-DNARvmAJ.jpg",Fb={class:"mt-5 pt-2"},Mb={class:"mb-3"},Nb={class:"row g-5"},Ub={class:"col-md-4 col-lg-4 col-xl-3"},Bb={class:"section-heading-lg fw-light gray-color mb-2"},Vb={class:"fw-light gray-color"},Hb=["href"],qb=["src","alt"],zb={class:"col-md-8 col-lg-8 col-xl-6"},Wb=["innerHTML"],Kb={class:"scale-img-box-con mt-4"},Gb={class:"scale-img-box-col scale-img-img"},Qb={class:"scale-img-box-full"},Jb={class:"position-relative"},Yb={class:"resources-detalis-slide-con"},Xb={class:"resources-detalis-slide mb-0"},Zb={class:"resources-detalis-col"},ew=["src"],tw={class:"resources-detalis-col"},sw=["src"],nw={class:"text-center mt-5"},ow=["src"],rw={class:"row g-0 my-4 thumbnail-list"},aw={class:"col-md-9 mx-auto"},iw={class:"row g-5 justify-content-center"},lw=["src","alt"],cw={class:"small mt-2 gray-color"},uw={class:"text-center my-4"},dw={class:"row"},fw={class:"col-lg-9 mx-auto"},pw=["src"],mw={key:0,class:"text-end mb-0"},hw={type:"button",class:"btn btn-lg btn-dark btn-pdf-download","data-bs-toggle":"modal","data-bs-target":"#downloadModal"},gw={class:"modal fade download-modal",id:"downloadModal",tabindex:"-1"},_w={class:"modal-dialog modal-xl modal-dialog-centered"},vw={class:"modal-content"},yw={class:"modal-body pt-0"},bw={class:"container-fluid ps-3 pe-3"},ww={class:"d-inline-block w-100 mt-3 mb-4"},kw={class:"bg-color"},xw={class:"row g-4"},Ew={class:"col-md-12"},$w={class:"form-group form-check"},Sw={class:"col-md-12 mt-2"},Cw={class:"form-group form-check"}
45,Tw={class:"col-md-6",id:"emailField"},Aw={class:"text-center d-flex multi-download"},Rw={key:0,class:"form-group me-4"},Pw={key:1,class:"form-group me-4"},Iw={class:"text-center mt-5"},Dw=["disabled"],Lw={__name:"morphology-detail",setup(e){const t=yr(),s=K(null),n=K(!0),r=K(null),a=K({pdf:!1,zip:!1}),o=K(!1),l=K(!1),{responsiveImage:c}=ns(),{setSeoTags:d}=wr(),f=T=>c(T);gt(s,T=>{T&&T.seo&&d({title:T.seo.title,description:T.seo.description,keywords:T.seo.keywords,url:window.location.href,type:"article"})},{immediate:!0});const u=pe(()=>{if(!s.value?.images)return[];const T=s.value.images;return[{label:T.morphology_type_one_label,image:T.morphology_type_one_image},{label:T.morphology_type_two_label,image:T.morphology_type_two_image},{label:T.morphology_type_three_label,image:T.morphology_type_three_image},{label:T.morphology_type_four_label,image:T.morphology_type_four_image}].filter(M=>M.image&&M.image!=="")}),_=pe(()=>{const T=a.value.pdf&&y.value||a.value.zip&&S.value;return o.value&&T}),b=pe(()=>l.value),y=pe(()=>s.value?.resources?.resource_file_path),S=pe(()=>s.value?.resources?.resource_zip),x=pe(()=>y.value||S.value),E=async T=>{try{const C=j(T),M=new FormData;M.append("url",T),M.append("filename",C);const A=await fetch("/api/proxy-download",{method:"POST",body:M,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")||""}});if(!A.ok)throw new Error(`Download failed: ${A.status}`);const G=await A.blob(),k=window.URL.createObjectURL(G),h=document.createElement("a");h.href=k,h.download=C,h.style.display="none",document.body.appendChild(h),h.click(),document.body.removeChild(h),window.URL.revokeObjectURL(k)}catch(C){console.error("Proxy download failed:",C);const M=document.createElement("a");M.href=T,M.target="_blank",M.rel="noopener noreferrer",M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}},j=T=>{try{return T.split("/").pop()||"download"}catch{return"download"}},U=async()=>{try{n.value=!0,r.value=null;const T=t.params.morphologySlug,C=await nc(T);C.success&&C.data?s.value=C.data:r.value="Failed to fetch morphology data"}catch(T){r.value=T.message||"An error occurred while fetching morphology details",console.error("Error fetching morphology detail:",T)}finally{n.value=!1}};let B=!1;const Y=async T=>{if(T.preventDefault(),B)return;if(B=!0,!o.value){B=!1;return}if(!(a.value.pdf&&y.value||a.value.zip&&S.value)){B=!1;return}const A=document.getElementById("emailField")?.querySelector('input[type="email"]');if(l.value&&(!A||!A.value.trim())){B=!1;return}const G={project_id:s.value?.id,email:l.value?A.value.trim():"",url:window.location.href,resource_id:1,newsletter_subscribed:l.value,downloads:a.value},k=s.value?.resources;k&&(a.value.pdf&&y.value&&k.resource_file_path&&E(k.resource_file_path),a.value.zip&&S.value&&k.resource_zip&&E(k.resource_zip));const h=document.getElementById("downloadModal");h&&window.bootstrap?.Modal&&window.bootstrap.Modal.getInstance(h)?.hide(),Z(),B=!1;try{const{submitProjectDownloadRequest:p}=await Ee(async()=>{const{submitProjectDownloadRequest:g}=await Promise.resolve().then(()=>un);return{submitProjectDownloadRequest:g}},void 0);p(G).catch(g=>{console.error("Background download tracking failed:",g)})}catch(p){console.error("Failed to load API for background tracking:",p)}},re=T=>{T.preventDefault();const M={value:!0,expires:Date.now()+120*1e3};localStorage.setItem("cupd_disclaimer_clicked",JSON.stringify(M)),window.open("../project-description","_blank")},Z=()=>{a.value={pdf:!1,zip:!1},o.value=!1,l.value=!1;const C=document.getElementById("emailField")?.querySelector('input[type="email"]');C&&(C.value="")},fe=()=>{const T=document.getElementById("termsCheck"),C=document.getElementById("downloadBtn");T&&C&&T.addEventListener("change",function(){C.disabled=!this.checked,this.checked,C.style.backgroundColor="#eceaea",C.style.color="#000"});const M=document.querySelector("#downloadModal form");M&&M.addEventListener("submit",Y);const A=document.getElementById("downloadModal");A&&(A.addEventListener("show.bs.modal",()=>{Z()}),A.addEventListener("hidden.bs.modal",()=>{Z()})),window.jQuery&&window.jQuery.fn.slick&&window.jQuery(".resources-detalis-slide").slick({slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!0})};return Qe(async()=>{await U(),await Me(),fe()}),(T,C)=>{const M=dr("router-link");return m(),v(ae,null,[i("div",Fb,[i("div",Mb,[ke(M,{to:"/resources/study-of-urban-morphology",class:"back-link"},{default:we(()=>[...C[4]||(C[4]=[i("i",{class:"fa fa-angle-left","aria-hidden":"true"},null,-1),ce(" BACK",-1)])]),_:1}
45)]),i("div",Nb,[i("div",Ub,[i("h2",Bb,R(s.value?.title),1),i("h5",Vb,R(s.value?.city?.name)+", "+R(s.value?.state?.name),1),i("a",{href:s.value?.google_map_link,target:"_blank"},[i("img",{src:s.value?.images?.city_image,class:"img-fluid resource-map",alt:`Locator map for ${s.value?.title}`},null,8,qb)],8,Hb)]),i("div",zb,[i("p",{class:"text-muted ck-content ckeditorTag",innerHTML:s.value?.short_description},null,8,Wb),i("div",Kb,[C[5]||(C[5]=i("div",{class:"scale-img-box-col scale-img-scale"},[i("div",{class:"scale-img-box-full"},[i("img",{src:jb,class:"",alt:"Scale bar"})])],-1)),i("div",Gb,[i("div",Qb,[i("div",Jb,[i("div",Yb,[i("div",Xb,[i("div",Zb,[i("img",{src:s.value?.images?.area_map_image,class:"img-fluid img-border w-100",alt:"Area map"},null,8,ew)]),i("div",tw,[i("img",{src:s.value?.images?.area_map_satellite_image,class:"img-fluid img-border w-100",alt:"Satellite image"},null,8,sw)])])])])])])]),i("div",nw,[i("img",{src:s.value?.images?.chart_image,class:"img-fluid mt-4 w-100 scale-bottam-image",alt:"Morphology chart"},null,8,ow)])])]),i("div",rw,[i("div",aw,[i("div",iw,[(m(!0),v(ae,null,xe(u.value,(A,G)=>(m(),v("div",{class:"col-3",key:G},[i("img",{src:A.image,class:"img-fluid thumbnail",alt:A.label},null,8,lw),i("p",cw,R(A.label),1)]))),128))])])]),i("div",uw,[i("div",dw,[i("div",fw,[i("img",{src:f(s.value?.images?.["3d_image"]),class:"img-fluid w-100",alt:"3D Isometric view"},null,8,pw)])])]),x.value?(m(),v("div",mw,[i("button",hw,[ce(R(s.value?.resources?.resource_title||"Download")+" ",1),C[6]||(C[6]=i("i",{class:"fa fa-download ms-5","aria-hidden":"true"},null,-1))])])):N("",!0)]),i("div",gw,[i("div",_w,[i("div",vw,[C[14]||(C[14]=i("div",{class:"modal-header border-0"},[i("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"})],-1)),i("div",yw,[i("div",bw,[i("div",ww,[i("form",null,[i("div",kw,[i("div",xw,[i("div",Ew,[i("div",$w,[he(i("input",{class:"form-check-input",type:"checkbox",id:"termsCheck","onUpdate:modelValue":C[0]||(C[0]=A=>o.value=A)},null,512),[[He,o.value]]),i("label",{class:"form-check-label",for:"termsCheck"},[C[7]||(C[7]=ce(" I have read and agree to the terms of usage as described in the ",-1)),i("a",{href:"../project-description",target:"_blank",onClick:re},"disclaimer.")])])]),i("div",Sw,[i("div",Cw,[he(i("input",{class:"form-check-input",type:"checkbox",id:"newsCheck","onUpdate:modelValue":C[1]||(C[1]=A=>l.value=A)},null,512),[[He,l.value]]),C[8]||(C[8]=i("label",{class:"form-check-label",for:"newsCheck"}," I would like to receive updates from CUPDF. ",-1))])]),he(i("div",Tw,[...C[9]||(C[9]=[i("input",{type:"email",class:"form-control form-control-lg",placeholder:"Email address"},null,-1)])],512),[[cn,b.value]])])]),C[13]||(C[13]=i("hr",{class:"mt-5 mb-4"},null,-1)),i("div",Aw,[y.value?(m(),v("div",Rw,[he(i("input",{type:"checkbox",id:"PDF","onUpdate:modelValue":C[2]||(C[2]=A=>a.value.pdf=A)},null,512),[[He,a.value.pdf]]),C[10]||(C[10]=i("label",{for:"PDF"},"PDF",-1))])):N("",!0),S.value?(m(),v("div",Pw,[he(i("input",{type:"checkbox",id:"ZIP","onUpdate:modelValue":C[3]||(C[3]=A=>a.value.zip=A)},null,512),[[He,a.value.zip]]),C[11]||(C[11]=i("label",{for:"ZIP"},"ZIP",-1))])):N("",!0)]),i("div",Iw,[i("button",{type:"submit",class:"btn btn-dark btn-lg btn-modal-pdf-download",id:"downloadBtn",disabled:!_.value},[...C[12]||(C[12]=[ce(" Download ",-1),i("i",{class:"bi bi-download ms-4"},null,-1)])],8,Dw)])])])])])])])])],64)}}},Ow={class:"section-padding pb-0",style:{"padding-top":"15px"}},jw={class:"collapse d-lg-block",id:"mobileFilters"},Fw={class:"filter-panel mb-4"},Mw={class:"search-select mb-0",role:"search","aria-label":"Search with filter"},Nw={class:"search-input"},Uw={class:"form-control",id:"state"},Bw=["value"],Vw=["disabled"],Hw={value:""},qw=["value"],zw=["disabled"],Ww={value:""},Kw=["value"],Gw={class:"mobile-filter-actions d-md-none mt-4"},Qw={id:"content-results",class:"row g-5 gutter-lg"},Jw=["href","onClick"],Yw=["src"],Xw=["href","onClick"],Zw={class:"text-muted mb-0"},e1={key:0,class:"col-12 text-center py-5"},t1={key:0,class:"pagination-wrapper mt-5",tabindex:"-1"},s1={class:"text-center mt-3 page-list"},n1={class:"text-muted small"},o1={"aria-label":"Pagination"},r1={class:"pagination justify-content-center"},a1=["disabled"],i1=["onClick"],l1={key:1,class:"page-link"}
45,c1=["disabled"],u1={__name:"home",props:{resourceDetail:Object,activeTab:String},setup(e){ns();const t=e,{resourceDetail:s}=t,n=K([]),r=K(!1),a=vr(),o=K(1),l=K(null),c=K(new Set),d=K(!0),f=K(""),u=K({search:"",state_id:"",city_id:"",year:""}),_=K([]),b=K([]),y=K([]),S=K(0),x=K(0),E=K(!1),j=()=>{E.value=window.innerWidth<768};let U=null;const B=pe(()=>{if(!l.value||l.value.last_page<=1)return[];const h=l.value.last_page,p=o.value,g=[];if(h<=7)for(let P=1;P<=h;P++)g.push(P);else if(g.push(1),p<=3){for(let P=2;P<=4;P++)g.push(P);g.push("..."),g.push(h)}else if(p>=h-2){g.push("...");for(let P=h-3;P<=h;P++)g.push(P)}else{g.push("...");for(let P=p-1;P<=p+1;P++)g.push(P);g.push("..."),g.push(h)}return g}),Y=()=>{d.value&&window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})},re=h=>{h.target.src="/assets/images/placeholder.jpg"},Z=h=>{E.value&&setTimeout(()=>{const p=document.querySelector(".filter-panel");p&&p.scrollIntoView({behavior:"smooth",block:"start"})},300)},fe=async()=>{if(f.value="",u.value.search="",u.value.state_id="",u.value.city_id="",u.value.year="",typeof window.jQuery<"u"&&window.jQuery){const h=window.jQuery;try{const p=h("#state");p.length&&p.data("select2")?p.val(null).trigger("change"):p.length&&p.val("");const g=h("#city"),P=h("#year");if(b.value=[],y.value=[],g.length&&g.data("select2"))try{g.off("change.select2"),g.select2("destroy")}catch(O){console.warn("Error destroying city Select2:",O)}if(P.length&&P.data("select2"))try{P.off("change.select2"),P.select2("destroy")}catch(O){console.warn("Error destroying year Select2:",O)}if(g.empty().append('<option value="">Please select state first</option>'),P.empty().append('<option value="">Please select state first</option>'),await Me(),await new Promise(O=>setTimeout(O,50)),g.length&&!g.data("select2"))try{g.prop("disabled",!0),g.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"})}catch(O){console.error("Error reinitializing city Select2:",O)}if(P.length&&!P.data("select2"))try{P.prop("disabled",!0),P.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"})}catch(O){console.error("Error reinitializing year Select2:",O)}}catch(p){console.warn("Error clearing Select2 dropdowns:",p)}}o.value=1,c.value.clear(),n.value=[],M(!1)},T=async h=>{h<1||l.value&&h>l.value.last_page||(o.value=h,d.value=!1,await M(!1),d.value||(await Me(),setTimeout(()=>{const p=document.getElementById("content-results");p?p.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:0,behavior:"smooth"})},100)))};let C=null;const M=async(h=!1)=>{try{r.value=!0;const p=f.value.trim();u.value.search=p;let g=String(u.value.state_id||"").trim(),P=String(u.value.city_id||"").trim(),O=String(u.value.year||"").trim();try{if(typeof window.jQuery<"u"&&window.jQuery.fn&&window.jQuery.fn.select2){const Ce=window.jQuery,De=Ce("#state"),Se=Ce("#city"),F=Ce("#year");if(De.length)try{if(De.data("select2")){const q=De.val();q!=null&&(g=String(q).trim())}}catch(Q){console.warn("Could not read state from Select2:",Q)}if(Se.length)try{if(Se.data("select2")){const q=Se.val();q!=null&&(P=String(q).trim())}}catch(Q){console.warn("Could not read city from Select2:",Q)}if(F.length)try{if(F.data("select2")){const q=F.val();q!=null&&(O=String(q).trim())}}catch(Q){console.warn("Could not read year from Select2:",Q)}}}catch(Ce){console.warn("Error reading Select2 values, using reactive values:",Ce)}u.value.state_id=g,u.value.city_id=P,u.value.year=O;const z={};p&&p.length>0&&(z.search=p),g&&g!==""&&g!=="null"&&g!=="undefined"&&(z.state_id=g),P&&P!==""&&P!=="null"&&P!=="undefined"&&(z.city_id=P),O&&O!==""&&O!=="null"&&O!=="undefined"&&(z.year=O);const X=JSON.stringify(z),ie=C!==null&&C!==X;ie&&(o.value=1,c.value.clear(),n.value=[]),z.page=o.value;const ye=await oc(z);if(ye&&ye.success){const Ce=ye.data||[];n.value=[],ie&&c.value.clear();const De=new Set;Ce.forEach(F=>{De.has(F.id)||(n.value.push(F),De.add(F.id),c.value.add(F.id))}),l.value=ye.pagination||null;const Se={...z};delete Se.page,C=JSON.stringify(Se)}else n.value=[],l.value=null,ye&&ye.message}catch{n.value=[],l.value=null}
45finally{r.value=!1,E.value&&h&&!d.value&&(await Me(),setTimeout(()=>{const p=document.getElementById("content-results");p&&p.scrollIntoView({behavior:"smooth",block:"start"})},100))}},A=async h=>{try{const p=await Gl(h),g=p.success?p.data:p.data||p;if(g){const P=window.jQuery;if(typeof window.jQuery<"u"&&window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2){const O=P("#city"),z=P("#year");if(O.length&&O.data("select2"))try{O.off("change.select2"),O.select2("destroy")}catch(X){console.warn("Error destroying city Select2:",X);try{O.removeData("select2"),O.next(".select2-container").remove()}catch{}}if(z.length&&z.data("select2"))try{z.off("change.select2"),z.select2("destroy")}catch(X){console.warn("Error destroying year Select2:",X);try{z.removeData("select2"),z.next(".select2-container").remove()}catch{}}}if(g.cities&&Array.isArray(g.cities)){const O=[];g.cities.forEach(z=>{if(z&&typeof z=="object"){const X=z.id||z.Id||z.ID,ie=z.name||z.Name||"";X&&O.push({id:Number(X),name:String(ie)})}}),b.value=O,S.value++}else b.value=[],S.value++;if(g.years&&Array.isArray(g.years)?(y.value=g.years.filter(O=>O!=null).map(O=>typeof O=="object"&&O.value!==void 0?String(O.value):String(O)),x.value++):(y.value=[],x.value++),await Me(),await new Promise(O=>setTimeout(O,100)),typeof window.jQuery<"u"&&window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2){const O=P("#city"),z=P("#year");if(O.length&&!O.data("select2"))try{O.prop("disabled",!1),O.select2({placeholder:"City",allowClear:!0,width:"100%"}),O.on("change.select2",function(){try{const X=P(this).val();u.value.city_id=X?String(X):"",E.value||(U&&clearTimeout(U),U=setTimeout(()=>{M()},300))}catch(X){console.error("Error in city select change handler:",X)}})}catch(X){console.error("Error initializing city Select2:",X)}if(z.length&&!z.data("select2"))try{z.prop("disabled",!1),z.select2({placeholder:"Year",allowClear:!0,width:"100%"}),z.on("change.select2",function(){try{const X=P(this).val();u.value.year=X?String(X):"",E.value||(U&&clearTimeout(U),U=setTimeout(()=>{M()},300))}catch(X){console.error("Error in year select change handler:",X)}})}catch(X){console.error("Error initializing year Select2:",X)}}}else console.warn("No data in response"),b.value=[],y.value=[]}catch(p){console.error("Error loading state data:",p),b.value=[],y.value=[]}},G=()=>{if(typeof window.jQuery>"u"||!window.jQuery||!window.jQuery.fn||!window.jQuery.fn.select2)return;const h=window.jQuery,p=h("#state");if(p.length&&!p.data("select2"))try{p.select2({placeholder:"State",allowClear:!0,width:"100%"}).on("change",async function(){try{const O=h(this).val(),z=O?String(O):"";u.value.state_id=z,u.value.city_id="",u.value.year="";const X=h("#city"),ie=h("#year");if(!z)b.value=[],y.value=[],X.empty().append('<option value="">Please select state first</option>'),ie.empty().append('<option value="">Please select state first</option>'),X.val(null).trigger("change"),ie.val(null).trigger("change"),X.prop("disabled",!0),ie.prop("disabled",!0);else{if(X.length&&X.data("select2"))try{X.off("change.select2"),X.select2("destroy")}catch(ye){console.warn("Error destroying city Select2:",ye)}if(ie.length&&ie.data("select2"))try{ie.off("change.select2"),ie.select2("destroy")}catch(ye){console.warn("Error destroying year Select2:",ye)}if(b.value=[],y.value=[],S.value++,x.value++,await Me(),await new Promise(ye=>setTimeout(ye,100)),X.length&&!X.data("select2"))try{X.prop("disabled",!0),X.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"})}catch(ye){console.error("Error initializing city Select2:",ye)}if(ie.length&&!ie.data("select2"))try{ie.prop("disabled",!0),ie.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"})}catch(ye){console.error("Error initializing year Select2:",ye)}await A(z)}E.value||(U&&clearTimeout(U),U=setTimeout(()=>{M()},300))}catch(O){console.error("Error in state select change handler:",O)}})}catch(O){console.error("Error initializing state Select2:",O)}const g=h("#city");if(g.length&&!g.data("select2"))try{g.prop("disabled",!0),g.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"}).on("change",function(){try{const O=h(this).val();
45u.value.city_id=O?String(O):"",E.value||(U&&clearTimeout(U),U=setTimeout(()=>{M()},300))}catch(O){console.error("Error in city select change handler:",O)}})}catch(O){console.error("Error initializing city Select2:",O)}const P=h("#year");if(P.length&&!P.data("select2"))try{P.prop("disabled",!0),P.select2({placeholder:"Please select state first",allowClear:!0,width:"100%"}).on("change",function(){try{const O=h(this).val();u.value.year=O?String(O):"",E.value||(U&&clearTimeout(U),U=setTimeout(()=>{M()},300))}catch(O){console.error("Error in year select change handler:",O)}})}catch(O){console.error("Error initializing year Select2:",O)}},k=async()=>{try{const h=await br("figure-grounds");h.success&&h.data&&(h.data.states&&(_.value=h.data.states),b.value=[],y.value=[])}catch(h){console.error("Error fetching master data:",h)}};return Qe(async()=>{try{const h=window.scrollY;window.addEventListener("scroll",Y,{passive:!0});let p=setInterval(()=>{d.value&&window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})},100);gt(()=>d.value,g=>{!g&&p&&(clearInterval(p),p=null,window.removeEventListener("scroll",Y))}),j(),window.addEventListener("resize",j),await k(),await M(!1),await Me(),setTimeout(()=>{d.value=!1},500),requestAnimationFrame(()=>{requestAnimationFrame(()=>{h===0&&window.scrollTo({top:0,behavior:"instant"})})}),await Me(),setTimeout(()=>{if(G(),E.value){const g=document.getElementById("q");if(g&&g.addEventListener("focus",Z),window.jQuery&&window.jQuery.fn.select2){const P=window.jQuery;P("#state, #city, #year").on("select2:open",Z)}}},50)}catch(h){console.error("Error initializing component:",h)}}),gt(()=>l.value,h=>{h&&d.value&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.scrollY>0&&window.scrollTo({top:0,behavior:"instant"})})})},{immediate:!0}),an(()=>{if(window.removeEventListener("resize",j),window.removeEventListener("scroll",Y),U&&clearTimeout(U),window.jQuery&&window.jQuery.fn.select2)try{window.jQuery("#state").data("select2")&&window.jQuery("#state").select2("destroy"),window.jQuery("#city").data("select2")&&window.jQuery("#city").select2("destroy"),window.jQuery("#year").data("select2")&&window.jQuery("#year").select2("destroy")}catch{}}),(h,p)=>(m(),v("div",Ow,[i("div",jw,[i("div",Fw,[i("div",Mw,[i("div",Nw,[he(i("input",{id:"q",type:"text","onUpdate:modelValue":p[0]||(p[0]=g=>f.value=g),onKeypress:Il(M,["enter"]),onFocus:Z,placeholder:"Keyword Search","aria-label":"Search query"},null,544),[[ze,f.value]])]),E.value?N("",!0):(m(),v("button",{key:0,type:"button",onClick:M,class:"search-btn-filter","aria-label":"Search"},[...p[4]||(p[4]=[i("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("path",{d:"M21 21l-4.35-4.35",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("circle",{cx:"11.5",cy:"11.5",r:"5.5",stroke:"#333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])),i("select",Uw,[p[5]||(p[5]=i("option",{value:""},"State",-1)),(m(!0),v(ae,null,xe(_.value,g=>(m(),v("option",{key:g.id,value:g.id},R(g.name),9,Bw))),128))]),(m(),v("select",{class:"form-control",id:"city",key:`city-${S.value}`,disabled:!u.value.state_id},[i("option",Hw,R(u.value.state_id?"City":"Please select state first"),1),(m(!0),v(ae,null,xe(b.value,g=>(m(),v("option",{key:g.id,value:g.id},R(g.name),9,qw))),128))],8,Vw)),(m(),v("select",{class:"form-control w-100",id:"year",key:`year-${x.value}`,disabled:!u.value.state_id},[i("option",Ww,R(u.value.state_id?"Year":"Please select state first"),1),(m(!0),v(ae,null,xe(y.value,g=>(m(),v("option",{key:g,value:g},R(g),9,Kw))),128))],8,zw)),E.value?N("",!0):(m(),v("button",{key:1,type:"button",onClick:fe,class:"btn-reset-filters"}," Reset Filters "))]),i("div",Gw,[i("button",{type:"button",onClick:p[1]||(p[1]=()=>M(!0)),class:"btn-mobile-submit"}," Submit Filters "),i("button",{type:"button",onClick:fe,class:"btn-mobile-reset"}," Reset Filters ")])])]),i("div",Qw,[(m(!0),v(ae,null,xe(n.value,g=>(m(),v("div",{key:g.id,class:"col-lg-4 col-md-6 col-sm-6 morphology-card"},[i("a",{href:`/resources/figure-grounds-of-indian-cities/projects/${g.slug}`,onClick:zt(P=>D(a).push(`/resources/figure-grounds-of-indian-cities/projects/${g.slug}`),["prevent"])},[i("img",{src:g.listing_image||"/assets/images/placeholder.jpg",class:"img-fluid",onError:re},null,40,Yw)],8,Jw),i("h4",null,[i("a",{href:`/resources/figure-grounds-of-indian-cities/projects/${g.slug}`,onClick:zt(P=>D(a).push(`/resources/figure-grounds-of-indian-cities/projects/${g.slug}`),["prevent"])},R(g.city),9,Xw)]),i("p",Zw,R(g.state),1)]))),128)),n.value.length===0&&!r.value?(m(),v("div",e1,[...p[6]||(p[6]=[i("p",{class:"text-muted"},"No figure grounds data available.",-1)])])):N("",!0)]),l.value&&l.value.last_page>1?(m(),v("div",t1,[i("div",s1,[i("p",n1," Showing "+R(l.value.from||0)+" to "+R(l.value.to||0)+" of "+R(l.value.total||0)+" results ",1)]),i("nav",o1,[i("ul",r1,[i("li",{class:Ne(["page-item",{disabled:o.value===1}])},[i("button",{class:"page-link",onClick:p[2]||(p[2]=g=>T(o.value-1)),disabled:o.value===1,"aria-label":"Previous"},[...p[7]||(p[7]=[i("span",{"aria-hidden":"true"},"Prev",-1)])],8,a1)],2),(m(!0),v(ae,null,xe(B.value,g=>(m(),v("li",{key:g,class:Ne(["page-item",{active:g===o.value,disabled:g==="..."}])},[g!=="..."?(m(),v("button",{key:0,class:Ne(["page-link",{active:g===o.value}]),onClick:P=>T(g)},R(g),11,i1)):(m(),v("span",l1,R(g),1))],2))),128)),i("li",{class:Ne(["page-item",{disabled:o.value===l.value.last_page}])},[i("button",{class:"page-link",onClick:p[3]||(p[3]=g=>T(o.value+1)),disabled:o.value===l.value.last_page,"aria-label":"Next"},[...p[8]||(p[8]=[i("span",{"aria-hidden":"true"},"Next",-1)])],8,c1)],2)])])])):N("",!0)]))}},d1=pt(u1,[["__scopeId","data-v-8b1b2bb1"]]),f1={class:"section-padding newsletter-section publication-section pb-0"},p1={class:"row justify-content-center"},m1={class:"col-lg-9"},h1=["innerHTML"],g1={key:1,class:"accordion custom-accordion mt-4",id:"projectAccordion"},_1=["id"],v1=["data-bs-target"],y1=["id"],b1={key:0,class:"accordion-body pt-0"},w1={class:"row profile-card-sm"},k1={class:"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 profile-card-col text-muted"},x1=["innerHTML"],E1={key:1,class:"accordion-body text-muted pt-0"},$1=["innerHTML"],S1={key:0,class:"text-center py-5"}
45,C1={__name:"project-description",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=()=>{const r=localStorage.getItem("cupd_disclaimer_clicked");if(r)try{if(JSON.parse(r).expires>Date.now()){localStorage.removeItem("cupd_disclaimer_clicked");const o=s?.project_description?.items;if(o&&o.length>0){const c=`collapse${o[o.length-1].id}`;Me(()=>{const d=document.getElementById(c);if(d){const f=new window.bootstrap.Collapse(d,{show:!0});setTimeout(()=>{const u=document.getElementById("projectAccordion");u&&u.scrollIntoView({behavior:"smooth",block:"start"})},300)}})}}else localStorage.removeItem("cupd_disclaimer_clicked")}catch{localStorage.removeItem("cupd_disclaimer_clicked")}};return Qe(()=>{n()}),(r,a)=>(m(),v("div",f1,[i("div",p1,[i("div",m1,[D(s)?.project_description?.section_1?(m(),v("div",{key:0,class:"text-muted mb-4 ck-content ckeditorTag",innerHTML:D(s)?.project_description?.section_1},null,8,h1)):N("",!0),D(s)?.project_description?.items&&D(s).project_description.items.length>0?(m(),v("div",g1,[(m(!0),v(ae,null,xe(D(s).project_description.items,(o,l)=>(m(),v("div",{class:"accordion-item",key:o.id},[i("div",{class:"accordion-header",id:`heading${o.id}`},[i("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse${o.id}`},R(o.label),9,v1)],8,_1),i("div",{id:`collapse${o.id}`,class:"accordion-collapse collapse","data-bs-parent":"#projectAccordion"},[o.label==="Project Team"?(m(),v("div",b1,[i("div",w1,[i("div",k1,[i("div",{class:"ck-content ckeditorTag",innerHTML:o.description},null,8,x1)])])])):(m(),v("div",E1,[i("div",{class:"ck-content ckeditorTag",innerHTML:o.description},null,8,$1)]))],8,y1)]))),128))])):N("",!0)]),!D(s)?.project_description?.section_1&&(!D(s)?.project_description?.items||D(s).project_description.items.length===0)&&!D(s)?.project_description?.youtube_link?(m(),v("div",S1,[...a[0]||(a[0]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}};function T1(){const e=K(!1),t=K(null),s=K([]),n=K([]),r=K([]);return{loading:e,error:t,studies:s,dropdownData:n,selectedStudies:r,fetchCompareStudies:async()=>{e.value=!0,t.value=null;try{const d=await cc();if(d.success)return s.value=d.data,r.value=d.data,d.data;throw new Error(d.message||"Failed to fetch compare studies")}catch(d){throw t.value=d.message||"An error occurred while fetching compare studies",d}finally{e.value=!1}},fetchDropdownData:async()=>{e.value=!0,t.value=null;try{const d=await uc();if(d.success)return n.value=d.data,d.data;throw new Error(d.message||"Failed to fetch dropdown data")}catch(d){throw t.value=d.message||"An error occurred while fetching dropdown data",d}finally{e.value=!1}},updateStudyImage:async(d,f)=>{if(f)try{const u=await dc(f);if(u.success){const _={slug:u.data.slug,title:u.data.study_title,city:u.data.city,state:u.data.state,map_detail_image:u.data.image_url};return r.value.splice(d,1,_),setTimeout(()=>{typeof window<"u"&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("panzoom-reinitialize-single",{detail:{containerIndex:d}}))},200),_}else throw new Error(u.message||"Failed to update study image")}catch(u){throw u}},getStudyImage:d=>d&&d.map_detail_image||""}}const A1={class:"thumbnail-list",style:{"margin-top":"3rem !important"}},R1={class:"row g-5 project-compare-form"},P1=["id"],I1={class:"map-container"},D1=["src","alt","onError"],L1={key:0,class:"zoom-controls"},O1={class:"mt-3"},j1={class:"text-muted"},Ha={__name:"compare-features",props:{filteredItems:Array,searchQuery:String,selectedCity:String,selectedArea:String,selectedYear:String},setup(e){const t=K(new Set),s=f=>{const u=document.querySelectorAll(".map-container")[f];if(u){const _=u.querySelector(".pannable-map");_&&_.src&&!_.src.includes("placehold.co")?t.value.add(f):_&&_.src&&_.src.includes("placehold.co")}},n=f=>{const u=d(f);return u||"https://placehold.co/500x500/EFEFEF/CCCCCC?text=Morphology+Not+Available"},{dropdownData:r,selectedStudies:a,fetchCompareStudies:o,fetchDropdownData:l,updateStudyImage:c,getStudyImage:d}=T1();return Qe(async()=>{try{await o(),await l()}catch{}setTimeout(()=>{const u=document.querySelectorAll(".map-container"),_=[];u.forEach(S=>{const x=S.querySelector(".pannable-map");if(x){let E=function(){if(x.tagName==="IMG"){const j=()=>
45{if(!(x.src&&x.src.includes("placehold.co"))&&x.isConnected){const U={maxScale:5,minScale:.5,step:.1,contain:"outside"};try{const B=Panzoom(x,U);_.push(B)}catch{}}};x.complete?j():(x.addEventListener("load",j,{once:!0}),x.addEventListener("error",()=>{setTimeout(j,100)},{once:!0}))}else{const j={maxScale:5,minScale:.5,step:.1,contain:"outside"};try{const U=Panzoom(x,j);_.push(U)}catch{}}};if(typeof Panzoom>"u"){const j=document.createElement("script");j.src="https://unpkg.com/@panzoom/[email protected]/dist/panzoom.min.js",j.onload=()=>E(),document.head.appendChild(j)}else E()}}),u.forEach(S=>{S.addEventListener("wheel",function(x){x.preventDefault(),_.forEach(E=>{if(E&&typeof E.zoomWithWheel=="function")try{E.zoomWithWheel(x)}catch{}})})});const b=document.querySelectorAll(".zoom-in"),y=document.querySelectorAll(".zoom-out");b.forEach(S=>{S.addEventListener("click",()=>{_.forEach(x=>{if(x&&typeof x.zoomIn=="function")try{x.zoomIn()}catch{}})})}),y.forEach(S=>{S.addEventListener("click",()=>{_.forEach(x=>{if(x&&typeof x.zoomOut=="function")try{x.zoomOut()}catch{}})})})},100),typeof window<"u"&&window.addEventListener("panzoom-reinitialize-single",u=>{const{containerIndex:_}=u.detail;setTimeout(()=>{const y=document.querySelectorAll(".map-container")[_];if(y&&!t.value.has(_)){const S=y.querySelector(".pannable-map");if(S&&S.tagName==="IMG"){if(panzoomInstances[_])try{panzoomInstances[_].dispose()}catch{}if(panzoomInstances[_]=null,S.src&&S.src.includes("placehold.co"))return;const x={maxScale:5,minScale:.5,step:.1,contain:"outside"};try{const E=Panzoom(S,x);panzoomInstances[_]=E}catch{panzoomInstances[_]=null}setTimeout(()=>{setupPanzoomEventHandlers()},100)}}},500)});const f=()=>{function u(_,b,y="Select Morphology",S,x=null){const E=document.getElementById(_);if(!E)return null;const j="dropdown_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);E.innerHTML=` 46 <div class="custom-dropdown"> 47 <div class="form-select dropdown-selected" id="${j}_selected"> 48 <span id="${j}_selectedText">${x||y}</span> 49 </div> 50 <div class="dropdown-list" id="${j}_list"> 51 <div class="search-box"> 52 <input type="text" class="search-input" id="${j}_search" placeholder=""> 53 </div> 54 <div class="dropdown-content" id="${j}_content"> 55 <!-- Items will be populated by JavaScript --> 56 </div> 57 </div> 58 </div> 59 `;const U=document.getElementById(`${j}_selected`),B=document.getElementById(`${j}_list`),Y=document.getElementById(`${j}_content`),re=document.getElementById(`${j}_search`),Z=document.getElementById(`${j}_selectedText`);U.addEventListener("click",function(){B.classList.toggle("show"),B.classList.contains("show")&&re.focus()}),document.addEventListener("click",function(C){C.target.closest(`#${_}`)||B.classList.remove("show")});function fe(C){if(Y.innerHTML="",C.length===0){Y.innerHTML='<div class="no-results">No results found</div>';return}C.forEach(M=>{const A=document.createElement("div");if(M.children&&M.children.length>0){A.className="dropdown-item has-children",A.innerHTML=`<span>${M.name}</span>`;const G=document.createElement("div");G.className="sub-items",M.children.forEach(k=>{const h=document.createElement("div");h.className="sub-item",h.textContent=k.name,h.dataset.slug=k.slug,h.dataset.value=`${k.name} - ${M.name}`,h.addEventListener("click",function(p){p.stopPropagation(),T(this.dataset.value,k.slug)}),G.appendChild(h)}),A.addEventListener("click",function(k){k.stopPropagation(),this.classList.toggle("expanded"),G.classList.toggle("show")}),Y.appendChild(A),Y.appendChild(G)}else A.className="dropdown-item",A.textContent=M.name,A.dataset.value=M.name,A.addEventListener("click",function(G){G.stopPropagation(),T(this.dataset.value)}),Y.appendChild(A)})}function T(C,M=null){Z.textContent=C,B.classList.remove("show"),re.value="",M&&(t.value.delete(S),c(S,M)),fe(b.value)}return re.addEventListener("input",function(){const C=this.value.toLowerCase();if(C===""){fe(b.value);return}const M=[];b.value.forEach(A=>{const G=A.name.toLowerCase().includes(C),k=A.children?A.children.filter(h=>h.name.toLowerCase().includes(C)):[];G?M.push(A):k.length>0&&M.push({...A,children:k})}),fe(M)}),fe(b.value),{getValue:()=>Z.textContent,setValue:C=>T(C),reset:()=>{Z.textContent=y,fe(b.value)}}}for(let _=0;_<2;_++){const b=a.value[_],y=b?`${b.city} - ${b.state}`:null;u(`dropdown${_+1}`,r,"Select Morphology",_,y)}};r.value.length>0&&a.value.length>0&&Me(()=>{f()})}),(f,u)=>(m(),v("div",A1,[i("div",R1,[(m(!0),v(ae,null,xe(D(a),(_,b)=>(m(),v("div",{key:b,class:"col-lg-6 col-md-6 col-sm-6 col-6"},[i("div",{class:"mb-3 mb-sm-4",id:`dropdown${b+1}`},null,8,P1),i("div",I1,[i("img",{src:n(_),class:"img-fluid pannable-map",alt:`Map of ${_?.title||"Study"}`,onError:y=>s(b)},null,40,D1),n(_).includes("placehold.co")?N("",!0):(m(),v("div",L1,[...u[0]||(u[0]=[i("button",{class:"zoom-in"},[i("i",{class:"bi bi-plus"})],-1),i("button",{class:"zoom-out mt-1"},[i("i",{class:"bi bi-dash"})],-1)])]))]),i("h5",O1,R(_?.title||"Loading..."),1),i("p",j1,R(_?.state||"Loading..."),1)]))),128))])]))}},F1={class:"section-padding newsletter-section publication-section pb-0 first-child-pt-none"},M1={class:"row"},N1={class:"col-xl-8 col-lg-9 newsletter-right"},U1={class:"col-sm-5 col-md-5 col-lg-4"},B1=["href"],V1=["src","alt"],H1=["src","alt"],q1=["href"],z1=["src","alt"],W1=["href"],K1=["src","alt"],G1={key:4,class:"d-block publication-no-link"}
59,Q1=["src","alt"],J1={class:"col-sm-7 col-md-7 col-lg-8"},Y1={class:"event-card-label"},X1={class:"mb-2"},Z1=["href"],e0=["href"],t0=["href"],s0={key:4,class:"text-dark publication-title-no-link"},n0={class:"newsletter-item-meta mb-4"},o0={key:0},r0={key:1},a0={class:"mb-3 text-muted card-text"},i0={class:"about-main-head"},l0={key:0,class:"sub-nav"},c0=["href"],u0=["href"],d0=["href"],f0={key:0,class:"col-12 text-center py-5"},p0={__name:"insights",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=r=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"";return(r,a)=>(m(),v("div",F1,[i("div",M1,[i("div",N1,[(m(!0),v(ae,null,xe(D(s)?.insights,o=>(m(),v("div",{class:"newsletter-item row g-5",key:`${o.type}-${o.id}`},[i("div",U1,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"d-block"},[i("img",{src:o.image,class:"img-fluid newsletter-img",alt:o.title},null,8,V1)],8,B1)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"d-block"},{default:we(()=>[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,H1)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,z1)],8,q1)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,K1)],8,W1)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("div",G1,[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Q1)])):N("",!0)]),i("div",J1,[i("p",Y1,R(o.type==="publication"?"Publication":"Newsletter"),1),i("h4",X1,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"text-dark text-decoration-none"},R(o.title),9,Z1)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"text-dark text-decoration-none"},{default:we(()=>[ce(R(o.title),1)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,e0)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,t0)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("span",s0,R(o.title),1)):N("",!0)]),i("p",n0,[o.type==="newsletter"?(m(),v("span",o0,R(n(o.pub_date))+" ⢠"+R(o.creator_name),1)):o.type==="publication"?(m(),v("span",r0,R(o.publish_by)+"  |  "+R(n(o.publication_date)),1)):N("",!0)]),i("p",a0,R(o.short_description),1),i("div",i0,[o.type==="newsletter"||o.type==="publication"&&o.detail_page_option!=="2"?(m(),v("div",l0,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,c0)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"nav-link btn-2 ps-0 read-more-btn"},{default:we(()=>[...a[0]||(a[0]=[ce(" Read More ",-1)])]),_:1},8,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,u0)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",download:"",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,d0)):N("",!0)])):N("",!0)])])]))),128))]),!D(s)?.insights||D(s).insights.length===0?(m(),v("div",f0,[...a[1]||(a[1]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},m0=pt(p0,[["__scopeId","data-v-f84e8389"]]),h0={class:"section-padding pb-0 newsletter-section publication-section data-list-con"},g0={key:0,class:"row"},_0={class:"col-md-12 col-lg-8 col-xl-8"},v0={class:"ck-content ckeditorTag"},y0=["innerHTML"],b0={class:"row"},w0={class:"col-xl-8 col-lg-9 newsletter-right"},k0={class:"row"},x0={class:"col-sm-12"},E0={class:"mb-2"},$0={class:"newsletter-item-meta mb-4"},S0={class:"mb-3 text-muted card-text"},C0={key:0,class:"long-description mt-3"},T0=["innerHTML"],A0={class:"about-main-head"},R0={key:0,class:"sub-nav"}
59,P0=["onClick"],I0={key:0,class:"btn-list-ul mt-3 pt-3"},D0=["onClick"],L0={key:0,class:"col-12 text-center py-5"},O0={class:"modal fade download-modal",id:"downloadModal",tabindex:"-1"},j0={class:"modal-dialog modal-xl modal-dialog-centered"},F0={class:"modal-content"},M0={class:"modal-body pt-0"},N0={class:"container-fluid ps-3 pe-3"},U0={class:"d-inline-block w-100 mt-3 mb-4"},B0={class:"bg-color"},V0={class:"row g-4"},H0={class:"col-md-12"},q0={class:"form-group form-check"},z0={class:"col-md-12 mt-2"},W0={class:"form-group form-check"},K0={class:"col-md-6",id:"emailField"},G0={class:"text-center d-flex multi-download"},Q0={class:"form-group me-4"},J0={for:"downloadFile"},Y0={class:"text-center mt-5"},X0=["disabled"],Z0={__name:"data",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=pe(()=>!s?.datasets||!Array.isArray(s.datasets)?[]:s.datasets),r=K({}),a=k=>{const h=n.value[k]?.id;h&&(r.value[h]=!r.value[h],Object.keys(r.value).forEach(p=>{p!==String(h)&&(r.value[p]=!1)}))},o=k=>r.value[k]||!1,l=K({pdf:!1,zip:!1}),c=K(!1),d=K(!1),f=K(""),u=K(""),_=K(null),b=K("");let y=!1;const S=pe(()=>d.value),x=pe(()=>{const k=l.value.pdf&&u.value==="pdf"||l.value.zip&&u.value==="zip";return c.value&&k}),E=(k,h,p,g)=>{_.value=k,u.value=h,b.value=g,l.value={pdf:h==="pdf",zip:h==="zip"},c.value=!1,d.value=!1,f.value="",new window.bootstrap.Modal(document.getElementById("downloadModal")).show(),Z.value=p},j=async()=>{if(y)return;if(y=!0,!c.value){y=!1;return}if(d.value&&(!f.value||!f.value.trim())){y=!1;return}const k={dataset_id:_.value,email:d.value?f.value.trim():"",url:window.location.href,resource_id:s.dataid,newsletter_subscribed:d.value};Z.value&&B(Z.value);const h=document.getElementById("downloadModal");h&&window.bootstrap?.Modal&&window.bootstrap.Modal.getInstance(h)?.hide(),U(),y=!1;try{const{submitDatasetDownloadRequest:p}=await Ee(async()=>{const{submitDatasetDownloadRequest:g}=await Promise.resolve().then(()=>un);return{submitDatasetDownloadRequest:g}},void 0);p(k).catch(g=>{console.error("Background download tracking failed:",g)})}catch(p){console.error("Failed to load API for background tracking:",p)}},U=()=>{l.value={pdf:!1,zip:!1},c.value=!1,d.value=!1,f.value="",u.value="",_.value=null,Z.value="",b.value=""},B=k=>{const h=document.createElement("a");h.href=k,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),document.body.removeChild(h)},Y=k=>k.toLowerCase().includes(".pdf")?"pdf":k.toLowerCase().includes(".zip")?"zip":"pdf",re=k=>{k.preventDefault();const p={value:!0,expires:Date.now()+120*1e3};localStorage.setItem("cupd_disclaimer_clicked",JSON.stringify(p)),window.open("project-description","_blank")},Z=K(""),fe=k=>{k.style.height="0",k.style.opacity="0",k.style.overflow="hidden"},T=k=>{k.style.transition="all 0.3s ease",k.style.height=k.scrollHeight+"px",k.style.opacity="1"},C=k=>{k.style.height="auto"},M=k=>{k.style.height=k.scrollHeight+"px",k.style.opacity="1",k.style.overflow="hidden"},A=k=>{k.style.transition="all 0.3s ease",k.style.height="0",k.style.opacity="0"},G=k=>{k.style.height="auto"};return(k,h)=>(m(),v(ae,null,[i("div",h0,[D(s)?.data&&D(s).data.trim()?(m(),v("div",g0,[i("div",_0,[i("div",v0,[i("div",{innerHTML:D(s).data},null,8,y0)])])])):N("",!0),i("div",b0,[i("div",w0,[(m(!0),v(ae,null,xe(n.value,(p,g)=>(m(),v("div",{class:"newsletter-item",key:`dataset-${p.id}`},[i("div",k0,[i("div",x0,[i("h4",E0,R(p.title),1),i("p",$0,R(p.date),1),i("p",S0,R(p.short_description),1),ke(to,{onBeforeEnter:fe,onEnter:T,onAfterEnter:C,onBeforeLeave:M,onLeave:A,onAfterLeave:G},{default:we(()=>[o(p.id)?(m(),v("div",C0,[p.long_description?(m(),v("div",{key:0,innerHTML:p.long_description},null,8,T0)):N("",!0)])):N("",!0)]),_:2},1024),i("div",A0,[p.long_description?(m(),v("div",R0,[i("a",{href:"javascript:void(0)",class:"nav-link btn-2 ps-0 read-more-btn",onClick:P=>a(g)},R(o(p.id)?"Read Less":"Read More"),9,P0)])):N("",!0)]),p.downloadLinks&&p.downloadLinks.length>0?(m(),v("div",I0,[i("ul",null,[(m(!0),v(ae,null,xe(p.downloadLinks,(P,O)=>(m(),v("li",{key:O},[i("a",{href:"javascript:void(0)",onClick:z=>E(p.id,Y(P.url),P.url,P.text)},R(P.text),9,D0)]))),128))])])):N("",!0)])])]))),128))]),(!n.value||n.value.length===0)&&!D(s)?.data?(m(),v("div",L0,[...h[5]||(h[5]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]),i("div",O0,[i("div",j0,[i("div",F0,[h[10]||(h[10]=i("div",{class:"modal-header border-0"},[i("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"})],-1)),i("div",M0,[i("div",N0,[i("div",U0,[i("form",{onSubmit:zt(j,["prevent"])},[i("div",B0,[i("div",V0,[i("div",H0,[i("div",q0,[he(i("input",{class:"form-check-input",type:"checkbox",id:"termsCheck","onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p)},null,512),[[He,c.value]]),i("label",{class:"form-check-label",for:"termsCheck"},[h[6]||(h[6]=ce(" I have read and agree to the terms of usage as de
59scribed in the ",-1)),i("a",{href:"project-description",target:"_blank",onClick:re},"disclaimer.")])])]),i("div",z0,[i("div",W0,[he(i("input",{class:"form-check-input",type:"checkbox",id:"newsCheck","onUpdate:modelValue":h[1]||(h[1]=p=>d.value=p)},null,512),[[He,d.value]]),h[7]||(h[7]=i("label",{class:"form-check-label",for:"newsCheck"}," I would like to receive updates from CUPDF. ",-1))])]),he(i("div",K0,[he(i("input",{type:"email",class:"form-control form-control-lg",placeholder:"Email address","onUpdate:modelValue":h[2]||(h[2]=p=>f.value=p)},null,512),[[ze,f.value]])],512),[[cn,S.value]])])]),h[9]||(h[9]=i("hr",{class:"mt-5 mb-4"},null,-1)),i("div",G0,[i("div",Q0,[u.value==="pdf"?he((m(),v("input",{key:0,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[3]||(h[3]=p=>l.value.pdf=p),disabled:""},null,512)),[[He,l.value.pdf]]):N("",!0),u.value==="zip"?he((m(),v("input",{key:1,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[4]||(h[4]=p=>l.value.zip=p),disabled:""},null,512)),[[He,l.value.zip]]):N("",!0),i("label",J0,R(b.value),1)])]),i("div",Y0,[i("button",{type:"submit",class:"btn btn-dark btn-lg btn-modal-pdf-download",id:"downloadBtn",disabled:!x.value},[...h[8]||(h[8]=[ce(" Download ",-1),i("i",{class:"bi bi-download ms-4"},null,-1)])],8,X0)])],32)])])])])])])],64))}},ek={class:"section-padding pb-0"},tk={class:"row gutter-lg"},sk=["href"],nk={class:"event-card"},ok={key:0,class:"card-img-placeholder"},rk=["src","alt"],ak={class:"card-body pb-0"},ik={class:"event-card-label"},lk={class:"event-card-meta"},ck={class:"event-card-meta"},uk=["href"],dk={class:"event-card"},fk={key:0,class:"card-img-placeholder"},pk=["src","alt"],mk={class:"card-body pb-0"},hk={class:"event-card-label"},gk={class:"event-card-meta"},_k={class:"event-card-meta"},vk={key:2,class:"event-card-link event-card-no-link"},yk={class:"event-card"},bk={key:0,class:"card-img-placeholder"},wk=["src","alt"],kk={class:"card-body pb-0"},xk={class:"event-card-label"},Ek={class:"event-card-meta"},$k={class:"event-card-meta"},Sk={key:0,class:"col-12 text-center py-5"},Ck={__name:"events",props:{resourceDetail:Object,activeTab:String},setup(e){ns();const t=e,{resourceDetail:s}=t,n=r=>{const a="col-lg-4 col-md-6 col-sm-6",o=s?.resource_events?.length||0;if(o===1)return a;if(o===2)return a+(r===0?" border-end":"");const c=r%3<2?" border-end":"";return a+c};return(r,a)=>(m(),v("div",ek,[i("div",tk,[(m(!0),v(ae,null,xe(D(s)?.resource_events,(o,l)=>(m(),v("div",{key:o.id,class:Ne(n(l))},[!o.detail_page_option||o.detail_page_option===""?(m(),v("a",{key:0,href:`/events/${o.slug}`,class:"event-card-link"},[i("div",nk,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,rk)):(m(),v("div",ok)),i("div",ak,[i("p",ik,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",lk,[a[0]||(a[0]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",ck,[a[1]||(a[1]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,sk)):o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:1,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"event-card-link"},[i("div",dk,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,pk)):(m(),v("div",fk)),i("div",mk,[i("p",hk,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",gk,[a[2]||(a[2]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",_k,[a[3]||(a[3]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,uk)):o.detail_page_option==="2"?(m(),v("div",vk,[i("div",yk,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,wk)):(m(),v("div",bk)),i("div",kk,[i("p",xk,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",Ek,[a[4]||(a[4]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",$k,[a[5]||(a[5]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])])):N("",!0)],2))),128)),!D(s)?.resource_events||D(s).resource_events.length===0?(m(),v("div",Sk,[...a[6]||(a[6]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},Tk=pt(Ck,[["__scopeId","data-v-28775858"]]),Ak={class:"mt-5"},Rk={class:"mb-3"},Pk={class:"row g-5 align-items-center"},Ik={class:"col-lg-9"},Dk={class:"section-heading-lg fw-light gray-color mb-2"},Lk={class:"fw-light gray-color"},Ok=["innerHTML"],jk={class:"col-lg-3 text-center text-lg-end"},Fk=["href"],Mk=["src","alt"],Nk=["src","alt"],Uk={class:"row g-3 mt-3"},Bk={key:0,class:"col-lg-4"},Vk={type:"button",class:"btn btn-lg btn-dark btn-pdf-download","data-bs-toggle":"modal","data-bs-target":"#downloadModal"},Hk={class:"col-lg-8"},qk=["innerHTML"],zk={class:"modal fade download-modal",id:"downloadModal",tabindex:"-1"},Wk={class:"modal-dialog modal-xl modal-dialog-centered"},Kk={class:"modal-content"},Gk={class:"modal-body pt-0"},Qk={class:"container-fluid ps-3 pe-3"},Jk={class:"d-inline-block w-100 mt-3 mb-4"},Yk={class:"bg-color"},Xk={class:"row g-4"},Zk={class:"col-md-12"},ex={class:"form-group form-check"},tx={class:"col-md-12 mt-2"},sx={class:"form-group form-check"}
59,nx={class:"col-md-6",id:"emailField"},ox={class:"text-center d-flex multi-download"},rx={key:0,class:"form-group me-4"},ax={key:1,class:"form-group me-4"},ix={key:2,class:"form-group me-4"},lx={class:"text-center mt-5"},cx=["disabled"],ux={__name:"figure-grounds-detail",setup(e){const{responsiveImage:t}=ns(),{setSeoTags:s}=wr(),n=T=>t(T),r=yr();vr();const a=K(null),o=K(!0),l=K(null);gt(a,T=>{T&&T.seo&&s({title:T.seo.title,description:T.seo.description,keywords:T.seo.keywords,url:window.location.href,type:"article"})},{immediate:!0});const c=K({pdf:!1,jpg:!1,zip:!1}),d=K(!1),f=K(!1);let u=!1;const _=pe(()=>{const T=c.value.pdf&&y.value||c.value.jpg&&S.value||c.value.zip&&x.value;return d.value&&T}),b=pe(()=>f.value),y=pe(()=>a.value?.resources?.resource_pdf),S=pe(()=>a.value?.resources?.resource_jpg),x=pe(()=>a.value?.resources?.resource_zip),E=pe(()=>y.value||S.value||x.value);pe(()=>a.value?.images?[{label:a.value.images.figure_ground_type_one_label,image:a.value.images.figure_ground_type_one_image},{label:a.value.images.figure_ground_type_two_label,image:a.value.images.figure_ground_type_two_image},{label:a.value.images.figure_ground_type_three_label,image:a.value.images.figure_ground_type_three_image},{label:a.value.images.figure_ground_type_four_label,image:a.value.images.figure_ground_type_four_image}]:[]);const j=async T=>{try{const C=U(T),M=new FormData;M.append("url",T),M.append("filename",C);const A=await fetch("/api/proxy-download",{method:"POST",body:M,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")||""}});if(!A.ok)throw new Error(`Download failed: ${A.status}`);const G=await A.blob(),k=window.URL.createObjectURL(G),h=document.createElement("a");h.href=k,h.download=C,h.style.display="none",document.body.appendChild(h),h.click(),document.body.removeChild(h),window.URL.revokeObjectURL(k)}catch(C){console.error("Proxy download failed:",C);const M=document.createElement("a");M.href=T,M.target="_blank",M.rel="noopener noreferrer",M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}},U=T=>{try{return T.split("/").pop()||"download"}catch{return"download"}},B=T=>{T.preventDefault();const M={value:!0,expires:Date.now()+120*1e3};localStorage.setItem("cupd_disclaimer_clicked",JSON.stringify(M)),window.open("../project-description","_blank")},Y=async()=>{try{o.value=!0,l.value=null;const T=r.params.morphologySlug,C=await rc(T);if(C.success&&C.data)a.value=C.data;else throw new Error(C.message||"Failed to fetch figure grounds data")}catch(T){l.value=T.message||"An error occurred while fetching figure grounds details",console.error("Error fetching figure grounds detail:",T)}finally{o.value=!1}},re=async T=>{if(T.preventDefault(),u)return;if(u=!0,!d.value){u=!1;return}if(!(c.value.pdf&&y.value||c.value.jpg&&S.value||c.value.zip&&x.value)){u=!1;return}const A=document.getElementById("emailField")?.querySelector('input[type="email"]');if(f.value&&(!A||!A.value.trim())){u=!1;return}const G={project_id:a.value?.id,email:f.value?A.value.trim():"",url:window.location.href,resource_id:2,newsletter_subscribed:f.value,downloads:c.value},k=a.value?.resources;k&&(c.value.pdf&&y.value&&k.resource_pdf&&j(k.resource_pdf),c.value.jpg&&S.value&&k.resource_jpg&&j(k.resource_jpg),c.value.zip&&x.value&&k.resource_zip&&j(k.resource_zip));const h=document.getElementById("downloadModal");h&&window.bootstrap?.Modal&&window.bootstrap.Modal.getInstance(h)?.hide(),Z(),u=!1;try{const{submitProjectDownloadRequest:p}=await Ee(async()=>{const{submitProjectDownloadRequest:g}=await Promise.resolve().then(()=>un);return{submitProjectDownloadRequest:g}},void 0);p(G).catch(g=>{console.error("Background download tracking failed:",g)})}catch(p){console.error("Failed to load API for background tracking:",p)}},Z=()=>{c.value={pdf:!1,jpg:!1,zip:!1},d.value=!1,f.value=!1;const C=document.getElementById("emailField")?.querySelector('input[type="email"]');C&&(C.value="")},fe=()=>{const T=document.getElementById("termsCheck"),C=document.getElementById("downloadBtn");T&&C&&T.addEventListener("change",function(){C.disabled=!this.checked,this.checked,C.style.backgroundColor="#eceaea",C.style.color="#000"});const M=document.querySelector("#downloadModal form");M&&M.addEventListener("submit",re);const A=document.getElementById("downloadModal");A&&(A.addEventListener("show.bs.modal",()=>{Z()}),A.addEventListener("hidden.bs.modal",()=>{Z()})),window.jQuery&&window.jQuery.fn.slick&&window.jQuery(".resources-detalis-slide").slick({slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!0})};return Qe(async()=>{await Y(),await Me(),fe()}),(T,C)=>{const M=dr("router-link");return m(),v(ae,null,[i("div",Ak,[i("div",Rk,[ke(M,{to:"/resources/figure-grounds-of-indian-cities",class:"back-link"},{default:we(()=>[...C[5]||(C[5]=[i("i",{class:"fa fa-angle-left","aria-hidden":"true"},null,-1),ce(" BACK",-1)])]),_:1})]),i("div",Pk,[i("div",Ik,[i("h2",Dk,R(a.value?.city),1),i("h4",Lk,R(a.value?.state),1),i("div",{class:"city-stats text-muted mt-4 ck-content ckeditorTag",innerHTML:a.value?.short_description},null,8,Ok)]),i("div",jk,[i("a",{href:a.value?.google_map_link,target:"_blank"},[i("img",{src:a.value?.images?.state_image,class:"img-fluid resource-map",alt:`Locator map of ${a.value?.city}`},null,8,Mk)],8,Fk)])]),i("img",{src:n(a.value?.images?.city_image),class:"img-fluid border my-5",alt:`Figure ground map of ${a.value?.city}`},null,8,Nk),i("div",Uk,[E.value?(m(),v("div",Bk,[i("button",Vk,[ce(R(a.value?.resources?.resource_title)+" ",1),C[6]||(C[6]=i("i",{class:"fa fa-download ms-5","aria-hidden":"true"},null,-1))])])):N("",!0),i("div",Hk,[i("div",{innerHTML:a.value?.description,class:"ck-content ckeditorTag"},null,8,qk)])])]),i("div",zk,[i("div",Wk,[i("div",Kk,[C[15]||(C[15]=i("div",{class:"modal-header border-0"},[i("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"})],-1)),i("div",Gk,[i("div",Qk,[i("div",Jk,[i("form",null,[i("div",Yk,[i("div",Xk,[i("div",Zk,[i("div",ex,[he(i("input",{class:"form-check-input",type:"checkbox",id:"termsCheck","onUpdate:modelValue":C[0]||(C[0]=A=>d.value=A)},null,512),[[He,d.value]]),i("label",{class:"form-check-label",for:"termsCheck"},[C[7]||(C[7]=ce(" I have read and agree to the terms of usage as de
59scribed in the ",-1)),i("a",{href:"../project-description",target:"_blank",onClick:B},"disclaimer.")])])]),i("div",tx,[i("div",sx,[he(i("input",{class:"form-check-input",type:"checkbox",id:"newsCheck","onUpdate:modelValue":C[1]||(C[1]=A=>f.value=A)},null,512),[[He,f.value]]),C[8]||(C[8]=i("label",{class:"form-check-label",for:"newsCheck"}," I would like to receive updates from CUPDF. ",-1))])]),he(i("div",nx,[...C[9]||(C[9]=[i("input",{type:"email",class:"form-control form-control-lg",placeholder:"Email address"},null,-1)])],512),[[cn,b.value]])])]),C[14]||(C[14]=i("hr",{class:"mt-5 mb-4"},null,-1)),i("div",ox,[y.value?(m(),v("div",rx,[he(i("input",{type:"checkbox",id:"PDF","onUpdate:modelValue":C[2]||(C[2]=A=>c.value.pdf=A)},null,512),[[He,c.value.pdf]]),C[10]||(C[10]=i("label",{for:"PDF"},"PDF",-1))])):N("",!0),S.value?(m(),v("div",ax,[he(i("input",{type:"checkbox",id:"JPG","onUpdate:modelValue":C[3]||(C[3]=A=>c.value.jpg=A)},null,512),[[He,c.value.jpg]]),C[11]||(C[11]=i("label",{for:"JPG"},"JPG",-1))])):N("",!0),x.value?(m(),v("div",ix,[he(i("input",{type:"checkbox",id:"ZIP","onUpdate:modelValue":C[4]||(C[4]=A=>c.value.zip=A)},null,512),[[He,c.value.zip]]),C[12]||(C[12]=i("label",{for:"ZIP"},"ZIP",-1))])):N("",!0)]),i("div",lx,[i("button",{type:"submit",class:"btn btn-dark btn-lg btn-modal-pdf-download",id:"downloadBtn",disabled:!_.value},[...C[13]||(C[13]=[ce(" Download ",-1),i("i",{class:"bi bi-download ms-4"},null,-1)])],8,cx)])])])])])])])])],64)}}},dx={class:"section-padding newsletter-section publication-section pb-0"},fx={class:"row justify-content-center"},px={class:"col-lg-9"},mx=["innerHTML"],hx={key:1,class:"fix-video"},gx={class:"ratio ratio-16x9",style:{"max-width":"100%",margin:"20px 0"}},_x=["src"],vx={key:2,class:"accordion custom-accordion mt-4",id:"projectAccordion"},yx=["id"],bx=["data-bs-target"],wx=["id"],kx={key:0,class:"accordion-body pt-0"},xx={class:"row profile-card-sm"},Ex={class:"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 profile-card-col text-muted"},$x=["innerHTML"],Sx={key:1,class:"accordion-body text-muted pt-0"},Cx=["innerHTML"],Tx={key:0,class:"text-center py-5"},qa={__name:"project-description",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=()=>{const a=localStorage.getItem("cupd_disclaimer_clicked");if(a)try{if(JSON.parse(a).expires>Date.now()){localStorage.removeItem("cupd_disclaimer_clicked");const l=s?.project_description?.items;if(l&&l.length>0){const d=`collapse${l[l.length-1].id}`;Me(()=>{const f=document.getElementById(d);if(f){const u=new window.bootstrap.Collapse(f,{show:!0});setTimeout(()=>{const _=document.getElementById("projectAccordion");_&&_.scrollIntoView({behavior:"smooth",block:"start"})},300)}})}}else localStorage.removeItem("cupd_disclaimer_clicked")}catch{localStorage.removeItem("cupd_disclaimer_clicked")}};Qe(()=>{n()});const r=a=>{if(!a)return"";try{let o=null;if(a.includes("youtube.com/watch?v="))o=new URLSearchParams(new URL(a).search).get("v");else if(a.includes("youtu.be/"))o=a.split("youtu.be/")[1].split("?")[0];else if(a.includes("youtube.com/embed/"))return a;return o?`https://www.youtube.com/embed/${o}`:a}catch(o){return console.error("Error converting YouTube URL:",o),a}};return(a,o)=>(m(),v("div",dx,[i("div",fx,[i("div",px,[D(s)?.project_description?.section_1?(m(),v("div",{key:0,class:"text-muted mb-4 ck-content ckeditorTag",innerHTML:D(s)?.project_description?.section_1},null,8,mx)):N("",!0),D(s)?.project_description?.youtube_link?(m(),v("div",hx,[i("div",gx,[i("iframe",{src:r(D(s)?.project_description?.youtube_link),title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,8,_x)])])):N("",!0),D(s)?.project_description?.items&&D(s).project_description.items.length>0?(m(),v("div",vx,[(m(!0),v(ae,null,xe(D(s).project_description.items,(l,c)=>(m(),v("div",{class:"accordion-item",key:l.id},[i("div",{class:"accordion-header",id:`heading${l.id}`},[i("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse${l.id}`},R(l.label),9,bx)],8,yx),i("div",{id:`collapse${l.id}`,class:"accordion-collapse collapse","data-bs-parent":"#projectAccordion"},[l.label==="Project Team"?(m(),v("div",kx,[i("div",xx,[i("div",Ex,[i("div",{class:"ck-content ckeditorTag",innerHTML:l.description},null,8,$x)])])])):(m(),v("div",Sx,[i("div",{class:"ck-content ckeditorTag",innerHTML:l.description},null,8,Cx)]))],8,wx)]))),128))])):N("",!0)]),!D(s)?.project_description?.section_1&&(!D(s)?.project_description?.items||D(s).project_description.items.length===0)&&!D(s)?.project_description?.youtube_link?(m(),v("div",Tx,[...o[0]||(o[0]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},Ax={class:"section-padding newsletter-section publication-section pb-0 first-child-pt-none"},Rx={class:"row"},Px={class:"col-xl-8 col-lg-9 newsletter-right"},Ix={class:"col-sm-5 col-md-5 col-lg-4"},Dx=["href"],Lx=["src","alt"],Ox=["src","alt"],jx=["href"],Fx=["src","alt"],Mx=["href"],Nx=["src","alt"],Ux={key:4,class:"d-block publication-no-link"}
59,Bx=["src","alt"],Vx={class:"col-sm-7 col-md-7 col-lg-8"},Hx={class:"event-card-label"},qx={class:"mb-2"},zx=["href"],Wx=["href"],Kx=["href"],Gx={key:4,class:"text-dark publication-title-no-link"},Qx={class:"newsletter-item-meta mb-4"},Jx={key:0},Yx={key:1},Xx={class:"mb-3 text-muted card-text"},Zx={class:"about-main-head"},eE={key:0,class:"sub-nav"},tE=["href"],sE=["href"],nE=["href"],oE={key:0,class:"col-12 text-center py-5"},rE={__name:"insights",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=r=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"";return(r,a)=>(m(),v("div",Ax,[i("div",Rx,[i("div",Px,[(m(!0),v(ae,null,xe(D(s)?.insights,o=>(m(),v("div",{class:"newsletter-item row g-5",key:`${o.type}-${o.id}`},[i("div",Ix,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"d-block"},[i("img",{src:o.image,class:"img-fluid newsletter-img",alt:o.title},null,8,Lx)],8,Dx)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"d-block"},{default:we(()=>[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Ox)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Fx)],8,jx)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Nx)],8,Mx)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("div",Ux,[i("img",{src:o.thumbnail_image||o.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:o.title},null,8,Bx)])):N("",!0)]),i("div",Vx,[i("p",Hx,R(o.type==="publication"?"Publication":"Newsletter"),1),i("h4",qx,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"text-dark text-decoration-none"},R(o.title),9,zx)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"text-dark text-decoration-none"},{default:we(()=>[ce(R(o.title),1)]),_:2},1032,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,Wx)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(o.title),9,Kx)):o.type==="publication"&&o.detail_page_option==="2"?(m(),v("span",Gx,R(o.title),1)):N("",!0)]),i("p",Qx,[o.type==="newsletter"?(m(),v("span",Jx,R(n(o.pub_date))+" ⢠"+R(o.creator_name),1)):o.type==="publication"?(m(),v("span",Yx,R(o.publish_by)+"  |  "+R(n(o.publication_date)),1)):N("",!0)]),i("p",Xx,R(o.short_description),1),i("div",Zx,[o.type==="newsletter"||o.type==="publication"&&o.detail_page_option!=="2"?(m(),v("div",eE,[o.type==="newsletter"?(m(),v("a",{key:0,href:o.link,target:"_blank",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,tE)):o.type==="publication"&&(!o.detail_page_option||o.detail_page_option==="")?(m(),We(D(Ie),{key:1,to:`/publication/${o.slug}`,class:"nav-link btn-2 ps-0 read-more-btn"},{default:we(()=>[...a[0]||(a[0]=[ce(" Read More ",-1)])]),_:1},8,["to"])):o.type==="publication"&&o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:2,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,sE)):o.type==="publication"&&o.detail_page_option==="3"&&o.pdf_file?(m(),v("a",{key:3,href:o.pdf_file,target:"_blank",rel:"noopener noreferrer",download:"",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,nE)):N("",!0)])):N("",!0)])])]))),128))]),!D(s)?.insights||D(s).insights.length===0?(m(),v("div",oE,[...a[1]||(a[1]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},aE=pt(rE,[["__scopeId","data-v-ed6d97bf"]]),iE={class:"section-padding pb-0"},lE={class:"row gutter-lg"},cE=["href"],uE={class:"event-card"},dE={key:0,class:"card-img-placeholder"},fE=["src","alt"],pE={class:"card-body pb-0"},mE={class:"event-card-label"},hE={class:"event-card-meta"},gE={class:"event-card-meta"},_E=["href"],vE={class:"event-card"},yE={key:0,class:"card-img-placeholder"},bE=["src","alt"],wE={class:"card-body pb-0"},kE={class:"event-card-label"},xE={class:"event-card-meta"},EE={class:"event-card-meta"},$E={key:2,class:"event-card-link event-card-no-link"},SE={class:"event-card"},CE={key:0,class:"card-img-placeholder"},TE=["src","alt"],AE={class:"card-body pb-0"},RE={class:"event-card-label"},PE={class:"event-card-meta"},IE={class:"event-card-meta"},DE={key:0,class:"col-12 text-center py-5"}
59,LE={__name:"events",props:{resourceDetail:Object,activeTab:String},setup(e){ns();const t=e,{resourceDetail:s}=t,n=r=>{const a="col-lg-4 col-md-6 col-sm-6",o=s?.resource_events?.length||0;if(o===1)return a;if(o===2)return a+(r===0?" border-end":"");const c=r%3<2?" border-end":"";return a+c};return(r,a)=>(m(),v("div",iE,[i("div",lE,[(m(!0),v(ae,null,xe(D(s)?.resource_events,(o,l)=>(m(),v("div",{key:o.id,class:Ne(n(l))},[!o.detail_page_option||o.detail_page_option===""?(m(),v("a",{key:0,href:`/events/${o.slug}`,class:"event-card-link"},[i("div",uE,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,fE)):(m(),v("div",dE)),i("div",pE,[i("p",mE,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",hE,[a[0]||(a[0]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",gE,[a[1]||(a[1]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,cE)):o.detail_page_option==="1"&&o.external_detail_link?(m(),v("a",{key:1,href:o.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"event-card-link"},[i("div",vE,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,bE)):(m(),v("div",yE)),i("div",wE,[i("p",kE,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",xE,[a[2]||(a[2]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",EE,[a[3]||(a[3]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])],8,_E)):o.detail_page_option==="2"?(m(),v("div",$E,[i("div",SE,[o.image?(m(),v("img",{key:1,src:o.image,alt:o.title,class:"card-img-placeholder",style:{width:"100%",height:"auto"}},null,8,TE)):(m(),v("div",CE)),i("div",AE,[i("p",RE,R(o.keywords),1),i("h5",null,R(o.title),1),i("p",PE,[a[4]||(a[4]=i("img",{src:Bt,alt:"Event duration"},null,-1)),ce(" "+R(o.event_duration),1)]),i("p",IE,[a[5]||(a[5]=i("img",{src:Vt,alt:"Event location"},null,-1)),ce(" "+R(o.location),1)])])])])):N("",!0)],2))),128)),!D(s)?.resource_events||D(s).resource_events.length===0?(m(),v("div",DE,[...a[6]||(a[6]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},OE=pt(LE,[["__scopeId","data-v-c41632fd"]]),jE={class:"section-padding pb-0 newsletter-section publication-section data-list-con"}
59,FE={key:0,class:"row"},ME={class:"col-md-12 col-lg-8 col-xl-8"},NE={class:"ck-content ckeditorTag"},UE=["innerHTML"],BE={class:"row"},VE={class:"col-xl-8 col-lg-9 newsletter-right"},HE={class:"row"},qE={class:"col-sm-12"},zE={class:"mb-2"},WE={class:"newsletter-item-meta mb-4"},KE={class:"mb-3 text-muted card-text"},GE={key:0,class:"long-description mt-3"},QE=["innerHTML"],JE={class:"about-main-head"},YE={key:0,class:"sub-nav"},XE=["onClick"],ZE={key:0,class:"btn-list-ul mt-3 pt-3"},e$=["onClick"],t$={key:0,class:"col-12 text-center py-5"},s$={class:"modal fade download-modal",id:"downloadModal",tabindex:"-1"},n$={class:"modal-dialog modal-xl modal-dialog-centered"},o$={class:"modal-content"},r$={class:"modal-body pt-0"},a$={class:"container-fluid ps-3 pe-3"},i$={class:"d-inline-block w-100 mt-3 mb-4"},l$={class:"bg-color"},c$={class:"row g-4"},u$={class:"col-md-12"},d$={class:"form-group form-check"},f$={class:"col-md-12 mt-2"},p$={class:"form-group form-check"},m$={class:"col-md-6",id:"emailField"},h$={class:"text-center d-flex multi-download"},g$={class:"form-group me-4"},_$={for:"downloadFile"},v$={class:"text-center mt-5"},y$=["disabled"],b$={__name:"data",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t,n=pe(()=>!s?.datasets||!Array.isArray(s.datasets)?[]:s.datasets),r=K({}),a=k=>{const h=n.value[k]?.id;h&&(r.value[h]=!r.value[h],Object.keys(r.value).forEach(p=>{p!==String(h)&&(r.value[p]=!1)}))},o=k=>r.value[k]||!1,l=K({pdf:!1,zip:!1}),c=K(!1),d=K(!1),f=K(""),u=K(""),_=K(null),b=K("");let y=!1;const S=pe(()=>d.value),x=pe(()=>{const k=l.value.pdf&&u.value==="pdf"||l.value.zip&&u.value==="zip";return c.value&&k}),E=(k,h,p,g)=>{_.value=k,u.value=h,b.value=g,l.value={pdf:h==="pdf",zip:h==="zip"},c.value=!1,d.value=!1,f.value="",new window.bootstrap.Modal(document.getElementById("downloadModal")).show(),Z.value=p},j=async()=>{if(y)return;if(y=!0,!c.value){y=!1;return}if(d.value&&(!f.value||!f.value.trim())){y=!1;return}const k={dataset_id:_.value,email:d.value?f.value.trim():"",url:window.location.href,resource_id:s.dataid,newsletter_subscribed:d.value};Z.value&&B(Z.value);const h=document.getElementById("downloadModal");h&&window.bootstrap?.Modal&&window.bootstrap.Modal.getInstance(h)?.hide(),U(),y=!1;try{const{submitDatasetDownloadRequest:p}=await Ee(async()=>{const{submitDatasetDownloadRequest:g}=await Promise.resolve().then(()=>un);return{submitDatasetDownloadRequest:g}},void 0);p(k).catch(g=>{console.error("Background download tracking failed:",g)})}catch(p){console.error("Failed to load API for background tracking:",p)}},U=()=>{l.value={pdf:!1,zip:!1},c.value=!1,d.value=!1,f.value="",u.value="",_.value=null,Z.value="",b.value=""},B=k=>{const h=document.createElement("a");h.href=k,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),document.body.removeChild(h)},Y=k=>k.toLowerCase().includes(".pdf")?"pdf":k.toLowerCase().includes(".zip")?"zip":"pdf",re=k=>{k.preventDefault();const p={value:!0,expires:Date.now()+120*1e3};localStorage.setItem("cupd_disclaimer_clicked",JSON.stringify(p)),window.open("project-description","_blank")},Z=K(""),fe=k=>{k.style.height="0",k.style.opacity="0",k.style.overflow="hidden"},T=k=>{k.style.transition="all 0.3s ease",k.style.height=k.scrollHeight+"px",k.style.opacity="1"},C=k=>{k.style.height="auto"},M=k=>{k.style.height=k.scrollHeight+"px",k.style.opacity="1",k.style.overflow="hidden"},A=k=>{k.style.transition="all 0.3s ease",k.style.height="0",k.style.opacity="0"},G=k=>{k.style.height="auto"};return(k,h)=>(m(),v(ae,null,[i("div",jE,[D(s)?.data&&D(s).data.trim()?(m(),v("div",FE,[i("div",ME,[i("div",NE,[i("div",{innerHTML:D(s).data},null,8,UE)])])])):N("",!0),i("div",BE,[i("div",VE,[(m(!0),v(ae,null,xe(n.value,(p,g)=>(m(),v("div",{class:"newsletter-item",key:`dataset-${p.id}`},[i("div",HE,[i("div",qE,[i("h4",zE,R(p.title),1),i("p",WE,R(p.date),1),i("p",KE,R(p.short_description),1),ke(to,{onBeforeEnter:fe,onEnter:T,onAfterEnter:C,onBeforeLeave:M,onLeave:A,onAfterLeave:G},{default:we(()=>[o(p.id)?(m(),v("div",GE,[p.long_description?(m(),v("div",{key:0,innerHTML:p.long_description},null,8,QE)):N("",!0)])):N("",!0)]),_:2},1024),i("div",JE,[p.long_description?(m(),v("div",YE,[i("a",{href:"javascript:void(0)",class:"nav-link btn-2 ps-0 read-more-btn",onClick:P=>a(g)},R(o(p.id)?"Read Less":"Read More"),9,XE)])):N("",!0)]),p.downloadLinks&&p.downloadLinks.length>0?(m(),v("div",ZE,[i("ul",null,[(m(!0),v(ae,null,xe(p.downloadLinks,(P,O)=>(m(),v("li",{key:O},[i("a",{href:"javascript:void(0)",onClick:z=>E(p.id,Y(P.url),P.url,P.text)},R(P.text),9,e$)]))),128))])])):N("",!0)])])]))),128))]),(!n.value||n.value.length===0)&&!D(s)?.data?(m(),v("div",t$,[...h[5]||(h[5]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]),i("div",s$,[i("div",n$,[i("div",o$,[h[10]||(h[10]=i("div",{class:"modal-header border-0"},[i("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"})],-1)),i("div",r$,[i("div",a$,[i("div",i$,[i("form",{onSubmit:zt(j,["prevent"])},[i("div",l$,[i("div",c$,[i("div",u$,[i("div",d$,[he(i("input",{class:"form-check-input",type:"checkbox",id:"termsCheck","onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p)},null,512),[[He,c.value]]),i("label",{class:"form-check-label",for:"termsCheck"},[h[6]||(h[6]=ce(" I have read and agree to the terms of usage as de
59scribed in the ",-1)),i("a",{href:"project-description",target:"_blank",onClick:re},"disclaimer.")])])]),i("div",f$,[i("div",p$,[he(i("input",{class:"form-check-input",type:"checkbox",id:"newsCheck","onUpdate:modelValue":h[1]||(h[1]=p=>d.value=p)},null,512),[[He,d.value]]),h[7]||(h[7]=i("label",{class:"form-check-label",for:"newsCheck"}," I would like to receive updates from CUPDF. ",-1))])]),he(i("div",m$,[he(i("input",{type:"email",class:"form-control form-control-lg",placeholder:"Email address","onUpdate:modelValue":h[2]||(h[2]=p=>f.value=p)},null,512),[[ze,f.value]])],512),[[cn,S.value]])])]),h[9]||(h[9]=i("hr",{class:"mt-5 mb-4"},null,-1)),i("div",h$,[i("div",g$,[u.value==="pdf"?he((m(),v("input",{key:0,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[3]||(h[3]=p=>l.value.pdf=p),disabled:""},null,512)),[[He,l.value.pdf]]):N("",!0),u.value==="zip"?he((m(),v("input",{key:1,type:"checkbox",id:"downloadFile","onUpdate:modelValue":h[4]||(h[4]=p=>l.value.zip=p),disabled:""},null,512)),[[He,l.value.zip]]):N("",!0),i("label",_$,R(b.value),1)])]),i("div",v$,[i("button",{type:"submit",class:"btn btn-dark btn-lg btn-modal-pdf-download",id:"downloadBtn",disabled:!x.value},[...h[8]||(h[8]=[ce(" Download ",-1),i("i",{class:"bi bi-download ms-4"},null,-1)])],8,y$)])],32)])])])])])])],64))}},w$={class:"section-padding newsletter-section publication-section pb-0 first-child-pt-none"},k$={class:"row"},x$={class:"col-xl-8 col-lg-9 newsletter-right"},E$={class:"col-sm-5 col-md-5 col-lg-4"},$$=["src","alt"],S$=["href"],C$=["src","alt"],T$={key:2,class:"d-block publication-no-link"},A$=["src","alt"],R$={class:"col-sm-7 col-md-7 col-lg-8"},P$={class:"mb-2"},I$=["href"],D$={key:2,class:"text-dark publication-title-no-link"},L$={class:"newsletter-item-meta mb-4"},O$={class:"mb-3 text-muted card-text"},j$={class:"about-main-head"},F$={key:0,class:"sub-nav"},M$=["href"],N$={key:0,class:"col-12 text-center py-5"},U$={__name:"publication",props:{resourceDetail:Object,activeTab:String},setup(e){const t=e,{resourceDetail:s}=t;return(n,r)=>(m(),v("div",w$,[i("div",k$,[i("div",x$,[(m(!0),v(ae,null,xe(D(s)?.publications,a=>(m(),v("div",{class:"newsletter-item row g-5",key:a.id},[i("div",E$,[!a.detail_page_option||a.detail_page_option===""?(m(),We(D(Ie),{key:0,to:`/publication/${a.slug}`,class:"d-block"},{default:we(()=>[i("img",{src:a.thumbnail_image||a.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:a.title},null,8,$$)]),_:2},1032,["to"])):a.detail_page_option==="1"&&a.external_detail_link?(m(),v("a",{key:1,href:a.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"d-block"},[i("img",{src:a.thumbnail_image||a.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:a.title},null,8,C$)],8,S$)):a.detail_page_option==="2"?(m(),v("div",T$,[i("img",{src:a.thumbnail_image||a.image||"/assets/images/grey-box.jpg",class:"img-fluid newsletter-img",alt:a.title},null,8,A$)])):N("",!0)]),i("div",R$,[i("h4",P$,[!a.detail_page_option||a.detail_page_option===""?(m(),We(D(Ie),{key:0,to:`/publication/${a.slug}`,class:"text-dark text-decoration-none"},{default:we(()=>[ce(R(a.title),1)]),_:2},1032,["to"])):a.detail_page_option==="1"&&a.external_detail_link?(m(),v("a",{key:1,href:a.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"text-dark text-decoration-none"},R(a.title),9,I$)):a.detail_page_option==="2"?(m(),v("span",D$,R(a.title),1)):N("",!0)]),i("p",L$,R(a.publication_date),1),i("p",O$,R(a.short_description),1),i("div",j$,[a.detail_page_option!=="2"?(m(),v("div",F$,[!a.detail_page_option||a.detail_page_option===""?(m(),We(D(Ie),{key:0,to:`/publication/${a.slug}`,class:"nav-link btn-2 ps-0 read-more-btn"},{default:we(()=>[...r[0]||(r[0]=[ce(" Read More ",-1)])]),_:1},8,["to"])):a.detail_page_option==="1"&&a.external_detail_link?(m(),v("a",{key:1,href:a.external_detail_link,target:"_blank",rel:"noopener noreferrer",class:"nav-link btn-2 ps-0 read-more-btn"}," Read More ",8,M$)):N("",!0)])):N("",!0)])])]))),128))]),!D(s)?.publications||D(s).publications.length===0?(m(),v("div",N$,[...r[1]||(r[1]=[i("p",{class:"text-muted"},"No data available at the moment.",-1)])])):N("",!0)])]))}},B$=pt(U$,[["__scopeId","data-v-760ac9ae"]]),V$=()=>Ee(()=>import("./AboutPage-DkWLJg7-.js"),__vite__mapDeps([0,1])),H$=()=>Ee(()=>import("./PeoplePage-CXPUpxwQ.js"),__vite__mapDeps([2,3,4])),q$=()=>Ee(()=>import("./PeopleDetailsPage-DU0KOzYc.js"),__vite__mapDeps([5,3,6,7])),z$=()=>Ee(()=>import("./PublicationsPage-B3-jCY6E.js"),__vite__mapDeps([8,9,10,11,12])),W$=()=>Ee(()=>
59import("./PublicationDetailsPage-C9lNv4hA.js"),__vite__mapDeps([13,9,14])),K$=()=>Ee(()=>import("./IdeasForIndianCitiesPage-Bw8vWY_8.js"),__vite__mapDeps([15,16])),G$=()=>Ee(()=>import("./EventsPage-M7TCawco.js"),__vite__mapDeps([17,18,19])),Q$=()=>Ee(()=>import("./EventDetailsPage-CvRfuHrr.js"),__vite__mapDeps([20,18,21])),J$=()=>Ee(()=>import("./ContactPage-Bj7PeBAN.js"),__vite__mapDeps([22,23])),Y$=()=>Ee(()=>import("./CareersPage-BCrs_6Wk.js"),__vite__mapDeps([24,25,26])),X$=()=>Ee(()=>import("./CareersDetailsPage-Bx6cV7oN.js"),__vite__mapDeps([27,25,6,7])),Z$=()=>Ee(()=>import("./TermsAndConditionsPage-auXIc1Pe.js"),__vite__mapDeps([28,6,7])),eS=()=>Ee(()=>import("./DataPage-DofgThpx.js"),[]),tS=()=>Ee(()=>import("./SearchPage-Du9UVAo8.js"),__vite__mapDeps([29,30])),sS=()=>Ee(()=>import("./SearchResultPage-ClghesGo.js"),__vite__mapDeps([31,32])),nS=()=>Ee(()=>import("./ResourcesPage-CoZhYUnU.js"),__vite__mapDeps([33,34])),So=()=>Ee(()=>import("./ResourceDetailPage-BDJ8V-bU.js"),__vite__mapDeps([35,30,36])),oS=()=>Ee(()=>import("./InsightsPage-Dhgm0p4p.js"),[]),rS=()=>Ee(()=>import("./ResourceDetailsPage-DAhKuJOJ.js"),[]),aS=()=>Ee(()=>import("./ResourceDetailsV1Page-B0uyp38R.js"),[]),iS=()=>Ee(()=>import("./ResourceDetailsV2Page-D3ZkezRz.js"),[]),lS=()=>Ee(()=>import("./ResourceDetailsV1OPage-B-pnc3kN.js"),[]),cS=()=>Ee(()=>import("./ResourceEventsPage-DIVYZjZ_.js"),[]),uS=()=>Ee(()=>import("./FiguresAndGroundsPage-DuLnqwkA.js"),__vite__mapDeps([37,30])),dS=()=>Ee(()=>import("./ProjectDescriptionPage-DI-GEaoz.js"),[]),fS=()=>Ee(()=>import("./ProjectCompareFeaturesPage-DHCaBKBJ.js"),[]),pS=()=>Ee(()=>import("./PublicationsSearchPage-BF-ZwZbX.js"),__vite__mapDeps([38,9,10,11,39])),mS=[{path:"/",name:"home",component:o_},{path:"/about",name:"about",component:V$},{path:"/publications",name:"publications",component:z$},{path:"/publication/:slug",name:"publication-details",component:W$},{path:"/publications/search",name:"publication-search",component:pS},{path:"/resources",name:"resources",component:nS},{path:"/resources/study-of-urban-morphology",component:So,children:[{path:"",name:"urban-morphology-home",component:mv},{path:"project-description",name:"urban-morphology-project-description",component:Rv},{path:"compare-features",name:"urban-morphology-compare-features",component:Va},{path:"compare-feature",name:"urban-morphology-compare-feature",component:Va},{path:"insights",name:"urban-morphology-insights",component:wy},{path:"data",name:"urban-morphology-data",component:ab},{path:":dynamicSlug",name:"urban-morphology-dynamic",component:()=>Ee(()=>import("./DynamicTab-GRuFDcxw.js"),[])},{path:"events",name:"urban-morphology-events",component:Ob},{path:"projects/:morphologySlug",name:"urban-morphology-project-detail",component:Lw}]},{path:"/resources/figure-grounds-of-indian-cities",component:So,children:[{path:"",name:"figure-grounds-home",component:d1},{path:"project-description",name:"figure-grounds-project-description",component:C1},{path:"compare-features",name:"figure-grounds-compare-features",component:Ha},{path:"compare-feature",name:"figure-grounds-compare-feature",component:Ha},{path:"insights",name:"figure-grounds-insights",component:m0},{path:"data",name:"figure-grounds-data",component:Z0},{path:"events",name:"figure-grounds-events",component:Tk},{path:"projects/:morphologySlug",name:"figure-grounds-project-detail",component:ux},{path:":dynamicSlug",name:"figure-grounds-dynamic",component:()=>Ee(()=>import("./DynamicTab-hbwVVrFd.js"),[])}]},{path:"/resources/:slug",component:So,children:[{path:"",name:"dynamic-resource-base",component:qa},{path:"project-description",name:"dynamic-resource-project-description",component:qa},{path:"insights",name:"dynamic-resource-insights",component:aE},{path:"events",name:"dynamic-resource-events",component:OE},{path:"data",name:"dynamic-resource-data",component:b$},{path:"publications",name:"dynamic-resource-publications",component:B$},{path:":dynamicSlug",name:"dynamic-resource-dynamic",component:()=>Ee(()=>import("./DynamicTab-DgDrEBu4.js"),[])}]},{path:"/resource-details",name:"resource-details",component:rS},{path:"/resource-details-v1",name:"resource-details-v1",component:aS},{path:"/resource-details-v2",name:"resource-details-v2",component:iS},{path:"/resource-details-v1-o",name:"resource-details-v1-o",component:lS},{path:"/resource-events",name:"resource-events",component:cS},{path:"/events",name:"events",component:G$},{path:"/events/:slug",name:"event-details",component:Q$}
59,{path:"/figures-and-grounds",name:"figures-and-grounds",component:uS},{path:"/contact",name:"contact",component:J$},{path:"/careers",name:"careers",component:Y$},{path:"/careers-details/:slug",name:"careers-details",component:X$},{path:"/ideas-for-indian-cities",name:"ideas-for-indian-cities",component:K$},{path:"/search",name:"search",component:tS},{path:"/search-result",name:"search-result",component:sS},{path:"/insights",name:"insights",component:oS},{path:"/project-description",name:"project-description",component:dS},{path:"/project-compare-features",name:"project-compare-features",component:fS},{path:"/people",name:"people",component:H$},{path:"/people-details/:slug",name:"people-details",component:q$},{path:"/terms-and-conditions",name:"terms-and-conditions",component:Z$},{path:"/data",name:"data",component:eS}],fc=wm({history:em(),routes:mS,scrollBehavior(e,t,s){return s||{top:0,behavior:"smooth"}}});fc.afterEach(()=>{const e=document.getElementById("mainNav");if(e&&e.classList.contains("show")){const s=window.bootstrap?.Collapse?.getInstance(e);if(s)s.hide();else{e.classList.remove("show");const n=document.querySelector(".navbar-toggler");n&&(n.setAttribute("aria-expanded","false"),n.classList.add("collapsed"))}}const t=(s=0,n=10,r=100)=>{const a=document.querySelector(".nav.sub-nav"),o=document.querySelector(".subnav-dropdown");a&&o?window.initSubnavDropdown&&window.initSubnavDropdown():s<n&&setTimeout(()=>t(s+1,n,r),r)};setTimeout(()=>t(),50)});const pc=fp(Eh);pc.use(fc);pc.mount("#app");export{Va as $,an as A,ze as B,Il as C,Ne as D,Me as E,ae as F,Tm as G,Bt as H,Vt as I,Dm as J,Im as K,$m as L,Em as M,jm as N,Fm as O,zt as P,br as Q,Ie as R,Pm as S,to as T,Rm as U,Am as V,DS as W,Ob as X,ab as Y,wy as Z,pt as _,na as a,Rv as a0,mv as a1,Tk as a2,Z0 as a3,m0 as a4,Ha as a5,C1 as a6,d1 as a7,OE as a8,b$ as a9,aE as aa,qa as ab,ns as b,v as c,wr as d,Qe as e,We as f,we as g,N as h,D as i,i as j,ke as k,ce as l,xe as m,he as n,m as o,yr as p,K as q,dr as r,Cm as s,R as t,oo as u,cn as v,gt as w,Sm as x,pe as y,vr as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.