1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77805],{377805:(e,t,n)=>{var r,i,s,a,o,l,d,c;let u,h,p,m,w,g;n.r(t),n.d(t,{Capacitor:()=>f,CapacitorCookies:()=>k,CapacitorException:()=>b,CapacitorHttp:()=>$,ExceptionCode:()=>r,SystemBarType:()=>s,SystemBars:()=>U,SystemBarsStyle:()=>i,WebPlugin:()=>v,WebView:()=>E,buildRequestInit:()=>j,registerPlugin:()=>y}),(a=r||(r={})).Unimplemented="UNIMPLEMENTED",a.Unavailable="UNAVAILABLE";class b extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}}let f=(u=(l=o="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==n.g?n.g:{}).CapacitorCustomPlatform||null,p=(h=l.Capacitor||{}).Plugins=h.Plugins||{},m=()=>{var e,t;return null!==u?u.name:(null==l?void 0:l.androidBridge)?"android":(null==(t=null==(e=null==l?void 0:l.webkit)?void 0:e.messageHandlers)?void 0:t.bridge)?"ios":"web"},w=e=>{var t;return null==(t=h.PluginHeaders)?void 0:t.find(t=>t.name===e)},g=new Map,h.convertFileSrc||(h.convertFileSrc=e=>e),h.getPlatform=m,h.handleError=e=>l.console.error(e),h.isNativePlatform=()=>"web"!==m(),h.isPluginAvailable=e=>{let t=g.get(e);return!!((null==t?void 0:t.platforms.has(m()))||w(e))},h.registerPlugin=(e,t={})=>{let n,i=g.get(e);if(i)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),i.proxy;let s=m(),a=w(e),o=async()=>(!n&&s in t?n=n="function"==typeof t[s]?await t[s]():t[s]:null!==u&&!n&&"web"in t&&(n=n="function"==typeof t.web?await t.web():t.web),n),l=t=>{let n,i=(...i)=>{let l=o().then(o=>{let l=((t,n)=>{var i,o;if(a){let r=null==a?void 0:a.methods.find(e=>n===e.name);if(r)if("promise"===r.rtype)return t=>h.nativePromise(e,n.toString(),t);else return(t,r)=>h.nativeCallback(e,n.toString(),t,r);if(t)return null==(i=t[n])?void 0:i.bind(t)}else if(t)return null==(o=t[n])?void 0:o.bind(t);else throw new b(`"${e}" plugin is not implemented on ${s}`,r.Unimplemented)})(o,t);if(l){let e=l(...i);return n=null==e?void 0:e.remove,e}throw new b(`"${e}.${t}()" is not implemented on ${s}`,r.Unimplemented)});return"addListener"===t&&(l.remove=async()=>n()),l};return i.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(i,"name",{value:t,writable:!1,configurable:!1}),i},d=l("addListener"),c=l("removeListener"),f=(e,t)=>{let n=d({eventName:e},t),r=async()=>{c({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await r()},i},y=new Proxy({},{get(e,t){switch(t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return a?f:d;case"removeListener":return c;default:return l(t)}}});return p[e]=y,g.set(e,{name:e,proxy:y,platforms:new Set([...Object.keys(t),...a?[s]:[]])}),y},h.Exception=b,h.DEBUG=!!h.DEBUG,h.isLoggingEnabled=!!h.isLoggingEnabled,o.Capacitor=h),y=f.registerPlugin;class v{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){for(let e in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||(n=[]),n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){var t;return!!(null==(t=this.listeners[e])?void 0:t.length)}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e="not implemented"){return new f.Exception(e,r.Unimplemented)}unavailable(e="not available"){return new f.Exception(e,r.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}}let E=y("WebView"),L=e=>
1encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);class C extends v{async getCookies(){let e=document.cookie,t={};return e.split(";").forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent).trim(),r=r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent).trim(),t[n]=r}),t}async setCookie(e){try{let t=L(e.key),n=L(e.value),r=`; expires=${(e.expires||"").replace("expires=","")}`,i=(e.path||"/").replace("path=",""),s=null!=e.url&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${n||""}${r}; path=${i}; ${s};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{for(let e of document.cookie.split(";")||[])document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}let k=y("CapacitorCookies",{web:()=>new C}),P=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),j=(e,t={})=>{let n=Object.assign({method:e.method||"GET",headers:e.headers},t),r=((e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})})(e.headers)["content-type"]||"";if("string"==typeof e.data)n.body=e.data;else if(r.includes("application/x-www-form-urlencoded")){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes("multipart/form-data")||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete("content-type"),n.headers=r}else(r.includes("application/json")||"object"==typeof e.data)&&(n.body=JSON.stringify(e.data));return n};class O extends v{async request(e){let t,n,r=j(e,e.webFetchExtra),i=((e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let r,i,[s,a]=n;return Array.isArray(a)?(i="",a.forEach(e=>{r=t?encodeURIComponent(e):e,i+=`${s}=${r}&`}),i.slice(0,-1)):(r=t?encodeURIComponent(a):a,i=`${s}=${r}`),`${e}&${i}`},"").substr(1):null)(e.params,e.shouldEncodeUrlParams),s=i?`${e.url}?${i}`:e.url,a=await fetch(s,r),o=a.headers.get("content-type")||"",{responseType:l="text"}=a.ok?e:{};switch(o.includes("application/json")&&(l="json"),l){case"arraybuffer":case"blob":n=await a.blob(),t=await P(n);break;case"json":t=await a.json();break;default:t=await a.text()}let d={};return a.headers.forEach((e,t)=>{d[t]=e}),{data:t,headers:d,status:a.status,url:a.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}let $=y("CapacitorHttp",{web:()=>new O});(d=i||(i={})).Dark="DARK",d.Light="LIGHT",d.Default="DEFAULT",(c=s||(s={})).StatusBar="StatusBar",c.NavigationBar="NavigationBar";class A extends v{async setStyle(){this.unavailable("not available for web")}async setAnimation(){this.unavailable("not available for web")}async show(){this.unavailable("not available for web")}async hide(){this.unavailable("not available for web")}}let U=y("SystemBars",{web:()=>new A})}}]);
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.