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SAAS,KAAK,WAAW,IAAI,CAACA,SAAS,CAACiB,WAAW,EAAE;QAC5D,MAAM,KAAI,CAACC,WAAW,CAAC,+CAA+C,CAAC;MAC3E;MACA,MAAMC,UAAU,SAASL,MAAM,CAACd,SAAS,CAACiB,WAAW,CAACG,KAAK,CAAC;QACxDC,IAAI,EAAE;MACV,CAAC,CAAC;MACF,OAAO;QAAEC,QAAQ,EAAEH,UAAU,CAACI,KAAK;QAAEC,cAAc,EAAEL,UAAU,CAACI;MAAM,CAAC;IAAC;EAC5E;EACME,kBAAkB,GAAG;IAAA;IAAA;MACvB,MAAM,MAAI,CAACC,aAAa,CAAC,yBAAyB,CAAC;IAAC;EACxD;AACJ;AACA,MAAMC,WAAW,GAAG,IAAIjC,cAAc,EAAE","sources":["./node_modules/@capacitor/geolocation/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class GeolocationWeb extends WebPlugin {\n    async getCurrentPosition(options) {\n        return new Promise((resolve, reject) => {\n            navigator.geolocation.getCurrentPosition(pos => {\n                resolve(pos);\n            }, err => {\n                reject(err);\n            }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0 }, options));\n        });\n    }\n    async watchPosition(options, callback) {\n        const id = navigator.geolocation.watchPosition(pos => {\n            callback(pos);\n        }, err => {\n            callback(null, err);\n        }, Object.assign({ enableHighAccuracy: false, timeout: 10000, maximumAge: 0, minimumUpdateInterval: 5000 }, options));\n        return `${id}`;\n    }\n    async clearWatch(options) {\n        window.navigator.geolocation.clearWatch(parseInt(options.id, 10));\n    }\n    async checkPermissions() {\n        if (typeof navigator === 'undefined' || !navigator.permissions) {\n            throw this.unavailable('Permissions API not available in this browser');\n        }\n        const permission = await window.navigator.permissions.query({\n            name: 'geolocation',\n        });\n        return { location: permission.state, coarseLocation: permission.state };\n    }\n    async requestPermissions() {\n        throw this.unimplemented('Not implemented on web.');\n    }\n}\nconst Geolocation = new GeolocationWeb();\nexport { Geolocation };\n"],"names":["WebPlugin","GeolocationWeb","getCurrentPosition","options","Promise","resolve","reject","navigator","geolocation","pos","err","Object","assign","enableHighAccuracy","timeout","maximumAge","watchPosition","callback","id","minimumUpdateInterval","clearWatch","window","parseInt","checkPermissions","permissions","unavailable","permission","query","name","location","state","coarseLocation","requestPermissions","unimplemented","Geolocation"],"sourceRoot":"webpack:///","x_google_ignoreList":[0]}