1 |
- {"ast":null,"code":"'use strict';\n\n/** @const */\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\nvar exported;\nif (!$Map) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isMap(x) {\n // `Map` is not present in this environment.\n return false;\n };\n}\nvar $mapHas = $Map ? Map.prototype.has : null;\nvar $setHas = $Set ? Set.prototype.has : null;\nif (!exported && !$mapHas) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isMap(x) {\n // `Map` does not have a `has` method\n return false;\n };\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isMap(x) {\n if (!x || typeof x !== 'object') {\n return false;\n }\n try {\n $mapHas.call(x);\n if ($setHas) {\n try {\n $setHas.call(x);\n } catch (e) {\n return true;\n }\n }\n // @ts-expect-error TS can't figure out that $Map is always truthy here\n return x instanceof $Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n};","map":{"version":3,"names":["$Map","Map","prototype","$Set","Set","exported","isMap","x","$mapHas","has","$setHas","module","exports","call","e"],"sources":["/Users/max_liu/max_liu/company/tools_auto_pt/node_modules/is-map/index.js"],"sourcesContent":["'use strict';\n\n/** @const */\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\n\nvar exported;\n\nif (!$Map) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isMap(x) {\n\t\t// `Map` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $Map ? Map.prototype.has : null;\nvar $setHas = $Set ? Set.prototype.has : null;\nif (!exported && !$mapHas) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isMap(x) {\n\t\t// `Map` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isMap(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$mapHas.call(x);\n\t\tif ($setHas) {\n\t\t\ttry {\n\t\t\t\t$setHas.call(x);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// @ts-expect-error TS can't figure out that $Map is always truthy here\n\t\treturn x instanceof $Map; // core-js workaround, pre-v2.5.0\n\t} catch (e) {}\n\treturn false;\n};\n"],"mappings":"AAAA,YAAY;;AAEZ;AACA,IAAIA,IAAI,GAAG,OAAOC,GAAG,KAAK,UAAU,IAAIA,GAAG,CAACC,SAAS,GAAGD,GAAG,GAAG,IAAI;AAClE,IAAIE,IAAI,GAAG,OAAOC,GAAG,KAAK,UAAU,IAAIA,GAAG,CAACF,SAAS,GAAGE,GAAG,GAAG,IAAI;AAElE,IAAIC,QAAQ;AAEZ,IAAI,CAACL,IAAI,EAAE;EACV;EACA;EACAK,QAAQ,GAAG,SAASC,KAAKA,CAACC,CAAC,EAAE;IAC5B;IACA,OAAO,KAAK;EACb,CAAC;AACF;AAEA,IAAIC,OAAO,GAAGR,IAAI,GAAGC,GAAG,CAACC,SAAS,CAACO,GAAG,GAAG,IAAI;AAC7C,IAAIC,OAAO,GAAGP,IAAI,GAAGC,GAAG,CAACF,SAAS,CAACO,GAAG,GAAG,IAAI;AAC7C,IAAI,CAACJ,QAAQ,IAAI,CAACG,OAAO,EAAE;EAC1B;EACA;EACAH,QAAQ,GAAG,SAASC,KAAKA,CAACC,CAAC,EAAE;IAC5B;IACA,OAAO,KAAK;EACb,CAAC;AACF;;AAEA;AACAI,MAAM,CAACC,OAAO,GAAGP,QAAQ,IAAI,SAASC,KAAKA,CAACC,CAAC,EAAE;EAC9C,IAAI,CAACA,CAAC,IAAI,OAAOA,CAAC,KAAK,QAAQ,EAAE;IAChC,OAAO,KAAK;EACb;EACA,IAAI;IACHC,OAAO,CAACK,IAAI,CAACN,CAAC,CAAC;IACf,IAAIG,OAAO,EAAE;MACZ,IAA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