mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
4.0 KiB
JSON
1 line
4.0 KiB
JSON
{"ast":null,"code":"/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nvar observe = (type, callback) => {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n // More extensive feature detect needed for Firefox due to:\n // https://github.com/GoogleChrome/web-vitals/issues/142\n if (type === 'first-input' && !('PerformanceEventTiming' in self)) {\n return;\n }\n var po = new PerformanceObserver(l => l.getEntries().map(callback));\n po.observe({\n type,\n buffered: true\n });\n return po;\n }\n } catch (e) {\n // Do nothing.\n }\n return;\n};\nexport { observe };","map":{"version":3,"names":["observe","type","callback","PerformanceObserver","supportedEntryTypes","includes","self","po","l","getEntries","map","buffered","e"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/browser/web-vitals/lib/observe.js"],"sourcesContent":["/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nvar observe = (type, callback) => {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n // More extensive feature detect needed for Firefox due to:\n // https://github.com/GoogleChrome/web-vitals/issues/142\n if (type === 'first-input' && !('PerformanceEventTiming' in self)) {\n return;\n }\n\n var po = new PerformanceObserver(l => l.getEntries().map(callback));\n\n po.observe({ type, buffered: true });\n return po;\n }\n } catch (e) {\n // Do nothing.\n }\n return;\n};\n\nexport { observe };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,OAAO,GAAGA,CAACC,IAAI,EAAEC,QAAQ,KAAK;EAChC,IAAI;IACF,IAAIC,mBAAmB,CAACC,mBAAmB,CAACC,QAAQ,CAACJ,IAAI,CAAC,EAAE;MAC1D;MACA;MACA,IAAIA,IAAI,KAAK,aAAa,IAAI,EAAE,wBAAwB,IAAIK,IAAI,CAAC,EAAE;QACjE;MACF;MAEA,IAAIC,EAAE,GAAG,IAAIJ,mBAAmB,CAACK,CAAC,IAAIA,CAAC,CAACC,UAAU,CAAC,CAAC,CAACC,GAAG,CAACR,QAAQ,CAAC,CAAC;MAEnEK,EAAE,CAACP,OAAO,CAAC;QAAEC,IAAI;QAAEU,QAAQ,EAAE;MAAK,CAAC,CAAC;MACpC,OAAOJ,EAAE;IACX;EACF,CAAC,CAAC,OAAOK,CAAC,EAAE;IACV;EAAA;EAEF;AACF,CAAC;AAED,SAASZ,OAAO"},"metadata":{},"sourceType":"module"} |