{"version":3,"sources":["../../src/client/head-manager.ts"],"names":["DOMAttributeNames","isEqualNode","initHeadManager","acceptCharset","className","htmlFor","httpEquiv","noModule","reactElementToDOM","type","props","el","document","createElement","p","hasOwnProperty","undefined","attr","toLowerCase","setAttribute","children","dangerouslySetInnerHTML","innerHTML","__html","textContent","Array","isArray","join","oldTag","newTag","HTMLElement","nonce","getAttribute","cloneTag","cloneNode","updateElements","process","env","__NEXT_STRICT_NEXT_HEAD","components","headEl","querySelector","headMetaTags","querySelectorAll","oldTags","metaCharset","push","i","length","headTag","metaTag","nextSibling","tagName","newTags","map","filter","k","len","splice","forEach","t","previousSibling","parentNode","removeChild","meta","name","content","appendChild","getElementsByTagName","headCountEl","NODE_ENV","console","error","headCount","Number","j","previousElementSibling","insertBefore","toString","mountedInstances","Set","updateHead","head","tags","h","href","titleComponent","title"],"mappings":";;;;;;;;;;;;;;;;IAAaA,iBAAiB;eAAjBA;;IAwDGC,WAAW;eAAXA;;IA2HhB,OAgDC;eAhDuBC;;;AAnLjB,MAAMF,oBAA4C;IACvDG,eAAe;IACfC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,UAAU;AACZ;AAEA,SAASC,kBAAkB,KAA4B;IAA5B,IAAA,EAAEC,IAAI,EAAEC,KAAK,EAAe,GAA5B;IACzB,MAAMC,KAAkBC,SAASC,aAAa,CAACJ;IAC/C,IAAK,MAAMK,KAAKJ,MAAO;QACrB,IAAI,CAACA,MAAMK,cAAc,CAACD,IAAI;QAC9B,IAAIA,MAAM,cAAcA,MAAM,2BAA2B;QAEzD,6CAA6C;QAC7C,IAAIJ,KAAK,CAACI,EAAE,KAAKE,WAAW;QAE5B,MAAMC,OAAOjB,iBAAiB,CAACc,EAAE,IAAIA,EAAEI,WAAW;QAClD,IACET,SAAS,YACRQ,CAAAA,SAAS,WAAWA,SAAS,WAAWA,SAAS,UAAS,GAC3D;YACEN,EAAwB,CAACM,KAAK,GAAG,CAAC,CAACP,KAAK,CAACI,EAAE;QAC/C,O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