LINE.apk(点击下载) / q.java


package j5;

import com.linecorp.linekeep.dto.KeepContentItemDTO;
import i5.b;
import i5.e;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
import org.apache.cordova.camera.CameraLauncher;

public final class q implements e {

    /* renamed from: a  reason: collision with root package name */
    public Map f90537a = new HashMap();

    /* renamed from: b  reason: collision with root package name */
    public Map f90538b = new HashMap();

    /* renamed from: c  reason: collision with root package name */
    public Map f90539c = new HashMap();

    /* renamed from: d  reason: collision with root package name */
    public Pattern f90540d = Pattern.compile("[/*?\\[\\]]");

    public class a implements m5.a {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ String f90541a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ String f90542b;

        /* renamed from: c  reason: collision with root package name */
        public final /* synthetic */ String f90543c;

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ l5.a f90544d;

        public a(q qVar, String str, String str2, String str3, l5.a aVar) {
            this.f90541a = str;
            this.f90542b = str2;
            this.f90543c = str3;
            this.f90544d = aVar;
        }

        @Override // m5.a
        public String a() {
            return this.f90543c;
        }

        @Override // m5.a
        public l5.a b() {
            return this.f90544d;
        }

        @Override // m5.a
        public String c() {
            return this.f90541a;
        }

        @Override // m5.a
        public String d() {
            return this.f90542b;
        }

        public String toString() {
            return this.f90542b + this.f90543c + " NS(" + this.f90541a + "), FORM (" + this.f90544d + ")";
        }
    }

    public q() {
        try {
            g();
            f();
        } catch (b unused) {
            throw new RuntimeException("The XMPSchemaRegistry cannot be initialized!");
        }
    }

    public synchronized m5.a a(String str) {
        return (m5.a) this.f90539c.get(str);
    }

    public synchronized String b(String str) {
        return (String) this.f90537a.get(str);
    }

    public synchronized String c(String str) {
        if (str != null) {
            if (!str.endsWith(":")) {
                str = str + ":";
            }
        }
        return (String) this.f90538b.get(str);
    }

    public synchronized void d(String str, String str2, String str3, String str4, l5.a aVar) throws b {
        l5.a aVar2;
        d.b(str);
        d.a(str2);
        d.b(str3);
        d.a(str4);
        if (aVar != null) {
            l5.e eVar = new l5.e(aVar.f105535a);
            o.j(eVar, null);
            aVar2 = new l5.a(eVar.f105535a);
        } else {
            aVar2 = new l5.a();
        }
        if (this.f90540d.matcher(str2).find() || this.f90540d.matcher(str4).find()) {
            throw new b("Alias and actual property names must be simple", 102);
        }
        String b14 = b(str);
        String b15 = b(str3);
        if (b14 == null) {
            throw new b("Alias namespace is not registered", 101);
        } else if (b15 != null) {
            String str5 = b14 + str2;
            if (!this.f90539c.containsKey(str5)) {
                if (!this.f90539c.containsKey(b15 + str4)) {
                    this.f90539c.put(str5, new a(this, str3, b15, str4, aVar2));
                } else {
                    throw new b("Actual property is already an alias, use the base property", 4);
                }
            } else {
                throw new b("Alias is already existing", 4);
            }
        } else {
            throw new b("Actual namespace is not registered", 101);
        }
    }

    public synchronized String e(String str, String str2) throws b {
        d.b(str);
        if (str2 == null || str2.length() == 0) {
            throw new b("Empty prefix", 4);
        }
        if (str2.charAt(str2.length() - 1) != ':') {
            str2 = str2 + ':';
        }
        if (h.d(str2.substring(0, str2.length() - 1))) {
            String str3 = (String) this.f90537a.get(str);
            String str4 = (String) this.f90538b.get(str2);
            if (str3 != null) {
                return str3;
            }
            if (str4 != null) {
                String str5 = str2;
                int i14 = 1;
                while (this.f90538b.containsKey(str5)) {
                    str5 = str2.substring(0, str2.length() - 1) + "_" + i14 + "_:";
                    i14++;
                }
                str2 = str5;
            }
            this.f90538b.put(str2, str);
            this.f90537a.put(str, str2);
            return str2;
        }
        throw new b("The prefix is a bad XML name", 201);
    }

    public final void f() throws b {
        l5.a aVar = new l5.a();
        aVar.e(1536, true);
        l5.a aVar2 = new l5.a();
        aVar2.e(7680, true);
        d("http://ns.adobe.com/xap/1.0/", "Author", "http://purl.org/dc/elements/1.1/", "creator", aVar);
        d("http://ns.adobe.com/xap/1.0/", "Authors", "http://purl.org/dc/elements/1.1/", "creator", null);
        d("http://ns.adobe.com/xap/1.0/", "Description", "http://purl.org/dc/elements/1.1/", "description", null);
        d("http://ns.adobe.com/xap/1.0/", "Format", "http://purl.org/dc/elements/1.1/", "format", null);
        d("http://ns.adobe.com/xap/1.0/", "Keywords", "http://purl.org/dc/elements/1.1/", "subject", null);
        d("http://ns.adobe.com/xap/1.0/", "Locale", "http://purl.org/dc/elements/1.1/", "language", null);
        d("http://ns.adobe.com/xap/1.0/", "Title", "http://purl.org/dc/elements/1.1/", KeepContentItemDTO.COLUMN_TITLE, null);
        d("http://ns.adobe.com/xap/1.0/rights/", "Copyright", "http://purl.org/dc/elements/1.1/", "rights", null);
        d("http://ns.adobe.com/pdf/1.3/", "Author", "http://purl.org/dc/elements/1.1/", "creator", aVar);
        d("http://ns.adobe.com/pdf/1.3/", "BaseURL", "http://ns.adobe.com/xap/1.0/", "BaseURL", null);
        d("http://ns.adobe.com/pdf/1.3/", "CreationDate", "http://ns.adobe.com/xap/1.0/", "CreateDate", null);
        d("http://ns.adobe.com/pdf/1.3/", "Creator", "http://ns.adobe.com/xap/1.0/", "CreatorTool", null);
        d("http://ns.adobe.com/pdf/1.3/", "ModDate", "http://ns.adobe.com/xap/1.0/", "ModifyDate", null);
        d("http://ns.adobe.com/pdf/1.3/", "Subject", "http://purl.org/dc/elements/1.1/", "description", aVar2);
        d("http://ns.adobe.com/pdf/1.3/", "Title", "http://purl.org/dc/elements/1.1/", KeepContentItemDTO.COLUMN_TITLE, aVar2);
        d("http://ns.adobe.com/photoshop/1.0/", "Author", "http://purl.org/dc/elements/1.1/", "creator", aVar);
        d("http://ns.adobe.com/photoshop/1.0/", "Caption", "http://purl.org/dc/elements/1.1/", "description", aVar2);
        d("http://ns.adobe.com/photoshop/1.0/", "Copyright", "http://purl.org/dc/elements/1.1/", "rights", aVar2);
        d("http://ns.adobe.com/photoshop/1.0/", "Keywords", "http://purl.org/dc/elements/1.1/", "subject", null);
        d("http://ns.adobe.com/photoshop/1.0/", "Marked", "http://ns.adobe.com/xap/1.0/rights/", "Marked", null);
        d("http://ns.adobe.com/photoshop/1.0/", "Title", "http://purl.org/dc/elements/1.1/", KeepContentItemDTO.COLUMN_TITLE, aVar2);
        d("http://ns.adobe.com/photoshop/1.0/", "WebStatement", "http://ns.adobe.com/xap/1.0/rights/", "WebStatement", null);
        d("http://ns.adobe.com/tiff/1.0/", "Artist", "http://purl.org/dc/elements/1.1/", "creator", aVar);
        d("http://ns.adobe.com/tiff/1.0/", "Copyright", "http://purl.org/dc/elements/1.1/", "rights", null);
        d("http://ns.adobe.com/tiff/1.0/", "DateTime", "http://ns.adobe.com/xap/1.0/", "ModifyDate", null);
        d("http://ns.adobe.com/tiff/1.0/", "ImageDescription", "http://purl.org/dc/elements/1.1/", "description", null);
        d("http://ns.adobe.com/tiff/1.0/", "Software", "http://ns.adobe.com/xap/1.0/", "CreatorTool", null);
        d("http://ns.adobe.com/png/1.0/", "Author", "http://purl.org/dc/elements/1.1/", "creator", aVar);
        d("http://ns.adobe.com/png/1.0/", "Copyright", "http://purl.org/dc/elements/1.1/", "rights", aVar2);
        d("http://ns.adobe.com/png/1.0/", "CreationTime", "http://ns.adobe.com/xap/1.0/", "CreateDate", null);
        d("http://ns.adobe.com/png/1.0/", "Description", "http://purl.org/dc/elements/1.1/", "description", aVar2);
        d("http://ns.adobe.com/png/1.0/", "ModificationTime", "http://ns.adobe.com/xap/1.0/", "ModifyDate", null);
        d("http://ns.adobe.com/png/1.0/", "Software", "http://ns.adobe.com/xap/1.0/", "CreatorTool", null);
        d("http://ns.adobe.com/png/1.0/", "Title", "http://purl.org/dc/elements/1.1/", KeepContentItemDTO.COLUMN_TITLE, aVar2);
    }

    public final void g() throws b {
        e("http://www.w3.org/XML/1998/namespace", "xml");
        e("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdf");
        e("http://purl.org/dc/elements/1.1/", "dc");
        e("http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/", "Iptc4xmpCore");
        e("http://iptc.org/std/Iptc4xmpExt/2008-02-29/", "Iptc4xmpExt");
        e("http://ns.adobe.com/DICOM/", "DICOM");
        e("http://ns.useplus.org/ldf/xmp/1.0/", "plus");
        e("adobe:ns:meta/", "x");
        e("http://ns.adobe.com/iX/1.0/", "iX");
        e("http://ns.adobe.com/xap/1.0/", "xmp");
        e("http://ns.adobe.com/xap/1.0/rights/", "xmpRights");
        e("http://ns.adobe.com/xap/1.0/mm/", "xmpMM");
        e("http://ns.adobe.com/xap/1.0/bj/", "xmpBJ");
        e("http://ns.adobe.com/xmp/note/", "xmpNote");
        e("http://ns.adobe.com/pdf/1.3/", "pdf");
        e("http://ns.adobe.com/pdfx/1.3/", "pdfx");
        e("http://www.npes.org/pdfx/ns/id/", "pdfxid");
        e("http://www.aiim.org/pdfa/ns/schema#", "pdfaSchema");
        e("http://www.aiim.org/pdfa/ns/property#", "pdfaProperty");
        e("http://www.aiim.org/pdfa/ns/type#", "pdfaType");
        e("http://www.aiim.org/pdfa/ns/field#", "pdfaField");
        e("http://www.aiim.org/pdfa/ns/id/", "pdfaid");
        e("http://www.aiim.org/pdfa/ns/extension/", "pdfaExtension");
        e("http://ns.adobe.com/photoshop/1.0/", "photoshop");
        e("http://ns.adobe.com/album/1.0/", "album");
        e("http://ns.adobe.com/exif/1.0/", "exif");
        e("http://cipa.jp/exif/1.0/", "exifEX");
        e("http://ns.adobe.com/exif/1.0/aux/", "aux");
        e("http://ns.adobe.com/tiff/1.0/", "tiff");
        e("http://ns.adobe.com/png/1.0/", CameraLauncher.PNG_TYPE);
        e("http://ns.adobe.com/jpeg/1.0/", "jpeg");
        e("http://ns.adobe.com/jp2k/1.0/", "jp2k");
        e("http://ns.adobe.com/camera-raw-settings/1.0/", "crs");
        e("http://ns.adobe.com/StockPhoto/1.0/", "bmsp");
        e("http://ns.adobe.com/creatorAtom/1.0/", "creatorAtom");
        e("http://ns.adobe.com/asf/1.0/", "asf");
        e("http://ns.adobe.com/xmp/wav/1.0/", "wav");
        e("http://ns.adobe.com/bwf/bext/1.0/", "bext");
        e("http://ns.adobe.com/riff/info/", "riffinfo");
        e("http://ns.adobe.com/xmp/1.0/Script/", "xmpScript");
        e("http://ns.adobe.com/TransformXMP/", "txmp");
        e("http://ns.adobe.com/swf/1.0/", "swf");
        e("http://ns.adobe.com/xmp/1.0/DynamicMedia/", "xmpDM");
        e("http://ns.adobe.com/xmp/transient/1.0/", "xmpx");
        e("http://ns.adobe.com/xap/1.0/t/", "xmpT");
        e("http://ns.adobe.com/xap/1.0/t/pg/", "xmpTPg");
        e("http://ns.adobe.com/xap/1.0/g/", "xmpG");
        e("http://ns.adobe.com/xap/1.0/g/img/", "xmpGImg");
        e("http://ns.adobe.com/xap/1.0/sType/Font#", "stFnt");
        e("http://ns.adobe.com/xap/1.0/sType/Dimensions#", "stDim");
        e("http://ns.adobe.com/xap/1.0/sType/ResourceEvent#", "stEvt");
        e("http://ns.adobe.com/xap/1.0/sType/ResourceRef#", "stRef");
        e("http://ns.adobe.com/xap/1.0/sType/Version#", "stVer");
        e("http://ns.adobe.com/xap/1.0/sType/Job#", "stJob");
        e("http://ns.adobe.com/xap/1.0/sType/ManifestItem#", "stMfs");
        e("http://ns.adobe.com/xmp/Identifier/qual/1.0/", "xmpidq");
    }
}