@intlayer/backend 7.1.4 → 7.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/controllers/organization.controller.d.ts.map +1 -1
- package/dist/types/controllers/project.controller.d.ts.map +1 -1
- package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
- package/dist/types/emails/InviteUserEmail.d.ts +4 -4
- package/dist/types/emails/InviteUserEmail.d.ts.map +1 -1
- package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
- package/dist/types/emails/MagicLinkEmail.d.ts.map +1 -1
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
- package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts.map +1 -1
- package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts.map +1 -1
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/models/dictionary.model.d.ts +4 -4
- package/dist/types/models/discussion.model.d.ts +2 -2
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/models/oAuth2.model.d.ts.map +1 -1
- package/dist/types/routes/search.routes.d.ts.map +1 -1
- package/dist/types/routes/tags.routes.d.ts.map +1 -1
- package/dist/types/routes/user.routes.d.ts.map +1 -1
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts.map +1 -1
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/organization.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts +6 -6
- package/dist/types/schemas/session.schema.d.ts +6 -6
- package/dist/types/schemas/tag.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
- package/package.json +7 -7
- package/dist/cjs/controllers/audit.controller.cjs +0 -186
- package/dist/cjs/controllers/audit.controller.cjs.map +0 -1
- package/dist/cjs/models/audit.model.cjs +0 -10
- package/dist/cjs/models/audit.model.cjs.map +0 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/index.cjs +0 -16
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.cjs +0 -25
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.cjs.map +0 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.cjs +0 -31
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.cjs.map +0 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/utils.cjs +0 -38
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/utils.cjs.map +0 -1
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/xmlenc.cjs +0 -231
- package/dist/cjs/node_modules/@authenio/xml-encryption/lib/xmlenc.cjs.map +0 -1
- package/dist/cjs/node_modules/@better-auth/sso/dist/index.cjs +0 -1210
- package/dist/cjs/node_modules/@better-auth/sso/dist/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@better-fetch/fetch/dist/index.cjs +0 -362
- package/dist/cjs/node_modules/@better-fetch/fetch/dist/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/is-dom-node/dist/index.cjs +0 -89
- package/dist/cjs/node_modules/@xmldom/is-dom-node/dist/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/conventions.cjs +0 -110
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/conventions.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom-parser.cjs +0 -248
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom-parser.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom.cjs +0 -1309
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/dom.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/entities.cjs +0 -2176
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/entities.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/index.cjs +0 -20
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/sax.cjs +0 -499
- package/dist/cjs/node_modules/@xmldom/xmldom/lib/sax.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/ber/errors.cjs +0 -20
- package/dist/cjs/node_modules/asn1/lib/ber/errors.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/ber/index.cjs +0 -28
- package/dist/cjs/node_modules/asn1/lib/ber/index.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/ber/reader.cjs +0 -167
- package/dist/cjs/node_modules/asn1/lib/ber/reader.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/ber/types.cjs +0 -47
- package/dist/cjs/node_modules/asn1/lib/ber/types.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/ber/writer.cjs +0 -223
- package/dist/cjs/node_modules/asn1/lib/ber/writer.cjs.map +0 -1
- package/dist/cjs/node_modules/asn1/lib/index.cjs +0 -21
- package/dist/cjs/node_modules/asn1/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/camelcase/index.cjs +0 -78
- package/dist/cjs/node_modules/camelcase/index.cjs.map +0 -1
- package/dist/cjs/node_modules/escape-html/index.cjs +0 -71
- package/dist/cjs/node_modules/escape-html/index.cjs.map +0 -1
- package/dist/cjs/node_modules/fast-xml-parser/src/fxp.cjs +0 -9
- package/dist/cjs/node_modules/fast-xml-parser/src/fxp.cjs.map +0 -1
- package/dist/cjs/node_modules/fast-xml-parser/src/util.cjs +0 -29
- package/dist/cjs/node_modules/fast-xml-parser/src/util.cjs.map +0 -1
- package/dist/cjs/node_modules/fast-xml-parser/src/validator.cjs +0 -244
- package/dist/cjs/node_modules/fast-xml-parser/src/validator.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/lib/base64.cjs +0 -14
- package/dist/cjs/node_modules/jose/dist/webapi/lib/base64.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/lib/buffer_utils.cjs +0 -10
- package/dist/cjs/node_modules/jose/dist/webapi/lib/buffer_utils.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/lib/is_object.cjs +0 -17
- package/dist/cjs/node_modules/jose/dist/webapi/lib/is_object.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/util/base64url.cjs +0 -20
- package/dist/cjs/node_modules/jose/dist/webapi/util/base64url.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/util/decode_jwt.cjs +0 -32
- package/dist/cjs/node_modules/jose/dist/webapi/util/decode_jwt.cjs.map +0 -1
- package/dist/cjs/node_modules/jose/dist/webapi/util/errors.cjs +0 -28
- package/dist/cjs/node_modules/jose/dist/webapi/util/errors.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/aes.cjs +0 -604
- package/dist/cjs/node_modules/node-forge/lib/aes.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/aesCipherSuites.cjs +0 -202
- package/dist/cjs/node_modules/node-forge/lib/aesCipherSuites.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/asn1-validator.cjs +0 -83
- package/dist/cjs/node_modules/node-forge/lib/asn1-validator.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/asn1.cjs +0 -945
- package/dist/cjs/node_modules/node-forge/lib/asn1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/baseN.cjs +0 -144
- package/dist/cjs/node_modules/node-forge/lib/baseN.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/cipher.cjs +0 -193
- package/dist/cjs/node_modules/node-forge/lib/cipher.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/cipherModes.cjs +0 -604
- package/dist/cjs/node_modules/node-forge/lib/cipherModes.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/des.cjs +0 -1194
- package/dist/cjs/node_modules/node-forge/lib/des.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/ed25519.cjs +0 -1027
- package/dist/cjs/node_modules/node-forge/lib/ed25519.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/forge.cjs +0 -22
- package/dist/cjs/node_modules/node-forge/lib/forge.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/hmac.cjs +0 -114
- package/dist/cjs/node_modules/node-forge/lib/hmac.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/index.cjs +0 -73
- package/dist/cjs/node_modules/node-forge/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/jsbn.cjs +0 -1263
- package/dist/cjs/node_modules/node-forge/lib/jsbn.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/kem.cjs +0 -153
- package/dist/cjs/node_modules/node-forge/lib/kem.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/log.cjs +0 -248
- package/dist/cjs/node_modules/node-forge/lib/log.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/md.all.cjs +0 -31
- package/dist/cjs/node_modules/node-forge/lib/md.all.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/md.cjs +0 -25
- package/dist/cjs/node_modules/node-forge/lib/md.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/md5.cjs +0 -331
- package/dist/cjs/node_modules/node-forge/lib/md5.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/mgf.cjs +0 -27
- package/dist/cjs/node_modules/node-forge/lib/mgf.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/mgf1.cjs +0 -51
- package/dist/cjs/node_modules/node-forge/lib/mgf1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/oids.cjs +0 -160
- package/dist/cjs/node_modules/node-forge/lib/oids.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pbe.cjs +0 -822
- package/dist/cjs/node_modules/node-forge/lib/pbe.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pbkdf2.cjs +0 -132
- package/dist/cjs/node_modules/node-forge/lib/pbkdf2.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pem.cjs +0 -182
- package/dist/cjs/node_modules/node-forge/lib/pem.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pkcs1.cjs +0 -207
- package/dist/cjs/node_modules/node-forge/lib/pkcs1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pkcs12.cjs +0 -730
- package/dist/cjs/node_modules/node-forge/lib/pkcs12.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pkcs7.cjs +0 -648
- package/dist/cjs/node_modules/node-forge/lib/pkcs7.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pkcs7asn1.cjs +0 -412
- package/dist/cjs/node_modules/node-forge/lib/pkcs7asn1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pki.cjs +0 -108
- package/dist/cjs/node_modules/node-forge/lib/pki.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/prime.cjs +0 -200
- package/dist/cjs/node_modules/node-forge/lib/prime.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/prng.cjs +0 -297
- package/dist/cjs/node_modules/node-forge/lib/prng.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/pss.cjs +0 -148
- package/dist/cjs/node_modules/node-forge/lib/pss.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/random.cjs +0 -148
- package/dist/cjs/node_modules/node-forge/lib/random.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/rc2.cjs +0 -545
- package/dist/cjs/node_modules/node-forge/lib/rc2.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/rsa.cjs +0 -1306
- package/dist/cjs/node_modules/node-forge/lib/rsa.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/sha1.cjs +0 -237
- package/dist/cjs/node_modules/node-forge/lib/sha1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/sha256.cjs +0 -274
- package/dist/cjs/node_modules/node-forge/lib/sha256.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/sha512.cjs +0 -420
- package/dist/cjs/node_modules/node-forge/lib/sha512.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/ssh.cjs +0 -201
- package/dist/cjs/node_modules/node-forge/lib/ssh.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/tls.cjs +0 -3662
- package/dist/cjs/node_modules/node-forge/lib/tls.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/util.cjs +0 -2124
- package/dist/cjs/node_modules/node-forge/lib/util.cjs.map +0 -1
- package/dist/cjs/node_modules/node-forge/lib/x509.cjs +0 -2171
- package/dist/cjs/node_modules/node-forge/lib/x509.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/NodeRSA.cjs +0 -341
- package/dist/cjs/node_modules/node-rsa/src/NodeRSA.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/encryptEngines.cjs +0 -26
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/encryptEngines.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/io.cjs +0 -65
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/io.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/js.cjs +0 -44
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/js.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/node12.cjs +0 -49
- package/dist/cjs/node_modules/node-rsa/src/encryptEngines/node12.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/formats/components.cjs +0 -55
- package/dist/cjs/node_modules/node-rsa/src/formats/components.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/formats/formats.cjs +0 -86
- package/dist/cjs/node_modules/node-rsa/src/formats/formats.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/formats/openssh.cjs +0 -177
- package/dist/cjs/node_modules/node-rsa/src/formats/openssh.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs1.cjs +0 -104
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs8.cjs +0 -131
- package/dist/cjs/node_modules/node-rsa/src/formats/pkcs8.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/libs/jsbn.cjs +0 -1347
- package/dist/cjs/node_modules/node-rsa/src/libs/jsbn.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/libs/rsa.cjs +0 -231
- package/dist/cjs/node_modules/node-rsa/src/libs/rsa.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/schemes/oaep.cjs +0 -123
- package/dist/cjs/node_modules/node-rsa/src/schemes/oaep.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/schemes/pkcs1.cjs +0 -175
- package/dist/cjs/node_modules/node-rsa/src/schemes/pkcs1.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/schemes/pss.cjs +0 -123
- package/dist/cjs/node_modules/node-rsa/src/schemes/pss.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/schemes/schemes.cjs +0 -28
- package/dist/cjs/node_modules/node-rsa/src/schemes/schemes.cjs.map +0 -1
- package/dist/cjs/node_modules/node-rsa/src/utils.cjs +0 -84
- package/dist/cjs/node_modules/node-rsa/src/utils.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/index.cjs +0 -25
- package/dist/cjs/node_modules/pako/index.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/deflate.cjs +0 -311
- package/dist/cjs/node_modules/pako/lib/deflate.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/inflate.cjs +0 -317
- package/dist/cjs/node_modules/pako/lib/inflate.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/utils/common.cjs +0 -77
- package/dist/cjs/node_modules/pako/lib/utils/common.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/utils/strings.cjs +0 -131
- package/dist/cjs/node_modules/pako/lib/utils/strings.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/adler32.cjs +0 -29
- package/dist/cjs/node_modules/pako/lib/zlib/adler32.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/constants.cjs +0 -43
- package/dist/cjs/node_modules/pako/lib/zlib/constants.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/crc32.cjs +0 -31
- package/dist/cjs/node_modules/pako/lib/zlib/crc32.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/deflate.cjs +0 -889
- package/dist/cjs/node_modules/pako/lib/zlib/deflate.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/gzheader.cjs +0 -27
- package/dist/cjs/node_modules/pako/lib/zlib/gzheader.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/inffast.cjs +0 -227
- package/dist/cjs/node_modules/pako/lib/zlib/inffast.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/inflate.cjs +0 -1038
- package/dist/cjs/node_modules/pako/lib/zlib/inflate.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/inftrees.cjs +0 -278
- package/dist/cjs/node_modules/pako/lib/zlib/inftrees.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/messages.cjs +0 -25
- package/dist/cjs/node_modules/pako/lib/zlib/messages.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/trees.cjs +0 -626
- package/dist/cjs/node_modules/pako/lib/zlib/trees.cjs.map +0 -1
- package/dist/cjs/node_modules/pako/lib/zlib/zstream.cjs +0 -29
- package/dist/cjs/node_modules/pako/lib/zlib/zstream.cjs.map +0 -1
- package/dist/cjs/node_modules/safer-buffer/safer.cjs +0 -52
- package/dist/cjs/node_modules/safer-buffer/safer.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/index.cjs +0 -120
- package/dist/cjs/node_modules/samlify/build/index.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/api.cjs +0 -36
- package/dist/cjs/node_modules/samlify/build/src/api.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/binding-post.cjs +0 -507
- package/dist/cjs/node_modules/samlify/build/src/binding-post.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/binding-redirect.cjs +0 -342
- package/dist/cjs/node_modules/samlify/build/src/binding-redirect.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/binding-simplesign.cjs +0 -361
- package/dist/cjs/node_modules/samlify/build/src/binding-simplesign.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/entity-idp.cjs +0 -282
- package/dist/cjs/node_modules/samlify/build/src/entity-idp.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/entity-sp.cjs +0 -145
- package/dist/cjs/node_modules/samlify/build/src/entity-sp.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/entity.cjs +0 -256
- package/dist/cjs/node_modules/samlify/build/src/entity.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/extractor.cjs +0 -355
- package/dist/cjs/node_modules/samlify/build/src/extractor.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/flow.cjs +0 -392
- package/dist/cjs/node_modules/samlify/build/src/flow.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/libsaml.cjs +0 -547
- package/dist/cjs/node_modules/samlify/build/src/libsaml.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/metadata-idp.cjs +0 -174
- package/dist/cjs/node_modules/samlify/build/src/metadata-idp.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/metadata-sp.cjs +0 -217
- package/dist/cjs/node_modules/samlify/build/src/metadata-sp.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/metadata.cjs +0 -203
- package/dist/cjs/node_modules/samlify/build/src/metadata.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/urn.cjs +0 -228
- package/dist/cjs/node_modules/samlify/build/src/urn.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/utility.cjs +0 -280
- package/dist/cjs/node_modules/samlify/build/src/utility.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/build/src/validator.cjs +0 -56
- package/dist/cjs/node_modules/samlify/build/src/validator.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/index.cjs +0 -50
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/index.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/md5.cjs +0 -25
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/md5.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/nil.cjs +0 -18
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/nil.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/parse.cjs +0 -42
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/parse.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/regex.cjs +0 -18
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/regex.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/rng.cjs +0 -28
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/rng.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/sha1.cjs +0 -25
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/sha1.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.cjs +0 -27
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v1.cjs +0 -69
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v1.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v3.cjs +0 -23
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v3.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v35.cjs +0 -54
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v35.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v4.cjs +0 -34
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v4.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v5.cjs +0 -23
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/v5.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/validate.cjs +0 -23
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/validate.cjs.map +0 -1
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/version.cjs +0 -24
- package/dist/cjs/node_modules/samlify/node_modules/uuid/dist/esm-node/version.cjs.map +0 -1
- package/dist/cjs/node_modules/xml/lib/escapeForXML.cjs +0 -27
- package/dist/cjs/node_modules/xml/lib/escapeForXML.cjs.map +0 -1
- package/dist/cjs/node_modules/xml/lib/xml.cjs +0 -186
- package/dist/cjs/node_modules/xml/lib/xml.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/c14n-canonicalization.cjs +0 -202
- package/dist/cjs/node_modules/xml-crypto/lib/c14n-canonicalization.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/enveloped-signature.cjs +0 -52
- package/dist/cjs/node_modules/xml-crypto/lib/enveloped-signature.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/exclusive-canonicalization.cjs +0 -223
- package/dist/cjs/node_modules/xml-crypto/lib/exclusive-canonicalization.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/hash-algorithms.cjs +0 -56
- package/dist/cjs/node_modules/xml-crypto/lib/hash-algorithms.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/index.cjs +0 -73
- package/dist/cjs/node_modules/xml-crypto/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/signature-algorithms.cjs +0 -91
- package/dist/cjs/node_modules/xml-crypto/lib/signature-algorithms.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/signed-xml.cjs +0 -695
- package/dist/cjs/node_modules/xml-crypto/lib/signed-xml.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/types.cjs +0 -58
- package/dist/cjs/node_modules/xml-crypto/lib/types.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/lib/utils.cjs +0 -213
- package/dist/cjs/node_modules/xml-crypto/lib/utils.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-crypto/node_modules/xpath/xpath.cjs +0 -3445
- package/dist/cjs/node_modules/xml-crypto/node_modules/xpath/xpath.cjs.map +0 -1
- package/dist/cjs/node_modules/xml-escape/index.cjs +0 -30
- package/dist/cjs/node_modules/xml-escape/index.cjs.map +0 -1
- package/dist/cjs/node_modules/xpath/xpath.cjs +0 -3410
- package/dist/cjs/node_modules/xpath/xpath.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/classic/errors.cjs +0 -31
- package/dist/cjs/node_modules/zod/v4/classic/errors.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/classic/iso.cjs +0 -42
- package/dist/cjs/node_modules/zod/v4/classic/iso.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/classic/parse.cjs +0 -32
- package/dist/cjs/node_modules/zod/v4/classic/parse.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/classic/schemas.cjs +0 -527
- package/dist/cjs/node_modules/zod/v4/classic/schemas.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/api.cjs +0 -443
- package/dist/cjs/node_modules/zod/v4/core/api.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/checks.cjs +0 -238
- package/dist/cjs/node_modules/zod/v4/core/checks.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/core.cjs +0 -63
- package/dist/cjs/node_modules/zod/v4/core/core.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/doc.cjs +0 -36
- package/dist/cjs/node_modules/zod/v4/core/doc.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/errors.cjs +0 -67
- package/dist/cjs/node_modules/zod/v4/core/errors.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/parse.cjs +0 -124
- package/dist/cjs/node_modules/zod/v4/core/parse.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/regexes.cjs +0 -87
- package/dist/cjs/node_modules/zod/v4/core/regexes.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/registries.cjs +0 -55
- package/dist/cjs/node_modules/zod/v4/core/registries.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/schemas.cjs +0 -1115
- package/dist/cjs/node_modules/zod/v4/core/schemas.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/util.cjs +0 -333
- package/dist/cjs/node_modules/zod/v4/core/util.cjs.map +0 -1
- package/dist/cjs/node_modules/zod/v4/core/versions.cjs +0 -12
- package/dist/cjs/node_modules/zod/v4/core/versions.cjs.map +0 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +0 -43
- package/dist/esm/controllers/audit.controller.mjs +0 -182
- package/dist/esm/controllers/audit.controller.mjs.map +0 -1
- package/dist/esm/models/audit.model.mjs +0 -9
- package/dist/esm/models/audit.model.mjs.map +0 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/index.mjs +0 -13
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.mjs +0 -22
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/encrypted-key.tpl.xml.mjs.map +0 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.mjs +0 -28
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/templates/keyinfo.tpl.xml.mjs.map +0 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/utils.mjs +0 -35
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/utils.mjs.map +0 -1
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/xmlenc.mjs +0 -228
- package/dist/esm/node_modules/@authenio/xml-encryption/lib/xmlenc.mjs.map +0 -1
- package/dist/esm/node_modules/@better-auth/sso/dist/index.mjs +0 -1210
- package/dist/esm/node_modules/@better-auth/sso/dist/index.mjs.map +0 -1
- package/dist/esm/node_modules/@better-fetch/fetch/dist/index.mjs +0 -359
- package/dist/esm/node_modules/@better-fetch/fetch/dist/index.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/is-dom-node/dist/index.mjs +0 -86
- package/dist/esm/node_modules/@xmldom/is-dom-node/dist/index.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/conventions.mjs +0 -107
- package/dist/esm/node_modules/@xmldom/xmldom/lib/conventions.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom-parser.mjs +0 -245
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom-parser.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom.mjs +0 -1306
- package/dist/esm/node_modules/@xmldom/xmldom/lib/dom.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/entities.mjs +0 -2173
- package/dist/esm/node_modules/@xmldom/xmldom/lib/entities.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/index.mjs +0 -17
- package/dist/esm/node_modules/@xmldom/xmldom/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/@xmldom/xmldom/lib/sax.mjs +0 -496
- package/dist/esm/node_modules/@xmldom/xmldom/lib/sax.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/ber/errors.mjs +0 -17
- package/dist/esm/node_modules/asn1/lib/ber/errors.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/ber/index.mjs +0 -25
- package/dist/esm/node_modules/asn1/lib/ber/index.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/ber/reader.mjs +0 -164
- package/dist/esm/node_modules/asn1/lib/ber/reader.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/ber/types.mjs +0 -44
- package/dist/esm/node_modules/asn1/lib/ber/types.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/ber/writer.mjs +0 -220
- package/dist/esm/node_modules/asn1/lib/ber/writer.mjs.map +0 -1
- package/dist/esm/node_modules/asn1/lib/index.mjs +0 -18
- package/dist/esm/node_modules/asn1/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/available-typed-arrays/index.mjs +0 -20
- package/dist/esm/node_modules/available-typed-arrays/index.mjs.map +0 -1
- package/dist/esm/node_modules/base64-js/index.mjs +0 -95
- package/dist/esm/node_modules/base64-js/index.mjs.map +0 -1
- package/dist/esm/node_modules/buffer/index.mjs +0 -1114
- package/dist/esm/node_modules/buffer/index.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind/index.mjs +0 -26
- package/dist/esm/node_modules/call-bind/index.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs +0 -21
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs +0 -21
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs +0 -13
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs +0 -13
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs +0 -24
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs +0 -13
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bound/index.mjs +0 -23
- package/dist/esm/node_modules/call-bound/index.mjs.map +0 -1
- package/dist/esm/node_modules/camelcase/index.mjs +0 -75
- package/dist/esm/node_modules/camelcase/index.mjs.map +0 -1
- package/dist/esm/node_modules/define-data-property/index.mjs +0 -41
- package/dist/esm/node_modules/define-data-property/index.mjs.map +0 -1
- package/dist/esm/node_modules/dunder-proto/get.mjs +0 -28
- package/dist/esm/node_modules/dunder-proto/get.mjs.map +0 -1
- package/dist/esm/node_modules/es-define-property/index.mjs +0 -19
- package/dist/esm/node_modules/es-define-property/index.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/eval.mjs +0 -13
- package/dist/esm/node_modules/es-errors/eval.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/index.mjs +0 -13
- package/dist/esm/node_modules/es-errors/index.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/range.mjs +0 -13
- package/dist/esm/node_modules/es-errors/range.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/ref.mjs +0 -13
- package/dist/esm/node_modules/es-errors/ref.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/syntax.mjs +0 -13
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/type.mjs +0 -13
- package/dist/esm/node_modules/es-errors/type.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/uri.mjs +0 -13
- package/dist/esm/node_modules/es-errors/uri.mjs.map +0 -1
- package/dist/esm/node_modules/es-object-atoms/index.mjs +0 -13
- package/dist/esm/node_modules/es-object-atoms/index.mjs.map +0 -1
- package/dist/esm/node_modules/escape-html/index.mjs +0 -68
- package/dist/esm/node_modules/escape-html/index.mjs.map +0 -1
- package/dist/esm/node_modules/fast-xml-parser/src/fxp.mjs +0 -8
- package/dist/esm/node_modules/fast-xml-parser/src/fxp.mjs.map +0 -1
- package/dist/esm/node_modules/fast-xml-parser/src/util.mjs +0 -26
- package/dist/esm/node_modules/fast-xml-parser/src/util.mjs.map +0 -1
- package/dist/esm/node_modules/fast-xml-parser/src/validator.mjs +0 -243
- package/dist/esm/node_modules/fast-xml-parser/src/validator.mjs.map +0 -1
- package/dist/esm/node_modules/for-each/index.mjs +0 -43
- package/dist/esm/node_modules/for-each/index.mjs.map +0 -1
- package/dist/esm/node_modules/function-bind/implementation.mjs +0 -59
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +0 -1
- package/dist/esm/node_modules/function-bind/index.mjs +0 -14
- package/dist/esm/node_modules/function-bind/index.mjs.map +0 -1
- package/dist/esm/node_modules/generator-function/index.mjs +0 -14
- package/dist/esm/node_modules/generator-function/index.mjs.map +0 -1
- package/dist/esm/node_modules/get-intrinsic/index.mjs +0 -358
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +0 -1
- package/dist/esm/node_modules/get-proto/Object.getPrototypeOf.mjs +0 -15
- package/dist/esm/node_modules/get-proto/Object.getPrototypeOf.mjs.map +0 -1
- package/dist/esm/node_modules/get-proto/Reflect.getPrototypeOf.mjs +0 -13
- package/dist/esm/node_modules/get-proto/Reflect.getPrototypeOf.mjs.map +0 -1
- package/dist/esm/node_modules/get-proto/index.mjs +0 -26
- package/dist/esm/node_modules/get-proto/index.mjs.map +0 -1
- package/dist/esm/node_modules/gopd/gOPD.mjs +0 -13
- package/dist/esm/node_modules/gopd/gOPD.mjs.map +0 -1
- package/dist/esm/node_modules/gopd/index.mjs +0 -20
- package/dist/esm/node_modules/gopd/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +0 -25
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-symbols/index.mjs +0 -22
- package/dist/esm/node_modules/has-symbols/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-symbols/shams.mjs +0 -36
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +0 -1
- package/dist/esm/node_modules/has-tostringtag/shams.mjs +0 -17
- package/dist/esm/node_modules/has-tostringtag/shams.mjs.map +0 -1
- package/dist/esm/node_modules/hasown/index.mjs +0 -17
- package/dist/esm/node_modules/hasown/index.mjs.map +0 -1
- package/dist/esm/node_modules/ieee754/index.mjs +0 -80
- package/dist/esm/node_modules/ieee754/index.mjs.map +0 -1
- package/dist/esm/node_modules/inherits/inherits_browser.mjs +0 -31
- package/dist/esm/node_modules/inherits/inherits_browser.mjs.map +0 -1
- package/dist/esm/node_modules/is-arguments/index.mjs +0 -31
- package/dist/esm/node_modules/is-arguments/index.mjs.map +0 -1
- package/dist/esm/node_modules/is-callable/index.mjs +0 -87
- package/dist/esm/node_modules/is-callable/index.mjs.map +0 -1
- package/dist/esm/node_modules/is-generator-function/index.mjs +0 -32
- package/dist/esm/node_modules/is-generator-function/index.mjs.map +0 -1
- package/dist/esm/node_modules/is-regex/index.mjs +0 -58
- package/dist/esm/node_modules/is-regex/index.mjs.map +0 -1
- package/dist/esm/node_modules/is-typed-array/index.mjs +0 -17
- package/dist/esm/node_modules/is-typed-array/index.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/lib/base64.mjs +0 -12
- package/dist/esm/node_modules/jose/dist/webapi/lib/base64.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/lib/buffer_utils.mjs +0 -8
- package/dist/esm/node_modules/jose/dist/webapi/lib/buffer_utils.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/lib/is_object.mjs +0 -15
- package/dist/esm/node_modules/jose/dist/webapi/lib/is_object.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/util/base64url.mjs +0 -19
- package/dist/esm/node_modules/jose/dist/webapi/util/base64url.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/util/decode_jwt.mjs +0 -31
- package/dist/esm/node_modules/jose/dist/webapi/util/decode_jwt.mjs.map +0 -1
- package/dist/esm/node_modules/jose/dist/webapi/util/errors.mjs +0 -26
- package/dist/esm/node_modules/jose/dist/webapi/util/errors.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/abs.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/abs.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/floor.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/floor.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/isNaN.mjs +0 -15
- package/dist/esm/node_modules/math-intrinsics/isNaN.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/max.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/max.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/min.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/min.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/pow.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/pow.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/round.mjs +0 -13
- package/dist/esm/node_modules/math-intrinsics/round.mjs.map +0 -1
- package/dist/esm/node_modules/math-intrinsics/sign.mjs +0 -18
- package/dist/esm/node_modules/math-intrinsics/sign.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/aes.mjs +0 -601
- package/dist/esm/node_modules/node-forge/lib/aes.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/aesCipherSuites.mjs +0 -199
- package/dist/esm/node_modules/node-forge/lib/aesCipherSuites.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/asn1-validator.mjs +0 -80
- package/dist/esm/node_modules/node-forge/lib/asn1-validator.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/asn1.mjs +0 -942
- package/dist/esm/node_modules/node-forge/lib/asn1.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/baseN.mjs +0 -141
- package/dist/esm/node_modules/node-forge/lib/baseN.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/cipher.mjs +0 -190
- package/dist/esm/node_modules/node-forge/lib/cipher.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/cipherModes.mjs +0 -601
- package/dist/esm/node_modules/node-forge/lib/cipherModes.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/des.mjs +0 -1191
- package/dist/esm/node_modules/node-forge/lib/des.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/ed25519.mjs +0 -1024
- package/dist/esm/node_modules/node-forge/lib/ed25519.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/forge.mjs +0 -19
- package/dist/esm/node_modules/node-forge/lib/forge.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/hmac.mjs +0 -111
- package/dist/esm/node_modules/node-forge/lib/hmac.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/index.mjs +0 -70
- package/dist/esm/node_modules/node-forge/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/jsbn.mjs +0 -1260
- package/dist/esm/node_modules/node-forge/lib/jsbn.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/kem.mjs +0 -150
- package/dist/esm/node_modules/node-forge/lib/kem.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/log.mjs +0 -245
- package/dist/esm/node_modules/node-forge/lib/log.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/md.all.mjs +0 -28
- package/dist/esm/node_modules/node-forge/lib/md.all.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/md.mjs +0 -22
- package/dist/esm/node_modules/node-forge/lib/md.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/md5.mjs +0 -328
- package/dist/esm/node_modules/node-forge/lib/md5.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/mgf.mjs +0 -24
- package/dist/esm/node_modules/node-forge/lib/mgf.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/mgf1.mjs +0 -48
- package/dist/esm/node_modules/node-forge/lib/mgf1.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/oids.mjs +0 -157
- package/dist/esm/node_modules/node-forge/lib/oids.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pbe.mjs +0 -819
- package/dist/esm/node_modules/node-forge/lib/pbe.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pbkdf2.mjs +0 -130
- package/dist/esm/node_modules/node-forge/lib/pbkdf2.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pem.mjs +0 -179
- package/dist/esm/node_modules/node-forge/lib/pem.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pkcs1.mjs +0 -204
- package/dist/esm/node_modules/node-forge/lib/pkcs1.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pkcs12.mjs +0 -727
- package/dist/esm/node_modules/node-forge/lib/pkcs12.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pkcs7.mjs +0 -645
- package/dist/esm/node_modules/node-forge/lib/pkcs7.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pkcs7asn1.mjs +0 -409
- package/dist/esm/node_modules/node-forge/lib/pkcs7asn1.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pki.mjs +0 -105
- package/dist/esm/node_modules/node-forge/lib/pki.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/prime.mjs +0 -197
- package/dist/esm/node_modules/node-forge/lib/prime.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/prng.mjs +0 -295
- package/dist/esm/node_modules/node-forge/lib/prng.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/pss.mjs +0 -145
- package/dist/esm/node_modules/node-forge/lib/pss.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/random.mjs +0 -145
- package/dist/esm/node_modules/node-forge/lib/random.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/rc2.mjs +0 -542
- package/dist/esm/node_modules/node-forge/lib/rc2.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/rsa.mjs +0 -1304
- package/dist/esm/node_modules/node-forge/lib/rsa.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/sha1.mjs +0 -234
- package/dist/esm/node_modules/node-forge/lib/sha1.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/sha256.mjs +0 -271
- package/dist/esm/node_modules/node-forge/lib/sha256.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/sha512.mjs +0 -417
- package/dist/esm/node_modules/node-forge/lib/sha512.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/ssh.mjs +0 -198
- package/dist/esm/node_modules/node-forge/lib/ssh.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/tls.mjs +0 -3659
- package/dist/esm/node_modules/node-forge/lib/tls.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/util.mjs +0 -2121
- package/dist/esm/node_modules/node-forge/lib/util.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib/x509.mjs +0 -2168
- package/dist/esm/node_modules/node-forge/lib/x509.mjs.map +0 -1
- package/dist/esm/node_modules/node-forge/lib.mjs +0 -10
- package/dist/esm/node_modules/node-forge/lib.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/NodeRSA.mjs +0 -338
- package/dist/esm/node_modules/node-rsa/src/NodeRSA.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/encryptEngines.mjs +0 -23
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/encryptEngines.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/io.mjs +0 -62
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/io.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/js.mjs +0 -41
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/js.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/node12.mjs +0 -46
- package/dist/esm/node_modules/node-rsa/src/encryptEngines/node12.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/formats/components.mjs +0 -52
- package/dist/esm/node_modules/node-rsa/src/formats/components.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/formats/formats.mjs +0 -83
- package/dist/esm/node_modules/node-rsa/src/formats/formats.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/formats/openssh.mjs +0 -174
- package/dist/esm/node_modules/node-rsa/src/formats/openssh.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs1.mjs +0 -101
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs1.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs8.mjs +0 -128
- package/dist/esm/node_modules/node-rsa/src/formats/pkcs8.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/libs/jsbn.mjs +0 -1344
- package/dist/esm/node_modules/node-rsa/src/libs/jsbn.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/libs/rsa.mjs +0 -228
- package/dist/esm/node_modules/node-rsa/src/libs/rsa.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/schemes/oaep.mjs +0 -120
- package/dist/esm/node_modules/node-rsa/src/schemes/oaep.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/schemes/pkcs1.mjs +0 -172
- package/dist/esm/node_modules/node-rsa/src/schemes/pkcs1.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/schemes/pss.mjs +0 -120
- package/dist/esm/node_modules/node-rsa/src/schemes/pss.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/schemes/schemes.mjs +0 -25
- package/dist/esm/node_modules/node-rsa/src/schemes/schemes.mjs.map +0 -1
- package/dist/esm/node_modules/node-rsa/src/utils.mjs +0 -81
- package/dist/esm/node_modules/node-rsa/src/utils.mjs.map +0 -1
- package/dist/esm/node_modules/pako/index.mjs +0 -22
- package/dist/esm/node_modules/pako/index.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/deflate.mjs +0 -308
- package/dist/esm/node_modules/pako/lib/deflate.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/inflate.mjs +0 -314
- package/dist/esm/node_modules/pako/lib/inflate.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/utils/common.mjs +0 -74
- package/dist/esm/node_modules/pako/lib/utils/common.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/utils/strings.mjs +0 -128
- package/dist/esm/node_modules/pako/lib/utils/strings.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/adler32.mjs +0 -26
- package/dist/esm/node_modules/pako/lib/zlib/adler32.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/constants.mjs +0 -40
- package/dist/esm/node_modules/pako/lib/zlib/constants.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/crc32.mjs +0 -28
- package/dist/esm/node_modules/pako/lib/zlib/crc32.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/deflate.mjs +0 -886
- package/dist/esm/node_modules/pako/lib/zlib/deflate.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/gzheader.mjs +0 -24
- package/dist/esm/node_modules/pako/lib/zlib/gzheader.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/inffast.mjs +0 -224
- package/dist/esm/node_modules/pako/lib/zlib/inffast.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/inflate.mjs +0 -1035
- package/dist/esm/node_modules/pako/lib/zlib/inflate.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/inftrees.mjs +0 -275
- package/dist/esm/node_modules/pako/lib/zlib/inftrees.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/messages.mjs +0 -22
- package/dist/esm/node_modules/pako/lib/zlib/messages.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/trees.mjs +0 -623
- package/dist/esm/node_modules/pako/lib/zlib/trees.mjs.map +0 -1
- package/dist/esm/node_modules/pako/lib/zlib/zstream.mjs +0 -26
- package/dist/esm/node_modules/pako/lib/zlib/zstream.mjs.map +0 -1
- package/dist/esm/node_modules/possible-typed-array-names/index.mjs +0 -26
- package/dist/esm/node_modules/possible-typed-array-names/index.mjs.map +0 -1
- package/dist/esm/node_modules/safe-regex-test/index.mjs +0 -25
- package/dist/esm/node_modules/safe-regex-test/index.mjs.map +0 -1
- package/dist/esm/node_modules/safer-buffer/safer.mjs +0 -50
- package/dist/esm/node_modules/safer-buffer/safer.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/index.mjs +0 -117
- package/dist/esm/node_modules/samlify/build/index.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/api.mjs +0 -33
- package/dist/esm/node_modules/samlify/build/src/api.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/binding-post.mjs +0 -504
- package/dist/esm/node_modules/samlify/build/src/binding-post.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/binding-redirect.mjs +0 -339
- package/dist/esm/node_modules/samlify/build/src/binding-redirect.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/binding-simplesign.mjs +0 -358
- package/dist/esm/node_modules/samlify/build/src/binding-simplesign.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/entity-idp.mjs +0 -279
- package/dist/esm/node_modules/samlify/build/src/entity-idp.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/entity-sp.mjs +0 -142
- package/dist/esm/node_modules/samlify/build/src/entity-sp.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/entity.mjs +0 -253
- package/dist/esm/node_modules/samlify/build/src/entity.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/extractor.mjs +0 -352
- package/dist/esm/node_modules/samlify/build/src/extractor.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/flow.mjs +0 -389
- package/dist/esm/node_modules/samlify/build/src/flow.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/libsaml.mjs +0 -544
- package/dist/esm/node_modules/samlify/build/src/libsaml.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/metadata-idp.mjs +0 -171
- package/dist/esm/node_modules/samlify/build/src/metadata-idp.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/metadata-sp.mjs +0 -214
- package/dist/esm/node_modules/samlify/build/src/metadata-sp.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/metadata.mjs +0 -200
- package/dist/esm/node_modules/samlify/build/src/metadata.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/urn.mjs +0 -225
- package/dist/esm/node_modules/samlify/build/src/urn.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/utility.mjs +0 -277
- package/dist/esm/node_modules/samlify/build/src/utility.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/build/src/validator.mjs +0 -53
- package/dist/esm/node_modules/samlify/build/src/validator.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/index.mjs +0 -39
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/index.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/md5.mjs +0 -154
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/md5.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/nil.mjs +0 -12
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/nil.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.mjs +0 -36
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/regex.mjs +0 -12
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/regex.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/rng.mjs +0 -20
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/rng.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/sha1.mjs +0 -101
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/sha1.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -22
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v1.mjs +0 -63
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v1.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v3.mjs +0 -17
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v3.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v35.mjs +0 -48
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v35.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.mjs +0 -28
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v5.mjs +0 -17
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/v5.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/validate.mjs +0 -17
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/validate.mjs.map +0 -1
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/version.mjs +0 -18
- package/dist/esm/node_modules/samlify/node_modules/uuid/dist/esm-browser/version.mjs.map +0 -1
- package/dist/esm/node_modules/set-function-length/index.mjs +0 -38
- package/dist/esm/node_modules/set-function-length/index.mjs.map +0 -1
- package/dist/esm/node_modules/util/support/isBufferBrowser.mjs +0 -14
- package/dist/esm/node_modules/util/support/isBufferBrowser.mjs.map +0 -1
- package/dist/esm/node_modules/util/support/types.mjs +0 -218
- package/dist/esm/node_modules/util/support/types.mjs.map +0 -1
- package/dist/esm/node_modules/util/util.mjs +0 -443
- package/dist/esm/node_modules/util/util.mjs.map +0 -1
- package/dist/esm/node_modules/which-typed-array/index.mjs +0 -93
- package/dist/esm/node_modules/which-typed-array/index.mjs.map +0 -1
- package/dist/esm/node_modules/xml/lib/escapeForXML.mjs +0 -24
- package/dist/esm/node_modules/xml/lib/escapeForXML.mjs.map +0 -1
- package/dist/esm/node_modules/xml/lib/xml.mjs +0 -183
- package/dist/esm/node_modules/xml/lib/xml.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/c14n-canonicalization.mjs +0 -199
- package/dist/esm/node_modules/xml-crypto/lib/c14n-canonicalization.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/enveloped-signature.mjs +0 -49
- package/dist/esm/node_modules/xml-crypto/lib/enveloped-signature.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/exclusive-canonicalization.mjs +0 -220
- package/dist/esm/node_modules/xml-crypto/lib/exclusive-canonicalization.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/hash-algorithms.mjs +0 -53
- package/dist/esm/node_modules/xml-crypto/lib/hash-algorithms.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/index.mjs +0 -70
- package/dist/esm/node_modules/xml-crypto/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/signature-algorithms.mjs +0 -88
- package/dist/esm/node_modules/xml-crypto/lib/signature-algorithms.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/signed-xml.mjs +0 -693
- package/dist/esm/node_modules/xml-crypto/lib/signed-xml.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/types.mjs +0 -55
- package/dist/esm/node_modules/xml-crypto/lib/types.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/lib/utils.mjs +0 -210
- package/dist/esm/node_modules/xml-crypto/lib/utils.mjs.map +0 -1
- package/dist/esm/node_modules/xml-crypto/node_modules/xpath/xpath.mjs +0 -3442
- package/dist/esm/node_modules/xml-crypto/node_modules/xpath/xpath.mjs.map +0 -1
- package/dist/esm/node_modules/xml-escape/index.mjs +0 -27
- package/dist/esm/node_modules/xml-escape/index.mjs.map +0 -1
- package/dist/esm/node_modules/xpath/xpath.mjs +0 -3407
- package/dist/esm/node_modules/xpath/xpath.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/classic/errors.mjs +0 -30
- package/dist/esm/node_modules/zod/v4/classic/errors.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/classic/iso.mjs +0 -38
- package/dist/esm/node_modules/zod/v4/classic/iso.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/classic/parse.mjs +0 -20
- package/dist/esm/node_modules/zod/v4/classic/parse.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/classic/schemas.mjs +0 -519
- package/dist/esm/node_modules/zod/v4/classic/schemas.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/api.mjs +0 -395
- package/dist/esm/node_modules/zod/v4/core/api.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/checks.mjs +0 -226
- package/dist/esm/node_modules/zod/v4/core/checks.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/core.mjs +0 -57
- package/dist/esm/node_modules/zod/v4/core/core.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/doc.mjs +0 -34
- package/dist/esm/node_modules/zod/v4/core/doc.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/errors.mjs +0 -63
- package/dist/esm/node_modules/zod/v4/core/errors.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/parse.mjs +0 -110
- package/dist/esm/node_modules/zod/v4/core/parse.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/regexes.mjs +0 -60
- package/dist/esm/node_modules/zod/v4/core/regexes.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/registries.mjs +0 -53
- package/dist/esm/node_modules/zod/v4/core/registries.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/schemas.mjs +0 -1069
- package/dist/esm/node_modules/zod/v4/core/schemas.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/util.mjs +0 -302
- package/dist/esm/node_modules/zod/v4/core/util.mjs.map +0 -1
- package/dist/esm/node_modules/zod/v4/core/versions.mjs +0 -10
- package/dist/esm/node_modules/zod/v4/core/versions.mjs.map +0 -1
- package/dist/types/MagicLinkEmail.d.ts +0 -8
- package/dist/types/MagicLinkEmail.d.ts.map +0 -1
- package/dist/types/controllers/audit.controller.d.ts +0 -32
- package/dist/types/controllers/audit.controller.d.ts.map +0 -1
- package/dist/types/models/audit.model.d.ts +0 -5
- package/dist/types/models/audit.model.d.ts.map +0 -1
|
@@ -1,1309 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_conventions$1 = require('./conventions.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/@xmldom/xmldom/lib/dom.js
|
|
5
|
-
var require_dom = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/@xmldom/xmldom/lib/dom.js": ((exports) => {
|
|
6
|
-
var conventions = require_conventions$1.default;
|
|
7
|
-
var find = conventions.find;
|
|
8
|
-
var NAMESPACE = conventions.NAMESPACE;
|
|
9
|
-
/**
|
|
10
|
-
* A prerequisite for `[].filter`, to drop elements that are empty
|
|
11
|
-
* @param {string} input
|
|
12
|
-
* @returns {boolean}
|
|
13
|
-
*/
|
|
14
|
-
function notEmptyString(input) {
|
|
15
|
-
return input !== "";
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace
|
|
19
|
-
* @see https://infra.spec.whatwg.org/#ascii-whitespace
|
|
20
|
-
*
|
|
21
|
-
* @param {string} input
|
|
22
|
-
* @returns {string[]} (can be empty)
|
|
23
|
-
*/
|
|
24
|
-
function splitOnASCIIWhitespace(input) {
|
|
25
|
-
return input ? input.split(/[\t\n\f\r ]+/).filter(notEmptyString) : [];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Adds element as a key to current if it is not already present.
|
|
29
|
-
*
|
|
30
|
-
* @param {Record<string, boolean | undefined>} current
|
|
31
|
-
* @param {string} element
|
|
32
|
-
* @returns {Record<string, boolean | undefined>}
|
|
33
|
-
*/
|
|
34
|
-
function orderedSetReducer(current, element) {
|
|
35
|
-
if (!current.hasOwnProperty(element)) current[element] = true;
|
|
36
|
-
return current;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @see https://infra.spec.whatwg.org/#ordered-set
|
|
40
|
-
* @param {string} input
|
|
41
|
-
* @returns {string[]}
|
|
42
|
-
*/
|
|
43
|
-
function toOrderedSet(input) {
|
|
44
|
-
if (!input) return [];
|
|
45
|
-
var list = splitOnASCIIWhitespace(input);
|
|
46
|
-
return Object.keys(list.reduce(orderedSetReducer, {}));
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Uses `list.indexOf` to implement something like `Array.prototype.includes`,
|
|
50
|
-
* which we can not rely on being available.
|
|
51
|
-
*
|
|
52
|
-
* @param {any[]} list
|
|
53
|
-
* @returns {function(any): boolean}
|
|
54
|
-
*/
|
|
55
|
-
function arrayIncludes(list) {
|
|
56
|
-
return function(element) {
|
|
57
|
-
return list && list.indexOf(element) !== -1;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function copy(src, dest) {
|
|
61
|
-
for (var p in src) if (Object.prototype.hasOwnProperty.call(src, p)) dest[p] = src[p];
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));?
|
|
65
|
-
^\w+\.prototype\.([_\w]+)\s*=\s*(\S.*?(?=[;\r\n]));?
|
|
66
|
-
*/
|
|
67
|
-
function _extends(Class, Super) {
|
|
68
|
-
var pt = Class.prototype;
|
|
69
|
-
if (!(pt instanceof Super)) {
|
|
70
|
-
function t() {}
|
|
71
|
-
t.prototype = Super.prototype;
|
|
72
|
-
t = new t();
|
|
73
|
-
copy(pt, t);
|
|
74
|
-
Class.prototype = pt = t;
|
|
75
|
-
}
|
|
76
|
-
if (pt.constructor != Class) {
|
|
77
|
-
if (typeof Class != "function") console.error("unknown Class:" + Class);
|
|
78
|
-
pt.constructor = Class;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
var NodeType = {};
|
|
82
|
-
var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;
|
|
83
|
-
var ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;
|
|
84
|
-
var TEXT_NODE = NodeType.TEXT_NODE = 3;
|
|
85
|
-
var CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;
|
|
86
|
-
var ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;
|
|
87
|
-
var ENTITY_NODE = NodeType.ENTITY_NODE = 6;
|
|
88
|
-
var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;
|
|
89
|
-
var COMMENT_NODE = NodeType.COMMENT_NODE = 8;
|
|
90
|
-
var DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;
|
|
91
|
-
var DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;
|
|
92
|
-
var DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;
|
|
93
|
-
var NOTATION_NODE = NodeType.NOTATION_NODE = 12;
|
|
94
|
-
var ExceptionCode = {};
|
|
95
|
-
var ExceptionMessage = {};
|
|
96
|
-
ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = "Index size error", 1);
|
|
97
|
-
ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = "DOMString size error", 2);
|
|
98
|
-
var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = "Hierarchy request error", 3);
|
|
99
|
-
ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = "Wrong document", 4);
|
|
100
|
-
ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = "Invalid character", 5);
|
|
101
|
-
ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = "No data allowed", 6);
|
|
102
|
-
ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = "No modification allowed", 7);
|
|
103
|
-
var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = "Not found", 8);
|
|
104
|
-
ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = "Not supported", 9);
|
|
105
|
-
var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = "Attribute in use", 10);
|
|
106
|
-
ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = "Invalid state", 11);
|
|
107
|
-
ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = "Syntax error", 12);
|
|
108
|
-
ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = "Invalid modification", 13);
|
|
109
|
-
ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = "Invalid namespace", 14);
|
|
110
|
-
ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = "Invalid access", 15);
|
|
111
|
-
/**
|
|
112
|
-
* DOM Level 2
|
|
113
|
-
* Object DOMException
|
|
114
|
-
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html
|
|
115
|
-
* @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html
|
|
116
|
-
*/
|
|
117
|
-
function DOMException(code, message) {
|
|
118
|
-
if (message instanceof Error) var error = message;
|
|
119
|
-
else {
|
|
120
|
-
error = this;
|
|
121
|
-
Error.call(this, ExceptionMessage[code]);
|
|
122
|
-
this.message = ExceptionMessage[code];
|
|
123
|
-
if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
|
|
124
|
-
}
|
|
125
|
-
error.code = code;
|
|
126
|
-
if (message) this.message = this.message + ": " + message;
|
|
127
|
-
return error;
|
|
128
|
-
}
|
|
129
|
-
DOMException.prototype = Error.prototype;
|
|
130
|
-
copy(ExceptionCode, DOMException);
|
|
131
|
-
/**
|
|
132
|
-
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177
|
|
133
|
-
* The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.
|
|
134
|
-
* The items in the NodeList are accessible via an integral index, starting from 0.
|
|
135
|
-
*/
|
|
136
|
-
function NodeList() {}
|
|
137
|
-
NodeList.prototype = {
|
|
138
|
-
length: 0,
|
|
139
|
-
item: function(index) {
|
|
140
|
-
return index >= 0 && index < this.length ? this[index] : null;
|
|
141
|
-
},
|
|
142
|
-
toString: function(isHTML, nodeFilter) {
|
|
143
|
-
for (var buf = [], i = 0; i < this.length; i++) serializeToString(this[i], buf, isHTML, nodeFilter);
|
|
144
|
-
return buf.join("");
|
|
145
|
-
},
|
|
146
|
-
filter: function(predicate) {
|
|
147
|
-
return Array.prototype.filter.call(this, predicate);
|
|
148
|
-
},
|
|
149
|
-
indexOf: function(item) {
|
|
150
|
-
return Array.prototype.indexOf.call(this, item);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
function LiveNodeList(node, refresh) {
|
|
154
|
-
this._node = node;
|
|
155
|
-
this._refresh = refresh;
|
|
156
|
-
_updateLiveList(this);
|
|
157
|
-
}
|
|
158
|
-
function _updateLiveList(list) {
|
|
159
|
-
var inc = list._node._inc || list._node.ownerDocument._inc;
|
|
160
|
-
if (list._inc !== inc) {
|
|
161
|
-
var ls = list._refresh(list._node);
|
|
162
|
-
__set__(list, "length", ls.length);
|
|
163
|
-
if (!list.$$length || ls.length < list.$$length) {
|
|
164
|
-
for (var i = ls.length; i in list; i++) if (Object.prototype.hasOwnProperty.call(list, i)) delete list[i];
|
|
165
|
-
}
|
|
166
|
-
copy(ls, list);
|
|
167
|
-
list._inc = inc;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
LiveNodeList.prototype.item = function(i) {
|
|
171
|
-
_updateLiveList(this);
|
|
172
|
-
return this[i] || null;
|
|
173
|
-
};
|
|
174
|
-
_extends(LiveNodeList, NodeList);
|
|
175
|
-
/**
|
|
176
|
-
* Objects implementing the NamedNodeMap interface are used
|
|
177
|
-
* to represent collections of nodes that can be accessed by name.
|
|
178
|
-
* Note that NamedNodeMap does not inherit from NodeList;
|
|
179
|
-
* NamedNodeMaps are not maintained in any particular order.
|
|
180
|
-
* Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index,
|
|
181
|
-
* but this is simply to allow convenient enumeration of the contents of a NamedNodeMap,
|
|
182
|
-
* and does not imply that the DOM specifies an order to these Nodes.
|
|
183
|
-
* NamedNodeMap objects in the DOM are live.
|
|
184
|
-
* used for attributes or DocumentType entities
|
|
185
|
-
*/
|
|
186
|
-
function NamedNodeMap() {}
|
|
187
|
-
function _findNodeIndex(list, node) {
|
|
188
|
-
var i = list.length;
|
|
189
|
-
while (i--) if (list[i] === node) return i;
|
|
190
|
-
}
|
|
191
|
-
function _addNamedNode(el, list, newAttr, oldAttr) {
|
|
192
|
-
if (oldAttr) list[_findNodeIndex(list, oldAttr)] = newAttr;
|
|
193
|
-
else list[list.length++] = newAttr;
|
|
194
|
-
if (el) {
|
|
195
|
-
newAttr.ownerElement = el;
|
|
196
|
-
var doc = el.ownerDocument;
|
|
197
|
-
if (doc) {
|
|
198
|
-
oldAttr && _onRemoveAttribute(doc, el, oldAttr);
|
|
199
|
-
_onAddAttribute(doc, el, newAttr);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
function _removeNamedNode(el, list, attr) {
|
|
204
|
-
var i = _findNodeIndex(list, attr);
|
|
205
|
-
if (i >= 0) {
|
|
206
|
-
var lastIndex = list.length - 1;
|
|
207
|
-
while (i < lastIndex) list[i] = list[++i];
|
|
208
|
-
list.length = lastIndex;
|
|
209
|
-
if (el) {
|
|
210
|
-
var doc = el.ownerDocument;
|
|
211
|
-
if (doc) {
|
|
212
|
-
_onRemoveAttribute(doc, el, attr);
|
|
213
|
-
attr.ownerElement = null;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
} else throw new DOMException(NOT_FOUND_ERR, /* @__PURE__ */ new Error(el.tagName + "@" + attr));
|
|
217
|
-
}
|
|
218
|
-
NamedNodeMap.prototype = {
|
|
219
|
-
length: 0,
|
|
220
|
-
item: NodeList.prototype.item,
|
|
221
|
-
getNamedItem: function(key) {
|
|
222
|
-
var i = this.length;
|
|
223
|
-
while (i--) {
|
|
224
|
-
var attr = this[i];
|
|
225
|
-
if (attr.nodeName == key) return attr;
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
setNamedItem: function(attr) {
|
|
229
|
-
var el = attr.ownerElement;
|
|
230
|
-
if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
|
|
231
|
-
var oldAttr = this.getNamedItem(attr.nodeName);
|
|
232
|
-
_addNamedNode(this._ownerElement, this, attr, oldAttr);
|
|
233
|
-
return oldAttr;
|
|
234
|
-
},
|
|
235
|
-
setNamedItemNS: function(attr) {
|
|
236
|
-
var el = attr.ownerElement, oldAttr;
|
|
237
|
-
if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
|
|
238
|
-
oldAttr = this.getNamedItemNS(attr.namespaceURI, attr.localName);
|
|
239
|
-
_addNamedNode(this._ownerElement, this, attr, oldAttr);
|
|
240
|
-
return oldAttr;
|
|
241
|
-
},
|
|
242
|
-
removeNamedItem: function(key) {
|
|
243
|
-
var attr = this.getNamedItem(key);
|
|
244
|
-
_removeNamedNode(this._ownerElement, this, attr);
|
|
245
|
-
return attr;
|
|
246
|
-
},
|
|
247
|
-
removeNamedItemNS: function(namespaceURI, localName) {
|
|
248
|
-
var attr = this.getNamedItemNS(namespaceURI, localName);
|
|
249
|
-
_removeNamedNode(this._ownerElement, this, attr);
|
|
250
|
-
return attr;
|
|
251
|
-
},
|
|
252
|
-
getNamedItemNS: function(namespaceURI, localName) {
|
|
253
|
-
var i = this.length;
|
|
254
|
-
while (i--) {
|
|
255
|
-
var node = this[i];
|
|
256
|
-
if (node.localName == localName && node.namespaceURI == namespaceURI) return node;
|
|
257
|
-
}
|
|
258
|
-
return null;
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
/**
|
|
262
|
-
* The DOMImplementation interface represents an object providing methods
|
|
263
|
-
* which are not dependent on any particular document.
|
|
264
|
-
* Such an object is returned by the `Document.implementation` property.
|
|
265
|
-
*
|
|
266
|
-
* __The individual methods describe the differences compared to the specs.__
|
|
267
|
-
*
|
|
268
|
-
* @constructor
|
|
269
|
-
*
|
|
270
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN
|
|
271
|
-
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial)
|
|
272
|
-
* @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core
|
|
273
|
-
* @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core
|
|
274
|
-
* @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard
|
|
275
|
-
*/
|
|
276
|
-
function DOMImplementation() {}
|
|
277
|
-
DOMImplementation.prototype = {
|
|
278
|
-
hasFeature: function(feature, version) {
|
|
279
|
-
return true;
|
|
280
|
-
},
|
|
281
|
-
createDocument: function(namespaceURI, qualifiedName, doctype) {
|
|
282
|
-
var doc = new Document();
|
|
283
|
-
doc.implementation = this;
|
|
284
|
-
doc.childNodes = new NodeList();
|
|
285
|
-
doc.doctype = doctype || null;
|
|
286
|
-
if (doctype) doc.appendChild(doctype);
|
|
287
|
-
if (qualifiedName) {
|
|
288
|
-
var root = doc.createElementNS(namespaceURI, qualifiedName);
|
|
289
|
-
doc.appendChild(root);
|
|
290
|
-
}
|
|
291
|
-
return doc;
|
|
292
|
-
},
|
|
293
|
-
createDocumentType: function(qualifiedName, publicId, systemId) {
|
|
294
|
-
var node = new DocumentType();
|
|
295
|
-
node.name = qualifiedName;
|
|
296
|
-
node.nodeName = qualifiedName;
|
|
297
|
-
node.publicId = publicId || "";
|
|
298
|
-
node.systemId = systemId || "";
|
|
299
|
-
return node;
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
/**
|
|
303
|
-
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247
|
|
304
|
-
*/
|
|
305
|
-
function Node() {}
|
|
306
|
-
Node.prototype = {
|
|
307
|
-
firstChild: null,
|
|
308
|
-
lastChild: null,
|
|
309
|
-
previousSibling: null,
|
|
310
|
-
nextSibling: null,
|
|
311
|
-
attributes: null,
|
|
312
|
-
parentNode: null,
|
|
313
|
-
childNodes: null,
|
|
314
|
-
ownerDocument: null,
|
|
315
|
-
nodeValue: null,
|
|
316
|
-
namespaceURI: null,
|
|
317
|
-
prefix: null,
|
|
318
|
-
localName: null,
|
|
319
|
-
insertBefore: function(newChild, refChild) {
|
|
320
|
-
return _insertBefore(this, newChild, refChild);
|
|
321
|
-
},
|
|
322
|
-
replaceChild: function(newChild, oldChild) {
|
|
323
|
-
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
324
|
-
if (oldChild) this.removeChild(oldChild);
|
|
325
|
-
},
|
|
326
|
-
removeChild: function(oldChild) {
|
|
327
|
-
return _removeChild(this, oldChild);
|
|
328
|
-
},
|
|
329
|
-
appendChild: function(newChild) {
|
|
330
|
-
return this.insertBefore(newChild, null);
|
|
331
|
-
},
|
|
332
|
-
hasChildNodes: function() {
|
|
333
|
-
return this.firstChild != null;
|
|
334
|
-
},
|
|
335
|
-
cloneNode: function(deep) {
|
|
336
|
-
return cloneNode(this.ownerDocument || this, this, deep);
|
|
337
|
-
},
|
|
338
|
-
normalize: function() {
|
|
339
|
-
var child = this.firstChild;
|
|
340
|
-
while (child) {
|
|
341
|
-
var next = child.nextSibling;
|
|
342
|
-
if (next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE) {
|
|
343
|
-
this.removeChild(next);
|
|
344
|
-
child.appendData(next.data);
|
|
345
|
-
} else {
|
|
346
|
-
child.normalize();
|
|
347
|
-
child = next;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
isSupported: function(feature, version) {
|
|
352
|
-
return this.ownerDocument.implementation.hasFeature(feature, version);
|
|
353
|
-
},
|
|
354
|
-
hasAttributes: function() {
|
|
355
|
-
return this.attributes.length > 0;
|
|
356
|
-
},
|
|
357
|
-
lookupPrefix: function(namespaceURI) {
|
|
358
|
-
var el = this;
|
|
359
|
-
while (el) {
|
|
360
|
-
var map = el._nsMap;
|
|
361
|
-
if (map) {
|
|
362
|
-
for (var n in map) if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) return n;
|
|
363
|
-
}
|
|
364
|
-
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
365
|
-
}
|
|
366
|
-
return null;
|
|
367
|
-
},
|
|
368
|
-
lookupNamespaceURI: function(prefix) {
|
|
369
|
-
var el = this;
|
|
370
|
-
while (el) {
|
|
371
|
-
var map = el._nsMap;
|
|
372
|
-
if (map) {
|
|
373
|
-
if (Object.prototype.hasOwnProperty.call(map, prefix)) return map[prefix];
|
|
374
|
-
}
|
|
375
|
-
el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
|
|
376
|
-
}
|
|
377
|
-
return null;
|
|
378
|
-
},
|
|
379
|
-
isDefaultNamespace: function(namespaceURI) {
|
|
380
|
-
return this.lookupPrefix(namespaceURI) == null;
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
function _xmlEncoder(c) {
|
|
384
|
-
return c == "<" && "<" || c == ">" && ">" || c == "&" && "&" || c == "\"" && """ || "&#" + c.charCodeAt() + ";";
|
|
385
|
-
}
|
|
386
|
-
copy(NodeType, Node);
|
|
387
|
-
copy(NodeType, Node.prototype);
|
|
388
|
-
/**
|
|
389
|
-
* @param callback return true for continue,false for break
|
|
390
|
-
* @return boolean true: break visit;
|
|
391
|
-
*/
|
|
392
|
-
function _visitNode(node, callback) {
|
|
393
|
-
if (callback(node)) return true;
|
|
394
|
-
if (node = node.firstChild) do
|
|
395
|
-
if (_visitNode(node, callback)) return true;
|
|
396
|
-
while (node = node.nextSibling);
|
|
397
|
-
}
|
|
398
|
-
function Document() {
|
|
399
|
-
this.ownerDocument = this;
|
|
400
|
-
}
|
|
401
|
-
function _onAddAttribute(doc, el, newAttr) {
|
|
402
|
-
doc && doc._inc++;
|
|
403
|
-
if (newAttr.namespaceURI === NAMESPACE.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
|
|
404
|
-
}
|
|
405
|
-
function _onRemoveAttribute(doc, el, newAttr, remove) {
|
|
406
|
-
doc && doc._inc++;
|
|
407
|
-
if (newAttr.namespaceURI === NAMESPACE.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* Updates `el.childNodes`, updating the indexed items and it's `length`.
|
|
411
|
-
* Passing `newChild` means it will be appended.
|
|
412
|
-
* Otherwise it's assumed that an item has been removed,
|
|
413
|
-
* and `el.firstNode` and it's `.nextSibling` are used
|
|
414
|
-
* to walk the current list of child nodes.
|
|
415
|
-
*
|
|
416
|
-
* @param {Document} doc
|
|
417
|
-
* @param {Node} el
|
|
418
|
-
* @param {Node} [newChild]
|
|
419
|
-
* @private
|
|
420
|
-
*/
|
|
421
|
-
function _onUpdateChild(doc, el, newChild) {
|
|
422
|
-
if (doc && doc._inc) {
|
|
423
|
-
doc._inc++;
|
|
424
|
-
var cs = el.childNodes;
|
|
425
|
-
if (newChild) cs[cs.length++] = newChild;
|
|
426
|
-
else {
|
|
427
|
-
var child = el.firstChild;
|
|
428
|
-
var i = 0;
|
|
429
|
-
while (child) {
|
|
430
|
-
cs[i++] = child;
|
|
431
|
-
child = child.nextSibling;
|
|
432
|
-
}
|
|
433
|
-
cs.length = i;
|
|
434
|
-
delete cs[cs.length];
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Removes the connections between `parentNode` and `child`
|
|
440
|
-
* and any existing `child.previousSibling` or `child.nextSibling`.
|
|
441
|
-
*
|
|
442
|
-
* @see https://github.com/xmldom/xmldom/issues/135
|
|
443
|
-
* @see https://github.com/xmldom/xmldom/issues/145
|
|
444
|
-
*
|
|
445
|
-
* @param {Node} parentNode
|
|
446
|
-
* @param {Node} child
|
|
447
|
-
* @returns {Node} the child that was removed.
|
|
448
|
-
* @private
|
|
449
|
-
*/
|
|
450
|
-
function _removeChild(parentNode, child) {
|
|
451
|
-
var previous = child.previousSibling;
|
|
452
|
-
var next = child.nextSibling;
|
|
453
|
-
if (previous) previous.nextSibling = next;
|
|
454
|
-
else parentNode.firstChild = next;
|
|
455
|
-
if (next) next.previousSibling = previous;
|
|
456
|
-
else parentNode.lastChild = previous;
|
|
457
|
-
child.parentNode = null;
|
|
458
|
-
child.previousSibling = null;
|
|
459
|
-
child.nextSibling = null;
|
|
460
|
-
_onUpdateChild(parentNode.ownerDocument, parentNode);
|
|
461
|
-
return child;
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Returns `true` if `node` can be a parent for insertion.
|
|
465
|
-
* @param {Node} node
|
|
466
|
-
* @returns {boolean}
|
|
467
|
-
*/
|
|
468
|
-
function hasValidParentNodeType(node) {
|
|
469
|
-
return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Returns `true` if `node` can be inserted according to it's `nodeType`.
|
|
473
|
-
* @param {Node} node
|
|
474
|
-
* @returns {boolean}
|
|
475
|
-
*/
|
|
476
|
-
function hasInsertableNodeType(node) {
|
|
477
|
-
return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Returns true if `node` is a DOCTYPE node
|
|
481
|
-
* @param {Node} node
|
|
482
|
-
* @returns {boolean}
|
|
483
|
-
*/
|
|
484
|
-
function isDocTypeNode(node) {
|
|
485
|
-
return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Returns true if the node is an element
|
|
489
|
-
* @param {Node} node
|
|
490
|
-
* @returns {boolean}
|
|
491
|
-
*/
|
|
492
|
-
function isElementNode(node) {
|
|
493
|
-
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Returns true if `node` is a text node
|
|
497
|
-
* @param {Node} node
|
|
498
|
-
* @returns {boolean}
|
|
499
|
-
*/
|
|
500
|
-
function isTextNode(node) {
|
|
501
|
-
return node && node.nodeType === Node.TEXT_NODE;
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* Check if en element node can be inserted before `child`, or at the end if child is falsy,
|
|
505
|
-
* according to the presence and position of a doctype node on the same level.
|
|
506
|
-
*
|
|
507
|
-
* @param {Document} doc The document node
|
|
508
|
-
* @param {Node} child the node that would become the nextSibling if the element would be inserted
|
|
509
|
-
* @returns {boolean} `true` if an element can be inserted before child
|
|
510
|
-
* @private
|
|
511
|
-
* https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
512
|
-
*/
|
|
513
|
-
function isElementInsertionPossible(doc, child) {
|
|
514
|
-
var parentChildNodes = doc.childNodes || [];
|
|
515
|
-
if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) return false;
|
|
516
|
-
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
517
|
-
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Check if en element node can be inserted before `child`, or at the end if child is falsy,
|
|
521
|
-
* according to the presence and position of a doctype node on the same level.
|
|
522
|
-
*
|
|
523
|
-
* @param {Node} doc The document node
|
|
524
|
-
* @param {Node} child the node that would become the nextSibling if the element would be inserted
|
|
525
|
-
* @returns {boolean} `true` if an element can be inserted before child
|
|
526
|
-
* @private
|
|
527
|
-
* https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
528
|
-
*/
|
|
529
|
-
function isElementReplacementPossible(doc, child) {
|
|
530
|
-
var parentChildNodes = doc.childNodes || [];
|
|
531
|
-
function hasElementChildThatIsNotChild(node) {
|
|
532
|
-
return isElementNode(node) && node !== child;
|
|
533
|
-
}
|
|
534
|
-
if (find(parentChildNodes, hasElementChildThatIsNotChild)) return false;
|
|
535
|
-
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
536
|
-
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* @private
|
|
540
|
-
* Steps 1-5 of the checks before inserting and before replacing a child are the same.
|
|
541
|
-
*
|
|
542
|
-
* @param {Node} parent the parent node to insert `node` into
|
|
543
|
-
* @param {Node} node the node to insert
|
|
544
|
-
* @param {Node=} child the node that should become the `nextSibling` of `node`
|
|
545
|
-
* @returns {Node}
|
|
546
|
-
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
547
|
-
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
548
|
-
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
549
|
-
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
550
|
-
*/
|
|
551
|
-
function assertPreInsertionValidity1to5(parent, node, child) {
|
|
552
|
-
if (!hasValidParentNodeType(parent)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
|
|
553
|
-
if (child && child.parentNode !== parent) throw new DOMException(NOT_FOUND_ERR, "child not in parent");
|
|
554
|
-
if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType);
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* @private
|
|
558
|
-
* Step 6 of the checks before inserting and before replacing a child are different.
|
|
559
|
-
*
|
|
560
|
-
* @param {Document} parent the parent node to insert `node` into
|
|
561
|
-
* @param {Node} node the node to insert
|
|
562
|
-
* @param {Node | undefined} child the node that should become the `nextSibling` of `node`
|
|
563
|
-
* @returns {Node}
|
|
564
|
-
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
565
|
-
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
566
|
-
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
567
|
-
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
568
|
-
*/
|
|
569
|
-
function assertPreInsertionValidityInDocument(parent, node, child) {
|
|
570
|
-
var parentChildNodes = parent.childNodes || [];
|
|
571
|
-
var nodeChildNodes = node.childNodes || [];
|
|
572
|
-
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
573
|
-
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
574
|
-
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
575
|
-
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
576
|
-
}
|
|
577
|
-
if (isElementNode(node)) {
|
|
578
|
-
if (!isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
579
|
-
}
|
|
580
|
-
if (isDocTypeNode(node)) {
|
|
581
|
-
if (find(parentChildNodes, isDocTypeNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
582
|
-
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
583
|
-
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
584
|
-
if (!child && parentElementChild) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* @private
|
|
589
|
-
* Step 6 of the checks before inserting and before replacing a child are different.
|
|
590
|
-
*
|
|
591
|
-
* @param {Document} parent the parent node to insert `node` into
|
|
592
|
-
* @param {Node} node the node to insert
|
|
593
|
-
* @param {Node | undefined} child the node that should become the `nextSibling` of `node`
|
|
594
|
-
* @returns {Node}
|
|
595
|
-
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
596
|
-
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
597
|
-
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
598
|
-
* @see https://dom.spec.whatwg.org/#concept-node-replace
|
|
599
|
-
*/
|
|
600
|
-
function assertPreReplacementValidityInDocument(parent, node, child) {
|
|
601
|
-
var parentChildNodes = parent.childNodes || [];
|
|
602
|
-
var nodeChildNodes = node.childNodes || [];
|
|
603
|
-
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
604
|
-
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
605
|
-
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
606
|
-
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
607
|
-
}
|
|
608
|
-
if (isElementNode(node)) {
|
|
609
|
-
if (!isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
610
|
-
}
|
|
611
|
-
if (isDocTypeNode(node)) {
|
|
612
|
-
function hasDoctypeChildThatIsNotChild(node$1) {
|
|
613
|
-
return isDocTypeNode(node$1) && node$1 !== child;
|
|
614
|
-
}
|
|
615
|
-
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
616
|
-
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
617
|
-
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* @private
|
|
622
|
-
* @param {Node} parent the parent node to insert `node` into
|
|
623
|
-
* @param {Node} node the node to insert
|
|
624
|
-
* @param {Node=} child the node that should become the `nextSibling` of `node`
|
|
625
|
-
* @returns {Node}
|
|
626
|
-
* @throws DOMException for several node combinations that would create a DOM that is not well-formed.
|
|
627
|
-
* @throws DOMException if `child` is provided but is not a child of `parent`.
|
|
628
|
-
* @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
|
|
629
|
-
*/
|
|
630
|
-
function _insertBefore(parent, node, child, _inDocumentAssertion) {
|
|
631
|
-
assertPreInsertionValidity1to5(parent, node, child);
|
|
632
|
-
if (parent.nodeType === Node.DOCUMENT_NODE) (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);
|
|
633
|
-
var cp = node.parentNode;
|
|
634
|
-
if (cp) cp.removeChild(node);
|
|
635
|
-
if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
636
|
-
var newFirst = node.firstChild;
|
|
637
|
-
if (newFirst == null) return node;
|
|
638
|
-
var newLast = node.lastChild;
|
|
639
|
-
} else newFirst = newLast = node;
|
|
640
|
-
var pre = child ? child.previousSibling : parent.lastChild;
|
|
641
|
-
newFirst.previousSibling = pre;
|
|
642
|
-
newLast.nextSibling = child;
|
|
643
|
-
if (pre) pre.nextSibling = newFirst;
|
|
644
|
-
else parent.firstChild = newFirst;
|
|
645
|
-
if (child == null) parent.lastChild = newLast;
|
|
646
|
-
else child.previousSibling = newLast;
|
|
647
|
-
do {
|
|
648
|
-
newFirst.parentNode = parent;
|
|
649
|
-
var targetDoc = parent.ownerDocument || parent;
|
|
650
|
-
_updateOwnerDocument(newFirst, targetDoc);
|
|
651
|
-
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
652
|
-
_onUpdateChild(parent.ownerDocument || parent, parent);
|
|
653
|
-
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) node.firstChild = node.lastChild = null;
|
|
654
|
-
return node;
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* Recursively updates the ownerDocument property for a node and all its descendants
|
|
658
|
-
* @param {Node} node
|
|
659
|
-
* @param {Document} newOwnerDocument
|
|
660
|
-
* @private
|
|
661
|
-
*/
|
|
662
|
-
function _updateOwnerDocument(node, newOwnerDocument) {
|
|
663
|
-
if (node.ownerDocument === newOwnerDocument) return;
|
|
664
|
-
node.ownerDocument = newOwnerDocument;
|
|
665
|
-
if (node.nodeType === ELEMENT_NODE && node.attributes) for (var i = 0; i < node.attributes.length; i++) {
|
|
666
|
-
var attr = node.attributes.item(i);
|
|
667
|
-
if (attr) attr.ownerDocument = newOwnerDocument;
|
|
668
|
-
}
|
|
669
|
-
var child = node.firstChild;
|
|
670
|
-
while (child) {
|
|
671
|
-
_updateOwnerDocument(child, newOwnerDocument);
|
|
672
|
-
child = child.nextSibling;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* Appends `newChild` to `parentNode`.
|
|
677
|
-
* If `newChild` is already connected to a `parentNode` it is first removed from it.
|
|
678
|
-
*
|
|
679
|
-
* @see https://github.com/xmldom/xmldom/issues/135
|
|
680
|
-
* @see https://github.com/xmldom/xmldom/issues/145
|
|
681
|
-
* @param {Node} parentNode
|
|
682
|
-
* @param {Node} newChild
|
|
683
|
-
* @returns {Node}
|
|
684
|
-
* @private
|
|
685
|
-
*/
|
|
686
|
-
function _appendSingleChild(parentNode, newChild) {
|
|
687
|
-
if (newChild.parentNode) newChild.parentNode.removeChild(newChild);
|
|
688
|
-
newChild.parentNode = parentNode;
|
|
689
|
-
newChild.previousSibling = parentNode.lastChild;
|
|
690
|
-
newChild.nextSibling = null;
|
|
691
|
-
if (newChild.previousSibling) newChild.previousSibling.nextSibling = newChild;
|
|
692
|
-
else parentNode.firstChild = newChild;
|
|
693
|
-
parentNode.lastChild = newChild;
|
|
694
|
-
_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
|
|
695
|
-
_updateOwnerDocument(newChild, parentNode.ownerDocument || parentNode);
|
|
696
|
-
return newChild;
|
|
697
|
-
}
|
|
698
|
-
Document.prototype = {
|
|
699
|
-
nodeName: "#document",
|
|
700
|
-
nodeType: DOCUMENT_NODE,
|
|
701
|
-
doctype: null,
|
|
702
|
-
documentElement: null,
|
|
703
|
-
_inc: 1,
|
|
704
|
-
insertBefore: function(newChild, refChild) {
|
|
705
|
-
if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
706
|
-
var child = newChild.firstChild;
|
|
707
|
-
while (child) {
|
|
708
|
-
var next = child.nextSibling;
|
|
709
|
-
this.insertBefore(child, refChild);
|
|
710
|
-
child = next;
|
|
711
|
-
}
|
|
712
|
-
return newChild;
|
|
713
|
-
}
|
|
714
|
-
_insertBefore(this, newChild, refChild);
|
|
715
|
-
_updateOwnerDocument(newChild, this);
|
|
716
|
-
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) this.documentElement = newChild;
|
|
717
|
-
return newChild;
|
|
718
|
-
},
|
|
719
|
-
removeChild: function(oldChild) {
|
|
720
|
-
if (this.documentElement == oldChild) this.documentElement = null;
|
|
721
|
-
return _removeChild(this, oldChild);
|
|
722
|
-
},
|
|
723
|
-
replaceChild: function(newChild, oldChild) {
|
|
724
|
-
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
725
|
-
_updateOwnerDocument(newChild, this);
|
|
726
|
-
if (oldChild) this.removeChild(oldChild);
|
|
727
|
-
if (isElementNode(newChild)) this.documentElement = newChild;
|
|
728
|
-
},
|
|
729
|
-
importNode: function(importedNode, deep) {
|
|
730
|
-
return importNode(this, importedNode, deep);
|
|
731
|
-
},
|
|
732
|
-
getElementById: function(id) {
|
|
733
|
-
var rtv = null;
|
|
734
|
-
_visitNode(this.documentElement, function(node) {
|
|
735
|
-
if (node.nodeType == ELEMENT_NODE) {
|
|
736
|
-
if (node.getAttribute("id") == id) {
|
|
737
|
-
rtv = node;
|
|
738
|
-
return true;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
return rtv;
|
|
743
|
-
},
|
|
744
|
-
getElementsByClassName: function(classNames) {
|
|
745
|
-
var classNamesSet = toOrderedSet(classNames);
|
|
746
|
-
return new LiveNodeList(this, function(base) {
|
|
747
|
-
var ls = [];
|
|
748
|
-
if (classNamesSet.length > 0) _visitNode(base.documentElement, function(node) {
|
|
749
|
-
if (node !== base && node.nodeType === ELEMENT_NODE) {
|
|
750
|
-
var nodeClassNames = node.getAttribute("class");
|
|
751
|
-
if (nodeClassNames) {
|
|
752
|
-
var matches = classNames === nodeClassNames;
|
|
753
|
-
if (!matches) {
|
|
754
|
-
var nodeClassNamesSet = toOrderedSet(nodeClassNames);
|
|
755
|
-
matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));
|
|
756
|
-
}
|
|
757
|
-
if (matches) ls.push(node);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
return ls;
|
|
762
|
-
});
|
|
763
|
-
},
|
|
764
|
-
createElement: function(tagName) {
|
|
765
|
-
var node = new Element();
|
|
766
|
-
node.ownerDocument = this;
|
|
767
|
-
node.nodeName = tagName;
|
|
768
|
-
node.tagName = tagName;
|
|
769
|
-
node.localName = tagName;
|
|
770
|
-
node.childNodes = new NodeList();
|
|
771
|
-
var attrs = node.attributes = new NamedNodeMap();
|
|
772
|
-
attrs._ownerElement = node;
|
|
773
|
-
return node;
|
|
774
|
-
},
|
|
775
|
-
createDocumentFragment: function() {
|
|
776
|
-
var node = new DocumentFragment();
|
|
777
|
-
node.ownerDocument = this;
|
|
778
|
-
node.childNodes = new NodeList();
|
|
779
|
-
return node;
|
|
780
|
-
},
|
|
781
|
-
createTextNode: function(data) {
|
|
782
|
-
var node = new Text();
|
|
783
|
-
node.ownerDocument = this;
|
|
784
|
-
node.appendData(data);
|
|
785
|
-
return node;
|
|
786
|
-
},
|
|
787
|
-
createComment: function(data) {
|
|
788
|
-
var node = new Comment();
|
|
789
|
-
node.ownerDocument = this;
|
|
790
|
-
node.appendData(data);
|
|
791
|
-
return node;
|
|
792
|
-
},
|
|
793
|
-
createCDATASection: function(data) {
|
|
794
|
-
var node = new CDATASection();
|
|
795
|
-
node.ownerDocument = this;
|
|
796
|
-
node.appendData(data);
|
|
797
|
-
return node;
|
|
798
|
-
},
|
|
799
|
-
createProcessingInstruction: function(target, data) {
|
|
800
|
-
var node = new ProcessingInstruction();
|
|
801
|
-
node.ownerDocument = this;
|
|
802
|
-
node.tagName = node.nodeName = node.target = target;
|
|
803
|
-
node.nodeValue = node.data = data;
|
|
804
|
-
return node;
|
|
805
|
-
},
|
|
806
|
-
createAttribute: function(name) {
|
|
807
|
-
var node = new Attr();
|
|
808
|
-
node.ownerDocument = this;
|
|
809
|
-
node.name = name;
|
|
810
|
-
node.nodeName = name;
|
|
811
|
-
node.localName = name;
|
|
812
|
-
node.specified = true;
|
|
813
|
-
return node;
|
|
814
|
-
},
|
|
815
|
-
createEntityReference: function(name) {
|
|
816
|
-
var node = new EntityReference();
|
|
817
|
-
node.ownerDocument = this;
|
|
818
|
-
node.nodeName = name;
|
|
819
|
-
return node;
|
|
820
|
-
},
|
|
821
|
-
createElementNS: function(namespaceURI, qualifiedName) {
|
|
822
|
-
var node = new Element();
|
|
823
|
-
var pl = qualifiedName.split(":");
|
|
824
|
-
var attrs = node.attributes = new NamedNodeMap();
|
|
825
|
-
node.childNodes = new NodeList();
|
|
826
|
-
node.ownerDocument = this;
|
|
827
|
-
node.nodeName = qualifiedName;
|
|
828
|
-
node.tagName = qualifiedName;
|
|
829
|
-
node.namespaceURI = namespaceURI;
|
|
830
|
-
if (pl.length == 2) {
|
|
831
|
-
node.prefix = pl[0];
|
|
832
|
-
node.localName = pl[1];
|
|
833
|
-
} else node.localName = qualifiedName;
|
|
834
|
-
attrs._ownerElement = node;
|
|
835
|
-
return node;
|
|
836
|
-
},
|
|
837
|
-
createAttributeNS: function(namespaceURI, qualifiedName) {
|
|
838
|
-
var node = new Attr();
|
|
839
|
-
var pl = qualifiedName.split(":");
|
|
840
|
-
node.ownerDocument = this;
|
|
841
|
-
node.nodeName = qualifiedName;
|
|
842
|
-
node.name = qualifiedName;
|
|
843
|
-
node.namespaceURI = namespaceURI;
|
|
844
|
-
node.specified = true;
|
|
845
|
-
if (pl.length == 2) {
|
|
846
|
-
node.prefix = pl[0];
|
|
847
|
-
node.localName = pl[1];
|
|
848
|
-
} else node.localName = qualifiedName;
|
|
849
|
-
return node;
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
_extends(Document, Node);
|
|
853
|
-
function Element() {
|
|
854
|
-
this._nsMap = {};
|
|
855
|
-
}
|
|
856
|
-
Element.prototype = {
|
|
857
|
-
nodeType: ELEMENT_NODE,
|
|
858
|
-
hasAttribute: function(name) {
|
|
859
|
-
return this.getAttributeNode(name) != null;
|
|
860
|
-
},
|
|
861
|
-
getAttribute: function(name) {
|
|
862
|
-
var attr = this.getAttributeNode(name);
|
|
863
|
-
return attr && attr.value || "";
|
|
864
|
-
},
|
|
865
|
-
getAttributeNode: function(name) {
|
|
866
|
-
return this.attributes.getNamedItem(name);
|
|
867
|
-
},
|
|
868
|
-
setAttribute: function(name, value) {
|
|
869
|
-
var attr = this.ownerDocument.createAttribute(name);
|
|
870
|
-
attr.value = attr.nodeValue = "" + value;
|
|
871
|
-
this.setAttributeNode(attr);
|
|
872
|
-
},
|
|
873
|
-
removeAttribute: function(name) {
|
|
874
|
-
var attr = this.getAttributeNode(name);
|
|
875
|
-
attr && this.removeAttributeNode(attr);
|
|
876
|
-
},
|
|
877
|
-
appendChild: function(newChild) {
|
|
878
|
-
if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) return this.insertBefore(newChild, null);
|
|
879
|
-
else return _appendSingleChild(this, newChild);
|
|
880
|
-
},
|
|
881
|
-
setAttributeNode: function(newAttr) {
|
|
882
|
-
return this.attributes.setNamedItem(newAttr);
|
|
883
|
-
},
|
|
884
|
-
setAttributeNodeNS: function(newAttr) {
|
|
885
|
-
return this.attributes.setNamedItemNS(newAttr);
|
|
886
|
-
},
|
|
887
|
-
removeAttributeNode: function(oldAttr) {
|
|
888
|
-
return this.attributes.removeNamedItem(oldAttr.nodeName);
|
|
889
|
-
},
|
|
890
|
-
removeAttributeNS: function(namespaceURI, localName) {
|
|
891
|
-
var old = this.getAttributeNodeNS(namespaceURI, localName);
|
|
892
|
-
old && this.removeAttributeNode(old);
|
|
893
|
-
},
|
|
894
|
-
hasAttributeNS: function(namespaceURI, localName) {
|
|
895
|
-
return this.getAttributeNodeNS(namespaceURI, localName) != null;
|
|
896
|
-
},
|
|
897
|
-
getAttributeNS: function(namespaceURI, localName) {
|
|
898
|
-
var attr = this.getAttributeNodeNS(namespaceURI, localName);
|
|
899
|
-
return attr && attr.value || "";
|
|
900
|
-
},
|
|
901
|
-
setAttributeNS: function(namespaceURI, qualifiedName, value) {
|
|
902
|
-
var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
|
|
903
|
-
attr.value = attr.nodeValue = "" + value;
|
|
904
|
-
this.setAttributeNode(attr);
|
|
905
|
-
},
|
|
906
|
-
getAttributeNodeNS: function(namespaceURI, localName) {
|
|
907
|
-
return this.attributes.getNamedItemNS(namespaceURI, localName);
|
|
908
|
-
},
|
|
909
|
-
getElementsByTagName: function(tagName) {
|
|
910
|
-
return new LiveNodeList(this, function(base) {
|
|
911
|
-
var ls = [];
|
|
912
|
-
_visitNode(base, function(node) {
|
|
913
|
-
if (node !== base && node.nodeType == ELEMENT_NODE && (tagName === "*" || node.tagName == tagName)) ls.push(node);
|
|
914
|
-
});
|
|
915
|
-
return ls;
|
|
916
|
-
});
|
|
917
|
-
},
|
|
918
|
-
getElementsByTagNameNS: function(namespaceURI, localName) {
|
|
919
|
-
return new LiveNodeList(this, function(base) {
|
|
920
|
-
var ls = [];
|
|
921
|
-
_visitNode(base, function(node) {
|
|
922
|
-
if (node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === "*" || node.namespaceURI === namespaceURI) && (localName === "*" || node.localName == localName)) ls.push(node);
|
|
923
|
-
});
|
|
924
|
-
return ls;
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
|
-
Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;
|
|
929
|
-
Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;
|
|
930
|
-
_extends(Element, Node);
|
|
931
|
-
function Attr() {}
|
|
932
|
-
Attr.prototype.nodeType = ATTRIBUTE_NODE;
|
|
933
|
-
_extends(Attr, Node);
|
|
934
|
-
function CharacterData() {}
|
|
935
|
-
CharacterData.prototype = {
|
|
936
|
-
data: "",
|
|
937
|
-
substringData: function(offset, count) {
|
|
938
|
-
return this.data.substring(offset, offset + count);
|
|
939
|
-
},
|
|
940
|
-
appendData: function(text) {
|
|
941
|
-
text = this.data + text;
|
|
942
|
-
this.nodeValue = this.data = text;
|
|
943
|
-
this.length = text.length;
|
|
944
|
-
},
|
|
945
|
-
insertData: function(offset, text) {
|
|
946
|
-
this.replaceData(offset, 0, text);
|
|
947
|
-
},
|
|
948
|
-
appendChild: function(newChild) {
|
|
949
|
-
throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
|
|
950
|
-
},
|
|
951
|
-
deleteData: function(offset, count) {
|
|
952
|
-
this.replaceData(offset, count, "");
|
|
953
|
-
},
|
|
954
|
-
replaceData: function(offset, count, text) {
|
|
955
|
-
var start = this.data.substring(0, offset);
|
|
956
|
-
var end = this.data.substring(offset + count);
|
|
957
|
-
text = start + text + end;
|
|
958
|
-
this.nodeValue = this.data = text;
|
|
959
|
-
this.length = text.length;
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
_extends(CharacterData, Node);
|
|
963
|
-
function Text() {}
|
|
964
|
-
Text.prototype = {
|
|
965
|
-
nodeName: "#text",
|
|
966
|
-
nodeType: TEXT_NODE,
|
|
967
|
-
splitText: function(offset) {
|
|
968
|
-
var text = this.data;
|
|
969
|
-
var newText = text.substring(offset);
|
|
970
|
-
text = text.substring(0, offset);
|
|
971
|
-
this.data = this.nodeValue = text;
|
|
972
|
-
this.length = text.length;
|
|
973
|
-
var newNode = this.ownerDocument.createTextNode(newText);
|
|
974
|
-
if (this.parentNode) this.parentNode.insertBefore(newNode, this.nextSibling);
|
|
975
|
-
return newNode;
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
_extends(Text, CharacterData);
|
|
979
|
-
function Comment() {}
|
|
980
|
-
Comment.prototype = {
|
|
981
|
-
nodeName: "#comment",
|
|
982
|
-
nodeType: COMMENT_NODE
|
|
983
|
-
};
|
|
984
|
-
_extends(Comment, CharacterData);
|
|
985
|
-
function CDATASection() {}
|
|
986
|
-
CDATASection.prototype = {
|
|
987
|
-
nodeName: "#cdata-section",
|
|
988
|
-
nodeType: CDATA_SECTION_NODE
|
|
989
|
-
};
|
|
990
|
-
_extends(CDATASection, CharacterData);
|
|
991
|
-
function DocumentType() {}
|
|
992
|
-
DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
|
|
993
|
-
_extends(DocumentType, Node);
|
|
994
|
-
function Notation() {}
|
|
995
|
-
Notation.prototype.nodeType = NOTATION_NODE;
|
|
996
|
-
_extends(Notation, Node);
|
|
997
|
-
function Entity() {}
|
|
998
|
-
Entity.prototype.nodeType = ENTITY_NODE;
|
|
999
|
-
_extends(Entity, Node);
|
|
1000
|
-
function EntityReference() {}
|
|
1001
|
-
EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
|
|
1002
|
-
_extends(EntityReference, Node);
|
|
1003
|
-
function DocumentFragment() {}
|
|
1004
|
-
DocumentFragment.prototype.nodeName = "#document-fragment";
|
|
1005
|
-
DocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;
|
|
1006
|
-
_extends(DocumentFragment, Node);
|
|
1007
|
-
function ProcessingInstruction() {}
|
|
1008
|
-
ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;
|
|
1009
|
-
_extends(ProcessingInstruction, Node);
|
|
1010
|
-
function XMLSerializer() {}
|
|
1011
|
-
XMLSerializer.prototype.serializeToString = function(node, isHtml, nodeFilter) {
|
|
1012
|
-
return nodeSerializeToString.call(node, isHtml, nodeFilter);
|
|
1013
|
-
};
|
|
1014
|
-
Node.prototype.toString = nodeSerializeToString;
|
|
1015
|
-
function nodeSerializeToString(isHtml, nodeFilter) {
|
|
1016
|
-
var buf = [];
|
|
1017
|
-
var refNode = this.nodeType == 9 && this.documentElement || this;
|
|
1018
|
-
var prefix = refNode.prefix;
|
|
1019
|
-
var uri = refNode.namespaceURI;
|
|
1020
|
-
if (uri && prefix == null) {
|
|
1021
|
-
var prefix = refNode.lookupPrefix(uri);
|
|
1022
|
-
if (prefix == null) var visibleNamespaces = [{
|
|
1023
|
-
namespace: uri,
|
|
1024
|
-
prefix: null
|
|
1025
|
-
}];
|
|
1026
|
-
}
|
|
1027
|
-
serializeToString(this, buf, isHtml, nodeFilter, visibleNamespaces);
|
|
1028
|
-
return buf.join("");
|
|
1029
|
-
}
|
|
1030
|
-
function needNamespaceDefine(node, isHTML, visibleNamespaces) {
|
|
1031
|
-
var prefix = node.prefix || "";
|
|
1032
|
-
var uri = node.namespaceURI;
|
|
1033
|
-
if (!uri) return false;
|
|
1034
|
-
if (prefix === "xml" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) return false;
|
|
1035
|
-
var i = visibleNamespaces.length;
|
|
1036
|
-
while (i--) {
|
|
1037
|
-
var ns = visibleNamespaces[i];
|
|
1038
|
-
if (ns.prefix === prefix) return ns.namespace !== uri;
|
|
1039
|
-
}
|
|
1040
|
-
return true;
|
|
1041
|
-
}
|
|
1042
|
-
/**
|
|
1043
|
-
* Well-formed constraint: No < in Attribute Values
|
|
1044
|
-
* > The replacement text of any entity referred to directly or indirectly
|
|
1045
|
-
* > in an attribute value must not contain a <.
|
|
1046
|
-
* @see https://www.w3.org/TR/xml11/#CleanAttrVals
|
|
1047
|
-
* @see https://www.w3.org/TR/xml11/#NT-AttValue
|
|
1048
|
-
*
|
|
1049
|
-
* Literal whitespace other than space that appear in attribute values
|
|
1050
|
-
* are serialized as their entity references, so they will be preserved.
|
|
1051
|
-
* (In contrast to whitespace literals in the input which are normalized to spaces)
|
|
1052
|
-
* @see https://www.w3.org/TR/xml11/#AVNormalize
|
|
1053
|
-
* @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes
|
|
1054
|
-
*/
|
|
1055
|
-
function addSerializedAttribute(buf, qualifiedName, value) {
|
|
1056
|
-
buf.push(" ", qualifiedName, "=\"", value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), "\"");
|
|
1057
|
-
}
|
|
1058
|
-
function serializeToString(node, buf, isHTML, nodeFilter, visibleNamespaces) {
|
|
1059
|
-
if (!visibleNamespaces) visibleNamespaces = [];
|
|
1060
|
-
if (nodeFilter) {
|
|
1061
|
-
node = nodeFilter(node);
|
|
1062
|
-
if (node) {
|
|
1063
|
-
if (typeof node == "string") {
|
|
1064
|
-
buf.push(node);
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
} else return;
|
|
1068
|
-
}
|
|
1069
|
-
switch (node.nodeType) {
|
|
1070
|
-
case ELEMENT_NODE:
|
|
1071
|
-
var attrs = node.attributes;
|
|
1072
|
-
var len = attrs.length;
|
|
1073
|
-
var child = node.firstChild;
|
|
1074
|
-
var nodeName = node.tagName;
|
|
1075
|
-
isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML;
|
|
1076
|
-
var prefixedNodeName = nodeName;
|
|
1077
|
-
if (!isHTML && !node.prefix && node.namespaceURI) {
|
|
1078
|
-
var defaultNS;
|
|
1079
|
-
for (var ai = 0; ai < attrs.length; ai++) if (attrs.item(ai).name === "xmlns") {
|
|
1080
|
-
defaultNS = attrs.item(ai).value;
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
if (!defaultNS) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
|
|
1084
|
-
var namespace = visibleNamespaces[nsi];
|
|
1085
|
-
if (namespace.prefix === "" && namespace.namespace === node.namespaceURI) {
|
|
1086
|
-
defaultNS = namespace.namespace;
|
|
1087
|
-
break;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
if (defaultNS !== node.namespaceURI) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
|
|
1091
|
-
var namespace = visibleNamespaces[nsi];
|
|
1092
|
-
if (namespace.namespace === node.namespaceURI) {
|
|
1093
|
-
if (namespace.prefix) prefixedNodeName = namespace.prefix + ":" + nodeName;
|
|
1094
|
-
break;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
buf.push("<", prefixedNodeName);
|
|
1099
|
-
for (var i = 0; i < len; i++) {
|
|
1100
|
-
var attr = attrs.item(i);
|
|
1101
|
-
if (attr.prefix == "xmlns") visibleNamespaces.push({
|
|
1102
|
-
prefix: attr.localName,
|
|
1103
|
-
namespace: attr.value
|
|
1104
|
-
});
|
|
1105
|
-
else if (attr.nodeName == "xmlns") visibleNamespaces.push({
|
|
1106
|
-
prefix: "",
|
|
1107
|
-
namespace: attr.value
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
for (var i = 0; i < len; i++) {
|
|
1111
|
-
var attr = attrs.item(i);
|
|
1112
|
-
if (needNamespaceDefine(attr, isHTML, visibleNamespaces)) {
|
|
1113
|
-
var prefix = attr.prefix || "";
|
|
1114
|
-
var uri = attr.namespaceURI;
|
|
1115
|
-
addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
|
|
1116
|
-
visibleNamespaces.push({
|
|
1117
|
-
prefix,
|
|
1118
|
-
namespace: uri
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
serializeToString(attr, buf, isHTML, nodeFilter, visibleNamespaces);
|
|
1122
|
-
}
|
|
1123
|
-
if (nodeName === prefixedNodeName && needNamespaceDefine(node, isHTML, visibleNamespaces)) {
|
|
1124
|
-
var prefix = node.prefix || "";
|
|
1125
|
-
var uri = node.namespaceURI;
|
|
1126
|
-
addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
|
|
1127
|
-
visibleNamespaces.push({
|
|
1128
|
-
prefix,
|
|
1129
|
-
namespace: uri
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
if (child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)) {
|
|
1133
|
-
buf.push(">");
|
|
1134
|
-
if (isHTML && /^script$/i.test(nodeName)) while (child) {
|
|
1135
|
-
if (child.data) buf.push(child.data);
|
|
1136
|
-
else serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1137
|
-
child = child.nextSibling;
|
|
1138
|
-
}
|
|
1139
|
-
else while (child) {
|
|
1140
|
-
serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1141
|
-
child = child.nextSibling;
|
|
1142
|
-
}
|
|
1143
|
-
buf.push("</", prefixedNodeName, ">");
|
|
1144
|
-
} else buf.push("/>");
|
|
1145
|
-
return;
|
|
1146
|
-
case DOCUMENT_NODE:
|
|
1147
|
-
case DOCUMENT_FRAGMENT_NODE:
|
|
1148
|
-
var child = node.firstChild;
|
|
1149
|
-
while (child) {
|
|
1150
|
-
serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
|
|
1151
|
-
child = child.nextSibling;
|
|
1152
|
-
}
|
|
1153
|
-
return;
|
|
1154
|
-
case ATTRIBUTE_NODE: return addSerializedAttribute(buf, node.name, node.value);
|
|
1155
|
-
case TEXT_NODE:
|
|
1156
|
-
/**
|
|
1157
|
-
* The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,
|
|
1158
|
-
* except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.
|
|
1159
|
-
* If they are needed elsewhere, they must be escaped using either numeric character references or the strings
|
|
1160
|
-
* `&` and `<` respectively.
|
|
1161
|
-
* The right angle bracket (>) may be represented using the string " > ", and must, for compatibility,
|
|
1162
|
-
* be escaped using either `>` or a character reference when it appears in the string `]]>` in content,
|
|
1163
|
-
* when that string is not marking the end of a CDATA section.
|
|
1164
|
-
*
|
|
1165
|
-
* In the content of elements, character data is any string of characters
|
|
1166
|
-
* which does not contain the start-delimiter of any markup
|
|
1167
|
-
* and does not include the CDATA-section-close delimiter, `]]>`.
|
|
1168
|
-
*
|
|
1169
|
-
* @see https://www.w3.org/TR/xml/#NT-CharData
|
|
1170
|
-
* @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node
|
|
1171
|
-
*/
|
|
1172
|
-
return buf.push(node.data.replace(/[<&>]/g, _xmlEncoder));
|
|
1173
|
-
case CDATA_SECTION_NODE: return buf.push("<![CDATA[", node.data, "]]>");
|
|
1174
|
-
case COMMENT_NODE: return buf.push("<!--", node.data, "-->");
|
|
1175
|
-
case DOCUMENT_TYPE_NODE:
|
|
1176
|
-
var pubid = node.publicId;
|
|
1177
|
-
var sysid = node.systemId;
|
|
1178
|
-
buf.push("<!DOCTYPE ", node.name);
|
|
1179
|
-
if (pubid) {
|
|
1180
|
-
buf.push(" PUBLIC ", pubid);
|
|
1181
|
-
if (sysid && sysid != ".") buf.push(" ", sysid);
|
|
1182
|
-
buf.push(">");
|
|
1183
|
-
} else if (sysid && sysid != ".") buf.push(" SYSTEM ", sysid, ">");
|
|
1184
|
-
else {
|
|
1185
|
-
var sub = node.internalSubset;
|
|
1186
|
-
if (sub) buf.push(" [", sub, "]");
|
|
1187
|
-
buf.push(">");
|
|
1188
|
-
}
|
|
1189
|
-
return;
|
|
1190
|
-
case PROCESSING_INSTRUCTION_NODE: return buf.push("<?", node.target, " ", node.data, "?>");
|
|
1191
|
-
case ENTITY_REFERENCE_NODE: return buf.push("&", node.nodeName, ";");
|
|
1192
|
-
default: buf.push("??", node.nodeName);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
function importNode(doc, node, deep) {
|
|
1196
|
-
var node2;
|
|
1197
|
-
switch (node.nodeType) {
|
|
1198
|
-
case ELEMENT_NODE:
|
|
1199
|
-
node2 = node.cloneNode(false);
|
|
1200
|
-
node2.ownerDocument = doc;
|
|
1201
|
-
case DOCUMENT_FRAGMENT_NODE: break;
|
|
1202
|
-
case ATTRIBUTE_NODE:
|
|
1203
|
-
deep = true;
|
|
1204
|
-
break;
|
|
1205
|
-
}
|
|
1206
|
-
if (!node2) node2 = node.cloneNode(false);
|
|
1207
|
-
node2.ownerDocument = doc;
|
|
1208
|
-
node2.parentNode = null;
|
|
1209
|
-
if (deep) {
|
|
1210
|
-
var child = node.firstChild;
|
|
1211
|
-
while (child) {
|
|
1212
|
-
node2.appendChild(importNode(doc, child, deep));
|
|
1213
|
-
child = child.nextSibling;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
return node2;
|
|
1217
|
-
}
|
|
1218
|
-
function cloneNode(doc, node, deep) {
|
|
1219
|
-
var node2 = new node.constructor();
|
|
1220
|
-
for (var n in node) if (Object.prototype.hasOwnProperty.call(node, n)) {
|
|
1221
|
-
var v = node[n];
|
|
1222
|
-
if (typeof v != "object") {
|
|
1223
|
-
if (v != node2[n]) node2[n] = v;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
if (node.childNodes) node2.childNodes = new NodeList();
|
|
1227
|
-
node2.ownerDocument = doc;
|
|
1228
|
-
switch (node2.nodeType) {
|
|
1229
|
-
case ELEMENT_NODE:
|
|
1230
|
-
var attrs = node.attributes;
|
|
1231
|
-
var attrs2 = node2.attributes = new NamedNodeMap();
|
|
1232
|
-
var len = attrs.length;
|
|
1233
|
-
attrs2._ownerElement = node2;
|
|
1234
|
-
for (var i = 0; i < len; i++) node2.setAttributeNode(cloneNode(doc, attrs.item(i), true));
|
|
1235
|
-
break;
|
|
1236
|
-
case ATTRIBUTE_NODE: deep = true;
|
|
1237
|
-
}
|
|
1238
|
-
if (deep) {
|
|
1239
|
-
var child = node.firstChild;
|
|
1240
|
-
while (child) {
|
|
1241
|
-
node2.appendChild(cloneNode(doc, child, deep));
|
|
1242
|
-
child = child.nextSibling;
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
return node2;
|
|
1246
|
-
}
|
|
1247
|
-
function __set__(object, key, value) {
|
|
1248
|
-
object[key] = value;
|
|
1249
|
-
}
|
|
1250
|
-
try {
|
|
1251
|
-
if (Object.defineProperty) {
|
|
1252
|
-
Object.defineProperty(LiveNodeList.prototype, "length", { get: function() {
|
|
1253
|
-
_updateLiveList(this);
|
|
1254
|
-
return this.$$length;
|
|
1255
|
-
} });
|
|
1256
|
-
Object.defineProperty(Node.prototype, "textContent", {
|
|
1257
|
-
get: function() {
|
|
1258
|
-
return getTextContent(this);
|
|
1259
|
-
},
|
|
1260
|
-
set: function(data) {
|
|
1261
|
-
switch (this.nodeType) {
|
|
1262
|
-
case ELEMENT_NODE:
|
|
1263
|
-
case DOCUMENT_FRAGMENT_NODE:
|
|
1264
|
-
while (this.firstChild) this.removeChild(this.firstChild);
|
|
1265
|
-
if (data || String(data)) this.appendChild(this.ownerDocument.createTextNode(data));
|
|
1266
|
-
break;
|
|
1267
|
-
default:
|
|
1268
|
-
this.data = data;
|
|
1269
|
-
this.value = data;
|
|
1270
|
-
this.nodeValue = data;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
});
|
|
1274
|
-
function getTextContent(node) {
|
|
1275
|
-
switch (node.nodeType) {
|
|
1276
|
-
case ELEMENT_NODE:
|
|
1277
|
-
case DOCUMENT_FRAGMENT_NODE:
|
|
1278
|
-
var buf = [];
|
|
1279
|
-
node = node.firstChild;
|
|
1280
|
-
while (node) {
|
|
1281
|
-
if (node.nodeType !== 7 && node.nodeType !== 8) buf.push(getTextContent(node));
|
|
1282
|
-
node = node.nextSibling;
|
|
1283
|
-
}
|
|
1284
|
-
return buf.join("");
|
|
1285
|
-
default: return node.nodeValue;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
__set__ = function(object, key, value) {
|
|
1289
|
-
object["$$" + key] = value;
|
|
1290
|
-
};
|
|
1291
|
-
}
|
|
1292
|
-
} catch (e) {}
|
|
1293
|
-
exports.DocumentType = DocumentType;
|
|
1294
|
-
exports.DOMException = DOMException;
|
|
1295
|
-
exports.DOMImplementation = DOMImplementation;
|
|
1296
|
-
exports.Element = Element;
|
|
1297
|
-
exports.Node = Node;
|
|
1298
|
-
exports.NodeList = NodeList;
|
|
1299
|
-
exports.XMLSerializer = XMLSerializer;
|
|
1300
|
-
}) });
|
|
1301
|
-
|
|
1302
|
-
//#endregion
|
|
1303
|
-
Object.defineProperty(exports, 'default', {
|
|
1304
|
-
enumerable: true,
|
|
1305
|
-
get: function () {
|
|
1306
|
-
return require_dom();
|
|
1307
|
-
}
|
|
1308
|
-
});
|
|
1309
|
-
//# sourceMappingURL=dom.cjs.map
|