1 |
- {"ast":null,"code":"'use strict';\n\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\nvar exported;\nif (!$Set) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isSet(x) {\n // `Set` 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 && !$setHas) {\n /** @type {import('.')} */\n // eslint-disable-next-line no-unused-vars\n exported = function isSet(x) {\n // `Set` does not have a `has` method\n return false;\n };\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isSet(x) {\n if (!x || typeof x !== 'object') {\n return false;\n }\n try {\n $setHas.call(x);\n if ($mapHas) {\n try {\n $mapHas.call(x);\n } catch (e) {\n return true;\n }\n }\n // @ts-expect-error TS can't figure out that $Set is always truthy here\n return x instanceof $Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n};","map":{"version":3,"names":["$Map","Map","prototype","$Set","Set","exported","isSet","x","$mapHas","has","$setHas","module","exports","call","e"],"sources":["/Users/max_liu/max_liu/company/tools_auto_pt/node_modules/is-set/index.js"],"sourcesContent":["'use strict';\n\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\n\nvar exported;\n\nif (!$Set) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isSet(x) {\n\t\t// `Set` 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 && !$setHas) {\n\t/** @type {import('.')} */\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isSet(x) {\n\t\t// `Set` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\n/** @type {import('.')} */\nmodule.exports = exported || function isSet(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$setHas.call(x);\n\t\tif ($mapHas) {\n\t\t\ttry {\n\t\t\t\t$mapHas.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 $Set is always truthy here\n\t\treturn x instanceof $Set; // core-js workaround, pre-v2.5.0\n\t} catch (e) {}\n\treturn false;\n};\n"],"mappings":"AAAA,YAAY;;AAEZ,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,CAACF,IAAI,EAAE;EACV;EACA;EACAE,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,CAACK,OAAO,EAAE;EAC1B;EACA;EACAL,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;IACHG,OAAO,CAACG,IAAI,CAACN,CAAC,CAAC;IACf,IAAIC,OAAO,EAAE;MACZ,IAAI;QACHA,OAAO,CAACK,IAAI,CAACN,CAAC,CAAC;MAChB,CAAC,CAAC,OAAOO,CAAC,EAAE;QACX,OAAO,IAAI;MACZ;IACD;IACA;IACA,OAAOP,CAAC,YAAYJ,IAAI,CAAC,CAAC;EAC3B,CAAC,CAAC,OAAOW,CAAC,EAAE,CAAC;EACb,OAAO,KAAK;AACb,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|