1 line
803 B
Plaintext
1 line
803 B
Plaintext
(a,["export_type"])&&(a.export_type==="pdf"||a.export_type==="image"||a.export_type==="svg"||a.export_type==="json")}}function gl(){if(!(typeof window>"u"))return window.gtag}function bl(t){return t==="image/jpeg"?"jpeg":t==="image/png"?"png":"webp"}function yl(t){return t<1024*1024?"under_1_mb":t<=5*1024*1024?"1_to_5_mb":"5_to_10_mb"}function vl(t){const a=new Set;return{track(n,o){if(!xl(n,o)||ss.has(n)&&a.has(n))return!1;const l=gl();if(!l)return!1;try{l("event",n,o)}catch{return!1}return ss.has(n)&&a.add(n),!0}}}const El=750,wl=1e4,Cl=new Set(["en","zh","zh-tw","ja","vi","ko","de"]);function Nl(t){return Cl.has(t)?t:"en"}function jl(t){return t.reason==="too-large"?"IMAGE_TOO_LARGE":t.reason==="unsupported-type"?"UNSUPPORTED_IMAGE":t.reason==="read-error"?"IMAGE_DECODE_FAILED":"SITE_VA |