{"version":3,"sources":["jsdelivr-header.js","/npm/ios-security-key@0.0.6/u2f_polyfill.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNA,SAAU,EAAS,GACf,IAAI,EAAe,CACf,SAAU,WACN,KAAK,WAAa,GAClB,KAAK,UAAW,EAChB,KAAK,KAAK,QACV,KAAK,QAAQ,OAAQ,KAAK,SAC1B,KAAK,QAAQ,QAAQ,WACjB,KAAK,KAAK,QACV,KAAK,SACT,GACJ,EACA,QAAS,SAAS,EAAM,GACpB,OAAO,iBAAiB,OAAS,EAAM,SAAS,GAC5C,EAAG,MAAM,KAAM,EAAE,OACrB,EAAE,KAAK,MACX,EACA,KAAM,SAAS,GACX,IAAI,EAAO,MAAM,KAAK,WAAW,MAAM,GACvC,OAAO,cAAc,IAAI,YAAY,OAAS,EAAM,CAChD,OAAQ,IAEhB,EACA,UAAW,SAAS,GACZ,KAAK,SACL,EAAG,MAAM,MAET,KAAK,WAAW,KAAK,EAE7B,EACA,QAAS,WAEL,IADA,KAAK,UAAW,EACT,GAAK,KAAK,WAAW,SACxB,GAAG,MAAM,KAEjB,GAEA,EAAY,WACZ,KAAK,aAAa,YAClB,KAAK,aAAa,QAClB,KAAK,UACT,GACA,EAAU,UAAY,GACF,aAAe,SAAS,GACxC,KAAK,GAAQ,WACT,IAAI,EAAO,MAAM,KAAK,WACtB,EAAK,QAAQ,EAAO,YACpB,IAAI,EAAK,EAAK,MACd,KAAK,QAAQ,EAAO,YAAa,GACjC,KAAK,WAAU,WACX,KAAK,KAAK,MAAM,KAAM,EAC1B,GACJ,CACJ,GACK,EAAO,KAAS,UAAU,UAAY,mBAAmB,KAAK,UAAU,YACzE,EAAO,IAAM,IAAI,GAErB,EAAO,IACR,CAAC,CAAH,CA1DD,CA0DG,EAAI,WACH,OAAO,IACX,CAFO","file":"/npm/ios-security-key@0.0.6/u2f_polyfill.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ios-security-key@0.0.6/u2f_polyfill.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function(exports, global) {\n    var pingerPonger = {\n        pingPong: function() {\n            this.whenReady_ = [];\n            this.isReady_ = false;\n            this.send(\"ping\");\n            this.receive(\"pong\", this.isReady);\n            this.receive(\"ping\", function() {\n                this.send(\"pong\");\n                this.isReady();\n            });\n        },\n        receive: function(name, cb) {\n            window.addEventListener(\"u2f-\" + name, function(e) {\n                cb.apply(this, e.detail);\n            }.bind(this));\n        },\n        send: function(name) {\n            var args = Array.from(arguments).slice(1);\n            window.dispatchEvent(new CustomEvent(\"u2f-\" + name, {\n                detail: args\n            }));\n        },\n        whenReady: function(cb) {\n            if (this.isReady_) {\n                cb.apply(this);\n            } else {\n                this.whenReady_.push(cb);\n            }\n        },\n        isReady: function() {\n            this.isReady_ = true;\n            while (cb = this.whenReady_.shift()) {\n                cb.apply(this);\n            }\n        }\n    };\n    var u2fClient = function() {\n        this.rpcRequester(\"register\");\n        this.rpcRequester(\"sign\");\n        this.pingPong();\n    };\n    u2fClient.prototype = pingerPonger;\n    u2fClient.prototype.rpcRequester = function(name) {\n        this[name] = function() {\n            var args = Array.from(arguments);\n            args.unshift(name + \"-request\");\n            var cb = args.pop();\n            this.receive(name + \"-response\", cb);\n            this.whenReady(function() {\n                this.send.apply(this, args);\n            });\n        };\n    };\n    if (!global.u2f && !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform)) {\n        global.u2f = new u2fClient();\n    }\n    global[\"\"] = exports;\n})({}, function() {\n    return this;\n}());\n"]}